aws-sdk 1.14.1 → 1.15.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1f25f18c59d2ec1fa00b1612e45f6ec84f889287
4
- data.tar.gz: 7d13e27fa052cbd5e64141a3c2e0cadd81e68662
3
+ metadata.gz: 4b5dff6af20b99bd01b7cff22864c3af66e4f45b
4
+ data.tar.gz: 5ccc0b7ca3c360a2716568370ad40c2b02f373c8
5
5
  SHA512:
6
- metadata.gz: 47747ecf468d7a3c47bdf06158281d7f007b2cee6433f85928547bab4bc46665b512bc33ada381937da921e84aa1f6fb3277a5db1768f5f8935299c82341ddb9
7
- data.tar.gz: 7bdb9115815453427145509f815f7a60ee73dc22260fd60c8380e62bf285cc58a96ae6cfc18e45ac6c96a14e5b173f6e17f74d73d439bee40766161998ae4e43
6
+ metadata.gz: 8901145b241d2bce89ef46c06666845b0aff5a4a9fe29c45e7b0f609b50166a456747ec6565370a56c09d3b6736bf8a0143bde6de485bff6c19ce29dfccf890a
7
+ data.tar.gz: 74af513f447d12cc00258a5c81c3cf09f22350a38d87e3b200d67bb4d3be82a4ac7856922b56120dc4a5078e1803f3e87d44b29c4c48cb14cb2131abe5a4e012
data/.yardopts CHANGED
@@ -2,5 +2,5 @@
2
2
  --template-path doc-src/templates
3
3
  --markup markdown
4
4
  --markup-provider rdiscount
5
- --no-api
5
+ --hide-api private
6
6
  -e doc-src/api_docs_plugin.rb
@@ -12,13 +12,15 @@
12
12
  # language governing permissions and limitations under the License.
13
13
 
14
14
  ---
15
+ :json_version: '1.1'
16
+ :target_prefix: ElasticMapReduce.
15
17
  :api_version: '2009-03-31'
16
18
  :operations:
17
19
  - :name: AddInstanceGroups
18
20
  :method: :add_instance_groups
19
21
  :inputs:
20
22
  InstanceGroups:
21
- - :membered_list:
23
+ - :list:
22
24
  - :structure:
23
25
  Name:
24
26
  - :string
@@ -40,16 +42,12 @@
40
42
  - :string
41
43
  - :required
42
44
  :outputs:
43
- :children:
44
- AddInstanceGroupsResult:
45
- :ignore: true
46
- :children:
47
- InstanceGroupIds:
48
- :ignore: true
49
- :children:
50
- member:
51
- :rename: :instance_group_ids
52
- :list: true
45
+ JobFlowId:
46
+ :sym: :job_flow_id
47
+ :type: :string
48
+ InstanceGroupIds:
49
+ :sym: :instance_group_ids
50
+ :type: :string
53
51
  - :name: AddJobFlowSteps
54
52
  :method: :add_job_flow_steps
55
53
  :inputs:
@@ -57,7 +55,7 @@
57
55
  - :string
58
56
  - :required
59
57
  Steps:
60
- - :membered_list:
58
+ - :list:
61
59
  - :structure:
62
60
  Name:
63
61
  - :string
@@ -67,7 +65,7 @@
67
65
  HadoopJarStep:
68
66
  - :structure:
69
67
  Properties:
70
- - :membered_list:
68
+ - :list:
71
69
  - :structure:
72
70
  Key:
73
71
  - :string
@@ -79,14 +77,11 @@
79
77
  MainClass:
80
78
  - :string
81
79
  Args:
82
- - :membered_list:
80
+ - :list:
83
81
  - :string
84
82
  - :required
85
83
  - :required
86
- :outputs:
87
- :children:
88
- AddJobFlowStepsResult:
89
- :ignore: true
84
+ :outputs: {}
90
85
  - :name: DescribeJobFlows
91
86
  :method: :describe_job_flows
92
87
  :inputs:
@@ -95,123 +90,231 @@
95
90
  CreatedBefore:
96
91
  - :timestamp
97
92
  JobFlowIds:
98
- - :membered_list:
93
+ - :list:
99
94
  - :string
100
95
  JobFlowStates:
101
- - :membered_list:
96
+ - :list:
102
97
  - :string
103
98
  :outputs:
