Skip to content

CommandsProps

Properties for defining a Commands.

See https://www.alibabacloud.com/help/ros/developer-reference/datasource-ecs-commands

Initializer

import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkecs/datasource"
&datasource.CommandsProps {
    CommandId: interface{},
    CommandName: interface{},
    Description: interface{},
    RefreshOptions: interface{},
    Type: interface{},
}

Properties

Name Type Description
CommandId interface{} Property commandId: The ID of the command.
CommandName interface{} Property commandName: The name of the command.
Description interface{} Property description: Command description.
RefreshOptions interface{} Property refreshOptions: The refresh strategy for the datasource resource when the stack is updated.
Type interface{} Property type: The command type.

CommandIdOptional

CommandId interface{}
  • Type: interface{}

Property commandId: The ID of the command.


CommandNameOptional

CommandName interface{}
  • Type: interface{}

Property commandName: The name of the command.

Partial command names are not supported.


DescriptionOptional

Description interface{}
  • Type: interface{}

Property description: Command description.


RefreshOptionsOptional

RefreshOptions interface{}
  • Type: interface{}

Property refreshOptions: The refresh strategy for the datasource resource when the stack is updated.

Valid values:

  • Never: Never refresh the datasource resource when the stack is updated.
  • Always: Always refresh the datasource resource when the stack is updated. Default is Never.

TypeOptional

Type interface{}
  • Type: interface{}

Property type: The command type.

Valid values: RunBatScript: batch command, applicable to Windows instances RunPowerShellScript: PowerShell command, applicable to Windows instances RunShellScript: shell command, applicable to Linux instances