-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathACS::ECS::ModifyInstanceVpcAttribute.yml
67 lines (67 loc) · 1.8 KB
/
ACS::ECS::ModifyInstanceVpcAttribute.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
FormatVersion: OOS-2019-06-01
Description:
name-en: ACS::ECS::ModifyInstanceVpcAttribute
name-zh-cn: 修改ECS实例的Vpc属性
en: Modifies the VPC attributes of an ECS instance
zh-cn: 修改一台专有网络类型ECS实例的专有网络VPC属性
Parameters:
regionId:
Description:
en: The ID of region
zh-cn: 地域ID
Type: String
Default: '{{ ACS::RegionId }}'
instanceId:
Description:
en: The ID of the instance
zh-cn: 实例ID
Type: String
MinLength: 1
MaxLength: 30
vSwitchId:
Description:
en: The vSwitch ID for the specific VPC
zh-cn: 虚拟交换机ID
Type: String
AllowedPattern: vsw-[A-Za-z0-9]*
MinLength: 1
MaxLength: 30
Tasks:
- Name: stopInstance
Action: ACS::ExecuteAPI
Description:
en: Stops the ECS instance with the specified instance ID
zh-cn: 通过实例ID停止ECS实例
Properties:
Service: ECS
API: StopInstance
Parameters:
RegionId: '{{ regionId }}'
InstanceId: '{{ instanceId }}'
- Name: untilInstanceReady
Action: ACS::WaitFor
Description:
en: Waits for the ECS instance to enter stoped status
zh-cn: 等待ECS的实例状态至Stopped
Properties:
Service: ECS
API: DescribeInstances
Parameters:
RegionId: '{{ regionId }}'
InstanceIds:
- '{{ instanceId }}'
DesiredValues:
- Stopped
PropertySelector: Instances.Instance[].Status
- Name: modifyInstanceVpcAttribute
Action: ACS::ExecuteAPI
Description:
en: Modifies the VPC attributes of an ECS instance
zh-cn: 修改一台专有网络类型ECS实例的专有网络VPC属性
Properties:
Service: ECS
API: ModifyInstanceVpcAttribute
Parameters:
RegionId: '{{ regionId }}'
InstanceId: '{{ instanceId }}'
VSwitchId: '{{ vSwitchId }}'