aws-sdk-autoscaling 1.75.0 → 1.99.0

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.
@@ -30,8 +30,13 @@ module Aws::AutoScaling
30
30
  AdjustmentType = Shapes::StructureShape.new(name: 'AdjustmentType')
31
31
  AdjustmentTypes = Shapes::ListShape.new(name: 'AdjustmentTypes')
32
32
  Alarm = Shapes::StructureShape.new(name: 'Alarm')
33
+ AlarmList = Shapes::ListShape.new(name: 'AlarmList')
34
+ AlarmSpecification = Shapes::StructureShape.new(name: 'AlarmSpecification')
33
35
  Alarms = Shapes::ListShape.new(name: 'Alarms')
36
+ AllowedInstanceType = Shapes::StringShape.new(name: 'AllowedInstanceType')
37
+ AllowedInstanceTypes = Shapes::ListShape.new(name: 'AllowedInstanceTypes')
34
38
  AlreadyExistsFault = Shapes::StructureShape.new(name: 'AlreadyExistsFault')
39
+ AnyPrintableAsciiStringMaxLen4000 = Shapes::StringShape.new(name: 'AnyPrintableAsciiStringMaxLen4000')
35
40
  AsciiStringMaxLen255 = Shapes::StringShape.new(name: 'AsciiStringMaxLen255')
36
41
  AssociatePublicIpAddress = Shapes::BooleanShape.new(name: 'AssociatePublicIpAddress')
37
42
  AttachInstancesQuery = Shapes::StructureShape.new(name: 'AttachInstancesQuery')
@@ -39,6 +44,9 @@ module Aws::AutoScaling
39
44
  AttachLoadBalancerTargetGroupsType = Shapes::StructureShape.new(name: 'AttachLoadBalancerTargetGroupsType')
40
45
  AttachLoadBalancersResultType = Shapes::StructureShape.new(name: 'AttachLoadBalancersResultType')
41
46
  AttachLoadBalancersType = Shapes::StructureShape.new(name: 'AttachLoadBalancersType')
47
+ AttachTrafficSourcesResultType = Shapes::StructureShape.new(name: 'AttachTrafficSourcesResultType')
48
+ AttachTrafficSourcesType = Shapes::StructureShape.new(name: 'AttachTrafficSourcesType')
49
+ AutoRollback = Shapes::BooleanShape.new(name: 'AutoRollback')
42
50
  AutoScalingGroup = Shapes::StructureShape.new(name: 'AutoScalingGroup')
43
51
  AutoScalingGroupDesiredCapacity = Shapes::IntegerShape.new(name: 'AutoScalingGroupDesiredCapacity')
44
52
  AutoScalingGroupMaxSize = Shapes::IntegerShape.new(name: 'AutoScalingGroupMaxSize')
@@ -86,6 +94,7 @@ module Aws::AutoScaling
86
94
  CreateLaunchConfigurationType = Shapes::StructureShape.new(name: 'CreateLaunchConfigurationType')
87
95
  CreateOrUpdateTagsType = Shapes::StructureShape.new(name: 'CreateOrUpdateTagsType')
88
96
  CustomizedMetricSpecification = Shapes::StructureShape.new(name: 'CustomizedMetricSpecification')
97
+ DefaultInstanceWarmup = Shapes::IntegerShape.new(name: 'DefaultInstanceWarmup')
89
98
  DeleteAutoScalingGroupType = Shapes::StructureShape.new(name: 'DeleteAutoScalingGroupType')
90
99
  DeleteLifecycleHookAnswer = Shapes::StructureShape.new(name: 'DeleteLifecycleHookAnswer')
91
100
  DeleteLifecycleHookType = Shapes::StructureShape.new(name: 'DeleteLifecycleHookType')
@@ -116,6 +125,8 @@ module Aws::AutoScaling
116
125
  DescribeScheduledActionsType = Shapes::StructureShape.new(name: 'DescribeScheduledActionsType')
117
126
  DescribeTagsType = Shapes::StructureShape.new(name: 'DescribeTagsType')
118
127
  DescribeTerminationPolicyTypesAnswer = Shapes::StructureShape.new(name: 'DescribeTerminationPolicyTypesAnswer')
128
+ DescribeTrafficSourcesRequest = Shapes::StructureShape.new(name: 'DescribeTrafficSourcesRequest')
129
+ DescribeTrafficSourcesResponse = Shapes::StructureShape.new(name: 'DescribeTrafficSourcesResponse')
119
130
  DescribeWarmPoolAnswer = Shapes::StructureShape.new(name: 'DescribeWarmPoolAnswer')
120
131
  DescribeWarmPoolType = Shapes::StructureShape.new(name: 'DescribeWarmPoolType')
121
132
  DesiredConfiguration = Shapes::StructureShape.new(name: 'DesiredConfiguration')
@@ -125,6 +136,8 @@ module Aws::AutoScaling
125
136
  DetachLoadBalancerTargetGroupsType = Shapes::StructureShape.new(name: 'DetachLoadBalancerTargetGroupsType')
126
137
  DetachLoadBalancersResultType = Shapes::StructureShape.new(name: 'DetachLoadBalancersResultType')
127
138
  DetachLoadBalancersType = Shapes::StructureShape.new(name: 'DetachLoadBalancersType')
139
+ DetachTrafficSourcesResultType = Shapes::StructureShape.new(name: 'DetachTrafficSourcesResultType')
140
+ DetachTrafficSourcesType = Shapes::StructureShape.new(name: 'DetachTrafficSourcesType')
128
141
  DisableMetricsCollectionQuery = Shapes::StructureShape.new(name: 'DisableMetricsCollectionQuery')
129
142
  DisableScaleIn = Shapes::BooleanShape.new(name: 'DisableScaleIn')
130
143
  Ebs = Shapes::StructureShape.new(name: 'Ebs')
@@ -171,11 +184,13 @@ module Aws::AutoScaling
171
184
  InstanceRefreshWarmPoolProgress = Shapes::StructureShape.new(name: 'InstanceRefreshWarmPoolProgress')
172
185
  InstanceRefreshes = Shapes::ListShape.new(name: 'InstanceRefreshes')
173
186
  InstanceRequirements = Shapes::StructureShape.new(name: 'InstanceRequirements')
187
+ InstanceReusePolicy = Shapes::StructureShape.new(name: 'InstanceReusePolicy')
174
188
  Instances = Shapes::ListShape.new(name: 'Instances')
175
189
  InstancesDistribution = Shapes::StructureShape.new(name: 'InstancesDistribution')
176
190
  InstancesToUpdate = Shapes::IntegerShape.new(name: 'InstancesToUpdate')
177
191
  IntPercent = Shapes::IntegerShape.new(name: 'IntPercent')
178
192
  InvalidNextToken = Shapes::StructureShape.new(name: 'InvalidNextToken')