104
- :children:
105
- DescribeJobFlowsResult:
106
- :ignore: true
107
- :children:
108
- JobFlows:
109
- :ignore: true
110
- :children:
111
- member:
112
- :rename: :job_flows
113
- :list: true
114
- :children:
115
- ExecutionStatusDetail:
116
- :children:
117
- CreationDateTime:
118
- :type: :time
119
- StartDateTime:
120
- :type: :time
121
- ReadyDateTime:
122
- :type: :time
123
- EndDateTime:
124
- :type: :time
125
- Instances:
126
- :children:
127
- InstanceCount:
128
- :type: :integer
129
- InstanceGroups:
130
- :ignore: true
131
- :children:
132
- member:
133
- :rename: :instance_groups
134
- :list: true
135
- :children:
136
- InstanceRequestCount:
137
- :type: :integer
138
- InstanceRunningCount:
139
- :type: :integer
140
- CreationDateTime:
141
- :type: :time
142
- StartDateTime:
143
- :type: :time
144
- ReadyDateTime:
145
- :type: :time
146
- EndDateTime:
147
- :type: :time
148
- NormalizedInstanceHours:
149
- :type: :integer
150
- KeepJobFlowAliveWhenNoSteps:
151
- :type: :boolean
152
- TerminationProtected:
153
- :type: :boolean
154
- Steps:
155
- :ignore: true
156
- :children:
157
- member:
158
- :rename: :steps
159
- :list: true
160
- :children:
161
- StepConfig:
162
- :children:
163
- HadoopJarStep:
164
- :children:
165
- Properties:
166
- :ignore: true
167
- :children:
168
- member:
169
- :rename: :properties
170
- :list: true
171
- Args:
172
- :ignore: true
173
- :children:
174
- member:
175
- :rename: :args
176
- :list: true
177
- ExecutionStatusDetail:
178
- :children:
179
- CreationDateTime:
180
- :type: :time
181
- StartDateTime:
182
- :type: :time
183
- EndDateTime:
184
- :type: :time
185
- BootstrapActions:
186
- :ignore: true
187
- :children:
188
- member:
189
- :rename: :bootstrap_actions
190
- :list: true
191
- :children:
192
- BootstrapActionConfig:
193
- :children:
194
- ScriptBootstrapAction:
195
- :children:
196
- Args:
197
- :ignore: true
198
- :children:
199
- member:
200
- :rename: :args
201
- :list: true
202
- SupportedProducts:
203
- :ignore: true
204
- :children:
205
- member:
206
- :rename: :supported_products
207
- :list: true
208
- VisibleToAllUsers:
209
- :type: :boolean
99
+ JobFlows:
100
+ :sym: :job_flows
101
+ :type: :hash
102
+ :members:
103
+ JobFlowId:
104
+ :sym: :job_flow_id
105
+ :type: :string
106
+ Name:
107
+ :sym: :name
108
+ :type: :string
109
+ LogUri:
110
+ :sym: :log_uri
111
+ :type: :string
112
+ AmiVersion:
113
+ :sym: :ami_version
114
+ :type: :string
115
+ ExecutionStatusDetail:
116
+ :sym: :execution_status_detail
117
+ :type: :hash
118
+ :members:
119
+ State:
120
+ :sym: :state
121
+ :type: :string
122
+ CreationDateTime:
123
+ :sym: :creation_date_time
124
+ :type: :time
125
+ StartDateTime:
126
+ :sym: :start_date_time
127
+ :type: :time
128
+ ReadyDateTime:
129
+ :sym: :ready_date_time
130
+ :type: :time
131
+ EndDateTime:
132
+ :sym: :end_date_time
133
+ :type: :time
134
+ LastStateChangeReason:
135
+ :sym: :last_state_change_reason
136
+ :type: :string
137
+ Instances:
138
+ :sym: :instances
139
+ :type: :hash
140
+ :members:
141
+ MasterInstanceType:
142
+ :sym: :master_instance_type
143
+ :type: :string
144
+ MasterPublicDnsName:
145
+ :sym: :master_public_dns_name
146
+ :type: :string
147
+ MasterInstanceId:
148
+ :sym: :master_instance_id
149
+ :type: :string
150
+ SlaveInstanceType:
151
+ :sym: :slave_instance_type
152
+ :type: :string
153
+ InstanceCount:
154
+ :sym: :instance_count
155
+ :type: :integer
156
+ InstanceGroups:
157
+ :sym: :instance_groups
158
+ :type: :hash
159
+ :members:
160
+ InstanceGroupId:
161
+ :sym: :instance_group_id
162
+ :type: :string
163
+ Name:
164
+ :sym: :name
165
+ :type: :string
166
+ Market:
167
+ :sym: :market
168
+ :type: :string
169
+ InstanceRole:
170
+ :sym: :instance_role
171
+ :type: :string
172
+ BidPrice:
173
+ :sym: :bid_price
174
+ :type: :string
175
+ InstanceType:
176
+ :sym: :instance_type
177
+ :type: :string
178
+ InstanceRequestCount:
179
+ :sym: :instance_request_count
180
+ :type: :integer
181
+ InstanceRunningCount:
182
+ :sym: :instance_running_count
183
+ :type: :integer
184
+ State:
185
+ :sym: :state
186
+ :type: :string
187
+ LastStateChangeReason:
188
+ :sym: :last_state_change_reason
189
+ :type: :string
190
+ CreationDateTime:
191
+ :sym: :creation_date_time
192
+ :type: :time
193
+ StartDateTime:
194
+ :sym: :start_date_time
195
+ :type: :time
196
+ ReadyDateTime:
197
+ :sym: :ready_date_time
198
+ :type: :time
199
+ EndDateTime:
200
+ :sym: :end_date_time
201
+ :type: :time
202
+ NormalizedInstanceHours:
203
+ :sym: :normalized_instance_hours
204
+ :type: :integer
205
+ Ec2KeyName:
206
+ :sym: :ec2_key_name
207
+ :type: :string
208
+ Ec2SubnetId:
209
+ :sym: :ec2_subnet_id
210
+ :type: :string
211
+ Placement:
212
+ :sym: :placement
213
+ :type: :hash
214
+ :members:
215
+ AvailabilityZone:
216
+ :sym: :availability_zone
217
+ :type: :string
218
+ KeepJobFlowAliveWhenNoSteps:
219
+ :sym: :keep_job_flow_alive_when_no_steps
220
+ :type: :boolean
221
+ TerminationProtected:
222
+ :sym: :termination_protected
223
+ :type: :boolean
224
+ HadoopVersion:
225
+ :sym: :hadoop_version
226
+ :type: :string
227
+ Steps:
228
+ :sym: :steps
229
+ :type: :hash
230
+ :members:
231
+ StepConfig:
232
+ :sym: :step_config
233
+ :type: :hash
234
+ :members:
235
+ Name:
236
+ :sym: :name
237
+ :type: :string
238
+ ActionOnFailure:
239
+ :sym: :action_on_failure
240
+ :type: :string
241
+ HadoopJarStep:
242
+ :sym: :hadoop_jar_step
243
+ :type: :hash
244
+ :members:
245
+ Properties:
246
+ :sym: :properties
247
+ :type: :hash
248
+ :members:
249
+ Key:
250
+ :sym: :key
251
+ :type: :string
252
+ Value:
253
+ :sym: :value
254
+ :type: :string
255
+ Jar:
256
+ :sym: :jar
257
+ :type: :string
258
+ MainClass:
259
+ :sym: :main_class
260
+ :type: :string
261
+ Args:
262
+ :sym: :args
263
+ :type: :string
264
+ ExecutionStatusDetail:
265
+ :sym: :execution_status_detail
266
+ :type: :hash
267
+ :members:
268
+ State:
269
+ :sym: :state
270
+ :type: :string
271
+ CreationDateTime:
272
+ :sym: :creation_date_time
273
+ :type: :time
274
+ StartDateTime:
275
+ :sym: :start_date_time
276
+ :type: :time
277
+ EndDateTime:
278
+ :sym: :end_date_time
279
+ :type: :time
280
+ LastStateChangeReason:
281
+ :sym: :last_state_change_reason
282
+ :type: :string
283
+ BootstrapActions:
284
+ :sym: :bootstrap_actions
285
+ :type: :hash
286
+ :members:
287
+ BootstrapActionConfig:
288
+ :sym: :bootstrap_action_config
289
+ :type: :hash
290
+ :members:
291
+ Name:
292
+ :sym: :name
293
+ :type: :string
294
+ ScriptBootstrapAction:
295
+ :sym: :script_bootstrap_action
296
+ :type: :hash
297
+ :members:
298
+ Path:
299
+ :sym: :path
300
+ :type: :string
301
+ Args:
302
+ :sym: :args
303
+ :type: :string
304
+ SupportedProducts:
305
+ :sym: :supported_products
306
+ :type: :string
307
+ VisibleToAllUsers:
308
+ :sym: :visible_to_all_users
309
+ :type: :boolean
310
+ JobFlowRole:
311
+ :sym: :job_flow_role
312
+ :type: :string
210
313
  - :name: ModifyInstanceGroups
