aws-sdk-applicationautoscaling 1.66.0 → 1.68.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.
@@ -16,6 +16,7 @@ module Aws::ApplicationAutoScaling
16
16
  AdjustmentType = Shapes::StringShape.new(name: 'AdjustmentType')
17
17
  Alarm = Shapes::StructureShape.new(name: 'Alarm')
18
18
  Alarms = Shapes::ListShape.new(name: 'Alarms')
19
+ AmazonResourceName = Shapes::StringShape.new(name: 'AmazonResourceName')
19
20
  ConcurrentUpdateException = Shapes::StructureShape.new(name: 'ConcurrentUpdateException')
20
21
  Cooldown = Shapes::IntegerShape.new(name: 'Cooldown')
21
22
  CustomizedMetricSpecification = Shapes::StructureShape.new(name: 'CustomizedMetricSpecification')
@@ -35,11 +36,16 @@ module Aws::ApplicationAutoScaling
35
36
  DescribeScheduledActionsResponse = Shapes::StructureShape.new(name: 'DescribeScheduledActionsResponse')
36
37
  DisableScaleIn = Shapes::BooleanShape.new(name: 'DisableScaleIn')
37
38
  ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage')
39
+ ExceptionMessage = Shapes::StringShape.new(name: 'ExceptionMessage')
40
+ Expression = Shapes::StringShape.new(name: 'Expression')
38
41
  FailedResourceAccessException = Shapes::StructureShape.new(name: 'FailedResourceAccessException')
42
+ Id = Shapes::StringShape.new(name: 'Id')
39
43
  IncludeNotScaledActivities = Shapes::BooleanShape.new(name: 'IncludeNotScaledActivities')
40
44
  InternalServiceException = Shapes::StructureShape.new(name: 'InternalServiceException')
41
45
  InvalidNextTokenException = Shapes::StructureShape.new(name: 'InvalidNextTokenException')
42
46
  LimitExceededException = Shapes::StructureShape.new(name: 'LimitExceededException')
47
+ ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
48
+ ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
43
49
  MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
44
50
  MetricAggregationType = Shapes::StringShape.new(name: 'MetricAggregationType')
45
51
  MetricDimension = Shapes::StructureShape.new(name: 'MetricDimension')
@@ -70,6 +76,8 @@ module Aws::ApplicationAutoScaling
70
76
  ResourceIdMaxLen1600 = Shapes::StringShape.new(name: 'ResourceIdMaxLen1600')
71
77
  ResourceIdsMaxLen1600 = Shapes::ListShape.new(name: 'ResourceIdsMaxLen1600')
72
78
  ResourceLabel = Shapes::StringShape.new(name: 'ResourceLabel')
79
+ ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
80
+ ReturnData = Shapes::BooleanShape.new(name: 'ReturnData')
73
81
  ScalableDimension = Shapes::StringShape.new(name: 'ScalableDimension')
74
82
  ScalableTarget = Shapes::StructureShape.new(name: 'ScalableTarget')
75
83
  ScalableTargetAction = Shapes::StructureShape.new(name: 'ScalableTargetAction')
@@ -89,8 +97,28 @@ module Aws::ApplicationAutoScaling
89
97
  StepAdjustments = Shapes::ListShape.new(name: 'StepAdjustments')
90
98
  StepScalingPolicyConfiguration = Shapes::StructureShape.new(name: 'StepScalingPolicyConfiguration')
91
99
  SuspendedState = Shapes::StructureShape.new(name: 'SuspendedState')
