aws-sdk-autoscaling 1.124.0 → 1.126.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 95a3b84a5dfe14a73b312b44f4b68d1957a338c5db329045037329802f7c8775
4
- data.tar.gz: 69e5a7aadbc9a09b5f6afcb30050b7b35e51fbb3f0b431f76578f4d14d8f95d2
3
+ metadata.gz: ddce7db6f2774cf0b8a58b29913254c18ce7c43a9b8f6a8eb171441975017940
4
+ data.tar.gz: cd7752bde1c6d9474d58f2930c94a40129038101611abcccdba718990e119b3d
5
5
  SHA512:
6
- metadata.gz: e63a203b28b0253253a95b91eee44b427c53f0af47895d13eb065c7be19a85942a6f5e07eccb2e9786846dba03a74a8ce5fdc7ff22f2c83223d2ec9e2a8cc72e
7
- data.tar.gz: '0661187a6c24208553ac1f193192d8db35b096fbb5f32d3c5e973fe1c4d102c7f75fc6da2823285292318b69539d4dac5b648be72245a2c3b71941785f956f52'
6
+ metadata.gz: 5eb292a0e4af4c88aed93dcb2aea4b6dbd4914090ba056a1b4a19e6333658174e799995d24be94647464327b1933583560085e980929573b5601fcc50bd18103
7
+ data.tar.gz: b7ebe231b269b51a2867dec7c03c1d9a1b6b56706b16780b0cc05c5d2722ff7f1ba6201a46202b5a1d534fe5baa89b5b8f3dd630ee0097b1986313123e19c449
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.126.0 (2024-11-18)
5
+ ------------------
6
+
7
+ * Feature - Amazon EC2 Auto Scaling now supports Amazon Application Recovery Controller (ARC) zonal shift and zonal autoshift to help you quickly recover an impaired application from failures in an Availability Zone (AZ).
8
+
9
+ 1.125.0 (2024-11-07)
10
+ ------------------
11
+
12
+ * Feature - Auto Scaling groups now support the ability to strictly balance instances across Availability Zones by configuring the AvailabilityZoneDistribution parameter. If balanced-only is configured for a group, launches will always be attempted in the under scaled Availability Zone even if it is unhealthy.
13
+
4
14
  1.124.0 (2024-10-31)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.124.0
1
+ 1.126.0
@@ -243,6 +243,18 @@ module Aws::AutoScaling
243
243
  data[:instance_maintenance_policy]
244
244
  end
245
245
 
246
+ # The instance capacity distribution across Availability Zones.
247
+ # @return [Types::AvailabilityZoneDistribution]
248
+ def availability_zone_distribution
249
+ data[:availability_zone_distribution]
250
+ end
251
+
252
+ # The Availability Zone impairment policy.
253
+ # @return [Types::AvailabilityZoneImpairmentPolicy]
254
+ def availability_zone_impairment_policy
255
+ data[:availability_zone_impairment_policy]
256
+ end
257
+
246
258
  # @!endgroup
247
259
 
248
260
  # @return [Client]
@@ -1273,6 +1285,14 @@ module Aws::AutoScaling
1273
1285
  # min_healthy_percentage: 1,
1274
1286
  # max_healthy_percentage: 1,
1275
1287
  # },
1288
+ # availability_zone_distribution: {
1289
+ # capacity_distribution_strategy: "balanced-only", # accepts balanced-only, balanced-best-effort
1290
+ # },
1291
+ # availability_zone_impairment_policy: {
1292
+ # zonal_shift_enabled: false,
1293
+ # impaired_zone_health_check_behavior: "ReplaceUnhealthy", # accepts ReplaceUnhealthy, IgnoreUnhealthy
1294
+ # },
1295
+ # skip_zonal_shift_validation: false,
1276
1296
  # })
1277
1297
  # @param [Hash] options ({})
1278
1298
  # @option options [String] :launch_configuration_name
@@ -1470,6 +1490,20 @@ module Aws::AutoScaling
1470
1490
  #
1471
1491
  #
1472
1492
  # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-instance-maintenance-policy.html
1493
+ # @option options [Types::AvailabilityZoneDistribution] :availability_zone_distribution
1494
+ # The instance capacity distribution across Availability Zones.
1495
+ # @option options [Types::AvailabilityZoneImpairmentPolicy] :availability_zone_impairment_policy
1496
+ # The policy for Availability Zone impairment.
1497
+ # @option options [Boolean] :skip_zonal_shift_validation
1498
+ # If you enable zonal shift with cross-zone disabled load balancers,
1499
+ # capacity could become imbalanced across Availability Zones. To skip
1500
+ # the validation, specify `true`. For more information, see [Auto
1501
+ # Scaling group zonal shift][1] in the *Amazon EC2 Auto Scaling User
1502
+ # Guide*.
1503
+ #
1504
+ #
1505
+ #
1506
+ # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-zonal-shift.html
1473
1507
  # @return [AutoScalingGroup]
1474
1508
  def update(options = {})
1475
1509
  options = options.merge(auto_scaling_group_name: @name)
@@ -692,6 +692,17 @@ module Aws::AutoScaling
692
692
  # The unique identifiers of one or more traffic sources. You can specify
693
693
  # up to 10 traffic sources.