211
314
  :method: :modify_instance_groups
212
315
  :inputs:
213
316
  InstanceGroups:
214
- - :membered_list:
317
+ - :list:
215
318
  - :structure:
216
319
  InstanceGroupId:
217
320
  - :string
@@ -219,10 +322,7 @@
219
322
  InstanceCount:
220
323
  - :integer
221
324
  - :required
222
- :outputs:
223
- :children:
224
- ModifyInstanceGroupsResult:
225
- :ignore: true
325
+ :outputs: {}
226
326
  - :name: RunJobFlow
227
327
  :method: :run_job_flow
228
328
  :inputs:
@@ -244,7 +344,7 @@
244
344
  InstanceCount:
245
345
  - :integer
246
346
  InstanceGroups:
247
- - :membered_list:
347
+ - :list:
248
348
  - :structure:
249
349
  Name:
250
350
  - :string
@@ -278,7 +378,7 @@
278
378
  - :string
279
379
  - :required
280
380
  Steps:
281
- - :membered_list:
381
+ - :list:
282
382
  - :structure:
283
383
  Name:
284
384
  - :string
@@ -288,7 +388,7 @@
288
388
  HadoopJarStep:
289
389
  - :structure:
290
390
  Properties:
291
- - :membered_list:
391
+ - :list:
292
392
  - :structure:
