Skip to content

CommandProps

Properties for defining a Command.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-ecs-command

Initializer

import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkecs"
&alicloudroscdkecs.CommandProps {
    Type: interface{},
    CommandContent: interface{},
    ContentEncoding: interface{},
    Description: interface{},
    EnableParameter: interface{},
    Name: interface{},
    ResourceGroupId: interface{},
    Tags: *[]github.com/alibabacloud-go/ros-cdk/alicloudroscdkecs.RosCommand.TagsProperty,
    Timeout: interface{},
    WorkingDir: interface{},
}

Properties

Name Type Description
Type interface{} Property type: The type of command.
CommandContent interface{} Property commandContent: The content of command.
ContentEncoding interface{} Property contentEncoding: The encoding mode of script content (CommandContent).
Description interface{} Property description: The description of command.
EnableParameter interface{} Property enableParameter: Specifies whether the script contains custom parameters.
Name interface{} Property name: The name of command.
ResourceGroupId interface{} Property resourceGroupId: Resource group id.
Tags *[]TagsProperty Property tags: Tags to attach to command.
Timeout interface{} Property timeout: Total timeout when the command is executed in the instance.
WorkingDir interface{} Property workingDir: The path where command will be executed in the instance.

TypeRequired

Type interface{}
  • Type: interface{}

Property type: The type of command.


CommandContentOptional

CommandContent interface{}
  • Type: interface{}

Property commandContent: The content of command.

Content requires base64 encoding. Maximum size support 16KB.


ContentEncodingOptional

ContentEncoding interface{}
  • Type: interface{}

Property contentEncoding: The encoding mode of script content (CommandContent).

Valid values (case insensitive): PlainText: The script content is not encoded, and transmitted in plaintext. Base64: base64-encoded. Default value: Base64. If the specified value of this parameter is invalid, Base64 is used by default.


DescriptionOptional

Description interface{}
  • Type: interface{}

Property description: The description of command.


EnableParameterOptional

EnableParameter interface{}
  • Type: interface{}

Property enableParameter: Specifies whether the script contains custom parameters.

Default value: false


NameOptional

Name interface{}
  • Type: interface{}

Property name: The name of command.


ResourceGroupIdOptional

ResourceGroupId interface{}
  • Type: interface{}

Property resourceGroupId: Resource group id.


TagsOptional

Tags *[]TagsProperty

Property tags: Tags to attach to command.

Max support 20 tags to add during create command. Each tag with two properties Key and Value, and Key is required.


TimeoutOptional

Timeout interface{}
  • Type: interface{}

Property timeout: Total timeout when the command is executed in the instance.

Input the time unit as second. Default is 60s.


WorkingDirOptional

WorkingDir interface{}
  • Type: interface{}

Property workingDir: The path where command will be executed in the instance.