100
+ TagKey = Shapes::StringShape.new(name: 'TagKey')
101
+ TagKeyList = Shapes::ListShape.new(name: 'TagKeyList')
102
+ TagMap = Shapes::MapShape.new(name: 'TagMap')
103
+ TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest')
104
+ TagResourceResponse = Shapes::StructureShape.new(name: 'TagResourceResponse')
105
+ TagValue = Shapes::StringShape.new(name: 'TagValue')
106
+ TargetTrackingMetric = Shapes::StructureShape.new(name: 'TargetTrackingMetric')
107
+ TargetTrackingMetricDataQueries = Shapes::ListShape.new(name: 'TargetTrackingMetricDataQueries')
108
+ TargetTrackingMetricDataQuery = Shapes::StructureShape.new(name: 'TargetTrackingMetricDataQuery')
109
+ TargetTrackingMetricDimension = Shapes::StructureShape.new(name: 'TargetTrackingMetricDimension')
110
+ TargetTrackingMetricDimensionName = Shapes::StringShape.new(name: 'TargetTrackingMetricDimensionName')
111
+ TargetTrackingMetricDimensionValue = Shapes::StringShape.new(name: 'TargetTrackingMetricDimensionValue')
112
+ TargetTrackingMetricDimensions = Shapes::ListShape.new(name: 'TargetTrackingMetricDimensions')
113
+ TargetTrackingMetricName = Shapes::StringShape.new(name: 'TargetTrackingMetricName')
114
+ TargetTrackingMetricNamespace = Shapes::StringShape.new(name: 'TargetTrackingMetricNamespace')
115
+ TargetTrackingMetricStat = Shapes::StructureShape.new(name: 'TargetTrackingMetricStat')
116
+ TargetTrackingMetricUnit = Shapes::StringShape.new(name: 'TargetTrackingMetricUnit')
92
117
  TargetTrackingScalingPolicyConfiguration = Shapes::StructureShape.new(name: 'TargetTrackingScalingPolicyConfiguration')
93
118
  TimestampType = Shapes::TimestampShape.new(name: 'TimestampType')
119
+ TooManyTagsException = Shapes::StructureShape.new(name: 'TooManyTagsException')
120
+ UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
121
+ UntagResourceResponse = Shapes::StructureShape.new(name: 'UntagResourceResponse')
94
122
  ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
95
123
  XmlString = Shapes::StringShape.new(name: 'XmlString')
96
124
 
@@ -103,11 +131,12 @@ module Aws::ApplicationAutoScaling
103
131
  ConcurrentUpdateException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
104
132
  ConcurrentUpdateException.struct_class = Types::ConcurrentUpdateException
105
133
 
106
- CustomizedMetricSpecification.add_member(:metric_name, Shapes::ShapeRef.new(shape: MetricName, required: true, location_name: "MetricName"))
107
- CustomizedMetricSpecification.add_member(:namespace, Shapes::ShapeRef.new(shape: MetricNamespace, required: true, location_name: "Namespace"))
134
+ CustomizedMetricSpecification.add_member(:metric_name, Shapes::ShapeRef.new(shape: MetricName, location_name: "MetricName"))
135
+ CustomizedMetricSpecification.add_member(:namespace, Shapes::ShapeRef.new(shape: MetricNamespace, location_name: "Namespace"))
108
136
  CustomizedMetricSpecification.add_member(:dimensions, Shapes::ShapeRef.new(shape: MetricDimensions, location_name: "Dimensions"))
109
- CustomizedMetricSpecification.add_member(:statistic, Shapes::ShapeRef.new(shape: MetricStatistic, required: true, location_name: "Statistic"))
137
+ CustomizedMetricSpecification.add_member(:statistic, Shapes::ShapeRef.new(shape: MetricStatistic, location_name: "Statistic"))
110
138
  CustomizedMetricSpecification.add_member(:unit, Shapes::ShapeRef.new(shape: MetricUnit, location_name: "Unit"))
139
+ CustomizedMetricSpecification.add_member(:metrics, Shapes::ShapeRef.new(shape: TargetTrackingMetricDataQueries, location_name: "Metrics"))
111
140
  CustomizedMetricSpecification.struct_class = Types::CustomizedMetricSpecification
112
141
 
113
142
  DeleteScalingPolicyRequest.add_member(:policy_name, Shapes::ShapeRef.new(shape: ResourceIdMaxLen1600, required: true, location_name: "PolicyName"))
@@ -192,6 +221,12 @@ module Aws::ApplicationAutoScaling
192
221
  LimitExceededException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
193
222
  LimitExceededException.struct_class = Types::LimitExceededException
194
223
 
224
+ ListTagsForResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, required: true, location_name: "ResourceARN"))
225
+ ListTagsForResourceRequest.struct_class = Types::ListTagsForResourceRequest
226
+
227
+ ListTagsForResourceResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "Tags"))
228
+ ListTagsForResourceResponse.struct_class = Types::ListTagsForResourceResponse
229
+
195
230
  MetricDimension.add_member(:name, Shapes::ShapeRef.new(shape: MetricDimensionName, required: true, location_name: "Name"))