293
393
  Key:
294
394
  - :string
@@ -300,11 +400,11 @@
300
400
  MainClass:
301
401
  - :string
302
402
  Args:
303
- - :membered_list:
403
+ - :list:
304
404
  - :string
305
405
  - :required
306
406
  BootstrapActions:
307
- - :membered_list:
407
+ - :list:
308
408
  - :structure:
309
409
  Name:
310
410
  - :string
@@ -315,56 +415,47 @@
315
415
  - :string
316
416
  - :required
317
417
  Args:
318
- - :membered_list:
418
+ - :list:
319
419
  - :string
320
420
  - :required
321
421
  SupportedProducts:
322
- - :membered_list:
422
+ - :list:
323
423
  - :string
324
424
  VisibleToAllUsers:
325
425
  - :boolean
326
426
  JobFlowRole:
327
427
  - :string
328
428
  :outputs:
329
- :children:
330
- RunJobFlowResult:
331
- :ignore: true
429
+ JobFlowId:
430
+ :sym: :job_flow_id
431
+ :type: :string
332
432
  - :name: SetTerminationProtection
333
433
  :method: :set_termination_protection
334
434
  :inputs:
335
435
  JobFlowIds:
336
- - :membered_list:
436
+ - :list:
337
437
  - :string
338
438
  - :required
339
439
  TerminationProtected:
340
440
  - :boolean
341
441
  - :required
342
- :outputs:
343
- :children:
344
- SetTerminationProtectionResult:
345
- :ignore: true
442
+ :outputs: {}
346
443
  - :name: SetVisibleToAllUsers
347
444
  :method: :set_visible_to_all_users
348
445
  :inputs:
349
446
  JobFlowIds:
350
- - :membered_list:
447
+ - :list:
351
448
  - :string
352
449
  - :required
353
450
  VisibleToAllUsers:
354
451
  - :boolean
355
452
  - :required
356
- :outputs:
357
- :children:
358
- SetVisibleToAllUsersResult:
359
- :ignore: true
453
+ :outputs: {}
360
454
  - :name: TerminateJobFlows
361
455
  :method: :terminate_job_flows
362
456
  :inputs:
363
457
  JobFlowIds:
364
- - :membered_list:
458
+ - :list:
365
459
  - :string
366
460
  - :required
367
- :outputs:
368
- :children:
369
- TerminateJobFlowsResult:
370
- :ignore: true
461
+ :outputs: {}
@@ -52,6 +52,8 @@
52
52
  SnapshotIdentifier:
53
53
  - :string
54
54
  - :required
55
+ SnapshotClusterIdentifier:
56
+ - :string
55
57
  AccountWithRestoreAccess:
56
58
  - :string
57
59
  - :required
@@ -97,6 +99,8 @@
97
99
  SourceSnapshotIdentifier:
98
100
  - :string
99
101
  - :required
102
+ SourceSnapshotClusterIdentifier:
103
+ - :string
100
104
  TargetSnapshotIdentifier:
101
105
  - :string
102
106
  - :required
@@ -230,6 +234,18 @@
230
234
  :type: :boolean
231
235
  Encrypted:
232
236
  :type: :boolean
237
+ RestoreStatus:
238
+ :children:
239
+ CurrentRestoreRateInMegaBytesPerSecond:
240
+ :type: :float
241
+ SnapshotSizeInMegaBytes:
242
+ :type: :integer
243
+ ProgressInMegaBytes:
244
+ :type: :integer
245
+ ElapsedTimeInSeconds:
246
+ :type: :integer
247
+ EstimatedTimeToCompletionInSeconds:
248
+ :type: :integer
233
249
  :ignore: true
234
250
  - :name: CreateClusterParameterGroup
235
251
  :method: :create_cluster_parameter_group
@@ -408,6 +424,18 @@
408
424
  :type: :boolean
409
425
  Encrypted:
410
426
  :type: :boolean
427
+ RestoreStatus:
428
+ :children:
429
+ CurrentRestoreRateInMegaBytesPerSecond:
430
+ :type: :float
431
+ SnapshotSizeInMegaBytes:
432
+ :type: :integer
433
+ ProgressInMegaBytes:
434
+ :type: :integer
435
+ ElapsedTimeInSeconds:
436
+ :type: :integer
437
+ EstimatedTimeToCompletionInSeconds:
438
+ :type: :integer
411
439
  :ignore: true
412
440
  - :name: DeleteClusterParameterGroup
413
441
  :method: :delete_cluster_parameter_group
@@ -435,6 +463,8 @@
435
463
  SnapshotIdentifier:
436
464
  - :string
437
465
  - :required
