Skip to content

Commit 40e2faa

Browse files
author
awstools
committed
feat(client-auto-scaling): This release adds support for specifying Availability Zone IDs as an alternative to Availability Zone names when creating or updating Auto Scaling groups.
1 parent 91aeaed commit 40e2faa

8 files changed

Lines changed: 116 additions & 15 deletions

File tree

clients/client-auto-scaling/src/commands/CreateAutoScalingGroupCommand.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,9 @@ export interface CreateAutoScalingGroupCommandOutput extends __MetadataBearer {}
169169
* AvailabilityZones: [ // AvailabilityZones
170170
* "STRING_VALUE",
171171
* ],
172+
* AvailabilityZoneIds: [ // AvailabilityZoneIds
173+
* "STRING_VALUE",
174+
* ],
172175
* LoadBalancerNames: [ // LoadBalancerNames
173176
* "STRING_VALUE",
174177
* ],

clients/client-auto-scaling/src/commands/DescribeAutoScalingGroupsCommand.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,9 @@ export interface DescribeAutoScalingGroupsCommandOutput extends AutoScalingGroup
183183
* // AvailabilityZones: [ // AvailabilityZones // required
184184
* // "STRING_VALUE",
185185
* // ],
186+
* // AvailabilityZoneIds: [ // AvailabilityZoneIds
187+
* // "STRING_VALUE",
188+
* // ],
186189
* // LoadBalancerNames: [ // LoadBalancerNames
187190
* // "STRING_VALUE",
188191
* // ],
@@ -196,6 +199,7 @@ export interface DescribeAutoScalingGroupsCommandOutput extends AutoScalingGroup
196199
* // InstanceId: "STRING_VALUE", // required
197200
* // InstanceType: "STRING_VALUE",
198201
* // AvailabilityZone: "STRING_VALUE", // required
202+
* // AvailabilityZoneId: "STRING_VALUE",
199203
* // LifecycleState: "Pending" || "Pending:Wait" || "Pending:Proceed" || "Quarantined" || "InService" || "Terminating" || "Terminating:Wait" || "Terminating:Proceed" || "Terminating:Retained" || "Terminated" || "Detaching" || "Detached" || "EnteringStandby" || "Standby" || "ReplacingRootVolume" || "ReplacingRootVolume:Wait" || "ReplacingRootVolume:Proceed" || "RootVolumeReplaced" || "Warmed:Pending" || "Warmed:Pending:Wait" || "Warmed:Pending:Proceed" || "Warmed:Pending:Retained" || "Warmed:Terminating" || "Warmed:Terminating:Wait" || "Warmed:Terminating:Proceed" || "Warmed:Terminating:Retained" || "Warmed:Terminated" || "Warmed:Stopped" || "Warmed:Running" || "Warmed:Hibernated", // required
200204
* // HealthStatus: "STRING_VALUE", // required
201205
* // LaunchConfigurationName: "STRING_VALUE",
@@ -324,6 +328,11 @@ export interface DescribeAutoScalingGroupsCommandOutput extends AutoScalingGroup
324328
* {
325329
* AutoScalingGroupARN: "arn:aws:autoscaling:us-west-1:123456789012:autoScalingGroup:12345678-1234-1234-1234-123456789012:autoScalingGroupName/my-auto-scaling-group",
326330
* AutoScalingGroupName: "my-auto-scaling-group",
331+
* AvailabilityZoneIds: [
332+
* "usw2-az1",
333+
* "usw2-az2",
334+
* "usw2-az3"
335+
* ],
327336
* AvailabilityZones: [
328337
* "us-west-2a",
329338
* "us-west-2b",
@@ -338,6 +347,7 @@ export interface DescribeAutoScalingGroupsCommandOutput extends AutoScalingGroup
338347
* Instances: [
339348
* {
340349
* AvailabilityZone: "us-west-2c",
350+
* AvailabilityZoneId: "usw2-az3",
341351
* HealthStatus: "Healthy",
342352
* InstanceId: "i-05b4f7d5be44822a6",
343353
* InstanceType: "t3.micro",
@@ -347,6 +357,7 @@ export interface DescribeAutoScalingGroupsCommandOutput extends AutoScalingGroup
347357
* },
348358
* {
349359
* AvailabilityZone: "us-west-2b",
360+
* AvailabilityZoneId: "usw2-az2",
350361
* HealthStatus: "Healthy",
351362
* InstanceId: "i-0c20ac468fa3049e8",
352363
* InstanceType: "t3.micro",

clients/client-auto-scaling/src/commands/DescribeAutoScalingInstancesCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ export interface DescribeAutoScalingInstancesCommandOutput extends AutoScalingIn
5252
* // InstanceType: "STRING_VALUE",
5353
* // AutoScalingGroupName: "STRING_VALUE", // required
5454
* // AvailabilityZone: "STRING_VALUE", // required
55+
* // AvailabilityZoneId: "STRING_VALUE",
5556
* // LifecycleState: "STRING_VALUE", // required
5657
* // HealthStatus: "STRING_VALUE", // required
5758
* // LaunchConfigurationName: "STRING_VALUE",
@@ -103,6 +104,7 @@ export interface DescribeAutoScalingInstancesCommandOutput extends AutoScalingIn
103104
* {
104105
* AutoScalingGroupName: "my-auto-scaling-group",
105106
* AvailabilityZone: "us-west-2c",
107+
* AvailabilityZoneId: "usw2-az2",
106108
* HealthStatus: "HEALTHY",
107109
* InstanceId: "i-05b4f7d5be44822a6",
108110
* InstanceType: "t3.micro",

clients/client-auto-scaling/src/commands/DescribeWarmPoolCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ export interface DescribeWarmPoolCommandOutput extends DescribeWarmPoolAnswer, _
6060
* // InstanceId: "STRING_VALUE", // required
6161
* // InstanceType: "STRING_VALUE",
6262
* // AvailabilityZone: "STRING_VALUE", // required
63+
* // AvailabilityZoneId: "STRING_VALUE",
6364
* // LifecycleState: "Pending" || "Pending:Wait" || "Pending:Proceed" || "Quarantined" || "InService" || "Terminating" || "Terminating:Wait" || "Terminating:Proceed" || "Terminating:Retained" || "Terminated" || "Detaching" || "Detached" || "EnteringStandby" || "Standby" || "ReplacingRootVolume" || "ReplacingRootVolume:Wait" || "ReplacingRootVolume:Proceed" || "RootVolumeReplaced" || "Warmed:Pending" || "Warmed:Pending:Wait" || "Warmed:Pending:Proceed" || "Warmed:Pending:Retained" || "Warmed:Terminating" || "Warmed:Terminating:Wait" || "Warmed:Terminating:Proceed" || "Warmed:Terminating:Retained" || "Warmed:Terminated" || "Warmed:Stopped" || "Warmed:Running" || "Warmed:Hibernated", // required
6465
* // HealthStatus: "STRING_VALUE", // required
6566
* // LaunchConfigurationName: "STRING_VALUE",

clients/client-auto-scaling/src/commands/UpdateAutoScalingGroupCommand.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,9 @@ export interface UpdateAutoScalingGroupCommandOutput extends __MetadataBearer {}
197197
* AvailabilityZones: [ // AvailabilityZones
198198
* "STRING_VALUE",
199199
* ],
200+
* AvailabilityZoneIds: [ // AvailabilityZoneIds
201+
* "STRING_VALUE",
202+
* ],
200203
* HealthCheckType: "STRING_VALUE",
201204
* HealthCheckGracePeriod: Number("int"),
202205
* PlacementGroup: "STRING_VALUE",

clients/client-auto-scaling/src/models/models_0.ts

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1995,6 +1995,14 @@ export interface CreateAutoScalingGroupType {
19951995
*/
19961996
AvailabilityZones?: string[] | undefined;
19971997

1998+
/**
1999+
* <p>
2000+
* A list of Availability Zone IDs where the Auto Scaling group can launch instances. You cannot specify both AvailabilityZones and AvailabilityZoneIds in the same request.
2001+
* </p>
2002+
* @public
2003+
*/
2004+
AvailabilityZoneIds?: string[] | undefined;
2005+
19982006
/**
19992007
* <p>A list of Classic Load Balancers associated with this Auto Scaling group. For Application Load Balancers, Network Load Balancers, and Gateway Load Balancers,
20002008
* specify the <code>TargetGroupARNs</code> property instead.</p>
@@ -3201,6 +3209,14 @@ export interface Instance {
32013209
*/
32023210
AvailabilityZone: string | undefined;
32033211

3212+
/**
3213+
* <p>
3214+
* The Availability Zone ID where the instance was launched.
3215+
* </p>
3216+
* @public
3217+
*/
3218+
AvailabilityZoneId?: string | undefined;
3219+
32043220
/**
32053221
* <p>A description of the current lifecycle state. The <code>Quarantined</code> state is
32063222
* not used. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-lifecycle.html">Amazon EC2 Auto Scaling instance
@@ -3456,6 +3472,14 @@ export interface AutoScalingGroup {
34563472
*/
34573473
AvailabilityZones: string[] | undefined;
34583474

3475+
/**
3476+
* <p>
3477+
* The Availability Zone IDs where the Auto Scaling group can launch instances.
3478+
* </p>
3479+
* @public
3480+
*/
3481+
AvailabilityZoneIds?: string[] | undefined;
3482+
34593483
/**
34603484
* <p>One or more load balancers associated with the group.</p>
34613485
* @public
@@ -3689,6 +3713,14 @@ export interface AutoScalingInstanceDetails {
36893713
*/
36903714
AvailabilityZone: string | undefined;
36913715

3716+
/**
3717+
* <p>
3718+
* The Availability Zone ID where the instance is located.
3719+
* </p>
3720+
* @public
3721+
*/
3722+
AvailabilityZoneId?: string | undefined;
3723+
36923724
/**
36933725
* <p>The lifecycle state for the instance. The <code>Quarantined</code> state is not used.
36943726
* For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-lifecycle.html">Amazon EC2 Auto Scaling instance
@@ -8363,6 +8395,14 @@ export interface UpdateAutoScalingGroupType {
83638395
*/
83648396
AvailabilityZones?: string[] | undefined;
83658397

8398+
/**
8399+
* <p>
8400+
* A list of Availability Zone IDs for the Auto Scaling group. You cannot specify both AvailabilityZones and AvailabilityZoneIds in the same request.
8401+
* </p>
8402+
* @public
8403+
*/
8404+
AvailabilityZoneIds?: string[] | undefined;
8405+
83668406
/**
83678407
* <p>A comma-separated value string of one or more health check types.</p>
83688408
* <p>The valid values are <code>EC2</code>, <code>EBS</code>, <code>ELB</code>, and

clients/client-auto-scaling/src/schemas/schemas_0.ts

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ const _ATd = "AdjustmentType";
4545
const _ATdj = "AdjustmentTypes";
4646
const _AZ = "AvailabilityZones";
4747
const _AZD = "AvailabilityZoneDistribution";
48-
const _AZI = "AvailabilityZoneId";
48+
const _AZI = "AvailabilityZoneIds";
4949
const _AZIP = "AvailabilityZoneImpairmentPolicy";
50-
const _AZIv = "AvailabilityZoneIds";
50+
const _AZIv = "AvailabilityZoneId";
5151
const _AZv = "AvailabilityZone";
5252
const _Ac = "Activity";
5353
const _Al = "Alarm";
@@ -763,8 +763,8 @@ export var AttachTrafficSourcesType$: StaticStructureSchema = [3, n0, _ATST,
763763
];
764764
export var AutoScalingGroup$: StaticStructureSchema = [3, n0, _ASG,
765765
0,
766-
[_ASGN, _MS, _MSa, _DC, _DCe, _AZ, _HCT, _CT, _ASGARN, _LCN, _LT, _MIP, _PC, _LBN, _TGARN, _HCGP, _I, _SP, _PG, _VPCZI, _EM, _S, _T, _TP, _NIPFSI, _SLRARN, _MIL, _CR, _WPC, _WPS, _Co, _DCT, _DIW, _TS, _IMP, _DP, _AZD, _AZIP, _CRS, _ILP],
767-
[0, 1, 1, 1, 1, 64 | 0, 0, 4, 0, 0, () => LaunchTemplateSpecification$, [() => MixedInstancesPolicy$, 0], 1, 64 | 0, 64 | 0, 1, () => Instances, () => SuspendedProcesses, 0, 0, () => EnabledMetrics, 0, () => TagDescriptionList, 64 | 0, 2, 0, 1, 2, () => WarmPoolConfiguration$, 1, 0, 0, 1, () => TrafficSources, () => InstanceMaintenancePolicy$, 0, () => AvailabilityZoneDistribution$, () => AvailabilityZoneImpairmentPolicy$, () => CapacityReservationSpecification$, () => InstanceLifecyclePolicy$], 8
766+
[_ASGN, _MS, _MSa, _DC, _DCe, _AZ, _HCT, _CT, _ASGARN, _LCN, _LT, _MIP, _PC, _AZI, _LBN, _TGARN, _HCGP, _I, _SP, _PG, _VPCZI, _EM, _S, _T, _TP, _NIPFSI, _SLRARN, _MIL, _CR, _WPC, _WPS, _Co, _DCT, _DIW, _TS, _IMP, _DP, _AZD, _AZIP, _CRS, _ILP],
767+
[0, 1, 1, 1, 1, 64 | 0, 0, 4, 0, 0, () => LaunchTemplateSpecification$, [() => MixedInstancesPolicy$, 0], 1, 64 | 0, 64 | 0, 64 | 0, 1, () => Instances, () => SuspendedProcesses, 0, 0, () => EnabledMetrics, 0, () => TagDescriptionList, 64 | 0, 2, 0, 1, 2, () => WarmPoolConfiguration$, 1, 0, 0, 1, () => TrafficSources, () => InstanceMaintenancePolicy$, 0, () => AvailabilityZoneDistribution$, () => AvailabilityZoneImpairmentPolicy$, () => CapacityReservationSpecification$, () => InstanceLifecyclePolicy$], 8
768768
];
769769
export var AutoScalingGroupNamesType$: StaticStructureSchema = [3, n0, _ASGNT,
770770
0,
@@ -778,8 +778,8 @@ export var AutoScalingGroupsType$: StaticStructureSchema = [3, n0, _ASGT,
778778
];
779779
export var AutoScalingInstanceDetails$: StaticStructureSchema = [3, n0, _ASID,
780780
0,
781-
[_IIns, _ASGN, _AZv, _LS, _HS, _PFSI, _IT, _LCN, _LT, _IIm, _WC],
782-
[0, 0, 0, 0, 0, 2, 0, 0, () => LaunchTemplateSpecification$, 0, 0], 6
781+
[_IIns, _ASGN, _AZv, _LS, _HS, _PFSI, _IT, _AZIv, _LCN, _LT, _IIm, _WC],
782+
[0, 0, 0, 0, 0, 2, 0, 0, 0, () => LaunchTemplateSpecification$, 0, 0], 6
783783
];
784784
export var AutoScalingInstancesType$: StaticStructureSchema = [3, n0, _ASIT,
785785
0,
@@ -873,8 +873,8 @@ export var CpuPerformanceFactorRequest$: StaticStructureSchema = [3, n0, _CPFR,
873873
];
874874
export var CreateAutoScalingGroupType$: StaticStructureSchema = [3, n0, _CASGT,
875875
0,
876-
[_ASGN, _MS, _MSa, _LCN, _LT, _MIP, _IIns, _DC, _DCe, _AZ, _LBN, _TGARN, _HCT, _HCGP, _PG, _VPCZI, _TP, _NIPFSI, _CR, _LHSL, _DP, _T, _SLRARN, _MIL, _Co, _DCT, _DIW, _TS, _IMP, _AZD, _AZIP, _SZSV, _CRS, _ILP],
877-
[0, 1, 1, 0, () => LaunchTemplateSpecification$, [() => MixedInstancesPolicy$, 0], 0, 1, 1, 64 | 0, 64 | 0, 64 | 0, 0, 1, 0, 0, 64 | 0, 2, 2, () => LifecycleHookSpecifications, 0, () => Tags, 0, 1, 0, 0, 1, () => TrafficSources, () => InstanceMaintenancePolicy$, () => AvailabilityZoneDistribution$, () => AvailabilityZoneImpairmentPolicy$, 2, () => CapacityReservationSpecification$, () => InstanceLifecyclePolicy$], 3
876+
[_ASGN, _MS, _MSa, _LCN, _LT, _MIP, _IIns, _DC, _DCe, _AZ, _AZI, _LBN, _TGARN, _HCT, _HCGP, _PG, _VPCZI, _TP, _NIPFSI, _CR, _LHSL, _DP, _T, _SLRARN, _MIL, _Co, _DCT, _DIW, _TS, _IMP, _AZD, _AZIP, _SZSV, _CRS, _ILP],
877+
[0, 1, 1, 0, () => LaunchTemplateSpecification$, [() => MixedInstancesPolicy$, 0], 0, 1, 1, 64 | 0, 64 | 0, 64 | 0, 64 | 0, 0, 1, 0, 0, 64 | 0, 2, 2, () => LifecycleHookSpecifications, 0, () => Tags, 0, 1, 0, 0, 1, () => TrafficSources, () => InstanceMaintenancePolicy$, () => AvailabilityZoneDistribution$, () => AvailabilityZoneImpairmentPolicy$, 2, () => CapacityReservationSpecification$, () => InstanceLifecyclePolicy$], 3
878878
];
879879
export var CreateLaunchConfigurationType$: StaticStructureSchema = [3, n0, _CLCT,
880880
0,
@@ -1173,12 +1173,12 @@ export var GetPredictiveScalingForecastType$: StaticStructureSchema = [3, n0, _G
11731173
];
11741174
export var Instance$: StaticStructureSchema = [3, n0, _In,
11751175
0,
1176-
[_IIns, _AZv, _LS, _HS, _PFSI, _IT, _LCN, _LT, _IIm, _WC],
1177-
[0, 0, 0, 0, 2, 0, 0, () => LaunchTemplateSpecification$, 0, 0], 5
1176+
[_IIns, _AZv, _LS, _HS, _PFSI, _IT, _AZIv, _LCN, _LT, _IIm, _WC],
1177+
[0, 0, 0, 0, 2, 0, 0, 0, () => LaunchTemplateSpecification$, 0, 0], 5
11781178
];
11791179
export var InstanceCollection$: StaticStructureSchema = [3, n0, _IC,
11801180
0,
1181-
[_IT, _MT, _SIu, _AZv, _AZI, _II],
1181+
[_IT, _MT, _SIu, _AZv, _AZIv, _II],
11821182
[0, 0, 0, 0, 0, 64 | 0]
11831183
];
11841184
export var InstanceLifecyclePolicy$: StaticStructureSchema = [3, n0, _ILP,
@@ -1258,12 +1258,12 @@ export var LaunchConfigurationsType$: StaticStructureSchema = [3, n0, _LCT,
12581258
];
12591259
export var LaunchInstancesError$: StaticStructureSchema = [3, n0, _LIE,
12601260
0,
1261-
[_IT, _MT, _SIu, _AZv, _AZI, _EC, _EMr],
1261+
[_IT, _MT, _SIu, _AZv, _AZIv, _EC, _EMr],
12621262
[0, 0, 0, 0, 0, 0, 0]
12631263
];
12641264
export var LaunchInstancesRequest$: StaticStructureSchema = [3, n0, _LIR,
12651265
0,
1266-
[_ASGN, _RC, _CTl, _AZ, _AZIv, _SIub, _RS],
1266+
[_ASGN, _RC, _CTl, _AZ, _AZI, _SIub, _RS],
12671267
[0, 1, [0, 4], 64 | 0, 64 | 0, 64 | 0, 0], 2
12681268
];
12691269
export var LaunchInstancesResult$: StaticStructureSchema = [3, n0, _LIRa,
@@ -1628,8 +1628,8 @@ export var TrafficSourceState$: StaticStructureSchema = [3, n0, _TSS,
16281628
];
16291629
export var UpdateAutoScalingGroupType$: StaticStructureSchema = [3, n0, _UASGT,
16301630
0,
1631-
[_ASGN, _LCN, _LT, _MIP, _MS, _MSa, _DC, _DCe, _AZ, _HCT, _HCGP, _PG, _VPCZI, _TP, _NIPFSI, _SLRARN, _MIL, _CR, _Co, _DCT, _DIW, _IMP, _AZD, _AZIP, _SZSV, _CRS, _ILP, _DP],
1632-
[0, 0, () => LaunchTemplateSpecification$, [() => MixedInstancesPolicy$, 0], 1, 1, 1, 1, 64 | 0, 0, 1, 0, 0, 64 | 0, 2, 0, 1, 2, 0, 0, 1, () => InstanceMaintenancePolicy$, () => AvailabilityZoneDistribution$, () => AvailabilityZoneImpairmentPolicy$, 2, () => CapacityReservationSpecification$, () => InstanceLifecyclePolicy$, 0], 1
1631+
[_ASGN, _LCN, _LT, _MIP, _MS, _MSa, _DC, _DCe, _AZ, _AZI, _HCT, _HCGP, _PG, _VPCZI, _TP, _NIPFSI, _SLRARN, _MIL, _CR, _Co, _DCT, _DIW, _IMP, _AZD, _AZIP, _SZSV, _CRS, _ILP, _DP],
1632+
[0, 0, () => LaunchTemplateSpecification$, [() => MixedInstancesPolicy$, 0], 1, 1, 1, 1, 64 | 0, 64 | 0, 0, 1, 0, 0, 64 | 0, 2, 0, 1, 2, 0, 0, 1, () => InstanceMaintenancePolicy$, () => AvailabilityZoneDistribution$, () => AvailabilityZoneImpairmentPolicy$, 2, () => CapacityReservationSpecification$, () => InstanceLifecyclePolicy$, 0], 1
16331633
];
16341634
export var VCpuCountRequest$: StaticStructureSchema = [3, n0, _VCCR,
16351635
0,
@@ -1666,6 +1666,7 @@ var AutoScalingInstances: StaticListSchema = [1, n0, _ASI,
16661666
0, () => AutoScalingInstanceDetails$
16671667
];
16681668
var AutoScalingNotificationTypes = 64 | 0;
1669+
var AvailabilityZoneIds = 64 | 0;
16691670
var AvailabilityZoneIdsLimit1 = 64 | 0;
16701671
var AvailabilityZones = 64 | 0;
16711672
var AvailabilityZonesLimit1 = 64 | 0;

0 commit comments

Comments
 (0)