196
231
  MetricDimension.add_member(:value, Shapes::ShapeRef.new(shape: MetricDimensionValue, required: true, location_name: "Value"))
197
232
  MetricDimension.struct_class = Types::MetricDimension
@@ -246,12 +281,18 @@ module Aws::ApplicationAutoScaling
246
281
  RegisterScalableTargetRequest.add_member(:max_capacity, Shapes::ShapeRef.new(shape: ResourceCapacity, location_name: "MaxCapacity"))
247
282
  RegisterScalableTargetRequest.add_member(:role_arn, Shapes::ShapeRef.new(shape: ResourceIdMaxLen1600, location_name: "RoleARN"))
248
283
  RegisterScalableTargetRequest.add_member(:suspended_state, Shapes::ShapeRef.new(shape: SuspendedState, location_name: "SuspendedState"))
284
+ RegisterScalableTargetRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "Tags"))
249
285
  RegisterScalableTargetRequest.struct_class = Types::RegisterScalableTargetRequest
250
286
 
287
+ RegisterScalableTargetResponse.add_member(:scalable_target_arn, Shapes::ShapeRef.new(shape: XmlString, location_name: "ScalableTargetARN"))
251
288
  RegisterScalableTargetResponse.struct_class = Types::RegisterScalableTargetResponse
252
289
 
253
290
  ResourceIdsMaxLen1600.member = Shapes::ShapeRef.new(shape: ResourceIdMaxLen1600)
254
291
 
292
+ ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "Message"))
293
+ ResourceNotFoundException.add_member(:resource_name, Shapes::ShapeRef.new(shape: AmazonResourceName, location_name: "ResourceName"))
294
+ ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
295
+
255
296
  ScalableTarget.add_member(:service_namespace, Shapes::ShapeRef.new(shape: ServiceNamespace, required: true, location_name: "ServiceNamespace"))
256
297
  ScalableTarget.add_member(:resource_id, Shapes::ShapeRef.new(shape: ResourceIdMaxLen1600, required: true, location_name: "ResourceId"))
257
298
  ScalableTarget.add_member(:scalable_dimension, Shapes::ShapeRef.new(shape: ScalableDimension, required: true, location_name: "ScalableDimension"))
@@ -260,6 +301,7 @@ module Aws::ApplicationAutoScaling
260
301
  ScalableTarget.add_member(:role_arn, Shapes::ShapeRef.new(shape: ResourceIdMaxLen1600, required: true, location_name: "RoleARN"))
261
302
  ScalableTarget.add_member(:creation_time, Shapes::ShapeRef.new(shape: TimestampType, required: true, location_name: "CreationTime"))
262
303
  ScalableTarget.add_member(:suspended_state, Shapes::ShapeRef.new(shape: SuspendedState, location_name: "SuspendedState"))
304
+ ScalableTarget.add_member(:scalable_target_arn, Shapes::ShapeRef.new(shape: XmlString, location_name: "ScalableTargetARN"))
263
305
  ScalableTarget.struct_class = Types::ScalableTarget
264
306
 
265
307
  ScalableTargetAction.add_member(:min_capacity, Shapes::ShapeRef.new(shape: ResourceCapacity, location_name: "MinCapacity"))
@@ -332,6 +374,42 @@ module Aws::ApplicationAutoScaling
332
374
  SuspendedState.add_member(:scheduled_scaling_suspended, Shapes::ShapeRef.new(shape: ScalingSuspended, location_name: "ScheduledScalingSuspended"))
333
375
  SuspendedState.struct_class = Types::SuspendedState
334
376
 