466
+ SnapshotClusterIdentifier:
467
+ - :string
438
468
  :outputs:
439
469
  :children:
440
470
  DeleteClusterSnapshotResult:
@@ -729,6 +759,18 @@
729
759
  :type: :boolean
730
760
  Encrypted:
731
761
  :type: :boolean
762
+ RestoreStatus:
763
+ :children:
764
+ CurrentRestoreRateInMegaBytesPerSecond:
765
+ :type: :float
766
+ SnapshotSizeInMegaBytes:
767
+ :type: :integer
768
+ ProgressInMegaBytes:
769
+ :type: :integer
770
+ ElapsedTimeInSeconds:
771
+ :type: :integer
772
+ EstimatedTimeToCompletionInSeconds:
773
+ :type: :integer
732
774
  - :name: DescribeDefaultClusterParameters
733
775
  :method: :describe_default_cluster_parameters
734
776
  :inputs:
@@ -1000,6 +1042,18 @@
1000
1042
  :type: :boolean
1001
1043
  Encrypted:
1002
1044
  :type: :boolean
1045
+ RestoreStatus:
1046
+ :children:
1047
+ CurrentRestoreRateInMegaBytesPerSecond:
1048
+ :type: :float
1049
+ SnapshotSizeInMegaBytes:
1050
+ :type: :integer
1051
+ ProgressInMegaBytes:
1052
+ :type: :integer
1053
+ ElapsedTimeInSeconds:
1054
+ :type: :integer
1055
+ EstimatedTimeToCompletionInSeconds:
1056
+ :type: :integer
1003
1057
  :ignore: true
1004
1058
  - :name: ModifyClusterParameterGroup
1005
1059
  :method: :modify_cluster_parameter_group
@@ -1145,6 +1199,18 @@
1145
1199
  :type: :boolean
1146
1200
  Encrypted:
1147
1201
  :type: :boolean
1202
+ RestoreStatus:
1203
+ :children:
1204
+ CurrentRestoreRateInMegaBytesPerSecond:
1205
+ :type: :float
1206
+ SnapshotSizeInMegaBytes:
1207
+ :type: :integer
1208
+ ProgressInMegaBytes:
1209
+ :type: :integer
1210
+ ElapsedTimeInSeconds:
1211
+ :type: :integer
1212
+ EstimatedTimeToCompletionInSeconds:
1213
+ :type: :integer
1148
1214
  :ignore: true
1149
1215
  - :name: ResetClusterParameterGroup
1150
1216
  :method: :reset_cluster_parameter_group
@@ -1186,6 +1252,8 @@
1186
1252
  SnapshotIdentifier:
1187
1253
  - :string
1188
1254
  - :required
1255
+ SnapshotClusterIdentifier:
1256
+ - :string
1189
1257
  Port:
1190
1258
  - :integer
1191
1259
  AvailabilityZone:
@@ -1245,6 +1313,18 @@
1245
1313
  :type: :boolean
1246
1314
  Encrypted:
1247
1315
  :type: :boolean
1316
+ RestoreStatus:
1317
+ :children:
1318
+ CurrentRestoreRateInMegaBytesPerSecond:
1319
+ :type: :float
1320
+ SnapshotSizeInMegaBytes:
1321
+ :type: :integer
1322
+ ProgressInMegaBytes:
1323
+ :type: :integer
1324
+ ElapsedTimeInSeconds:
1325
+ :type: :integer
1326
+ EstimatedTimeToCompletionInSeconds:
1327
+ :type: :integer
1248
1328
  :ignore: true
1249
1329
  - :name: RevokeClusterSecurityGroupIngress
1250
1330
  :method: :revoke_cluster_security_group_ingress
@@ -1284,6 +1364,8 @@
1284
1364
  SnapshotIdentifier:
1285
1365
  - :string
1286
1366
  - :required
1367
+ SnapshotClusterIdentifier:
1368
+ - :string
1287
1369
  AccountWithRestoreAccess:
1288
1370
  - :string
1289
1371
  - :required
@@ -50,6 +50,47 @@
50
50
  :children:
51
51
  ConfirmSubscriptionResult:
52
52
  :ignore: true
53
+ - :name: CreatePlatformApplication
54
+ :method: :create_platform_application
55
+ :inputs:
56
+ Name:
57
+ - :string
58
+ - :required
59
+ Platform:
60
+ - :string
61
+ - :required
62
+ Attributes:
63
+ - :map:
64
+ :key:
65
+ - :string
66
+ :value:
67
+ - :string
68
+ - :required
69
+ :outputs:
70
+ :children:
71
+ CreatePlatformApplicationResult:
72
+ :ignore: true
73
+ - :name: CreatePlatformEndpoint
74
+ :method: :create_platform_endpoint
75
+ :inputs:
76
+ PlatformApplicationArn:
77
+ - :string
78
+ - :required
79
+ Token:
80
+ - :string
81
+ - :required
82
+ CustomUserData:
83
+ - :string
84
+ Attributes:
85
+ - :map:
86
+ :key:
87
+ - :string
88
+ :value:
89
+ - :string
90
+ :outputs:
91
+ :children:
92
+ CreatePlatformEndpointResult:
93
+ :ignore: true
53
94
  - :name: CreateTopic
