ALIYUN::CloudPhone::RunCommand は、クラウドフォンでコマンドを実行するために使用されます。
構文
{
"Type": "ALIYUN::CloudPhone::RunCommand",
"Properties": {
"Command": String,
"InstanceIds": List,
"RunAgainOn": List
}
}プロパティ
プロパティ | タイプ | 必須 | 編集可能 | 説明 | 制約 |
Command | String | はい | いいえ | 実行するコマンド。 | コマンドは最大 1024 バイトで、英字、数字、アンダースコア (_)、ピリオド (.)、スラッシュ (/)、コロン (:)、およびハイフン (-) のみを含めることができます。 |
InstanceIds | List | はい | いいえ | コマンドを実行するクラウドフォンの ID。 | 最大 10 台のクラウドフォンを指定できます。 |
RunAgainOn | List | いいえ | はい | コマンドを再実行する段階。 | なし。 |
戻り値
Fn::GetAtt
なし。
例
YAML 形式
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
Command:
Description:
en: '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 (-).'
Required: true
Type: String
InstanceIds:
AssociationProperty: List[Parameter]
AssociationPropertyMetadata:
Parameter:
Required: false
Type: String
Description:
en: 'ID of the instance executing the command.
Range of n: 1 ~ 10'
MaxLength: 10
MinLength: 1
Required: true
Type: Json
Resources:
RunCommand:
Properties:
Command:
Ref: Command
InstanceIds:
Ref: InstanceIds
Type: ALIYUN::CloudPhone::RunCommand
JSON 形式
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"Command": {
"Type": "String",
"Description": {
"en": "The command to be executed.\nThe maximum length of a command is 1024 bytes, and only supports lowercase letters, numbers, downline (_), points (.), Slanting (/), colon (:), medium line (-)."
},
"Required": true
},
"InstanceIds": {
"AssociationPropertyMetadata": {
"Parameter": {
"Type": "String",
"Required": false
}
},
"AssociationProperty": "List[Parameter]",
"Type": "Json",
"Description": {
"en": "ID of the instance executing the command.\nRange of n: 1 ~ 10"
},
"Required": true,
"MinLength": 1,
"MaxLength": 10
}
},
"Resources": {
"RunCommand": {
"Type": "ALIYUN::CloudPhone::RunCommand",
"Properties": {
"Command": {
"Ref": "Command"
},
"InstanceIds": {
"Ref": "InstanceIds"
}
}
}
}
}