193
+ IrreversibleInstanceRefreshFault = Shapes::StructureShape.new(name: 'IrreversibleInstanceRefreshFault')
179
194
  LaunchConfiguration = Shapes::StructureShape.new(name: 'LaunchConfiguration')
180
195
  LaunchConfigurationNameType = Shapes::StructureShape.new(name: 'LaunchConfigurationNameType')
181
196
  LaunchConfigurationNames = Shapes::ListShape.new(name: 'LaunchConfigurationNames')
@@ -237,6 +252,7 @@ module Aws::AutoScaling
237
252
  MixedInstanceSpotPrice = Shapes::StringShape.new(name: 'MixedInstanceSpotPrice')
238
253
  MixedInstancesPolicy = Shapes::StructureShape.new(name: 'MixedInstancesPolicy')
239
254
  MonitoringEnabled = Shapes::BooleanShape.new(name: 'MonitoringEnabled')
255
+ NetworkBandwidthGbpsRequest = Shapes::StructureShape.new(name: 'NetworkBandwidthGbpsRequest')
240
256
  NetworkInterfaceCountRequest = Shapes::StructureShape.new(name: 'NetworkInterfaceCountRequest')
241
257
  NoDevice = Shapes::BooleanShape.new(name: 'NoDevice')
242
258
  NonZeroIntPercent = Shapes::IntegerShape.new(name: 'NonZeroIntPercent')
@@ -298,6 +314,11 @@ module Aws::AutoScaling
298
314
  ResourceInUseFault = Shapes::StructureShape.new(name: 'ResourceInUseFault')
299
315
  ResourceName = Shapes::StringShape.new(name: 'ResourceName')
300
316
  ReturnData = Shapes::BooleanShape.new(name: 'ReturnData')
317
+ ReuseOnScaleIn = Shapes::BooleanShape.new(name: 'ReuseOnScaleIn')
318
+ RollbackDetails = Shapes::StructureShape.new(name: 'RollbackDetails')
319
+ RollbackInstanceRefreshAnswer = Shapes::StructureShape.new(name: 'RollbackInstanceRefreshAnswer')
320
+ RollbackInstanceRefreshType = Shapes::StructureShape.new(name: 'RollbackInstanceRefreshType')
321
+ ScaleInProtectedInstances = Shapes::StringShape.new(name: 'ScaleInProtectedInstances')
301
322
  ScalingActivityInProgressFault = Shapes::StructureShape.new(name: 'ScalingActivityInProgressFault')
302
323
  ScalingActivityStatusCode = Shapes::StringShape.new(name: 'ScalingActivityStatusCode')
303
324
  ScalingPolicies = Shapes::ListShape.new(name: 'ScalingPolicies')
@@ -321,6 +342,7 @@ module Aws::AutoScaling
321
342
  SkipMatching = Shapes::BooleanShape.new(name: 'SkipMatching')
322
343
  SpotInstancePools = Shapes::IntegerShape.new(name: 'SpotInstancePools')
323
344
  SpotPrice = Shapes::StringShape.new(name: 'SpotPrice')
345
+ StandbyInstances = Shapes::StringShape.new(name: 'StandbyInstances')
324
346
  StartInstanceRefreshAnswer = Shapes::StructureShape.new(name: 'StartInstanceRefreshAnswer')
325
347
  StartInstanceRefreshType = Shapes::StructureShape.new(name: 'StartInstanceRefreshType')
326
348
  StepAdjustment = Shapes::StructureShape.new(name: 'StepAdjustment')
@@ -336,10 +358,17 @@ module Aws::AutoScaling
336
358
  TagsType = Shapes::StructureShape.new(name: 'TagsType')
337
359
  TargetGroupARNs = Shapes::ListShape.new(name: 'TargetGroupARNs')
338
360
  TargetTrackingConfiguration = Shapes::StructureShape.new(name: 'TargetTrackingConfiguration')
361
+ TargetTrackingMetricDataQueries = Shapes::ListShape.new(name: 'TargetTrackingMetricDataQueries')
362
+ TargetTrackingMetricDataQuery = Shapes::StructureShape.new(name: 'TargetTrackingMetricDataQuery')
363
+ TargetTrackingMetricStat = Shapes::StructureShape.new(name: 'TargetTrackingMetricStat')
339
364
  TerminateInstanceInAutoScalingGroupType = Shapes::StructureShape.new(name: 'TerminateInstanceInAutoScalingGroupType')
340
365
  TerminationPolicies = Shapes::ListShape.new(name: 'TerminationPolicies')
341
366
  TimestampType = Shapes::TimestampShape.new(name: 'TimestampType')
342
367
  TotalLocalStorageGBRequest = Shapes::StructureShape.new(name: 'TotalLocalStorageGBRequest')
368
+ TrafficSourceIdentifier = Shapes::StructureShape.new(name: 'TrafficSourceIdentifier')
369
+ TrafficSourceState = Shapes::StructureShape.new(name: 'TrafficSourceState')
370
+ TrafficSourceStates = Shapes::ListShape.new(name: 'TrafficSourceStates')
371
+ TrafficSources = Shapes::ListShape.new(name: 'TrafficSources')
343
372
  UpdateAutoScalingGroupType = Shapes::StructureShape.new(name: 'UpdateAutoScalingGroupType')
344
373
  VCpuCountRequest = Shapes::StructureShape.new(name: 'VCpuCountRequest')
345
374
  Values = Shapes::ListShape.new(name: 'Values')
@@ -412,8 +441,15 @@ module Aws::AutoScaling
412
441
  Alarm.add_member(:alarm_arn, Shapes::ShapeRef.new(shape: ResourceName, location_name: "AlarmARN"))
413
442
  Alarm.struct_class = Types::Alarm
414
443
 
444
+ AlarmList.member = Shapes::ShapeRef.new(shape: XmlStringMaxLen255)
445
+
446
+ AlarmSpecification.add_member(:alarms, Shapes::ShapeRef.new(shape: AlarmList, location_name: "Alarms"))
447
+ AlarmSpecification.struct_class = Types::AlarmSpecification
448
+
415
449
  Alarms.member = Shapes::ShapeRef.new(shape: Alarm)
416
450
 
451
+ AllowedInstanceTypes.member = Shapes::ShapeRef.new(shape: AllowedInstanceType)
452
+
417
453
  AlreadyExistsFault.add_member(:message, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, location_name: "message"))
418
454
  AlreadyExistsFault.struct_class = Types::AlreadyExistsFault
419
455
 
@@ -433,6 +469,12 @@ module Aws::AutoScaling
433
469
  AttachLoadBalancersType.add_member(:load_balancer_names, Shapes::ShapeRef.new(shape: LoadBalancerNames, required: true, location_name: "LoadBalancerNames"))
