aws-sdk-applicationautoscaling 1.67.0 → 1.69.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,6 +36,7 @@ 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')
38
40
  Expression = Shapes::StringShape.new(name: 'Expression')
39
41
  FailedResourceAccessException = Shapes::StructureShape.new(name: 'FailedResourceAccessException')
40
42
  Id = Shapes::StringShape.new(name: 'Id')
@@ -42,6 +44,8 @@ module Aws::ApplicationAutoScaling
42
44
  InternalServiceException = Shapes::StructureShape.new(name: 'InternalServiceException')
43
45
  InvalidNextTokenException = Shapes::StructureShape.new(name: 'InvalidNextTokenException')
44
46
  LimitExceededException = Shapes::StructureShape.new(name: 'LimitExceededException')
47
+ ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
48
+ ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
45
49
  MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
46
50
  MetricAggregationType = Shapes::StringShape.new(name: 'MetricAggregationType')
47
51
  MetricDimension = Shapes::StructureShape.new(name: 'MetricDimension')
@@ -72,6 +76,7 @@ module Aws::ApplicationAutoScaling
72
76
  ResourceIdMaxLen1600 = Shapes::StringShape.new(name: 'ResourceIdMaxLen1600')
73
77
  ResourceIdsMaxLen1600 = Shapes::ListShape.new(name: 'ResourceIdsMaxLen1600')
74
78
  ResourceLabel = Shapes::StringShape.new(name: 'ResourceLabel')
79
+ ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
75
80
  ReturnData = Shapes::BooleanShape.new(name: 'ReturnData')
76
81
  ScalableDimension = Shapes::StringShape.new(name: 'ScalableDimension')
77
82
  ScalableTarget = Shapes::StructureShape.new(name: 'ScalableTarget')
@@ -92,6 +97,12 @@ module Aws::ApplicationAutoScaling
92
97
  StepAdjustments = Shapes::ListShape.new(name: 'StepAdjustments')
93
98
  StepScalingPolicyConfiguration = Shapes::StructureShape.new(name: 'StepScalingPolicyConfiguration')
94
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')
95
106
  TargetTrackingMetric = Shapes::StructureShape.new(name: 'TargetTrackingMetric')
96
107
  TargetTrackingMetricDataQueries = Shapes::ListShape.new(name: 'TargetTrackingMetricDataQueries')
97
108
  TargetTrackingMetricDataQuery = Shapes::StructureShape.new(name: 'TargetTrackingMetricDataQuery')
@@ -105,6 +116,9 @@ module Aws::ApplicationAutoScaling
105
116
  TargetTrackingMetricUnit = Shapes::StringShape.new(name: 'TargetTrackingMetricUnit')
106
117
  TargetTrackingScalingPolicyConfiguration = Shapes::StructureShape.new(name: 'TargetTrackingScalingPolicyConfiguration')
107
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')
108
122
  ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
109
123
  XmlString = Shapes::StringShape.new(name: 'XmlString')
110
124
 
@@ -207,6 +221,12 @@ module Aws::ApplicationAutoScaling
207
221
  LimitExceededException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
208
222
  LimitExceededException.struct_class = Types::LimitExceededException
209
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
+
210
230
  MetricDimension.add_member(:name, Shapes::ShapeRef.new(shape: MetricDimensionName, required: true, location_name: "Name"))
211
231
  MetricDimension.add_member(:value, Shapes::ShapeRef.new(shape: MetricDimensionValue, required: true, location_name: "Value"))
212
232
  MetricDimension.struct_class = Types::MetricDimension
@@ -261,12 +281,18 @@ module Aws::ApplicationAutoScaling
261
281
  RegisterScalableTargetRequest.add_member(:max_capacity, Shapes::ShapeRef.new(shape: ResourceCapacity, location_name: "MaxCapacity"))
262
282
  RegisterScalableTargetRequest.add_member(:role_arn, Shapes::ShapeRef.new(shape: ResourceIdMaxLen1600, location_name: "RoleARN"))