694
694
  #
695
+ # @option params [Boolean] :skip_zonal_shift_validation
696
+ # If you enable zonal shift with cross-zone disabled load balancers,
697
+ # capacity could become imbalanced across Availability Zones. To skip
698
+ # the validation, specify `true`. For more information, see [Auto
699
+ # Scaling group zonal shift][1] in the *Amazon EC2 Auto Scaling User
700
+ # Guide*.
701
+ #
702
+ #
703
+ #
704
+ # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-zonal-shift.html
705
+ #
695
706
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
696
707
  #
697
708
  #
@@ -722,6 +733,7 @@ module Aws::AutoScaling
722
733
  # type: "XmlStringMaxLen511",
723
734
  # },
724
735
  # ],
736
+ # skip_zonal_shift_validation: false,
725
737
  # })
726
738
  #
727
739
  # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AttachTrafficSources AWS API Documentation
@@ -1309,6 +1321,23 @@ module Aws::AutoScaling
1309
1321
  #
1310
1322
  # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-instance-maintenance-policy.html
1311
1323
  #
1324
+ # @option params [Types::AvailabilityZoneDistribution] :availability_zone_distribution
1325
+ # The instance capacity distribution across Availability Zones.
1326
+ #
1327
+ # @option params [Types::AvailabilityZoneImpairmentPolicy] :availability_zone_impairment_policy
1328
+ # The policy for Availability Zone impairment.
1329
+ #
1330
+ # @option params [Boolean] :skip_zonal_shift_validation
1331
+ # If you enable zonal shift with cross-zone disabled load balancers,
1332
+ # capacity could become imbalanced across Availability Zones. To skip
1333
+ # the validation, specify `true`. For more information, see [Auto
1334
+ # Scaling group zonal shift][1] in the *Amazon EC2 Auto Scaling User
1335
+ # Guide*.
1336
+ #
1337
+ #
1338
+ #
1339
+ # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-zonal-shift.html
1340
+ #
1312
1341
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1313
1342
  #
1314
1343
  #
@@ -1574,6 +1603,14 @@ module Aws::AutoScaling
1574
1603
  # min_healthy_percentage: 1,
1575
1604
  # max_healthy_percentage: 1,
1576
1605
  # },
1606
+ # availability_zone_distribution: {
1607
+ # capacity_distribution_strategy: "balanced-only", # accepts balanced-only, balanced-best-effort
1608
+ # },
1609
+ # availability_zone_impairment_policy: {
1610
+ # zonal_shift_enabled: false,
1611
+ # impaired_zone_health_check_behavior: "ReplaceUnhealthy", # accepts ReplaceUnhealthy, IgnoreUnhealthy
1612
+ # },
1613
+ # skip_zonal_shift_validation: false,
1577
1614
  # })
1578
1615
  #
1579
1616
  # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CreateAutoScalingGroup AWS API Documentation
@@ -2681,6 +2718,9 @@ module Aws::AutoScaling
2681
2718
  # resp.auto_scaling_groups[0].traffic_sources[0].type #=> String
2682
2719
  # resp.auto_scaling_groups[0].instance_maintenance_policy.min_healthy_percentage #=> Integer
2683
2720
  # resp.auto_scaling_groups[0].instance_maintenance_policy.max_healthy_percentage #=> Integer
2721
+ # resp.auto_scaling_groups[0].availability_zone_distribution.capacity_distribution_strategy #=> String, one of "balanced-only", "balanced-best-effort"
2722
+ # resp.auto_scaling_groups[0].availability_zone_impairment_policy.zonal_shift_enabled #=> Boolean
2723
+ # resp.auto_scaling_groups[0].availability_zone_impairment_policy.impaired_zone_health_check_behavior #=> String, one of "ReplaceUnhealthy", "IgnoreUnhealthy"
2684
2724
  # resp.next_token #=> String
2685
2725
  #
2686
2726
  #
@@ -7156,6 +7196,23 @@ module Aws::AutoScaling
7156
7196
  #
7157
7197
  # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-instance-maintenance-policy.html
7158
7198
  #
7199
+ # @option params [Types::AvailabilityZoneDistribution] :availability_zone_distribution
7200
+ # The instance capacity distribution across Availability Zones.
7201
+ #
7202
+ # @option params [Types::AvailabilityZoneImpairmentPolicy] :availability_zone_impairment_policy
7203
+ # The policy for Availability Zone impairment.
7204
+ #
7205
+ # @option params [Boolean] :skip_zonal_shift_validation
7206
+ # If you enable zonal shift with cross-zone disabled load balancers,
7207
+ # capacity could become imbalanced across Availability Zones. To skip
7208
+ # the validation, specify `true`. For more information, see [Auto
7209
+ # Scaling group zonal shift][1] in the *Amazon EC2 Auto Scaling User
7210
+ # Guide*.
7211
+ #
7212
+ #
7213
+ #
7214
+ # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-zonal-shift.html
7215
+ #
7159
7216
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
7160
7217
  #
7161
7218
  #
@@ -7286,6 +7343,14 @@ module Aws::AutoScaling
7286
7343
  # min_healthy_percentage: 1,
7287
7344
  # max_healthy_percentage: 1,
7288
7345
  # },