434
470
  AttachLoadBalancersType.struct_class = Types::AttachLoadBalancersType
435
471
 
472
+ AttachTrafficSourcesResultType.struct_class = Types::AttachTrafficSourcesResultType
473
+
474
+ AttachTrafficSourcesType.add_member(:auto_scaling_group_name, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, required: true, location_name: "AutoScalingGroupName"))
475
+ AttachTrafficSourcesType.add_member(:traffic_sources, Shapes::ShapeRef.new(shape: TrafficSources, required: true, location_name: "TrafficSources"))
476
+ AttachTrafficSourcesType.struct_class = Types::AttachTrafficSourcesType
477
+
436
478
  AutoScalingGroup.add_member(:auto_scaling_group_name, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, required: true, location_name: "AutoScalingGroupName"))
437
479
  AutoScalingGroup.add_member(:auto_scaling_group_arn, Shapes::ShapeRef.new(shape: ResourceName, location_name: "AutoScalingGroupARN"))
438
480
  AutoScalingGroup.add_member(:launch_configuration_name, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, location_name: "LaunchConfigurationName"))
@@ -465,6 +507,8 @@ module Aws::AutoScaling
465
507
  AutoScalingGroup.add_member(:warm_pool_size, Shapes::ShapeRef.new(shape: WarmPoolSize, location_name: "WarmPoolSize"))
466
508
  AutoScalingGroup.add_member(:context, Shapes::ShapeRef.new(shape: Context, location_name: "Context"))
467
509
  AutoScalingGroup.add_member(:desired_capacity_type, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, location_name: "DesiredCapacityType"))
510
+ AutoScalingGroup.add_member(:default_instance_warmup, Shapes::ShapeRef.new(shape: DefaultInstanceWarmup, location_name: "DefaultInstanceWarmup"))
511
+ AutoScalingGroup.add_member(:traffic_sources, Shapes::ShapeRef.new(shape: TrafficSources, location_name: "TrafficSources"))
468
512
  AutoScalingGroup.struct_class = Types::AutoScalingGroup
469
513
 
470
514
  AutoScalingGroupNames.member = Shapes::ShapeRef.new(shape: XmlStringMaxLen255)
@@ -579,6 +623,8 @@ module Aws::AutoScaling
579
623
  CreateAutoScalingGroupType.add_member(:max_instance_lifetime, Shapes::ShapeRef.new(shape: MaxInstanceLifetime, location_name: "MaxInstanceLifetime"))
580
624
  CreateAutoScalingGroupType.add_member(:context, Shapes::ShapeRef.new(shape: Context, location_name: "Context"))
581
625
  CreateAutoScalingGroupType.add_member(:desired_capacity_type, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, location_name: "DesiredCapacityType"))
626
+ CreateAutoScalingGroupType.add_member(:default_instance_warmup, Shapes::ShapeRef.new(shape: DefaultInstanceWarmup, location_name: "DefaultInstanceWarmup"))
627
+ CreateAutoScalingGroupType.add_member(:traffic_sources, Shapes::ShapeRef.new(shape: TrafficSources, location_name: "TrafficSources"))
582
628
  CreateAutoScalingGroupType.struct_class = Types::CreateAutoScalingGroupType
583
629
 
584
630
  CreateLaunchConfigurationType.add_member(:launch_configuration_name, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, required: true, location_name: "LaunchConfigurationName"))
@@ -605,11 +651,12 @@ module Aws::AutoScaling
605
651
  CreateOrUpdateTagsType.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, required: true, location_name: "Tags"))
606
652
  CreateOrUpdateTagsType.struct_class = Types::CreateOrUpdateTagsType
607
653
 
608
- CustomizedMetricSpecification.add_member(:metric_name, Shapes::ShapeRef.new(shape: MetricName, required: true, location_name: "MetricName"))
609
- CustomizedMetricSpecification.add_member(:namespace, Shapes::ShapeRef.new(shape: MetricNamespace, required: true, location_name: "Namespace"))
654
+ CustomizedMetricSpecification.add_member(:metric_name, Shapes::ShapeRef.new(shape: MetricName, location_name: "MetricName"))
655
+ CustomizedMetricSpecification.add_member(:namespace, Shapes::ShapeRef.new(shape: MetricNamespace, location_name: "Namespace"))
610
656
  CustomizedMetricSpecification.add_member(:dimensions, Shapes::ShapeRef.new(shape: MetricDimensions, location_name: "Dimensions"))
611
- CustomizedMetricSpecification.add_member(:statistic, Shapes::ShapeRef.new(shape: MetricStatistic, required: true, location_name: "Statistic"))
657
+ CustomizedMetricSpecification.add_member(:statistic, Shapes::ShapeRef.new(shape: MetricStatistic, location_name: "Statistic"))
612
658
  CustomizedMetricSpecification.add_member(:unit, Shapes::ShapeRef.new(shape: MetricUnit, location_name: "Unit"))
659
+ CustomizedMetricSpecification.add_member(:metrics, Shapes::ShapeRef.new(shape: TargetTrackingMetricDataQueries, location_name: "Metrics"))
613
660
  CustomizedMetricSpecification.struct_class = Types::CustomizedMetricSpecification
614
661
 
615
662
  DeleteAutoScalingGroupType.add_member(:auto_scaling_group_name, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, required: true, location_name: "AutoScalingGroupName"))
@@ -741,6 +788,16 @@ module Aws::AutoScaling
741
788
  DescribeTerminationPolicyTypesAnswer.add_member(:termination_policy_types, Shapes::ShapeRef.new(shape: TerminationPolicies, location_name: "TerminationPolicyTypes"))
742
789
  DescribeTerminationPolicyTypesAnswer.struct_class = Types::DescribeTerminationPolicyTypesAnswer
743
790
 
791
+ DescribeTrafficSourcesRequest.add_member(:auto_scaling_group_name, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, required: true, location_name: "AutoScalingGroupName"))
792
+ DescribeTrafficSourcesRequest.add_member(:traffic_source_type, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, location_name: "TrafficSourceType"))
793
+ DescribeTrafficSourcesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: XmlString, location_name: "NextToken"))
794
+ DescribeTrafficSourcesRequest.add_member(:max_records, Shapes::ShapeRef.new(shape: MaxRecords, location_name: "MaxRecords"))
795
+ DescribeTrafficSourcesRequest.struct_class = Types::DescribeTrafficSourcesRequest
796
+
797
+ DescribeTrafficSourcesResponse.add_member(:traffic_sources, Shapes::ShapeRef.new(shape: TrafficSourceStates, location_name: "TrafficSources"))
798
+ DescribeTrafficSourcesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: XmlString, location_name: "NextToken"))
799
+ DescribeTrafficSourcesResponse.struct_class = Types::DescribeTrafficSourcesResponse
800
+
744
801
  DescribeWarmPoolAnswer.add_member(:warm_pool_configuration, Shapes::ShapeRef.new(shape: WarmPoolConfiguration, location_name: "WarmPoolConfiguration"))