377
+ TagKeyList.member = Shapes::ShapeRef.new(shape: TagKey)
378
+
379
+ TagMap.key = Shapes::ShapeRef.new(shape: TagKey)
380
+ TagMap.value = Shapes::ShapeRef.new(shape: TagValue)
381
+
382
+ TagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, required: true, location_name: "ResourceARN"))
383
+ TagResourceRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, required: true, location_name: "Tags"))
384
+ TagResourceRequest.struct_class = Types::TagResourceRequest
385
+
386
+ TagResourceResponse.struct_class = Types::TagResourceResponse
387
+
388
+ TargetTrackingMetric.add_member(:dimensions, Shapes::ShapeRef.new(shape: TargetTrackingMetricDimensions, location_name: "Dimensions"))
389
+ TargetTrackingMetric.add_member(:metric_name, Shapes::ShapeRef.new(shape: TargetTrackingMetricName, location_name: "MetricName"))
390
+ TargetTrackingMetric.add_member(:namespace, Shapes::ShapeRef.new(shape: TargetTrackingMetricNamespace, location_name: "Namespace"))
391
+ TargetTrackingMetric.struct_class = Types::TargetTrackingMetric
392
+
393
+ TargetTrackingMetricDataQueries.member = Shapes::ShapeRef.new(shape: TargetTrackingMetricDataQuery)
394
+
395
+ TargetTrackingMetricDataQuery.add_member(:expression, Shapes::ShapeRef.new(shape: Expression, location_name: "Expression"))
396
+ TargetTrackingMetricDataQuery.add_member(:id, Shapes::ShapeRef.new(shape: Id, required: true, location_name: "Id"))
397
+ TargetTrackingMetricDataQuery.add_member(:label, Shapes::ShapeRef.new(shape: XmlString, location_name: "Label"))
398
+ TargetTrackingMetricDataQuery.add_member(:metric_stat, Shapes::ShapeRef.new(shape: TargetTrackingMetricStat, location_name: "MetricStat"))
399
+ TargetTrackingMetricDataQuery.add_member(:return_data, Shapes::ShapeRef.new(shape: ReturnData, location_name: "ReturnData"))
400
+ TargetTrackingMetricDataQuery.struct_class = Types::TargetTrackingMetricDataQuery
401
+
402
+ TargetTrackingMetricDimension.add_member(:name, Shapes::ShapeRef.new(shape: TargetTrackingMetricDimensionName, required: true, location_name: "Name"))
403
+ TargetTrackingMetricDimension.add_member(:value, Shapes::ShapeRef.new(shape: TargetTrackingMetricDimensionValue, required: true, location_name: "Value"))
404
+ TargetTrackingMetricDimension.struct_class = Types::TargetTrackingMetricDimension
405
+
406
+ TargetTrackingMetricDimensions.member = Shapes::ShapeRef.new(shape: TargetTrackingMetricDimension)
407
+
408
+ TargetTrackingMetricStat.add_member(:metric, Shapes::ShapeRef.new(shape: TargetTrackingMetric, required: true, location_name: "Metric"))
409
+ TargetTrackingMetricStat.add_member(:stat, Shapes::ShapeRef.new(shape: XmlString, required: true, location_name: "Stat"))
410
+ TargetTrackingMetricStat.add_member(:unit, Shapes::ShapeRef.new(shape: TargetTrackingMetricUnit, location_name: "Unit"))
411
+ TargetTrackingMetricStat.struct_class = Types::TargetTrackingMetricStat
412
+
335
413
  TargetTrackingScalingPolicyConfiguration.add_member(:target_value, Shapes::ShapeRef.new(shape: MetricScale, required: true, location_name: "TargetValue"))
336
414
  TargetTrackingScalingPolicyConfiguration.add_member(:predefined_metric_specification, Shapes::ShapeRef.new(shape: PredefinedMetricSpecification, location_name: "PredefinedMetricSpecification"))
337
415
  TargetTrackingScalingPolicyConfiguration.add_member(:customized_metric_specification, Shapes::ShapeRef.new(shape: CustomizedMetricSpecification, location_name: "CustomizedMetricSpecification"))
@@ -340,6 +418,16 @@ module Aws::ApplicationAutoScaling
340
418
  TargetTrackingScalingPolicyConfiguration.add_member(:disable_scale_in, Shapes::ShapeRef.new(shape: DisableScaleIn, location_name: "DisableScaleIn"))
341
419
  TargetTrackingScalingPolicyConfiguration.struct_class = Types::TargetTrackingScalingPolicyConfiguration
342
420
 
421
+ TooManyTagsException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "Message"))
422
+ TooManyTagsException.add_member(:resource_name, Shapes::ShapeRef.new(shape: AmazonResourceName, location_name: "ResourceName"))
423
+ TooManyTagsException.struct_class = Types::TooManyTagsException
424
+
425
+ UntagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, required: true, location_name: "ResourceARN"))
426
+ UntagResourceRequest.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeyList, required: true, location_name: "TagKeys"))
427
+ UntagResourceRequest.struct_class = Types::UntagResourceRequest
428
+
429
+ UntagResourceResponse.struct_class = Types::UntagResourceResponse
430
+
343
431
  ValidationException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