7346
+ # availability_zone_distribution: {
7347
+ # capacity_distribution_strategy: "balanced-only", # accepts balanced-only, balanced-best-effort
7348
+ # },
7349
+ # availability_zone_impairment_policy: {
7350
+ # zonal_shift_enabled: false,
7351
+ # impaired_zone_health_check_behavior: "ReplaceUnhealthy", # accepts ReplaceUnhealthy, IgnoreUnhealthy
7352
+ # },
7353
+ # skip_zonal_shift_validation: false,
7289
7354
  # })
7290
7355
  #
7291
7356
  # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/UpdateAutoScalingGroup AWS API Documentation
@@ -7315,7 +7380,7 @@ module Aws::AutoScaling
7315
7380
  tracer: tracer
7316
7381
  )
7317
7382
  context[:gem_name] = 'aws-sdk-autoscaling'
7318
- context[:gem_version] = '1.124.0'
7383
+ context[:gem_version] = '1.126.0'
7319
7384
  Seahorse::Client::Request.new(handlers, context)
7320
7385
  end
7321
7386
 
@@ -62,6 +62,8 @@ module Aws::AutoScaling
62
62
  AutoScalingInstances = Shapes::ListShape.new(name: 'AutoScalingInstances')
63
63
  AutoScalingInstancesType = Shapes::StructureShape.new(name: 'AutoScalingInstancesType')
64
64
  AutoScalingNotificationTypes = Shapes::ListShape.new(name: 'AutoScalingNotificationTypes')
65
+ AvailabilityZoneDistribution = Shapes::StructureShape.new(name: 'AvailabilityZoneDistribution')
66
+ AvailabilityZoneImpairmentPolicy = Shapes::StructureShape.new(name: 'AvailabilityZoneImpairmentPolicy')
65
67
  AvailabilityZones = Shapes::ListShape.new(name: 'AvailabilityZones')
66
68
  BakeTime = Shapes::IntegerShape.new(name: 'BakeTime')
67
69
  BareMetal = Shapes::StringShape.new(name: 'BareMetal')
@@ -81,6 +83,7 @@ module Aws::AutoScaling
81
83
  BurstablePerformance = Shapes::StringShape.new(name: 'BurstablePerformance')
82
84
  CancelInstanceRefreshAnswer = Shapes::StructureShape.new(name: 'CancelInstanceRefreshAnswer')
83
85
  CancelInstanceRefreshType = Shapes::StructureShape.new(name: 'CancelInstanceRefreshType')
86
+ CapacityDistributionStrategy = Shapes::StringShape.new(name: 'CapacityDistributionStrategy')
84
87
  CapacityForecast = Shapes::StructureShape.new(name: 'CapacityForecast')
85
88
  CapacityRebalanceEnabled = Shapes::BooleanShape.new(name: 'CapacityRebalanceEnabled')
86
89
  CheckpointDelay = Shapes::IntegerShape.new(name: 'CheckpointDelay')
@@ -166,6 +169,7 @@ module Aws::AutoScaling
166
169
  HealthCheckGracePeriod = Shapes::IntegerShape.new(name: 'HealthCheckGracePeriod')
167
170
  HeartbeatTimeout = Shapes::IntegerShape.new(name: 'HeartbeatTimeout')
168
171
  HonorCooldown = Shapes::BooleanShape.new(name: 'HonorCooldown')
172
+ ImpairedZoneHealthCheckBehavior = Shapes::StringShape.new(name: 'ImpairedZoneHealthCheckBehavior')
169
173
  IncludeDeletedGroups = Shapes::BooleanShape.new(name: 'IncludeDeletedGroups')
170
174
  Instance = Shapes::StructureShape.new(name: 'Instance')
171
175
  InstanceGeneration = Shapes::StringShape.new(name: 'InstanceGeneration')
@@ -346,6 +350,7 @@ module Aws::AutoScaling
346
350
  ShouldDecrementDesiredCapacity = Shapes::BooleanShape.new(name: 'ShouldDecrementDesiredCapacity')
347
351
  ShouldRespectGracePeriod = Shapes::BooleanShape.new(name: 'ShouldRespectGracePeriod')
348
352
  SkipMatching = Shapes::BooleanShape.new(name: 'SkipMatching')
353
+ SkipZonalShiftValidation = Shapes::BooleanShape.new(name: 'SkipZonalShiftValidation')
349
354
  SpotInstancePools = Shapes::IntegerShape.new(name: 'SpotInstancePools')
350
355
  SpotPrice = Shapes::StringShape.new(name: 'SpotPrice')
351
356
  StandbyInstances = Shapes::StringShape.new(name: 'StandbyInstances')
@@ -397,6 +402,7 @@ module Aws::AutoScaling
397
402
  XmlStringMetricLabel = Shapes::StringShape.new(name: 'XmlStringMetricLabel')
398
403
  XmlStringMetricStat = Shapes::StringShape.new(name: 'XmlStringMetricStat')
399
404
  XmlStringUserData = Shapes::StringShape.new(name: 'XmlStringUserData')
405
+ ZonalShiftEnabled = Shapes::BooleanShape.new(name: 'ZonalShiftEnabled')
400
406
 