745
802
  DescribeWarmPoolAnswer.add_member(:instances, Shapes::ShapeRef.new(shape: Instances, location_name: "Instances"))
746
803
  DescribeWarmPoolAnswer.add_member(:next_token, Shapes::ShapeRef.new(shape: XmlString, location_name: "NextToken"))
@@ -775,6 +832,12 @@ module Aws::AutoScaling
775
832
  DetachLoadBalancersType.add_member(:load_balancer_names, Shapes::ShapeRef.new(shape: LoadBalancerNames, required: true, location_name: "LoadBalancerNames"))
776
833
  DetachLoadBalancersType.struct_class = Types::DetachLoadBalancersType
777
834
 
835
+ DetachTrafficSourcesResultType.struct_class = Types::DetachTrafficSourcesResultType
836
+
837
+ DetachTrafficSourcesType.add_member(:auto_scaling_group_name, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, required: true, location_name: "AutoScalingGroupName"))
838
+ DetachTrafficSourcesType.add_member(:traffic_sources, Shapes::ShapeRef.new(shape: TrafficSources, required: true, location_name: "TrafficSources"))
839
+ DetachTrafficSourcesType.struct_class = Types::DetachTrafficSourcesType
840
+
778
841
  DisableMetricsCollectionQuery.add_member(:auto_scaling_group_name, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, required: true, location_name: "AutoScalingGroupName"))
779
842
  DisableMetricsCollectionQuery.add_member(:metrics, Shapes::ShapeRef.new(shape: Metrics, location_name: "Metrics"))
780
843
  DisableMetricsCollectionQuery.struct_class = Types::DisableMetricsCollectionQuery
@@ -881,6 +944,7 @@ module Aws::AutoScaling
881
944
  InstanceRefresh.add_member(:progress_details, Shapes::ShapeRef.new(shape: InstanceRefreshProgressDetails, location_name: "ProgressDetails"))
882
945
  InstanceRefresh.add_member(:preferences, Shapes::ShapeRef.new(shape: RefreshPreferences, location_name: "Preferences"))
883
946
  InstanceRefresh.add_member(:desired_configuration, Shapes::ShapeRef.new(shape: DesiredConfiguration, location_name: "DesiredConfiguration"))
947
+ InstanceRefresh.add_member(:rollback_details, Shapes::ShapeRef.new(shape: RollbackDetails, location_name: "RollbackDetails"))
884
948
  InstanceRefresh.struct_class = Types::InstanceRefresh
885
949
 
886
950
  InstanceRefreshIds.member = Shapes::ShapeRef.new(shape: XmlStringMaxLen255)
@@ -923,8 +987,13 @@ module Aws::AutoScaling
923
987
  InstanceRequirements.add_member(:accelerator_manufacturers, Shapes::ShapeRef.new(shape: AcceleratorManufacturers, location_name: "AcceleratorManufacturers"))
924
988
  InstanceRequirements.add_member(:accelerator_names, Shapes::ShapeRef.new(shape: AcceleratorNames, location_name: "AcceleratorNames"))
925
989
  InstanceRequirements.add_member(:accelerator_total_memory_mi_b, Shapes::ShapeRef.new(shape: AcceleratorTotalMemoryMiBRequest, location_name: "AcceleratorTotalMemoryMiB"))
990
+ InstanceRequirements.add_member(:network_bandwidth_gbps, Shapes::ShapeRef.new(shape: NetworkBandwidthGbpsRequest, location_name: "NetworkBandwidthGbps"))
991
+ InstanceRequirements.add_member(:allowed_instance_types, Shapes::ShapeRef.new(shape: AllowedInstanceTypes, location_name: "AllowedInstanceTypes"))
926
992
  InstanceRequirements.struct_class = Types::InstanceRequirements
927
993
 
994
+ InstanceReusePolicy.add_member(:reuse_on_scale_in, Shapes::ShapeRef.new(shape: ReuseOnScaleIn, location_name: "ReuseOnScaleIn"))
995
+ InstanceReusePolicy.struct_class = Types::InstanceReusePolicy
996
+
928
997
  Instances.member = Shapes::ShapeRef.new(shape: Instance)
929
998
 
930
999
  InstancesDistribution.add_member(:on_demand_allocation_strategy, Shapes::ShapeRef.new(shape: XmlString, location_name: "OnDemandAllocationStrategy"))
@@ -938,6 +1007,9 @@ module Aws::AutoScaling
938
1007
  InvalidNextToken.add_member(:message, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, location_name: "message"))
939
1008
  InvalidNextToken.struct_class = Types::InvalidNextToken
940
1009
 
1010
+ IrreversibleInstanceRefreshFault.add_member(:message, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, location_name: "message"))
1011
+ IrreversibleInstanceRefreshFault.struct_class = Types::IrreversibleInstanceRefreshFault
1012
+
941
1013
  LaunchConfiguration.add_member(:launch_configuration_name, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, required: true, location_name: "LaunchConfigurationName"))
942
1014
  LaunchConfiguration.add_member(:launch_configuration_arn, Shapes::ShapeRef.new(shape: ResourceName, location_name: "LaunchConfigurationARN"))
943
1015
  LaunchConfiguration.add_member(:image_id, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, required: true, location_name: "ImageId"))
@@ -996,7 +1068,7 @@ module Aws::AutoScaling
996
1068
  LifecycleHook.add_member(:lifecycle_transition, Shapes::ShapeRef.new(shape: LifecycleTransition, location_name: "LifecycleTransition"))
997
1069
  LifecycleHook.add_member(:notification_target_arn, Shapes::ShapeRef.new(shape: NotificationTargetResourceName, location_name: "NotificationTargetARN"))
998
1070
  LifecycleHook.add_member(:role_arn, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, location_name: "RoleARN"))
999
- LifecycleHook.add_member(:notification_metadata, Shapes::ShapeRef.new(shape: XmlStringMaxLen1023, location_name: "NotificationMetadata"))
1071
+ LifecycleHook.add_member(:notification_metadata, Shapes::ShapeRef.new(shape: AnyPrintableAsciiStringMaxLen4000, location_name: "NotificationMetadata"))
1000
1072
  LifecycleHook.add_member(:heartbeat_timeout, Shapes::ShapeRef.new(shape: HeartbeatTimeout, location_name: "HeartbeatTimeout"))
1001
1073
  LifecycleHook.add_member(:global_timeout, Shapes::ShapeRef.new(shape: GlobalTimeout, location_name: "GlobalTimeout"))
1002
1074
  LifecycleHook.add_member(:default_result, Shapes::ShapeRef.new(shape: LifecycleActionResult, location_name: "DefaultResult"))
