aws-sdk-applicationautoscaling 1.59.0 → 1.76.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,10 +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')
43
+ IncludeNotScaledActivities = Shapes::BooleanShape.new(name: 'IncludeNotScaledActivities')
39
44
  InternalServiceException = Shapes::StructureShape.new(name: 'InternalServiceException')
40
45
  InvalidNextTokenException = Shapes::StructureShape.new(name: 'InvalidNextTokenException')
41
46
  LimitExceededException = Shapes::StructureShape.new(name: 'LimitExceededException')
47
+ ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
48
+ ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
42
49
  MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
43
50
  MetricAggregationType = Shapes::StringShape.new(name: 'MetricAggregationType')
44
51
  MetricDimension = Shapes::StructureShape.new(name: 'MetricDimension')
@@ -52,6 +59,8 @@ module Aws::ApplicationAutoScaling
52
59
  MetricType = Shapes::StringShape.new(name: 'MetricType')
53
60
  MetricUnit = Shapes::StringShape.new(name: 'MetricUnit')
54
61
  MinAdjustmentMagnitude = Shapes::IntegerShape.new(name: 'MinAdjustmentMagnitude')
62
+ NotScaledReason = Shapes::StructureShape.new(name: 'NotScaledReason')
63
+ NotScaledReasons = Shapes::ListShape.new(name: 'NotScaledReasons')
55
64
  ObjectNotFoundException = Shapes::StructureShape.new(name: 'ObjectNotFoundException')
56
65
  PolicyName = Shapes::StringShape.new(name: 'PolicyName')
57
66
  PolicyType = Shapes::StringShape.new(name: 'PolicyType')
@@ -67,6 +76,8 @@ module Aws::ApplicationAutoScaling
67
76
  ResourceIdMaxLen1600 = Shapes::StringShape.new(name: 'ResourceIdMaxLen1600')
68
77
  ResourceIdsMaxLen1600 = Shapes::ListShape.new(name: 'ResourceIdsMaxLen1600')
69
78
  ResourceLabel = Shapes::StringShape.new(name: 'ResourceLabel')
79
+ ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
80
+ ReturnData = Shapes::BooleanShape.new(name: 'ReturnData')
70
81
  ScalableDimension = Shapes::StringShape.new(name: 'ScalableDimension')
71
82
  ScalableTarget = Shapes::StructureShape.new(name: 'ScalableTarget')
72
83
  ScalableTargetAction = Shapes::StructureShape.new(name: 'ScalableTargetAction')
@@ -86,8 +97,28 @@ module Aws::ApplicationAutoScaling
86
97
  StepAdjustments = Shapes::ListShape.new(name: 'StepAdjustments')
87
98
  StepScalingPolicyConfiguration = Shapes::StructureShape.new(name: 'StepScalingPolicyConfiguration')
88
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')
89
117
  TargetTrackingScalingPolicyConfiguration = Shapes::StructureShape.new(name: 'TargetTrackingScalingPolicyConfiguration')
90
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')
91
122
  ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
92
123
  XmlString = Shapes::StringShape.new(name: 'XmlString')
93
124
 
@@ -100,11 +131,12 @@ module Aws::ApplicationAutoScaling
100
131
  ConcurrentUpdateException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
101
132
  ConcurrentUpdateException.struct_class = Types::ConcurrentUpdateException
102
133
 
103
- CustomizedMetricSpecification.add_member(:metric_name, Shapes::ShapeRef.new(shape: MetricName, required: true, location_name: "MetricName"))
104
- 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"))
105
136
  CustomizedMetricSpecification.add_member(:dimensions, Shapes::ShapeRef.new(shape: MetricDimensions, location_name: "Dimensions"))
106
- 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"))
107
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"))
108
140
  CustomizedMetricSpecification.struct_class = Types::CustomizedMetricSpecification
109
141
 
110
142
  DeleteScalingPolicyRequest.add_member(:policy_name, Shapes::ShapeRef.new(shape: ResourceIdMaxLen1600, required: true, location_name: "PolicyName"))
@@ -146,6 +178,7 @@ module Aws::ApplicationAutoScaling
146
178
  DescribeScalingActivitiesRequest.add_member(:scalable_dimension, Shapes::ShapeRef.new(shape: ScalableDimension, location_name: "ScalableDimension"))
147
179
  DescribeScalingActivitiesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults"))
148
180
  DescribeScalingActivitiesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: XmlString, location_name: "NextToken"))
181
+ DescribeScalingActivitiesRequest.add_member(:include_not_scaled_activities, Shapes::ShapeRef.new(shape: IncludeNotScaledActivities, location_name: "IncludeNotScaledActivities"))
149
182
  DescribeScalingActivitiesRequest.struct_class = Types::DescribeScalingActivitiesRequest
150
183
 
