aws-sdk-dynamodb 1.72.0 → 1.73.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b0ae31718a0b2d46c5a52ba9ab63b31ae5f64920ec35c791b0429ead01ca80ef
4
- data.tar.gz: '058396cdc0515871050fea88f1a2d1d829fe511a3c539523521e7b2d507f00a1'
3
+ metadata.gz: ded7d0deac349c81a16fb38f201285567cc8da4d710aae51d14d0d81ebee0bca
4
+ data.tar.gz: 256334b4d6e50bed034253e6c45377559c8ca3eacdbd29bf14c72cc25d53458a
5
5
  SHA512:
6
- metadata.gz: 2166f3374e7958567e203117297dd10d6258f7e0c36e9e157d62aa5ebe2fb7cc6e612abbc2ed497ee3712cbf00bf0bf0f818f67d35d2493d599515cd09272bab
7
- data.tar.gz: ac2bbb93fae8fb18f14891916183ea24154e29d1eb38106d0d92c39612b3e8c886d5fd857aace1255988943f75a491da9e7c014704a759fd2076d724ec193bde
6
+ metadata.gz: 015c03a66a00e906cd5d90783aca5e6fcce7a6176aa0d3b463f89e8a6b3e35045cc8460467aa86450055d50b198e54b4dc2c1208c1c745caee3107c44d0ce47d
7
+ data.tar.gz: '094f0881f19aad53e073e834c55ef66f04eab31c4d2864800b304a323c7db8475acff75d86d832accd18a0ec4c04e606bd6a2c0b1f0027b243f2cef9ab4bd229'
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
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
+
4
9
  1.72.0 (2022-02-03)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.72.0
1
+ 1.73.0
@@ -3016,6 +3016,19 @@ module Aws::DynamoDB
3016
3016
  # This operation allows you to perform reads and singleton writes on
3017
3017
  # data stored in DynamoDB, using PartiQL.
3018
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
+ #
3019
3032
  # @option params [required, String] :statement
3020
3033
  # The PartiQL statement representing the operation to run.
3021
3034
  #
@@ -3048,11 +3061,24 @@ module Aws::DynamoDB
3048
3061
  #
3049
3062
  # * `NONE` - No `ConsumedCapacity` details are included in the response.
3050
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
+ #
3051
3076
  # @return [Types::ExecuteStatementOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3052
3077
  #
3053
3078
  # * {Types::ExecuteStatementOutput#items #items} => Array<Hash<String,Types::AttributeValue>>
3054
3079
  # * {Types::ExecuteStatementOutput#next_token #next_token} => String
3055
3080
  # * {Types::ExecuteStatementOutput#consumed_capacity #consumed_capacity} => Types::ConsumedCapacity
3081
+ # * {Types::ExecuteStatementOutput#last_evaluated_key #last_evaluated_key} => Hash<String,Types::AttributeValue>
3056
3082
  #
3057
3083
  # @example Request syntax with placeholder values
3058
3084
  #
@@ -3062,6 +3088,7 @@ module Aws::DynamoDB
3062
3088
  # consistent_read: false,
3063
3089
  # next_token: "PartiQLNextToken",
3064
3090
  # return_consumed_capacity: "INDEXES", # accepts INDEXES, TOTAL, NONE
3091
+ # limit: 1,
3065
3092
  # })
3066
3093
  #
3067
3094
  # @example Response structure
@@ -3085,6 +3112,8 @@ module Aws::DynamoDB
3085
3112
  # resp.consumed_capacity.global_secondary_indexes["IndexName"].read_capacity_units #=> Float
3086
3113
  # resp.consumed_capacity.global_secondary_indexes["IndexName"].write_capacity_units #=> Float
3087
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>
3088
3117
  #
3089
3118
  # @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/ExecuteStatement AWS API Documentation
3090
3119
  #
@@ -7320,7 +7349,7 @@ module Aws::DynamoDB
7320
7349
  params: params,
7321
7350
  config: config)
7322
7351
  context[:gem_name] = 'aws-sdk-dynamodb'
7323
- context[:gem_version] = '1.72.0'
7352
+ context[:gem_version] = '1.73.0'
7324
7353
  Seahorse::Client::Request.new(handlers, context)
7325
7354
  end
7326
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
@@ -50,6 +50,6 @@ require_relative 'aws-sdk-dynamodb/customizations'
50
50
  # @!group service
51
51
  module Aws::DynamoDB
52
52
 
53
- GEM_VERSION = '1.72.0'
53
+ GEM_VERSION = '1.73.0'
54
54
 
55
55
  end
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.72.0
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: 2022-02-03 00:00:00.000000000 Z
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