@@ -1006,7 +1078,7 @@ module Aws::AutoScaling
1006
1078
 
1007
1079
  LifecycleHookSpecification.add_member(:lifecycle_hook_name, Shapes::ShapeRef.new(shape: AsciiStringMaxLen255, required: true, location_name: "LifecycleHookName"))
1008
1080
  LifecycleHookSpecification.add_member(:lifecycle_transition, Shapes::ShapeRef.new(shape: LifecycleTransition, required: true, location_name: "LifecycleTransition"))
1009
- LifecycleHookSpecification.add_member(:notification_metadata, Shapes::ShapeRef.new(shape: XmlStringMaxLen1023, location_name: "NotificationMetadata"))
1081
+ LifecycleHookSpecification.add_member(:notification_metadata, Shapes::ShapeRef.new(shape: AnyPrintableAsciiStringMaxLen4000, location_name: "NotificationMetadata"))
1010
1082
  LifecycleHookSpecification.add_member(:heartbeat_timeout, Shapes::ShapeRef.new(shape: HeartbeatTimeout, location_name: "HeartbeatTimeout"))
1011
1083
  LifecycleHookSpecification.add_member(:default_result, Shapes::ShapeRef.new(shape: LifecycleActionResult, location_name: "DefaultResult"))
1012
1084
  LifecycleHookSpecification.add_member(:notification_target_arn, Shapes::ShapeRef.new(shape: NotificationTargetResourceName, location_name: "NotificationTargetARN"))
@@ -1092,6 +1164,10 @@ module Aws::AutoScaling
1092
1164
  MixedInstancesPolicy.add_member(:instances_distribution, Shapes::ShapeRef.new(shape: InstancesDistribution, location_name: "InstancesDistribution"))
1093
1165
  MixedInstancesPolicy.struct_class = Types::MixedInstancesPolicy
1094
1166
 
1167
+ NetworkBandwidthGbpsRequest.add_member(:min, Shapes::ShapeRef.new(shape: NullablePositiveDouble, location_name: "Min"))
1168
+ NetworkBandwidthGbpsRequest.add_member(:max, Shapes::ShapeRef.new(shape: NullablePositiveDouble, location_name: "Max"))
1169
+ NetworkBandwidthGbpsRequest.struct_class = Types::NetworkBandwidthGbpsRequest
1170
+
1095
1171
  NetworkInterfaceCountRequest.add_member(:min, Shapes::ShapeRef.new(shape: NullablePositiveInteger, location_name: "Min"))
1096
1172
  NetworkInterfaceCountRequest.add_member(:max, Shapes::ShapeRef.new(shape: NullablePositiveInteger, location_name: "Max"))
1097
1173
  NetworkInterfaceCountRequest.struct_class = Types::NetworkInterfaceCountRequest
@@ -1181,7 +1257,7 @@ module Aws::AutoScaling
1181
1257
  PutLifecycleHookType.add_member(:lifecycle_transition, Shapes::ShapeRef.new(shape: LifecycleTransition, location_name: "LifecycleTransition"))
1182
1258
  PutLifecycleHookType.add_member(:role_arn, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, location_name: "RoleARN"))
1183
1259
  PutLifecycleHookType.add_member(:notification_target_arn, Shapes::ShapeRef.new(shape: NotificationTargetResourceName, location_name: "NotificationTargetARN"))
1184
- PutLifecycleHookType.add_member(:notification_metadata, Shapes::ShapeRef.new(shape: XmlStringMaxLen1023, location_name: "NotificationMetadata"))
1260
+ PutLifecycleHookType.add_member(:notification_metadata, Shapes::ShapeRef.new(shape: AnyPrintableAsciiStringMaxLen4000, location_name: "NotificationMetadata"))
1185
1261
  PutLifecycleHookType.add_member(:heartbeat_timeout, Shapes::ShapeRef.new(shape: HeartbeatTimeout, location_name: "HeartbeatTimeout"))
1186
1262
  PutLifecycleHookType.add_member(:default_result, Shapes::ShapeRef.new(shape: LifecycleActionResult, location_name: "DefaultResult"))
1187
1263
  PutLifecycleHookType.struct_class = Types::PutLifecycleHookType
@@ -1225,6 +1301,7 @@ module Aws::AutoScaling
1225
1301
  PutWarmPoolType.add_member(:max_group_prepared_capacity, Shapes::ShapeRef.new(shape: MaxGroupPreparedCapacity, location_name: "MaxGroupPreparedCapacity"))
1226
1302
  PutWarmPoolType.add_member(:min_size, Shapes::ShapeRef.new(shape: WarmPoolMinSize, location_name: "MinSize"))
1227
1303
  PutWarmPoolType.add_member(:pool_state, Shapes::ShapeRef.new(shape: WarmPoolState, location_name: "PoolState"))
1304
+ PutWarmPoolType.add_member(:instance_reuse_policy, Shapes::ShapeRef.new(shape: InstanceReusePolicy, location_name: "InstanceReusePolicy"))
1228
1305
  PutWarmPoolType.struct_class = Types::PutWarmPoolType
1229
1306
 
1230
1307
  RecordLifecycleActionHeartbeatAnswer.struct_class = Types::RecordLifecycleActionHeartbeatAnswer
@@ -1240,6 +1317,10 @@ module Aws::AutoScaling
1240
1317
  RefreshPreferences.add_member(:checkpoint_percentages, Shapes::ShapeRef.new(shape: CheckpointPercentages, location_name: "CheckpointPercentages"))
1241
1318
  RefreshPreferences.add_member(:checkpoint_delay, Shapes::ShapeRef.new(shape: CheckpointDelay, location_name: "CheckpointDelay"))
1242
1319
  RefreshPreferences.add_member(:skip_matching, Shapes::ShapeRef.new(shape: SkipMatching, location_name: "SkipMatching"))
1320
+ RefreshPreferences.add_member(:auto_rollback, Shapes::ShapeRef.new(shape: AutoRollback, location_name: "AutoRollback"))
1321
+ RefreshPreferences.add_member(:scale_in_protected_instances, Shapes::ShapeRef.new(shape: ScaleInProtectedInstances, location_name: "ScaleInProtectedInstances"))
1322
+ RefreshPreferences.add_member(:standby_instances, Shapes::ShapeRef.new(shape: StandbyInstances, location_name: "StandbyInstances"))
1323
+ RefreshPreferences.add_member(:alarm_specification, Shapes::ShapeRef.new(shape: AlarmSpecification, location_name: "AlarmSpecification"))
1243
1324
  RefreshPreferences.struct_class = Types::RefreshPreferences
1244
1325
 
1245
1326
  ResourceContentionFault.add_member(:message, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, location_name: "message"))