401
407
  AcceleratorCountRequest.add_member(:min, Shapes::ShapeRef.new(shape: NullablePositiveInteger, location_name: "Min"))
402
408
  AcceleratorCountRequest.add_member(:max, Shapes::ShapeRef.new(shape: NullablePositiveInteger, location_name: "Max"))
@@ -481,6 +487,7 @@ module Aws::AutoScaling
481
487
 
482
488
  AttachTrafficSourcesType.add_member(:auto_scaling_group_name, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, required: true, location_name: "AutoScalingGroupName"))
483
489
  AttachTrafficSourcesType.add_member(:traffic_sources, Shapes::ShapeRef.new(shape: TrafficSources, required: true, location_name: "TrafficSources"))
490
+ AttachTrafficSourcesType.add_member(:skip_zonal_shift_validation, Shapes::ShapeRef.new(shape: SkipZonalShiftValidation, location_name: "SkipZonalShiftValidation"))
484
491
  AttachTrafficSourcesType.struct_class = Types::AttachTrafficSourcesType
485
492
 
486
493
  AutoScalingGroup.add_member(:auto_scaling_group_name, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, required: true, location_name: "AutoScalingGroupName"))
@@ -518,6 +525,8 @@ module Aws::AutoScaling
518
525
  AutoScalingGroup.add_member(:default_instance_warmup, Shapes::ShapeRef.new(shape: DefaultInstanceWarmup, location_name: "DefaultInstanceWarmup"))
519
526
  AutoScalingGroup.add_member(:traffic_sources, Shapes::ShapeRef.new(shape: TrafficSources, location_name: "TrafficSources"))
520
527
  AutoScalingGroup.add_member(:instance_maintenance_policy, Shapes::ShapeRef.new(shape: InstanceMaintenancePolicy, location_name: "InstanceMaintenancePolicy"))
528
+ AutoScalingGroup.add_member(:availability_zone_distribution, Shapes::ShapeRef.new(shape: AvailabilityZoneDistribution, location_name: "AvailabilityZoneDistribution"))
529
+ AutoScalingGroup.add_member(:availability_zone_impairment_policy, Shapes::ShapeRef.new(shape: AvailabilityZoneImpairmentPolicy, location_name: "AvailabilityZoneImpairmentPolicy"))
521
530
  AutoScalingGroup.struct_class = Types::AutoScalingGroup
522
531
 
523
532
  AutoScalingGroupNames.member = Shapes::ShapeRef.new(shape: XmlStringMaxLen255)
@@ -554,6 +563,13 @@ module Aws::AutoScaling
554
563
 
555
564
  AutoScalingNotificationTypes.member = Shapes::ShapeRef.new(shape: XmlStringMaxLen255)
556
565
 
566
+ AvailabilityZoneDistribution.add_member(:capacity_distribution_strategy, Shapes::ShapeRef.new(shape: CapacityDistributionStrategy, location_name: "CapacityDistributionStrategy"))
567
+ AvailabilityZoneDistribution.struct_class = Types::AvailabilityZoneDistribution
568
+
569
+ AvailabilityZoneImpairmentPolicy.add_member(:zonal_shift_enabled, Shapes::ShapeRef.new(shape: ZonalShiftEnabled, location_name: "ZonalShiftEnabled"))
570
+ AvailabilityZoneImpairmentPolicy.add_member(:impaired_zone_health_check_behavior, Shapes::ShapeRef.new(shape: ImpairedZoneHealthCheckBehavior, location_name: "ImpairedZoneHealthCheckBehavior"))
571
+ AvailabilityZoneImpairmentPolicy.struct_class = Types::AvailabilityZoneImpairmentPolicy
572
+
557
573
  AvailabilityZones.member = Shapes::ShapeRef.new(shape: XmlStringMaxLen255)
558
574
 
559
575
  BaselineEbsBandwidthMbpsRequest.add_member(:min, Shapes::ShapeRef.new(shape: NullablePositiveInteger, location_name: "Min"))
@@ -635,6 +651,9 @@ module Aws::AutoScaling
635
651
  CreateAutoScalingGroupType.add_member(:default_instance_warmup, Shapes::ShapeRef.new(shape: DefaultInstanceWarmup, location_name: "DefaultInstanceWarmup"))
636
652
  CreateAutoScalingGroupType.add_member(:traffic_sources, Shapes::ShapeRef.new(shape: TrafficSources, location_name: "TrafficSources"))
637
653
  CreateAutoScalingGroupType.add_member(:instance_maintenance_policy, Shapes::ShapeRef.new(shape: InstanceMaintenancePolicy, location_name: "InstanceMaintenancePolicy"))
654
+ CreateAutoScalingGroupType.add_member(:availability_zone_distribution, Shapes::ShapeRef.new(shape: AvailabilityZoneDistribution, location_name: "AvailabilityZoneDistribution"))
655
+ CreateAutoScalingGroupType.add_member(:availability_zone_impairment_policy, Shapes::ShapeRef.new(shape: AvailabilityZoneImpairmentPolicy, location_name: "AvailabilityZoneImpairmentPolicy"))
656
+ CreateAutoScalingGroupType.add_member(:skip_zonal_shift_validation, Shapes::ShapeRef.new(shape: SkipZonalShiftValidation, location_name: "SkipZonalShiftValidation"))
638
657
  CreateAutoScalingGroupType.struct_class = Types::CreateAutoScalingGroupType
