aws-sdk 1.6.3 → 1.6.4
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/lib/aws/api_config/AutoScaling-2011-01-01.yml +1 -0
- data/lib/aws/api_config/CloudFormation-2010-05-15.yml +1 -0
- data/lib/aws/api_config/CloudFront-2012-05-05.yml +2137 -0
- data/lib/aws/api_config/CloudWatch-2010-08-01.yml +9 -0
- data/lib/aws/api_config/DynamoDB-2011-12-05.yml +616 -0
- data/lib/aws/api_config/EC2-2012-07-20.yml +1 -0
- data/lib/aws/api_config/ELB-2012-06-01.yml +1 -0
- data/lib/aws/api_config/EMR-2009-03-31.yml +1 -0
- data/lib/aws/api_config/IAM-2010-05-08.yml +1 -0
- data/lib/aws/api_config/Route53-2012-02-29.yml +350 -349
- data/lib/aws/api_config/SNS-2010-03-31.yml +1 -0
- data/lib/aws/api_config/SQS-2011-10-01.yml +1 -0
- data/lib/aws/api_config/STS-2011-06-15.yml +1 -0
- data/lib/aws/api_config/SimpleDB-2009-04-15.yml +1 -0
- data/lib/aws/api_config/SimpleEmailService-2010-12-01.yml +62 -0
- data/lib/aws/api_config/SimpleWorkflow-2012-01-25.yml +1637 -0
- data/lib/aws/auto_scaling/client.rb +2 -37
- data/lib/aws/cloud_formation/client.rb +2 -17
- data/lib/aws/cloud_watch/client.rb +2 -15
- data/lib/aws/core.rb +24 -4
- data/lib/aws/core/client.rb +115 -46
- data/lib/aws/core/configuration.rb +6 -0
- data/lib/aws/core/credential_providers.rb +1 -0
- data/lib/aws/core/http/curb_handler.rb +3 -3
- data/lib/aws/core/http/httparty_handler.rb +15 -15
- data/lib/aws/core/json_client.rb +19 -77
- data/lib/aws/core/json_error_parser.rb +25 -0
- data/lib/aws/core/json_request_builder.rb +34 -0
- data/lib/aws/core/json_response_parser.rb +81 -0
- data/lib/aws/core/log_formatter.rb +25 -25
- data/lib/aws/core/option_grammar.rb +123 -115
- data/lib/aws/core/options/xml_serializer.rb +13 -9
- data/lib/aws/core/query_client.rb +13 -104
- data/lib/aws/core/query_error_parser.rb +24 -0
- data/lib/aws/core/query_request_builder.rb +47 -0
- data/lib/aws/core/query_response_parser.rb +35 -0
- data/lib/aws/core/rest_client.rb +13 -62
- data/lib/aws/core/rest_error_parser.rb +24 -0
- data/lib/aws/core/rest_request_builder.rb +124 -0
- data/lib/aws/core/rest_response_parser.rb +48 -0
- data/lib/aws/core/xml/parser.rb +2 -2
- data/lib/aws/core/xml/root_frame.rb +1 -1
- data/lib/aws/dynamo_db.rb +10 -9
- data/lib/aws/dynamo_db/binary.rb +35 -0
- data/lib/aws/dynamo_db/client.rb +103 -20
- data/lib/aws/dynamo_db/config.rb +2 -0
- data/lib/aws/dynamo_db/item.rb +3 -0
- data/lib/aws/dynamo_db/primary_key_element.rb +2 -1
- data/lib/aws/dynamo_db/table.rb +32 -36
- data/lib/aws/dynamo_db/table_collection.rb +13 -13
- data/lib/aws/dynamo_db/types.rb +34 -9
- data/lib/aws/ec2/client.rb +884 -344
- data/lib/aws/ec2/filtered_collection.rb +2 -3
- data/lib/aws/elb/client.rb +59 -45
- data/lib/aws/emr/client.rb +2 -11
- data/lib/aws/iam/client.rb +9 -80
- data/lib/aws/record/hash_model/attributes.rb +28 -13
- data/lib/aws/route_53/client.rb +6 -16
- data/lib/aws/s3/client.rb +2 -1
- data/lib/aws/s3/encryption_utils.rb +2 -7
- data/lib/aws/s3/s3_object.rb +5 -0
- data/lib/aws/simple_db/client.rb +2 -14
- data/lib/aws/simple_email_service/client.rb +35 -19
- data/lib/aws/simple_email_service/identity.rb +49 -10
- data/lib/aws/simple_email_service/identity_collection.rb +4 -4
- data/lib/aws/simple_workflow/client.rb +2 -38
- data/lib/aws/sns/client.rb +2 -19
- data/lib/aws/sqs/client.rb +2 -19
- data/lib/aws/sqs/errors.rb +5 -5
- data/lib/aws/sts/client.rb +2 -6
- metadata +14 -5
- data/lib/aws/core/rest_client/input_handler.rb +0 -145
- data/lib/aws/core/rest_client/output_handler.rb +0 -53
@@ -0,0 +1,48 @@
|
|
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
|
+
module Core
|
16
|
+
|
17
|
+
# Given a hash of request options, a REST::RequestHandler can
|
18
|
+
# populate a Core::Http::Request object.
|
19
|
+
class RESTResponseParser
|
20
|
+
|
21
|
+
# @private
|
22
|
+
def initialize operation
|
23
|
+
@http = operation[:http]
|
24
|
+
@parser = XML::Parser.new(operation[:outputs])
|
25
|
+
end
|
26
|
+
|
27
|
+
# Given a response object, this method extract and returns a
|
28
|
+
# hash of response data.
|
29
|
+
# @param [Response] response
|
30
|
+
# @return [Hash]
|
31
|
+
def extract_data response
|
32
|
+
|
33
|
+
# parse the response XML body
|
34
|
+
data = @parser.parse(response.http_response.body)
|
35
|
+
|
36
|
+
# extract headers and insert into response
|
37
|
+
(@http[:response_headers] || {}).each_pair do |name,header_name|
|
38
|
+
data[name] = response.http_response.headers[header_name]
|
39
|
+
end
|
40
|
+
|
41
|
+
data
|
42
|
+
|
43
|
+
end
|
44
|
+
|
45
|
+
end
|
46
|
+
|
47
|
+
end
|
48
|
+
end
|
data/lib/aws/core/xml/parser.rb
CHANGED
@@ -15,7 +15,7 @@ module AWS
|
|
15
15
|
module Core
|
16
16
|
module XML
|
17
17
|
class Parser
|
18
|
-
|
18
|
+
|
19
19
|
# @param [Hash] rules A has of xml parsing rules. Generally
|
20
20
|
# rules will come from an xml grammar.
|
21
21
|
def initialize rules = {}
|
@@ -25,7 +25,7 @@ module AWS
|
|
25
25
|
# @return [Hash] Returns the rules for this xml parser that define
|
26
26
|
# how it should transform the XMl into Ruby.
|
27
27
|
attr_reader :rules
|
28
|
-
|
28
|
+
|
29
29
|
# @param [String] xml An XML document string to parse.
|
30
30
|
# @return [Hash] Returns a hash of parsed xml data.
|
31
31
|
def parse xml
|
data/lib/aws/dynamo_db.rb
CHANGED
@@ -84,27 +84,27 @@ module AWS
|
|
84
84
|
# # get an existing table by name and specify its hash key
|
85
85
|
# table = dynamo_db.tables['another-table']
|
86
86
|
# table.hash_key = [:id, :number]
|
87
|
-
#
|
87
|
+
#
|
88
88
|
# # add an item
|
89
89
|
# item = table.items.create('id' => 12345, 'foo' => 'bar')
|
90
|
-
#
|
90
|
+
#
|
91
91
|
# # add attributes to an item
|
92
92
|
# item.attributes.add 'category' => %w(demo), 'tags' => %w(sample item)
|
93
|
-
#
|
93
|
+
#
|
94
94
|
# # update an item with mixed add, delete, update
|
95
95
|
# item.attributes.update do |u|
|
96
96
|
# u.add 'colors' => %w(red)
|
97
97
|
# u.set 'category' => 'demo-category'
|
98
98
|
# u.delete 'foo'
|
99
99
|
# end
|
100
|
-
#
|
100
|
+
#
|
101
101
|
# # delete attributes
|
102
102
|
# item.attributes.delete 'colors', 'category'
|
103
|
-
#
|
103
|
+
#
|
104
104
|
# # get attributes
|
105
105
|
# item.attributes.to_h
|
106
106
|
# #=> {"id"=>#<BigDecimal:10155f5d0,'0.12345E5',9(18)>, "tags"=>#<Set: {"item", "sample"}>}
|
107
|
-
#
|
107
|
+
#
|
108
108
|
# # delete an item and all of its attributes
|
109
109
|
# item.delete
|
110
110
|
#
|
@@ -114,6 +114,7 @@ module AWS
|
|
114
114
|
autoload :AttributeCollection, 'attribute_collection'
|
115
115
|
autoload :BatchGet, 'batch_get'
|
116
116
|
autoload :BatchWrite, 'batch_write'
|
117
|
+
autoload :Binary, 'binary'
|
117
118
|
autoload :Client, 'client'
|
118
119
|
autoload :Errors, 'errors'
|
119
120
|
autoload :Expectations, 'expectations'
|
@@ -147,7 +148,7 @@ module AWS
|
|
147
148
|
# end
|
148
149
|
#
|
149
150
|
# The value returned by #batch_get is an enumerable object that yields
|
150
|
-
# the table name (as a string) and a hash of attributes. The
|
151
|
+
# the table name (as a string) and a hash of attributes. The
|
151
152
|
# enumerable yields once per item received in the batch get.
|
152
153
|
#
|
153
154
|
# == Configuring the batch
|
@@ -162,9 +163,9 @@ module AWS
|
|
162
163
|
# @yield [String, Hash] Yields the table name as a string and a hash
|
163
164
|
# of attributes for each item received in the bach get request.
|
164
165
|
#
|
165
|
-
# @return [Enumerable]
|
166
|
+
# @return [Enumerable]
|
166
167
|
#
|
167
|
-
def batch_get &block
|
168
|
+
def batch_get &block
|
168
169
|
batch = BatchGet.new(:config => config)
|
169
170
|
yield(batch)
|
170
171
|
batch.enumerator
|
@@ -0,0 +1,35 @@
|
|
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 DynamoDB
|
16
|
+
|
17
|
+
# Use this class to wrap strings that you want Amazon DynamoDB
|
18
|
+
# to store as a binary attribute. This can reduce the size
|
19
|
+
# of larger attributes to save on storage costs.
|
20
|
+
#
|
21
|
+
# table = AWS::DynamoDB.new.tables['data-table']
|
22
|
+
# table.hash_key = { 'id' => :string }
|
23
|
+
# table.range_key = { 'position' => :number }
|
24
|
+
#
|
25
|
+
# # put an item with a binary data attribute
|
26
|
+
# table.items.create(
|
27
|
+
# 'id' => 'abc',
|
28
|
+
# 'position' => 5,
|
29
|
+
# 'data' => AWS::DynamoDB::Binary.new('abc')
|
30
|
+
# )
|
31
|
+
#
|
32
|
+
class Binary < String; end
|
33
|
+
|
34
|
+
end
|
35
|
+
end
|
data/lib/aws/dynamo_db/client.rb
CHANGED
@@ -15,18 +15,13 @@ module AWS
|
|
15
15
|
class DynamoDB
|
16
16
|
|
17
17
|
# Client class for Amazon DynamoDB.
|
18
|
-
class Client < Core::
|
18
|
+
class Client < Core::JSONClient
|
19
19
|
|
20
|
-
|
21
|
-
|
22
|
-
extend Core::JSONClient
|
20
|
+
define_client_methods('2011-12-05')
|
23
21
|
|
24
22
|
# @private
|
25
23
|
REGION_US_E1 = 'dynamodb.us-east-1.amazonaws.com'
|
26
24
|
|
27
|
-
# @private
|
28
|
-
TARGET_PREFIX = "DynamoDB_20111205."
|
29
|
-
|
30
25
|
# @private
|
31
26
|
CACHEABLE_REQUESTS = Set[:list_tables, :describe_table]
|
32
27
|
|
@@ -48,8 +43,11 @@ module AWS
|
|
48
43
|
# * +:n+ - (String) Numbers are positive or negative exact-value
|
49
44
|
# decimals and integers. A number can have up to 38 digits
|
50
45
|
# precision and can be between 10^-128 to 10^+126.
|
46
|
+
# * +:b+ - (String) Binary attributes are sequences of unsigned
|
47
|
+
# bytes.
|
51
48
|
# * +:ss+ - (Array<String>) A set of strings.
|
52
49
|
# * +:ns+ - (Array<String>) A set of numbers.
|
50
|
+
# * +:bs+ - (Array<String>) A set of binary attributes.
|
53
51
|
# * +:range_key_element+ - (Hash) A range key element is treated as
|
54
52
|
# a secondary key (used in conjunction with the primary key), and
|
55
53
|
# can be a string or a number, and is only used for
|
@@ -62,8 +60,11 @@ module AWS
|
|
62
60
|
# * +:n+ - (String) Numbers are positive or negative exact-value
|
63
61
|
# decimals and integers. A number can have up to 38 digits
|
64
62
|
# precision and can be between 10^-128 to 10^+126.
|
63
|
+
# * +:b+ - (String) Binary attributes are sequences of unsigned
|
64
|
+
# bytes.
|
65
65
|
# * +:ss+ - (Array<String>) A set of strings.
|
66
66
|
# * +:ns+ - (Array<String>) A set of numbers.
|
67
|
+
# * +:bs+ - (Array<String>) A set of binary attributes.
|
67
68
|
# * +:attributes_to_get+ - (Array<String>)
|
68
69
|
# @return [Core::Response]
|
69
70
|
# The #data method of the response object returns
|
@@ -72,23 +73,28 @@ module AWS
|
|
72
73
|
# * +member+ - (Hash<String,Hash>)
|
73
74
|
# * +S+ - (String)
|
74
75
|
# * +N+ - (String)
|
76
|
+
# * +B+ - (String)
|
75
77
|
# * +SS+ - (Array<String>)
|
76
78
|
# * +NS+ - (Array<String>)
|
79
|
+
# * +BS+ - (Array<Blob>)
|
77
80
|
# * +ConsumedCapacityUnits+ - (Numeric)
|
78
81
|
# * +UnprocessedKeys+ - (Hash<String,Hash>)
|
79
82
|
# * +Keys+ - (Array<Hash>)
|
80
83
|
# * +HashKeyElement+ - (Hash)
|
81
84
|
# * +S+ - (String)
|
82
85
|
# * +N+ - (String)
|
86
|
+
# * +B+ - (String)
|
83
87
|
# * +SS+ - (Array<String>)
|
84
88
|
# * +NS+ - (Array<String>)
|
89
|
+
# * +BS+ - (Array<Blob>)
|
85
90
|
# * +RangeKeyElement+ - (Hash)
|
86
91
|
# * +S+ - (String)
|
87
92
|
# * +N+ - (String)
|
93
|
+
# * +B+ - (String)
|
88
94
|
# * +SS+ - (Array<String>)
|
89
95
|
# * +NS+ - (Array<String>)
|
96
|
+
# * +BS+ - (Array<Blob>)
|
90
97
|
# * +AttributesToGet+ - (Array<String>)
|
91
|
-
define_client_method :batch_get_item, 'BatchGetItem'
|
92
98
|
|
93
99
|
# Calls the BatchWriteItem API operation.
|
94
100
|
# @method batch_write_item(options = {})
|
@@ -105,8 +111,11 @@ module AWS
|
|
105
111
|
# * +:n+ - (String) Numbers are positive or negative exact-value
|
106
112
|
# decimals and integers. A number can have up to 38 digits
|
107
113
|
# precision and can be between 10^-128 to 10^+126.
|
114
|
+
# * +:b+ - (String) Binary attributes are sequences of unsigned
|
115
|
+
# bytes.
|
108
116
|
# * +:ss+ - (Array<String>) A set of strings.
|
109
117
|
# * +:ns+ - (Array<String>) A set of numbers.
|
118
|
+
# * +:bs+ - (Array<String>) A set of binary attributes.
|
110
119
|
# * +:delete_request+ - (Hash)
|
111
120
|
# * +:key+ - *required* - (Hash) The item's key to be delete
|
112
121
|
# * +:hash_key_element+ - *required* - (Hash) A hash key element
|
@@ -120,8 +129,11 @@ module AWS
|
|
120
129
|
# * +:n+ - (String) Numbers are positive or negative
|
121
130
|
# exact-value decimals and integers. A number can have up to
|
122
131
|
# 38 digits precision and can be between 10^-128 to 10^+126.
|
132
|
+
# * +:b+ - (String) Binary attributes are sequences of unsigned
|
133
|
+
# bytes.
|
123
134
|
# * +:ss+ - (Array<String>) A set of strings.
|
124
135
|
# * +:ns+ - (Array<String>) A set of numbers.
|
136
|
+
# * +:bs+ - (Array<String>) A set of binary attributes.
|
125
137
|
# * +:range_key_element+ - (Hash) A range key element is treated
|
126
138
|
# as a secondary key (used in conjunction with the primary
|
127
139
|
# key), and can be a string or a number, and is only used for
|
@@ -134,8 +146,11 @@ module AWS
|
|
134
146
|
# * +:n+ - (String) Numbers are positive or negative
|
135
147
|
# exact-value decimals and integers. A number can have up to
|
136
148
|
# 38 digits precision and can be between 10^-128 to 10^+126.
|
149
|
+
# * +:b+ - (String) Binary attributes are sequences of unsigned
|
150
|
+
# bytes.
|
137
151
|
# * +:ss+ - (Array<String>) A set of strings.
|
138
152
|
# * +:ns+ - (Array<String>) A set of numbers.
|
153
|
+
# * +:bs+ - (Array<String>) A set of binary attributes.
|
139
154
|
# @return [Core::Response]
|
140
155
|
# The #data method of the response object returns
|
141
156
|
# a hash with the following structure:
|
@@ -147,21 +162,26 @@ module AWS
|
|
147
162
|
# * +Item+ - (Hash<String,Hash>)
|
148
163
|
# * +S+ - (String)
|
149
164
|
# * +N+ - (String)
|
165
|
+
# * +B+ - (String)
|
150
166
|
# * +SS+ - (Array<String>)
|
151
167
|
# * +NS+ - (Array<String>)
|
168
|
+
# * +BS+ - (Array<Blob>)
|
152
169
|
# * +DeleteRequest+ - (Hash)
|
153
170
|
# * +Key+ - (Hash)
|
154
171
|
# * +HashKeyElement+ - (Hash)
|
155
172
|
# * +S+ - (String)
|
156
173
|
# * +N+ - (String)
|
174
|
+
# * +B+ - (String)
|
157
175
|
# * +SS+ - (Array<String>)
|
158
176
|
# * +NS+ - (Array<String>)
|
177
|
+
# * +BS+ - (Array<Blob>)
|
159
178
|
# * +RangeKeyElement+ - (Hash)
|
160
179
|
# * +S+ - (String)
|
161
180
|
# * +N+ - (String)
|
181
|
+
# * +B+ - (String)
|
162
182
|
# * +SS+ - (Array<String>)
|
163
183
|
# * +NS+ - (Array<String>)
|
164
|
-
|
184
|
+
# * +BS+ - (Array<Blob>)
|
165
185
|
|
166
186
|
# Calls the CreateTable API operation.
|
167
187
|
# @method create_table(options = {})
|
@@ -218,7 +238,6 @@ module AWS
|
|
218
238
|
# * +WriteCapacityUnits+ - (Integer)
|
219
239
|
# * +TableSizeBytes+ - (Integer)
|
220
240
|
# * +ItemCount+ - (Integer)
|
221
|
-
define_client_method :create_table, 'CreateTable'
|
222
241
|
|
223
242
|
# Calls the DeleteItem API operation.
|
224
243
|
# @method delete_item(options = {})
|
@@ -238,8 +257,11 @@ module AWS
|
|
238
257
|
# * +:n+ - (String) Numbers are positive or negative exact-value
|
239
258
|
# decimals and integers. A number can have up to 38 digits
|
240
259
|
# precision and can be between 10^-128 to 10^+126.
|
260
|
+
# * +:b+ - (String) Binary attributes are sequences of unsigned
|
261
|
+
# bytes.
|
241
262
|
# * +:ss+ - (Array<String>) A set of strings.
|
242
263
|
# * +:ns+ - (Array<String>) A set of numbers.
|
264
|
+
# * +:bs+ - (Array<String>) A set of binary attributes.
|
243
265
|
# * +:range_key_element+ - (Hash) A range key element is treated as a
|
244
266
|
# secondary key (used in conjunction with the primary key), and can
|
245
267
|
# be a string or a number, and is only used for hash-and-range
|
@@ -252,8 +274,11 @@ module AWS
|
|
252
274
|
# * +:n+ - (String) Numbers are positive or negative exact-value
|
253
275
|
# decimals and integers. A number can have up to 38 digits
|
254
276
|
# precision and can be between 10^-128 to 10^+126.
|
277
|
+
# * +:b+ - (String) Binary attributes are sequences of unsigned
|
278
|
+
# bytes.
|
255
279
|
# * +:ss+ - (Array<String>) A set of strings.
|
256
280
|
# * +:ns+ - (Array<String>) A set of numbers.
|
281
|
+
# * +:bs+ - (Array<String>) A set of binary attributes.
|
257
282
|
# * +:expected+ - (Hash<String,Hash>)
|
258
283
|
# * +:value+ - (Hash) Specify whether or not a value already exists
|
259
284
|
# and has a specific content for the attribute name-value pair.
|
@@ -264,8 +289,11 @@ module AWS
|
|
264
289
|
# * +:n+ - (String) Numbers are positive or negative exact-value
|
265
290
|
# decimals and integers. A number can have up to 38 digits
|
266
291
|
# precision and can be between 10^-128 to 10^+126.
|
292
|
+
# * +:b+ - (String) Binary attributes are sequences of unsigned
|
293
|
+
# bytes.
|
267
294
|
# * +:ss+ - (Array<String>) A set of strings.
|
268
295
|
# * +:ns+ - (Array<String>) A set of numbers.
|
296
|
+
# * +:bs+ - (Array<String>) A set of binary attributes.
|
269
297
|
# * +:exists+ - (Boolean) Specify whether or not a value already
|
270
298
|
# exists for the attribute name-value pair.
|
271
299
|
# * +:return_values+ - (String)
|
@@ -275,10 +303,11 @@ module AWS
|
|
275
303
|
# * +Attributes+ - (Hash<String,Hash>)
|
276
304
|
# * +S+ - (String)
|
277
305
|
# * +N+ - (String)
|
306
|
+
# * +B+ - (String)
|
278
307
|
# * +SS+ - (Array<String>)
|
279
308
|
# * +NS+ - (Array<String>)
|
309
|
+
# * +BS+ - (Array<Blob>)
|
280
310
|
# * +ConsumedCapacityUnits+ - (Numeric)
|
281
|
-
define_client_method :delete_item, 'DeleteItem'
|
282
311
|
|
283
312
|
# Calls the DeleteTable API operation.
|
284
313
|
# @method delete_table(options = {})
|
@@ -307,7 +336,6 @@ module AWS
|
|
307
336
|
# * +WriteCapacityUnits+ - (Integer)
|
308
337
|
# * +TableSizeBytes+ - (Integer)
|
309
338
|
# * +ItemCount+ - (Integer)
|
310
|
-
define_client_method :delete_table, 'DeleteTable'
|
311
339
|
|
312
340
|
# Calls the DescribeTable API operation.
|
313
341
|
# @method describe_table(options = {})
|
@@ -336,7 +364,6 @@ module AWS
|
|
336
364
|
# * +WriteCapacityUnits+ - (Integer)
|
337
365
|
# * +TableSizeBytes+ - (Integer)
|
338
366
|
# * +ItemCount+ - (Integer)
|
339
|
-
define_client_method :describe_table, 'DescribeTable'
|
340
367
|
|
341
368
|
# Calls the GetItem API operation.
|
342
369
|
# @method get_item(options = {})
|
@@ -356,8 +383,11 @@ module AWS
|
|
356
383
|
# * +:n+ - (String) Numbers are positive or negative exact-value
|
357
384
|
# decimals and integers. A number can have up to 38 digits
|
358
385
|
# precision and can be between 10^-128 to 10^+126.
|
386
|
+
# * +:b+ - (String) Binary attributes are sequences of unsigned
|
387
|
+
# bytes.
|
359
388
|
# * +:ss+ - (Array<String>) A set of strings.
|
360
389
|
# * +:ns+ - (Array<String>) A set of numbers.
|
390
|
+
# * +:bs+ - (Array<String>) A set of binary attributes.
|
361
391
|
# * +:range_key_element+ - (Hash) A range key element is treated as a
|
362
392
|
# secondary key (used in conjunction with the primary key), and can
|
363
393
|
# be a string or a number, and is only used for hash-and-range
|
@@ -370,8 +400,11 @@ module AWS
|
|
370
400
|
# * +:n+ - (String) Numbers are positive or negative exact-value
|
371
401
|
# decimals and integers. A number can have up to 38 digits
|
372
402
|
# precision and can be between 10^-128 to 10^+126.
|
403
|
+
# * +:b+ - (String) Binary attributes are sequences of unsigned
|
404
|
+
# bytes.
|
373
405
|
# * +:ss+ - (Array<String>) A set of strings.
|
374
406
|
# * +:ns+ - (Array<String>) A set of numbers.
|
407
|
+
# * +:bs+ - (Array<String>) A set of binary attributes.
|
375
408
|
# * +:attributes_to_get+ - (Array<String>)
|
376
409
|
# * +:consistent_read+ - (Boolean)
|
377
410
|
# @return [Core::Response]
|
@@ -380,10 +413,11 @@ module AWS
|
|
380
413
|
# * +Item+ - (Hash<String,Hash>)
|
381
414
|
# * +S+ - (String)
|
382
415
|
# * +N+ - (String)
|
416
|
+
# * +B+ - (String)
|
383
417
|
# * +SS+ - (Array<String>)
|
384
418
|
# * +NS+ - (Array<String>)
|
419
|
+
# * +BS+ - (Array<Blob>)
|
385
420
|
# * +ConsumedCapacityUnits+ - (Numeric)
|
386
|
-
define_client_method :get_item, 'GetItem'
|
387
421
|
|
388
422
|
# Calls the ListTables API operation.
|
389
423
|
# @method list_tables(options = {})
|
@@ -398,7 +432,6 @@ module AWS
|
|
398
432
|
# a hash with the following structure:
|
399
433
|
# * +TableNames+ - (Array<String>)
|
400
434
|
# * +LastEvaluatedTableName+ - (String)
|
401
|
-
define_client_method :list_tables, 'ListTables'
|
402
435
|
|
403
436
|
# Calls the PutItem API operation.
|
404
437
|
# @method put_item(options = {})
|
@@ -414,8 +447,11 @@ module AWS
|
|
414
447
|
# * +:n+ - (String) Numbers are positive or negative exact-value
|
415
448
|
# decimals and integers. A number can have up to 38 digits
|
416
449
|
# precision and can be between 10^-128 to 10^+126.
|
450
|
+
# * +:b+ - (String) Binary attributes are sequences of unsigned
|
451
|
+
# bytes.
|
417
452
|
# * +:ss+ - (Array<String>) A set of strings.
|
418
453
|
# * +:ns+ - (Array<String>) A set of numbers.
|
454
|
+
# * +:bs+ - (Array<String>) A set of binary attributes.
|
419
455
|
# * +:expected+ - (Hash<String,Hash>)
|
420
456
|
# * +:value+ - (Hash) Specify whether or not a value already exists
|
421
457
|
# and has a specific content for the attribute name-value pair.
|
@@ -426,8 +462,11 @@ module AWS
|
|
426
462
|
# * +:n+ - (String) Numbers are positive or negative exact-value
|
427
463
|
# decimals and integers. A number can have up to 38 digits
|
428
464
|
# precision and can be between 10^-128 to 10^+126.
|
465
|
+
# * +:b+ - (String) Binary attributes are sequences of unsigned
|
466
|
+
# bytes.
|
429
467
|
# * +:ss+ - (Array<String>) A set of strings.
|
430
468
|
# * +:ns+ - (Array<String>) A set of numbers.
|
469
|
+
# * +:bs+ - (Array<String>) A set of binary attributes.
|
431
470
|
# * +:exists+ - (Boolean) Specify whether or not a value already
|
432
471
|
# exists for the attribute name-value pair.
|
433
472
|
# * +:return_values+ - (String)
|
@@ -437,10 +476,11 @@ module AWS
|
|
437
476
|
# * +Attributes+ - (Hash<String,Hash>)
|
438
477
|
# * +S+ - (String)
|
439
478
|
# * +N+ - (String)
|
479
|
+
# * +B+ - (String)
|
440
480
|
# * +SS+ - (Array<String>)
|
441
481
|
# * +NS+ - (Array<String>)
|
482
|
+
# * +BS+ - (Array<Blob>)
|
442
483
|
# * +ConsumedCapacityUnits+ - (Numeric)
|
443
|
-
define_client_method :put_item, 'PutItem'
|
444
484
|
|
445
485
|
# Calls the Query API operation.
|
446
486
|
# @method query(options = {})
|
@@ -472,8 +512,11 @@ module AWS
|
|
472
512
|
# * +:n+ - (String) Numbers are positive or negative exact-value
|
473
513
|
# decimals and integers. A number can have up to 38 digits
|
474
514
|
# precision and can be between 10^-128 to 10^+126.
|
515
|
+
# * +:b+ - (String) Binary attributes are sequences of unsigned
|
516
|
+
# bytes.
|
475
517
|
# * +:ss+ - (Array<String>) A set of strings.
|
476
518
|
# * +:ns+ - (Array<String>) A set of numbers.
|
519
|
+
# * +:bs+ - (Array<String>) A set of binary attributes.
|
477
520
|
# * +:range_key_condition+ - (Hash) A container for the attribute
|
478
521
|
# values and comparison operators to use for the query.
|
479
522
|
# * +:attribute_value_list+ - (Array<Hash>)
|
@@ -484,8 +527,11 @@ module AWS
|
|
484
527
|
# * +:n+ - (String) Numbers are positive or negative exact-value
|
485
528
|
# decimals and integers. A number can have up to 38 digits
|
486
529
|
# precision and can be between 10^-128 to 10^+126.
|
530
|
+
# * +:b+ - (String) Binary attributes are sequences of unsigned
|
531
|
+
# bytes.
|
487
532
|
# * +:ss+ - (Array<String>) A set of strings.
|
488
533
|
# * +:ns+ - (Array<String>) A set of numbers.
|
534
|
+
# * +:bs+ - (Array<String>) A set of binary attributes.
|
489
535
|
# * +:comparison_operator+ - *required* - (String)
|
490
536
|
# * +:scan_index_forward+ - (Boolean) Specifies forward or backward
|
491
537
|
# traversal of the index. Amazon DynamoDB returns results reflecting
|
@@ -509,8 +555,11 @@ module AWS
|
|
509
555
|
# * +:n+ - (String) Numbers are positive or negative exact-value
|
510
556
|
# decimals and integers. A number can have up to 38 digits
|
511
557
|
# precision and can be between 10^-128 to 10^+126.
|
558
|
+
# * +:b+ - (String) Binary attributes are sequences of unsigned
|
559
|
+
# bytes.
|
512
560
|
# * +:ss+ - (Array<String>) A set of strings.
|
513
561
|
# * +:ns+ - (Array<String>) A set of numbers.
|
562
|
+
# * +:bs+ - (Array<String>) A set of binary attributes.
|
514
563
|
# * +:range_key_element+ - (Hash) A range key element is treated as a
|
515
564
|
# secondary key (used in conjunction with the primary key), and can
|
516
565
|
# be a string or a number, and is only used for hash-and-range
|
@@ -523,30 +572,38 @@ module AWS
|
|
523
572
|
# * +:n+ - (String) Numbers are positive or negative exact-value
|
524
573
|
# decimals and integers. A number can have up to 38 digits
|
525
574
|
# precision and can be between 10^-128 to 10^+126.
|
575
|
+
# * +:b+ - (String) Binary attributes are sequences of unsigned
|
576
|
+
# bytes.
|
526
577
|
# * +:ss+ - (Array<String>) A set of strings.
|
527
578
|
# * +:ns+ - (Array<String>) A set of numbers.
|
579
|
+
# * +:bs+ - (Array<String>) A set of binary attributes.
|
528
580
|
# @return [Core::Response]
|
529
581
|
# The #data method of the response object returns
|
530
582
|
# a hash with the following structure:
|
531
583
|
# * +member+ - (Hash<String,Hash>)
|
532
584
|
# * +S+ - (String)
|
533
585
|
# * +N+ - (String)
|
586
|
+
# * +B+ - (String)
|
534
587
|
# * +SS+ - (Array<String>)
|
535
588
|
# * +NS+ - (Array<String>)
|
589
|
+
# * +BS+ - (Array<Blob>)
|
536
590
|
# * +Count+ - (Integer)
|
537
591
|
# * +LastEvaluatedKey+ - (Hash)
|
538
592
|
# * +HashKeyElement+ - (Hash)
|
539
593
|
# * +S+ - (String)
|
540
594
|
# * +N+ - (String)
|
595
|
+
# * +B+ - (String)
|
541
596
|
# * +SS+ - (Array<String>)
|
542
597
|
# * +NS+ - (Array<String>)
|
598
|
+
# * +BS+ - (Array<Blob>)
|
543
599
|
# * +RangeKeyElement+ - (Hash)
|
544
600
|
# * +S+ - (String)
|
545
601
|
# * +N+ - (String)
|
602
|
+
# * +B+ - (String)
|
546
603
|
# * +SS+ - (Array<String>)
|
547
604
|
# * +NS+ - (Array<String>)
|
605
|
+
# * +BS+ - (Array<Blob>)
|
548
606
|
# * +ConsumedCapacityUnits+ - (Numeric)
|
549
|
-
define_client_method :query, 'Query'
|
550
607
|
|
551
608
|
# Calls the Scan API operation.
|
552
609
|
# @method scan(options = {})
|
@@ -578,8 +635,11 @@ module AWS
|
|
578
635
|
# * +:n+ - (String) Numbers are positive or negative exact-value
|
579
636
|
# decimals and integers. A number can have up to 38 digits
|
580
637
|
# precision and can be between 10^-128 to 10^+126.
|
638
|
+
# * +:b+ - (String) Binary attributes are sequences of unsigned
|
639
|
+
# bytes.
|
581
640
|
# * +:ss+ - (Array<String>) A set of strings.
|
582
641
|
# * +:ns+ - (Array<String>) A set of numbers.
|
642
|
+
# * +:bs+ - (Array<String>) A set of binary attributes.
|
583
643
|
# * +:comparison_operator+ - *required* - (String)
|
584
644
|
# * +:exclusive_start_key+ - (Hash) Primary key of the item from which
|
585
645
|
# to continue an earlier scan. An earlier scan might provide this
|
@@ -598,8 +658,11 @@ module AWS
|
|
598
658
|
# * +:n+ - (String) Numbers are positive or negative exact-value
|
599
659
|
# decimals and integers. A number can have up to 38 digits
|
600
660
|
# precision and can be between 10^-128 to 10^+126.
|
661
|
+
# * +:b+ - (String) Binary attributes are sequences of unsigned
|
662
|
+
# bytes.
|
601
663
|
# * +:ss+ - (Array<String>) A set of strings.
|
602
664
|
# * +:ns+ - (Array<String>) A set of numbers.
|
665
|
+
# * +:bs+ - (Array<String>) A set of binary attributes.
|
603
666
|
# * +:range_key_element+ - (Hash) A range key element is treated as a
|
604
667
|
# secondary key (used in conjunction with the primary key), and can
|
605
668
|
# be a string or a number, and is only used for hash-and-range
|
@@ -612,31 +675,39 @@ module AWS
|
|
612
675
|
# * +:n+ - (String) Numbers are positive or negative exact-value
|
613
676
|
# decimals and integers. A number can have up to 38 digits
|
614
677
|
# precision and can be between 10^-128 to 10^+126.
|
678
|
+
# * +:b+ - (String) Binary attributes are sequences of unsigned
|
679
|
+
# bytes.
|
615
680
|
# * +:ss+ - (Array<String>) A set of strings.
|
616
681
|
# * +:ns+ - (Array<String>) A set of numbers.
|
682
|
+
# * +:bs+ - (Array<String>) A set of binary attributes.
|
617
683
|
# @return [Core::Response]
|
618
684
|
# The #data method of the response object returns
|
619
685
|
# a hash with the following structure:
|
620
686
|
# * +member+ - (Hash<String,Hash>)
|
621
687
|
# * +S+ - (String)
|
622
688
|
# * +N+ - (String)
|
689
|
+
# * +B+ - (String)
|
623
690
|
# * +SS+ - (Array<String>)
|
624
691
|
# * +NS+ - (Array<String>)
|
692
|
+
# * +BS+ - (Array<Blob>)
|
625
693
|
# * +Count+ - (Integer)
|
626
694
|
# * +ScannedCount+ - (Integer)
|
627
695
|
# * +LastEvaluatedKey+ - (Hash)
|
628
696
|
# * +HashKeyElement+ - (Hash)
|
629
697
|
# * +S+ - (String)
|
630
698
|
# * +N+ - (String)
|
699
|
+
# * +B+ - (String)
|
631
700
|
# * +SS+ - (Array<String>)
|
632
701
|
# * +NS+ - (Array<String>)
|
702
|
+
# * +BS+ - (Array<Blob>)
|
633
703
|
# * +RangeKeyElement+ - (Hash)
|
634
704
|
# * +S+ - (String)
|
635
705
|
# * +N+ - (String)
|
706
|
+
# * +B+ - (String)
|
636
707
|
# * +SS+ - (Array<String>)
|
637
708
|
# * +NS+ - (Array<String>)
|
709
|
+
# * +BS+ - (Array<Blob>)
|
638
710
|
# * +ConsumedCapacityUnits+ - (Numeric)
|
639
|
-
define_client_method :scan, 'Scan'
|
640
711
|
|
641
712
|
# Calls the UpdateItem API operation.
|
642
713
|
# @method update_item(options = {})
|
@@ -656,8 +727,11 @@ module AWS
|
|
656
727
|
# * +:n+ - (String) Numbers are positive or negative exact-value
|
657
728
|
# decimals and integers. A number can have up to 38 digits
|
658
729
|
# precision and can be between 10^-128 to 10^+126.
|
730
|
+
# * +:b+ - (String) Binary attributes are sequences of unsigned
|
731
|
+
# bytes.
|
659
732
|
# * +:ss+ - (Array<String>) A set of strings.
|
660
733
|
# * +:ns+ - (Array<String>) A set of numbers.
|
734
|
+
# * +:bs+ - (Array<String>) A set of binary attributes.
|
661
735
|
# * +:range_key_element+ - (Hash) A range key element is treated as a
|
662
736
|
# secondary key (used in conjunction with the primary key), and can
|
663
737
|
# be a string or a number, and is only used for hash-and-range
|
@@ -670,8 +744,11 @@ module AWS
|
|
670
744
|
# * +:n+ - (String) Numbers are positive or negative exact-value
|
671
745
|
# decimals and integers. A number can have up to 38 digits
|
672
746
|
# precision and can be between 10^-128 to 10^+126.
|
747
|
+
# * +:b+ - (String) Binary attributes are sequences of unsigned
|
748
|
+
# bytes.
|
673
749
|
# * +:ss+ - (Array<String>) A set of strings.
|
674
750
|
# * +:ns+ - (Array<String>) A set of numbers.
|
751
|
+
# * +:bs+ - (Array<String>) A set of binary attributes.
|
675
752
|
# * +:attribute_updates+ - *required* - (Hash<String,Hash>)
|
676
753
|
# * +:value+ - (Hash)
|
677
754
|
# * +:s+ - (String) Strings are Unicode with UTF-8 binary encoding.
|
@@ -681,8 +758,11 @@ module AWS
|
|
681
758
|
# * +:n+ - (String) Numbers are positive or negative exact-value
|
682
759
|
# decimals and integers. A number can have up to 38 digits
|
683
760
|
# precision and can be between 10^-128 to 10^+126.
|
761
|
+
# * +:b+ - (String) Binary attributes are sequences of unsigned
|
762
|
+
# bytes.
|
684
763
|
# * +:ss+ - (Array<String>) A set of strings.
|
685
764
|
# * +:ns+ - (Array<String>) A set of numbers.
|
765
|
+
# * +:bs+ - (Array<String>) A set of binary attributes.
|
686
766
|
# * +:action+ - (String)
|
687
767
|
# * +:expected+ - (Hash<String,Hash>)
|
688
768
|
# * +:value+ - (Hash) Specify whether or not a value already exists
|
@@ -694,8 +774,11 @@ module AWS
|
|
694
774
|
# * +:n+ - (String) Numbers are positive or negative exact-value
|
695
775
|
# decimals and integers. A number can have up to 38 digits
|
696
776
|
# precision and can be between 10^-128 to 10^+126.
|
777
|
+
# * +:b+ - (String) Binary attributes are sequences of unsigned
|
778
|
+
# bytes.
|
697
779
|
# * +:ss+ - (Array<String>) A set of strings.
|
698
780
|
# * +:ns+ - (Array<String>) A set of numbers.
|
781
|
+
# * +:bs+ - (Array<String>) A set of binary attributes.
|
699
782
|
# * +:exists+ - (Boolean) Specify whether or not a value already
|
700
783
|
# exists for the attribute name-value pair.
|
701
784
|
# * +:return_values+ - (String)
|
@@ -705,10 +788,11 @@ module AWS
|
|
705
788
|
# * +Attributes+ - (Hash<String,Hash>)
|
706
789
|
# * +S+ - (String)
|
707
790
|
# * +N+ - (String)
|
791
|
+
# * +B+ - (String)
|
708
792
|
# * +SS+ - (Array<String>)
|
709
793
|
# * +NS+ - (Array<String>)
|
794
|
+
# * +BS+ - (Array<Blob>)
|
710
795
|
# * +ConsumedCapacityUnits+ - (Numeric)
|
711
|
-
define_client_method :update_item, 'UpdateItem'
|
712
796
|
|
713
797
|
# Calls the UpdateTable API operation.
|
714
798
|
# @method update_table(options = {})
|
@@ -747,7 +831,6 @@ module AWS
|
|
747
831
|
# * +WriteCapacityUnits+ - (Integer)
|
748
832
|
# * +TableSizeBytes+ - (Integer)
|
749
833
|
# * +ItemCount+ - (Integer)
|
750
|
-
define_client_method :update_table, 'UpdateTable'
|
751
834
|
|
752
835
|
## end client methods ##
|
753
836
|
|