@@ -1248,6 +1329,19 @@ module Aws::AutoScaling
1248
1329
  ResourceInUseFault.add_member(:message, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, location_name: "message"))
1249
1330
  ResourceInUseFault.struct_class = Types::ResourceInUseFault
1250
1331
 
1332
+ RollbackDetails.add_member(:rollback_reason, Shapes::ShapeRef.new(shape: XmlStringMaxLen1023, location_name: "RollbackReason"))
1333
+ RollbackDetails.add_member(:rollback_start_time, Shapes::ShapeRef.new(shape: TimestampType, location_name: "RollbackStartTime"))
1334
+ RollbackDetails.add_member(:percentage_complete_on_rollback, Shapes::ShapeRef.new(shape: IntPercent, location_name: "PercentageCompleteOnRollback"))
1335
+ RollbackDetails.add_member(:instances_to_update_on_rollback, Shapes::ShapeRef.new(shape: InstancesToUpdate, location_name: "InstancesToUpdateOnRollback"))
1336
+ RollbackDetails.add_member(:progress_details_on_rollback, Shapes::ShapeRef.new(shape: InstanceRefreshProgressDetails, location_name: "ProgressDetailsOnRollback"))
1337
+ RollbackDetails.struct_class = Types::RollbackDetails
1338
+
1339
+ RollbackInstanceRefreshAnswer.add_member(:instance_refresh_id, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, location_name: "InstanceRefreshId"))
1340
+ RollbackInstanceRefreshAnswer.struct_class = Types::RollbackInstanceRefreshAnswer
1341
+
1342
+ RollbackInstanceRefreshType.add_member(:auto_scaling_group_name, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, required: true, location_name: "AutoScalingGroupName"))
1343
+ RollbackInstanceRefreshType.struct_class = Types::RollbackInstanceRefreshType
1344
+
1251
1345
  ScalingActivityInProgressFault.add_member(:message, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, location_name: "message"))
1252
1346
  ScalingActivityInProgressFault.struct_class = Types::ScalingActivityInProgressFault
1253
1347
 
@@ -1382,6 +1476,20 @@ module Aws::AutoScaling
1382
1476
  TargetTrackingConfiguration.add_member(:disable_scale_in, Shapes::ShapeRef.new(shape: DisableScaleIn, location_name: "DisableScaleIn"))
1383
1477
  TargetTrackingConfiguration.struct_class = Types::TargetTrackingConfiguration
1384
1478
 
1479
+ TargetTrackingMetricDataQueries.member = Shapes::ShapeRef.new(shape: TargetTrackingMetricDataQuery)
1480
+
1481
+ TargetTrackingMetricDataQuery.add_member(:id, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, required: true, location_name: "Id"))
1482
+ TargetTrackingMetricDataQuery.add_member(:expression, Shapes::ShapeRef.new(shape: XmlStringMaxLen2047, location_name: "Expression"))
1483
+ TargetTrackingMetricDataQuery.add_member(:metric_stat, Shapes::ShapeRef.new(shape: TargetTrackingMetricStat, location_name: "MetricStat"))
1484
+ TargetTrackingMetricDataQuery.add_member(:label, Shapes::ShapeRef.new(shape: XmlStringMetricLabel, location_name: "Label"))
1485
+ TargetTrackingMetricDataQuery.add_member(:return_data, Shapes::ShapeRef.new(shape: ReturnData, location_name: "ReturnData"))
1486
+ TargetTrackingMetricDataQuery.struct_class = Types::TargetTrackingMetricDataQuery
1487
+
1488
+ TargetTrackingMetricStat.add_member(:metric, Shapes::ShapeRef.new(shape: Metric, required: true, location_name: "Metric"))
1489
+ TargetTrackingMetricStat.add_member(:stat, Shapes::ShapeRef.new(shape: XmlStringMetricStat, required: true, location_name: "Stat"))
1490
+ TargetTrackingMetricStat.add_member(:unit, Shapes::ShapeRef.new(shape: MetricUnit, location_name: "Unit"))
1491
+ TargetTrackingMetricStat.struct_class = Types::TargetTrackingMetricStat
1492
+
1385
1493
  TerminateInstanceInAutoScalingGroupType.add_member(:instance_id, Shapes::ShapeRef.new(shape: XmlStringMaxLen19, required: true, location_name: "InstanceId"))
1386
1494
  TerminateInstanceInAutoScalingGroupType.add_member(:should_decrement_desired_capacity, Shapes::ShapeRef.new(shape: ShouldDecrementDesiredCapacity, required: true, location_name: "ShouldDecrementDesiredCapacity"))
1387
1495
  TerminateInstanceInAutoScalingGroupType.struct_class = Types::TerminateInstanceInAutoScalingGroupType
@@ -1392,6 +1500,20 @@ module Aws::AutoScaling
1392
1500
  TotalLocalStorageGBRequest.add_member(:max, Shapes::ShapeRef.new(shape: NullablePositiveDouble, location_name: "Max"))
1393
1501
  TotalLocalStorageGBRequest.struct_class = Types::TotalLocalStorageGBRequest
1394
1502
 
1503
+ TrafficSourceIdentifier.add_member(:identifier, Shapes::ShapeRef.new(shape: XmlStringMaxLen511, required: true, location_name: "Identifier"))
1504
+ TrafficSourceIdentifier.add_member(:type, Shapes::ShapeRef.new(shape: XmlStringMaxLen511, location_name: "Type"))
1505
+ TrafficSourceIdentifier.struct_class = Types::TrafficSourceIdentifier
1506
+
1507
+ TrafficSourceState.add_member(:traffic_source, Shapes::ShapeRef.new(shape: XmlStringMaxLen511, deprecated: true, location_name: "TrafficSource", metadata: {"deprecatedMessage"=>"TrafficSource has been replaced by Identifier"}))
1508
+ TrafficSourceState.add_member(:state, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, location_name: "State"))
1509
+ TrafficSourceState.add_member(:identifier, Shapes::ShapeRef.new(shape: XmlStringMaxLen511, location_name: "Identifier"))
1510
+ TrafficSourceState.add_member(:type, Shapes::ShapeRef.new(shape: XmlStringMaxLen511, location_name: "Type"))
1511
+ TrafficSourceState.struct_class = Types::TrafficSourceState
1512
+
1513
+ TrafficSourceStates.member = Shapes::ShapeRef.new(shape: TrafficSourceState)
1514
+
1515
+ TrafficSources.member = Shapes::ShapeRef.new(shape: TrafficSourceIdentifier)
1516
+
1395
1517
  UpdateAutoScalingGroupType.add_member(:auto_scaling_group_name, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, required: true, location_name: "AutoScalingGroupName"))
1396
1518
  UpdateAutoScalingGroupType.add_member(:launch_configuration_name, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, location_name: "LaunchConfigurationName"))