639
658
 
640
659
  CreateLaunchConfigurationType.add_member(:launch_configuration_name, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, required: true, location_name: "LaunchConfigurationName"))
@@ -1553,6 +1572,9 @@ module Aws::AutoScaling
1553
1572
  UpdateAutoScalingGroupType.add_member(:desired_capacity_type, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, location_name: "DesiredCapacityType"))
1554
1573
  UpdateAutoScalingGroupType.add_member(:default_instance_warmup, Shapes::ShapeRef.new(shape: DefaultInstanceWarmup, location_name: "DefaultInstanceWarmup"))
1555
1574
  UpdateAutoScalingGroupType.add_member(:instance_maintenance_policy, Shapes::ShapeRef.new(shape: InstanceMaintenancePolicy, location_name: "InstanceMaintenancePolicy"))
1575
+ UpdateAutoScalingGroupType.add_member(:availability_zone_distribution, Shapes::ShapeRef.new(shape: AvailabilityZoneDistribution, location_name: "AvailabilityZoneDistribution"))
1576
+ UpdateAutoScalingGroupType.add_member(:availability_zone_impairment_policy, Shapes::ShapeRef.new(shape: AvailabilityZoneImpairmentPolicy, location_name: "AvailabilityZoneImpairmentPolicy"))
1577
+ UpdateAutoScalingGroupType.add_member(:skip_zonal_shift_validation, Shapes::ShapeRef.new(shape: SkipZonalShiftValidation, location_name: "SkipZonalShiftValidation"))
1556
1578
  UpdateAutoScalingGroupType.struct_class = Types::UpdateAutoScalingGroupType
1557
1579
 
1558
1580
  VCpuCountRequest.add_member(:min, Shapes::ShapeRef.new(shape: NullablePositiveInteger, required: true, location_name: "Min"))
@@ -176,6 +176,14 @@ module Aws::AutoScaling
176
176
  # min_healthy_percentage: 1,
177
177
  # max_healthy_percentage: 1,
178
178
  # },
179
+ # availability_zone_distribution: {
180
+ # capacity_distribution_strategy: "balanced-only", # accepts balanced-only, balanced-best-effort
181
+ # },
182
+ # availability_zone_impairment_policy: {
183
+ # zonal_shift_enabled: false,
184
+ # impaired_zone_health_check_behavior: "ReplaceUnhealthy", # accepts ReplaceUnhealthy, IgnoreUnhealthy
185
+ # },
186
+ # skip_zonal_shift_validation: false,
179
187
  # })
180
188
  # @param [Hash] options ({})
181
189
  # @option options [required, String] :auto_scaling_group_name
@@ -468,6 +476,20 @@ module Aws::AutoScaling
468
476
  #
469
477
  #
470
478
  # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-instance-maintenance-policy.html
479
+ # @option options [Types::AvailabilityZoneDistribution] :availability_zone_distribution
480
+ # The instance capacity distribution across Availability Zones.
481
+ # @option options [Types::AvailabilityZoneImpairmentPolicy] :availability_zone_impairment_policy
482
+ # The policy for Availability Zone impairment.
483
+ # @option options [Boolean] :skip_zonal_shift_validation
484
+ # If you enable zonal shift with cross-zone disabled load balancers,
485
+ # capacity could become imbalanced across Availability Zones. To skip
486
+ # the validation, specify `true`. For more information, see [Auto
487
+ # Scaling group zonal shift][1] in the *Amazon EC2 Auto Scaling User
488
+ # Guide*.
489
+ #
490
+ #
491
+ #
492
+ # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-zonal-shift.html
471
493
  # @return [AutoScalingGroup]
472
494
  def create_group(options = {})
473
495
  Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
@@ -324,11 +324,24 @@ module Aws::AutoScaling
324
324
  # specify up to 10 traffic sources.
325
325
  # @return [Array<Types::TrafficSourceIdentifier>]
326
326
  #
327
+ # @!attribute [rw] skip_zonal_shift_validation
328
+ # If you enable zonal shift with cross-zone disabled load balancers,
329
+ # capacity could become imbalanced across Availability Zones. To skip
330
+ # the validation, specify `true`. For more information, see [Auto
331
+ # Scaling group zonal shift][1] in the *Amazon EC2 Auto Scaling User
332
+ # Guide*.
333
+ #
334
+ #
335
+ #
336
+ # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-zonal-shift.html
337
+ # @return [Boolean]
338
+ #
327
339
  # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AttachTrafficSourcesType AWS API Documentation
328
340
  #
329
341
  class AttachTrafficSourcesType < Struct.new(
330
342
  :auto_scaling_group_name,
331
- :traffic_sources)
343
+ :traffic_sources,
344
+ :skip_zonal_shift_validation)
332
345
  SENSITIVE = []
333
346
  include Aws::Structure
334
347
  end
@@ -491,6 +504,14 @@ module Aws::AutoScaling
491
504
  # An instance maintenance policy.
492
505
  # @return [Types::InstanceMaintenancePolicy]
493
506
  #
