aws-sdk 1.1.3 → 1.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/ca-bundle.crt +2 -348
- data/lib/aws.rb +24 -49
- data/lib/aws/{common.rb → core.rb} +120 -9
- data/lib/aws/{api_config.rb → core/api_config.rb} +19 -20
- data/lib/aws/core/api_config_transform.rb +36 -0
- data/lib/aws/core/async_handle.rb +91 -0
- data/lib/aws/core/authorize_v2.rb +39 -0
- data/lib/aws/{authorize_v3.rb → core/authorize_v3.rb} +16 -15
- data/lib/aws/{api_config_transform.rb → core/authorize_with_session_token.rb} +9 -12
- data/lib/aws/core/autoloader.rb +64 -0
- data/lib/aws/core/cacheable.rb +78 -0
- data/lib/aws/core/client.rb +471 -0
- data/lib/aws/core/client_logging.rb +125 -0
- data/lib/aws/core/collections.rb +229 -0
- data/lib/aws/core/configuration.rb +358 -0
- data/lib/aws/core/configured_client_methods.rb +76 -0
- data/lib/aws/core/configured_grammars.rb +63 -0
- data/lib/aws/{configured_option_grammars.rb → core/configured_option_grammars.rb} +18 -20
- data/lib/aws/{configured_xml_grammars.rb → core/configured_xml_grammars.rb} +19 -21
- data/lib/aws/core/default_signer.rb +67 -0
- data/lib/aws/core/http/curb_handler.rb +129 -0
- data/lib/aws/core/http/handler.rb +77 -0
- data/lib/aws/core/http/httparty_handler.rb +113 -0
- data/lib/aws/core/http/net_http_handler.rb +124 -0
- data/lib/aws/core/http/request.rb +207 -0
- data/lib/aws/core/http/response.rb +73 -0
- data/lib/aws/{ignore_result_element.rb → core/ignore_result_element.rb} +14 -18
- data/lib/aws/core/indifferent_hash.rb +88 -0
- data/lib/aws/core/inflection.rb +47 -0
- data/lib/aws/core/lazy_error_classes.rb +62 -0
- data/lib/aws/{uri_escape.rb → core/meta_utils.rb} +24 -23
- data/lib/aws/core/model.rb +57 -0
- data/lib/aws/{authorize_with_session_token.rb → core/naming.rb} +9 -8
- data/lib/aws/core/option_grammar.rb +562 -0
- data/lib/aws/core/policy.rb +914 -0
- data/lib/aws/core/resource.rb +380 -0
- data/lib/aws/core/resource_cache.rb +40 -0
- data/lib/aws/core/response.rb +125 -0
- data/lib/aws/core/response_cache.rb +50 -0
- data/lib/aws/core/service_interface.rb +60 -0
- data/lib/aws/core/uri_escape.rb +46 -0
- data/lib/aws/core/xml_grammar.rb +926 -0
- data/lib/aws/ec2.rb +47 -16
- data/lib/aws/ec2/attachment.rb +0 -2
- data/lib/aws/ec2/attachment_collection.rb +1 -6
- data/lib/aws/ec2/availability_zone.rb +0 -2
- data/lib/aws/ec2/availability_zone_collection.rb +0 -3
- data/lib/aws/ec2/client.rb +6 -9
- data/lib/aws/ec2/client/xml.rb +3 -6
- data/lib/aws/ec2/collection.rb +1 -4
- data/lib/aws/ec2/config.rb +18 -0
- data/lib/aws/ec2/elastic_ip.rb +0 -2
- data/lib/aws/ec2/elastic_ip_collection.rb +0 -4
- data/lib/aws/ec2/errors.rb +1 -4
- data/lib/aws/ec2/has_permissions.rb +0 -2
- data/lib/aws/ec2/image.rb +0 -5
- data/lib/aws/ec2/image_collection.rb +0 -6
- data/lib/aws/ec2/instance.rb +23 -9
- data/lib/aws/ec2/instance_collection.rb +85 -22
- data/lib/aws/ec2/key_pair.rb +0 -2
- data/lib/aws/ec2/key_pair_collection.rb +1 -4
- data/lib/aws/ec2/permission_collection.rb +2 -5
- data/lib/aws/ec2/region.rb +0 -2
- data/lib/aws/ec2/region_collection.rb +0 -4
- data/lib/aws/ec2/request.rb +4 -9
- data/lib/aws/ec2/reserved_instances.rb +0 -3
- data/lib/aws/ec2/reserved_instances_collection.rb +0 -4
- data/lib/aws/ec2/reserved_instances_offering.rb +0 -3
- data/lib/aws/ec2/reserved_instances_offering_collection.rb +0 -4
- data/lib/aws/ec2/resource.rb +3 -5
- data/lib/aws/ec2/resource_tag_collection.rb +1 -6
- data/lib/aws/ec2/security_group.rb +204 -72
- data/lib/aws/ec2/security_group/egress_ip_permission_collection.rb +53 -0
- data/lib/aws/ec2/security_group/ip_permission.rb +92 -10
- data/lib/aws/ec2/security_group/ip_permission_collection.rb +14 -15
- data/lib/aws/ec2/security_group_collection.rb +11 -8
- data/lib/aws/ec2/snapshot.rb +0 -4
- data/lib/aws/ec2/snapshot_collection.rb +0 -4
- data/lib/aws/ec2/tag.rb +0 -3
- data/lib/aws/ec2/tag_collection.rb +1 -8
- data/lib/aws/ec2/tagged_item.rb +1 -3
- data/lib/aws/ec2/volume.rb +0 -6
- data/lib/aws/ec2/volume_collection.rb +0 -4
- data/lib/aws/errors.rb +0 -3
- data/lib/aws/iam.rb +33 -12
- data/lib/aws/iam/access_key.rb +0 -3
- data/lib/aws/iam/access_key_collection.rb +0 -3
- data/lib/aws/iam/account_alias_collection.rb +0 -2
- data/lib/aws/iam/client.rb +6 -8
- data/lib/aws/iam/client/xml.rb +4 -8
- data/lib/aws/iam/collection.rb +2 -5
- data/lib/aws/iam/config.rb +18 -0
- data/lib/aws/iam/errors.rb +2 -4
- data/lib/aws/iam/group.rb +0 -5
- data/lib/aws/iam/group_collection.rb +0 -3
- data/lib/aws/iam/group_policy_collection.rb +0 -2
- data/lib/aws/iam/group_user_collection.rb +1 -4
- data/lib/aws/iam/login_profile.rb +0 -2
- data/lib/aws/iam/mfa_device.rb +1 -3
- data/lib/aws/iam/mfa_device_collection.rb +0 -3
- data/lib/aws/iam/policy.rb +2 -4
- data/lib/aws/iam/policy_collection.rb +0 -3
- data/lib/aws/iam/request.rb +3 -7
- data/lib/aws/iam/resource.rb +1 -4
- data/lib/aws/iam/server_certificate.rb +0 -2
- data/lib/aws/iam/server_certificate_collection.rb +0 -3
- data/lib/aws/iam/signing_certificate.rb +0 -2
- data/lib/aws/iam/signing_certificate_collection.rb +0 -3
- data/lib/aws/iam/user.rb +0 -7
- data/lib/aws/iam/user_collection.rb +0 -3
- data/lib/aws/iam/user_group_collection.rb +0 -3
- data/lib/aws/iam/user_policy.rb +0 -2
- data/lib/aws/iam/user_policy_collection.rb +0 -3
- data/lib/aws/rails.rb +5 -4
- data/lib/aws/record.rb +4 -1
- data/lib/aws/record/base.rb +3 -2
- data/lib/aws/record/errors.rb +1 -3
- data/lib/aws/s3.rb +31 -6
- data/lib/aws/s3/access_control_list.rb +0 -2
- data/lib/aws/s3/acl_object.rb +10 -12
- data/lib/aws/s3/bucket.rb +1 -9
- data/lib/aws/s3/bucket_collection.rb +2 -5
- data/lib/aws/s3/bucket_version_collection.rb +1 -5
- data/lib/aws/s3/client.rb +34 -37
- data/lib/aws/s3/client/xml.rb +11 -14
- data/lib/aws/{resource_cache.rb → s3/config.rb} +6 -20
- data/lib/aws/s3/errors.rb +6 -7
- data/lib/aws/s3/multipart_upload.rb +1 -4
- data/lib/aws/s3/multipart_upload_collection.rb +1 -6
- data/lib/aws/s3/object_collection.rb +1 -5
- data/lib/aws/s3/object_metadata.rb +1 -3
- data/lib/aws/s3/object_upload_collection.rb +1 -7
- data/lib/aws/s3/object_version.rb +1 -4
- data/lib/aws/s3/object_version_collection.rb +1 -4
- data/lib/aws/s3/policy.rb +3 -5
- data/lib/aws/s3/prefix_and_delimiter_collection.rb +0 -2
- data/lib/aws/s3/prefixed_collection.rb +0 -2
- data/lib/aws/s3/presigned_post.rb +1 -3
- data/lib/aws/s3/request.rb +2 -5
- data/lib/aws/s3/s3_object.rb +1 -8
- data/lib/aws/s3/tree.rb +8 -6
- data/lib/aws/s3/tree/branch_node.rb +0 -3
- data/lib/aws/s3/tree/child_collection.rb +1 -5
- data/lib/aws/s3/tree/leaf_node.rb +0 -5
- data/lib/aws/s3/tree/parent.rb +1 -4
- data/lib/aws/s3/uploaded_part.rb +1 -3
- data/lib/aws/s3/uploaded_part_collection.rb +1 -5
- data/lib/aws/simple_db.rb +21 -6
- data/lib/aws/simple_db/attribute.rb +1 -6
- data/lib/aws/simple_db/attribute_collection.rb +1 -7
- data/lib/aws/simple_db/client.rb +7 -9
- data/lib/aws/simple_db/client/options.rb +2 -4
- data/lib/aws/simple_db/client/xml.rb +5 -10
- data/lib/aws/{naming.rb → simple_db/config.rb} +3 -14
- data/lib/aws/simple_db/delete_attributes.rb +0 -2
- data/lib/aws/simple_db/domain.rb +1 -6
- data/lib/aws/simple_db/domain_collection.rb +1 -4
- data/lib/aws/simple_db/domain_metadata.rb +1 -3
- data/lib/aws/simple_db/errors.rb +1 -4
- data/lib/aws/simple_db/item.rb +1 -7
- data/lib/aws/simple_db/item_collection.rb +22 -23
- data/lib/aws/simple_db/put_attributes.rb +0 -2
- data/lib/aws/simple_db/request.rb +3 -7
- data/lib/aws/simple_email_service.rb +11 -6
- data/lib/aws/simple_email_service/client.rb +7 -9
- data/lib/aws/simple_email_service/client/options.rb +3 -6
- data/lib/aws/simple_email_service/client/xml.rb +4 -8
- data/lib/aws/simple_email_service/config.rb +19 -0
- data/lib/aws/simple_email_service/email_address_collection.rb +1 -3
- data/lib/aws/simple_email_service/errors.rb +1 -4
- data/lib/aws/simple_email_service/quotas.rb +1 -3
- data/lib/aws/simple_email_service/request.rb +3 -7
- data/lib/aws/sns.rb +15 -8
- data/lib/aws/sns/client.rb +7 -8
- data/lib/aws/sns/client/options.rb +3 -6
- data/lib/aws/sns/client/xml.rb +4 -8
- data/lib/aws/sns/config.rb +18 -0
- data/lib/aws/sns/errors.rb +1 -4
- data/lib/aws/sns/policy.rb +3 -5
- data/lib/aws/sns/request.rb +4 -9
- data/lib/aws/sns/subscription.rb +1 -5
- data/lib/aws/sns/subscription_collection.rb +1 -5
- data/lib/aws/sns/topic.rb +1 -6
- data/lib/aws/sns/topic_collection.rb +1 -4
- data/lib/aws/sns/topic_subscription_collection.rb +1 -4
- data/lib/aws/sqs.rb +14 -5
- data/lib/aws/sqs/client.rb +6 -9
- data/lib/aws/sqs/client/xml.rb +4 -7
- data/lib/aws/sqs/config.rb +18 -0
- data/lib/aws/sqs/errors.rb +1 -4
- data/lib/aws/sqs/policy.rb +3 -5
- data/lib/aws/sqs/queue.rb +2 -7
- data/lib/aws/sqs/queue_collection.rb +4 -5
- data/lib/aws/sqs/received_message.rb +1 -3
- data/lib/aws/sqs/received_sns_message.rb +2 -2
- data/lib/aws/sqs/request.rb +4 -7
- data/lib/aws/sts.rb +12 -6
- data/lib/aws/sts/client.rb +6 -8
- data/lib/aws/sts/client/xml.rb +4 -8
- data/lib/aws/sts/config.rb +18 -0
- data/lib/aws/sts/errors.rb +1 -4
- data/lib/aws/sts/federated_session.rb +0 -2
- data/lib/aws/sts/policy.rb +3 -5
- data/lib/aws/sts/request.rb +3 -7
- metadata +60 -50
- data/lib/aws/async_handle.rb +0 -90
- data/lib/aws/authorize_v2.rb +0 -37
- data/lib/aws/base_client.rb +0 -488
- data/lib/aws/cacheable.rb +0 -79
- data/lib/aws/client_logging.rb +0 -122
- data/lib/aws/collections.rb +0 -230
- data/lib/aws/configuration.rb +0 -357
- data/lib/aws/configured_client_methods.rb +0 -81
- data/lib/aws/configured_grammars.rb +0 -65
- data/lib/aws/default_signer.rb +0 -65
- data/lib/aws/http/curb_handler.rb +0 -127
- data/lib/aws/http/handler.rb +0 -77
- data/lib/aws/http/httparty_handler.rb +0 -103
- data/lib/aws/http/request.rb +0 -165
- data/lib/aws/http/request_param.rb +0 -64
- data/lib/aws/http/response.rb +0 -72
- data/lib/aws/indifferent_hash.rb +0 -86
- data/lib/aws/inflection.rb +0 -46
- data/lib/aws/lazy_error_classes.rb +0 -64
- data/lib/aws/meta_utils.rb +0 -43
- data/lib/aws/model.rb +0 -57
- data/lib/aws/option_grammar.rb +0 -565
- data/lib/aws/policy.rb +0 -914
- data/lib/aws/resource.rb +0 -381
- data/lib/aws/response.rb +0 -125
- data/lib/aws/response_cache.rb +0 -50
- data/lib/aws/service_interface.rb +0 -60
- data/lib/aws/xml_grammar.rb +0 -925
data/lib/aws/sts/errors.rb
CHANGED
@@ -11,9 +11,6 @@
|
|
11
11
|
# ANY KIND, either express or implied. See the License for the specific
|
12
12
|
# language governing permissions and limitations under the License.
|
13
13
|
|
14
|
-
require 'aws/lazy_error_classes'
|
15
|
-
require 'aws/sts/client/xml'
|
16
|
-
|
17
14
|
module AWS
|
18
15
|
class STS
|
19
16
|
|
@@ -22,7 +19,7 @@ module AWS
|
|
22
19
|
|
23
20
|
BASE_ERROR_GRAMMAR = Client::XML::BaseError
|
24
21
|
|
25
|
-
include LazyErrorClasses
|
22
|
+
include Core::LazyErrorClasses
|
26
23
|
|
27
24
|
end
|
28
25
|
end
|
data/lib/aws/sts/policy.rb
CHANGED
@@ -11,15 +11,13 @@
|
|
11
11
|
# ANY KIND, either express or implied. See the License for the specific
|
12
12
|
# language governing permissions and limitations under the License.
|
13
13
|
|
14
|
-
require 'aws/policy'
|
15
|
-
|
16
14
|
module AWS
|
17
15
|
class STS
|
18
16
|
|
19
|
-
# (see
|
20
|
-
class Policy <
|
17
|
+
# (see Core::Policy)
|
18
|
+
class Policy < Core::Policy
|
21
19
|
|
22
|
-
# (see
|
20
|
+
# (see Core::Policy#to_h)
|
23
21
|
def to_h
|
24
22
|
h = super
|
25
23
|
h.delete("Id")
|
data/lib/aws/sts/request.rb
CHANGED
@@ -11,17 +11,13 @@
|
|
11
11
|
# ANY KIND, either express or implied. See the License for the specific
|
12
12
|
# language governing permissions and limitations under the License.
|
13
13
|
|
14
|
-
require 'aws/http/request'
|
15
|
-
require 'aws/authorize_v3'
|
16
|
-
|
17
14
|
module AWS
|
18
15
|
class STS
|
19
16
|
|
20
17
|
# @private
|
21
|
-
class Request <
|
22
|
-
|
23
|
-
include AuthorizeV2
|
24
|
-
|
18
|
+
class Request < Core::Http::Request
|
19
|
+
include Core::AuthorizeV2
|
25
20
|
end
|
21
|
+
|
26
22
|
end
|
27
23
|
end
|
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.1.
|
4
|
+
version: 1.1.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,12 +9,12 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-09-
|
12
|
+
date: 2011-09-08 00:00:00.000000000 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: uuidtools
|
17
|
-
requirement: &
|
17
|
+
requirement: &2162240460 !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ~>
|
@@ -22,10 +22,10 @@ dependencies:
|
|
22
22
|
version: '2.1'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
|
-
version_requirements: *
|
25
|
+
version_requirements: *2162240460
|
26
26
|
- !ruby/object:Gem::Dependency
|
27
27
|
name: httparty
|
28
|
-
requirement: &
|
28
|
+
requirement: &2162266720 !ruby/object:Gem::Requirement
|
29
29
|
none: false
|
30
30
|
requirements:
|
31
31
|
- - ~>
|
@@ -33,10 +33,10 @@ dependencies:
|
|
33
33
|
version: '0.7'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
|
-
version_requirements: *
|
36
|
+
version_requirements: *2162266720
|
37
37
|
- !ruby/object:Gem::Dependency
|
38
38
|
name: nokogiri
|
39
|
-
requirement: &
|
39
|
+
requirement: &2162310280 !ruby/object:Gem::Requirement
|
40
40
|
none: false
|
41
41
|
requirements:
|
42
42
|
- - ! '>='
|
@@ -44,10 +44,10 @@ dependencies:
|
|
44
44
|
version: 1.4.4
|
45
45
|
type: :runtime
|
46
46
|
prerelease: false
|
47
|
-
version_requirements: *
|
47
|
+
version_requirements: *2162310280
|
48
48
|
- !ruby/object:Gem::Dependency
|
49
49
|
name: json
|
50
|
-
requirement: &
|
50
|
+
requirement: &2162368960 !ruby/object:Gem::Requirement
|
51
51
|
none: false
|
52
52
|
requirements:
|
53
53
|
- - ~>
|
@@ -55,7 +55,7 @@ dependencies:
|
|
55
55
|
version: '1.4'
|
56
56
|
type: :runtime
|
57
57
|
prerelease: false
|
58
|
-
version_requirements: *
|
58
|
+
version_requirements: *2162368960
|
59
59
|
description: AWS SDK for Ruby
|
60
60
|
email:
|
61
61
|
executables: []
|
@@ -64,23 +64,46 @@ extra_rdoc_files: []
|
|
64
64
|
files:
|
65
65
|
- ca-bundle.crt
|
66
66
|
- rails/init.rb
|
67
|
-
- lib/aws/api_config.rb
|
68
|
-
- lib/aws/api_config_transform.rb
|
69
|
-
- lib/aws/async_handle.rb
|
70
|
-
- lib/aws/authorize_v2.rb
|
71
|
-
- lib/aws/authorize_v3.rb
|
72
|
-
- lib/aws/authorize_with_session_token.rb
|
73
|
-
- lib/aws/
|
74
|
-
- lib/aws/cacheable.rb
|
75
|
-
- lib/aws/
|
76
|
-
- lib/aws/
|
77
|
-
- lib/aws/
|
78
|
-
- lib/aws/configuration.rb
|
79
|
-
- lib/aws/configured_client_methods.rb
|
80
|
-
- lib/aws/configured_grammars.rb
|
81
|
-
- lib/aws/configured_option_grammars.rb
|
82
|
-
- lib/aws/configured_xml_grammars.rb
|
83
|
-
- lib/aws/default_signer.rb
|
67
|
+
- lib/aws/core/api_config.rb
|
68
|
+
- lib/aws/core/api_config_transform.rb
|
69
|
+
- lib/aws/core/async_handle.rb
|
70
|
+
- lib/aws/core/authorize_v2.rb
|
71
|
+
- lib/aws/core/authorize_v3.rb
|
72
|
+
- lib/aws/core/authorize_with_session_token.rb
|
73
|
+
- lib/aws/core/autoloader.rb
|
74
|
+
- lib/aws/core/cacheable.rb
|
75
|
+
- lib/aws/core/client.rb
|
76
|
+
- lib/aws/core/client_logging.rb
|
77
|
+
- lib/aws/core/collections.rb
|
78
|
+
- lib/aws/core/configuration.rb
|
79
|
+
- lib/aws/core/configured_client_methods.rb
|
80
|
+
- lib/aws/core/configured_grammars.rb
|
81
|
+
- lib/aws/core/configured_option_grammars.rb
|
82
|
+
- lib/aws/core/configured_xml_grammars.rb
|
83
|
+
- lib/aws/core/default_signer.rb
|
84
|
+
- lib/aws/core/http/curb_handler.rb
|
85
|
+
- lib/aws/core/http/handler.rb
|
86
|
+
- lib/aws/core/http/httparty_handler.rb
|
87
|
+
- lib/aws/core/http/net_http_handler.rb
|
88
|
+
- lib/aws/core/http/request.rb
|
89
|
+
- lib/aws/core/http/response.rb
|
90
|
+
- lib/aws/core/ignore_result_element.rb
|
91
|
+
- lib/aws/core/indifferent_hash.rb
|
92
|
+
- lib/aws/core/inflection.rb
|
93
|
+
- lib/aws/core/lazy_error_classes.rb
|
94
|
+
- lib/aws/core/meta_utils.rb
|
95
|
+
- lib/aws/core/model.rb
|
96
|
+
- lib/aws/core/naming.rb
|
97
|
+
- lib/aws/core/option_grammar.rb
|
98
|
+
- lib/aws/core/policy.rb
|
99
|
+
- lib/aws/core/resource.rb
|
100
|
+
- lib/aws/core/resource_cache.rb
|
101
|
+
- lib/aws/core/response.rb
|
102
|
+
- lib/aws/core/response_cache.rb
|
103
|
+
- lib/aws/core/service_interface.rb
|
104
|
+
- lib/aws/core/uri_escape.rb
|
105
|
+
- lib/aws/core/xml_grammar.rb
|
106
|
+
- lib/aws/core.rb
|
84
107
|
- lib/aws/ec2/attachment.rb
|
85
108
|
- lib/aws/ec2/attachment_collection.rb
|
86
109
|
- lib/aws/ec2/availability_zone.rb
|
@@ -89,6 +112,7 @@ files:
|
|
89
112
|
- lib/aws/ec2/client/xml.rb
|
90
113
|
- lib/aws/ec2/client.rb
|
91
114
|
- lib/aws/ec2/collection.rb
|
115
|
+
- lib/aws/ec2/config.rb
|
92
116
|
- lib/aws/ec2/config_transform.rb
|
93
117
|
- lib/aws/ec2/elastic_ip.rb
|
94
118
|
- lib/aws/ec2/elastic_ip_collection.rb
|
@@ -111,6 +135,7 @@ files:
|
|
111
135
|
- lib/aws/ec2/reserved_instances_offering_collection.rb
|
112
136
|
- lib/aws/ec2/resource.rb
|
113
137
|
- lib/aws/ec2/resource_tag_collection.rb
|
138
|
+
- lib/aws/ec2/security_group/egress_ip_permission_collection.rb
|
114
139
|
- lib/aws/ec2/security_group/ip_permission.rb
|
115
140
|
- lib/aws/ec2/security_group/ip_permission_collection.rb
|
116
141
|
- lib/aws/ec2/security_group.rb
|
@@ -125,18 +150,13 @@ files:
|
|
125
150
|
- lib/aws/ec2/volume_collection.rb
|
126
151
|
- lib/aws/ec2.rb
|
127
152
|
- lib/aws/errors.rb
|
128
|
-
- lib/aws/http/curb_handler.rb
|
129
|
-
- lib/aws/http/handler.rb
|
130
|
-
- lib/aws/http/httparty_handler.rb
|
131
|
-
- lib/aws/http/request.rb
|
132
|
-
- lib/aws/http/request_param.rb
|
133
|
-
- lib/aws/http/response.rb
|
134
153
|
- lib/aws/iam/access_key.rb
|
135
154
|
- lib/aws/iam/access_key_collection.rb
|
136
155
|
- lib/aws/iam/account_alias_collection.rb
|
137
156
|
- lib/aws/iam/client/xml.rb
|
138
157
|
- lib/aws/iam/client.rb
|
139
158
|
- lib/aws/iam/collection.rb
|
159
|
+
- lib/aws/iam/config.rb
|
140
160
|
- lib/aws/iam/errors.rb
|
141
161
|
- lib/aws/iam/group.rb
|
142
162
|
- lib/aws/iam/group_collection.rb
|
@@ -159,15 +179,6 @@ files:
|
|
159
179
|
- lib/aws/iam/user_policy.rb
|
160
180
|
- lib/aws/iam/user_policy_collection.rb
|
161
181
|
- lib/aws/iam.rb
|
162
|
-
- lib/aws/ignore_result_element.rb
|
163
|
-
- lib/aws/indifferent_hash.rb
|
164
|
-
- lib/aws/inflection.rb
|
165
|
-
- lib/aws/lazy_error_classes.rb
|
166
|
-
- lib/aws/meta_utils.rb
|
167
|
-
- lib/aws/model.rb
|
168
|
-
- lib/aws/naming.rb
|
169
|
-
- lib/aws/option_grammar.rb
|
170
|
-
- lib/aws/policy.rb
|
171
182
|
- lib/aws/rails.rb
|
172
183
|
- lib/aws/record/attribute.rb
|
173
184
|
- lib/aws/record/attribute_macros.rb
|
@@ -201,10 +212,6 @@ files:
|
|
201
212
|
- lib/aws/record/validators/numericality.rb
|
202
213
|
- lib/aws/record/validators/presence.rb
|
203
214
|
- lib/aws/record.rb
|
204
|
-
- lib/aws/resource.rb
|
205
|
-
- lib/aws/resource_cache.rb
|
206
|
-
- lib/aws/response.rb
|
207
|
-
- lib/aws/response_cache.rb
|
208
215
|
- lib/aws/s3/access_control_list.rb
|
209
216
|
- lib/aws/s3/acl_object.rb
|
210
217
|
- lib/aws/s3/bucket.rb
|
@@ -212,6 +219,7 @@ files:
|
|
212
219
|
- lib/aws/s3/bucket_version_collection.rb
|
213
220
|
- lib/aws/s3/client/xml.rb
|
214
221
|
- lib/aws/s3/client.rb
|
222
|
+
- lib/aws/s3/config.rb
|
215
223
|
- lib/aws/s3/data_options.rb
|
216
224
|
- lib/aws/s3/errors.rb
|
217
225
|
- lib/aws/s3/multipart_upload.rb
|
@@ -237,12 +245,12 @@ files:
|
|
237
245
|
- lib/aws/s3/uploaded_part.rb
|
238
246
|
- lib/aws/s3/uploaded_part_collection.rb
|
239
247
|
- lib/aws/s3.rb
|
240
|
-
- lib/aws/service_interface.rb
|
241
248
|
- lib/aws/simple_db/attribute.rb
|
242
249
|
- lib/aws/simple_db/attribute_collection.rb
|
243
250
|
- lib/aws/simple_db/client/options.rb
|
244
251
|
- lib/aws/simple_db/client/xml.rb
|
245
252
|
- lib/aws/simple_db/client.rb
|
253
|
+
- lib/aws/simple_db/config.rb
|
246
254
|
- lib/aws/simple_db/consistent_read_option.rb
|
247
255
|
- lib/aws/simple_db/delete_attributes.rb
|
248
256
|
- lib/aws/simple_db/domain.rb
|
@@ -259,6 +267,7 @@ files:
|
|
259
267
|
- lib/aws/simple_email_service/client/options.rb
|
260
268
|
- lib/aws/simple_email_service/client/xml.rb
|
261
269
|
- lib/aws/simple_email_service/client.rb
|
270
|
+
- lib/aws/simple_email_service/config.rb
|
262
271
|
- lib/aws/simple_email_service/email_address_collection.rb
|
263
272
|
- lib/aws/simple_email_service/errors.rb
|
264
273
|
- lib/aws/simple_email_service/quotas.rb
|
@@ -267,6 +276,7 @@ files:
|
|
267
276
|
- lib/aws/sns/client/options.rb
|
268
277
|
- lib/aws/sns/client/xml.rb
|
269
278
|
- lib/aws/sns/client.rb
|
279
|
+
- lib/aws/sns/config.rb
|
270
280
|
- lib/aws/sns/errors.rb
|
271
281
|
- lib/aws/sns/policy.rb
|
272
282
|
- lib/aws/sns/request.rb
|
@@ -278,6 +288,7 @@ files:
|
|
278
288
|
- lib/aws/sns.rb
|
279
289
|
- lib/aws/sqs/client/xml.rb
|
280
290
|
- lib/aws/sqs/client.rb
|
291
|
+
- lib/aws/sqs/config.rb
|
281
292
|
- lib/aws/sqs/errors.rb
|
282
293
|
- lib/aws/sqs/policy.rb
|
283
294
|
- lib/aws/sqs/queue.rb
|
@@ -288,14 +299,13 @@ files:
|
|
288
299
|
- lib/aws/sqs.rb
|
289
300
|
- lib/aws/sts/client/xml.rb
|
290
301
|
- lib/aws/sts/client.rb
|
302
|
+
- lib/aws/sts/config.rb
|
291
303
|
- lib/aws/sts/errors.rb
|
292
304
|
- lib/aws/sts/federated_session.rb
|
293
305
|
- lib/aws/sts/policy.rb
|
294
306
|
- lib/aws/sts/request.rb
|
295
307
|
- lib/aws/sts/session.rb
|
296
308
|
- lib/aws/sts.rb
|
297
|
-
- lib/aws/uri_escape.rb
|
298
|
-
- lib/aws/xml_grammar.rb
|
299
309
|
- lib/aws-sdk.rb
|
300
310
|
- lib/aws.rb
|
301
311
|
- lib/aws/api_config/EC2-2011-02-28.yml
|
@@ -326,7 +336,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
326
336
|
version: '0'
|
327
337
|
segments:
|
328
338
|
- 0
|
329
|
-
hash: -
|
339
|
+
hash: -1242339500272234048
|
330
340
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
331
341
|
none: false
|
332
342
|
requirements:
|
data/lib/aws/async_handle.rb
DELETED
@@ -1,90 +0,0 @@
|
|
1
|
-
# Copyright 2011 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
|
-
|
16
|
-
# Mixin that provides a generic callback facility for asynchronous
|
17
|
-
# tasks that can either succeed or fail.
|
18
|
-
# @private
|
19
|
-
module AsyncHandle
|
20
|
-
|
21
|
-
# Called to signal success and fire off the success and complete callbacks.
|
22
|
-
def signal_success
|
23
|
-
__send_signal(:success)
|
24
|
-
end
|
25
|
-
|
26
|
-
# Called to signal failure and fire off the failure and complete callbacks.
|
27
|
-
def signal_failure
|
28
|
-
__send_signal(:failure)
|
29
|
-
end
|
30
|
-
|
31
|
-
# Registers a callback to be called on successful completion of
|
32
|
-
# the task.
|
33
|
-
#
|
34
|
-
# handle.on_success { puts "It worked!" }
|
35
|
-
#
|
36
|
-
# If this is called when the task has already completed
|
37
|
-
# successfully, it will call the callback immediately.
|
38
|
-
def on_success(&blk)
|
39
|
-
if @_async_status == :success
|
40
|
-
blk.call
|
41
|
-
else
|
42
|
-
(@_async_callbacks ||= []) << { :success => blk }
|
43
|
-
end
|
44
|
-
end
|
45
|
-
|
46
|
-
# Registers a callback to be called when the task fails.
|
47
|
-
#
|
48
|
-
# handle.on_failure { puts "It didn't work!" }
|
49
|
-
#
|
50
|
-
# If this is called when the task has already failed, it will
|
51
|
-
# call the callback immediately.
|
52
|
-
def on_failure(&blk)
|
53
|
-
if @_async_status == :failure
|
54
|
-
blk.call
|
55
|
-
else
|
56
|
-
(@_async_callbacks ||= []) << { :failure => blk }
|
57
|
-
end
|
58
|
-
end
|
59
|
-
|
60
|
-
# Registers a callback to be called when the task is complete,
|
61
|
-
# regardless of its status. Yields the status to the block.
|
62
|
-
#
|
63
|
-
# handle.on_complete do |status|
|
64
|
-
# puts "It #{status == :success ? 'did' : 'did not'} work!"
|
65
|
-
# end
|
66
|
-
#
|
67
|
-
# If this is called when the task has already completed, it will
|
68
|
-
# call the callback immediately.
|
69
|
-
def on_complete(&blk)
|
70
|
-
if !@_async_status.nil?
|
71
|
-
blk.call(@_async_status)
|
72
|
-
else
|
73
|
-
(@_async_callbacks ||= []) << {
|
74
|
-
:failure => lambda { blk.call(:failure) },
|
75
|
-
:success => lambda { blk.call(:success) }
|
76
|
-
}
|
77
|
-
end
|
78
|
-
end
|
79
|
-
|
80
|
-
private
|
81
|
-
def __send_signal(kind)
|
82
|
-
@_async_status = kind
|
83
|
-
@_async_callbacks.map do |cb|
|
84
|
-
cb[kind]
|
85
|
-
end.compact.each { |blk| blk.call } if @_async_callbacks
|
86
|
-
end
|
87
|
-
|
88
|
-
end
|
89
|
-
|
90
|
-
end
|
data/lib/aws/authorize_v2.rb
DELETED
@@ -1,37 +0,0 @@
|
|
1
|
-
# Copyright 2011 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
|
-
|
16
|
-
# Mixed into clients that use v2 authorization.
|
17
|
-
# @private
|
18
|
-
module AuthorizeV2
|
19
|
-
|
20
|
-
def string_to_sign
|
21
|
-
parts = [http_method,
|
22
|
-
host,
|
23
|
-
path,
|
24
|
-
params.sort.collect { |p| p.encoded }.join('&')]
|
25
|
-
parts.join("\n")
|
26
|
-
end
|
27
|
-
|
28
|
-
def add_authorization! signer
|
29
|
-
self.access_key_id = signer.access_key_id
|
30
|
-
add_param('AWSAccessKeyId', access_key_id)
|
31
|
-
add_param('SignatureVersion', '2')
|
32
|
-
add_param('SignatureMethod', 'HmacSHA256')
|
33
|
-
add_param('Signature', signer.sign(string_to_sign))
|
34
|
-
end
|
35
|
-
|
36
|
-
end
|
37
|
-
end
|