Skip to content

CommandsProps

Properties for defining a Commands.

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

Initializer

import { datasource } from '@alicloud/ros-cdk-ecs'
const commandsProps: datasource.CommandsProps = { ... }

Properties

Name Type Description
commandId string | @alicloud/ros-cdk-core.IResolvable Property commandId: The ID of the command.
commandName string | @alicloud/ros-cdk-core.IResolvable Property commandName: The name of the command.
description string | @alicloud/ros-cdk-core.IResolvable Property description: Command description.
refreshOptions string | @alicloud/ros-cdk-core.IResolvable Property refreshOptions: The refresh strategy for the datasource resource when the stack is updated.
type string | @alicloud/ros-cdk-core.IResolvable Property type: The command type.

commandIdOptional

public readonly commandId: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property commandId: The ID of the command.


commandNameOptional

public readonly commandName: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property commandName: The name of the command.

Partial command names are not supported.


descriptionOptional

public readonly description: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property description: Command description.


refreshOptionsOptional

public readonly refreshOptions: string | IResolvable;
  • Type: string | @alicloud/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

public readonly type: string | IResolvable;
  • Type: string | @alicloud/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