54
95
  :method: :create_topic
55
96
  :inputs:
@@ -60,6 +101,26 @@
60
101
  :children:
61
102
  CreateTopicResult:
62
103
  :ignore: true
104
+ - :name: DeleteEndpoint
105
+ :method: :delete_endpoint
106
+ :inputs:
107
+ EndpointArn:
108
+ - :string
109
+ - :required
110
+ :outputs:
111
+ :children:
112
+ DeleteEndpointResult:
113
+ :ignore: true
114
+ - :name: DeletePlatformApplication
115
+ :method: :delete_platform_application
116
+ :inputs:
117
+ PlatformApplicationArn:
118
+ - :string
119
+ - :required
120
+ :outputs:
121
+ :children:
122
+ DeletePlatformApplicationResult:
123
+ :ignore: true
63
124
  - :name: DeleteTopic
64
125
  :method: :delete_topic
65
126
  :inputs:
@@ -70,6 +131,44 @@
70
131
  :children:
71
132
  DeleteTopicResult:
72
133
  :ignore: true
134
+ - :name: GetEndpointAttributes
135
+ :method: :get_endpoint_attributes
136
+ :inputs:
137
+ EndpointArn:
138
+ - :string
139
+ - :required
140
+ :outputs:
141
+ :children:
142
+ GetEndpointAttributesResult:
143
+ :ignore: true
144
+ :children:
145
+ Attributes:
146
+ :ignore: true
147
+ :children:
148
+ entry:
149
+ :rename: :attributes
150
+ :map:
151
+ - key
152
+ - value
153
+ - :name: GetPlatformApplicationAttributes
154
+ :method: :get_platform_application_attributes
155
+ :inputs:
156
+ PlatformApplicationArn:
157
+ - :string
158
+ - :required
159
+ :outputs:
160
+ :children:
161
+ GetPlatformApplicationAttributesResult:
162
+ :ignore: true
163
+ :children:
164
+ Attributes:
165
+ :ignore: true
166
+ :children:
167
+ entry:
168
+ :rename: :attributes
169
+ :map:
170
+ - key
171
+ - value
73
172
  - :name: GetSubscriptionAttributes
74
173
  :method: :get_subscription_attributes
75
174
  :inputs:
@@ -108,6 +207,59 @@
108
207
  :map:
109
208
  - key
110
209
  - value
210
+ - :name: ListEndpointsByPlatformApplication
211
+ :method: :list_endpoints_by_platform_application
212
+ :inputs:
213
+ PlatformApplicationArn:
214
+ - :string
215
+ - :required
216
+ NextToken:
217
+ - :string
218
+ :outputs:
219
+ :children:
220
+ ListEndpointsByPlatformApplicationResult:
221
+ :ignore: true
222
+ :children:
223
+ Endpoints:
224
+ :ignore: true
225
+ :children:
226
+ member:
227
+ :rename: :endpoints
228
+ :list: true
229
+ :children:
230
+ Attributes:
231
+ :ignore: true
232
+ :children:
233
+ entry:
234
+ :rename: :attributes
235
+ :map:
236
+ - key
237
+ - value
238
+ - :name: ListPlatformApplications
239
+ :method: :list_platform_applications
240
+ :inputs:
241
+ NextToken:
242
+ - :string
243
+ :outputs:
244
+ :children:
245
+ ListPlatformApplicationsResult:
246
+ :ignore: true
247
+ :children:
248
+ PlatformApplications:
249
+ :ignore: true
250
+ :children:
251
+ member:
252
+ :rename: :platform_applications
253
+ :list: true
254
+ :children:
255
+ Attributes:
256
+ :ignore: true
257
+ :children:
258
+ entry:
259
+ :rename: :attributes
260
+ :map:
261
+ - key
262
+ - value
111
263
  - :name: ListSubscriptions
112
264
  :method: :list_subscriptions
113
265
  :inputs:
@@ -164,7 +316,8 @@
164
316
  :inputs:
165
317
  TopicArn:
166
318
  - :string
167
- - :required
319
+ TargetArn:
320
+ - :string
168
321
  Message:
169
322
  - :string
170
323
  - :required
@@ -189,6 +342,40 @@
189
342
  :children:
190
343
  RemovePermissionResult:
191
344
  :ignore: true