1397
1519
  UpdateAutoScalingGroupType.add_member(:launch_template, Shapes::ShapeRef.new(shape: LaunchTemplateSpecification, location_name: "LaunchTemplate"))
@@ -1412,6 +1534,7 @@ module Aws::AutoScaling
1412
1534
  UpdateAutoScalingGroupType.add_member(:capacity_rebalance, Shapes::ShapeRef.new(shape: CapacityRebalanceEnabled, location_name: "CapacityRebalance"))
1413
1535
  UpdateAutoScalingGroupType.add_member(:context, Shapes::ShapeRef.new(shape: Context, location_name: "Context"))
1414
1536
  UpdateAutoScalingGroupType.add_member(:desired_capacity_type, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, location_name: "DesiredCapacityType"))
1537
+ UpdateAutoScalingGroupType.add_member(:default_instance_warmup, Shapes::ShapeRef.new(shape: DefaultInstanceWarmup, location_name: "DefaultInstanceWarmup"))
1415
1538
  UpdateAutoScalingGroupType.struct_class = Types::UpdateAutoScalingGroupType
1416
1539
 
1417
1540
  VCpuCountRequest.add_member(:min, Shapes::ShapeRef.new(shape: NullablePositiveInteger, required: true, location_name: "Min"))
@@ -1424,6 +1547,7 @@ module Aws::AutoScaling
1424
1547
  WarmPoolConfiguration.add_member(:min_size, Shapes::ShapeRef.new(shape: WarmPoolMinSize, location_name: "MinSize"))
1425
1548
  WarmPoolConfiguration.add_member(:pool_state, Shapes::ShapeRef.new(shape: WarmPoolState, location_name: "PoolState"))
1426
1549
  WarmPoolConfiguration.add_member(:status, Shapes::ShapeRef.new(shape: WarmPoolStatus, location_name: "Status"))
1550
+ WarmPoolConfiguration.add_member(:instance_reuse_policy, Shapes::ShapeRef.new(shape: InstanceReusePolicy, location_name: "InstanceReusePolicy"))
1427
1551
  WarmPoolConfiguration.struct_class = Types::WarmPoolConfiguration
1428
1552
 
1429
1553
 
@@ -1473,6 +1597,16 @@ module Aws::AutoScaling
1473
1597
  o.errors << Shapes::ShapeRef.new(shape: ServiceLinkedRoleFailure)
1474
1598
  end)
1475
1599
 
1600
+ api.add_operation(:attach_traffic_sources, Seahorse::Model::Operation.new.tap do |o|
1601
+ o.name = "AttachTrafficSources"
1602
+ o.http_method = "POST"
1603
+ o.http_request_uri = "/"
1604
+ o.input = Shapes::ShapeRef.new(shape: AttachTrafficSourcesType)
1605
+ o.output = Shapes::ShapeRef.new(shape: AttachTrafficSourcesResultType)
1606
+ o.errors << Shapes::ShapeRef.new(shape: ResourceContentionFault)
1607
+ o.errors << Shapes::ShapeRef.new(shape: ServiceLinkedRoleFailure)
1608
+ end)
1609
+
1476
1610
  api.add_operation(:batch_delete_scheduled_action, Seahorse::Model::Operation.new.tap do |o|
1477
1611
  o.name = "BatchDeleteScheduledAction"
1478
1612
  o.http_method = "POST"
@@ -1695,6 +1829,12 @@ module Aws::AutoScaling
1695
1829
  o.output = Shapes::ShapeRef.new(shape: DescribeInstanceRefreshesAnswer)
1696
1830
  o.errors << Shapes::ShapeRef.new(shape: InvalidNextToken)
1697
1831
  o.errors << Shapes::ShapeRef.new(shape: ResourceContentionFault)
1832
+ o[:pager] = Aws::Pager.new(
1833
+ limit_key: "max_records",
1834
+ tokens: {
1835
+ "next_token" => "next_token"
1836
+ }
1837
+ )
1698
1838
  end)
1699
1839
 
1700
1840
  api.add_operation(:describe_launch_configurations, Seahorse::Model::Operation.new.tap do |o|
@@ -1739,6 +1879,12 @@ module Aws::AutoScaling
1739
1879
  o.output = Shapes::ShapeRef.new(shape: DescribeLoadBalancerTargetGroupsResponse)
1740
1880
  o.errors << Shapes::ShapeRef.new(shape: ResourceContentionFault)
1741
1881
  o.errors << Shapes::ShapeRef.new(shape: InvalidNextToken)
1882
+ o[:pager] = Aws::Pager.new(
1883
+ limit_key: "max_records",
1884
+ tokens: {
1885
+ "next_token" => "next_token"
1886
+ }
1887
+ )
1742
1888
  end)
1743
1889
 
1744
1890
  api.add_operation(:describe_load_balancers, Seahorse::Model::Operation.new.tap do |o|
@@ -1749,6 +1895,12 @@ module Aws::AutoScaling
1749
1895
  o.output = Shapes::ShapeRef.new(shape: DescribeLoadBalancersResponse)
1750
1896
  o.errors << Shapes::ShapeRef.new(shape: ResourceContentionFault)
1751
1897
  o.errors << Shapes::ShapeRef.new(shape: InvalidNextToken)
1898
+ o[:pager] = Aws::Pager.new(
1899
+ limit_key: "max_records",
1900
+ tokens: {
1901
+ "next_token" => "next_token"
1902
+ }
1903
+ )
1752
1904
  end)
1753
1905
 
1754
1906
  api.add_operation(:describe_metric_collection_types, Seahorse::Model::Operation.new.tap do |o|
@@ -1859,6 +2011,22 @@ module Aws::AutoScaling
1859
2011
  o.errors << Shapes::ShapeRef.new(shape: ResourceContentionFault)
1860
2012
  end)
1861
2013
 
2014
+ api.add_operation(:describe_traffic_sources, Seahorse::Model::Operation.new.tap do |o|
2015
+ o.name = "DescribeTrafficSources"
2016
+ o.http_method = "POST"
2017
+ o.http_request_uri = "/"
2018
+ o.input = Shapes::ShapeRef.new(shape: DescribeTrafficSourcesRequest)
2019
+ o.output = Shapes::ShapeRef.new(shape: DescribeTrafficSourcesResponse)
2020
+ o.errors << Shapes::ShapeRef.new(shape: ResourceContentionFault)
2021
+ o.errors << Shapes::ShapeRef.new(shape: InvalidNextToken)
2022
+ o[:pager] = Aws::Pager.new(
2023
+ limit_key: "max_records",
2024
+ tokens: {
2025
+ "next_token" => "next_token"
2026
+ }
2027
+ )
2028
+ end)
2029
+
1862
2030
  api.add_operation(:describe_warm_pool, Seahorse::Model::Operation.new.tap do |o|
1863
2031
  o.name = "DescribeWarmPool"
1864
2032
  o.http_method = "POST"
@@ -1868,6 +2036,12 @@ module Aws::AutoScaling
1868
2036
  o.errors << Shapes::ShapeRef.new(shape: InvalidNextToken)
1869
2037
  o.errors << Shapes::ShapeRef.new(shape: LimitExceededFault)
1870
2038
  o.errors << Shapes::ShapeRef.new(shape: ResourceContentionFault)
2039
+ o[:pager] = Aws::Pager.new(
2040
+ limit_key: "max_records",
2041
+ tokens: {
2042
+ "next_token" => "next_token"
2043
+ }
2044
+ )
1871
2045
  end)