344
432
  ValidationException.struct_class = Types::ValidationException
345
433
 
@@ -471,6 +559,15 @@ module Aws::ApplicationAutoScaling
471
559
  )
472
560
  end)
473
561
 
562
+ api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
563
+ o.name = "ListTagsForResource"
564
+ o.http_method = "POST"
565
+ o.http_request_uri = "/"
566
+ o.input = Shapes::ShapeRef.new(shape: ListTagsForResourceRequest)
567
+ o.output = Shapes::ShapeRef.new(shape: ListTagsForResourceResponse)
568
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
569
+ end)
570
+
474
571
  api.add_operation(:put_scaling_policy, Seahorse::Model::Operation.new.tap do |o|
475
572
  o.name = "PutScalingPolicy"
476
573
  o.http_method = "POST"
@@ -509,6 +606,27 @@ module Aws::ApplicationAutoScaling
509
606
  o.errors << Shapes::ShapeRef.new(shape: ConcurrentUpdateException)
510
607
  o.errors << Shapes::ShapeRef.new(shape: InternalServiceException)
511
608
  end)
609
+
610
+ api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
611
+ o.name = "TagResource"
612
+ o.http_method = "POST"
613
+ o.http_request_uri = "/"
614
+ o.input = Shapes::ShapeRef.new(shape: TagResourceRequest)
615
+ o.output = Shapes::ShapeRef.new(shape: TagResourceResponse)
616
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
617
+ o.errors << Shapes::ShapeRef.new(shape: TooManyTagsException)
618
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
619
+ end)
620
+
621
+ api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
622
+ o.name = "UntagResource"
623
+ o.http_method = "POST"
624
+ o.http_request_uri = "/"
625
+ o.input = Shapes::ShapeRef.new(shape: UntagResourceRequest)
626
+ o.output = Shapes::ShapeRef.new(shape: UntagResourceResponse)
627
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
628
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
629
+ end)
512
630
  end
513
631
 
514
632
  end
@@ -50,9 +50,6 @@ module Aws::ApplicationAutoScaling
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
56
53
  self[:use_dual_stack] = options[:use_dual_stack]
57
54
  self[:use_dual_stack] = false if self[:use_dual_stack].nil?
58
55
  if self[:use_dual_stack].nil?
@@ -14,39 +14,42 @@ module Aws::ApplicationAutoScaling
14
14
  use_dual_stack = parameters.use_dual_stack
15
15
  use_fips = parameters.use_fips
16
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: {})
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"
26
20
  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://application-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"
21
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
22
+ raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
32
23
  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://application-autoscaling.#{region}.amazonaws.com", headers: {}, properties: {})
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://application-autoscaling-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
37
31
  end
