aws-sdk 1.5.6 → 1.5.7
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/CloudWatch-2010-08-01.yml +424 -0
- data/lib/aws/api_config/STS-2011-06-15.yml +4 -0
- data/lib/aws/auto_scaling/activity.rb +2 -2
- data/lib/aws/auto_scaling/activity_collection.rb +1 -1
- data/lib/aws/auto_scaling/group_collection.rb +1 -1
- data/lib/aws/auto_scaling/instance_collection.rb +1 -1
- data/lib/aws/auto_scaling/launch_configuration_collection.rb +1 -1
- data/lib/aws/auto_scaling/notification_configuration_collection.rb +1 -1
- data/lib/aws/auto_scaling/scaling_policy_collection.rb +1 -1
- data/lib/aws/auto_scaling/scheduled_action_collection.rb +1 -1
- data/lib/aws/auto_scaling/tag_collection.rb +1 -1
- data/lib/aws/cloud_watch.rb +75 -0
- data/lib/aws/cloud_watch/alarm.rb +272 -0
- data/lib/aws/cloud_watch/alarm_collection.rb +153 -0
- data/lib/aws/cloud_watch/alarm_history_item.rb +50 -0
- data/lib/aws/cloud_watch/alarm_history_item_collection.rb +84 -0
- data/lib/aws/cloud_watch/client.rb +333 -0
- data/lib/aws/cloud_watch/config.rb +18 -0
- data/lib/aws/cloud_watch/errors.rb +22 -0
- data/lib/aws/cloud_watch/metric.rb +135 -0
- data/lib/aws/cloud_watch/metric_alarm_collection.rb +160 -0
- data/lib/aws/cloud_watch/metric_collection.rb +131 -0
- data/lib/aws/cloud_watch/metric_statistics.rb +69 -0
- data/lib/aws/cloud_watch/request.rb +23 -0
- data/lib/aws/core.rb +1 -1
- data/lib/aws/core/client.rb +2 -2
- data/lib/aws/core/client/query_json.rb +2 -0
- data/lib/aws/core/collection.rb +58 -25
- data/lib/aws/core/collection/simple.rb +18 -26
- data/lib/aws/core/collection/with_limit_and_next_token.rb +71 -0
- data/lib/aws/core/collection/with_next_token.rb +97 -0
- data/lib/aws/core/credential_providers.rb +36 -0
- data/lib/aws/core/option_grammar.rb +19 -0
- data/lib/aws/core/page_result.rb +5 -3
- data/lib/aws/dynamo_db/client.rb +0 -16
- data/lib/aws/dynamo_db/item_collection.rb +1 -1
- data/lib/aws/dynamo_db/request.rb +5 -1
- data/lib/aws/dynamo_db/table_collection.rb +1 -1
- data/lib/aws/iam/collection.rb +1 -1
- data/lib/aws/s3/client.rb +1 -1
- data/lib/aws/s3/paginated_collection.rb +1 -1
- data/lib/aws/simple_db/domain_collection.rb +14 -41
- data/lib/aws/simple_db/item_collection.rb +2 -2
- data/lib/aws/simple_email_service/identity_collection.rb +1 -1
- data/lib/aws/simple_workflow/domain_collection.rb +1 -1
- data/lib/aws/simple_workflow/history_event_collection.rb +1 -1
- data/lib/aws/simple_workflow/type_collection.rb +1 -1
- data/lib/aws/simple_workflow/workflow_execution_collection.rb +1 -1
- data/lib/aws/sns/topic.rb +1 -1
- data/lib/aws/sts.rb +9 -1
- data/lib/aws/sts/client.rb +31 -14
- data/lib/net/http/connection_pool.rb +11 -5
- metadata +19 -4
- data/lib/aws/core/collection/limitable.rb +0 -99
data/lib/aws.rb
CHANGED
@@ -15,6 +15,7 @@ require 'aws/core'
|
|
15
15
|
|
16
16
|
require 'aws/auto_scaling/config'
|
17
17
|
require 'aws/cloud_formation/config'
|
18
|
+
require 'aws/cloud_watch/config'
|
18
19
|
require 'aws/dynamo_db/config'
|
19
20
|
require 'aws/ec2/config'
|
20
21
|
require 'aws/elb/config'
|
@@ -31,6 +32,7 @@ module AWS
|
|
31
32
|
register_autoloads(self) do
|
32
33
|
autoload :AutoScaling, 'auto_scaling'
|
33
34
|
autoload :CloudFormation, 'cloud_formation'
|
35
|
+
autoload :CloudWatch, 'cloud_watch'
|
34
36
|
autoload :DynamoDB, 'dynamo_db'
|
35
37
|
autoload :EC2, 'ec2'
|
36
38
|
autoload :ELB, 'elb'
|
@@ -0,0 +1,424 @@
|
|
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
|
+
- :name: DeleteAlarms
|
17
|
+
:method: :delete_alarms
|
18
|
+
:inputs:
|
19
|
+
AlarmNames:
|
20
|
+
- :membered_list:
|
21
|
+
- :string
|
22
|
+
- :required
|
23
|
+
:outputs:
|
24
|
+
:children:
|
25
|
+
DeleteAlarmsResult:
|
26
|
+
:ignore: true
|
27
|
+
- :name: DescribeAlarmHistory
|
28
|
+
:method: :describe_alarm_history
|
29
|
+
:inputs:
|
30
|
+
AlarmName:
|
31
|
+
- :string
|
32
|
+
HistoryItemType:
|
33
|
+
- :string
|
34
|
+
StartDate:
|
35
|
+
- :timestamp
|
36
|
+
EndDate:
|
37
|
+
- :timestamp
|
38
|
+
MaxRecords:
|
39
|
+
- :integer
|
40
|
+
NextToken:
|
41
|
+
- :string
|
42
|
+
:outputs:
|
43
|
+
:children:
|
44
|
+
DescribeAlarmHistoryResult:
|
45
|
+
:ignore: true
|
46
|
+
:children:
|
47
|
+
AlarmHistoryItems:
|
48
|
+
:ignore: true
|
49
|
+
:children:
|
50
|
+
member:
|
51
|
+
:rename: :alarm_history_items
|
52
|
+
:list: true
|
53
|
+
:children:
|
54
|
+
Timestamp:
|
55
|
+
:type: :time
|
56
|
+
- :name: DescribeAlarms
|
57
|
+
:method: :describe_alarms
|
58
|
+
:inputs:
|
59
|
+
AlarmNames:
|
60
|
+
- :membered_list:
|
61
|
+
- :string
|
62
|
+
AlarmNamePrefix:
|
63
|
+
- :string
|
64
|
+
StateValue:
|
65
|
+
- :string
|
66
|
+
ActionPrefix:
|
67
|
+
- :string
|
68
|
+
MaxRecords:
|
69
|
+
- :integer
|
70
|
+
NextToken:
|
71
|
+
- :string
|
72
|
+
:outputs:
|
73
|
+
:children:
|
74
|
+
DescribeAlarmsResult:
|
75
|
+
:ignore: true
|
76
|
+
:children:
|
77
|
+
MetricAlarms:
|
78
|
+
:ignore: true
|
79
|
+
:children:
|
80
|
+
member:
|
81
|
+
:rename: :metric_alarms
|
82
|
+
:list: true
|
83
|
+
:children:
|
84
|
+
AlarmConfigurationUpdatedTimestamp:
|
85
|
+
:type: :time
|
86
|
+
ActionsEnabled:
|
87
|
+
:type: :boolean
|
88
|
+
OKActions:
|
89
|
+
:ignore: true
|
90
|
+
:children:
|
91
|
+
member:
|
92
|
+
:rename: :ok_actions
|
93
|
+
:list: true
|
94
|
+
AlarmActions:
|
95
|
+
:ignore: true
|
96
|
+
:children:
|
97
|
+
member:
|
98
|
+
:rename: :alarm_actions
|
99
|
+
:list: true
|
100
|
+
InsufficientDataActions:
|
101
|
+
:ignore: true
|
102
|
+
:children:
|
103
|
+
member:
|
104
|
+
:rename: :insufficient_data_actions
|
105
|
+
:list: true
|
106
|
+
StateUpdatedTimestamp:
|
107
|
+
:type: :time
|
108
|
+
Dimensions:
|
109
|
+
:ignore: true
|
110
|
+
:children:
|
111
|
+
member:
|
112
|
+
:rename: :dimensions
|
113
|
+
:list: true
|
114
|
+
Period:
|
115
|
+
:type: :integer
|
116
|
+
EvaluationPeriods:
|
117
|
+
:type: :integer
|
118
|
+
Threshold:
|
119
|
+
:type: :float
|
120
|
+
- :name: DescribeAlarmsForMetric
|
121
|
+
:method: :describe_alarms_for_metric
|
122
|
+
:inputs:
|
123
|
+
MetricName:
|
124
|
+
- :string
|
125
|
+
- :required
|
126
|
+
Namespace:
|
127
|
+
- :string
|
128
|
+
- :required
|
129
|
+
Statistic:
|
130
|
+
- :string
|
131
|
+
Dimensions:
|
132
|
+
- :membered_list:
|
133
|
+
- :structure:
|
134
|
+
Name:
|
135
|
+
- :string
|
136
|
+
- :required
|
137
|
+
Value:
|
138
|
+
- :string
|
139
|
+
- :required
|
140
|
+
Period:
|
141
|
+
- :integer
|
142
|
+
Unit:
|
143
|
+
- :string
|
144
|
+
:outputs:
|
145
|
+
:children:
|
146
|
+
DescribeAlarmsForMetricResult:
|
147
|
+
:ignore: true
|
148
|
+
:children:
|
149
|
+
MetricAlarms:
|
150
|
+
:ignore: true
|
151
|
+
:children:
|
152
|
+
member:
|
153
|
+
:rename: :metric_alarms
|
154
|
+
:list: true
|
155
|
+
:children:
|
156
|
+
AlarmConfigurationUpdatedTimestamp:
|
157
|
+
:type: :time
|
158
|
+
ActionsEnabled:
|
159
|
+
:type: :boolean
|
160
|
+
OKActions:
|
161
|
+
:ignore: true
|
162
|
+
:children:
|
163
|
+
member:
|
164
|
+
:rename: :ok_actions
|
165
|
+
:list: true
|
166
|
+
AlarmActions:
|
167
|
+
:ignore: true
|
168
|
+
:children:
|
169
|
+
member:
|
170
|
+
:rename: :alarm_actions
|
171
|
+
:list: true
|
172
|
+
InsufficientDataActions:
|
173
|
+
:ignore: true
|
174
|
+
:children:
|
175
|
+
member:
|
176
|
+
:rename: :insufficient_data_actions
|
177
|
+
:list: true
|
178
|
+
StateUpdatedTimestamp:
|
179
|
+
:type: :time
|
180
|
+
Dimensions:
|
181
|
+
:ignore: true
|
182
|
+
:children:
|
183
|
+
member:
|
184
|
+
:rename: :dimensions
|
185
|
+
:list: true
|
186
|
+
Period:
|
187
|
+
:type: :integer
|
188
|
+
EvaluationPeriods:
|
189
|
+
:type: :integer
|
190
|
+
Threshold:
|
191
|
+
:type: :float
|
192
|
+
- :name: DisableAlarmActions
|
193
|
+
:method: :disable_alarm_actions
|
194
|
+
:inputs:
|
195
|
+
AlarmNames:
|
196
|
+
- :membered_list:
|
197
|
+
- :string
|
198
|
+
- :required
|
199
|
+
:outputs:
|
200
|
+
:children:
|
201
|
+
DisableAlarmActionsResult:
|
202
|
+
:ignore: true
|
203
|
+
- :name: EnableAlarmActions
|
204
|
+
:method: :enable_alarm_actions
|
205
|
+
:inputs:
|
206
|
+
AlarmNames:
|
207
|
+
- :membered_list:
|
208
|
+
- :string
|
209
|
+
- :required
|
210
|
+
:outputs:
|
211
|
+
:children:
|
212
|
+
EnableAlarmActionsResult:
|
213
|
+
:ignore: true
|
214
|
+
- :name: GetMetricStatistics
|
215
|
+
:method: :get_metric_statistics
|
216
|
+
:inputs:
|
217
|
+
Namespace:
|
218
|
+
- :string
|
219
|
+
- :required
|
220
|
+
MetricName:
|
221
|
+
- :string
|
222
|
+
- :required
|
223
|
+
Dimensions:
|
224
|
+
- :membered_list:
|
225
|
+
- :structure:
|
226
|
+
Name:
|
227
|
+
- :string
|
228
|
+
- :required
|
229
|
+
Value:
|
230
|
+
- :string
|
231
|
+
- :required
|
232
|
+
StartTime:
|
233
|
+
- :timestamp
|
234
|
+
- :required
|
235
|
+
EndTime:
|
236
|
+
- :timestamp
|
237
|
+
- :required
|
238
|
+
Period:
|
239
|
+
- :integer
|
240
|
+
- :required
|
241
|
+
Statistics:
|
242
|
+
- :membered_list:
|
243
|
+
- :string
|
244
|
+
- :required
|
245
|
+
Unit:
|
246
|
+
- :string
|
247
|
+
:outputs:
|
248
|
+
:children:
|
249
|
+
GetMetricStatisticsResult:
|
250
|
+
:ignore: true
|
251
|
+
:children:
|
252
|
+
Datapoints:
|
253
|
+
:ignore: true
|
254
|
+
:children:
|
255
|
+
member:
|
256
|
+
:rename: :datapoints
|
257
|
+
:list: true
|
258
|
+
:children:
|
259
|
+
Timestamp:
|
260
|
+
:type: :time
|
261
|
+
SampleCount:
|
262
|
+
:type: :float
|
263
|
+
Average:
|
264
|
+
:type: :float
|
265
|
+
Sum:
|
266
|
+
:type: :float
|
267
|
+
Minimum:
|
268
|
+
:type: :float
|
269
|
+
Maximum:
|
270
|
+
:type: :float
|
271
|
+
- :name: ListMetrics
|
272
|
+
:method: :list_metrics
|
273
|
+
:inputs:
|
274
|
+
Namespace:
|
275
|
+
- :string
|
276
|
+
MetricName:
|
277
|
+
- :string
|
278
|
+
Dimensions:
|
279
|
+
- :membered_list:
|
280
|
+
- :structure:
|
281
|
+
Name:
|
282
|
+
- :string
|
283
|
+
- :required
|
284
|
+
Value:
|
285
|
+
- :string
|
286
|
+
NextToken:
|
287
|
+
- :string
|
288
|
+
:outputs:
|
289
|
+
:children:
|
290
|
+
ListMetricsResult:
|
291
|
+
:ignore: true
|
292
|
+
:children:
|
293
|
+
Metrics:
|
294
|
+
:ignore: true
|
295
|
+
:children:
|
296
|
+
member:
|
297
|
+
:rename: :metrics
|
298
|
+
:list: true
|
299
|
+
:children:
|
300
|
+
Dimensions:
|
301
|
+
:ignore: true
|
302
|
+
:children:
|
303
|
+
member:
|
304
|
+
:rename: :dimensions
|
305
|
+
:list: true
|
306
|
+
- :name: PutMetricAlarm
|
307
|
+
:method: :put_metric_alarm
|
308
|
+
:inputs:
|
309
|
+
AlarmName:
|
310
|
+
- :string
|
311
|
+
- :required
|
312
|
+
AlarmDescription:
|
313
|
+
- :string
|
314
|
+
ActionsEnabled:
|
315
|
+
- :boolean
|
316
|
+
OKActions:
|
317
|
+
- :membered_list:
|
318
|
+
- :string
|
319
|
+
AlarmActions:
|
320
|
+
- :membered_list:
|
321
|
+
- :string
|
322
|
+
InsufficientDataActions:
|
323
|
+
- :membered_list:
|
324
|
+
- :string
|
325
|
+
MetricName:
|
326
|
+
- :string
|
327
|
+
- :required
|
328
|
+
Namespace:
|
329
|
+
- :string
|
330
|
+
- :required
|
331
|
+
Statistic:
|
332
|
+
- :string
|
333
|
+
- :required
|
334
|
+
Dimensions:
|
335
|
+
- :membered_list:
|
336
|
+
- :structure:
|
337
|
+
Name:
|
338
|
+
- :string
|
339
|
+
- :required
|
340
|
+
Value:
|
341
|
+
- :string
|
342
|
+
- :required
|
343
|
+
Period:
|
344
|
+
- :integer
|
345
|
+
- :required
|
346
|
+
Unit:
|
347
|
+
- :string
|
348
|
+
EvaluationPeriods:
|
349
|
+
- :integer
|
350
|
+
- :required
|
351
|
+
Threshold:
|
352
|
+
- :double
|
353
|
+
- :required
|
354
|
+
ComparisonOperator:
|
355
|
+
- :string
|
356
|
+
- :required
|
357
|
+
:outputs:
|
358
|
+
:children:
|
359
|
+
PutMetricAlarmResult:
|
360
|
+
:ignore: true
|
361
|
+
- :name: PutMetricData
|
362
|
+
:method: :put_metric_data
|
363
|
+
:inputs:
|
364
|
+
Namespace:
|
365
|
+
- :string
|
366
|
+
- :required
|
367
|
+
MetricData:
|
368
|
+
- :membered_list:
|
369
|
+
- :structure:
|
370
|
+
MetricName:
|
371
|
+
- :string
|
372
|
+
- :required
|
373
|
+
Dimensions:
|
374
|
+
- :membered_list:
|
375
|
+
- :structure:
|
376
|
+
Name:
|
377
|
+
- :string
|
378
|
+
- :required
|
379
|
+
Value:
|
380
|
+
- :string
|
381
|
+
- :required
|
382
|
+
Timestamp:
|
383
|
+
- :timestamp
|
384
|
+
Value:
|
385
|
+
- :double
|
386
|
+
StatisticValues:
|
387
|
+
- :structure:
|
388
|
+
SampleCount:
|
389
|
+
- :double
|
390
|
+
- :required
|
391
|
+
Sum:
|
392
|
+
- :double
|
393
|
+
- :required
|
394
|
+
Minimum:
|
395
|
+
- :double
|
396
|
+
- :required
|
397
|
+
Maximum:
|
398
|
+
- :double
|
399
|
+
- :required
|
400
|
+
Unit:
|
401
|
+
- :string
|
402
|
+
- :required
|
403
|
+
:outputs:
|
404
|
+
:children:
|
405
|
+
PutMetricDataResult:
|
406
|
+
:ignore: true
|
407
|
+
- :name: SetAlarmState
|
408
|
+
:method: :set_alarm_state
|
409
|
+
:inputs:
|
410
|
+
AlarmName:
|
411
|
+
- :string
|
412
|
+
- :required
|
413
|
+
StateValue:
|
414
|
+
- :string
|
415
|
+
- :required
|
416
|
+
StateReason:
|
417
|
+
- :string
|
418
|
+
- :required
|
419
|
+
StateReasonData:
|
420
|
+
- :string
|
421
|
+
:outputs:
|
422
|
+
:children:
|
423
|
+
SetAlarmStateResult:
|
424
|
+
:ignore: true
|