507
+ # @!attribute [rw] availability_zone_distribution
508
+ # The instance capacity distribution across Availability Zones.
509
+ # @return [Types::AvailabilityZoneDistribution]
510
+ #
511
+ # @!attribute [rw] availability_zone_impairment_policy
512
+ # The Availability Zone impairment policy.
513
+ # @return [Types::AvailabilityZoneImpairmentPolicy]
514
+ #
494
515
  # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AutoScalingGroup AWS API Documentation
495
516
  #
496
517
  class AutoScalingGroup < Struct.new(
@@ -528,7 +549,9 @@ module Aws::AutoScaling
528
549
  :desired_capacity_type,
529
550
  :default_instance_warmup,
530
551
  :traffic_sources,
531
- :instance_maintenance_policy)
552
+ :instance_maintenance_policy,
553
+ :availability_zone_distribution,
554
+ :availability_zone_impairment_policy)
532
555
  SENSITIVE = []
533
556
  include Aws::Structure
534
557
  end
@@ -691,6 +714,58 @@ module Aws::AutoScaling
691
714
  include Aws::Structure
692
715
  end
693
716
 
717
+ # Describes an Availability Zone distribution.
718
+ #
719
+ # @!attribute [rw] capacity_distribution_strategy
720
+ # If launches fail in an Availability Zone, the following strategies
721
+ # are available. The default is `balanced-best-effort`.
722
+ #
723
+ # * `balanced-only` - If launches fail in an Availability Zone, Auto
724
+ # Scaling will continue to attempt to launch in the unhealthy zone
725
+ # to preserve a balanced distribution.
726
+ #
727
+ # * `balanced-best-effort` - If launches fail in an Availability Zone,
728
+ # Auto Scaling will attempt to launch in another healthy
729
+ # Availability Zone instead.
730
+ # @return [String]
731
+ #
732
+ # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AvailabilityZoneDistribution AWS API Documentation
733
+ #
734
+ class AvailabilityZoneDistribution < Struct.new(
735
+ :capacity_distribution_strategy)
736
+ SENSITIVE = []
737
+ include Aws::Structure
738
+ end
739
+
740
+ # Describes an Availability Zone impairment policy.
741
+ #
742
+ # @!attribute [rw] zonal_shift_enabled
743
+ # If `true`, enable zonal shift for your Auto Scaling group.
744
+ # @return [Boolean]
745
+ #
746
+ # @!attribute [rw] impaired_zone_health_check_behavior
747
+ # Specifies the health check behavior for the impaired Availability
748
+ # Zone in an active zonal shift. If you select `Replace unhealthy`,
749
+ # instances that appear unhealthy will be replaced in all Availability
750
+ # Zones. If you select `Ignore unhealthy`, instances will not be
751
+ # replaced in the Availability Zone with the active zonal shift. For
752
+ # more information, see [Auto Scaling group zonal shift][1] in the
753
+ # *Amazon EC2 Auto Scaling User Guide*.
754
+ #
755
+ #
756
+ #
757
+ # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-zonal-shift.html
758
+ # @return [String]
759
+ #
760
+ # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AvailabilityZoneImpairmentPolicy AWS API Documentation
761
+ #
762
+ class AvailabilityZoneImpairmentPolicy < Struct.new(
763
+ :zonal_shift_enabled,
764
+ :impaired_zone_health_check_behavior)
765
+ SENSITIVE = []
766
+ include Aws::Structure
767
+ end
768
+
694
769
  # Specifies the minimum and maximum for the `BaselineEbsBandwidthMbps`
695
770
  # object when you specify [InstanceRequirements][1] for an Auto Scaling
696
771
  # group.
@@ -1263,6 +1338,26 @@ module Aws::AutoScaling
1263
1338
  # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-instance-maintenance-policy.html
1264
1339
  # @return [Types::InstanceMaintenancePolicy]
1265
1340
  #
1341
+ # @!attribute [rw] availability_zone_distribution
1342
+ # The instance capacity distribution across Availability Zones.
1343
+ # @return [Types::AvailabilityZoneDistribution]
1344
+ #
1345
+ # @!attribute [rw] availability_zone_impairment_policy
1346
+ # The policy for Availability Zone impairment.
1347
+ # @return [Types::AvailabilityZoneImpairmentPolicy]
1348
+ #
1349
+ # @!attribute [rw] skip_zonal_shift_validation
1350
+ # If you enable zonal shift with cross-zone disabled load balancers,
1351
+ # capacity could become imbalanced across Availability Zones. To skip
1352
+ # the validation, specify `true`. For more information, see [Auto
1353
+ # Scaling group zonal shift][1] in the *Amazon EC2 Auto Scaling User
1354
+ # Guide*.
1355
+ #
1356
+ #
1357
+ #
1358
+ # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-zonal-shift.html
1359
+ # @return [Boolean]
1360
+ #
1266
1361
  # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CreateAutoScalingGroupType AWS API Documentation
1267
1362
  #
1268
1363
  class CreateAutoScalingGroupType < Struct.new(
@@ -1293,7 +1388,10 @@ module Aws::AutoScaling
1293
1388
  :desired_capacity_type,
1294
1389
  :default_instance_warmup,
1295
1390
  :traffic_sources,
1296
- :instance_maintenance_policy)
1391
+ :instance_maintenance_policy,
1392
+ :availability_zone_distribution,
1393
+ :availability_zone_impairment_policy,
1394
+ :skip_zonal_shift_validation)
1297
1395
  SENSITIVE = []
