aws-sdk 1.7.1 → 1.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.rdoc +4 -4
- data/lib/aws-sdk.rb +60 -1
- data/lib/aws.rb +1 -50
- data/lib/aws/api_config/CloudFront-2012-05-05.yml +864 -899
- data/lib/aws/api_config/DataPipeline-2012-10-29.yml +422 -0
- data/lib/aws/api_config/EC2-2012-07-20.yml +0 -2
- data/lib/aws/api_config/Glacier-2012-06-01.yml +622 -0
- data/lib/aws/api_config/ImportExport-2010-06-01.yml +109 -0
- data/lib/aws/api_config/{SQS-2011-10-01.yml → SQS-2012-11-05.yml} +3 -1
- data/lib/aws/api_config/StorageGateway-2012-06-30.yml +748 -0
- data/lib/aws/cloud_front.rb +71 -0
- data/lib/aws/cloud_front/client.rb +1307 -0
- data/lib/aws/cloud_front/config.rb +18 -0
- data/lib/aws/cloud_front/errors.rb +22 -0
- data/lib/aws/cloud_front/request.rb +44 -0
- data/lib/aws/core.rb +19 -1
- data/lib/aws/core/client.rb +7 -0
- data/lib/aws/core/collection.rb +1 -1
- data/lib/aws/core/configuration.rb +12 -0
- data/lib/aws/core/data.rb +13 -8
- data/lib/aws/core/json_client.rb +3 -4
- data/lib/aws/core/json_parser.rb +76 -0
- data/lib/aws/core/json_request_builder.rb +4 -3
- data/lib/aws/core/json_response_parser.rb +1 -3
- data/lib/aws/core/managed_file.rb +32 -0
- data/lib/aws/core/options/json_serializer.rb +82 -0
- data/lib/aws/core/options/validator.rb +5 -1
- data/lib/aws/core/options/xml_serializer.rb +18 -4
- data/lib/aws/core/{rest_client.rb → rest_json_client.rb} +5 -6
- data/lib/aws/core/rest_request_builder.rb +59 -35
- data/lib/aws/core/rest_response_parser.rb +13 -4
- data/lib/aws/core/rest_xml_client.rb +47 -0
- data/lib/aws/core/signature/version_4.rb +22 -8
- data/lib/aws/data_pipeline.rb +30 -0
- data/lib/aws/data_pipeline/client.rb +392 -0
- data/lib/aws/data_pipeline/config.rb +18 -0
- data/lib/aws/data_pipeline/errors.rb +20 -0
- data/lib/aws/data_pipeline/request.rb +26 -0
- data/lib/aws/ec2/instance_collection.rb +11 -3
- data/lib/aws/ec2/security_group.rb +5 -5
- data/lib/aws/ec2/security_group/{egress_ip_permission_collection.rb → ip_permission_collection.rb} +33 -14
- data/lib/aws/glacier.rb +50 -0
- data/lib/aws/glacier/archive.rb +54 -0
- data/lib/aws/glacier/archive_collection.rb +141 -0
- data/lib/aws/glacier/client.rb +286 -0
- data/lib/aws/glacier/config.rb +19 -0
- data/lib/aws/glacier/errors.rb +22 -0
- data/lib/aws/glacier/request.rb +34 -0
- data/lib/aws/glacier/resource.rb +30 -0
- data/lib/aws/glacier/vault.rb +137 -0
- data/lib/aws/glacier/vault_collection.rb +75 -0
- data/lib/aws/glacier/vault_notification_configuration.rb +27 -0
- data/lib/aws/import_export.rb +71 -0
- data/lib/aws/import_export/client.rb +109 -0
- data/lib/aws/import_export/config.rb +19 -0
- data/lib/aws/import_export/errors.rb +22 -0
- data/lib/aws/import_export/request.rb +23 -0
- data/lib/aws/route_53/client.rb +1 -1
- data/lib/aws/s3/bucket_lifecycle_configuration.rb +160 -63
- data/lib/aws/s3/client.rb +43 -0
- data/lib/aws/s3/client/xml.rb +6 -0
- data/lib/aws/s3/cors_rule_collection.rb +1 -1
- data/lib/aws/s3/data_options.rb +1 -3
- data/lib/aws/s3/request.rb +1 -1
- data/lib/aws/s3/s3_object.rb +52 -10
- data/lib/aws/sqs/client.rb +9 -3
- data/lib/aws/sqs/queue.rb +44 -5
- data/lib/aws/storage_gateway.rb +71 -0
- data/lib/aws/storage_gateway/client.rb +472 -0
- data/lib/aws/storage_gateway/config.rb +18 -0
- data/lib/aws/storage_gateway/errors.rb +22 -0
- data/lib/aws/storage_gateway/request.rb +28 -0
- data/lib/aws/version.rb +1 -1
- metadata +45 -10
- data/lib/aws/ec2/security_group/ingress_ip_permission_collection.rb +0 -61
@@ -0,0 +1,18 @@
|
|
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
|
+
AWS::Core::Configuration.module_eval do
|
15
|
+
|
16
|
+
add_service 'StorageGateway', 'storage_gateway', 'storagegateway.us-east-1.amazonaws.com'
|
17
|
+
|
18
|
+
end
|
@@ -0,0 +1,22 @@
|
|
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
|
+
module AWS
|
15
|
+
class StorageGateway
|
16
|
+
module Errors
|
17
|
+
|
18
|
+
extend Core::LazyErrorClasses
|
19
|
+
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,28 @@
|
|
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
|
+
module AWS
|
15
|
+
class StorageGateway
|
16
|
+
|
17
|
+
# @private
|
18
|
+
class Request < Core::Http::Request
|
19
|
+
include Core::Signature::Version4
|
20
|
+
|
21
|
+
def service
|
22
|
+
'storagegateway'
|
23
|
+
end
|
24
|
+
|
25
|
+
end
|
26
|
+
|
27
|
+
end
|
28
|
+
end
|
data/lib/aws/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.8.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-12-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: uuidtools
|
@@ -124,6 +124,11 @@ files:
|
|
124
124
|
- lib/aws/cloud_formation/stack_resource_summary_collection.rb
|
125
125
|
- lib/aws/cloud_formation/stack_summary_collection.rb
|
126
126
|
- lib/aws/cloud_formation.rb
|
127
|
+
- lib/aws/cloud_front/client.rb
|
128
|
+
- lib/aws/cloud_front/config.rb
|
129
|
+
- lib/aws/cloud_front/errors.rb
|
130
|
+
- lib/aws/cloud_front/request.rb
|
131
|
+
- lib/aws/cloud_front.rb
|
127
132
|
- lib/aws/cloud_search/client.rb
|
128
133
|
- lib/aws/cloud_search/config.rb
|
129
134
|
- lib/aws/cloud_search/errors.rb
|
@@ -162,14 +167,17 @@ files:
|
|
162
167
|
- lib/aws/core/indifferent_hash.rb
|
163
168
|
- lib/aws/core/inflection.rb
|
164
169
|
- lib/aws/core/json_client.rb
|
170
|
+
- lib/aws/core/json_parser.rb
|
165
171
|
- lib/aws/core/json_request_builder.rb
|
166
172
|
- lib/aws/core/json_response_parser.rb
|
167
173
|
- lib/aws/core/lazy_error_classes.rb
|
168
174
|
- lib/aws/core/log_formatter.rb
|
175
|
+
- lib/aws/core/managed_file.rb
|
169
176
|
- lib/aws/core/meta_utils.rb
|
170
177
|
- lib/aws/core/model.rb
|
171
178
|
- lib/aws/core/naming.rb
|
172
179
|
- lib/aws/core/option_grammar.rb
|
180
|
+
- lib/aws/core/options/json_serializer.rb
|
173
181
|
- lib/aws/core/options/validator.rb
|
174
182
|
- lib/aws/core/options/xml_serializer.rb
|
175
183
|
- lib/aws/core/page_result.rb
|
@@ -182,10 +190,11 @@ files:
|
|
182
190
|
- lib/aws/core/resource_cache.rb
|
183
191
|
- lib/aws/core/response.rb
|
184
192
|
- lib/aws/core/response_cache.rb
|
185
|
-
- lib/aws/core/rest_client.rb
|
186
193
|
- lib/aws/core/rest_error_parser.rb
|
194
|
+
- lib/aws/core/rest_json_client.rb
|
187
195
|
- lib/aws/core/rest_request_builder.rb
|
188
196
|
- lib/aws/core/rest_response_parser.rb
|
197
|
+
- lib/aws/core/rest_xml_client.rb
|
189
198
|
- lib/aws/core/service_interface.rb
|
190
199
|
- lib/aws/core/signature/version_2.rb
|
191
200
|
- lib/aws/core/signature/version_3.rb
|
@@ -204,6 +213,11 @@ files:
|
|
204
213
|
- lib/aws/core/xml/sax_handlers/rexml.rb
|
205
214
|
- lib/aws/core/xml/stub.rb
|
206
215
|
- lib/aws/core.rb
|
216
|
+
- lib/aws/data_pipeline/client.rb
|
217
|
+
- lib/aws/data_pipeline/config.rb
|
218
|
+
- lib/aws/data_pipeline/errors.rb
|
219
|
+
- lib/aws/data_pipeline/request.rb
|
220
|
+
- lib/aws/data_pipeline.rb
|
207
221
|
- lib/aws/dynamo_db/attribute_collection.rb
|
208
222
|
- lib/aws/dynamo_db/batch_get.rb
|
209
223
|
- lib/aws/dynamo_db/batch_write.rb
|
@@ -273,9 +287,8 @@ files:
|
|
273
287
|
- lib/aws/ec2/route_table/route.rb
|
274
288
|
- lib/aws/ec2/route_table.rb
|
275
289
|
- lib/aws/ec2/route_table_collection.rb
|
276
|
-
- lib/aws/ec2/security_group/egress_ip_permission_collection.rb
|
277
|
-
- lib/aws/ec2/security_group/ingress_ip_permission_collection.rb
|
278
290
|
- lib/aws/ec2/security_group/ip_permission.rb
|
291
|
+
- lib/aws/ec2/security_group/ip_permission_collection.rb
|
279
292
|
- lib/aws/ec2/security_group.rb
|
280
293
|
- lib/aws/ec2/security_group_collection.rb
|
281
294
|
- lib/aws/ec2/snapshot.rb
|
@@ -332,6 +345,17 @@ files:
|
|
332
345
|
- lib/aws/emr/request.rb
|
333
346
|
- lib/aws/emr.rb
|
334
347
|
- lib/aws/errors.rb
|
348
|
+
- lib/aws/glacier/archive.rb
|
349
|
+
- lib/aws/glacier/archive_collection.rb
|
350
|
+
- lib/aws/glacier/client.rb
|
351
|
+
- lib/aws/glacier/config.rb
|
352
|
+
- lib/aws/glacier/errors.rb
|
353
|
+
- lib/aws/glacier/request.rb
|
354
|
+
- lib/aws/glacier/resource.rb
|
355
|
+
- lib/aws/glacier/vault.rb
|
356
|
+
- lib/aws/glacier/vault_collection.rb
|
357
|
+
- lib/aws/glacier/vault_notification_configuration.rb
|
358
|
+
- lib/aws/glacier.rb
|
335
359
|
- lib/aws/iam/access_key.rb
|
336
360
|
- lib/aws/iam/access_key_collection.rb
|
337
361
|
- lib/aws/iam/account_alias_collection.rb
|
@@ -362,6 +386,11 @@ files:
|
|
362
386
|
- lib/aws/iam/virtual_mfa_device.rb
|
363
387
|
- lib/aws/iam/virtual_mfa_device_collection.rb
|
364
388
|
- lib/aws/iam.rb
|
389
|
+
- lib/aws/import_export/client.rb
|
390
|
+
- lib/aws/import_export/config.rb
|
391
|
+
- lib/aws/import_export/errors.rb
|
392
|
+
- lib/aws/import_export/request.rb
|
393
|
+
- lib/aws/import_export.rb
|
365
394
|
- lib/aws/rails.rb
|
366
395
|
- lib/aws/rds/client.rb
|
367
396
|
- lib/aws/rds/config.rb
|
@@ -519,6 +548,11 @@ files:
|
|
519
548
|
- lib/aws/sqs/received_sns_message.rb
|
520
549
|
- lib/aws/sqs/request.rb
|
521
550
|
- lib/aws/sqs.rb
|
551
|
+
- lib/aws/storage_gateway/client.rb
|
552
|
+
- lib/aws/storage_gateway/config.rb
|
553
|
+
- lib/aws/storage_gateway/errors.rb
|
554
|
+
- lib/aws/storage_gateway/request.rb
|
555
|
+
- lib/aws/storage_gateway.rb
|
522
556
|
- lib/aws/sts/client.rb
|
523
557
|
- lib/aws/sts/config.rb
|
524
558
|
- lib/aws/sts/errors.rb
|
@@ -538,20 +572,24 @@ files:
|
|
538
572
|
- lib/aws/api_config/CloudFront-2012-05-05.yml
|
539
573
|
- lib/aws/api_config/CloudSearch-2011-02-01.yml
|
540
574
|
- lib/aws/api_config/CloudWatch-2010-08-01.yml
|
575
|
+
- lib/aws/api_config/DataPipeline-2012-10-29.yml
|
541
576
|
- lib/aws/api_config/DynamoDB-2011-12-05.yml
|
542
577
|
- lib/aws/api_config/EC2-2012-07-20.yml
|
543
578
|
- lib/aws/api_config/ElastiCache-2012-03-09.yml
|
544
579
|
- lib/aws/api_config/ElasticBeanstalk-2010-12-01.yml
|
545
580
|
- lib/aws/api_config/ELB-2012-06-01.yml
|
546
581
|
- lib/aws/api_config/EMR-2009-03-31.yml
|
582
|
+
- lib/aws/api_config/Glacier-2012-06-01.yml
|
547
583
|
- lib/aws/api_config/IAM-2010-05-08.yml
|
584
|
+
- lib/aws/api_config/ImportExport-2010-06-01.yml
|
548
585
|
- lib/aws/api_config/RDS-2012-07-31.yml
|
549
586
|
- lib/aws/api_config/Route53-2012-02-29.yml
|
550
587
|
- lib/aws/api_config/SimpleDB-2009-04-15.yml
|
551
588
|
- lib/aws/api_config/SimpleEmailService-2010-12-01.yml
|
552
589
|
- lib/aws/api_config/SimpleWorkflow-2012-01-25.yml
|
553
590
|
- lib/aws/api_config/SNS-2010-03-31.yml
|
554
|
-
- lib/aws/api_config/SQS-
|
591
|
+
- lib/aws/api_config/SQS-2012-11-05.yml
|
592
|
+
- lib/aws/api_config/StorageGateway-2012-06-30.yml
|
555
593
|
- lib/aws/api_config/STS-2011-06-15.yml
|
556
594
|
homepage: http://aws.amazon.com/sdkforruby
|
557
595
|
licenses:
|
@@ -566,9 +604,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
566
604
|
- - ! '>='
|
567
605
|
- !ruby/object:Gem::Version
|
568
606
|
version: '0'
|
569
|
-
segments:
|
570
|
-
- 0
|
571
|
-
hash: -2056745554463326016
|
572
607
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
573
608
|
none: false
|
574
609
|
requirements:
|
@@ -577,7 +612,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
577
612
|
version: '0'
|
578
613
|
requirements: []
|
579
614
|
rubyforge_project:
|
580
|
-
rubygems_version: 1.8.
|
615
|
+
rubygems_version: 1.8.23
|
581
616
|
signing_key:
|
582
617
|
specification_version: 3
|
583
618
|
summary: AWS SDK for Ruby
|
@@ -1,61 +0,0 @@
|
|
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
|
-
module AWS
|
15
|
-
class EC2
|
16
|
-
class SecurityGroup < Resource
|
17
|
-
|
18
|
-
class IngressIpPermissionCollection
|
19
|
-
|
20
|
-
include Core::Model
|
21
|
-
include Enumerable
|
22
|
-
|
23
|
-
def initialize security_group, options = {}
|
24
|
-
@security_group = security_group
|
25
|
-
super
|
26
|
-
end
|
27
|
-
|
28
|
-
# @return [SecurityGroup]
|
29
|
-
attr_reader :security_group
|
30
|
-
|
31
|
-
def each
|
32
|
-
security_group.ip_permissions_list.each do |p|
|
33
|
-
|
34
|
-
ports = p[:from_port] ? [p[:from_port], p[:to_port]] : nil
|
35
|
-
|
36
|
-
ip_ranges = p.ip_ranges.collect{|ip| ip.cidr_ip }
|
37
|
-
|
38
|
-
groups = p.groups.collect do |group|
|
39
|
-
SecurityGroup.new(group.group_id,
|
40
|
-
:owner_id => group.user_id,
|
41
|
-
:config => config)
|
42
|
-
end
|
43
|
-
|
44
|
-
permission = IpPermission.new(security_group, p.ip_protocol, ports,
|
45
|
-
:ip_ranges => ip_ranges,
|
46
|
-
:groups => groups,
|
47
|
-
:config => config)
|
48
|
-
|
49
|
-
yield(permission)
|
50
|
-
|
51
|
-
end
|
52
|
-
end
|
53
|
-
|
54
|
-
end
|
55
|
-
|
56
|
-
# alias for ingress permissions
|
57
|
-
IpPermissionCollection = IngressIpPermissionCollection
|
58
|
-
|
59
|
-
end
|
60
|
-
end
|
61
|
-
end
|