aws-sdk-dynamodb 1.104.0 → 1.106.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-dynamodb/client.rb +372 -99
- data/lib/aws-sdk-dynamodb/client_api.rb +114 -34
- data/lib/aws-sdk-dynamodb/endpoints.rb +42 -0
- data/lib/aws-sdk-dynamodb/errors.rb +16 -0
- data/lib/aws-sdk-dynamodb/plugins/endpoints.rb +6 -0
- data/lib/aws-sdk-dynamodb/resource.rb +29 -10
- data/lib/aws-sdk-dynamodb/table.rb +1 -1
- data/lib/aws-sdk-dynamodb/types.rb +282 -46
- data/lib/aws-sdk-dynamodb.rb +1 -1
- data/sig/client.rbs +37 -1
- data/sig/errors.rbs +3 -0
- data/sig/resource.rbs +2 -1
- data/sig/types.rbs +41 -0
- metadata +2 -2
@@ -39,7 +39,7 @@ module Aws::DynamoDB
|
|
39
39
|
#
|
40
40
|
# dynamo_db.batch_get_item({
|
41
41
|
# request_items: { # required
|
42
|
-
# "
|
42
|
+
# "TableArn" => {
|
43
43
|
# keys: [ # required
|
44
44
|
# {
|
45
45
|
# "AttributeName" => "value", # value <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
|
@@ -57,9 +57,9 @@ module Aws::DynamoDB
|
|
57
57
|
# })
|
58
58
|
# @param [Hash] options ({})
|
59
59
|
# @option options [required, Hash<String,Types::KeysAndAttributes>] :request_items
|
60
|
-
# A map of one or more table names and, for each table, a
|
61
|
-
# describes one or more items to retrieve from that table. Each
|
62
|
-
# name can be used only once per `BatchGetItem` request.
|
60
|
+
# A map of one or more table names or table ARNs and, for each table, a
|
61
|
+
# map that describes one or more items to retrieve from that table. Each
|
62
|
+
# table name or ARN can be used only once per `BatchGetItem` request.
|
63
63
|
#
|
64
64
|
# Each element in the map of items to retrieve consists of the
|
65
65
|
# following:
|
@@ -170,7 +170,7 @@ module Aws::DynamoDB
|
|
170
170
|
#
|
171
171
|
# dynamo_db.batch_write_item({
|
172
172
|
# request_items: { # required
|
173
|
-
# "
|
173
|
+
# "TableArn" => [
|
174
174
|
# {
|
175
175
|
# put_request: {
|
176
176
|
# item: { # required
|
@@ -190,9 +190,9 @@ module Aws::DynamoDB
|
|
190
190
|
# })
|
191
191
|
# @param [Hash] options ({})
|
192
192
|
# @option options [required, Hash<String,Array>] :request_items
|
193
|
-
# A map of one or more table names and, for each table, a
|
194
|
-
# operations to be performed (`DeleteRequest` or `PutRequest`).
|
195
|
-
# element in the map consists of the following:
|
193
|
+
# A map of one or more table names or table ARNs and, for each table, a
|
194
|
+
# list of operations to be performed (`DeleteRequest` or `PutRequest`).
|
195
|
+
# Each element in the map consists of the following:
|
196
196
|
#
|
197
197
|
# * `DeleteRequest` - Perform a `DeleteItem` operation on the specified
|
198
198
|
# item. The item to be deleted is identified by a `Key` subelement:
|
@@ -258,7 +258,7 @@ module Aws::DynamoDB
|
|
258
258
|
# attribute_type: "S", # required, accepts S, N, B
|
259
259
|
# },
|
260
260
|
# ],
|
261
|
-
# table_name: "
|
261
|
+
# table_name: "TableArn", # required
|
262
262
|
# key_schema: [ # required
|
263
263
|
# {
|
264
264
|
# attribute_name: "KeySchemaAttributeName", # required
|
@@ -321,13 +321,15 @@ module Aws::DynamoDB
|
|
321
321
|
# ],
|
322
322
|
# table_class: "STANDARD", # accepts STANDARD, STANDARD_INFREQUENT_ACCESS
|
323
323
|
# deletion_protection_enabled: false,
|
324
|
+
# resource_policy: "ResourcePolicy",
|
324
325
|
# })
|
325
326
|
# @param [Hash] options ({})
|
326
327
|
# @option options [required, Array<Types::AttributeDefinition>] :attribute_definitions
|
327
328
|
# An array of attributes that describe the key schema for the table and
|
328
329
|
# indexes.
|
329
330
|
# @option options [required, String] :table_name
|
330
|
-
# The name of the table to create.
|
331
|
+
# The name of the table to create. You can also provide the Amazon
|
332
|
+
# Resource Name (ARN) of the table in this parameter.
|
331
333
|
# @option options [required, Array<Types::KeySchemaElement>] :key_schema
|
332
334
|
# Specifies the attributes that make up the primary key for a table or
|
333
335
|
# an index. The attributes in `KeySchema` must also be defined in the
|
@@ -520,6 +522,23 @@ module Aws::DynamoDB
|
|
520
522
|
# @option options [Boolean] :deletion_protection_enabled
|
521
523
|
# Indicates whether deletion protection is to be enabled (true) or
|
522
524
|
# disabled (false) on the table.
|
525
|
+
# @option options [String] :resource_policy
|
526
|
+
# An Amazon Web Services resource-based policy document in JSON format
|
527
|
+
# that will be attached to the table.
|
528
|
+
#
|
529
|
+
# When you attach a resource-based policy while creating a table, the
|
530
|
+
# policy creation is *strongly consistent*.
|
531
|
+
#
|
532
|
+
# The maximum size supported for a resource-based policy document is 20
|
533
|
+
# KB. DynamoDB counts whitespaces when calculating the size of a policy
|
534
|
+
# against this limit. You can’t request an increase for this limit. For
|
535
|
+
# a full list of all considerations that you should keep in mind while
|
536
|
+
# attaching a resource-based policy, see [Resource-based policy
|
537
|
+
# considerations][1].
|
538
|
+
#
|
539
|
+
#
|
540
|
+
#
|
541
|
+
# [1]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/rbac-considerations.html
|
523
542
|
# @return [Table]
|
524
543
|
def create_table(options = {})
|
525
544
|
resp = Aws::Plugins::UserAgent.feature('resource') do
|
@@ -1298,7 +1298,7 @@ module Aws::DynamoDB
|
|
1298
1298
|
#
|
1299
1299
|
#
|
1300
1300
|
#
|
1301
|
-
# [1]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/
|
1301
|
+
# [1]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Query.FilterExpression.html
|
1302
1302
|
# @option options [String] :key_condition_expression
|
1303
1303
|
# The condition that specifies the key values for items to be retrieved
|
1304
1304
|
# by the `Query` action.
|