1298
1396
  include Aws::Structure
1299
1397
  end
@@ -7905,6 +8003,26 @@ module Aws::AutoScaling
7905
8003
  # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-instance-maintenance-policy.html
7906
8004
  # @return [Types::InstanceMaintenancePolicy]
7907
8005
  #
8006
+ # @!attribute [rw] availability_zone_distribution
8007
+ # The instance capacity distribution across Availability Zones.
8008
+ # @return [Types::AvailabilityZoneDistribution]
8009
+ #
8010
+ # @!attribute [rw] availability_zone_impairment_policy
8011
+ # The policy for Availability Zone impairment.
8012
+ # @return [Types::AvailabilityZoneImpairmentPolicy]
8013
+ #
8014
+ # @!attribute [rw] skip_zonal_shift_validation
8015
+ # If you enable zonal shift with cross-zone disabled load balancers,
8016
+ # capacity could become imbalanced across Availability Zones. To skip
8017
+ # the validation, specify `true`. For more information, see [Auto
8018
+ # Scaling group zonal shift][1] in the *Amazon EC2 Auto Scaling User
8019
+ # Guide*.
8020
+ #
8021
+ #
8022
+ #
8023
+ # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-zonal-shift.html
8024
+ # @return [Boolean]
8025
+ #
7908
8026
  # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/UpdateAutoScalingGroupType AWS API Documentation
7909
8027
  #
7910
8028
  class UpdateAutoScalingGroupType < Struct.new(
@@ -7929,7 +8047,10 @@ module Aws::AutoScaling
7929
8047
  :context,
7930
8048
  :desired_capacity_type,
7931
8049
  :default_instance_warmup,
7932
- :instance_maintenance_policy)
8050
+ :instance_maintenance_policy,
8051
+ :availability_zone_distribution,
8052
+ :availability_zone_impairment_policy,
8053
+ :skip_zonal_shift_validation)
7933
8054
  SENSITIVE = []
7934
8055
  include Aws::Structure
7935
8056
  end
@@ -65,7 +65,7 @@ module Aws::AutoScaling
65
65
  autoload :ScheduledAction, 'aws-sdk-autoscaling/scheduled_action'
66
66
  autoload :Tag, 'aws-sdk-autoscaling/tag'
67
67
 
68
- GEM_VERSION = '1.124.0'
68
+ GEM_VERSION = '1.126.0'
69
69
 
70
70
  end
71
71
 
@@ -114,6 +114,12 @@ module Aws
114
114
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/AutoScaling/AutoScalingGroup.html#instance_maintenance_policy-instance_method
115
115
  def instance_maintenance_policy: () -> Types::InstanceMaintenancePolicy
116
116
 
117
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/AutoScaling/AutoScalingGroup.html#availability_zone_distribution-instance_method
118
+ def availability_zone_distribution: () -> Types::AvailabilityZoneDistribution
119
+
120
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/AutoScaling/AutoScalingGroup.html#availability_zone_impairment_policy-instance_method
121
+ def availability_zone_impairment_policy: () -> Types::AvailabilityZoneImpairmentPolicy
122
+
117
123
  def client: () -> Client
118
124
 
119
125
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/AutoScaling/AutoScalingGroup.html#load-instance_method
@@ -475,7 +481,15 @@ module Aws
475
481
  ?instance_maintenance_policy: {
476
482
  min_healthy_percentage: ::Integer?,
477
483
  max_healthy_percentage: ::Integer?
478
- }
484
+ },
485
+ ?availability_zone_distribution: {
486
+ capacity_distribution_strategy: ("balanced-only" | "balanced-best-effort")?
487
+ },
488
+ ?availability_zone_impairment_policy: {
489
+ zonal_shift_enabled: bool?,
490
+ impaired_zone_health_check_behavior: ("ReplaceUnhealthy" | "IgnoreUnhealthy")?
491
+ },
492
+ ?skip_zonal_shift_validation: bool
479
493
  ) -> AutoScalingGroup
480
494
  | (?Hash[Symbol, untyped]) -> AutoScalingGroup
481
495
 
data/sig/client.rbs CHANGED
@@ -113,7 +113,8 @@ module Aws
113
113
  identifier: ::String,
114
114
  type: ::String?
115
115
  },
116
- ]
116
+ ],
117
+ ?skip_zonal_shift_validation: bool
117
118
  ) -> _AttachTrafficSourcesResponseSuccess
118
119
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _AttachTrafficSourcesResponseSuccess
119
120
 
@@ -312,7 +313,15 @@ module Aws
312
313
  ?instance_maintenance_policy: {
313
314
  min_healthy_percentage: ::Integer?,
314
315
  max_healthy_percentage: ::Integer?
315
- }
316
+ },
317
+ ?availability_zone_distribution: {
318
+ capacity_distribution_strategy: ("balanced-only" | "balanced-best-effort")?
319
+ },
320
+ ?availability_zone_impairment_policy: {
321
+ zonal_shift_enabled: bool?,
322
+ impaired_zone_health_check_behavior: ("ReplaceUnhealthy" | "IgnoreUnhealthy")?
323
+ },
324
+ ?skip_zonal_shift_validation: bool
316
325
  ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