263
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"))
264
285
  RegisterScalableTargetRequest.struct_class = Types::RegisterScalableTargetRequest
265
286
 
287
+ RegisterScalableTargetResponse.add_member(:scalable_target_arn, Shapes::ShapeRef.new(shape: XmlString, location_name: "ScalableTargetARN"))
266
288
  RegisterScalableTargetResponse.struct_class = Types::RegisterScalableTargetResponse
267
289
 
268
290
  ResourceIdsMaxLen1600.member = Shapes::ShapeRef.new(shape: ResourceIdMaxLen1600)
269
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
+
270
296
  ScalableTarget.add_member(:service_namespace, Shapes::ShapeRef.new(shape: ServiceNamespace, required: true, location_name: "ServiceNamespace"))
271
297
  ScalableTarget.add_member(:resource_id, Shapes::ShapeRef.new(shape: ResourceIdMaxLen1600, required: true, location_name: "ResourceId"))
272
298
  ScalableTarget.add_member(:scalable_dimension, Shapes::ShapeRef.new(shape: ScalableDimension, required: true, location_name: "ScalableDimension"))
@@ -275,6 +301,7 @@ module Aws::ApplicationAutoScaling
275
301
  ScalableTarget.add_member(:role_arn, Shapes::ShapeRef.new(shape: ResourceIdMaxLen1600, required: true, location_name: "RoleARN"))
276
302
  ScalableTarget.add_member(:creation_time, Shapes::ShapeRef.new(shape: TimestampType, required: true, location_name: "CreationTime"))
277
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"))
278
305
  ScalableTarget.struct_class = Types::ScalableTarget
279
306
 
280
307
  ScalableTargetAction.add_member(:min_capacity, Shapes::ShapeRef.new(shape: ResourceCapacity, location_name: "MinCapacity"))
@@ -347,6 +374,17 @@ module Aws::ApplicationAutoScaling
347
374
  SuspendedState.add_member(:scheduled_scaling_suspended, Shapes::ShapeRef.new(shape: ScalingSuspended, location_name: "ScheduledScalingSuspended"))
348
375
  SuspendedState.struct_class = Types::SuspendedState
349
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
+
350
388
  TargetTrackingMetric.add_member(:dimensions, Shapes::ShapeRef.new(shape: TargetTrackingMetricDimensions, location_name: "Dimensions"))
351
389
  TargetTrackingMetric.add_member(:metric_name, Shapes::ShapeRef.new(shape: TargetTrackingMetricName, location_name: "MetricName"))
352
390
  TargetTrackingMetric.add_member(:namespace, Shapes::ShapeRef.new(shape: TargetTrackingMetricNamespace, location_name: "Namespace"))
@@ -380,6 +418,16 @@ module Aws::ApplicationAutoScaling
380
418
  TargetTrackingScalingPolicyConfiguration.add_member(:disable_scale_in, Shapes::ShapeRef.new(shape: DisableScaleIn, location_name: "DisableScaleIn"))
381
419
  TargetTrackingScalingPolicyConfiguration.struct_class = Types::TargetTrackingScalingPolicyConfiguration
382
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
+
383
431
  ValidationException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
384
432
  ValidationException.struct_class = Types::ValidationException
385
433
 
@@ -511,6 +559,15 @@ module Aws::ApplicationAutoScaling
511
559
  )
512
560
  end)
513
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
+
514
571
  api.add_operation(:put_scaling_policy, Seahorse::Model::Operation.new.tap do |o|
515
572
  o.name = "PutScalingPolicy"
516
573
  o.http_method = "POST"
@@ -549,6 +606,27 @@ module Aws::ApplicationAutoScaling
549
606
  o.errors << Shapes::ShapeRef.new(shape: ConcurrentUpdateException)
550
607
  o.errors << Shapes::ShapeRef.new(shape: InternalServiceException)
551
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)
552
630
  end
553
631
 
554
632
  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