aws-sdk-dynamodb 1.69.0 → 1.73.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 +20 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-dynamodb/client.rb +56 -11
- data/lib/aws-sdk-dynamodb/client_api.rb +2 -0
- data/lib/aws-sdk-dynamodb/types.rb +29 -4
- data/lib/aws-sdk-dynamodb.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ded7d0deac349c81a16fb38f201285567cc8da4d710aae51d14d0d81ebee0bca
|
4
|
+
data.tar.gz: 256334b4d6e50bed034253e6c45377559c8ca3eacdbd29bf14c72cc25d53458a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 015c03a66a00e906cd5d90783aca5e6fcce7a6176aa0d3b463f89e8a6b3e35045cc8460467aa86450055d50b198e54b4dc2c1208c1c745caee3107c44d0ce47d
|
7
|
+
data.tar.gz: '094f0881f19aad53e073e834c55ef66f04eab31c4d2864800b304a323c7db8475acff75d86d832accd18a0ec4c04e606bd6a2c0b1f0027b243f2cef9ab4bd229'
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,26 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.73.0 (2022-02-21)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - DynamoDB ExecuteStatement API now supports Limit as a request parameter to specify the maximum number of items to evaluate. If specified, the service will process up to the Limit and the results will include a LastEvaluatedKey value to continue the read in a subsequent operation.
|
8
|
+
|
9
|
+
1.72.0 (2022-02-03)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
13
|
+
|
14
|
+
1.71.0 (2022-02-02)
|
15
|
+
------------------
|
16
|
+
|
17
|
+
* Feature - Documentation update for DynamoDB Java SDK.
|
18
|
+
|
19
|
+
1.70.0 (2021-12-21)
|
20
|
+
------------------
|
21
|
+
|
22
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
23
|
+
|
4
24
|
1.69.0 (2021-12-01)
|
5
25
|
------------------
|
6
26
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.73.0
|
@@ -27,6 +27,8 @@ require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
|
|
27
27
|
require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
|
28
28
|
require 'aws-sdk-core/plugins/transfer_encoding.rb'
|
29
29
|
require 'aws-sdk-core/plugins/http_checksum.rb'
|
30
|
+
require 'aws-sdk-core/plugins/defaults_mode.rb'
|
31
|
+
require 'aws-sdk-core/plugins/recursion_detection.rb'
|
30
32
|
require 'aws-sdk-core/plugins/signature_v4.rb'
|
31
33
|
require 'aws-sdk-core/plugins/protocols/json_rpc.rb'
|
32
34
|
require 'aws-sdk-dynamodb/plugins/extended_retries.rb'
|
@@ -76,6 +78,8 @@ module Aws::DynamoDB
|
|
76
78
|
add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
|
77
79
|
add_plugin(Aws::Plugins::TransferEncoding)
|
78
80
|
add_plugin(Aws::Plugins::HttpChecksum)
|
81
|
+
add_plugin(Aws::Plugins::DefaultsMode)
|
82
|
+
add_plugin(Aws::Plugins::RecursionDetection)
|
79
83
|
add_plugin(Aws::Plugins::SignatureV4)
|
80
84
|
add_plugin(Aws::Plugins::Protocols::JsonRpc)
|
81
85
|
add_plugin(Aws::DynamoDB::Plugins::ExtendedRetries)
|
@@ -187,6 +191,10 @@ module Aws::DynamoDB
|
|
187
191
|
# Used only in `standard` and adaptive retry modes. Specifies whether to apply
|
188
192
|
# a clock skew correction and retry requests with skewed client clocks.
|
189
193
|
#
|
194
|
+
# @option options [String] :defaults_mode ("legacy")
|
195
|
+
# See {Aws::DefaultsModeConfiguration} for a list of the
|
196
|
+
# accepted modes and the configuration defaults that are included.
|
197
|
+
#
|
190
198
|
# @option options [Boolean] :disable_host_prefix_injection (false)
|
191
199
|
# Set to true to disable SDK automatically adding host prefix
|
192
200
|
# to default service endpoint when available.
|
@@ -326,7 +334,7 @@ module Aws::DynamoDB
|
|
326
334
|
# seconds to wait when opening a HTTP session before raising a
|
327
335
|
# `Timeout::Error`.
|
328
336
|
#
|
329
|
-
# @option options [
|
337
|
+
# @option options [Float] :http_read_timeout (60) The default
|
330
338
|
# number of seconds to wait for response data. This value can
|
331
339
|
# safely be set per-request on the session.
|
332
340
|
#
|
@@ -342,6 +350,9 @@ module Aws::DynamoDB
|
|
342
350
|
# disables this behaviour. This value can safely be set per
|
343
351
|
# request on the session.
|
344
352
|
#
|
353
|
+
# @option options [Float] :ssl_timeout (nil) Sets the SSL timeout
|
354
|
+
# in seconds.
|
355
|
+
#
|
345
356
|
# @option options [Boolean] :http_wire_trace (false) When `true`,
|
346
357
|
# HTTP debug output will be sent to the `:logger`.
|
347
358
|
#
|
@@ -731,9 +742,13 @@ module Aws::DynamoDB
|
|
731
742
|
end
|
732
743
|
|
733
744
|
# The `BatchWriteItem` operation puts or deletes multiple items in one
|
734
|
-
# or more tables. A single call to `BatchWriteItem` can
|
735
|
-
#
|
736
|
-
#
|
745
|
+
# or more tables. A single call to `BatchWriteItem` can transmit up to
|
746
|
+
# 16MB of data over the network, consisting of up to 25 item put or
|
747
|
+
# delete operations. While individual items can be up to 400 KB once
|
748
|
+
# stored, it's important to note that an item's representation might
|
749
|
+
# be greater than 400KB while being sent in DynamoDB's JSON format for
|
750
|
+
# the API call. For more details on this distinction, see [Naming Rules
|
751
|
+
# and Data Types][1].
|
737
752
|
#
|
738
753
|
# <note markdown="1"> `BatchWriteItem` cannot update items. To update items, use the
|
739
754
|
# `UpdateItem` action.
|
@@ -763,7 +778,7 @@ module Aws::DynamoDB
|
|
763
778
|
# operation using exponential backoff, the individual requests in the
|
764
779
|
# batch are much more likely to succeed.
|
765
780
|
#
|
766
|
-
# For more information, see [Batch Operations and Error Handling][
|
781
|
+
# For more information, see [Batch Operations and Error Handling][2] in
|
767
782
|
# the *Amazon DynamoDB Developer Guide*.
|
768
783
|
#
|
769
784
|
# With `BatchWriteItem`, you can efficiently write or delete large
|
@@ -812,7 +827,8 @@ module Aws::DynamoDB
|
|
812
827
|
#
|
813
828
|
#
|
814
829
|
#
|
815
|
-
# [1]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/
|
830
|
+
# [1]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.NamingRulesDataTypes.html
|
831
|
+
# [2]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ErrorHandling.html#Programming.Errors.BatchOperations
|
816
832
|
#
|
817
833
|
# @option params [required, Hash<String,Array>] :request_items
|
818
834
|
# A map of one or more table names and, for each table, a list of
|
@@ -3000,6 +3016,19 @@ module Aws::DynamoDB
|
|
3000
3016
|
# This operation allows you to perform reads and singleton writes on
|
3001
3017
|
# data stored in DynamoDB, using PartiQL.
|
3002
3018
|
#
|
3019
|
+
# For PartiQL reads (`SELECT` statement), if the total number of
|
3020
|
+
# processed items exceeds the maximum dataset size limit of 1 MB, the
|
3021
|
+
# read stops and results are returned to the user as a
|
3022
|
+
# `LastEvaluatedKey` value to continue the read in a subsequent
|
3023
|
+
# operation. If the filter criteria in `WHERE` clause does not match any
|
3024
|
+
# data, the read will return an empty result set.
|
3025
|
+
#
|
3026
|
+
# A single `SELECT` statement response can return up to the maximum
|
3027
|
+
# number of items (if using the Limit parameter) or a maximum of 1 MB of
|
3028
|
+
# data (and then apply any filtering to the results using `WHERE`
|
3029
|
+
# clause). If `LastEvaluatedKey` is present in the response, you need to
|
3030
|
+
# paginate the result set.
|
3031
|
+
#
|
3003
3032
|
# @option params [required, String] :statement
|
3004
3033
|
# The PartiQL statement representing the operation to run.
|
3005
3034
|
#
|
@@ -3032,11 +3061,24 @@ module Aws::DynamoDB
|
|
3032
3061
|
#
|
3033
3062
|
# * `NONE` - No `ConsumedCapacity` details are included in the response.
|
3034
3063
|
#
|
3064
|
+
# @option params [Integer] :limit
|
3065
|
+
# The maximum number of items to evaluate (not necessarily the number of
|
3066
|
+
# matching items). If DynamoDB processes the number of items up to the
|
3067
|
+
# limit while processing the results, it stops the operation and returns
|
3068
|
+
# the matching values up to that point, along with a key in
|
3069
|
+
# `LastEvaluatedKey` to apply in a subsequent operation so you can pick
|
3070
|
+
# up where you left off. Also, if the processed dataset size exceeds 1
|
3071
|
+
# MB before DynamoDB reaches this limit, it stops the operation and
|
3072
|
+
# returns the matching values up to the limit, and a key in
|
3073
|
+
# `LastEvaluatedKey` to apply in a subsequent operation to continue the
|
3074
|
+
# operation.
|
3075
|
+
#
|
3035
3076
|
# @return [Types::ExecuteStatementOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
3036
3077
|
#
|
3037
3078
|
# * {Types::ExecuteStatementOutput#items #items} => Array<Hash<String,Types::AttributeValue>>
|
3038
3079
|
# * {Types::ExecuteStatementOutput#next_token #next_token} => String
|
3039
3080
|
# * {Types::ExecuteStatementOutput#consumed_capacity #consumed_capacity} => Types::ConsumedCapacity
|
3081
|
+
# * {Types::ExecuteStatementOutput#last_evaluated_key #last_evaluated_key} => Hash<String,Types::AttributeValue>
|
3040
3082
|
#
|
3041
3083
|
# @example Request syntax with placeholder values
|
3042
3084
|
#
|
@@ -3046,6 +3088,7 @@ module Aws::DynamoDB
|
|
3046
3088
|
# consistent_read: false,
|
3047
3089
|
# next_token: "PartiQLNextToken",
|
3048
3090
|
# return_consumed_capacity: "INDEXES", # accepts INDEXES, TOTAL, NONE
|
3091
|
+
# limit: 1,
|
3049
3092
|
# })
|
3050
3093
|
#
|
3051
3094
|
# @example Response structure
|
@@ -3069,6 +3112,8 @@ module Aws::DynamoDB
|
|
3069
3112
|
# resp.consumed_capacity.global_secondary_indexes["IndexName"].read_capacity_units #=> Float
|
3070
3113
|
# resp.consumed_capacity.global_secondary_indexes["IndexName"].write_capacity_units #=> Float
|
3071
3114
|
# resp.consumed_capacity.global_secondary_indexes["IndexName"].capacity_units #=> Float
|
3115
|
+
# resp.last_evaluated_key #=> Hash
|
3116
|
+
# resp.last_evaluated_key["AttributeName"] #=> <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
|
3072
3117
|
#
|
3073
3118
|
# @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/ExecuteStatement AWS API Documentation
|
3074
3119
|
#
|
@@ -5986,10 +6031,10 @@ module Aws::DynamoDB
|
|
5986
6031
|
# index. CloudWatch Contributor Insights for DynamoDB graphs display the
|
5987
6032
|
# partition key and (if applicable) sort key of frequently accessed
|
5988
6033
|
# items and frequently throttled items in plaintext. If you require the
|
5989
|
-
# use of
|
5990
|
-
# partition key and sort key data with an
|
5991
|
-
# managed key, you should not enable
|
5992
|
-
# DynamoDB for this table.
|
6034
|
+
# use of Amazon Web Services Key Management Service (KMS) to encrypt
|
6035
|
+
# this table’s partition key and sort key data with an Amazon Web
|
6036
|
+
# Services managed key or customer managed key, you should not enable
|
6037
|
+
# CloudWatch Contributor Insights for DynamoDB for this table.
|
5993
6038
|
#
|
5994
6039
|
# @option params [required, String] :table_name
|
5995
6040
|
# The name of the table.
|
@@ -7304,7 +7349,7 @@ module Aws::DynamoDB
|
|
7304
7349
|
params: params,
|
7305
7350
|
config: config)
|
7306
7351
|
context[:gem_name] = 'aws-sdk-dynamodb'
|
7307
|
-
context[:gem_version] = '1.
|
7352
|
+
context[:gem_version] = '1.73.0'
|
7308
7353
|
Seahorse::Client::Request.new(handlers, context)
|
7309
7354
|
end
|
7310
7355
|
|
@@ -835,11 +835,13 @@ module Aws::DynamoDB
|
|
835
835
|
ExecuteStatementInput.add_member(:consistent_read, Shapes::ShapeRef.new(shape: ConsistentRead, location_name: "ConsistentRead"))
|
836
836
|
ExecuteStatementInput.add_member(:next_token, Shapes::ShapeRef.new(shape: PartiQLNextToken, location_name: "NextToken"))
|
837
837
|
ExecuteStatementInput.add_member(:return_consumed_capacity, Shapes::ShapeRef.new(shape: ReturnConsumedCapacity, location_name: "ReturnConsumedCapacity"))
|
838
|
+
ExecuteStatementInput.add_member(:limit, Shapes::ShapeRef.new(shape: PositiveIntegerObject, location_name: "Limit"))
|
838
839
|
ExecuteStatementInput.struct_class = Types::ExecuteStatementInput
|
839
840
|
|
840
841
|
ExecuteStatementOutput.add_member(:items, Shapes::ShapeRef.new(shape: ItemList, location_name: "Items"))
|
841
842
|
ExecuteStatementOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: PartiQLNextToken, location_name: "NextToken"))
|
842
843
|
ExecuteStatementOutput.add_member(:consumed_capacity, Shapes::ShapeRef.new(shape: ConsumedCapacity, location_name: "ConsumedCapacity"))
|
844
|
+
ExecuteStatementOutput.add_member(:last_evaluated_key, Shapes::ShapeRef.new(shape: Key, location_name: "LastEvaluatedKey"))
|
843
845
|
ExecuteStatementOutput.struct_class = Types::ExecuteStatementOutput
|
844
846
|
|
845
847
|
ExecuteTransactionInput.add_member(:transact_statements, Shapes::ShapeRef.new(shape: ParameterizedStatements, required: true, location_name: "TransactStatements"))
|
@@ -3316,6 +3316,7 @@ module Aws::DynamoDB
|
|
3316
3316
|
# consistent_read: false,
|
3317
3317
|
# next_token: "PartiQLNextToken",
|
3318
3318
|
# return_consumed_capacity: "INDEXES", # accepts INDEXES, TOTAL, NONE
|
3319
|
+
# limit: 1,
|
3319
3320
|
# }
|
3320
3321
|
#
|
3321
3322
|
# @!attribute [rw] statement
|
@@ -3357,6 +3358,19 @@ module Aws::DynamoDB
|
|
3357
3358
|
# response.
|
3358
3359
|
# @return [String]
|
3359
3360
|
#
|
3361
|
+
# @!attribute [rw] limit
|
3362
|
+
# The maximum number of items to evaluate (not necessarily the number
|
3363
|
+
# of matching items). If DynamoDB processes the number of items up to
|
3364
|
+
# the limit while processing the results, it stops the operation and
|
3365
|
+
# returns the matching values up to that point, along with a key in
|
3366
|
+
# `LastEvaluatedKey` to apply in a subsequent operation so you can
|
3367
|
+
# pick up where you left off. Also, if the processed dataset size
|
3368
|
+
# exceeds 1 MB before DynamoDB reaches this limit, it stops the
|
3369
|
+
# operation and returns the matching values up to the limit, and a key
|
3370
|
+
# in `LastEvaluatedKey` to apply in a subsequent operation to continue
|
3371
|
+
# the operation.
|
3372
|
+
# @return [Integer]
|
3373
|
+
#
|
3360
3374
|
# @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/ExecuteStatementInput AWS API Documentation
|
3361
3375
|
#
|
3362
3376
|
class ExecuteStatementInput < Struct.new(
|
@@ -3364,7 +3378,8 @@ module Aws::DynamoDB
|
|
3364
3378
|
:parameters,
|
3365
3379
|
:consistent_read,
|
3366
3380
|
:next_token,
|
3367
|
-
:return_consumed_capacity
|
3381
|
+
:return_consumed_capacity,
|
3382
|
+
:limit)
|
3368
3383
|
SENSITIVE = []
|
3369
3384
|
include Aws::Structure
|
3370
3385
|
end
|
@@ -3395,12 +3410,24 @@ module Aws::DynamoDB
|
|
3395
3410
|
# [1]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ProvisionedThroughputIntro.html
|
3396
3411
|
# @return [Types::ConsumedCapacity]
|
3397
3412
|
#
|
3413
|
+
# @!attribute [rw] last_evaluated_key
|
3414
|
+
# The primary key of the item where the operation stopped, inclusive
|
3415
|
+
# of the previous result set. Use this value to start a new operation,
|
3416
|
+
# excluding this value in the new request. If `LastEvaluatedKey` is
|
3417
|
+
# empty, then the "last page" of results has been processed and
|
3418
|
+
# there is no more data to be retrieved. If `LastEvaluatedKey` is not
|
3419
|
+
# empty, it does not necessarily mean that there is more data in the
|
3420
|
+
# result set. The only way to know when you have reached the end of
|
3421
|
+
# the result set is when `LastEvaluatedKey` is empty.
|
3422
|
+
# @return [Hash<String,Types::AttributeValue>]
|
3423
|
+
#
|
3398
3424
|
# @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/ExecuteStatementOutput AWS API Documentation
|
3399
3425
|
#
|
3400
3426
|
class ExecuteStatementOutput < Struct.new(
|
3401
3427
|
:items,
|
3402
3428
|
:next_token,
|
3403
|
-
:consumed_capacity
|
3429
|
+
:consumed_capacity,
|
3430
|
+
:last_evaluated_key)
|
3404
3431
|
SENSITIVE = []
|
3405
3432
|
include Aws::Structure
|
3406
3433
|
end
|
@@ -5740,8 +5767,6 @@ module Aws::DynamoDB
|
|
5740
5767
|
# @!attribute [rw] point_in_time_recovery_status
|
5741
5768
|
# The current state of point in time recovery:
|
5742
5769
|
#
|
5743
|
-
# * `ENABLING` - Point in time recovery is being enabled.
|
5744
|
-
#
|
5745
5770
|
# * `ENABLED` - Point in time recovery is enabled.
|
5746
5771
|
#
|
5747
5772
|
# * `DISABLED` - Point in time recovery is disabled.
|
data/lib/aws-sdk-dynamodb.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-dynamodb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.73.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:
|
11
|
+
date: 2022-02-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '3'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 3.
|
22
|
+
version: 3.126.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '3'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 3.
|
32
|
+
version: 3.126.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|