317
326
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
318
327
 
@@ -1331,7 +1340,15 @@ module Aws
1331
1340
  ?instance_maintenance_policy: {
1332
1341
  min_healthy_percentage: ::Integer?,
1333
1342
  max_healthy_percentage: ::Integer?
1334
- }
1343
+ },
1344
+ ?availability_zone_distribution: {
1345
+ capacity_distribution_strategy: ("balanced-only" | "balanced-best-effort")?
1346
+ },
1347
+ ?availability_zone_impairment_policy: {
1348
+ zonal_shift_enabled: bool?,
1349
+ impaired_zone_health_check_behavior: ("ReplaceUnhealthy" | "IgnoreUnhealthy")?
1350
+ },
1351
+ ?skip_zonal_shift_validation: bool
1335
1352
  ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
1336
1353
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
1337
1354
 
data/sig/resource.rbs CHANGED
@@ -216,7 +216,15 @@ module Aws
216
216
  ?instance_maintenance_policy: {
217
217
  min_healthy_percentage: ::Integer?,
218
218
  max_healthy_percentage: ::Integer?
219
- }
219
+ },
220
+ ?availability_zone_distribution: {
221
+ capacity_distribution_strategy: ("balanced-only" | "balanced-best-effort")?
222
+ },
223
+ ?availability_zone_impairment_policy: {
224
+ zonal_shift_enabled: bool?,
225
+ impaired_zone_health_check_behavior: ("ReplaceUnhealthy" | "IgnoreUnhealthy")?
226
+ },
227
+ ?skip_zonal_shift_validation: bool
220
228
  ) -> AutoScalingGroup
221
229
  | (?Hash[Symbol, untyped]) -> AutoScalingGroup
222
230
 
data/sig/types.rbs CHANGED
@@ -103,6 +103,7 @@ module Aws::AutoScaling
103
103
  class AttachTrafficSourcesType
104
104
  attr_accessor auto_scaling_group_name: ::String
105
105
  attr_accessor traffic_sources: ::Array[Types::TrafficSourceIdentifier]
106
+ attr_accessor skip_zonal_shift_validation: bool
106
107
  SENSITIVE: []
107
108
  end
108
109
 
@@ -142,6 +143,8 @@ module Aws::AutoScaling
142
143
  attr_accessor default_instance_warmup: ::Integer
143
144
  attr_accessor traffic_sources: ::Array[Types::TrafficSourceIdentifier]
144
145
  attr_accessor instance_maintenance_policy: Types::InstanceMaintenancePolicy
146
+ attr_accessor availability_zone_distribution: Types::AvailabilityZoneDistribution
147
+ attr_accessor availability_zone_impairment_policy: Types::AvailabilityZoneImpairmentPolicy
145
148
  SENSITIVE: []
146
149
  end
147
150
 
@@ -179,6 +182,17 @@ module Aws::AutoScaling
179
182
  SENSITIVE: []
180
183
  end
181
184
 
185
+ class AvailabilityZoneDistribution
186
+ attr_accessor capacity_distribution_strategy: ("balanced-only" | "balanced-best-effort")
187
+ SENSITIVE: []
188
+ end
189
+
190
+ class AvailabilityZoneImpairmentPolicy
191
+ attr_accessor zonal_shift_enabled: bool
192
+ attr_accessor impaired_zone_health_check_behavior: ("ReplaceUnhealthy" | "IgnoreUnhealthy")
193
+ SENSITIVE: []
194
+ end
195
+
182
196
  class BaselineEbsBandwidthMbpsRequest
183
197
  attr_accessor min: ::Integer
184
198
  attr_accessor max: ::Integer
@@ -272,6 +286,9 @@ module Aws::AutoScaling
272
286
  attr_accessor default_instance_warmup: ::Integer
273
287
  attr_accessor traffic_sources: ::Array[Types::TrafficSourceIdentifier]
274
288
  attr_accessor instance_maintenance_policy: Types::InstanceMaintenancePolicy
289
+ attr_accessor availability_zone_distribution: Types::AvailabilityZoneDistribution
290
+ attr_accessor availability_zone_impairment_policy: Types::AvailabilityZoneImpairmentPolicy
291
+ attr_accessor skip_zonal_shift_validation: bool
275
292
  SENSITIVE: []
276
293
  end
277
294
 
@@ -1391,6 +1408,9 @@ module Aws::AutoScaling
1391
1408
  attr_accessor desired_capacity_type: ::String
1392
1409
  attr_accessor default_instance_warmup: ::Integer
1393
1410
  attr_accessor instance_maintenance_policy: Types::InstanceMaintenancePolicy
1411
+ attr_accessor availability_zone_distribution: Types::AvailabilityZoneDistribution
1412
+ attr_accessor availability_zone_impairment_policy: Types::AvailabilityZoneImpairmentPolicy
1413
+ attr_accessor skip_zonal_shift_validation: bool
1394
1414
  SENSITIVE: []
1395
1415
  end
1396
1416
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-autoscaling
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.124.0
4
+ version: 1.126.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-10-31 00:00:00.000000000 Z
11
+ date: 2024-11-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core