Skip to content

CommandsProps

Properties for defining a Commands.

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

Initializer

import com.aliyun.ros.cdk.ecs.datasource.CommandsProps;
CommandsProps.builder()
//  .commandId(java.lang.String)
//  .commandId(IResolvable)
//  .commandName(java.lang.String)
//  .commandName(IResolvable)
//  .description(java.lang.String)
//  .description(IResolvable)
//  .refreshOptions(java.lang.String)
//  .refreshOptions(IResolvable)
//  .type(java.lang.String)
//  .type(IResolvable)
    .build();

Properties

Name Type Description
commandId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property commandId: The ID of the command.
commandName java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property commandName: The name of the command.
description java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property description: Command description.
refreshOptions java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property refreshOptions: The refresh strategy for the datasource resource when the stack is updated.
type java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property type: The command type.

commandIdOptional

public java.lang.Object getCommandId();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property commandId: The ID of the command.


commandNameOptional

public java.lang.Object getCommandName();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property commandName: The name of the command.

Partial command names are not supported.


descriptionOptional

public java.lang.Object getDescription();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property description: Command description.


refreshOptionsOptional

public java.lang.Object getRefreshOptions();
  • Type: java.lang.String OR com.aliyun.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 java.lang.Object getType();
  • Type: java.lang.String OR com.aliyun.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