published on Thursday, Apr 23, 2026 by Volcengine
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:
- Command
Content 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.
- Content
Encoding 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.
- Enable
Parameter bool - Whether the created command uses custom parameters. false: Default, does not use custom parameters. true: Uses custom parameters.
- Parameter
Definitions List<Volcengine.Command Parameter Definition> - Project
Name string - Project to which the resource belongs. Each resource can belong to only one project.
-
List<Volcengine.
Command Tag> - 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.
- Working
Dir string - Directory where the created command runs on ECS instances.
- Command
Content 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.
- Content
Encoding 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.
- Enable
Parameter bool - Whether the created command uses custom parameters. false: Default, does not use custom parameters. true: Uses custom parameters.
- Parameter
Definitions []CommandParameter Definition Args - Project
Name string - Project to which the resource belongs. Each resource can belong to only one project.
-
[]Command
Tag Args - 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.
- Working
Dir string - Directory where the created command runs on ECS instances.
- command
Content 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.
- content
Encoding 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.
- enable
Parameter Boolean - Whether the created command uses custom parameters. false: Default, does not use custom parameters. true: Uses custom parameters.
- parameter
Definitions List<CommandParameter Definition> - project
Name String - Project to which the resource belongs. Each resource can belong to only one project.
-
List<Command
Tag> - 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.
- working
Dir String - Directory where the created command runs on ECS instances.
- command
Content 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.
- content
Encoding 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.
- enable
Parameter boolean - Whether the created command uses custom parameters. false: Default, does not use custom parameters. true: Uses custom parameters.
- parameter
Definitions CommandParameter Definition[] - project
Name string - Project to which the resource belongs. Each resource can belong to only one project.
-
Command
Tag[] - 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.
- working
Dir 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[CommandParameter Definition Args] - project_
name str - Project to which the resource belongs. Each resource can belong to only one project.
-
Sequence[Command
Tag Args] - 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.
- command
Content 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.
- content
Encoding 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.
- enable
Parameter Boolean - Whether the created command uses custom parameters. false: Default, does not use custom parameters. true: Uses custom parameters.
- parameter
Definitions List<Property Map> - project
Name String - Project to which the resource belongs. Each resource can belong to only one project.
- 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.
- working
Dir 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:
- Command
Id string - Custom command ID.
- Created
Time string - Creation time.
- Id string
- The provider-assigned unique ID for this managed resource.
- Invocation
Times int - Number of times the command has been invoked.
- Provider
Name string - Command provider.
- Updated
Time string - Update time.
- Command
Id string - Custom command ID.
- Created
Time string - Creation time.
- Id string
- The provider-assigned unique ID for this managed resource.
- Invocation
Times int - Number of times the command has been invoked.
- Provider
Name string - Command provider.
- Updated
Time string - Update time.
- command
Id String - Custom command ID.
- created
Time String - Creation time.
- id String
- The provider-assigned unique ID for this managed resource.
- invocation
Times Integer - Number of times the command has been invoked.
- provider
Name String - Command provider.
- updated
Time String - Update time.
- command
Id string - Custom command ID.
- created
Time string - Creation time.
- id string
- The provider-assigned unique ID for this managed resource.
- invocation
Times number - Number of times the command has been invoked.
- provider
Name string - Command provider.
- updated
Time 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.
- command
Id String - Custom command ID.
- created
Time String - Creation time.
- id String
- The provider-assigned unique ID for this managed resource.
- invocation
Times Number - Number of times the command has been invoked.
- provider
Name String - Command provider.
- updated
Time 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) -> Commandfunc 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.
- Command
Content string - Command content. Enter the command content according to the ContentEncoding parameter. Command content must not exceed 16 KB.
- Command
Id string - Custom command ID.
- Content
Encoding string - Whether the command content is processed with Base64 encoding. Base64 (default): Processed with Base64 encoding. PlainText: Not encoded.
- Created
Time string - Creation time.
- Description string
- 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 string
- Command name. Character length: 1~32. No restriction on special characters.
- Parameter
Definitions List<Volcengine.Command Parameter Definition> - Project
Name string - Project to which the resource belongs. Each resource can belong to only one project.
- Provider
Name string - Command provider.
-
List<Volcengine.
Command Tag> - 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.
- Updated
Time string - Update time.
- Username string
- Username for executing the command.
- Working
Dir string - Directory where the created command runs on ECS instances.
- Command
Content string - Command content. Enter the command content according to the ContentEncoding parameter. Command content must not exceed 16 KB.
- Command
Id string - Custom command ID.
- Content
Encoding string - Whether the command content is processed with Base64 encoding. Base64 (default): Processed with Base64 encoding. PlainText: Not encoded.
- Created
Time string - Creation time.
- Description string
- 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 string
- Command name. Character length: 1~32. No restriction on special characters.
- Parameter
Definitions []CommandParameter Definition Args - Project
Name string - Project to which the resource belongs. Each resource can belong to only one project.
- Provider
Name string - Command provider.
-
[]Command
Tag Args - 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.
- Updated
Time string - Update time.
- Username string
- Username for executing the command.
- Working
Dir string - Directory where the created command runs on ECS instances.
- command
Content String - Command content. Enter the command content according to the ContentEncoding parameter. Command content must not exceed 16 KB.
- command
Id String - Custom command ID.
- content
Encoding String - Whether the command content is processed with Base64 encoding. Base64 (default): Processed with Base64 encoding. PlainText: Not encoded.
- created
Time String - Creation time.
- description String
- Command description. Defaults to an empty string. Character length: 0~256. No restriction on special characters.
- enable
Parameter Boolean - Whether the created command uses custom parameters. false: Default, does not use custom parameters. true: Uses custom parameters.
- invocation
Times Integer - Number of times the command has been invoked.
- name String
- Command name. Character length: 1~32. No restriction on special characters.
- parameter
Definitions List<CommandParameter Definition> - project
Name String - Project to which the resource belongs. Each resource can belong to only one project.
- provider
Name String - Command provider.
-
List<Command
Tag> - 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.
- updated
Time String - Update time.
- username String
- Username for executing the command.
- working
Dir String - Directory where the created command runs on ECS instances.
- command
Content string - Command content. Enter the command content according to the ContentEncoding parameter. Command content must not exceed 16 KB.
- command
Id string - Custom command ID.
- content
Encoding string - Whether the command content is processed with Base64 encoding. Base64 (default): Processed with Base64 encoding. PlainText: Not encoded.
- created
Time string - Creation time.
- description string
- Command description. Defaults to an empty string. Character length: 0~256. No restriction on special characters.
- enable
Parameter boolean - Whether the created command uses custom parameters. false: Default, does not use custom parameters. true: Uses custom parameters.
- invocation
Times number - Number of times the command has been invoked.
- name string
- Command name. Character length: 1~32. No restriction on special characters.
- parameter
Definitions CommandParameter Definition[] - project
Name string - Project to which the resource belongs. Each resource can belong to only one project.
- provider
Name string - Command provider.
-
Command
Tag[] - 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.
- updated
Time string - Update time.
- username string
- Username for executing the command.
- working
Dir 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[CommandParameter Definition Args] - project_
name str - Project to which the resource belongs. Each resource can belong to only one project.
- provider_
name str - Command provider.
-
Sequence[Command
Tag Args] - 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.
- command
Content String - Command content. Enter the command content according to the ContentEncoding parameter. Command content must not exceed 16 KB.
- command
Id String - Custom command ID.
- content
Encoding String - Whether the command content is processed with Base64 encoding. Base64 (default): Processed with Base64 encoding. PlainText: Not encoded.
- created
Time String - Creation time.
- description String
- Command description. Defaults to an empty string. Character length: 0~256. No restriction on special characters.
- enable
Parameter Boolean - Whether the created command uses custom parameters. false: Default, does not use custom parameters. true: Uses custom parameters.
- invocation
Times Number - Number of times the command has been invoked.
- name String
- Command name. Character length: 1~32. No restriction on special characters.
- parameter
Definitions List<Property Map> - project
Name String - Project to which the resource belongs. Each resource can belong to only one project.
- provider
Name String - Command provider.
- 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.
- updated
Time String - Update time.
- username String
- Username for executing the command.
- working
Dir String - Directory where the created command runs on ECS instances.
Supporting Types
CommandParameterDefinition, CommandParameterDefinitionArgs
- Decimal
Precision int - Allowed decimal places for custom parameter (number).
- Default
Value string - Default value for custom parameter.
- Max
Length int - Maximum length for custom parameter (string).
- Max
Value string - Maximum value for custom parameter (number).
- Min
Length int - Minimum length for custom parameter (string).
- Min
Value 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).
- Decimal
Precision int - Allowed decimal places for custom parameter (number).
- Default
Value string - Default value for custom parameter.
- Max
Length int - Maximum length for custom parameter (string).
- Max
Value string - Maximum value for custom parameter (number).
- Min
Length int - Minimum length for custom parameter (string).
- Min
Value 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).
- decimal
Precision Integer - Allowed decimal places for custom parameter (number).
- default
Value String - Default value for custom parameter.
- max
Length Integer - Maximum length for custom parameter (string).
- max
Value String - Maximum value for custom parameter (number).
- min
Length Integer - Minimum length for custom parameter (string).
- min
Value 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 number - Allowed decimal places for custom parameter (number).
- default
Value string - Default value for custom parameter.
- max
Length number - Maximum length for custom parameter (string).
- max
Value string - Maximum value for custom parameter (number).
- min
Length number - Minimum length for custom parameter (string).
- min
Value 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).
- decimal
Precision Number - Allowed decimal places for custom parameter (number).
- default
Value String - Default value for custom parameter.
- max
Length Number - Maximum length for custom parameter (string).
- max
Value String - Maximum value for custom parameter (number).
- min
Length Number - Minimum length for custom parameter (string).
- min
Value 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
volcengineccTerraform Provider.
published on Thursday, Apr 23, 2026 by Volcengine