345
+ - :name: SetEndpointAttributes
346
+ :method: :set_endpoint_attributes
347
+ :inputs:
348
+ EndpointArn:
349
+ - :string
350
+ - :required
351
+ Attributes:
352
+ - :map:
353
+ :key:
354
+ - :string
355
+ :value:
356
+ - :string
357
+ - :required
358
+ :outputs:
359
+ :children:
360
+ SetEndpointAttributesResult:
361
+ :ignore: true
362
+ - :name: SetPlatformApplicationAttributes
363
+ :method: :set_platform_application_attributes
364
+ :inputs:
365
+ PlatformApplicationArn:
366
+ - :string
367
+ - :required
368
+ Attributes:
369
+ - :map:
370
+ :key:
371
+ - :string
372
+ :value:
373
+ - :string
374
+ - :required
375
+ :outputs:
376
+ :children:
377
+ SetPlatformApplicationAttributesResult:
378
+ :ignore: true
192
379
  - :name: SetSubscriptionAttributes
193
380
  :method: :set_subscription_attributes
194
381
  :inputs:
@@ -461,6 +461,12 @@ module AWS
461
461
  # append to all requests against AWS services. This should be set
462
462
  # for clients and applications built ontop of the aws-sdk gem.
463
463
  #
464
+ # @option options [Boolean] :verify_response_body_content_length (true)
465
+ # When `true` all HTTP handlers will perform a check to ensure
466
+ # that response bodies match the content-length specified in the
467
+ # response header, if present. Note that some HTTP handlers will
468
+ # always do this whether or not this value is true.
469
+ #
464
470
  # @return [Core::Configuration] Returns the new configuration.
465
471
  #
466
472
  def config options = {}
@@ -215,6 +215,12 @@ module AWS
215
215
  # append to all requests against AWS services. This should be set
216
216
  # for clients and applications built on top of the aws-sdk gem.
217
217
  #
218
+ # @attr_reader [Boolean] verify_response_body_content_length (true)
219
+ # When `true` all HTTP handlers will perform a check to ensure
220
+ # that response bodies match the content-length specified in the
221
+ # response header, if present. Note that some HTTP handlers will
222
+ # always do this whether or not this value is true.
223
+ #
218
224
  class Configuration
219
225
 
220
226
  # Creates a new Configuration object.
@@ -490,7 +496,7 @@ module AWS
490
496
  add_option :http_wire_trace, false, :boolean => true
491
497
 
492
498
  add_option_with_needs(:http_handler,
493
- AWS::Core::Http::ConnectionPool::OPTIONS
499
+ AWS::Core::Http::ConnectionPool::OPTIONS + [:verify_response_body_content_length]
494
500
  ) do |config,options|
495
501
  AWS::Core::Http::NetHttpHandler.new(options)
496
502
  end
@@ -518,6 +524,8 @@ module AWS
518
524
 
519
525
  add_option :user_agent_prefix
520
526
 
527
+ add_option :verify_response_body_content_length, true, :boolean => true
528
+
521
529
  end
522
530
  end
523
531
  end
@@ -23,16 +23,19 @@ module AWS
23
23
  #
24
24
  class NetHttpHandler
25
25
 
26
+ class TruncatedBodyError < IOError; end
27
+
26
28
  # @api private
27
29
  NETWORK_ERRORS = [
28
30
  SocketError, EOFError, IOError, Timeout::Error,
29
31
  Errno::ECONNABORTED, Errno::ECONNRESET, Errno::EPIPE,
30
- Errno::EINVAL, Errno::ETIMEDOUT, OpenSSL::SSL::SSLError,
32
+ Errno::EINVAL, Errno::ETIMEDOUT, OpenSSL::SSL::SSLError
31
33
  ]
32
34
 
33
35
  # (see ConnectionPool.new)
34
36
  def initialize options = {}
35
37
  @pool = ConnectionPool.new(options)
38
+ @verify_content_length = options[:verify_response_body_content_length]
36
39
  end
37
40
 
38
41
  # @return [ConnectionPool]
@@ -58,16 +61,27 @@ module AWS
58
61
  http.request(build_net_http_request(request)) do |net_http_resp|
59
62
  response.status = net_http_resp.code.to_i
60
63
  response.headers = net_http_resp.to_hash
61
- if block_given? and response.status < 300
62
- net_http_resp.read_body do |data|
63
- begin
64
- yield data
65
- ensure
66
- retry_possible = false
64
+ exp_length = determine_expected_content_length(response)
65
+ act_length = 0
66
+ begin
67
+ if block_given? and response.status < 300
68
+ net_http_resp.read_body do |data|
69
+ begin
70
+ act_length += data.bytesize
71
+ yield data
72
+ ensure
73
+ retry_possible = false
74
+ end
67
75
  end
76
+ else
77
+ response.body = net_http_resp.read_body
78
+ act_length += response.body.bytesize unless response.body.nil?
79
+ end
80
+ ensure
81
+ run_check = exp_length.nil? == false && request.http_method != "HEAD" && @verify_content_length
82
+ if run_check && act_length != exp_length
83
+ raise TruncatedBodyError, 'content-length does not match'
68
84
  end