1872
2046
 
1873
2047
  api.add_operation(:detach_instances, Seahorse::Model::Operation.new.tap do |o|
@@ -1897,6 +2071,15 @@ module Aws::AutoScaling
1897
2071
  o.errors << Shapes::ShapeRef.new(shape: ResourceContentionFault)
1898
2072
  end)
1899
2073
 
2074
+ api.add_operation(:detach_traffic_sources, Seahorse::Model::Operation.new.tap do |o|
2075
+ o.name = "DetachTrafficSources"
2076
+ o.http_method = "POST"
2077
+ o.http_request_uri = "/"
2078
+ o.input = Shapes::ShapeRef.new(shape: DetachTrafficSourcesType)
2079
+ o.output = Shapes::ShapeRef.new(shape: DetachTrafficSourcesResultType)
2080
+ o.errors << Shapes::ShapeRef.new(shape: ResourceContentionFault)
2081
+ end)
2082
+
1900
2083
  api.add_operation(:disable_metrics_collection, Seahorse::Model::Operation.new.tap do |o|
1901
2084
  o.name = "DisableMetricsCollection"
1902
2085
  o.http_method = "POST"
@@ -2024,6 +2207,18 @@ module Aws::AutoScaling
2024
2207
  o.errors << Shapes::ShapeRef.new(shape: ResourceContentionFault)
2025
2208
  end)
2026
2209
 
2210
+ api.add_operation(:rollback_instance_refresh, Seahorse::Model::Operation.new.tap do |o|
2211
+ o.name = "RollbackInstanceRefresh"
2212
+ o.http_method = "POST"
2213
+ o.http_request_uri = "/"
2214
+ o.input = Shapes::ShapeRef.new(shape: RollbackInstanceRefreshType)
2215
+ o.output = Shapes::ShapeRef.new(shape: RollbackInstanceRefreshAnswer)
2216
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededFault)
2217
+ o.errors << Shapes::ShapeRef.new(shape: ResourceContentionFault)
2218
+ o.errors << Shapes::ShapeRef.new(shape: ActiveInstanceRefreshNotFoundFault)
2219
+ o.errors << Shapes::ShapeRef.new(shape: IrreversibleInstanceRefreshFault)
2220
+ end)
2221
+
2027
2222
  api.add_operation(:set_desired_capacity, Seahorse::Model::Operation.new.tap do |o|
2028
2223
  o.name = "SetDesiredCapacity"
2029
2224
  o.http_method = "POST"
@@ -0,0 +1,66 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+ module Aws::AutoScaling
11
+ # Endpoint parameters used to influence endpoints per request.
12
+ #
13
+ # @!attribute region
14
+ # The AWS region used to dispatch the request.
15
+ #
16
+ # @return [String]
17
+ #
18
+ # @!attribute use_dual_stack
19
+ # When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.
20
+ #
21
+ # @return [Boolean]
22
+ #
23
+ # @!attribute use_fips
24
+ # When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.
25
+ #
26
+ # @return [Boolean]
27
+ #
28
+ # @!attribute endpoint
29
+ # Override the endpoint used to send this request
30
+ #
31
+ # @return [String]
32
+ #
33
+ EndpointParameters = Struct.new(
34
+ :region,
35
+ :use_dual_stack,
36
+ :use_fips,
37
+ :endpoint,
38
+ ) do
39
+ include Aws::Structure
40
+
41
+ # @api private
42
+ class << self
43
+ PARAM_MAP = {
44
+ 'Region' => :region,
45
+ 'UseDualStack' => :use_dual_stack,
46
+ 'UseFIPS' => :use_fips,
47
+ 'Endpoint' => :endpoint,
48
+ }.freeze
49
+ end
50
+
51
+ def initialize(options = {})
52
+ self[:region] = options[:region]
53
+ self[:use_dual_stack] = options[:use_dual_stack]
54
+ self[:use_dual_stack] = false if self[:use_dual_stack].nil?
55
+ if self[:use_dual_stack].nil?
56
+ raise ArgumentError, "Missing required EndpointParameter: :use_dual_stack"
57
+ end
58
+ self[:use_fips] = options[:use_fips]
59
+ self[:use_fips] = false if self[:use_fips].nil?
60
+ if self[:use_fips].nil?
61
+ raise ArgumentError, "Missing required EndpointParameter: :use_fips"
62
+ end
63
+ self[:endpoint] = options[:endpoint]
64
+ end
65
+ end
66
+ end
@@ -0,0 +1,57 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+ module Aws::AutoScaling
11
+ class EndpointProvider
12
+ def resolve_endpoint(parameters)
13
+ region = parameters.region
14
+ use_dual_stack = parameters.use_dual_stack
15
+ use_fips = parameters.use_fips
16
+ endpoint = parameters.endpoint
17
+ if Aws::Endpoints::Matchers.set?(endpoint)
18
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
19
+ raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
20
+ end
21
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
22
+ raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
23
+ end
24
+ return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
25
+ end
26
+ if Aws::Endpoints::Matchers.set?(region)
27
+ if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
28
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
29
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
30
+ return Aws::Endpoints::Endpoint.new(url: "https://autoscaling-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
31
+ end
32
+ raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
33
+ end
34
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
35
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
36
+ if Aws::Endpoints::Matchers.string_equals?("aws-us-gov", Aws::Endpoints::Matchers.attr(partition_result, "name"))
37
+ return Aws::Endpoints::Endpoint.new(url: "https://autoscaling.#{region}.amazonaws.com", headers: {}, properties: {})
38
+ end
39
+ return Aws::Endpoints::Endpoint.new(url: "https://autoscaling-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
40
+ end
41
+ raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
42
+ end
43
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
44
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
45
+ return Aws::Endpoints::Endpoint.new(url: "https://autoscaling.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
46
+ end
47
+ raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
48
+ end
49
+ return Aws::Endpoints::Endpoint.new(url: "https://autoscaling.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
50
+ end
51
+ end
52
+ raise ArgumentError, "Invalid Configuration: Missing Region"
53
+ raise ArgumentError, 'No endpoint could be resolved'
54
+
55
+ end
56
+ end
57
+ end