aws-sdk-applicationautoscaling 1.0.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,321 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing for info on making contributions:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws
9
+ module ApplicationAutoScaling
10
+ # @api private
11
+ module ClientApi
12
+
13
+ include Seahorse::Model
14
+
15
+ AdjustmentType = Shapes::StringShape.new(name: 'AdjustmentType')
16
+ Alarm = Shapes::StructureShape.new(name: 'Alarm')
17
+ Alarms = Shapes::ListShape.new(name: 'Alarms')
18
+ ConcurrentUpdateException = Shapes::StructureShape.new(name: 'ConcurrentUpdateException')
19
+ Cooldown = Shapes::IntegerShape.new(name: 'Cooldown')
20
+ DeleteScalingPolicyRequest = Shapes::StructureShape.new(name: 'DeleteScalingPolicyRequest')
21
+ DeleteScalingPolicyResponse = Shapes::StructureShape.new(name: 'DeleteScalingPolicyResponse')
22
+ DeregisterScalableTargetRequest = Shapes::StructureShape.new(name: 'DeregisterScalableTargetRequest')
23
+ DeregisterScalableTargetResponse = Shapes::StructureShape.new(name: 'DeregisterScalableTargetResponse')
24
+ DescribeScalableTargetsRequest = Shapes::StructureShape.new(name: 'DescribeScalableTargetsRequest')
25
+ DescribeScalableTargetsResponse = Shapes::StructureShape.new(name: 'DescribeScalableTargetsResponse')
26
+ DescribeScalingActivitiesRequest = Shapes::StructureShape.new(name: 'DescribeScalingActivitiesRequest')
27
+ DescribeScalingActivitiesResponse = Shapes::StructureShape.new(name: 'DescribeScalingActivitiesResponse')
28
+ DescribeScalingPoliciesRequest = Shapes::StructureShape.new(name: 'DescribeScalingPoliciesRequest')
29
+ DescribeScalingPoliciesResponse = Shapes::StructureShape.new(name: 'DescribeScalingPoliciesResponse')
30
+ ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage')
31
+ FailedResourceAccessException = Shapes::StructureShape.new(name: 'FailedResourceAccessException')
32
+ InternalServiceException = Shapes::StructureShape.new(name: 'InternalServiceException')
33
+ InvalidNextTokenException = Shapes::StructureShape.new(name: 'InvalidNextTokenException')
34
+ LimitExceededException = Shapes::StructureShape.new(name: 'LimitExceededException')
35
+ MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
36
+ MetricAggregationType = Shapes::StringShape.new(name: 'MetricAggregationType')
37
+ MetricScale = Shapes::FloatShape.new(name: 'MetricScale')
38
+ MinAdjustmentMagnitude = Shapes::IntegerShape.new(name: 'MinAdjustmentMagnitude')
39
+ ObjectNotFoundException = Shapes::StructureShape.new(name: 'ObjectNotFoundException')
40
+ PolicyName = Shapes::StringShape.new(name: 'PolicyName')
41
+ PolicyType = Shapes::StringShape.new(name: 'PolicyType')
42
+ PutScalingPolicyRequest = Shapes::StructureShape.new(name: 'PutScalingPolicyRequest')
43
+ PutScalingPolicyResponse = Shapes::StructureShape.new(name: 'PutScalingPolicyResponse')
44
+ RegisterScalableTargetRequest = Shapes::StructureShape.new(name: 'RegisterScalableTargetRequest')
45
+ RegisterScalableTargetResponse = Shapes::StructureShape.new(name: 'RegisterScalableTargetResponse')
46
+ ResourceCapacity = Shapes::IntegerShape.new(name: 'ResourceCapacity')
47
+ ResourceId = Shapes::StringShape.new(name: 'ResourceId')
48
+ ResourceIdMaxLen1600 = Shapes::StringShape.new(name: 'ResourceIdMaxLen1600')
49
+ ResourceIdsMaxLen1600 = Shapes::ListShape.new(name: 'ResourceIdsMaxLen1600')
50
+ ScalableDimension = Shapes::StringShape.new(name: 'ScalableDimension')
51
+ ScalableTarget = Shapes::StructureShape.new(name: 'ScalableTarget')
52
+ ScalableTargets = Shapes::ListShape.new(name: 'ScalableTargets')
53
+ ScalingActivities = Shapes::ListShape.new(name: 'ScalingActivities')
54
+ ScalingActivity = Shapes::StructureShape.new(name: 'ScalingActivity')
55
+ ScalingActivityStatusCode = Shapes::StringShape.new(name: 'ScalingActivityStatusCode')
56
+ ScalingAdjustment = Shapes::IntegerShape.new(name: 'ScalingAdjustment')
57
+ ScalingPolicies = Shapes::ListShape.new(name: 'ScalingPolicies')
58
+ ScalingPolicy = Shapes::StructureShape.new(name: 'ScalingPolicy')
59
+ ServiceNamespace = Shapes::StringShape.new(name: 'ServiceNamespace')
60
+ StepAdjustment = Shapes::StructureShape.new(name: 'StepAdjustment')
61
+ StepAdjustments = Shapes::ListShape.new(name: 'StepAdjustments')
62
+ StepScalingPolicyConfiguration = Shapes::StructureShape.new(name: 'StepScalingPolicyConfiguration')
63
+ TimestampType = Shapes::TimestampShape.new(name: 'TimestampType')
64
+ ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
65
+ XmlString = Shapes::StringShape.new(name: 'XmlString')
66
+
67
+ Alarm.add_member(:alarm_name, Shapes::ShapeRef.new(shape: ResourceId, required: true, location_name: "AlarmName"))
68
+ Alarm.add_member(:alarm_arn, Shapes::ShapeRef.new(shape: ResourceId, required: true, location_name: "AlarmARN"))
69
+ Alarm.struct_class = Types::Alarm
70
+
71
+ Alarms.member = Shapes::ShapeRef.new(shape: Alarm)
72
+
73
+ DeleteScalingPolicyRequest.add_member(:policy_name, Shapes::ShapeRef.new(shape: ResourceIdMaxLen1600, required: true, location_name: "PolicyName"))
74
+ DeleteScalingPolicyRequest.add_member(:service_namespace, Shapes::ShapeRef.new(shape: ServiceNamespace, required: true, location_name: "ServiceNamespace"))
75
+ DeleteScalingPolicyRequest.add_member(:resource_id, Shapes::ShapeRef.new(shape: ResourceIdMaxLen1600, required: true, location_name: "ResourceId"))
76
+ DeleteScalingPolicyRequest.add_member(:scalable_dimension, Shapes::ShapeRef.new(shape: ScalableDimension, required: true, location_name: "ScalableDimension"))
77
+ DeleteScalingPolicyRequest.struct_class = Types::DeleteScalingPolicyRequest
78
+
79
+ DeleteScalingPolicyResponse.struct_class = Types::DeleteScalingPolicyResponse
80
+
81
+ DeregisterScalableTargetRequest.add_member(:service_namespace, Shapes::ShapeRef.new(shape: ServiceNamespace, required: true, location_name: "ServiceNamespace"))
82
+ DeregisterScalableTargetRequest.add_member(:resource_id, Shapes::ShapeRef.new(shape: ResourceIdMaxLen1600, required: true, location_name: "ResourceId"))
83
+ DeregisterScalableTargetRequest.add_member(:scalable_dimension, Shapes::ShapeRef.new(shape: ScalableDimension, required: true, location_name: "ScalableDimension"))
84
+ DeregisterScalableTargetRequest.struct_class = Types::DeregisterScalableTargetRequest
85
+
86
+ DeregisterScalableTargetResponse.struct_class = Types::DeregisterScalableTargetResponse
87
+
88
+ DescribeScalableTargetsRequest.add_member(:service_namespace, Shapes::ShapeRef.new(shape: ServiceNamespace, required: true, location_name: "ServiceNamespace"))
89
+ DescribeScalableTargetsRequest.add_member(:resource_ids, Shapes::ShapeRef.new(shape: ResourceIdsMaxLen1600, location_name: "ResourceIds"))
90
+ DescribeScalableTargetsRequest.add_member(:scalable_dimension, Shapes::ShapeRef.new(shape: ScalableDimension, location_name: "ScalableDimension"))
91
+ DescribeScalableTargetsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults"))
92
+ DescribeScalableTargetsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: XmlString, location_name: "NextToken"))
93
+ DescribeScalableTargetsRequest.struct_class = Types::DescribeScalableTargetsRequest
94
+
95
+ DescribeScalableTargetsResponse.add_member(:scalable_targets, Shapes::ShapeRef.new(shape: ScalableTargets, location_name: "ScalableTargets"))
96
+ DescribeScalableTargetsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: XmlString, location_name: "NextToken"))
97
+ DescribeScalableTargetsResponse.struct_class = Types::DescribeScalableTargetsResponse
98
+
99
+ DescribeScalingActivitiesRequest.add_member(:service_namespace, Shapes::ShapeRef.new(shape: ServiceNamespace, required: true, location_name: "ServiceNamespace"))
100
+ DescribeScalingActivitiesRequest.add_member(:resource_id, Shapes::ShapeRef.new(shape: ResourceIdMaxLen1600, location_name: "ResourceId"))
101
+ DescribeScalingActivitiesRequest.add_member(:scalable_dimension, Shapes::ShapeRef.new(shape: ScalableDimension, location_name: "ScalableDimension"))
102
+ DescribeScalingActivitiesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults"))
103
+ DescribeScalingActivitiesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: XmlString, location_name: "NextToken"))
104
+ DescribeScalingActivitiesRequest.struct_class = Types::DescribeScalingActivitiesRequest
105
+
106
+ DescribeScalingActivitiesResponse.add_member(:scaling_activities, Shapes::ShapeRef.new(shape: ScalingActivities, location_name: "ScalingActivities"))
107
+ DescribeScalingActivitiesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: XmlString, location_name: "NextToken"))
108
+ DescribeScalingActivitiesResponse.struct_class = Types::DescribeScalingActivitiesResponse
109
+
110
+ DescribeScalingPoliciesRequest.add_member(:policy_names, Shapes::ShapeRef.new(shape: ResourceIdsMaxLen1600, location_name: "PolicyNames"))
111
+ DescribeScalingPoliciesRequest.add_member(:service_namespace, Shapes::ShapeRef.new(shape: ServiceNamespace, required: true, location_name: "ServiceNamespace"))
112
+ DescribeScalingPoliciesRequest.add_member(:resource_id, Shapes::ShapeRef.new(shape: ResourceIdMaxLen1600, location_name: "ResourceId"))
113
+ DescribeScalingPoliciesRequest.add_member(:scalable_dimension, Shapes::ShapeRef.new(shape: ScalableDimension, location_name: "ScalableDimension"))
114
+ DescribeScalingPoliciesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults"))
115
+ DescribeScalingPoliciesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: XmlString, location_name: "NextToken"))
116
+ DescribeScalingPoliciesRequest.struct_class = Types::DescribeScalingPoliciesRequest
117
+
118
+ DescribeScalingPoliciesResponse.add_member(:scaling_policies, Shapes::ShapeRef.new(shape: ScalingPolicies, location_name: "ScalingPolicies"))
119
+ DescribeScalingPoliciesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: XmlString, location_name: "NextToken"))
120
+ DescribeScalingPoliciesResponse.struct_class = Types::DescribeScalingPoliciesResponse
121
+
122
+ PutScalingPolicyRequest.add_member(:policy_name, Shapes::ShapeRef.new(shape: PolicyName, required: true, location_name: "PolicyName"))
123
+ PutScalingPolicyRequest.add_member(:service_namespace, Shapes::ShapeRef.new(shape: ServiceNamespace, required: true, location_name: "ServiceNamespace"))
124
+ PutScalingPolicyRequest.add_member(:resource_id, Shapes::ShapeRef.new(shape: ResourceIdMaxLen1600, required: true, location_name: "ResourceId"))
125
+ PutScalingPolicyRequest.add_member(:scalable_dimension, Shapes::ShapeRef.new(shape: ScalableDimension, required: true, location_name: "ScalableDimension"))
126
+ PutScalingPolicyRequest.add_member(:policy_type, Shapes::ShapeRef.new(shape: PolicyType, location_name: "PolicyType"))
127
+ PutScalingPolicyRequest.add_member(:step_scaling_policy_configuration, Shapes::ShapeRef.new(shape: StepScalingPolicyConfiguration, location_name: "StepScalingPolicyConfiguration"))
128
+ PutScalingPolicyRequest.struct_class = Types::PutScalingPolicyRequest
129
+
130
+ PutScalingPolicyResponse.add_member(:policy_arn, Shapes::ShapeRef.new(shape: ResourceIdMaxLen1600, required: true, location_name: "PolicyARN"))
131
+ PutScalingPolicyResponse.struct_class = Types::PutScalingPolicyResponse
132
+
133
+ RegisterScalableTargetRequest.add_member(:service_namespace, Shapes::ShapeRef.new(shape: ServiceNamespace, required: true, location_name: "ServiceNamespace"))
134
+ RegisterScalableTargetRequest.add_member(:resource_id, Shapes::ShapeRef.new(shape: ResourceIdMaxLen1600, required: true, location_name: "ResourceId"))
135
+ RegisterScalableTargetRequest.add_member(:scalable_dimension, Shapes::ShapeRef.new(shape: ScalableDimension, required: true, location_name: "ScalableDimension"))
136
+ RegisterScalableTargetRequest.add_member(:min_capacity, Shapes::ShapeRef.new(shape: ResourceCapacity, location_name: "MinCapacity"))
137
+ RegisterScalableTargetRequest.add_member(:max_capacity, Shapes::ShapeRef.new(shape: ResourceCapacity, location_name: "MaxCapacity"))
138
+ RegisterScalableTargetRequest.add_member(:role_arn, Shapes::ShapeRef.new(shape: ResourceIdMaxLen1600, location_name: "RoleARN"))
139
+ RegisterScalableTargetRequest.struct_class = Types::RegisterScalableTargetRequest
140
+
141
+ RegisterScalableTargetResponse.struct_class = Types::RegisterScalableTargetResponse
142
+
143
+ ResourceIdsMaxLen1600.member = Shapes::ShapeRef.new(shape: ResourceIdMaxLen1600)
144
+
145
+ ScalableTarget.add_member(:service_namespace, Shapes::ShapeRef.new(shape: ServiceNamespace, required: true, location_name: "ServiceNamespace"))
146
+ ScalableTarget.add_member(:resource_id, Shapes::ShapeRef.new(shape: ResourceIdMaxLen1600, required: true, location_name: "ResourceId"))
147
+ ScalableTarget.add_member(:scalable_dimension, Shapes::ShapeRef.new(shape: ScalableDimension, required: true, location_name: "ScalableDimension"))
148
+ ScalableTarget.add_member(:min_capacity, Shapes::ShapeRef.new(shape: ResourceCapacity, required: true, location_name: "MinCapacity"))
149
+ ScalableTarget.add_member(:max_capacity, Shapes::ShapeRef.new(shape: ResourceCapacity, required: true, location_name: "MaxCapacity"))
150
+ ScalableTarget.add_member(:role_arn, Shapes::ShapeRef.new(shape: ResourceIdMaxLen1600, required: true, location_name: "RoleARN"))
151
+ ScalableTarget.add_member(:creation_time, Shapes::ShapeRef.new(shape: TimestampType, required: true, location_name: "CreationTime"))
152
+ ScalableTarget.struct_class = Types::ScalableTarget
153
+
154
+ ScalableTargets.member = Shapes::ShapeRef.new(shape: ScalableTarget)
155
+
156
+ ScalingActivities.member = Shapes::ShapeRef.new(shape: ScalingActivity)
157
+
158
+ ScalingActivity.add_member(:activity_id, Shapes::ShapeRef.new(shape: ResourceId, required: true, location_name: "ActivityId"))
159
+ ScalingActivity.add_member(:service_namespace, Shapes::ShapeRef.new(shape: ServiceNamespace, required: true, location_name: "ServiceNamespace"))
160
+ ScalingActivity.add_member(:resource_id, Shapes::ShapeRef.new(shape: ResourceIdMaxLen1600, required: true, location_name: "ResourceId"))
161
+ ScalingActivity.add_member(:scalable_dimension, Shapes::ShapeRef.new(shape: ScalableDimension, required: true, location_name: "ScalableDimension"))
162
+ ScalingActivity.add_member(:description, Shapes::ShapeRef.new(shape: XmlString, required: true, location_name: "Description"))
163
+ ScalingActivity.add_member(:cause, Shapes::ShapeRef.new(shape: XmlString, required: true, location_name: "Cause"))
164
+ ScalingActivity.add_member(:start_time, Shapes::ShapeRef.new(shape: TimestampType, required: true, location_name: "StartTime"))
165
+ ScalingActivity.add_member(:end_time, Shapes::ShapeRef.new(shape: TimestampType, location_name: "EndTime"))
166
+ ScalingActivity.add_member(:status_code, Shapes::ShapeRef.new(shape: ScalingActivityStatusCode, required: true, location_name: "StatusCode"))
167
+ ScalingActivity.add_member(:status_message, Shapes::ShapeRef.new(shape: XmlString, location_name: "StatusMessage"))
168
+ ScalingActivity.add_member(:details, Shapes::ShapeRef.new(shape: XmlString, location_name: "Details"))
169
+ ScalingActivity.struct_class = Types::ScalingActivity
170
+
171
+ ScalingPolicies.member = Shapes::ShapeRef.new(shape: ScalingPolicy)
172
+
173
+ ScalingPolicy.add_member(:policy_arn, Shapes::ShapeRef.new(shape: ResourceIdMaxLen1600, required: true, location_name: "PolicyARN"))
174
+ ScalingPolicy.add_member(:policy_name, Shapes::ShapeRef.new(shape: PolicyName, required: true, location_name: "PolicyName"))
175
+ ScalingPolicy.add_member(:service_namespace, Shapes::ShapeRef.new(shape: ServiceNamespace, required: true, location_name: "ServiceNamespace"))
176
+ ScalingPolicy.add_member(:resource_id, Shapes::ShapeRef.new(shape: ResourceIdMaxLen1600, required: true, location_name: "ResourceId"))
177
+ ScalingPolicy.add_member(:scalable_dimension, Shapes::ShapeRef.new(shape: ScalableDimension, required: true, location_name: "ScalableDimension"))
178
+ ScalingPolicy.add_member(:policy_type, Shapes::ShapeRef.new(shape: PolicyType, required: true, location_name: "PolicyType"))
179
+ ScalingPolicy.add_member(:step_scaling_policy_configuration, Shapes::ShapeRef.new(shape: StepScalingPolicyConfiguration, location_name: "StepScalingPolicyConfiguration"))
180
+ ScalingPolicy.add_member(:alarms, Shapes::ShapeRef.new(shape: Alarms, location_name: "Alarms"))
181
+ ScalingPolicy.add_member(:creation_time, Shapes::ShapeRef.new(shape: TimestampType, required: true, location_name: "CreationTime"))
182
+ ScalingPolicy.struct_class = Types::ScalingPolicy
183
+
184
+ StepAdjustment.add_member(:metric_interval_lower_bound, Shapes::ShapeRef.new(shape: MetricScale, location_name: "MetricIntervalLowerBound"))
185
+ StepAdjustment.add_member(:metric_interval_upper_bound, Shapes::ShapeRef.new(shape: MetricScale, location_name: "MetricIntervalUpperBound"))
186
+ StepAdjustment.add_member(:scaling_adjustment, Shapes::ShapeRef.new(shape: ScalingAdjustment, required: true, location_name: "ScalingAdjustment"))
187
+ StepAdjustment.struct_class = Types::StepAdjustment
188
+
189
+ StepAdjustments.member = Shapes::ShapeRef.new(shape: StepAdjustment)
190
+
191
+ StepScalingPolicyConfiguration.add_member(:adjustment_type, Shapes::ShapeRef.new(shape: AdjustmentType, location_name: "AdjustmentType"))
192
+ StepScalingPolicyConfiguration.add_member(:step_adjustments, Shapes::ShapeRef.new(shape: StepAdjustments, location_name: "StepAdjustments"))
193
+ StepScalingPolicyConfiguration.add_member(:min_adjustment_magnitude, Shapes::ShapeRef.new(shape: MinAdjustmentMagnitude, location_name: "MinAdjustmentMagnitude"))
194
+ StepScalingPolicyConfiguration.add_member(:cooldown, Shapes::ShapeRef.new(shape: Cooldown, location_name: "Cooldown"))
195
+ StepScalingPolicyConfiguration.add_member(:metric_aggregation_type, Shapes::ShapeRef.new(shape: MetricAggregationType, location_name: "MetricAggregationType"))
196
+ StepScalingPolicyConfiguration.struct_class = Types::StepScalingPolicyConfiguration
197
+
198
+
199
+ # @api private
200
+ API = Seahorse::Model::Api.new.tap do |api|
201
+
202
+ api.version = "2016-02-06"
203
+
204
+ api.metadata = {
205
+ "endpointPrefix" => "autoscaling",
206
+ "jsonVersion" => "1.1",
207
+ "protocol" => "json",
208
+ "serviceFullName" => "Application Auto Scaling",
209
+ "signatureVersion" => "v4",
210
+ "signingName" => "application-autoscaling",
211
+ "targetPrefix" => "AnyScaleFrontendService",
212
+ }
213
+
214
+ api.add_operation(:delete_scaling_policy, Seahorse::Model::Operation.new.tap do |o|
215
+ o.name = "DeleteScalingPolicy"
216
+ o.http_method = "POST"
217
+ o.http_request_uri = "/"
218
+ o.input = Shapes::ShapeRef.new(shape: DeleteScalingPolicyRequest)
219
+ o.output = Shapes::ShapeRef.new(shape: DeleteScalingPolicyResponse)
220
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
221
+ o.errors << Shapes::ShapeRef.new(shape: ObjectNotFoundException)
222
+ o.errors << Shapes::ShapeRef.new(shape: ConcurrentUpdateException)
223
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceException)
224
+ end)
225
+
226
+ api.add_operation(:deregister_scalable_target, Seahorse::Model::Operation.new.tap do |o|
227
+ o.name = "DeregisterScalableTarget"
228
+ o.http_method = "POST"
229
+ o.http_request_uri = "/"
230
+ o.input = Shapes::ShapeRef.new(shape: DeregisterScalableTargetRequest)
231
+ o.output = Shapes::ShapeRef.new(shape: DeregisterScalableTargetResponse)
232
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
233
+ o.errors << Shapes::ShapeRef.new(shape: ObjectNotFoundException)
234
+ o.errors << Shapes::ShapeRef.new(shape: ConcurrentUpdateException)
235
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceException)
236
+ end)
237
+
238
+ api.add_operation(:describe_scalable_targets, Seahorse::Model::Operation.new.tap do |o|
239
+ o.name = "DescribeScalableTargets"
240
+ o.http_method = "POST"
241
+ o.http_request_uri = "/"
242
+ o.input = Shapes::ShapeRef.new(shape: DescribeScalableTargetsRequest)
243
+ o.output = Shapes::ShapeRef.new(shape: DescribeScalableTargetsResponse)
244
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
245
+ o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
246
+ o.errors << Shapes::ShapeRef.new(shape: ConcurrentUpdateException)
247
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceException)
248
+ o[:pager] = Aws::Pager.new(
249
+ limit_key: "max_results",
250
+ tokens: {
251
+ "next_token" => "next_token"
252
+ }
253
+ )
254
+ end)
255
+
256
+ api.add_operation(:describe_scaling_activities, Seahorse::Model::Operation.new.tap do |o|
257
+ o.name = "DescribeScalingActivities"
258
+ o.http_method = "POST"
259
+ o.http_request_uri = "/"
260
+ o.input = Shapes::ShapeRef.new(shape: DescribeScalingActivitiesRequest)
261
+ o.output = Shapes::ShapeRef.new(shape: DescribeScalingActivitiesResponse)
262
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
263
+ o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
264
+ o.errors << Shapes::ShapeRef.new(shape: ConcurrentUpdateException)
265
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceException)
266
+ o[:pager] = Aws::Pager.new(
267
+ limit_key: "max_results",
268
+ tokens: {
269
+ "next_token" => "next_token"
270
+ }
271
+ )
272
+ end)
273
+
274
+ api.add_operation(:describe_scaling_policies, Seahorse::Model::Operation.new.tap do |o|
275
+ o.name = "DescribeScalingPolicies"
276
+ o.http_method = "POST"
277
+ o.http_request_uri = "/"
278
+ o.input = Shapes::ShapeRef.new(shape: DescribeScalingPoliciesRequest)
279
+ o.output = Shapes::ShapeRef.new(shape: DescribeScalingPoliciesResponse)
280
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
281
+ o.errors << Shapes::ShapeRef.new(shape: FailedResourceAccessException)
282
+ o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
283
+ o.errors << Shapes::ShapeRef.new(shape: ConcurrentUpdateException)
284
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceException)
285
+ o[:pager] = Aws::Pager.new(
286
+ limit_key: "max_results",
287
+ tokens: {
288
+ "next_token" => "next_token"
289
+ }
290
+ )
291
+ end)
292
+
293
+ api.add_operation(:put_scaling_policy, Seahorse::Model::Operation.new.tap do |o|
294
+ o.name = "PutScalingPolicy"
295
+ o.http_method = "POST"
296
+ o.http_request_uri = "/"
297
+ o.input = Shapes::ShapeRef.new(shape: PutScalingPolicyRequest)
298
+ o.output = Shapes::ShapeRef.new(shape: PutScalingPolicyResponse)
299
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
300
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
301
+ o.errors << Shapes::ShapeRef.new(shape: ObjectNotFoundException)
302
+ o.errors << Shapes::ShapeRef.new(shape: ConcurrentUpdateException)
303
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceException)
304
+ end)
305
+
306
+ api.add_operation(:register_scalable_target, Seahorse::Model::Operation.new.tap do |o|
307
+ o.name = "RegisterScalableTarget"
308
+ o.http_method = "POST"
309
+ o.http_request_uri = "/"
310
+ o.input = Shapes::ShapeRef.new(shape: RegisterScalableTargetRequest)
311
+ o.output = Shapes::ShapeRef.new(shape: RegisterScalableTargetResponse)
312
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
313
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
314
+ o.errors << Shapes::ShapeRef.new(shape: ConcurrentUpdateException)
315
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceException)
316
+ end)
317
+ end
318
+
319
+ end
320
+ end
321
+ end
@@ -0,0 +1,7 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing for info on making contributions:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
@@ -0,0 +1,23 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing for info on making contributions:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws
9
+ module ApplicationAutoScaling
10
+ module Errors
11
+
12
+ extend Aws::Errors::DynamicErrors
13
+
14
+ # Raised when calling #load or #data on a resource class that can not be
15
+ # loaded. This can happen when:
16
+ #
17
+ # * A resource class has identifiers, but no data attributes.
18
+ # * Resource data is only available when making an API call that
19
+ # enumerates all resources of that type.
20
+ class ResourceNotLoadable < RuntimeError; end
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,25 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing for info on making contributions:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws
9
+ module ApplicationAutoScaling
10
+ class Resource
11
+
12
+ # @param options ({})
13
+ # @option options [Client] :client
14
+ def initialize(options = {})
15
+ @client = options[:client] || Client.new(options)
16
+ end
17
+
18
+ # @return [Client]
19
+ def client
20
+ @client
21
+ end
22
+
23
+ end
24
+ end
25
+ end