aws-sdk 1.5.8 → 1.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. data/lib/aws.rb +2 -0
  2. data/lib/aws/api_config/Route53-2012-02-29.yml +348 -0
  3. data/lib/aws/auto_scaling/client.rb +362 -588
  4. data/lib/aws/cloud_formation/client.rb +155 -224
  5. data/lib/aws/cloud_watch/client.rb +156 -229
  6. data/lib/aws/core.rb +67 -52
  7. data/lib/aws/core/client.rb +81 -82
  8. data/lib/aws/core/collection/with_limit_and_next_token.rb +2 -2
  9. data/lib/aws/core/configuration.rb +75 -72
  10. data/lib/aws/core/http/net_http_handler.rb +3 -3
  11. data/lib/aws/core/http/request.rb +107 -138
  12. data/lib/aws/core/inflection.rb +3 -3
  13. data/lib/aws/core/json_client.rb +106 -0
  14. data/lib/aws/core/option_grammar.rb +10 -1
  15. data/lib/aws/core/options/validator.rb +140 -0
  16. data/lib/aws/core/options/xml_serializer.rb +98 -0
  17. data/lib/aws/core/query_client.rb +131 -0
  18. data/lib/aws/core/rest_client.rb +90 -0
  19. data/lib/aws/core/rest_client/input_handler.rb +145 -0
  20. data/lib/aws/core/rest_client/output_handler.rb +43 -0
  21. data/lib/aws/core/signature/version_2.rb +7 -7
  22. data/lib/aws/core/signature/version_3.rb +5 -1
  23. data/lib/aws/core/signature/version_3_https.rb +51 -0
  24. data/lib/aws/core/signature/version_4.rb +5 -22
  25. data/lib/aws/core/signer.rb +1 -1
  26. data/lib/aws/core/uri_escape.rb +2 -0
  27. data/lib/aws/core/xml/frame.rb +8 -8
  28. data/lib/aws/core/xml/grammar.rb +8 -3
  29. data/lib/aws/dynamo_db/client.rb +600 -662
  30. data/lib/aws/ec2/client.rb +2688 -3492
  31. data/lib/aws/ec2/request.rb +0 -1
  32. data/lib/aws/elb/client.rb +280 -407
  33. data/lib/aws/emr/client.rb +7 -7
  34. data/lib/aws/iam/client.rb +822 -1268
  35. data/lib/aws/route_53.rb +71 -0
  36. data/lib/aws/route_53/client.rb +272 -0
  37. data/lib/aws/route_53/config.rb +18 -0
  38. data/lib/aws/route_53/errors.rb +22 -0
  39. data/lib/aws/route_53/request.rb +23 -0
  40. data/lib/aws/s3/object_version_collection.rb +6 -6
  41. data/lib/aws/s3/paginated_collection.rb +1 -1
  42. data/lib/aws/s3/request.rb +10 -5
  43. data/lib/aws/simple_db/client.rb +184 -234
  44. data/lib/aws/simple_email_service/client.rb +147 -238
  45. data/lib/aws/simple_workflow/client.rb +997 -1191
  46. data/lib/aws/sns/client.rb +176 -264
  47. data/lib/aws/sqs/client.rb +162 -253
  48. data/lib/aws/sqs/queue.rb +1 -1
  49. data/lib/aws/sqs/request.rb +4 -0
  50. data/lib/aws/sts/client.rb +57 -66
  51. metadata +95 -71
  52. data/lib/aws/core/client/query_json.rb +0 -112
  53. data/lib/aws/core/client/query_xml.rb +0 -122
@@ -19,7 +19,7 @@ module AWS
19
19
 
20
20
  API_VERSION = '2010-05-15'
21
21
 
22
- extend Core::Client::QueryXML
22
+ extend Core::QueryClient
23
23
 
24
24
  # @private
