1. Packages
  2. Packages
  3. Volcenginecc Provider
  4. API Docs
  5. ecs
  6. Command
Viewing docs for volcenginecc v0.0.32
published on Thursday, Apr 23, 2026 by Volcengine
volcenginecc logo
Viewing docs for volcenginecc v0.0.32
published on Thursday, Apr 23, 2026 by Volcengine

    Custom commands are features provided by Cloud Assistant to meet your personalized O&M needs. If the preset public commands do not meet your requirements, you can create custom commands and batch execute your custom commands on instances using O&M tasks.

    Example Usage

    Example coming soon!
    
    Example coming soon!
    
    Example coming soon!
    
    Example coming soon!
    
    Example coming soon!
    
    resources:
      commandDemo:
        type: volcenginecc:ecs:Command
        name: CommandDemo
        properties:
          commandContent: IyEvYmluL2Jhc2gKCm1rZGlyIHt7ZGxxxxx
          description: CommandDemo Example
          enableParameter: true
          name: commandtest
          parameterDefinitions:
            - type: Digit
              name: dirname
              required: true
              default_value: '10'
              min_length: 0
              max_length: 0
              min_value: '5'
              max_value: '100'
              decimal_precision: 0
          projectName: default
          tags:
            - key: env
              value: test
          timeout: 60
          type: Shell
          username: rxxxx
          workingDir: /home
    

    Create Command Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Command(name: string, args: CommandArgs, opts?: CustomResourceOptions);
    @overload
    def Command(resource_name: str,
                args: CommandArgs,
                opts: Optional[ResourceOptions] = None)
    
    @overload
    def Command(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                command_content: Optional[str] = None,
                name: Optional[str] = None,
                type: Optional[str] = None,
                content_encoding: Optional[str] = None,
                description: Optional[str] = None,
                enable_parameter: Optional[bool] = None,
                parameter_definitions: Optional[Sequence[CommandParameterDefinitionArgs]] = None,
                project_name: Optional[str] = None,
                tags: Optional[Sequence[CommandTagArgs]] = None,
                timeout: Optional[int] = None,
                username: Optional[str] = None,
                working_dir: Optional[str] = None)
    func NewCommand(ctx *Context, name string, args CommandArgs, opts ...ResourceOption) (*Command, error)
    public Command(string name, CommandArgs args, CustomResourceOptions? opts = null)
    public Command(String name, CommandArgs args)
    public Command(String name, CommandArgs args, CustomResourceOptions options)
    
    type: volcenginecc:ecs:Command
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args CommandArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args CommandArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args CommandArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CommandArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CommandArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Command Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The Command resource accepts the following input properties:

    CommandContent string
    Command content. Enter the command content according to the ContentEncoding parameter. Command content must not exceed 16 KB.
    Name string
    Command name. Character length: 1~32. No restriction on special characters.
    Type string
    Command type. Shell: Creates a Shell script for Linux instances. Python: Creates a Python script. Bat: Creates a Bat script. PowerShell: Creates a PowerShell script.
    ContentEncoding string
    Whether the command content is processed with Base64 encoding. Base64 (default): Processed with Base64 encoding. PlainText: Not encoded.
    Description string
    Command description. Defaults to an empty string. Character length: 0~256. No restriction on special characters.
    EnableParameter bool
    Whether the created command uses custom parameters. false: Default, does not use custom parameters. true: Uses custom parameters.
    ParameterDefinitions List<Volcengine.CommandParameterDefinition>
    ProjectName string
    Project to which the resource belongs. Each resource can belong to only one project.
    Tags List<Volcengine.CommandTag>
    Timeout int
    Maximum timeout for executing the created command on ECS instances, in seconds. Value range: 30~86400. Default: 60.
    Username string
    Username for executing the command.
    WorkingDir string
    Directory where the created command runs on ECS instances.
    CommandContent string
    Command content. Enter the command content according to the ContentEncoding parameter. Command content must not exceed 16 KB.
    Name string
    Command name. Character length: 1~32. No restriction on special characters.
    Type string
    Command type. Shell: Creates a Shell script for Linux instances. Python: Creates a Python script. Bat: Creates a Bat script. PowerShell: Creates a PowerShell script.
    ContentEncoding string
    Whether the command content is processed with Base64 encoding. Base64 (default): Processed with Base64 encoding. PlainText: Not encoded.
    Description string
    Command description. Defaults to an empty string. Character length: 0~256. No restriction on special characters.
    EnableParameter bool
    Whether the created command uses custom parameters. false: Default, does not use custom parameters. true: Uses custom parameters.
    ParameterDefinitions []CommandParameterDefinitionArgs
    ProjectName string
    Project to which the resource belongs. Each resource can belong to only one project.
    Tags []CommandTagArgs
    Timeout int
    Maximum timeout for executing the created command on ECS instances, in seconds. Value range: 30~86400. Default: 60.
    Username string
    Username for executing the command.
    WorkingDir string
    Directory where the created command runs on ECS instances.
    commandContent String
    Command content. Enter the command content according to the ContentEncoding parameter. Command content must not exceed 16 KB.
    name String
    Command name. Character length: 1~32. No restriction on special characters.
    type String
    Command type. Shell: Creates a Shell script for Linux instances. Python: Creates a Python script. Bat: Creates a Bat script. PowerShell: Creates a PowerShell script.
    contentEncoding String
    Whether the command content is processed with Base64 encoding. Base64 (default): Processed with Base64 encoding. PlainText: Not encoded.
    description String
    Command description. Defaults to an empty string. Character length: 0~256. No restriction on special characters.
    enableParameter Boolean
    Whether the created command uses custom parameters. false: Default, does not use custom parameters. true: Uses custom parameters.
    parameterDefinitions List<CommandParameterDefinition>
    projectName String
    Project to which the resource belongs. Each resource can belong to only one project.
    tags List<CommandTag>
    timeout Integer
    Maximum timeout for executing the created command on ECS instances, in seconds. Value range: 30~86400. Default: 60.
    username String
    Username for executing the command.
    workingDir String
    Directory where the created command runs on ECS instances.
    commandContent string
    Command content. Enter the command content according to the ContentEncoding parameter. Command content must not exceed 16 KB.
    name string
    Command name. Character length: 1~32. No restriction on special characters.
    type string
    Command type. Shell: Creates a Shell script for Linux instances. Python: Creates a Python script. Bat: Creates a Bat script. PowerShell: Creates a PowerShell script.
    contentEncoding string
    Whether the command content is processed with Base64 encoding. Base64 (default): Processed with Base64 encoding. PlainText: Not encoded.
    description string
    Command description. Defaults to an empty string. Character length: 0~256. No restriction on special characters.
    enableParameter boolean
    Whether the created command uses custom parameters. false: Default, does not use custom parameters. true: Uses custom parameters.
    parameterDefinitions CommandParameterDefinition[]
    projectName string
    Project to which the resource belongs. Each resource can belong to only one project.
    tags CommandTag[]
    timeout number
    Maximum timeout for executing the created command on ECS instances, in seconds. Value range: 30~86400. Default: 60.
    username string
    Username for executing the command.
    workingDir string
    Directory where the created command runs on ECS instances.
    command_content str
    Command content. Enter the command content according to the ContentEncoding parameter. Command content must not exceed 16 KB.
    name str
    Command name. Character length: 1~32. No restriction on special characters.
    type str
    Command type. Shell: Creates a Shell script for Linux instances. Python: Creates a Python script. Bat: Creates a Bat script. PowerShell: Creates a PowerShell script.
    content_encoding str
    Whether the command content is processed with Base64 encoding. Base64 (default): Processed with Base64 encoding. PlainText: Not encoded.
    description str
    Command description. Defaults to an empty string. Character length: 0~256. No restriction on special characters.
    enable_parameter bool
    Whether the created command uses custom parameters. false: Default, does not use custom parameters. true: Uses custom parameters.
    parameter_definitions Sequence[CommandParameterDefinitionArgs]
    project_name str
    Project to which the resource belongs. Each resource can belong to only one project.
    tags Sequence[CommandTagArgs]
    timeout int
    Maximum timeout for executing the created command on ECS instances, in seconds. Value range: 30~86400. Default: 60.
    username str
    Username for executing the command.
    working_dir str
    Directory where the created command runs on ECS instances.
    commandContent String
    Command content. Enter the command content according to the ContentEncoding parameter. Command content must not exceed 16 KB.
    name String
    Command name. Character length: 1~32. No restriction on special characters.
    type String
    Command type. Shell: Creates a Shell script for Linux instances. Python: Creates a Python script. Bat: Creates a Bat script. PowerShell: Creates a PowerShell script.
    contentEncoding String
    Whether the command content is processed with Base64 encoding. Base64 (default): Processed with Base64 encoding. PlainText: Not encoded.
    description String
    Command description. Defaults to an empty string. Character length: 0~256. No restriction on special characters.
    enableParameter Boolean
    Whether the created command uses custom parameters. false: Default, does not use custom parameters. true: Uses custom parameters.
    parameterDefinitions List<Property Map>
    projectName String
    Project to which the resource belongs. Each resource can belong to only one project.
    tags List<Property Map>
    timeout Number
    Maximum timeout for executing the created command on ECS instances, in seconds. Value range: 30~86400. Default: 60.
    username String
    Username for executing the command.
    workingDir String
    Directory where the created command runs on ECS instances.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Command resource produces the following output properties:

    CommandId string
    Custom command ID.
    CreatedTime string
    Creation time.
    Id string
    The provider-assigned unique ID for this managed resource.
    InvocationTimes int
    Number of times the command has been invoked.
    ProviderName string
    Command provider.
    UpdatedTime string
    Update time.
    CommandId string
    Custom command ID.
    CreatedTime string
    Creation time.
    Id string
    The provider-assigned unique ID for this managed resource.
    InvocationTimes int
    Number of times the command has been invoked.
    ProviderName string
    Command provider.
    UpdatedTime string
    Update time.
    commandId String
    Custom command ID.
    createdTime String
    Creation time.
    id String
    The provider-assigned unique ID for this managed resource.
    invocationTimes Integer
    Number of times the command has been invoked.
    providerName String
    Command provider.
    updatedTime String
    Update time.
    commandId string
    Custom command ID.
    createdTime string
    Creation time.
    id string
    The provider-assigned unique ID for this managed resource.
    invocationTimes number
    Number of times the command has been invoked.
    providerName string
    Command provider.
    updatedTime string
    Update time.
    command_id str
    Custom command ID.
    created_time str
    Creation time.
    id str
    The provider-assigned unique ID for this managed resource.
    invocation_times int
    Number of times the command has been invoked.
    provider_name str
    Command provider.
    updated_time str
    Update time.
    commandId String
    Custom command ID.
    createdTime String
    Creation time.
    id String
    The provider-assigned unique ID for this managed resource.
    invocationTimes Number
    Number of times the command has been invoked.
    providerName String
    Command provider.
    updatedTime String
    Update time.

    Look up Existing Command Resource

    Get an existing Command resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: CommandState, opts?: CustomResourceOptions): Command
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            command_content: Optional[str] = None,
            command_id: Optional[str] = None,
            content_encoding: Optional[str] = None,
            created_time: Optional[str] = None,
            description: Optional[str] = None,
            enable_parameter: Optional[bool] = None,
            invocation_times: Optional[int] = None,
            name: Optional[str] = None,
            parameter_definitions: Optional[Sequence[CommandParameterDefinitionArgs]] = None,
            project_name: Optional[str] = None,
            provider_name: Optional[str] = None,
            tags: Optional[Sequence[CommandTagArgs]] = None,
            timeout: Optional[int] = None,
            type: Optional[str] = None,
            updated_time: Optional[str] = None,
            username: Optional[str] = None,
            working_dir: Optional[str] = None) -> Command
    func GetCommand(ctx *Context, name string, id IDInput, state *CommandState, opts ...ResourceOption) (*Command, error)
    public static Command Get(string name, Input<string> id, CommandState? state, CustomResourceOptions? opts = null)
    public static Command get(String name, Output<String> id, CommandState state, CustomResourceOptions options)
    resources:  _:    type: volcenginecc:ecs:Command    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    CommandContent string
    Command content. Enter the command content according to the ContentEncoding parameter. Command content must not exceed 16 KB.
    CommandId string
    Custom command ID.
    ContentEncoding string
    Whether the command content is processed with Base64 encoding. Base64 (default): Processed with Base64 encoding. PlainText: Not encoded.
    CreatedTime string
    Creation time.
    Description string
    Command description. Defaults to an empty string. Character length: 0~256. No restriction on special characters.
    EnableParameter bool
    Whether the created command uses custom parameters. false: Default, does not use custom parameters. true: Uses custom parameters.
    InvocationTimes int
    Number of times the command has been invoked.
    Name string
    Command name. Character length: 1~32. No restriction on special characters.
    ParameterDefinitions List<Volcengine.CommandParameterDefinition>
    ProjectName string
    Project to which the resource belongs. Each resource can belong to only one project.
    ProviderName string
    Command provider.
    Tags List<Volcengine.CommandTag>
    Timeout int
    Maximum timeout for executing the created command on ECS instances, in seconds. Value range: 30~86400. Default: 60.
    Type string
    Command type. Shell: Creates a Shell script for Linux instances. Python: Creates a Python script. Bat: Creates a Bat script. PowerShell: Creates a PowerShell script.
    UpdatedTime string
    Update time.
    Username string
    Username for executing the command.
    WorkingDir string
    Directory where the created command runs on ECS instances.
    CommandContent string
    Command content. Enter the command content according to the ContentEncoding parameter. Command content must not exceed 16 KB.
    CommandId string
    Custom command ID.
    ContentEncoding string
    Whether the command content is processed with Base64 encoding. Base64 (default): Processed with Base64 encoding. PlainText: Not encoded.
    CreatedTime string
    Creation time.
    Description string
    Command description. Defaults to an empty string. Character length: 0~256. No restriction on special characters.
    EnableParameter bool
    Whether the created command uses custom parameters. false: Default, does not use custom parameters. true: Uses custom parameters.
    InvocationTimes int
    Number of times the command has been invoked.
    Name string
    Command name. Character length: 1~32. No restriction on special characters.
    ParameterDefinitions []CommandParameterDefinitionArgs
    ProjectName string
    Project to which the resource belongs. Each resource can belong to only one project.
    ProviderName string
    Command provider.
    Tags []CommandTagArgs
    Timeout int
    Maximum timeout for executing the created command on ECS instances, in seconds. Value range: 30~86400. Default: 60.
    Type string
    Command type. Shell: Creates a Shell script for Linux instances. Python: Creates a Python script. Bat: Creates a Bat script. PowerShell: Creates a PowerShell script.
    UpdatedTime string
    Update time.
    Username string
    Username for executing the command.
    WorkingDir string
    Directory where the created command runs on ECS instances.
    commandContent String
    Command content. Enter the command content according to the ContentEncoding parameter. Command content must not exceed 16 KB.
    commandId String
    Custom command ID.
    contentEncoding String
    Whether the command content is processed with Base64 encoding. Base64 (default): Processed with Base64 encoding. PlainText: Not encoded.
    createdTime String
    Creation time.
    description String
    Command description. Defaults to an empty string. Character length: 0~256. No restriction on special characters.
    enableParameter Boolean
    Whether the created command uses custom parameters. false: Default, does not use custom parameters. true: Uses custom parameters.
    invocationTimes Integer
    Number of times the command has been invoked.
    name String
    Command name. Character length: 1~32. No restriction on special characters.
    parameterDefinitions List<CommandParameterDefinition>
    projectName String
    Project to which the resource belongs. Each resource can belong to only one project.
    providerName String
    Command provider.
    tags List<CommandTag>
    timeout Integer
    Maximum timeout for executing the created command on ECS instances, in seconds. Value range: 30~86400. Default: 60.
    type String
    Command type. Shell: Creates a Shell script for Linux instances. Python: Creates a Python script. Bat: Creates a Bat script. PowerShell: Creates a PowerShell script.
    updatedTime String
    Update time.
    username String
    Username for executing the command.
    workingDir String
    Directory where the created command runs on ECS instances.
    commandContent string
    Command content. Enter the command content according to the ContentEncoding parameter. Command content must not exceed 16 KB.
    commandId string
    Custom command ID.
    contentEncoding string
    Whether the command content is processed with Base64 encoding. Base64 (default): Processed with Base64 encoding. PlainText: Not encoded.
    createdTime string
    Creation time.
    description string
    Command description. Defaults to an empty string. Character length: 0~256. No restriction on special characters.
    enableParameter boolean
    Whether the created command uses custom parameters. false: Default, does not use custom parameters. true: Uses custom parameters.
    invocationTimes number
    Number of times the command has been invoked.
    name string
    Command name. Character length: 1~32. No restriction on special characters.
    parameterDefinitions CommandParameterDefinition[]
    projectName string
    Project to which the resource belongs. Each resource can belong to only one project.
    providerName string
    Command provider.
    tags CommandTag[]
    timeout number
    Maximum timeout for executing the created command on ECS instances, in seconds. Value range: 30~86400. Default: 60.
    type string
    Command type. Shell: Creates a Shell script for Linux instances. Python: Creates a Python script. Bat: Creates a Bat script. PowerShell: Creates a PowerShell script.
    updatedTime string
    Update time.
    username string
    Username for executing the command.
    workingDir string
    Directory where the created command runs on ECS instances.
    command_content str
    Command content. Enter the command content according to the ContentEncoding parameter. Command content must not exceed 16 KB.
    command_id str
    Custom command ID.
    content_encoding str
    Whether the command content is processed with Base64 encoding. Base64 (default): Processed with Base64 encoding. PlainText: Not encoded.
    created_time str
    Creation time.
    description str
    Command description. Defaults to an empty string. Character length: 0~256. No restriction on special characters.
    enable_parameter bool
    Whether the created command uses custom parameters. false: Default, does not use custom parameters. true: Uses custom parameters.
    invocation_times int
    Number of times the command has been invoked.
    name str
    Command name. Character length: 1~32. No restriction on special characters.
    parameter_definitions Sequence[CommandParameterDefinitionArgs]
    project_name str
    Project to which the resource belongs. Each resource can belong to only one project.
    provider_name str
    Command provider.
    tags Sequence[CommandTagArgs]
    timeout int
    Maximum timeout for executing the created command on ECS instances, in seconds. Value range: 30~86400. Default: 60.
    type str
    Command type. Shell: Creates a Shell script for Linux instances. Python: Creates a Python script. Bat: Creates a Bat script. PowerShell: Creates a PowerShell script.
    updated_time str
    Update time.
    username str
    Username for executing the command.
    working_dir str
    Directory where the created command runs on ECS instances.
    commandContent String
    Command content. Enter the command content according to the ContentEncoding parameter. Command content must not exceed 16 KB.
    commandId String
    Custom command ID.
    contentEncoding String
    Whether the command content is processed with Base64 encoding. Base64 (default): Processed with Base64 encoding. PlainText: Not encoded.
    createdTime String
    Creation time.
    description String
    Command description. Defaults to an empty string. Character length: 0~256. No restriction on special characters.
    enableParameter Boolean
    Whether the created command uses custom parameters. false: Default, does not use custom parameters. true: Uses custom parameters.
    invocationTimes Number
    Number of times the command has been invoked.
    name String
    Command name. Character length: 1~32. No restriction on special characters.
    parameterDefinitions List<Property Map>
    projectName String
    Project to which the resource belongs. Each resource can belong to only one project.
    providerName String
    Command provider.
    tags List<Property Map>
    timeout Number
    Maximum timeout for executing the created command on ECS instances, in seconds. Value range: 30~86400. Default: 60.
    type String
    Command type. Shell: Creates a Shell script for Linux instances. Python: Creates a Python script. Bat: Creates a Bat script. PowerShell: Creates a PowerShell script.
    updatedTime String
    Update time.
    username String
    Username for executing the command.
    workingDir String
    Directory where the created command runs on ECS instances.

    Supporting Types

    CommandParameterDefinition, CommandParameterDefinitionArgs

    DecimalPrecision int
    Allowed decimal places for custom parameter (number).
    DefaultValue string
    Default value for custom parameter.
    MaxLength int
    Maximum length for custom parameter (string).
    MaxValue string
    Maximum value for custom parameter (number).
    MinLength int
    Minimum length for custom parameter (string).
    MinValue string
    Minimum value for custom parameter (number).
    Name string
    Custom parameter name. Define it in the script using {{Param}}. Each parameter name must not exceed 64 bytes. Follow Shell variable naming rules: combinations of a-z, A-Z, 0-9, -, and _. The first character cannot be a digit. No spaces allowed; underscores can be used instead.
    Required bool
    Whether it is required.
    Type string
    Custom parameter type. Values: String: Indicates the custom parameter type is String (string type). Digit: Indicates the custom parameter type is Digit (numeric type).
    DecimalPrecision int
    Allowed decimal places for custom parameter (number).
    DefaultValue string
    Default value for custom parameter.
    MaxLength int
    Maximum length for custom parameter (string).
    MaxValue string
    Maximum value for custom parameter (number).
    MinLength int
    Minimum length for custom parameter (string).
    MinValue string
    Minimum value for custom parameter (number).
    Name string
    Custom parameter name. Define it in the script using {{Param}}. Each parameter name must not exceed 64 bytes. Follow Shell variable naming rules: combinations of a-z, A-Z, 0-9, -, and _. The first character cannot be a digit. No spaces allowed; underscores can be used instead.
    Required bool
    Whether it is required.
    Type string
    Custom parameter type. Values: String: Indicates the custom parameter type is String (string type). Digit: Indicates the custom parameter type is Digit (numeric type).
    decimalPrecision Integer
    Allowed decimal places for custom parameter (number).
    defaultValue String
    Default value for custom parameter.
    maxLength Integer
    Maximum length for custom parameter (string).
    maxValue String
    Maximum value for custom parameter (number).
    minLength Integer
    Minimum length for custom parameter (string).
    minValue String
    Minimum value for custom parameter (number).
    name String
    Custom parameter name. Define it in the script using {{Param}}. Each parameter name must not exceed 64 bytes. Follow Shell variable naming rules: combinations of a-z, A-Z, 0-9, -, and _. The first character cannot be a digit. No spaces allowed; underscores can be used instead.
    required Boolean
    Whether it is required.
    type String
    Custom parameter type. Values: String: Indicates the custom parameter type is String (string type). Digit: Indicates the custom parameter type is Digit (numeric type).
    decimalPrecision number
    Allowed decimal places for custom parameter (number).
    defaultValue string
    Default value for custom parameter.
    maxLength number
    Maximum length for custom parameter (string).
    maxValue string
    Maximum value for custom parameter (number).
    minLength number
    Minimum length for custom parameter (string).
    minValue string
    Minimum value for custom parameter (number).
    name string
    Custom parameter name. Define it in the script using {{Param}}. Each parameter name must not exceed 64 bytes. Follow Shell variable naming rules: combinations of a-z, A-Z, 0-9, -, and _. The first character cannot be a digit. No spaces allowed; underscores can be used instead.
    required boolean
    Whether it is required.
    type string
    Custom parameter type. Values: String: Indicates the custom parameter type is String (string type). Digit: Indicates the custom parameter type is Digit (numeric type).
    decimal_precision int
    Allowed decimal places for custom parameter (number).
    default_value str
    Default value for custom parameter.
    max_length int
    Maximum length for custom parameter (string).
    max_value str
    Maximum value for custom parameter (number).
    min_length int
    Minimum length for custom parameter (string).
    min_value str
    Minimum value for custom parameter (number).
    name str
    Custom parameter name. Define it in the script using {{Param}}. Each parameter name must not exceed 64 bytes. Follow Shell variable naming rules: combinations of a-z, A-Z, 0-9, -, and _. The first character cannot be a digit. No spaces allowed; underscores can be used instead.
    required bool
    Whether it is required.
    type str
    Custom parameter type. Values: String: Indicates the custom parameter type is String (string type). Digit: Indicates the custom parameter type is Digit (numeric type).
    decimalPrecision Number
    Allowed decimal places for custom parameter (number).
    defaultValue String
    Default value for custom parameter.
    maxLength Number
    Maximum length for custom parameter (string).
    maxValue String
    Maximum value for custom parameter (number).
    minLength Number
    Minimum length for custom parameter (string).
    minValue String
    Minimum value for custom parameter (number).
    name String
    Custom parameter name. Define it in the script using {{Param}}. Each parameter name must not exceed 64 bytes. Follow Shell variable naming rules: combinations of a-z, A-Z, 0-9, -, and _. The first character cannot be a digit. No spaces allowed; underscores can be used instead.
    required Boolean
    Whether it is required.
    type String
    Custom parameter type. Values: String: Indicates the custom parameter type is String (string type). Digit: Indicates the custom parameter type is Digit (numeric type).

    CommandTag, CommandTagArgs

    Key string
    User tag key. Naming rules: must not start with any case combination of volc: or sys:. Only language characters, digits, spaces, and the following English symbols are allowed: '_', '.', ':', '/', '=', '+', '-', '@'. Length must be between 1 and 128 characters.
    Value string
    User tag value. Naming rules: only language characters, digits, spaces, and the following English symbols are allowed: '_', '.', ':', '/', '=', '+', '-', '@'. Can be empty. Length must be between 0 and 256 characters.
    Key string
    User tag key. Naming rules: must not start with any case combination of volc: or sys:. Only language characters, digits, spaces, and the following English symbols are allowed: '_', '.', ':', '/', '=', '+', '-', '@'. Length must be between 1 and 128 characters.
    Value string
    User tag value. Naming rules: only language characters, digits, spaces, and the following English symbols are allowed: '_', '.', ':', '/', '=', '+', '-', '@'. Can be empty. Length must be between 0 and 256 characters.
    key String
    User tag key. Naming rules: must not start with any case combination of volc: or sys:. Only language characters, digits, spaces, and the following English symbols are allowed: '_', '.', ':', '/', '=', '+', '-', '@'. Length must be between 1 and 128 characters.
    value String
    User tag value. Naming rules: only language characters, digits, spaces, and the following English symbols are allowed: '_', '.', ':', '/', '=', '+', '-', '@'. Can be empty. Length must be between 0 and 256 characters.
    key string
    User tag key. Naming rules: must not start with any case combination of volc: or sys:. Only language characters, digits, spaces, and the following English symbols are allowed: '_', '.', ':', '/', '=', '+', '-', '@'. Length must be between 1 and 128 characters.
    value string
    User tag value. Naming rules: only language characters, digits, spaces, and the following English symbols are allowed: '_', '.', ':', '/', '=', '+', '-', '@'. Can be empty. Length must be between 0 and 256 characters.
    key str
    User tag key. Naming rules: must not start with any case combination of volc: or sys:. Only language characters, digits, spaces, and the following English symbols are allowed: '_', '.', ':', '/', '=', '+', '-', '@'. Length must be between 1 and 128 characters.
    value str
    User tag value. Naming rules: only language characters, digits, spaces, and the following English symbols are allowed: '_', '.', ':', '/', '=', '+', '-', '@'. Can be empty. Length must be between 0 and 256 characters.
    key String
    User tag key. Naming rules: must not start with any case combination of volc: or sys:. Only language characters, digits, spaces, and the following English symbols are allowed: '_', '.', ':', '/', '=', '+', '-', '@'. Length must be between 1 and 128 characters.
    value String
    User tag value. Naming rules: only language characters, digits, spaces, and the following English symbols are allowed: '_', '.', ':', '/', '=', '+', '-', '@'. Can be empty. Length must be between 0 and 256 characters.

    Import

    $ pulumi import volcenginecc:ecs/command:Command example "command_id"
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    volcenginecc volcengine/pulumi-volcenginecc
    License
    MPL-2.0
    Notes
    This Pulumi package is based on the volcenginecc Terraform Provider.
    volcenginecc logo
    Viewing docs for volcenginecc v0.0.32
    published on Thursday, Apr 23, 2026 by Volcengine
      Try Pulumi Cloud free. Your team will thank you.