@alicloud/ess20220222 1.8.20 → 1.8.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.ts +2 -2
- package/dist/client.js +17 -2
- package/dist/client.js.map +1 -1
- package/dist/models/CreateAlarmRequest.d.ts +15 -12
- package/dist/models/CreateAlarmRequest.js.map +1 -1
- package/dist/models/CreateNotificationConfigurationRequest.d.ts +4 -0
- package/dist/models/CreateNotificationConfigurationRequest.js.map +1 -1
- package/dist/models/CreateScalingGroupRequest.d.ts +30 -4
- package/dist/models/CreateScalingGroupRequest.js +4 -0
- package/dist/models/CreateScalingGroupRequest.js.map +1 -1
- package/dist/models/DescribeInstanceRefreshesResponseBody.d.ts +40 -0
- package/dist/models/DescribeInstanceRefreshesResponseBody.js.map +1 -1
- package/dist/models/DescribeNotificationConfigurationsResponseBody.d.ts +4 -0
- package/dist/models/DescribeNotificationConfigurationsResponseBody.js.map +1 -1
- package/dist/models/DescribeScalingGroupsRequest.d.ts +2 -2
- package/dist/models/DescribeScalingGroupsResponseBody.d.ts +22 -0
- package/dist/models/DescribeScalingGroupsResponseBody.js +4 -0
- package/dist/models/DescribeScalingGroupsResponseBody.js.map +1 -1
- package/dist/models/ModifyEciScalingConfigurationRequest.d.ts +1 -0
- package/dist/models/ModifyEciScalingConfigurationRequest.js +2 -0
- package/dist/models/ModifyEciScalingConfigurationRequest.js.map +1 -1
- package/dist/models/ModifyNotificationConfigurationRequest.d.ts +4 -0
- package/dist/models/ModifyNotificationConfigurationRequest.js.map +1 -1
- package/dist/models/ModifyScalingGroupRequest.d.ts +26 -0
- package/dist/models/ModifyScalingGroupRequest.js +4 -0
- package/dist/models/ModifyScalingGroupRequest.js.map +1 -1
- package/dist/models/StartInstanceRefreshRequest.d.ts +116 -4
- package/dist/models/StartInstanceRefreshRequest.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +22 -2
- package/src/models/CreateAlarmRequest.ts +15 -12
- package/src/models/CreateNotificationConfigurationRequest.ts +4 -0
- package/src/models/CreateScalingGroupRequest.ts +34 -4
- package/src/models/DescribeInstanceRefreshesResponseBody.ts +40 -0
- package/src/models/DescribeNotificationConfigurationsResponseBody.ts +4 -0
- package/src/models/DescribeScalingGroupsRequest.ts +2 -2
- package/src/models/DescribeScalingGroupsResponseBody.ts +26 -0
- package/src/models/ModifyEciScalingConfigurationRequest.ts +3 -0
- package/src/models/ModifyNotificationConfigurationRequest.ts +4 -0
- package/src/models/ModifyScalingGroupRequest.ts +30 -0
- package/src/models/StartInstanceRefreshRequest.ts +116 -4
|
@@ -491,7 +491,7 @@ export class CreateScalingGroupRequestServerGroups extends $dara.Model {
|
|
|
491
491
|
export class CreateScalingGroupRequestTags extends $dara.Model {
|
|
492
492
|
/**
|
|
493
493
|
* @remarks
|
|
494
|
-
* The tag key
|
|
494
|
+
* The tag key of the scaling group.
|
|
495
495
|
*
|
|
496
496
|
* @example
|
|
497
497
|
* Department
|
|
@@ -499,7 +499,7 @@ export class CreateScalingGroupRequestTags extends $dara.Model {
|
|
|
499
499
|
key?: string;
|
|
500
500
|
/**
|
|
501
501
|
* @remarks
|
|
502
|
-
*
|
|
502
|
+
* Identifies whether the tag is a propagatable tag. Valid values:
|
|
503
503
|
*
|
|
504
504
|
* * true: propagates the tag to only instances that are newly created.
|
|
505
505
|
* * false: does not propagate the tag to any instances.
|
|
@@ -512,7 +512,7 @@ export class CreateScalingGroupRequestTags extends $dara.Model {
|
|
|
512
512
|
propagate?: boolean;
|
|
513
513
|
/**
|
|
514
514
|
* @remarks
|
|
515
|
-
* The tag value
|
|
515
|
+
* The tag value of the scaling group.
|
|
516
516
|
*
|
|
517
517
|
* @example
|
|
518
518
|
* Finance
|
|
@@ -654,6 +654,19 @@ export class CreateScalingGroupRequest extends $dara.Model {
|
|
|
654
654
|
* priority
|
|
655
655
|
*/
|
|
656
656
|
allocationStrategy?: string;
|
|
657
|
+
/**
|
|
658
|
+
* @remarks
|
|
659
|
+
* Whether to enable automatic rebalancing for the scaling group. This takes effect only when BalancedOnly is enabled for the scaling group. Valid values:
|
|
660
|
+
*
|
|
661
|
+
* * false: Auto rebalancing is disabled for the scaling group.
|
|
662
|
+
* * true: If Auto rebalancing is enabled, the scaling group automatically detects the capacity of the zone. If the capacity of the zone is unbalanced, the scaling group actively scales out the zone and re-balances the capacity of the zone.
|
|
663
|
+
*
|
|
664
|
+
* Default value: false.
|
|
665
|
+
*
|
|
666
|
+
* @example
|
|
667
|
+
* false
|
|
668
|
+
*/
|
|
669
|
+
autoRebalance?: boolean;
|
|
657
670
|
/**
|
|
658
671
|
* @remarks
|
|
659
672
|
* Specifies whether to evenly distribute instances in the scaling group across multiple zones. This parameter takes effect only if you set `MultiAZPolicy` to `COMPOSABLE`. Valid values:
|
|
@@ -669,6 +682,19 @@ export class CreateScalingGroupRequest extends $dara.Model {
|
|
|
669
682
|
* false
|
|
670
683
|
*/
|
|
671
684
|
azBalance?: boolean;
|
|
685
|
+
/**
|
|
686
|
+
* @remarks
|
|
687
|
+
* The zone balancing mode. This mode takes effect only when the zone balancing mode is enabled. Valid values:
|
|
688
|
+
*
|
|
689
|
+
* * BalancedBestEffort: If a resource fails to be created in a zone, it is downgraded to another zone to ensure best-effort delivery of the resource.
|
|
690
|
+
* * BalancedOnly: If a resource fails to be created in a zone, it is not downgraded to another zone. The scale-out activity is partially successful to avoid excessive imbalance of resources in different zones.
|
|
691
|
+
*
|
|
692
|
+
* Default value: BalancedBestEffort.
|
|
693
|
+
*
|
|
694
|
+
* @example
|
|
695
|
+
* BalancedBestEffort
|
|
696
|
+
*/
|
|
697
|
+
balanceMode?: string;
|
|
672
698
|
/**
|
|
673
699
|
* @remarks
|
|
674
700
|
* The capacity options.
|
|
@@ -1067,7 +1093,7 @@ export class CreateScalingGroupRequest extends $dara.Model {
|
|
|
1067
1093
|
syncAlarmRuleToCms?: boolean;
|
|
1068
1094
|
/**
|
|
1069
1095
|
* @remarks
|
|
1070
|
-
* The
|
|
1096
|
+
* The information about the tags of the scaling group.
|
|
1071
1097
|
*/
|
|
1072
1098
|
tags?: CreateScalingGroupRequestTags[];
|
|
1073
1099
|
/**
|
|
@@ -1102,7 +1128,9 @@ export class CreateScalingGroupRequest extends $dara.Model {
|
|
|
1102
1128
|
return {
|
|
1103
1129
|
albServerGroups: 'AlbServerGroups',
|
|
1104
1130
|
allocationStrategy: 'AllocationStrategy',
|
|
1131
|
+
autoRebalance: 'AutoRebalance',
|
|
1105
1132
|
azBalance: 'AzBalance',
|
|
1133
|
+
balanceMode: 'BalanceMode',
|
|
1106
1134
|
capacityOptions: 'CapacityOptions',
|
|
1107
1135
|
clientToken: 'ClientToken',
|
|
1108
1136
|
compensateWithOnDemand: 'CompensateWithOnDemand',
|
|
@@ -1154,7 +1182,9 @@ export class CreateScalingGroupRequest extends $dara.Model {
|
|
|
1154
1182
|
return {
|
|
1155
1183
|
albServerGroups: { 'type': 'array', 'itemType': CreateScalingGroupRequestAlbServerGroups },
|
|
1156
1184
|
allocationStrategy: 'string',
|
|
1185
|
+
autoRebalance: 'boolean',
|
|
1157
1186
|
azBalance: 'boolean',
|
|
1187
|
+
balanceMode: 'string',
|
|
1158
1188
|
capacityOptions: CreateScalingGroupRequestCapacityOptions,
|
|
1159
1189
|
clientToken: 'string',
|
|
1160
1190
|
compensateWithOnDemand: 'boolean',
|
|
@@ -3,6 +3,10 @@ import * as $dara from '@darabonba/typescript';
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
export class DescribeInstanceRefreshesResponseBodyInstanceRefreshTasksCheckpoints extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* 60
|
|
9
|
+
*/
|
|
6
10
|
percentage?: number;
|
|
7
11
|
static names(): { [key: string]: string } {
|
|
8
12
|
return {
|
|
@@ -26,8 +30,20 @@ export class DescribeInstanceRefreshesResponseBodyInstanceRefreshTasksCheckpoint
|
|
|
26
30
|
}
|
|
27
31
|
|
|
28
32
|
export class DescribeInstanceRefreshesResponseBodyInstanceRefreshTasksDesiredConfigurationContainersEnvironmentVars extends $dara.Model {
|
|
33
|
+
/**
|
|
34
|
+
* @example
|
|
35
|
+
* fieldPath
|
|
36
|
+
*/
|
|
29
37
|
fieldRefFieldPath?: string;
|
|
38
|
+
/**
|
|
39
|
+
* @example
|
|
40
|
+
* PATH
|
|
41
|
+
*/
|
|
30
42
|
key?: string;
|
|
43
|
+
/**
|
|
44
|
+
* @example
|
|
45
|
+
* /usr/local/bin
|
|
46
|
+
*/
|
|
31
47
|
value?: string;
|
|
32
48
|
static names(): { [key: string]: string } {
|
|
33
49
|
return {
|
|
@@ -58,7 +74,15 @@ export class DescribeInstanceRefreshesResponseBodyInstanceRefreshTasksDesiredCon
|
|
|
58
74
|
args?: string[];
|
|
59
75
|
commands?: string[];
|
|
60
76
|
environmentVars?: DescribeInstanceRefreshesResponseBodyInstanceRefreshTasksDesiredConfigurationContainersEnvironmentVars[];
|
|
77
|
+
/**
|
|
78
|
+
* @example
|
|
79
|
+
* registry-vpc.cn-hangzhou.aliyuncs.com/eci_open/nginx:latest
|
|
80
|
+
*/
|
|
61
81
|
image?: string;
|
|
82
|
+
/**
|
|
83
|
+
* @example
|
|
84
|
+
* name
|
|
85
|
+
*/
|
|
62
86
|
name?: string;
|
|
63
87
|
static names(): { [key: string]: string } {
|
|
64
88
|
return {
|
|
@@ -99,6 +123,10 @@ export class DescribeInstanceRefreshesResponseBodyInstanceRefreshTasksDesiredCon
|
|
|
99
123
|
}
|
|
100
124
|
|
|
101
125
|
export class DescribeInstanceRefreshesResponseBodyInstanceRefreshTasksDesiredConfigurationLaunchTemplateOverrides extends $dara.Model {
|
|
126
|
+
/**
|
|
127
|
+
* @example
|
|
128
|
+
* ecs.sn1ne.large
|
|
129
|
+
*/
|
|
102
130
|
instanceType?: string;
|
|
103
131
|
static names(): { [key: string]: string } {
|
|
104
132
|
return {
|
|
@@ -131,8 +159,16 @@ export class DescribeInstanceRefreshesResponseBodyInstanceRefreshTasksDesiredCon
|
|
|
131
159
|
* m-uf6g5noisr****
|
|
132
160
|
*/
|
|
133
161
|
imageId?: string;
|
|
162
|
+
/**
|
|
163
|
+
* @example
|
|
164
|
+
* lt-2ze5x4mp*****
|
|
165
|
+
*/
|
|
134
166
|
launchTemplateId?: string;
|
|
135
167
|
launchTemplateOverrides?: DescribeInstanceRefreshesResponseBodyInstanceRefreshTasksDesiredConfigurationLaunchTemplateOverrides[];
|
|
168
|
+
/**
|
|
169
|
+
* @example
|
|
170
|
+
* Latest
|
|
171
|
+
*/
|
|
136
172
|
launchTemplateVersion?: string;
|
|
137
173
|
/**
|
|
138
174
|
* @remarks
|
|
@@ -180,6 +216,10 @@ export class DescribeInstanceRefreshesResponseBodyInstanceRefreshTasksDesiredCon
|
|
|
180
216
|
}
|
|
181
217
|
|
|
182
218
|
export class DescribeInstanceRefreshesResponseBodyInstanceRefreshTasks extends $dara.Model {
|
|
219
|
+
/**
|
|
220
|
+
* @example
|
|
221
|
+
* 30
|
|
222
|
+
*/
|
|
183
223
|
checkpointPauseTime?: number;
|
|
184
224
|
checkpoints?: DescribeInstanceRefreshesResponseBodyInstanceRefreshTasksCheckpoints[];
|
|
185
225
|
/**
|
|
@@ -58,7 +58,7 @@ export class DescribeScalingGroupsRequest extends $dara.Model {
|
|
|
58
58
|
ownerId?: number;
|
|
59
59
|
/**
|
|
60
60
|
* @remarks
|
|
61
|
-
* The page number.
|
|
61
|
+
* The page number. Page starts from page 1.
|
|
62
62
|
*
|
|
63
63
|
* Default value: 1.
|
|
64
64
|
*
|
|
@@ -68,7 +68,7 @@ export class DescribeScalingGroupsRequest extends $dara.Model {
|
|
|
68
68
|
pageNumber?: number;
|
|
69
69
|
/**
|
|
70
70
|
* @remarks
|
|
71
|
-
* The number of entries
|
|
71
|
+
* The number of entries to return on each page. Maximum value: 50.
|
|
72
72
|
*
|
|
73
73
|
* Default value: 10.
|
|
74
74
|
*
|
|
@@ -521,6 +521,17 @@ export class DescribeScalingGroupsResponseBodyScalingGroups extends $dara.Model
|
|
|
521
521
|
* priority
|
|
522
522
|
*/
|
|
523
523
|
allocationStrategy?: string;
|
|
524
|
+
/**
|
|
525
|
+
* @remarks
|
|
526
|
+
* Whether to enable automatic rebalancing for the scaling group. This takes effect only when BalancedOnly is enabled for the scaling group. Valid value:
|
|
527
|
+
*
|
|
528
|
+
* * false: Auto rebalancing is disabled for the scaling group.
|
|
529
|
+
* * true: If Auto rebalancing is enabled, the scaling group automatically detects the capacity of the zone. If the capacity of the zone is unbalanced, the scaling group actively scales out the zone and re-balances the capacity of the zone.
|
|
530
|
+
*
|
|
531
|
+
* @example
|
|
532
|
+
* false
|
|
533
|
+
*/
|
|
534
|
+
autoRebalance?: boolean;
|
|
524
535
|
/**
|
|
525
536
|
* @remarks
|
|
526
537
|
* Indicates whether instances in the scaling group are evenly distributed across the specified zones. This parameter takes effect only if you set `MultiAZPolicy` to `COMPOSABLE`. Valid values:
|
|
@@ -532,6 +543,17 @@ export class DescribeScalingGroupsResponseBodyScalingGroups extends $dara.Model
|
|
|
532
543
|
* false
|
|
533
544
|
*/
|
|
534
545
|
azBalance?: boolean;
|
|
546
|
+
/**
|
|
547
|
+
* @remarks
|
|
548
|
+
* The zone balancing mode. This mode takes effect only when the zone balancing mode is enabled. Valid value:
|
|
549
|
+
*
|
|
550
|
+
* * Default value: BalancedBestEffort. If a resource fails to be created in a zone, the resource is downgraded to another zone. This ensures best-effort delivery of the resource.
|
|
551
|
+
* * BalancedOnly: If a resource fails to be created in a zone, the resource is not downgraded to another zone. The scale-out activity is partially successful to avoid excessive imbalance of resources in different zones.
|
|
552
|
+
*
|
|
553
|
+
* @example
|
|
554
|
+
* BalancedBestEffort
|
|
555
|
+
*/
|
|
556
|
+
balanceMode?: string;
|
|
535
557
|
/**
|
|
536
558
|
* @remarks
|
|
537
559
|
* The capacity options.
|
|
@@ -1026,7 +1048,9 @@ export class DescribeScalingGroupsResponseBodyScalingGroups extends $dara.Model
|
|
|
1026
1048
|
activeScalingConfigurationId: 'ActiveScalingConfigurationId',
|
|
1027
1049
|
albServerGroups: 'AlbServerGroups',
|
|
1028
1050
|
allocationStrategy: 'AllocationStrategy',
|
|
1051
|
+
autoRebalance: 'AutoRebalance',
|
|
1029
1052
|
azBalance: 'AzBalance',
|
|
1053
|
+
balanceMode: 'BalanceMode',
|
|
1030
1054
|
capacityOptions: 'CapacityOptions',
|
|
1031
1055
|
compensateWithOnDemand: 'CompensateWithOnDemand',
|
|
1032
1056
|
creationTime: 'CreationTime',
|
|
@@ -1094,7 +1118,9 @@ export class DescribeScalingGroupsResponseBodyScalingGroups extends $dara.Model
|
|
|
1094
1118
|
activeScalingConfigurationId: 'string',
|
|
1095
1119
|
albServerGroups: { 'type': 'array', 'itemType': DescribeScalingGroupsResponseBodyScalingGroupsAlbServerGroups },
|
|
1096
1120
|
allocationStrategy: 'string',
|
|
1121
|
+
autoRebalance: 'boolean',
|
|
1097
1122
|
azBalance: 'boolean',
|
|
1123
|
+
balanceMode: 'string',
|
|
1098
1124
|
capacityOptions: DescribeScalingGroupsResponseBodyScalingGroupsCapacityOptions,
|
|
1099
1125
|
compensateWithOnDemand: 'boolean',
|
|
1100
1126
|
creationTime: 'string',
|
|
@@ -2119,6 +2119,7 @@ export class ModifyEciScalingConfigurationRequest extends $dara.Model {
|
|
|
2119
2119
|
* The endpoints of Network Time Protocol (NTP) servers.
|
|
2120
2120
|
*/
|
|
2121
2121
|
ntpServers?: string[];
|
|
2122
|
+
override?: boolean;
|
|
2122
2123
|
ownerId?: number;
|
|
2123
2124
|
/**
|
|
2124
2125
|
* @remarks
|
|
@@ -2267,6 +2268,7 @@ export class ModifyEciScalingConfigurationRequest extends $dara.Model {
|
|
|
2267
2268
|
loadBalancerWeight: 'LoadBalancerWeight',
|
|
2268
2269
|
memory: 'Memory',
|
|
2269
2270
|
ntpServers: 'NtpServers',
|
|
2271
|
+
override: 'Override',
|
|
2270
2272
|
ownerId: 'OwnerId',
|
|
2271
2273
|
ramRoleName: 'RamRoleName',
|
|
2272
2274
|
resourceGroupId: 'ResourceGroupId',
|
|
@@ -2323,6 +2325,7 @@ export class ModifyEciScalingConfigurationRequest extends $dara.Model {
|
|
|
2323
2325
|
loadBalancerWeight: 'number',
|
|
2324
2326
|
memory: 'number',
|
|
2325
2327
|
ntpServers: { 'type': 'array', 'itemType': 'string' },
|
|
2328
|
+
override: 'boolean',
|
|
2326
2329
|
ownerId: 'number',
|
|
2327
2330
|
ramRoleName: 'string',
|
|
2328
2331
|
resourceGroupId: 'string',
|
|
@@ -183,6 +183,19 @@ export class ModifyScalingGroupRequest extends $dara.Model {
|
|
|
183
183
|
* priority
|
|
184
184
|
*/
|
|
185
185
|
allocationStrategy?: string;
|
|
186
|
+
/**
|
|
187
|
+
* @remarks
|
|
188
|
+
* Whether to enable automatic rebalancing for the scaling group. This takes effect only when BalancedOnly is enabled for the scaling group. Valid values:
|
|
189
|
+
*
|
|
190
|
+
* * false: Auto rebalancing is disabled for the scaling group.
|
|
191
|
+
* * true: If Auto rebalancing is enabled, the scaling group automatically detects the capacity of the zone. If the capacity of the zone is unbalanced, the scaling group actively scales out the zone and re-balances the capacity of the zone.
|
|
192
|
+
*
|
|
193
|
+
* Default value: false.
|
|
194
|
+
*
|
|
195
|
+
* @example
|
|
196
|
+
* false
|
|
197
|
+
*/
|
|
198
|
+
autoRebalance?: boolean;
|
|
186
199
|
/**
|
|
187
200
|
* @remarks
|
|
188
201
|
* Specifies whether to evenly distribute instances in the scaling group across zones. This parameter takes effect only when you set the `MultiAZPolicy` parameter to `COMPOSABLE`. Valid values:
|
|
@@ -196,6 +209,19 @@ export class ModifyScalingGroupRequest extends $dara.Model {
|
|
|
196
209
|
* false
|
|
197
210
|
*/
|
|
198
211
|
azBalance?: boolean;
|
|
212
|
+
/**
|
|
213
|
+
* @remarks
|
|
214
|
+
* The zone balancing mode. This mode takes effect only when the zone balancing mode is enabled. Valid values:
|
|
215
|
+
*
|
|
216
|
+
* * BalancedBestEffort: If a resource fails to be created in a zone, the resource is downgraded to another zone. This ensures best-effort delivery of the resource.
|
|
217
|
+
* * BalancedOnly: If a resource fails to be created in a zone, the resource is not downgraded to another zone. The scale-out activity is partially successful to avoid excessive imbalance of resources in different zones.
|
|
218
|
+
*
|
|
219
|
+
* Default value: BalancedBestEffort.
|
|
220
|
+
*
|
|
221
|
+
* @example
|
|
222
|
+
* BalancedBestEffort
|
|
223
|
+
*/
|
|
224
|
+
balanceMode?: string;
|
|
199
225
|
/**
|
|
200
226
|
* @remarks
|
|
201
227
|
* The capacity options.
|
|
@@ -491,7 +517,9 @@ export class ModifyScalingGroupRequest extends $dara.Model {
|
|
|
491
517
|
return {
|
|
492
518
|
activeScalingConfigurationId: 'ActiveScalingConfigurationId',
|
|
493
519
|
allocationStrategy: 'AllocationStrategy',
|
|
520
|
+
autoRebalance: 'AutoRebalance',
|
|
494
521
|
azBalance: 'AzBalance',
|
|
522
|
+
balanceMode: 'BalanceMode',
|
|
495
523
|
capacityOptions: 'CapacityOptions',
|
|
496
524
|
compensateWithOnDemand: 'CompensateWithOnDemand',
|
|
497
525
|
customPolicyARN: 'CustomPolicyARN',
|
|
@@ -530,7 +558,9 @@ export class ModifyScalingGroupRequest extends $dara.Model {
|
|
|
530
558
|
return {
|
|
531
559
|
activeScalingConfigurationId: 'string',
|
|
532
560
|
allocationStrategy: 'string',
|
|
561
|
+
autoRebalance: 'boolean',
|
|
533
562
|
azBalance: 'boolean',
|
|
563
|
+
balanceMode: 'string',
|
|
534
564
|
capacityOptions: ModifyScalingGroupRequestCapacityOptions,
|
|
535
565
|
compensateWithOnDemand: 'boolean',
|
|
536
566
|
customPolicyARN: 'string',
|
|
@@ -3,6 +3,15 @@ import * as $dara from '@darabonba/typescript';
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
export class StartInstanceRefreshRequestCheckpoints extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The percentage of new instances in the scaling group to the total number of instances. When this percentage is reached, the task is automatically suspended. Valid values: 1 to 100 (%).
|
|
9
|
+
*
|
|
10
|
+
* > Requires a small to large setting, and the last progress percentage needs to be 100.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* 20
|
|
14
|
+
*/
|
|
6
15
|
percentage?: number;
|
|
7
16
|
static names(): { [key: string]: string } {
|
|
8
17
|
return {
|
|
@@ -26,8 +35,29 @@ export class StartInstanceRefreshRequestCheckpoints extends $dara.Model {
|
|
|
26
35
|
}
|
|
27
36
|
|
|
28
37
|
export class StartInstanceRefreshRequestDesiredConfigurationContainersEnvironmentVars extends $dara.Model {
|
|
38
|
+
/**
|
|
39
|
+
* @remarks
|
|
40
|
+
* > This parameter is unavailable for use.
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* fieldPath
|
|
44
|
+
*/
|
|
29
45
|
fieldRefFieldPath?: string;
|
|
46
|
+
/**
|
|
47
|
+
* @remarks
|
|
48
|
+
* The name of the environment variable. It can be 1 to 128 characters in length. Format requirement:[0-9a-zA-Z], and underscores, cannot start with a number.
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* PATH
|
|
52
|
+
*/
|
|
30
53
|
key?: string;
|
|
54
|
+
/**
|
|
55
|
+
* @remarks
|
|
56
|
+
* The value of the environment variable. The value must be 0 to 256 bits in length.
|
|
57
|
+
*
|
|
58
|
+
* @example
|
|
59
|
+
* /usr/local/bin
|
|
60
|
+
*/
|
|
31
61
|
value?: string;
|
|
32
62
|
static names(): { [key: string]: string } {
|
|
33
63
|
return {
|
|
@@ -55,10 +85,36 @@ export class StartInstanceRefreshRequestDesiredConfigurationContainersEnvironmen
|
|
|
55
85
|
}
|
|
56
86
|
|
|
57
87
|
export class StartInstanceRefreshRequestDesiredConfigurationContainers extends $dara.Model {
|
|
88
|
+
/**
|
|
89
|
+
* @remarks
|
|
90
|
+
* The argument that corresponds to the startup command of the container. You can specify up to 10 arguments.
|
|
91
|
+
*/
|
|
58
92
|
args?: string[];
|
|
93
|
+
/**
|
|
94
|
+
* @remarks
|
|
95
|
+
* The container startup commands. You can specify up to 20 commands. Each command can contain up to 256 characters.
|
|
96
|
+
*/
|
|
59
97
|
commands?: string[];
|
|
98
|
+
/**
|
|
99
|
+
* @remarks
|
|
100
|
+
* The environment variables.
|
|
101
|
+
*/
|
|
60
102
|
environmentVars?: StartInstanceRefreshRequestDesiredConfigurationContainersEnvironmentVars[];
|
|
103
|
+
/**
|
|
104
|
+
* @remarks
|
|
105
|
+
* The image in the container.
|
|
106
|
+
*
|
|
107
|
+
* @example
|
|
108
|
+
* registry-vpc.cn-hangzhou.aliyuncs.com/eci_open/nginx:latest
|
|
109
|
+
*/
|
|
61
110
|
image?: string;
|
|
111
|
+
/**
|
|
112
|
+
* @remarks
|
|
113
|
+
* The custom name of the container.
|
|
114
|
+
*
|
|
115
|
+
* @example
|
|
116
|
+
* nginx
|
|
117
|
+
*/
|
|
62
118
|
name?: string;
|
|
63
119
|
static names(): { [key: string]: string } {
|
|
64
120
|
return {
|
|
@@ -99,6 +155,15 @@ export class StartInstanceRefreshRequestDesiredConfigurationContainers extends $
|
|
|
99
155
|
}
|
|
100
156
|
|
|
101
157
|
export class StartInstanceRefreshRequestDesiredConfigurationLaunchTemplateOverrides extends $dara.Model {
|
|
158
|
+
/**
|
|
159
|
+
* @remarks
|
|
160
|
+
* The instance type specified by using this parameter overwrites the instance type of the launch template.
|
|
161
|
+
*
|
|
162
|
+
* > This parameter takes effect only if you specify LaunchTemplateId.
|
|
163
|
+
*
|
|
164
|
+
* @example
|
|
165
|
+
* ecs.c5.2xlarge
|
|
166
|
+
*/
|
|
102
167
|
instanceType?: string;
|
|
103
168
|
static names(): { [key: string]: string } {
|
|
104
169
|
return {
|
|
@@ -122,6 +187,16 @@ export class StartInstanceRefreshRequestDesiredConfigurationLaunchTemplateOverri
|
|
|
122
187
|
}
|
|
123
188
|
|
|
124
189
|
export class StartInstanceRefreshRequestDesiredConfiguration extends $dara.Model {
|
|
190
|
+
/**
|
|
191
|
+
* @remarks
|
|
192
|
+
* The containers in the elastic container instance.
|
|
193
|
+
*
|
|
194
|
+
* >
|
|
195
|
+
*
|
|
196
|
+
* * This parameter supports only scaling groups of the ECI type.
|
|
197
|
+
*
|
|
198
|
+
* * Only the containers in the scaling configuration list that are the same as those in the `Container.Name` are refreshed.
|
|
199
|
+
*/
|
|
125
200
|
containers?: StartInstanceRefreshRequestDesiredConfigurationContainers[];
|
|
126
201
|
/**
|
|
127
202
|
* @remarks
|
|
@@ -137,15 +212,37 @@ export class StartInstanceRefreshRequestDesiredConfiguration extends $dara.Model
|
|
|
137
212
|
* m-2ze8cqacj7opnf***
|
|
138
213
|
*/
|
|
139
214
|
imageId?: string;
|
|
215
|
+
/**
|
|
216
|
+
* @remarks
|
|
217
|
+
* The ID of the launch template that you want to enable in the scaling group.
|
|
218
|
+
*
|
|
219
|
+
* @example
|
|
220
|
+
* lt-2ze2qli30u***
|
|
221
|
+
*/
|
|
140
222
|
launchTemplateId?: string;
|
|
223
|
+
/**
|
|
224
|
+
* @remarks
|
|
225
|
+
* The information about the instance types that are extended in the launch template.
|
|
226
|
+
*/
|
|
141
227
|
launchTemplateOverrides?: StartInstanceRefreshRequestDesiredConfigurationLaunchTemplateOverrides[];
|
|
228
|
+
/**
|
|
229
|
+
* @remarks
|
|
230
|
+
* The version number of the launch template. Valid value:
|
|
231
|
+
*
|
|
232
|
+
* * A fixed template version number.
|
|
233
|
+
* * Default: the default version of the template.
|
|
234
|
+
* * Latest: the latest version of the template.
|
|
235
|
+
*
|
|
236
|
+
* > If you set the version to Default or Latest, the instance refresh task cannot be rolled back.
|
|
237
|
+
*
|
|
238
|
+
* @example
|
|
239
|
+
* 8
|
|
240
|
+
*/
|
|
142
241
|
launchTemplateVersion?: string;
|
|
143
242
|
/**
|
|
144
243
|
* @remarks
|
|
145
244
|
* The ID of the scaling configuration.
|
|
146
245
|
*
|
|
147
|
-
* > After the instance refresh task is complete, the scaling group uses the scaling configuration specified by this parameter.
|
|
148
|
-
*
|
|
149
246
|
* @example
|
|
150
247
|
* asc-2zed7lqn4ts4****
|
|
151
248
|
*/
|
|
@@ -188,7 +285,22 @@ export class StartInstanceRefreshRequestDesiredConfiguration extends $dara.Model
|
|
|
188
285
|
}
|
|
189
286
|
|
|
190
287
|
export class StartInstanceRefreshRequest extends $dara.Model {
|
|
288
|
+
/**
|
|
289
|
+
* @remarks
|
|
290
|
+
* The duration of the pause when the refresh task checkpoint is entered.
|
|
291
|
+
*
|
|
292
|
+
* * Unit: minutes
|
|
293
|
+
* * Valid values: 1 to 2880.
|
|
294
|
+
* * Default: 60.
|
|
295
|
+
*
|
|
296
|
+
* @example
|
|
297
|
+
* 10
|
|
298
|
+
*/
|
|
191
299
|
checkpointPauseTime?: number;
|
|
300
|
+
/**
|
|
301
|
+
* @remarks
|
|
302
|
+
* Refresh Task Checkpoint: specifies that the task is automatically suspended for CheckpointPauseTime minutes when the proportion of new instances reaches the specified value during instance refresh.
|
|
303
|
+
*/
|
|
192
304
|
checkpoints?: StartInstanceRefreshRequestCheckpoints[];
|
|
193
305
|
/**
|
|
194
306
|
* @remarks
|
|
@@ -204,9 +316,9 @@ export class StartInstanceRefreshRequest extends $dara.Model {
|
|
|
204
316
|
*
|
|
205
317
|
* >
|
|
206
318
|
*
|
|
207
|
-
* *
|
|
319
|
+
* * ScalingConfigurationId, ImageId, LaunchTemplateId, and Containers cannot be set at the same time. If you do not specify this parameter, the scaling group is refreshed based on the configurations that are in effect.
|
|
208
320
|
*
|
|
209
|
-
* *
|
|
321
|
+
* * After the instance refresh task is complete, the scaling group uses the scaling configuration specified by this parameter.
|
|
210
322
|
*/
|
|
211
323
|
desiredConfiguration?: StartInstanceRefreshRequestDesiredConfiguration;
|
|
212
324
|
/**
|