25
25
  CACHEABLE_REQUESTS = Set[
@@ -41,295 +41,226 @@ module AWS
41
41
 
42
42
  # Calls the CreateStack API operation.
43
43
  # @method create_stack(options = {})
44
- #
45
- # === Options:
46
- #
47
- # * +:stack_name+ - *required* - (String)
48
- # * +:template_body+ - (String)
49
- # * +:template_url+ - (String)
50
- # * +:parameters+ - (Array<Hash>)
51
- # * +:parameter_key+ - (String)
52
- # * +:parameter_value+ - (String)
53
- # * +:disable_rollback+ - (Boolean)
54
- # * +:timeout_in_minutes+ - (Integer)
55
- # * +:notification_ar_ns+ - (Array<String>)
56
- # * +:capabilities+ - (Array<String>)
57
- # * +:on_failure+ - (String)
58
- #
59
- # === Response Structure:
60
- #
61
- # * +:stack_id+ - (String)
62
- #
44
+ # @param [Hash] options
45
+ # * +:stack_name+ - *required* - (String)
46
+ # * +:template_body+ - (String)
47
+ # * +:template_url+ - (String)
48
+ # * +:parameters+ - (Array<Hash>)
49
+ # * +:parameter_key+ - (String)
50
+ # * +:parameter_value+ - (String)
51
+ # * +:disable_rollback+ - (Boolean)
52
+ # * +:timeout_in_minutes+ - (Integer)
53
+ # * +:notification_ar_ns+ - (Array<String>)
54
+ # * +:capabilities+ - (Array<String>)
55
+ # * +:on_failure+ - (String)
63
56
  # @return [Core::Response]
64
- #
57
+ # The #data method of the response object returns
58
+ # a hash with the following structure:
59
+ # * +:stack_id+ - (String)
65
60
  define_client_method :create_stack, 'CreateStack'
66
61
 
67
62
  # Calls the CreateUploadBucket API operation.
68
63
  # @method create_upload_bucket(options = {})
69
- #
70
- # === Options:
71
- #
72
- # This method accepts no options.
73
- #
74
- # === Response Structure:
75
- #
76
- # * +:bucket_name+ - (String)
77
- #
64
+ # @param [Hash] options
78
65
  # @return [Core::Response]
79
- #
66
+ # The #data method of the response object returns
67
+ # a hash with the following structure:
68
+ # * +:bucket_name+ - (String)
80
69
  define_client_method :create_upload_bucket, 'CreateUploadBucket'
81
70
 
82
71
  # Calls the DeleteStack API operation.
83
72
  # @method delete_stack(options = {})
84
- #
85
- # === Options:
86
- #
87
- # * +:stack_name+ - *required* - (String)
88
- #
89
- # === Response Structure:
90
- #
91
- # This method returns no response data.
92
- #
73
+ # @param [Hash] options
74
+ # * +:stack_name+ - *required* - (String)
93
75
  # @return [Core::Response]
94
- #
95
76
  define_client_method :delete_stack, 'DeleteStack'
96
77
 
97
78
  # Calls the DescribeStackEvents API operation.
98
79
  # @method describe_stack_events(options = {})
99
- #
100
- # === Options:
101
- #
102
- # * +:stack_name+ - (String)
103
- # * +:next_token+ - (String)
104
- #
105
- # === Response Structure:
106
- #
107
- # * +:stack_events+ - (Array<Hash>)
108
- # * +:stack_id+ - (String)
109
- # * +:event_id+ - (String)
80
+ # @param [Hash] options
110
81
  # * +:stack_name+ - (String)
111
- # * +:logical_resource_id+ - (String)
112
- # * +:physical_resource_id+ - (String)
113
- # * +:resource_type+ - (String)
114
- # * +:timestamp+ - (Time)
115
- # * +:resource_status+ - (String)
116
- # * +:resource_status_reason+ - (String)
117
- # * +:resource_properties+ - (String)
118
- # * +:next_token+ - (String)
119
- #
82
+ # * +:next_token+ - (String)
120
83
  # @return [Core::Response]
121
- #
84
+ # The #data method of the response object returns
85
+ # a hash with the following structure:
86
+ # * +:stack_events+ - (Array<Hash>)
87
+ # * +:stack_id+ - (String)
88
+ # * +:event_id+ - (String)
89
+ # * +:stack_name+ - (String)
90
+ # * +:logical_resource_id+ - (String)
91
+ # * +:physical_resource_id+ - (String)
92
+ # * +:resource_type+ - (String)
93
+ # * +:timestamp+ - (Time)
94
+ # * +:resource_status+ - (String)
95
+ # * +:resource_status_reason+ - (String)
96
+ # * +:resource_properties+ - (String)
97
+ # * +:next_token+ - (String)
122
98
  define_client_method :describe_stack_events, 'DescribeStackEvents'
123
99
 
124
100
  # Calls the DescribeStackResource API operation.
125
101
  # @method describe_stack_resource(options = {})
126
- #
127
- # === Options:
128
- #
129
- # * +:stack_name+ - *required* - (String)
130
- # * +:logical_resource_id+ - *required* - (String)
131
- #
132
- # === Response Structure:
133
- #
134
- # * +:stack_resource_detail+ - (Hash)
135
- # * +:stack_name+ - (String)
136
- # * +:stack_id+ - (String)
137
- # * +:logical_resource_id+ - (String)
138
- # * +:physical_resource_id+ - (String)
139
- # * +:resource_type+ - (String)
140
- # * +:last_updated_timestamp+ - (Time)
141
- # * +:resource_status+ - (String)
142
- # * +:resource_status_reason+ - (String)
143
- # * +:description+ - (String)
144
- # * +:metadata+ - (String)
145
- #
102
+ # @param [Hash] options
103
+ # * +:stack_name+ - *required* - (String)
104
+ # * +:logical_resource_id+ - *required* - (String)
146
105
  # @return [Core::Response]
147
- #
106
+ # The #data method of the response object returns
107
+ # a hash with the following structure:
108
+ # * +:stack_resource_detail+ - (Hash)
109
+ # * +:stack_name+ - (String)
110
+ # * +:stack_id+ - (String)
111
+ # * +:logical_resource_id+ - (String)
112
+ # * +:physical_resource_id+ - (String)
113
+ # * +:resource_type+ - (String)
114
+ # * +:last_updated_timestamp+ - (Time)
115
+ # * +:resource_status+ - (String)
116
+ # * +:resource_status_reason+ - (String)
117
+ # * +:description+ - (String)
118
+ # * +:metadata+ - (String)
148
119
  define_client_method :describe_stack_resource, 'DescribeStackResource'
149
120
 
150
121
  # Calls the DescribeStackResources API operation.
151
122
  # @method describe_stack_resources(options = {})
152
- #
153
- # === Options:
154
- #
155
- # * +:stack_name+ - (String)
156
- # * +:logical_resource_id+ - (String)
157
- # * +:physical_resource_id+ - (String)
158
- #
159
- # === Response Structure:
160
- #
161
- # * +:stack_resources+ - (Array<Hash>)
123
+ # @param [Hash] options
162
124
  # * +:stack_name+ - (String)
163
- # * +:stack_id+ - (String)
164
125
  # * +:logical_resource_id+ - (String)
165
126
  # * +:physical_resource_id+ - (String)
166
- # * +:resource_type+ - (String)
167
- # * +:timestamp+ - (Time)
168
- # * +:resource_status+ - (String)
169
- # * +:resource_status_reason+ - (String)
170
- # * +:description+ - (String)
171
- #
172
127
  # @return [Core::Response]
173
- #
128
+ # The #data method of the response object returns
129
+ # a hash with the following structure:
130
+ # * +:stack_resources+ - (Array<Hash>)
131
+ # * +:stack_name+ - (String)
132
+ # * +:stack_id+ - (String)
133
+ # * +:logical_resource_id+ - (String)
134
+ # * +:physical_resource_id+ - (String)
135
+ # * +:resource_type+ - (String)
136
+ # * +:timestamp+ - (Time)
137
+ # * +:resource_status+ - (String)
138
+ # * +:resource_status_reason+ - (String)
139
+ # * +:description+ - (String)
174
140
  define_client_method :describe_stack_resources, 'DescribeStackResources'
175
141
 
176
142
  # Calls the DescribeStacks API operation.
177
143
  # @method describe_stacks(options = {})
178
- #
179
- # === Options:
180
- #
181
- # * +:stack_name+ - (String)
182
- #
183
- # === Response Structure:
184
- #
185
- # * +:stacks+ - (Array<Hash>)
186
- # * +:stack_id+ - (String)
144
+ # @param [Hash] options
187
145
  # * +:stack_name+ - (String)
188
- # * +:description+ - (String)
189
- # * +:parameters+ - (Array<Hash>)
190
- # * +:parameter_key+ - (String)
191
- # * +:parameter_value+ - (String)
192
- # * +:creation_time+ - (Time)
193
- # * +:last_updated_time+ - (Time)
194
- # * +:stack_status+ - (String)
195
- # * +:stack_status_reason+ - (String)
196
- # * +:disable_rollback+ - (Boolean)
197
- # * +:notification_ar_ns+ - (Array<String>)
198
- # * +:timeout_in_minutes+ - (Integer)
199
- # * +:capabilities+ - (Array<String>)
200
- # * +:outputs+ - (Array<Hash>)
201
- # * +:output_key+ - (String)
202
- # * +:output_value+ - (String)
203
- # * +:description+ - (String)
204
- #
205
146
  # @return [Core::Response]
206
- #
147
+ # The #data method of the response object returns
148
+ # a hash with the following structure:
149
+ # * +:stacks+ - (Array<Hash>)
150
+ # * +:stack_id+ - (String)
151
+ # * +:stack_name+ - (String)
152
+ # * +:description+ - (String)
153
+ # * +:parameters+ - (Array<Hash>)
154
+ # * +:parameter_key+ - (String)
155
+ # * +:parameter_value+ - (String)
156
+ # * +:creation_time+ - (Time)
157
+ # * +:last_updated_time+ - (Time)
158
+ # * +:stack_status+ - (String)
159
+ # * +:stack_status_reason+ - (String)
160
+ # * +:disable_rollback+ - (Boolean)
161
+ # * +:notification_ar_ns+ - (Array<String>)
162
+ # * +:timeout_in_minutes+ - (Integer)
163
+ # * +:capabilities+ - (Array<String>)
164
+ # * +:outputs+ - (Array<Hash>)
165
+ # * +:output_key+ - (String)
166
+ # * +:output_value+ - (String)
167
+ # * +:description+ - (String)
207
168
  define_client_method :describe_stacks, 'DescribeStacks'
208
169
 
209
170
  # Calls the EstimateTemplateCost API operation.
210
171
  # @method estimate_template_cost(options = {})
211
- #
212
- # === Options:
213
- #
214
- # * +:template_body+ - (String)
215
- # * +:template_url+ - (String)
216
- # * +:parameters+ - (Array<Hash>)
217
- # * +:parameter_key+ - (String)
218
- # * +:parameter_value+ - (String)
219
- #
220
- # === Response Structure:
221
- #
222
- # * +:url+ - (String)
223
- #
172
+ # @param [Hash] options
173
+ # * +:template_body+ - (String)
174
+ # * +:template_url+ - (String)
175
+ # * +:parameters+ - (Array<Hash>)
176
+ # * +:parameter_key+ - (String)
177
+ # * +:parameter_value+ - (String)
224
178
  # @return [Core::Response]
225
- #
179
+ # The #data method of the response object returns
180
+ # a hash with the following structure:
181
+ # * +:url+ - (String)
226
182
  define_client_method :estimate_template_cost, 'EstimateTemplateCost'
227
183
 
228
184
  # Calls the GetTemplate API operation.
229
185
  # @method get_template(options = {})
230
- #
231
- # === Options:
232
- #
233
- # * +:stack_name+ - *required* - (String)
234
- #
235
- # === Response Structure:
236
- #
237
- # * +:template_body+ - (String)
238
- #
186
+ # @param [Hash] options
187
+ # * +:stack_name+ - *required* - (String)
239
188
  # @return [Core::Response]
240
- #
189
+ # The #data method of the response object returns
190
+ # a hash with the following structure:
191
+ # * +:template_body+ - (String)
241
192
  define_client_method :get_template, 'GetTemplate'
242
193
 
243
194
  # Calls the ListStackResources API operation.
244
195
  # @method list_stack_resources(options = {})
245
- #
246
- # === Options:
247
- #
248
- # * +:stack_name+ - *required* - (String)
249
- # * +:next_token+ - (String)
250
- #
251
- # === Response Structure:
252
- #
253
- # * +:stack_resource_summaries+ - (Array<Hash>)
254
- # * +:logical_resource_id+ - (String)
255
- # * +:physical_resource_id+ - (String)
256
- # * +:resource_type+ - (String)
257
- # * +:last_updated_timestamp+ - (Time)
258
- # * +:resource_status+ - (String)
259
- # * +:resource_status_reason+ - (String)
260
- # * +:next_token+ - (String)
261
- #
196
+ # @param [Hash] options
197
+ # * +:stack_name+ - *required* - (String)
198
+ # * +:next_token+ - (String)
262
199
  # @return [Core::Response]
263
- #
200
+ # The #data method of the response object returns
201
+ # a hash with the following structure:
202
+ # * +:stack_resource_summaries+ - (Array<Hash>)
203
+ # * +:logical_resource_id+ - (String)
204
+ # * +:physical_resource_id+ - (String)
205
+ # * +:resource_type+ - (String)
206
+ # * +:last_updated_timestamp+ - (Time)
207
+ # * +:resource_status+ - (String)
208
+ # * +:resource_status_reason+ - (String)
209
+ # * +:next_token+ - (String)
264
210
  define_client_method :list_stack_resources, 'ListStackResources'
265
211
 
266
212
  # Calls the ListStacks API operation.
267
213
  # @method list_stacks(options = {})
268
- #
269
- # === Options:
270
- #
271
- # * +:next_token+ - (String)
272
- # * +:stack_status_filter+ - (Array<String>)
273
- #
274
- # === Response Structure:
275
- #
276
- # * +:stack_summaries+ - (Array<Hash>)
277
- # * +:stack_id+ - (String)
278
- # * +:stack_name+ - (String)
279
- # * +:template_description+ - (String)
280
- # * +:creation_time+ - (Time)
281
- # * +:last_updated_time+ - (Time)
282
- # * +:deletion_time+ - (Time)
283
- # * +:stack_status+ - (String)
284
- # * +:stack_status_reason+ - (String)
285
- # * +:next_token+ - (String)
286
- #
214
+ # @param [Hash] options
215
+ # * +:next_token+ - (String)
216
+ # * +:stack_status_filter+ - (Array<String>)
287
217
  # @return [Core::Response]
288
- #
218
+ # The #data method of the response object returns
219
+ # a hash with the following structure:
220
+ # * +:stack_summaries+ - (Array<Hash>)
221
+ # * +:stack_id+ - (String)
222
+ # * +:stack_name+ - (String)
223
+ # * +:template_description+ - (String)
224
+ # * +:creation_time+ - (Time)
225
+ # * +:last_updated_time+ - (Time)
226
+ # * +:deletion_time+ - (Time)
227
+ # * +:stack_status+ - (String)
228
+ # * +:stack_status_reason+ - (String)
229
+ # * +:next_token+ - (String)
289
230
  define_client_method :list_stacks, 'ListStacks'
290
231
 
291
232
  # Calls the UpdateStack API operation.
292
233
  # @method update_stack(options = {})
293
- #
294
- # === Options:
295
- #
296
- # * +:stack_name+ - *required* - (String)
297
- # * +:template_body+ - (String)
298
- # * +:template_url+ - (String)
299
- # * +:parameters+ - (Array<Hash>)
300
- # * +:parameter_key+ - (String)
301
- # * +:parameter_value+ - (String)
302
- # * +:capabilities+ - (Array<String>)
303
- #
304
- # === Response Structure:
305
- #
306
- # * +:stack_id+ - (String)
307
- #
234
+ # @param [Hash] options
235
+ # * +:stack_name+ - *required* - (String)
236
+ # * +:template_body+ - (String)
237
+ # * +:template_url+ - (String)
238
+ # * +:parameters+ - (Array<Hash>)
239
+ # * +:parameter_key+ - (String)
240
+ # * +:parameter_value+ - (String)
241
+ # * +:capabilities+ - (Array<String>)
308
242
  # @return [Core::Response]
309
- #
243
+ # The #data method of the response object returns
244
+ # a hash with the following structure:
245
+ # * +:stack_id+ - (String)
310
246
  define_client_method :update_stack, 'UpdateStack'
311
247
 
312
248
  # Calls the ValidateTemplate API operation.
313
249
  # @method validate_template(options = {})
314
- #
315
- # === Options:
316
- #
317
- # * +:template_body+ - (String)
318
- # * +:template_url+ - (String)
319
- #
320
- # === Response Structure:
321
- #
322
- # * +:parameters+ - (Array<Hash>)
323
- # * +:parameter_key+ - (String)
324
- # * +:default_value+ - (String)
325
- # * +:no_echo+ - (Boolean)
326
- # * +:description+ - (String)
327
- # * +:description+ - (String)
328
- # * +:capabilities+ - (Array<String>)
329
- # * +:capabilities_reason+ - (String)
330
- #
250
+ # @param [Hash] options
251
+ # * +:template_body+ - (String)
252
+ # * +:template_url+ - (String)
331
253
  # @return [Core::Response]
332
- #
254
+ # The #data method of the response object returns
255
+ # a hash with the following structure:
256
+ # * +:parameters+ - (Array<Hash>)
257
+ # * +:parameter_key+ - (String)
258
+ # * +:default_value+ - (String)
259
+ # * +:no_echo+ - (Boolean)
260
+ # * +:description+ - (String)
261
+ # * +:description+ - (String)
262
+ # * +:capabilities+ - (Array<String>)
263
+ # * +:capabilities_reason+ - (String)
333
264
  define_client_method :validate_template, 'ValidateTemplate'
334
265
 
335
266
  ## end client methods ##