151
184
  DescribeScalingActivitiesResponse.add_member(:scaling_activities, Shapes::ShapeRef.new(shape: ScalingActivities, location_name: "ScalingActivities"))
@@ -188,12 +221,26 @@ module Aws::ApplicationAutoScaling
188
221
  LimitExceededException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
189
222
  LimitExceededException.struct_class = Types::LimitExceededException
190
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
+
191
230
  MetricDimension.add_member(:name, Shapes::ShapeRef.new(shape: MetricDimensionName, required: true, location_name: "Name"))
192
231
  MetricDimension.add_member(:value, Shapes::ShapeRef.new(shape: MetricDimensionValue, required: true, location_name: "Value"))
193
232
  MetricDimension.struct_class = Types::MetricDimension
194
233
 
195
234
  MetricDimensions.member = Shapes::ShapeRef.new(shape: MetricDimension)
196
235
 
236
+ NotScaledReason.add_member(:code, Shapes::ShapeRef.new(shape: XmlString, required: true, location_name: "Code"))
237
+ NotScaledReason.add_member(:max_capacity, Shapes::ShapeRef.new(shape: ResourceCapacity, location_name: "MaxCapacity"))
238
+ NotScaledReason.add_member(:min_capacity, Shapes::ShapeRef.new(shape: ResourceCapacity, location_name: "MinCapacity"))
239
+ NotScaledReason.add_member(:current_capacity, Shapes::ShapeRef.new(shape: ResourceCapacity, location_name: "CurrentCapacity"))
240
+ NotScaledReason.struct_class = Types::NotScaledReason
241
+
242
+ NotScaledReasons.member = Shapes::ShapeRef.new(shape: NotScaledReason)
243
+
197
244
  ObjectNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
198
245
  ObjectNotFoundException.struct_class = Types::ObjectNotFoundException
199
246
 
@@ -234,12 +281,18 @@ module Aws::ApplicationAutoScaling
234
281
  RegisterScalableTargetRequest.add_member(:max_capacity, Shapes::ShapeRef.new(shape: ResourceCapacity, location_name: "MaxCapacity"))
235
282
  RegisterScalableTargetRequest.add_member(:role_arn, Shapes::ShapeRef.new(shape: ResourceIdMaxLen1600, location_name: "RoleARN"))
236
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"))
237
285
  RegisterScalableTargetRequest.struct_class = Types::RegisterScalableTargetRequest
238
286
 
287
+ RegisterScalableTargetResponse.add_member(:scalable_target_arn, Shapes::ShapeRef.new(shape: XmlString, location_name: "ScalableTargetARN"))
239
288
  RegisterScalableTargetResponse.struct_class = Types::RegisterScalableTargetResponse
240
289
 
241
290
  ResourceIdsMaxLen1600.member = Shapes::ShapeRef.new(shape: ResourceIdMaxLen1600)
242
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
+
243
296
  ScalableTarget.add_member(:service_namespace, Shapes::ShapeRef.new(shape: ServiceNamespace, required: true, location_name: "ServiceNamespace"))
244
297
  ScalableTarget.add_member(:resource_id, Shapes::ShapeRef.new(shape: ResourceIdMaxLen1600, required: true, location_name: "ResourceId"))
245
298
  ScalableTarget.add_member(:scalable_dimension, Shapes::ShapeRef.new(shape: ScalableDimension, required: true, location_name: "ScalableDimension"))
@@ -248,6 +301,7 @@ module Aws::ApplicationAutoScaling
248
301
  ScalableTarget.add_member(:role_arn, Shapes::ShapeRef.new(shape: ResourceIdMaxLen1600, required: true, location_name: "RoleARN"))
249
302
  ScalableTarget.add_member(:creation_time, Shapes::ShapeRef.new(shape: TimestampType, required: true, location_name: "CreationTime"))
250
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"))
251
305
  ScalableTarget.struct_class = Types::ScalableTarget
252
306
 
253
307
  ScalableTargetAction.add_member(:min_capacity, Shapes::ShapeRef.new(shape: ResourceCapacity, location_name: "MinCapacity"))
@@ -269,6 +323,7 @@ module Aws::ApplicationAutoScaling
269
323
  ScalingActivity.add_member(:status_code, Shapes::ShapeRef.new(shape: ScalingActivityStatusCode, required: true, location_name: "StatusCode"))
270
324
  ScalingActivity.add_member(:status_message, Shapes::ShapeRef.new(shape: XmlString, location_name: "StatusMessage"))
271
325
  ScalingActivity.add_member(:details, Shapes::ShapeRef.new(shape: XmlString, location_name: "Details"))
326
+ ScalingActivity.add_member(:not_scaled_reasons, Shapes::ShapeRef.new(shape: NotScaledReasons, location_name: "NotScaledReasons"))
272
327
  ScalingActivity.struct_class = Types::ScalingActivity