38
- return Aws::Endpoints::Endpoint.new(url: "https://application-autoscaling-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
32
+ raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
39
33
  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://application-autoscaling.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
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://application-autoscaling.#{region}.amazonaws.com", headers: {}, properties: {})
38
+ end
39
+ return Aws::Endpoints::Endpoint.new(url: "https://application-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://application-autoscaling.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
46
+ end
47
+ raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
45
48
  end
46
- raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
49
+ return Aws::Endpoints::Endpoint.new(url: "https://application-autoscaling.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
47
50
  end
48
- return Aws::Endpoints::Endpoint.new(url: "https://application-autoscaling.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
49
51
  end
52
+ raise ArgumentError, "Invalid Configuration: Missing Region"
50
53
  raise ArgumentError, 'No endpoint could be resolved'
51
54
 
52
55
  end
@@ -109,6 +109,20 @@ module Aws::ApplicationAutoScaling
109
109
  end
110
110
  end
111
111
 
112
+ class ListTagsForResource
113
+ def self.build(context)
114
+ unless context.config.regional_endpoint
115
+ endpoint = context.config.endpoint.to_s
116
+ end
117
+ Aws::ApplicationAutoScaling::EndpointParameters.new(
118
+ region: context.config.region,
119
+ use_dual_stack: context.config.use_dualstack_endpoint,
120
+ use_fips: context.config.use_fips_endpoint,
121
+ endpoint: endpoint,
122
+ )
123
+ end
124
+ end
125
+
112
126
  class PutScalingPolicy
113
127
  def self.build(context)
114
128
  unless context.config.regional_endpoint
@@ -151,5 +165,33 @@ module Aws::ApplicationAutoScaling
151
165
  end
152
166
  end
153
167
 
168
+ class TagResource
169
+ def self.build(context)
170
+ unless context.config.regional_endpoint
171
+ endpoint = context.config.endpoint.to_s
172
+ end
173
+ Aws::ApplicationAutoScaling::EndpointParameters.new(
174
+ region: context.config.region,
175
+ use_dual_stack: context.config.use_dualstack_endpoint,
176
+ use_fips: context.config.use_fips_endpoint,
177
+ endpoint: endpoint,
178
+ )
179
+ end
180
+ end
181
+
182
+ class UntagResource
183
+ def self.build(context)
184
+ unless context.config.regional_endpoint
185
+ endpoint = context.config.endpoint.to_s
186
+ end
187
+ Aws::ApplicationAutoScaling::EndpointParameters.new(
188
+ region: context.config.region,
189
+ use_dual_stack: context.config.use_dualstack_endpoint,
190
+ use_fips: context.config.use_fips_endpoint,
191
+ endpoint: endpoint,
192
+ )
193
+ end
194
+ end
195
+
154
196
  end
155
197
  end
@@ -33,6 +33,8 @@ module Aws::ApplicationAutoScaling
33
33
  # * {InvalidNextTokenException}
34
34
  # * {LimitExceededException}
35
35
  # * {ObjectNotFoundException}
36
+ # * {ResourceNotFoundException}
37
+ # * {TooManyTagsException}
36
38
  # * {ValidationException}
37
39
  #
38
40
  # Additionally, error classes are dynamically generated for service errors based on the error code
@@ -131,6 +133,46 @@ module Aws::ApplicationAutoScaling
131
133
  end
132
134
  end
133
135
 
136
+ class ResourceNotFoundException < ServiceError
137
+
138
+ # @param [Seahorse::Client::RequestContext] context
139
+ # @param [String] message
140
+ # @param [Aws::ApplicationAutoScaling::Types::ResourceNotFoundException] data
141
+ def initialize(context, message, data = Aws::EmptyStructure.new)
142
+ super(context, message, data)
143
+ end
144
+
145
+ # @return [String]
146
+ def message
147
+ @message || @data[:message]
148
+ end
149
+
150
+ # @return [String]
151
+ def resource_name
152
+ @data[:resource_name]
153
+ end
154
+ end
155
+
156
+ class TooManyTagsException < ServiceError
157
+
158
+ # @param [Seahorse::Client::RequestContext] context
159
+ # @param [String] message
160
+ # @param [Aws::ApplicationAutoScaling::Types::TooManyTagsException] data
161
+ def initialize(context, message, data = Aws::EmptyStructure.new)
162
+ super(context, message, data)
163
+ end
164
+
165
+ # @return [String]
166
+ def message
167
+ @message || @data[:message]
168
+ end
169
+
170
+ # @return [String]
171
+ def resource_name
172
+ @data[:resource_name]
173
+ end
174
+ end
175
+
134
176
  class ValidationException < ServiceError
135
177
 
136
178
  # @param [Seahorse::Client::RequestContext] context
@@ -70,12 +70,18 @@ module Aws::ApplicationAutoScaling
70
70
  Aws::ApplicationAutoScaling::Endpoints::DescribeScalingPolicies.build(context)
71
71
  when :describe_scheduled_actions
72
72
  Aws::ApplicationAutoScaling::Endpoints::DescribeScheduledActions.build(context)
73
+ when :list_tags_for_resource
74
+ Aws::ApplicationAutoScaling::Endpoints::ListTagsForResource.build(context)
73
75
  when :put_scaling_policy
74
76
  Aws::ApplicationAutoScaling::Endpoints::PutScalingPolicy.build(context)
75
77
  when :put_scheduled_action
76
78
  Aws::ApplicationAutoScaling::Endpoints::PutScheduledAction.build(context)
77
79
  when :register_scalable_target
78
80
  Aws::ApplicationAutoScaling::Endpoints::RegisterScalableTarget.build(context)
81
+ when :tag_resource
82
+ Aws::ApplicationAutoScaling::Endpoints::TagResource.build(context)
83
+ when :untag_resource
84
+ Aws::ApplicationAutoScaling::Endpoints::UntagResource.build(context)
79
85
  end
80
86
  end
81
87
  end