Skip to content

RunCommandProps

Properties for defining a RunCommand.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-cloudphone-runcommand

Initializer

import com.aliyun.ros.cdk.cloudphone.RunCommandProps;
RunCommandProps.builder()
    .command(java.lang.String)
    .command(IResolvable)
    .instanceIds(IResolvable)
    .instanceIds(java.util.List<java.lang.String)
    .instanceIds(IResolvable>)
//  .runAgainOn(IResolvable)
//  .runAgainOn(java.util.List<java.lang.String)
//  .runAgainOn(IResolvable>)
    .build();

Properties

Name Type Description
command java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property command: The command to be executed.
instanceIds com.aliyun.ros.cdk.core.IResolvable OR java.util.List Property instanceIds: ID of the instance executing the command.
runAgainOn com.aliyun.ros.cdk.core.IResolvable OR java.util.List Property runAgainOn: The stage of executing the command again.

commandRequired

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

Property command: The command to be executed.

The maximum length of a command is 1024 bytes, and only supports lowercase letters, numbers, downline (_), points (.), Slanting (/), colon (:), medium line (-).


instanceIdsRequired

public java.lang.Object getInstanceIds();
  • Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List

Property instanceIds: ID of the instance executing the command.

Range of n: 1 ~ 10


runAgainOnOptional

public java.lang.Object getRunAgainOn();
  • Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List

Property runAgainOn: The stage of executing the command again.