273
328
 
274
329
  ScalingPolicies.member = Shapes::ShapeRef.new(shape: ScalingPolicy)
@@ -319,6 +374,42 @@ module Aws::ApplicationAutoScaling
319
374
  SuspendedState.add_member(:scheduled_scaling_suspended, Shapes::ShapeRef.new(shape: ScalingSuspended, location_name: "ScheduledScalingSuspended"))
320
375
  SuspendedState.struct_class = Types::SuspendedState
321
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
+
322
413
  TargetTrackingScalingPolicyConfiguration.add_member(:target_value, Shapes::ShapeRef.new(shape: MetricScale, required: true, location_name: "TargetValue"))
323
414
  TargetTrackingScalingPolicyConfiguration.add_member(:predefined_metric_specification, Shapes::ShapeRef.new(shape: PredefinedMetricSpecification, location_name: "PredefinedMetricSpecification"))
324
415
  TargetTrackingScalingPolicyConfiguration.add_member(:customized_metric_specification, Shapes::ShapeRef.new(shape: CustomizedMetricSpecification, location_name: "CustomizedMetricSpecification"))
@@ -327,6 +418,16 @@ module Aws::ApplicationAutoScaling
327
418
  TargetTrackingScalingPolicyConfiguration.add_member(:disable_scale_in, Shapes::ShapeRef.new(shape: DisableScaleIn, location_name: "DisableScaleIn"))
328
419
  TargetTrackingScalingPolicyConfiguration.struct_class = Types::TargetTrackingScalingPolicyConfiguration
329
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
+
330
431
  ValidationException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
331
432
  ValidationException.struct_class = Types::ValidationException
332
433
 
@@ -458,6 +559,15 @@ module Aws::ApplicationAutoScaling
458
559
  )
459
560
  end)
460
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
+
461
571
  api.add_operation(:put_scaling_policy, Seahorse::Model::Operation.new.tap do |o|
462
572
  o.name = "PutScalingPolicy"
463
573
  o.http_method = "POST"
@@ -496,6 +606,27 @@ module Aws::ApplicationAutoScaling
496
606
  o.errors << Shapes::ShapeRef.new(shape: ConcurrentUpdateException)
497
607
  o.errors << Shapes::ShapeRef.new(shape: InternalServiceException)
498
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)
499
630
  end
500
631
 
501
632
  end
