Skip to content

CommandsProps

Properties for defining a Commands.

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

Initializer

from ros_cdk_ecs import datasource
datasource.CommandsProps(
  command_id: typing.Union[str, IResolvable] = None,
  command_name: typing.Union[str, IResolvable] = None,
  description: typing.Union[str, IResolvable] = None,
  refresh_options: typing.Union[str, IResolvable] = None,
  type: typing.Union[str, IResolvable] = None
)

Properties

Name Type Description
command_id typing.Union[str, ros_cdk_core.IResolvable] Property commandId: The ID of the command.
command_name typing.Union[str, ros_cdk_core.IResolvable] Property commandName: The name of the command.
description typing.Union[str, ros_cdk_core.IResolvable] Property description: Command description.
refresh_options typing.Union[str, ros_cdk_core.IResolvable] Property refreshOptions: The refresh strategy for the datasource resource when the stack is updated.
type typing.Union[str, ros_cdk_core.IResolvable] Property type: The command type.

command_idOptional

command_id: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property commandId: The ID of the command.


command_nameOptional

command_name: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property commandName: The name of the command.

Partial command names are not supported.


descriptionOptional

description: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property description: Command description.


refresh_optionsOptional

refresh_options: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

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: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

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