aws-sdk 1.3.8 → 1.3.9
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/aws.rb +2 -0
- data/lib/aws/api_config/AutoScaling-2011-01-01.yml +563 -0
- data/lib/aws/auto_scaling.rb +162 -0
- data/lib/aws/auto_scaling/activity.rb +102 -0
- data/lib/aws/auto_scaling/activity_collection.rb +82 -0
- data/lib/aws/auto_scaling/client.rb +50 -0
- data/lib/aws/auto_scaling/client/xml.rb +32 -0
- data/lib/aws/auto_scaling/config.rb +18 -0
- data/lib/aws/auto_scaling/errors.rb +26 -0
- data/lib/aws/auto_scaling/group.rb +420 -0
- data/lib/aws/auto_scaling/group_collection.rb +96 -0
- data/lib/aws/auto_scaling/group_options.rb +146 -0
- data/lib/aws/auto_scaling/instance.rb +192 -0
- data/lib/aws/auto_scaling/instance_collection.rb +63 -0
- data/lib/aws/auto_scaling/launch_configuration.rb +150 -0
- data/lib/aws/auto_scaling/launch_configuration_collection.rb +144 -0
- data/lib/aws/auto_scaling/notification_configuration.rb +89 -0
- data/lib/aws/auto_scaling/notification_configuration_collection.rb +184 -0
- data/lib/aws/auto_scaling/request.rb +24 -0
- data/lib/aws/auto_scaling/scaling_policy.rb +125 -0
- data/lib/aws/auto_scaling/scaling_policy_collection.rb +72 -0
- data/lib/aws/auto_scaling/scaling_policy_options.rb +61 -0
- data/lib/aws/auto_scaling/scheduled_action.rb +145 -0
- data/lib/aws/auto_scaling/scheduled_action_collection.rb +195 -0
- data/lib/aws/auto_scaling/tag.rb +59 -0
- data/lib/aws/auto_scaling/tag_collection.rb +112 -0
- data/lib/aws/core.rb +40 -8
- data/lib/aws/core/client.rb +28 -3
- data/lib/aws/core/configuration.rb +38 -31
- data/lib/aws/core/http/request.rb +3 -3
- data/lib/aws/core/http/response.rb +2 -1
- data/lib/aws/core/log_formatter.rb +454 -0
- data/lib/aws/core/resource.rb +2 -1
- data/lib/aws/core/response.rb +5 -0
- data/lib/aws/core/uri_escape.rb +1 -1
- data/lib/aws/core/xml_grammar.rb +21 -0
- data/lib/aws/dynamo_db/request.rb +1 -1
- data/lib/aws/ec2/network_acl_collection.rb +1 -2
- data/lib/aws/ec2/route_table_collection.rb +1 -2
- data/lib/aws/ec2/vpn_gateway_collection.rb +1 -1
- data/lib/aws/elb/load_balancer.rb +0 -2
- data/lib/aws/errors.rb +2 -2
- data/lib/aws/s3/object_version_collection.rb +1 -1
- data/lib/aws/s3/s3_object.rb +4 -4
- data/lib/aws/sqs/queue.rb +2 -2
- metadata +52 -27
- data/lib/aws/core/client_logging.rb +0 -133
data/lib/aws.rb
CHANGED
@@ -13,6 +13,7 @@
|
|
13
13
|
|
14
14
|
require 'aws/core'
|
15
15
|
|
16
|
+
require 'aws/auto_scaling/config'
|
16
17
|
require 'aws/dynamo_db/config'
|
17
18
|
require 'aws/ec2/config'
|
18
19
|
require 'aws/elb/config'
|
@@ -27,6 +28,7 @@ require 'aws/sts/config'
|
|
27
28
|
|
28
29
|
module AWS
|
29
30
|
register_autoloads(self) do
|
31
|
+
autoload :AutoScaling, 'auto_scaling'
|
30
32
|
autoload :DynamoDB, 'dynamo_db'
|
31
33
|
autoload :EC2, 'ec2'
|
32
34
|
autoload :ELB, 'elb'
|
@@ -0,0 +1,563 @@
|
|
1
|
+
# Copyright 2011-2012 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License"). You
|
4
|
+
# may not use this file except in compliance with the License. A copy of
|
5
|
+
# the License is located at
|
6
|
+
#
|
7
|
+
# http://aws.amazon.com/apache2.0/
|
8
|
+
#
|
9
|
+
# or in the "license" file accompanying this file. This file is
|
10
|
+
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
|
11
|
+
# ANY KIND, either express or implied. See the License for the specific
|
12
|
+
# language governing permissions and limitations under the License.
|
13
|
+
|
14
|
+
---
|
15
|
+
:operations:
|
16
|
+
CreateAutoScalingGroup:
|
17
|
+
:input:
|
18
|
+
AutoScalingGroupName:
|
19
|
+
- :string
|
20
|
+
- :required
|
21
|
+
LaunchConfigurationName:
|
22
|
+
- :string
|
23
|
+
- :required
|
24
|
+
MinSize:
|
25
|
+
- :integer
|
26
|
+
- :required
|
27
|
+
MaxSize:
|
28
|
+
- :integer
|
29
|
+
- :required
|
30
|
+
DesiredCapacity:
|
31
|
+
- :integer
|
32
|
+
DefaultCooldown:
|
33
|
+
- :integer
|
34
|
+
AvailabilityZones:
|
35
|
+
- :membered_list:
|
36
|
+
- :string
|
37
|
+
- :required
|
38
|
+
LoadBalancerNames:
|
39
|
+
- :membered_list:
|
40
|
+
- :string
|
41
|
+
HealthCheckType:
|
42
|
+
- :string
|
43
|
+
HealthCheckGracePeriod:
|
44
|
+
- :integer
|
45
|
+
PlacementGroup:
|
46
|
+
- :string
|
47
|
+
VPCZoneIdentifier:
|
48
|
+
- :string
|
49
|
+
Tags:
|
50
|
+
- :membered_list:
|
51
|
+
- :structure:
|
52
|
+
ResourceId:
|
53
|
+
- :string
|
54
|
+
ResourceType:
|
55
|
+
- :string
|
56
|
+
Key:
|
57
|
+
- :string
|
58
|
+
- :required
|
59
|
+
Value:
|
60
|
+
- :string
|
61
|
+
PropagateAtLaunch:
|
62
|
+
- :boolean
|
63
|
+
:output: []
|
64
|
+
DeleteAutoScalingGroup:
|
65
|
+
:input:
|
66
|
+
AutoScalingGroupName:
|
67
|
+
- :string
|
68
|
+
- :required
|
69
|
+
ForceDelete:
|
70
|
+
- :boolean
|
71
|
+
:output: []
|
72
|
+
DescribeAutoScalingGroups:
|
73
|
+
:input:
|
74
|
+
AutoScalingGroupNames:
|
75
|
+
- :membered_list:
|
76
|
+
- :string
|
77
|
+
NextToken:
|
78
|
+
- :string
|
79
|
+
MaxRecords:
|
80
|
+
- :integer
|
81
|
+
:output:
|
82
|
+
- AutoScalingGroups:
|
83
|
+
- :list: member
|
84
|
+
- member:
|
85
|
+
- MinSize:
|
86
|
+
- :integer
|
87
|
+
- MaxSize:
|
88
|
+
- :integer
|
89
|
+
- DesiredCapacity:
|
90
|
+
- :integer
|
91
|
+
- DefaultCooldown:
|
92
|
+
- :integer
|
93
|
+
- AvailabilityZones:
|
94
|
+
- :list: member
|
95
|
+
- LoadBalancerNames:
|
96
|
+
- :list: member
|
97
|
+
- HealthCheckGracePeriod:
|
98
|
+
- :integer
|
99
|
+
- Instances:
|
100
|
+
- :list: member
|
101
|
+
- CreatedTime:
|
102
|
+
- :timestamp
|
103
|
+
- SuspendedProcesses:
|
104
|
+
- :list: member
|
105
|
+
- EnabledMetrics:
|
106
|
+
- :list: member
|
107
|
+
- Tags:
|
108
|
+
- :list: member
|
109
|
+
- member:
|
110
|
+
- PropagateAtLaunch:
|
111
|
+
- :boolean
|
112
|
+
UpdateAutoScalingGroup:
|
113
|
+
:input:
|
114
|
+
AutoScalingGroupName:
|
115
|
+
- :string
|
116
|
+
- :required
|
117
|
+
LaunchConfigurationName:
|
118
|
+
- :string
|
119
|
+
MinSize:
|
120
|
+
- :integer
|
121
|
+
MaxSize:
|
122
|
+
- :integer
|
123
|
+
DesiredCapacity:
|
124
|
+
- :integer
|
125
|
+
DefaultCooldown:
|
126
|
+
- :integer
|
127
|
+
AvailabilityZones:
|
128
|
+
- :membered_list:
|
129
|
+
- :string
|
130
|
+
HealthCheckType:
|
131
|
+
- :string
|
132
|
+
HealthCheckGracePeriod:
|
133
|
+
- :integer
|
134
|
+
PlacementGroup:
|
135
|
+
- :string
|
136
|
+
VPCZoneIdentifier:
|
137
|
+
- :string
|
138
|
+
:output: []
|
139
|
+
DescribeAutoScalingInstances:
|
140
|
+
:input:
|
141
|
+
InstanceIds:
|
142
|
+
- :membered_list:
|
143
|
+
- :string
|
144
|
+
MaxRecords:
|
145
|
+
- :integer
|
146
|
+
NextToken:
|
147
|
+
- :string
|
148
|
+
:output:
|
149
|
+
- AutoScalingInstances:
|
150
|
+
- :list: member
|
151
|
+
DescribeScalingProcessTypes:
|
152
|
+
:input: {}
|
153
|
+
:output:
|
154
|
+
- Processes:
|
155
|
+
- :list: member
|
156
|
+
SuspendProcesses:
|
157
|
+
:input:
|
158
|
+
AutoScalingGroupName:
|
159
|
+
- :string
|
160
|
+
- :required
|
161
|
+
ScalingProcesses:
|
162
|
+
- :membered_list:
|
163
|
+
- :string
|
164
|
+
:output: []
|
165
|
+
ResumeProcesses:
|
166
|
+
:input:
|
167
|
+
AutoScalingGroupName:
|
168
|
+
- :string
|
169
|
+
- :required
|
170
|
+
ScalingProcesses:
|
171
|
+
- :membered_list:
|
172
|
+
- :string
|
173
|
+
:output: []
|
174
|
+
SetDesiredCapacity:
|
175
|
+
:input:
|
176
|
+
AutoScalingGroupName:
|
177
|
+
- :string
|
178
|
+
- :required
|
179
|
+
DesiredCapacity:
|
180
|
+
- :integer
|
181
|
+
- :required
|
182
|
+
HonorCooldown:
|
183
|
+
- :boolean
|
184
|
+
:output: []
|
185
|
+
SetInstanceHealth:
|
186
|
+
:input:
|
187
|
+
InstanceId:
|
188
|
+
- :string
|
189
|
+
- :required
|
190
|
+
HealthStatus:
|
191
|
+
- :string
|
192
|
+
- :required
|
193
|
+
ShouldRespectGracePeriod:
|
194
|
+
- :boolean
|
195
|
+
:output: []
|
196
|
+
PutScheduledUpdateGroupAction:
|
197
|
+
:input:
|
198
|
+
AutoScalingGroupName:
|
199
|
+
- :string
|
200
|
+
- :required
|
201
|
+
ScheduledActionName:
|
202
|
+
- :string
|
203
|
+
- :required
|
204
|
+
Time:
|
205
|
+
- :timestamp
|
206
|
+
StartTime:
|
207
|
+
- :timestamp
|
208
|
+
EndTime:
|
209
|
+
- :timestamp
|
210
|
+
Recurrence:
|
211
|
+
- :string
|
212
|
+
MinSize:
|
213
|
+
- :integer
|
214
|
+
MaxSize:
|
215
|
+
- :integer
|
216
|
+
DesiredCapacity:
|
217
|
+
- :integer
|
218
|
+
:output: []
|
219
|
+
DescribeScheduledActions:
|
220
|
+
:input:
|
221
|
+
AutoScalingGroupName:
|
222
|
+
- :string
|
223
|
+
ScheduledActionNames:
|
224
|
+
- :membered_list:
|
225
|
+
- :string
|
226
|
+
StartTime:
|
227
|
+
- :timestamp
|
228
|
+
EndTime:
|
229
|
+
- :timestamp
|
230
|
+
NextToken:
|
231
|
+
- :string
|
232
|
+
MaxRecords:
|
233
|
+
- :integer
|
234
|
+
:output:
|
235
|
+
- ScheduledUpdateGroupActions:
|
236
|
+
- :list: member
|
237
|
+
- member:
|
238
|
+
- Time:
|
239
|
+
- :timestamp
|
240
|
+
- StartTime:
|
241
|
+
- :timestamp
|
242
|
+
- EndTime:
|
243
|
+
- :timestamp
|
244
|
+
- MinSize:
|
245
|
+
- :integer
|
246
|
+
- MaxSize:
|
247
|
+
- :integer
|
248
|
+
- DesiredCapacity:
|
249
|
+
- :integer
|
250
|
+
DeleteScheduledAction:
|
251
|
+
:input:
|
252
|
+
AutoScalingGroupName:
|
253
|
+
- :string
|
254
|
+
ScheduledActionName:
|
255
|
+
- :string
|
256
|
+
- :required
|
257
|
+
:output: []
|
258
|
+
DescribeAdjustmentTypes:
|
259
|
+
:input: {}
|
260
|
+
:output:
|
261
|
+
- AdjustmentTypes:
|
262
|
+
- :list: member
|
263
|
+
PutScalingPolicy:
|
264
|
+
:input:
|
265
|
+
AutoScalingGroupName:
|
266
|
+
- :string
|
267
|
+
- :required
|
268
|
+
PolicyName:
|
269
|
+
- :string
|
270
|
+
- :required
|
271
|
+
ScalingAdjustment:
|
272
|
+
- :integer
|
273
|
+
- :required
|
274
|
+
AdjustmentType:
|
275
|
+
- :string
|
276
|
+
- :required
|
277
|
+
Cooldown:
|
278
|
+
- :integer
|
279
|
+
MinAdjustmentMagnitude:
|
280
|
+
- :integer
|
281
|
+
:output: []
|
282
|
+
DescribePolicies:
|
283
|
+
:input:
|
284
|
+
AutoScalingGroupName:
|
285
|
+
- :string
|
286
|
+
PolicyNames:
|
287
|
+
- :membered_list:
|
288
|
+
- :string
|
289
|
+
NextToken:
|
290
|
+
- :string
|
291
|
+
MaxRecords:
|
292
|
+
- :integer
|
293
|
+
:output:
|
294
|
+
- ScalingPolicies:
|
295
|
+
- :list: member
|
296
|
+
- member:
|
297
|
+
- ScalingAdjustment:
|
298
|
+
- :integer
|
299
|
+
- Cooldown:
|
300
|
+
- :integer
|
301
|
+
- Alarms:
|
302
|
+
- :list: member
|
303
|
+
- MinAdjustmentMagnitude:
|
304
|
+
- :integer
|
305
|
+
DeletePolicy:
|
306
|
+
:input:
|
307
|
+
AutoScalingGroupName:
|
308
|
+
- :string
|
309
|
+
PolicyName:
|
310
|
+
- :string
|
311
|
+
- :required
|
312
|
+
:output: []
|
313
|
+
ExecutePolicy:
|
314
|
+
:input:
|
315
|
+
AutoScalingGroupName:
|
316
|
+
- :string
|
317
|
+
PolicyName:
|
318
|
+
- :string
|
319
|
+
- :required
|
320
|
+
HonorCooldown:
|
321
|
+
- :boolean
|
322
|
+
:output: []
|
323
|
+
DescribeMetricCollectionTypes:
|
324
|
+
:input: {}
|
325
|
+
:output:
|
326
|
+
- Metrics:
|
327
|
+
- :list: member
|
328
|
+
- Granularities:
|
329
|
+
- :list: member
|
330
|
+
EnableMetricsCollection:
|
331
|
+
:input:
|
332
|
+
AutoScalingGroupName:
|
333
|
+
- :string
|
334
|
+
- :required
|
335
|
+
Metrics:
|
336
|
+
- :membered_list:
|
337
|
+
- :string
|
338
|
+
Granularity:
|
339
|
+
- :string
|
340
|
+
- :required
|
341
|
+
:output: []
|
342
|
+
DisableMetricsCollection:
|
343
|
+
:input:
|
344
|
+
AutoScalingGroupName:
|
345
|
+
- :string
|
346
|
+
- :required
|
347
|
+
Metrics:
|
348
|
+
- :membered_list:
|
349
|
+
- :string
|
350
|
+
:output: []
|
351
|
+
CreateLaunchConfiguration:
|
352
|
+
:input:
|
353
|
+
LaunchConfigurationName:
|
354
|
+
- :string
|
355
|
+
- :required
|
356
|
+
ImageId:
|
357
|
+
- :string
|
358
|
+
- :required
|
359
|
+
KeyName:
|
360
|
+
- :string
|
361
|
+
SecurityGroups:
|
362
|
+
- :membered_list:
|
363
|
+
- :string
|
364
|
+
UserData:
|
365
|
+
- :string
|
366
|
+
InstanceType:
|
367
|
+
- :string
|
368
|
+
- :required
|
369
|
+
KernelId:
|
370
|
+
- :string
|
371
|
+
RamdiskId:
|
372
|
+
- :string
|
373
|
+
BlockDeviceMappings:
|
374
|
+
- :membered_list:
|
375
|
+
- :structure:
|
376
|
+
VirtualName:
|
377
|
+
- :string
|
378
|
+
DeviceName:
|
379
|
+
- :string
|
380
|
+
- :required
|
381
|
+
Ebs:
|
382
|
+
- :structure:
|
383
|
+
SnapshotId:
|
384
|
+
- :string
|
385
|
+
VolumeSize:
|
386
|
+
- :integer
|
387
|
+
InstanceMonitoring:
|
388
|
+
- :structure:
|
389
|
+
Enabled:
|
390
|
+
- :boolean
|
391
|
+
:output: []
|
392
|
+
DescribeLaunchConfigurations:
|
393
|
+
:input:
|
394
|
+
LaunchConfigurationNames:
|
395
|
+
- :membered_list:
|
396
|
+
- :string
|
397
|
+
NextToken:
|
398
|
+
- :string
|
399
|
+
MaxRecords:
|
400
|
+
- :integer
|
401
|
+
:output:
|
402
|
+
- LaunchConfigurations:
|
403
|
+
- :list: member
|
404
|
+
- member:
|
405
|
+
- SecurityGroups:
|
406
|
+
- :list: member
|
407
|
+
- BlockDeviceMappings:
|
408
|
+
- :list: member
|
409
|
+
- member:
|
410
|
+
- Ebs:
|
411
|
+
- VolumeSize:
|
412
|
+
- :integer
|
413
|
+
- InstanceMonitoring:
|
414
|
+
- Enabled:
|
415
|
+
- :boolean
|
416
|
+
- CreatedTime:
|
417
|
+
- :timestamp
|
418
|
+
DeleteLaunchConfiguration:
|
419
|
+
:input:
|
420
|
+
LaunchConfigurationName:
|
421
|
+
- :string
|
422
|
+
- :required
|
423
|
+
:output: []
|
424
|
+
DescribeScalingActivities:
|
425
|
+
:input:
|
426
|
+
ActivityIds:
|
427
|
+
- :membered_list:
|
428
|
+
- :string
|
429
|
+
AutoScalingGroupName:
|
430
|
+
- :string
|
431
|
+
MaxRecords:
|
432
|
+
- :integer
|
433
|
+
NextToken:
|
434
|
+
- :string
|
435
|
+
:output:
|
436
|
+
- Activities:
|
437
|
+
- :list: member
|
438
|
+
- member:
|
439
|
+
- StartTime:
|
440
|
+
- :timestamp
|
441
|
+
- EndTime:
|
442
|
+
- :timestamp
|
443
|
+
- Progress:
|
444
|
+
- :integer
|
445
|
+
TerminateInstanceInAutoScalingGroup:
|
446
|
+
:input:
|
447
|
+
InstanceId:
|
448
|
+
- :string
|
449
|
+
- :required
|
450
|
+
ShouldDecrementDesiredCapacity:
|
451
|
+
- :boolean
|
452
|
+
- :required
|
453
|
+
:output:
|
454
|
+
- Activity:
|
455
|
+
- StartTime:
|
456
|
+
- :timestamp
|
457
|
+
- EndTime:
|
458
|
+
- :timestamp
|
459
|
+
- Progress:
|
460
|
+
- :integer
|
461
|
+
PutNotificationConfiguration:
|
462
|
+
:input:
|
463
|
+
AutoScalingGroupName:
|
464
|
+
- :string
|
465
|
+
- :required
|
466
|
+
TopicARN:
|
467
|
+
- :string
|
468
|
+
- :required
|
469
|
+
NotificationTypes:
|
470
|
+
- :membered_list:
|
471
|
+
- :string
|
472
|
+
- :required
|
473
|
+
:output: []
|
474
|
+
DeleteNotificationConfiguration:
|
475
|
+
:input:
|
476
|
+
AutoScalingGroupName:
|
477
|
+
- :string
|
478
|
+
- :required
|
479
|
+
TopicARN:
|
480
|
+
- :string
|
481
|
+
- :required
|
482
|
+
:output: []
|
483
|
+
DescribeNotificationConfigurations:
|
484
|
+
:input:
|
485
|
+
AutoScalingGroupNames:
|
486
|
+
- :membered_list:
|
487
|
+
- :string
|
488
|
+
NextToken:
|
489
|
+
- :string
|
490
|
+
MaxRecords:
|
491
|
+
- :integer
|
492
|
+
:output:
|
493
|
+
- NotificationConfigurations:
|
494
|
+
- :list: member
|
495
|
+
DescribeAutoScalingNotificationTypes:
|
496
|
+
:input: {}
|
497
|
+
:output:
|
498
|
+
- AutoScalingNotificationTypes:
|
499
|
+
- :list: member
|
500
|
+
CreateOrUpdateTags:
|
501
|
+
:input:
|
502
|
+
Tags:
|
503
|
+
- :membered_list:
|
504
|
+
- :structure:
|
505
|
+
ResourceId:
|
506
|
+
- :string
|
507
|
+
ResourceType:
|
508
|
+
- :string
|
509
|
+
Key:
|
510
|
+
- :string
|
511
|
+
- :required
|
512
|
+
Value:
|
513
|
+
- :string
|
514
|
+
PropagateAtLaunch:
|
515
|
+
- :boolean
|
516
|
+
- :required
|
517
|
+
:output: []
|
518
|
+
DeleteTags:
|
519
|
+
:input:
|
520
|
+
Tags:
|
521
|
+
- :membered_list:
|
522
|
+
- :structure:
|
523
|
+
ResourceId:
|
524
|
+
- :string
|
525
|
+
ResourceType:
|
526
|
+
- :string
|
527
|
+
Key:
|
528
|
+
- :string
|
529
|
+
- :required
|
530
|
+
Value:
|
531
|
+
- :string
|
532
|
+
PropagateAtLaunch:
|
533
|
+
- :boolean
|
534
|
+
- :required
|
535
|
+
:output: []
|
536
|
+
DescribeTags:
|
537
|
+
:input:
|
538
|
+
Filters:
|
539
|
+
- :membered_list:
|
540
|
+
- :structure:
|
541
|
+
Name:
|
542
|
+
- :string
|
543
|
+
Values:
|
544
|
+
- :membered_list:
|
545
|
+
- :string
|
546
|
+
NextToken:
|
547
|
+
- :string
|
548
|
+
MaxRecords:
|
549
|
+
- :integer
|
550
|
+
:output:
|
551
|
+
- Tags:
|
552
|
+
- :list: member
|
553
|
+
- member:
|
554
|
+
- PropagateAtLaunch:
|
555
|
+
- :boolean
|
556
|
+
:client_errors:
|
557
|
+
ScalingActivityInProgress: []
|
558
|
+
ResourceInUse: []
|
559
|
+
AlreadyExists: []
|
560
|
+
LimitExceeded: []
|
561
|
+
InvalidNextToken: []
|
562
|
+
InvalidActivityStep: []
|
563
|
+
:server_errors: {}
|