aws-sdk-autoscaling 1.83.0 → 1.85.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +13 -1
- data/VERSION +1 -1
- data/lib/aws-sdk-autoscaling/auto_scaling_group.rb +48 -17
- data/lib/aws-sdk-autoscaling/client.rb +246 -34
- data/lib/aws-sdk-autoscaling/client_api.rb +95 -3
- data/lib/aws-sdk-autoscaling/endpoint_parameters.rb +3 -0
- data/lib/aws-sdk-autoscaling/endpoint_provider.rb +38 -101
- data/lib/aws-sdk-autoscaling/endpoints.rb +42 -0
- data/lib/aws-sdk-autoscaling/plugins/endpoints.rb +6 -0
- data/lib/aws-sdk-autoscaling/resource.rb +37 -19
- data/lib/aws-sdk-autoscaling/types.rb +345 -2038
- data/lib/aws-sdk-autoscaling.rb +1 -1
- metadata +2 -2
@@ -41,6 +41,8 @@ module Aws::AutoScaling
|
|
41
41
|
AttachLoadBalancerTargetGroupsType = Shapes::StructureShape.new(name: 'AttachLoadBalancerTargetGroupsType')
|
42
42
|
AttachLoadBalancersResultType = Shapes::StructureShape.new(name: 'AttachLoadBalancersResultType')
|
43
43
|
AttachLoadBalancersType = Shapes::StructureShape.new(name: 'AttachLoadBalancersType')
|
44
|
+
AttachTrafficSourcesResultType = Shapes::StructureShape.new(name: 'AttachTrafficSourcesResultType')
|
45
|
+
AttachTrafficSourcesType = Shapes::StructureShape.new(name: 'AttachTrafficSourcesType')
|
44
46
|
AutoScalingGroup = Shapes::StructureShape.new(name: 'AutoScalingGroup')
|
45
47
|
AutoScalingGroupDesiredCapacity = Shapes::IntegerShape.new(name: 'AutoScalingGroupDesiredCapacity')
|
46
48
|
AutoScalingGroupMaxSize = Shapes::IntegerShape.new(name: 'AutoScalingGroupMaxSize')
|
@@ -119,6 +121,8 @@ module Aws::AutoScaling
|
|
119
121
|
DescribeScheduledActionsType = Shapes::StructureShape.new(name: 'DescribeScheduledActionsType')
|
120
122
|
DescribeTagsType = Shapes::StructureShape.new(name: 'DescribeTagsType')
|
121
123
|
DescribeTerminationPolicyTypesAnswer = Shapes::StructureShape.new(name: 'DescribeTerminationPolicyTypesAnswer')
|
124
|
+
DescribeTrafficSourcesRequest = Shapes::StructureShape.new(name: 'DescribeTrafficSourcesRequest')
|
125
|
+
DescribeTrafficSourcesResponse = Shapes::StructureShape.new(name: 'DescribeTrafficSourcesResponse')
|
122
126
|
DescribeWarmPoolAnswer = Shapes::StructureShape.new(name: 'DescribeWarmPoolAnswer')
|
123
127
|
DescribeWarmPoolType = Shapes::StructureShape.new(name: 'DescribeWarmPoolType')
|
124
128
|
DesiredConfiguration = Shapes::StructureShape.new(name: 'DesiredConfiguration')
|
@@ -128,6 +132,8 @@ module Aws::AutoScaling
|
|
128
132
|
DetachLoadBalancerTargetGroupsType = Shapes::StructureShape.new(name: 'DetachLoadBalancerTargetGroupsType')
|
129
133
|
DetachLoadBalancersResultType = Shapes::StructureShape.new(name: 'DetachLoadBalancersResultType')
|
130
134
|
DetachLoadBalancersType = Shapes::StructureShape.new(name: 'DetachLoadBalancersType')
|
135
|
+
DetachTrafficSourcesResultType = Shapes::StructureShape.new(name: 'DetachTrafficSourcesResultType')
|
136
|
+
DetachTrafficSourcesType = Shapes::StructureShape.new(name: 'DetachTrafficSourcesType')
|
131
137
|
DisableMetricsCollectionQuery = Shapes::StructureShape.new(name: 'DisableMetricsCollectionQuery')
|
132
138
|
DisableScaleIn = Shapes::BooleanShape.new(name: 'DisableScaleIn')
|
133
139
|
Ebs = Shapes::StructureShape.new(name: 'Ebs')
|
@@ -342,10 +348,17 @@ module Aws::AutoScaling
|
|
342
348
|
TagsType = Shapes::StructureShape.new(name: 'TagsType')
|
343
349
|
TargetGroupARNs = Shapes::ListShape.new(name: 'TargetGroupARNs')
|
344
350
|
TargetTrackingConfiguration = Shapes::StructureShape.new(name: 'TargetTrackingConfiguration')
|
351
|
+
TargetTrackingMetricDataQueries = Shapes::ListShape.new(name: 'TargetTrackingMetricDataQueries')
|
352
|
+
TargetTrackingMetricDataQuery = Shapes::StructureShape.new(name: 'TargetTrackingMetricDataQuery')
|
353
|
+
TargetTrackingMetricStat = Shapes::StructureShape.new(name: 'TargetTrackingMetricStat')
|
345
354
|
TerminateInstanceInAutoScalingGroupType = Shapes::StructureShape.new(name: 'TerminateInstanceInAutoScalingGroupType')
|
346
355
|
TerminationPolicies = Shapes::ListShape.new(name: 'TerminationPolicies')
|
347
356
|
TimestampType = Shapes::TimestampShape.new(name: 'TimestampType')
|
348
357
|
TotalLocalStorageGBRequest = Shapes::StructureShape.new(name: 'TotalLocalStorageGBRequest')
|
358
|
+
TrafficSourceIdentifier = Shapes::StructureShape.new(name: 'TrafficSourceIdentifier')
|
359
|
+
TrafficSourceState = Shapes::StructureShape.new(name: 'TrafficSourceState')
|
360
|
+
TrafficSourceStates = Shapes::ListShape.new(name: 'TrafficSourceStates')
|
361
|
+
TrafficSources = Shapes::ListShape.new(name: 'TrafficSources')
|
349
362
|
UpdateAutoScalingGroupType = Shapes::StructureShape.new(name: 'UpdateAutoScalingGroupType')
|
350
363
|
VCpuCountRequest = Shapes::StructureShape.new(name: 'VCpuCountRequest')
|
351
364
|
Values = Shapes::ListShape.new(name: 'Values')
|
@@ -441,6 +454,12 @@ module Aws::AutoScaling
|
|
441
454
|
AttachLoadBalancersType.add_member(:load_balancer_names, Shapes::ShapeRef.new(shape: LoadBalancerNames, required: true, location_name: "LoadBalancerNames"))
|
442
455
|
AttachLoadBalancersType.struct_class = Types::AttachLoadBalancersType
|
443
456
|
|
457
|
+
AttachTrafficSourcesResultType.struct_class = Types::AttachTrafficSourcesResultType
|
458
|
+
|
459
|
+
AttachTrafficSourcesType.add_member(:auto_scaling_group_name, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, required: true, location_name: "AutoScalingGroupName"))
|
460
|
+
AttachTrafficSourcesType.add_member(:traffic_sources, Shapes::ShapeRef.new(shape: TrafficSources, required: true, location_name: "TrafficSources"))
|
461
|
+
AttachTrafficSourcesType.struct_class = Types::AttachTrafficSourcesType
|
462
|
+
|
444
463
|
AutoScalingGroup.add_member(:auto_scaling_group_name, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, required: true, location_name: "AutoScalingGroupName"))
|
445
464
|
AutoScalingGroup.add_member(:auto_scaling_group_arn, Shapes::ShapeRef.new(shape: ResourceName, location_name: "AutoScalingGroupARN"))
|
446
465
|
AutoScalingGroup.add_member(:launch_configuration_name, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, location_name: "LaunchConfigurationName"))
|
@@ -474,6 +493,7 @@ module Aws::AutoScaling
|
|
474
493
|
AutoScalingGroup.add_member(:context, Shapes::ShapeRef.new(shape: Context, location_name: "Context"))
|
475
494
|
AutoScalingGroup.add_member(:desired_capacity_type, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, location_name: "DesiredCapacityType"))
|
476
495
|
AutoScalingGroup.add_member(:default_instance_warmup, Shapes::ShapeRef.new(shape: DefaultInstanceWarmup, location_name: "DefaultInstanceWarmup"))
|
496
|
+
AutoScalingGroup.add_member(:traffic_sources, Shapes::ShapeRef.new(shape: TrafficSources, location_name: "TrafficSources"))
|
477
497
|
AutoScalingGroup.struct_class = Types::AutoScalingGroup
|
478
498
|
|
479
499
|
AutoScalingGroupNames.member = Shapes::ShapeRef.new(shape: XmlStringMaxLen255)
|
@@ -589,6 +609,7 @@ module Aws::AutoScaling
|
|
589
609
|
CreateAutoScalingGroupType.add_member(:context, Shapes::ShapeRef.new(shape: Context, location_name: "Context"))
|
590
610
|
CreateAutoScalingGroupType.add_member(:desired_capacity_type, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, location_name: "DesiredCapacityType"))
|
591
611
|
CreateAutoScalingGroupType.add_member(:default_instance_warmup, Shapes::ShapeRef.new(shape: DefaultInstanceWarmup, location_name: "DefaultInstanceWarmup"))
|
612
|
+
CreateAutoScalingGroupType.add_member(:traffic_sources, Shapes::ShapeRef.new(shape: TrafficSources, location_name: "TrafficSources"))
|
592
613
|
CreateAutoScalingGroupType.struct_class = Types::CreateAutoScalingGroupType
|
593
614
|
|
594
615
|
CreateLaunchConfigurationType.add_member(:launch_configuration_name, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, required: true, location_name: "LaunchConfigurationName"))
|
@@ -615,11 +636,12 @@ module Aws::AutoScaling
|
|
615
636
|
CreateOrUpdateTagsType.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, required: true, location_name: "Tags"))
|
616
637
|
CreateOrUpdateTagsType.struct_class = Types::CreateOrUpdateTagsType
|
617
638
|
|
618
|
-
CustomizedMetricSpecification.add_member(:metric_name, Shapes::ShapeRef.new(shape: MetricName,
|
619
|
-
CustomizedMetricSpecification.add_member(:namespace, Shapes::ShapeRef.new(shape: MetricNamespace,
|
639
|
+
CustomizedMetricSpecification.add_member(:metric_name, Shapes::ShapeRef.new(shape: MetricName, location_name: "MetricName"))
|
640
|
+
CustomizedMetricSpecification.add_member(:namespace, Shapes::ShapeRef.new(shape: MetricNamespace, location_name: "Namespace"))
|
620
641
|
CustomizedMetricSpecification.add_member(:dimensions, Shapes::ShapeRef.new(shape: MetricDimensions, location_name: "Dimensions"))
|
621
|
-
CustomizedMetricSpecification.add_member(:statistic, Shapes::ShapeRef.new(shape: MetricStatistic,
|
642
|
+
CustomizedMetricSpecification.add_member(:statistic, Shapes::ShapeRef.new(shape: MetricStatistic, location_name: "Statistic"))
|
622
643
|
CustomizedMetricSpecification.add_member(:unit, Shapes::ShapeRef.new(shape: MetricUnit, location_name: "Unit"))
|
644
|
+
CustomizedMetricSpecification.add_member(:metrics, Shapes::ShapeRef.new(shape: TargetTrackingMetricDataQueries, location_name: "Metrics"))
|
623
645
|
CustomizedMetricSpecification.struct_class = Types::CustomizedMetricSpecification
|
624
646
|
|
625
647
|
DeleteAutoScalingGroupType.add_member(:auto_scaling_group_name, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, required: true, location_name: "AutoScalingGroupName"))
|
@@ -751,6 +773,16 @@ module Aws::AutoScaling
|
|
751
773
|
DescribeTerminationPolicyTypesAnswer.add_member(:termination_policy_types, Shapes::ShapeRef.new(shape: TerminationPolicies, location_name: "TerminationPolicyTypes"))
|
752
774
|
DescribeTerminationPolicyTypesAnswer.struct_class = Types::DescribeTerminationPolicyTypesAnswer
|
753
775
|
|
776
|
+
DescribeTrafficSourcesRequest.add_member(:auto_scaling_group_name, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, required: true, location_name: "AutoScalingGroupName"))
|
777
|
+
DescribeTrafficSourcesRequest.add_member(:traffic_source_type, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, required: true, location_name: "TrafficSourceType"))
|
778
|
+
DescribeTrafficSourcesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: XmlString, location_name: "NextToken"))
|
779
|
+
DescribeTrafficSourcesRequest.add_member(:max_records, Shapes::ShapeRef.new(shape: MaxRecords, location_name: "MaxRecords"))
|
780
|
+
DescribeTrafficSourcesRequest.struct_class = Types::DescribeTrafficSourcesRequest
|
781
|
+
|
782
|
+
DescribeTrafficSourcesResponse.add_member(:traffic_sources, Shapes::ShapeRef.new(shape: TrafficSourceStates, location_name: "TrafficSources"))
|
783
|
+
DescribeTrafficSourcesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: XmlString, location_name: "NextToken"))
|
784
|
+
DescribeTrafficSourcesResponse.struct_class = Types::DescribeTrafficSourcesResponse
|
785
|
+
|
754
786
|
DescribeWarmPoolAnswer.add_member(:warm_pool_configuration, Shapes::ShapeRef.new(shape: WarmPoolConfiguration, location_name: "WarmPoolConfiguration"))
|
755
787
|
DescribeWarmPoolAnswer.add_member(:instances, Shapes::ShapeRef.new(shape: Instances, location_name: "Instances"))
|
756
788
|
DescribeWarmPoolAnswer.add_member(:next_token, Shapes::ShapeRef.new(shape: XmlString, location_name: "NextToken"))
|
@@ -785,6 +817,12 @@ module Aws::AutoScaling
|
|
785
817
|
DetachLoadBalancersType.add_member(:load_balancer_names, Shapes::ShapeRef.new(shape: LoadBalancerNames, required: true, location_name: "LoadBalancerNames"))
|
786
818
|
DetachLoadBalancersType.struct_class = Types::DetachLoadBalancersType
|
787
819
|
|
820
|
+
DetachTrafficSourcesResultType.struct_class = Types::DetachTrafficSourcesResultType
|
821
|
+
|
822
|
+
DetachTrafficSourcesType.add_member(:auto_scaling_group_name, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, required: true, location_name: "AutoScalingGroupName"))
|
823
|
+
DetachTrafficSourcesType.add_member(:traffic_sources, Shapes::ShapeRef.new(shape: TrafficSources, required: true, location_name: "TrafficSources"))
|
824
|
+
DetachTrafficSourcesType.struct_class = Types::DetachTrafficSourcesType
|
825
|
+
|
788
826
|
DisableMetricsCollectionQuery.add_member(:auto_scaling_group_name, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, required: true, location_name: "AutoScalingGroupName"))
|
789
827
|
DisableMetricsCollectionQuery.add_member(:metrics, Shapes::ShapeRef.new(shape: Metrics, location_name: "Metrics"))
|
790
828
|
DisableMetricsCollectionQuery.struct_class = Types::DisableMetricsCollectionQuery
|
@@ -1402,6 +1440,20 @@ module Aws::AutoScaling
|
|
1402
1440
|
TargetTrackingConfiguration.add_member(:disable_scale_in, Shapes::ShapeRef.new(shape: DisableScaleIn, location_name: "DisableScaleIn"))
|
1403
1441
|
TargetTrackingConfiguration.struct_class = Types::TargetTrackingConfiguration
|
1404
1442
|
|
1443
|
+
TargetTrackingMetricDataQueries.member = Shapes::ShapeRef.new(shape: TargetTrackingMetricDataQuery)
|
1444
|
+
|
1445
|
+
TargetTrackingMetricDataQuery.add_member(:id, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, required: true, location_name: "Id"))
|
1446
|
+
TargetTrackingMetricDataQuery.add_member(:expression, Shapes::ShapeRef.new(shape: XmlStringMaxLen2047, location_name: "Expression"))
|
1447
|
+
TargetTrackingMetricDataQuery.add_member(:metric_stat, Shapes::ShapeRef.new(shape: TargetTrackingMetricStat, location_name: "MetricStat"))
|
1448
|
+
TargetTrackingMetricDataQuery.add_member(:label, Shapes::ShapeRef.new(shape: XmlStringMetricLabel, location_name: "Label"))
|
1449
|
+
TargetTrackingMetricDataQuery.add_member(:return_data, Shapes::ShapeRef.new(shape: ReturnData, location_name: "ReturnData"))
|
1450
|
+
TargetTrackingMetricDataQuery.struct_class = Types::TargetTrackingMetricDataQuery
|
1451
|
+
|
1452
|
+
TargetTrackingMetricStat.add_member(:metric, Shapes::ShapeRef.new(shape: Metric, required: true, location_name: "Metric"))
|
1453
|
+
TargetTrackingMetricStat.add_member(:stat, Shapes::ShapeRef.new(shape: XmlStringMetricStat, required: true, location_name: "Stat"))
|
1454
|
+
TargetTrackingMetricStat.add_member(:unit, Shapes::ShapeRef.new(shape: MetricUnit, location_name: "Unit"))
|
1455
|
+
TargetTrackingMetricStat.struct_class = Types::TargetTrackingMetricStat
|
1456
|
+
|
1405
1457
|
TerminateInstanceInAutoScalingGroupType.add_member(:instance_id, Shapes::ShapeRef.new(shape: XmlStringMaxLen19, required: true, location_name: "InstanceId"))
|
1406
1458
|
TerminateInstanceInAutoScalingGroupType.add_member(:should_decrement_desired_capacity, Shapes::ShapeRef.new(shape: ShouldDecrementDesiredCapacity, required: true, location_name: "ShouldDecrementDesiredCapacity"))
|
1407
1459
|
TerminateInstanceInAutoScalingGroupType.struct_class = Types::TerminateInstanceInAutoScalingGroupType
|
@@ -1412,6 +1464,17 @@ module Aws::AutoScaling
|
|
1412
1464
|
TotalLocalStorageGBRequest.add_member(:max, Shapes::ShapeRef.new(shape: NullablePositiveDouble, location_name: "Max"))
|
1413
1465
|
TotalLocalStorageGBRequest.struct_class = Types::TotalLocalStorageGBRequest
|
1414
1466
|
|
1467
|
+
TrafficSourceIdentifier.add_member(:identifier, Shapes::ShapeRef.new(shape: XmlStringMaxLen511, location_name: "Identifier"))
|
1468
|
+
TrafficSourceIdentifier.struct_class = Types::TrafficSourceIdentifier
|
1469
|
+
|
1470
|
+
TrafficSourceState.add_member(:traffic_source, Shapes::ShapeRef.new(shape: XmlStringMaxLen511, location_name: "TrafficSource"))
|
1471
|
+
TrafficSourceState.add_member(:state, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, location_name: "State"))
|
1472
|
+
TrafficSourceState.struct_class = Types::TrafficSourceState
|
1473
|
+
|
1474
|
+
TrafficSourceStates.member = Shapes::ShapeRef.new(shape: TrafficSourceState)
|
1475
|
+
|
1476
|
+
TrafficSources.member = Shapes::ShapeRef.new(shape: TrafficSourceIdentifier)
|
1477
|
+
|
1415
1478
|
UpdateAutoScalingGroupType.add_member(:auto_scaling_group_name, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, required: true, location_name: "AutoScalingGroupName"))
|
1416
1479
|
UpdateAutoScalingGroupType.add_member(:launch_configuration_name, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, location_name: "LaunchConfigurationName"))
|
1417
1480
|
UpdateAutoScalingGroupType.add_member(:launch_template, Shapes::ShapeRef.new(shape: LaunchTemplateSpecification, location_name: "LaunchTemplate"))
|
@@ -1495,6 +1558,16 @@ module Aws::AutoScaling
|
|
1495
1558
|
o.errors << Shapes::ShapeRef.new(shape: ServiceLinkedRoleFailure)
|
1496
1559
|
end)
|
1497
1560
|
|
1561
|
+
api.add_operation(:attach_traffic_sources, Seahorse::Model::Operation.new.tap do |o|
|
1562
|
+
o.name = "AttachTrafficSources"
|
1563
|
+
o.http_method = "POST"
|
1564
|
+
o.http_request_uri = "/"
|
1565
|
+
o.input = Shapes::ShapeRef.new(shape: AttachTrafficSourcesType)
|
1566
|
+
o.output = Shapes::ShapeRef.new(shape: AttachTrafficSourcesResultType)
|
1567
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceContentionFault)
|
1568
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceLinkedRoleFailure)
|
1569
|
+
end)
|
1570
|
+
|
1498
1571
|
api.add_operation(:batch_delete_scheduled_action, Seahorse::Model::Operation.new.tap do |o|
|
1499
1572
|
o.name = "BatchDeleteScheduledAction"
|
1500
1573
|
o.http_method = "POST"
|
@@ -1881,6 +1954,16 @@ module Aws::AutoScaling
|
|
1881
1954
|
o.errors << Shapes::ShapeRef.new(shape: ResourceContentionFault)
|
1882
1955
|
end)
|
1883
1956
|
|
1957
|
+
api.add_operation(:describe_traffic_sources, Seahorse::Model::Operation.new.tap do |o|
|
1958
|
+
o.name = "DescribeTrafficSources"
|
1959
|
+
o.http_method = "POST"
|
1960
|
+
o.http_request_uri = "/"
|
1961
|
+
o.input = Shapes::ShapeRef.new(shape: DescribeTrafficSourcesRequest)
|
1962
|
+
o.output = Shapes::ShapeRef.new(shape: DescribeTrafficSourcesResponse)
|
1963
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceContentionFault)
|
1964
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidNextToken)
|
1965
|
+
end)
|
1966
|
+
|
1884
1967
|
api.add_operation(:describe_warm_pool, Seahorse::Model::Operation.new.tap do |o|
|
1885
1968
|
o.name = "DescribeWarmPool"
|
1886
1969
|
o.http_method = "POST"
|
@@ -1919,6 +2002,15 @@ module Aws::AutoScaling
|
|
1919
2002
|
o.errors << Shapes::ShapeRef.new(shape: ResourceContentionFault)
|
1920
2003
|
end)
|
1921
2004
|
|
2005
|
+
api.add_operation(:detach_traffic_sources, Seahorse::Model::Operation.new.tap do |o|
|
2006
|
+
o.name = "DetachTrafficSources"
|
2007
|
+
o.http_method = "POST"
|
2008
|
+
o.http_request_uri = "/"
|
2009
|
+
o.input = Shapes::ShapeRef.new(shape: DetachTrafficSourcesType)
|
2010
|
+
o.output = Shapes::ShapeRef.new(shape: DetachTrafficSourcesResultType)
|
2011
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceContentionFault)
|
2012
|
+
end)
|
2013
|
+
|
1922
2014
|
api.add_operation(:disable_metrics_collection, Seahorse::Model::Operation.new.tap do |o|
|
1923
2015
|
o.name = "DisableMetricsCollection"
|
1924
2016
|
o.http_method = "POST"
|
@@ -50,6 +50,9 @@ module Aws::AutoScaling
|
|
50
50
|
|
51
51
|
def initialize(options = {})
|
52
52
|
self[:region] = options[:region]
|
53
|
+
if self[:region].nil?
|
54
|
+
raise ArgumentError, "Missing required EndpointParameter: :region"
|
55
|
+
end
|
53
56
|
self[:use_dual_stack] = options[:use_dual_stack]
|
54
57
|
self[:use_dual_stack] = false if self[:use_dual_stack].nil?
|
55
58
|
if self[:use_dual_stack].nil?
|
@@ -9,109 +9,46 @@
|
|
9
9
|
|
10
10
|
module Aws::AutoScaling
|
11
11
|
class EndpointProvider
|
12
|
-
def
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
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 (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
|
18
|
+
if Aws::Endpoints::Matchers.set?(endpoint)
|
19
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
20
|
+
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
21
|
+
end
|
22
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
23
|
+
raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
24
|
+
end
|
25
|
+
return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
|
26
|
+
end
|
27
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
28
|
+
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"))
|
29
|
+
return Aws::Endpoints::Endpoint.new(url: "https://autoscaling-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
30
|
+
end
|
31
|
+
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
32
|
+
end
|
33
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
34
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
|
35
|
+
if Aws::Endpoints::Matchers.string_equals?("aws-us-gov", Aws::Endpoints::Matchers.attr(partition_result, "name"))
|
36
|
+
return Aws::Endpoints::Endpoint.new(url: "https://autoscaling.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
37
|
+
end
|
38
|
+
return Aws::Endpoints::Endpoint.new(url: "https://autoscaling-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
39
|
+
end
|
40
|
+
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
41
|
+
end
|
42
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
43
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
44
|
+
return Aws::Endpoints::Endpoint.new(url: "https://autoscaling.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
45
|
+
end
|
46
|
+
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
47
|
+
end
|
48
|
+
return Aws::Endpoints::Endpoint.new(url: "https://autoscaling.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
21
49
|
end
|
22
|
-
|
23
|
-
end
|
50
|
+
raise ArgumentError, 'No endpoint could be resolved'
|
24
51
|
|
25
|
-
def resolve_endpoint(parameters)
|
26
|
-
@provider.resolve_endpoint(parameters)
|
27
52
|
end
|
28
|
-
|
29
|
-
# @api private
|
30
|
-
RULES = <<-JSON
|
31
|
-
eyJ2ZXJzaW9uIjoiMS4wIiwicGFyYW1ldGVycyI6eyJSZWdpb24iOnsiYnVp
|
32
|
-
bHRJbiI6Ik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dCB0aGlzIHBhcnRpdGlvbiBkb2VzIG5vdCBzdXBwb3J0IER1YWxTdGFjayIs
|
110
|
-
InR5cGUiOiJlcnJvciJ9XX0seyJjb25kaXRpb25zIjpbXSwiZW5kcG9pbnQi
|
111
|
-
OnsidXJsIjoiaHR0cHM6Ly9hdXRvc2NhbGluZy57UmVnaW9ufS57UGFydGl0
|
112
|
-
aW9uUmVzdWx0I2Ruc1N1ZmZpeH0iLCJwcm9wZXJ0aWVzIjp7fSwiaGVhZGVy
|
113
|
-
cyI6e319LCJ0eXBlIjoiZW5kcG9pbnQifV19XX0=
|
114
|
-
|
115
|
-
JSON
|
116
53
|
end
|
117
54
|
end
|
@@ -53,6 +53,20 @@ module Aws::AutoScaling
|
|
53
53
|
end
|
54
54
|
end
|
55
55
|
|
56
|
+
class AttachTrafficSources
|
57
|
+
def self.build(context)
|
58
|
+
unless context.config.regional_endpoint
|
59
|
+
endpoint = context.config.endpoint.to_s
|
60
|
+
end
|
61
|
+
Aws::AutoScaling::EndpointParameters.new(
|
62
|
+
region: context.config.region,
|
63
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
64
|
+
use_fips: context.config.use_fips_endpoint,
|
65
|
+
endpoint: endpoint,
|
66
|
+
)
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
56
70
|
class BatchDeleteScheduledAction
|
57
71
|
def self.build(context)
|
58
72
|
unless context.config.regional_endpoint
|
@@ -529,6 +543,20 @@ module Aws::AutoScaling
|
|
529
543
|
end
|
530
544
|
end
|
531
545
|
|
546
|
+
class DescribeTrafficSources
|
547
|
+
def self.build(context)
|
548
|
+
unless context.config.regional_endpoint
|
549
|
+
endpoint = context.config.endpoint.to_s
|
550
|
+
end
|
551
|
+
Aws::AutoScaling::EndpointParameters.new(
|
552
|
+
region: context.config.region,
|
553
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
554
|
+
use_fips: context.config.use_fips_endpoint,
|
555
|
+
endpoint: endpoint,
|
556
|
+
)
|
557
|
+
end
|
558
|
+
end
|
559
|
+
|
532
560
|
class DescribeWarmPool
|
533
561
|
def self.build(context)
|
534
562
|
unless context.config.regional_endpoint
|
@@ -585,6 +613,20 @@ module Aws::AutoScaling
|
|
585
613
|
end
|
586
614
|
end
|
587
615
|
|
616
|
+
class DetachTrafficSources
|
617
|
+
def self.build(context)
|
618
|
+
unless context.config.regional_endpoint
|
619
|
+
endpoint = context.config.endpoint.to_s
|
620
|
+
end
|
621
|
+
Aws::AutoScaling::EndpointParameters.new(
|
622
|
+
region: context.config.region,
|
623
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
624
|
+
use_fips: context.config.use_fips_endpoint,
|
625
|
+
endpoint: endpoint,
|
626
|
+
)
|
627
|
+
end
|
628
|
+
end
|
629
|
+
|
588
630
|
class DisableMetricsCollection
|
589
631
|
def self.build(context)
|
590
632
|
unless context.config.regional_endpoint
|
@@ -62,6 +62,8 @@ module Aws::AutoScaling
|
|
62
62
|
Aws::AutoScaling::Endpoints::AttachLoadBalancerTargetGroups.build(context)
|
63
63
|
when :attach_load_balancers
|
64
64
|
Aws::AutoScaling::Endpoints::AttachLoadBalancers.build(context)
|
65
|
+
when :attach_traffic_sources
|
66
|
+
Aws::AutoScaling::Endpoints::AttachTrafficSources.build(context)
|
65
67
|
when :batch_delete_scheduled_action
|
66
68
|
Aws::AutoScaling::Endpoints::BatchDeleteScheduledAction.build(context)
|
67
69
|
when :batch_put_scheduled_update_group_action
|
@@ -130,6 +132,8 @@ module Aws::AutoScaling
|
|
130
132
|
Aws::AutoScaling::Endpoints::DescribeTags.build(context)
|
131
133
|
when :describe_termination_policy_types
|
132
134
|
Aws::AutoScaling::Endpoints::DescribeTerminationPolicyTypes.build(context)
|
135
|
+
when :describe_traffic_sources
|
136
|
+
Aws::AutoScaling::Endpoints::DescribeTrafficSources.build(context)
|
133
137
|
when :describe_warm_pool
|
134
138
|
Aws::AutoScaling::Endpoints::DescribeWarmPool.build(context)
|
135
139
|
when :detach_instances
|
@@ -138,6 +142,8 @@ module Aws::AutoScaling
|
|
138
142
|
Aws::AutoScaling::Endpoints::DetachLoadBalancerTargetGroups.build(context)
|
139
143
|
when :detach_load_balancers
|
140
144
|
Aws::AutoScaling::Endpoints::DetachLoadBalancers.build(context)
|
145
|
+
when :detach_traffic_sources
|
146
|
+
Aws::AutoScaling::Endpoints::DetachTrafficSources.build(context)
|
141
147
|
when :disable_metrics_collection
|
142
148
|
Aws::AutoScaling::Endpoints::DisableMetricsCollection.build(context)
|
143
149
|
when :enable_metrics_collection
|
@@ -165,6 +165,11 @@ module Aws::AutoScaling
|
|
165
165
|
# context: "Context",
|
166
166
|
# desired_capacity_type: "XmlStringMaxLen255",
|
167
167
|
# default_instance_warmup: 1,
|
168
|
+
# traffic_sources: [
|
169
|
+
# {
|
170
|
+
# identifier: "XmlStringMaxLen511",
|
171
|
+
# },
|
172
|
+
# ],
|
168
173
|
# })
|
169
174
|
# @param [Hash] options ({})
|
170
175
|
# @option options [required, String] :auto_scaling_group_name
|
@@ -266,24 +271,26 @@ module Aws::AutoScaling
|
|
266
271
|
# group. For Application Load Balancers, Network Load Balancers, and
|
267
272
|
# Gateway Load Balancer, specify the `TargetGroupARNs` property instead.
|
268
273
|
# @option options [Array<String>] :target_group_arns
|
269
|
-
# The Amazon Resource Names (ARN) of the
|
270
|
-
# the Auto Scaling group. Instances are
|
271
|
-
# target groups. The target groups
|
272
|
-
# requests to one or more registered
|
273
|
-
# [Use Elastic Load Balancing to
|
274
|
-
# in your Auto Scaling group][1]
|
275
|
-
# Guide*.
|
274
|
+
# The Amazon Resource Names (ARN) of the Elastic Load Balancing target
|
275
|
+
# groups to associate with the Auto Scaling group. Instances are
|
276
|
+
# registered as targets with the target groups. The target groups
|
277
|
+
# receive incoming traffic and route requests to one or more registered
|
278
|
+
# targets. For more information, see [Use Elastic Load Balancing to
|
279
|
+
# distribute traffic across the instances in your Auto Scaling group][1]
|
280
|
+
# in the *Amazon EC2 Auto Scaling User Guide*.
|
276
281
|
#
|
277
282
|
#
|
278
283
|
#
|
279
284
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling-load-balancer.html
|
280
285
|
# @option options [String] :health_check_type
|
281
|
-
#
|
282
|
-
#
|
283
|
-
#
|
284
|
-
#
|
285
|
-
#
|
286
|
-
#
|
286
|
+
# Determines whether any additional health checks are performed on the
|
287
|
+
# instances in this group. Amazon EC2 health checks are always on. For
|
288
|
+
# more information, see [Health checks for Auto Scaling instances][1] in
|
289
|
+
# the *Amazon EC2 Auto Scaling User Guide*.
|
290
|
+
#
|
291
|
+
# The valid values are `EC2` (default), `ELB`, and `VPC_LATTICE`. The
|
292
|
+
# `VPC_LATTICE` health check type is reserved for use with VPC Lattice,
|
293
|
+
# which is in preview release and is subject to change.
|
287
294
|
#
|
288
295
|
#
|
289
296
|
#
|
@@ -291,12 +298,11 @@ module Aws::AutoScaling
|
|
291
298
|
# @option options [Integer] :health_check_grace_period
|
292
299
|
# The amount of time, in seconds, that Amazon EC2 Auto Scaling waits
|
293
300
|
# before checking the health status of an EC2 instance that has come
|
294
|
-
# into service and marking it unhealthy due to a failed
|
295
|
-
#
|
296
|
-
#
|
297
|
-
#
|
298
|
-
#
|
299
|
-
# Scaling User Guide*.
|
301
|
+
# into service and marking it unhealthy due to a failed health check.
|
302
|
+
# This is useful if your instances do not immediately pass their health
|
303
|
+
# checks after they enter the `InService` state. For more information,
|
304
|
+
# see [Set the health check grace period for an Auto Scaling group][1]
|
305
|
+
# in the *Amazon EC2 Auto Scaling User Guide*.
|
300
306
|
#
|
301
307
|
# Default: `0` seconds
|
302
308
|
#
|
@@ -439,6 +445,18 @@ module Aws::AutoScaling
|
|
439
445
|
#
|
440
446
|
#
|
441
447
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-default-instance-warmup.html
|
448
|
+
# @option options [Array<Types::TrafficSourceIdentifier>] :traffic_sources
|
449
|
+
# **Reserved for use with Amazon VPC Lattice, which is in preview
|
450
|
+
# release and is subject to change. Do not use this parameter for
|
451
|
+
# production workloads. It is also subject to change.**
|
452
|
+
#
|
453
|
+
# The unique identifiers of one or more traffic sources.
|
454
|
+
#
|
455
|
+
# Currently, you must specify an Amazon Resource Name (ARN) for an
|
456
|
+
# existing VPC Lattice target group. Amazon EC2 Auto Scaling registers
|
457
|
+
# the running instances with the attached target groups. The target
|
458
|
+
# groups receive incoming traffic and route requests to one or more
|
459
|
+
# registered targets.
|
442
460
|
# @return [AutoScalingGroup]
|
443
461
|
def create_group(options = {})
|
444
462
|
@client.create_auto_scaling_group(options)
|