@@ -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::ApplicationAutoScaling
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::ApplicationAutoScaling
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://application-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://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"
48
+ end
49
+ return Aws::Endpoints::Endpoint.new(url: "https://application-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
@@ -0,0 +1,198 @@
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
+
11
+ module Aws::ApplicationAutoScaling
12
+ # @api private
13
+ module Endpoints
14
+
15
+ class DeleteScalingPolicy
16
+ def self.build(context)
17
+ unless context.config.regional_endpoint
18
+ endpoint = context.config.endpoint.to_s
19
+ end
20
+ Aws::ApplicationAutoScaling::EndpointParameters.new(
21
+ region: context.config.region,
22
+ use_dual_stack: context.config.use_dualstack_endpoint,
23
+ use_fips: context.config.use_fips_endpoint,
24
+ endpoint: endpoint,
25
+ )
26
+ end
27
+ end
28
+
29
+ class DeleteScheduledAction
30
+ def self.build(context)
31
+ unless context.config.regional_endpoint
32
+ endpoint = context.config.endpoint.to_s
33
+ end
34
+ Aws::ApplicationAutoScaling::EndpointParameters.new(
35
+ region: context.config.region,
36
+ use_dual_stack: context.config.use_dualstack_endpoint,
37
+ use_fips: context.config.use_fips_endpoint,
38
+ endpoint: endpoint,
39
+ )
40
+ end
41
+ end
42
+
43
+ class DeregisterScalableTarget
44
+ def self.build(context)
45
+ unless context.config.regional_endpoint
46
+ endpoint = context.config.endpoint.to_s
47
+ end
48
+ Aws::ApplicationAutoScaling::EndpointParameters.new(
49
+ region: context.config.region,
50
+ use_dual_stack: context.config.use_dualstack_endpoint,
51
+ use_fips: context.config.use_fips_endpoint,
52
+ endpoint: endpoint,
53
+ )
54
+ end
55
+ end
56
+
57
+ class DescribeScalableTargets
58
+ def self.build(context)
59
+ unless context.config.regional_endpoint
60
+ endpoint = context.config.endpoint.to_s
61
+ end
62
+ Aws::ApplicationAutoScaling::EndpointParameters.new(
63
+ region: context.config.region,
64
+ use_dual_stack: context.config.use_dualstack_endpoint,
65
+ use_fips: context.config.use_fips_endpoint,
66
+ endpoint: endpoint,
67
+ )
68
+ end
69
+ end
70
+
71
+ class DescribeScalingActivities
72
+ def self.build(context)
73
+ unless context.config.regional_endpoint
74
+ endpoint = context.config.endpoint.to_s
75
+ end
76
+ Aws::ApplicationAutoScaling::EndpointParameters.new(
77
+ region: context.config.region,
78
+ use_dual_stack: context.config.use_dualstack_endpoint,
79
+ use_fips: context.config.use_fips_endpoint,
80
+ endpoint: endpoint,
81
+ )
82
+ end
83
+ end
84
+
85
+ class DescribeScalingPolicies
86
+ def self.build(context)
87
+ unless context.config.regional_endpoint
88
+ endpoint = context.config.endpoint.to_s
89
+ end
90
+ Aws::ApplicationAutoScaling::EndpointParameters.new(
91
+ region: context.config.region,
92
+ use_dual_stack: context.config.use_dualstack_endpoint,
93
+ use_fips: context.config.use_fips_endpoint,
94
+ endpoint: endpoint,
95
+ )
96
+ end
97
+ end
98
+
99
+ class DescribeScheduledActions
100
+ def self.build(context)
101
+ unless context.config.regional_endpoint
102
+ endpoint = context.config.endpoint.to_s
103
+ end
104
+ Aws::ApplicationAutoScaling::EndpointParameters.new(
105
+ region: context.config.region,
106
+ use_dual_stack: context.config.use_dualstack_endpoint,
107
+ use_fips: context.config.use_fips_endpoint,
108
+ endpoint: endpoint,
109
+ )
110
+ end
111
+ end
112
+
113
+ class ListTagsForResource
114
+ def self.build(context)
115
+ unless context.config.regional_endpoint
116
+ endpoint = context.config.endpoint.to_s
117
+ end
118
+ Aws::ApplicationAutoScaling::EndpointParameters.new(
119
+ region: context.config.region,
120
+ use_dual_stack: context.config.use_dualstack_endpoint,
121
+ use_fips: context.config.use_fips_endpoint,
122
+ endpoint: endpoint,
123
+ )
124
+ end
125
+ end
126
+
127
+ class PutScalingPolicy
128
+ def self.build(context)
129
+ unless context.config.regional_endpoint
130
+ endpoint = context.config.endpoint.to_s
131
+ end
132
+ Aws::ApplicationAutoScaling::EndpointParameters.new(
133
+ region: context.config.region,
134
+ use_dual_stack: context.config.use_dualstack_endpoint,
135
+ use_fips: context.config.use_fips_endpoint,
136
+ endpoint: endpoint,
137
+ )
138
+ end
139
+ end
140
+
141
+ class PutScheduledAction
142
+ def self.build(context)
143
+ unless context.config.regional_endpoint
144
+ endpoint = context.config.endpoint.to_s
145
+ end
146
+ Aws::ApplicationAutoScaling::EndpointParameters.new(
147
+ region: context.config.region,
148
+ use_dual_stack: context.config.use_dualstack_endpoint,
149
+ use_fips: context.config.use_fips_endpoint,
150
+ endpoint: endpoint,
151
+ )
152
+ end
153
+ end
154
+
155
+ class RegisterScalableTarget
156
+ def self.build(context)
157
+ unless context.config.regional_endpoint
158
+ endpoint = context.config.endpoint.to_s
159
+ end
160
+ Aws::ApplicationAutoScaling::EndpointParameters.new(
161
+ region: context.config.region,
162
+ use_dual_stack: context.config.use_dualstack_endpoint,
163
+ use_fips: context.config.use_fips_endpoint,
164
+ endpoint: endpoint,
165
+ )
166
+ end
167
+ end
168
+
169
+ class TagResource
170
+ def self.build(context)
171
+ unless context.config.regional_endpoint
172
+ endpoint = context.config.endpoint.to_s
173
+ end
174
+ Aws::ApplicationAutoScaling::EndpointParameters.new(
175
+ region: context.config.region,
176
+ use_dual_stack: context.config.use_dualstack_endpoint,
177
+ use_fips: context.config.use_fips_endpoint,
178
+ endpoint: endpoint,
179
+ )
180
+ end
181
+ end
182
+
183
+ class UntagResource
184
+ def self.build(context)
185
+ unless context.config.regional_endpoint
186
+ endpoint = context.config.endpoint.to_s
187
+ end
188
+ Aws::ApplicationAutoScaling::EndpointParameters.new(
189
+ region: context.config.region,
190
+ use_dual_stack: context.config.use_dualstack_endpoint,
191
+ use_fips: context.config.use_fips_endpoint,
192
+ endpoint: endpoint,
193
+ )
194
+ end
195
+ end
196
+
197
+ end
198
+ 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