69
- else
70
- response.body = net_http_resp.read_body
71
85
  end
72
86
  end
73
87
 
@@ -82,6 +96,14 @@ module AWS
82
96
 
83
97
  protected
84
98
 
99
+ def determine_expected_content_length response
100
+ if header = response.headers['content-length']
101
+ if header.is_a?(Array)
102
+ header.first.to_i
103
+ end
104
+ end
105
+ end
106
+
85
107
  # Given an AWS::Core::HttpRequest, this method translates
86
108
  # it into a Net::HTTPRequest (Get, Put, Post, Head or Delete).
87
109
  # @param [Request] request
@@ -33,7 +33,7 @@ module AWS
33
33
  # designate a table name with a primary key.
34
34
  #
35
35
  # table = dynamo_db.tables.create(
36
- # "MyTable",
36
+ # "MyTable", 10, 5,
37
37
  # :hash_key => { :id => :string }
38
38
  # )
39
39
  # sleep 1 while table.status == :creating
@@ -15,7 +15,7 @@ module AWS
15
15
  class EMR
16
16
 
17
17
  # Client class for Elastic MapReduce (EMR).
18
- class Client < Core::QueryClient
18
+ class Client < Core::JSONClient
19
19
 
20
20
  API_VERSION = '2009-03-31'
21
21
 
@@ -16,7 +16,12 @@ module AWS
16
16
 
17
17
  # @api private
18
18
  class Request < Core::Http::Request
19
- include Core::Signature::Version2
19
+ include Core::Signature::Version4
20
+
21
+ def service
22
+ 'elasticmapreduce'
23
+ end
24
+
20
25
  end
21
26
 
22
27
  end
@@ -155,7 +155,7 @@ module AWS
155
155
  ActiveSupport.on_load(:action_mailer) do
156
156
  self.add_delivery_method(name, AWS::SimpleEmailService, options)
157
157
  end
158
- else
158
+ elsif defined?(::ActionMailer)
159
159
  amb = ::ActionMailer::Base
160
160
  amb.send(:define_method, "perform_delivery_#{name}") do |mail|
161
161
  AWS::SimpleEmailService.new(options).send_raw_email(mail)
@@ -923,7 +923,10 @@ module AWS
923
923
 
924
924
  if options[:range]
925
925
  range = options[:range]
926
- range = "bytes=#{range.first}-#{range.last}" if range.is_a?(Range)
926
+ if range.is_a?(Range)
927
+ offset = range.exclude_end? ? -1 : 0
928
+ range = "bytes=#{range.first}-#{range.last + offset}"
929
+ end
927
930
  req.headers['Range'] = range
928
931
  end
929
932
 
@@ -35,6 +35,17 @@ module AWS
35
35
  # If an originator is applicable, it should set the `@origin` accessor to denote
36
36
  # itself.
37
37
  class Message
38
+ SIGNABLE_KEYS = [
39
+ 'Message',
40
+ 'MessageId',
41
+ 'Subject',
42
+ 'SubscribeURL',
43
+ 'Timestamp',
44
+ 'Token',
45
+ 'TopicArn',
46
+ 'Type',
47
+ ].freeze
48
+
38
49
  attr_reader :raw
39
50
  attr_accessor :origin
40
51
 
@@ -116,6 +127,14 @@ module AWS
116
127
  @raw['SigningCertURL']
117
128
  end
118
129
 
130
+ def subscribe_url
131
+ @raw['SubscribeURL']
132
+ end
133
+
134
+ def token
135
+ @raw['Token']
136
+ end
137
+
119
138
  def unsubscribe_url
120
139
  @raw['UnsubscribeURL']
121
140
  end
@@ -136,13 +155,13 @@ module AWS
136
155
  end
137
156
 
138
157
  def canonical_string
139
- # TODO: Support SubscriptionConfirmation and UnsubscribeConfirmation messages
140
- text = "Message\n#{message}\n"
141
- text += "MessageId\n#{message_id}\n"
142
- text += "Subject\n#{subject}\n" unless subject.nil? or subject.empty?
143
- text += "Timestamp\n#{timestamp}\n"
144
- text += "TopicArn\n#{topic_arn}\n"
145
- text += "Type\n#{type}\n"
158
+ text = ''
159
+ SIGNABLE_KEYS.each do |key|
160
+ value = @raw[key]
161
+ next if value.nil? or value.empty?
162
+ text << key << "\n"
163
+ text << value << "\n"
164
+ end
146
165
  text
147
166
  end
148
167
 
@@ -13,5 +13,5 @@
13
13
 
14
14
  module AWS
15
15
  # Current version of the AWS SDK for Ruby
16
- VERSION = '1.14.1'
16
+ VERSION = '1.15.0'
17
17
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.14.1
4
+ version: 1.15.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-07-25 00:00:00.000000000 Z
11
+ date: 2013-08-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: uuidtools