aws-sdk-dynamodb 1.94.0 → 1.96.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: 8c015738e9e83b6ff04b0d5beafc2d214ed8ba1af835466ffd86f9b718a22d15
4
- data.tar.gz: 5020de3b5d59e92ca6cf22088cfeb7eba48c22ca94e8a7bbf0e45ef387e01e61
3
+ metadata.gz: 01b730b93f636bbf4b50a16a85c5fed7c5b676c503ff311bc40b1434412c58e3
4
+ data.tar.gz: b52a347cd9988b67a55bf5316a4d87b714d4ca8bf5b334fc636199aeb238db35
5
5
  SHA512:
6
- metadata.gz: 935b64c71522b94691be748126ed9e8a90848db8d7358797ca9d695a054250c94c35ebdbc3eecff2fe8546e04f4d573ece6de2558c363857f049b68fb3f8f3ed
7
- data.tar.gz: f21bb69f9c5233e830552998cfc8b15b1f5045171b714c74ec2d5745de5600e30ac87d4ff964c889a6839c691589e1d04c765641bea749073f223bfadd7cdfc4
6
+ metadata.gz: 506f5cc8458023eec0eb728a6692e708d762789e7e4f80ec388fb553bf0f6088cbd04d4b6773591b6184f54c13c3f555ae43b02527d2625f983eff5428971475
7
+ data.tar.gz: 2e299d4d661064c02f7643246a2e591ee27779cc4814adbfad78bd1e06530fc2c8f9d0988927cd8d619c4f5b50db95a72e4ccf5adbcf1fdebd193565133a3362
data/CHANGELOG.md CHANGED
@@ -1,6 +1,18 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.96.0 (2023-10-18)
5
+ ------------------
6
+
7
+ * Feature - Updating descriptions for several APIs.
8
+
9
+ 1.95.0 (2023-09-27)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
14
+ * Feature - Simple attributes conversion for item data returned in `ConditionalCheckFailedException` and other exceptions. (Breaking change / bug fix)
15
+
4
16
  1.94.0 (2023-09-26)
5
17
  ------------------
6
18
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.94.0
1
+ 1.96.0
@@ -3467,9 +3467,9 @@ module Aws::DynamoDB
3467
3467
  #
3468
3468
  # @option params [String] :export_type
3469
3469
  # Choice of whether to execute as a full export or incremental export.
3470
- # Valid values are `FULL_EXPORT` or `INCREMENTAL_EXPORT`. If
3471
- # `INCREMENTAL_EXPORT` is provided, the `IncrementalExportSpecification`
3472
- # must also be used.
3470
+ # Valid values are FULL\_EXPORT or INCREMENTAL\_EXPORT. The default
3471
+ # value is FULL\_EXPORT. If INCREMENTAL\_EXPORT is provided, the
3472
+ # IncrementalExportSpecification must also be used.
3473
3473
  #
3474
3474
  # @option params [Types::IncrementalExportSpecification] :incremental_export_specification
3475
3475
  # Optional object containing the parameters specific to an incremental
@@ -5839,7 +5839,7 @@ module Aws::DynamoDB
5839
5839
  #
5840
5840
  #
5841
5841
  #
5842
- # [1]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/QueryAndScan.html#Query.FilterExpression
5842
+ # [1]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Scan.html#Scan.FilterExpression
5843
5843
  #
5844
5844
  # @option params [Hash<String,String>] :expression_attribute_names
5845
5845
  # One or more substitution tokens for attribute names in an expression.
@@ -7861,7 +7861,7 @@ module Aws::DynamoDB
7861
7861
  params: params,
7862
7862
  config: config)
7863
7863
  context[:gem_name] = 'aws-sdk-dynamodb'
7864
- context[:gem_version] = '1.94.0'
7864
+ context[:gem_version] = '1.96.0'
7865
7865
  Seahorse::Client::Request.new(handlers, context)
7866
7866
  end
7867
7867
 
@@ -32,8 +32,8 @@ module Aws::DynamoDB
32
32
  raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
33
33
  end
34
34
  if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
35
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
36
- if Aws::Endpoints::Matchers.string_equals?("aws-us-gov", Aws::Endpoints::Matchers.attr(partition_result, "name"))
35
+ if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
36
+ if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-us-gov")
37
37
  return Aws::Endpoints::Endpoint.new(url: "https://dynamodb.#{region}.amazonaws.com", headers: {}, properties: {})
38
38
  end
39
39
  return Aws::Endpoints::Endpoint.new(url: "https://dynamodb-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
@@ -83,11 +83,11 @@ module Aws
83
83
  # # note that the request `:key` had to be type prefixed
84
84
  # resp = dynamodb.get(table_name: 'aws-sdk', key: { 'id' => { s: 'uuid' }})
85
85
  # resp.item
86
- # # {
87
- # # "id"=> <struct s='uuid', n=nil, b=nil, ss=nil, ns=nil, bs=nil, m=nil, l=nil, null=nil, bool=nil>
88
- # # "age"=> <struct s=nil, n="35", b=nil, ss=nil, ns=nil, bs=nil, m=nil, l=nil, null=nil, bool=nil>
89
- # # ...
90
- # # }
86
+ # {
87
+ # "id"=> <struct s='uuid', n=nil, b=nil, ss=nil, ns=nil, bs=nil, m=nil, l=nil, null=nil, bool=nil>
88
+ # "age"=> <struct s=nil, n="35", b=nil, ss=nil, ns=nil, bs=nil, m=nil, l=nil, null=nil, bool=nil>
89
+ # ...
90
+ # }
91
91
  #
92
92
  class SimpleAttributes < Seahorse::Client::Plugin
93
93
 
@@ -119,12 +119,15 @@ their types specified, e.g. `{ s: 'abc' }` instead of simply
119
119
  @handler.call(context).on(200) do |response|
120
120
  response.data = translate_output(response)
121
121
  end
122
+ rescue Aws::Errors::ServiceError => e
123
+ e.data = translate_error_data(context, e.data)
124
+ raise e
122
125
  end
123
126
 
124
127
  private
125
128
 
126
129
  def translate_input(context)
127
- if shape = context.operation.input
130
+ if (shape = context.operation.input)
128
131
  ValueTranslator.new(shape, :marshal).apply(context.params)
129
132
  else
130
133
  context.params
@@ -132,13 +135,24 @@ their types specified, e.g. `{ s: 'abc' }` instead of simply
132
135
  end
133
136
 
134
137
  def translate_output(response)
135
- if shape = response.context.operation.output
138
+ if (shape = response.context.operation.output)
136
139
  ValueTranslator.new(shape, :unmarshal).apply(response.data)
137
140
  else
138
141
  response.data
139
142
  end
140
143
  end
141
144
 
145
+ def translate_error_data(context, error_data)
146
+ shape = context.operation.errors.find do |e|
147
+ error_data.is_a?(e.shape.struct_class)
148
+ end
149
+ if shape
150
+ ValueTranslator.new(shape, :unmarshal).apply(error_data)
151
+ else
152
+ error_data
153
+ end
154
+ end
155
+
142
156
  end
143
157
 
144
158
  # @api private
@@ -1681,7 +1681,7 @@ module Aws::DynamoDB
1681
1681
  #
1682
1682
  #
1683
1683
  #
1684
- # [1]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/QueryAndScan.html#Query.FilterExpression
1684
+ # [1]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Scan.html#Scan.FilterExpression
1685
1685
  # @option options [Hash<String,String>] :expression_attribute_names
1686
1686
  # One or more substitution tokens for attribute names in an expression.
1687
1687
  # The following are some use cases for using `ExpressionAttributeNames`:
@@ -3501,10 +3501,8 @@ module Aws::DynamoDB
3501
3501
  # @return [Integer]
3502
3502
  #
3503
3503
  # @!attribute [rw] export_type
3504
- # Choice of whether to execute as a full export or incremental export.
3505
- # Valid values are `FULL_EXPORT` or `INCREMENTAL_EXPORT`. If
3506
- # `INCREMENTAL_EXPORT` is provided, the
3507
- # `IncrementalExportSpecification` must also be used.
3504
+ # The type of export that was performed. Valid values are
3505
+ # `FULL_EXPORT` or `INCREMENTAL_EXPORT`.
3508
3506
  # @return [String]
3509
3507
  #
3510
3508
  # @!attribute [rw] incremental_export_specification
@@ -3565,10 +3563,8 @@ module Aws::DynamoDB
3565
3563
  # @return [String]
3566
3564
  #
3567
3565
  # @!attribute [rw] export_type
3568
- # Choice of whether to execute as a full export or incremental export.
3569
- # Valid values are `FULL_EXPORT` or `INCREMENTAL_EXPORT`. If
3570
- # `INCREMENTAL_EXPORT` is provided, the
3571
- # `IncrementalExportSpecification` must also be used.
3566
+ # The type of export that was performed. Valid values are
3567
+ # `FULL_EXPORT` or `INCREMENTAL_EXPORT`.
3572
3568
  # @return [String]
3573
3569
  #
3574
3570
  # @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/ExportSummary AWS API Documentation
@@ -3645,9 +3641,9 @@ module Aws::DynamoDB
3645
3641
  #
3646
3642
  # @!attribute [rw] export_type
3647
3643
  # Choice of whether to execute as a full export or incremental export.
3648
- # Valid values are `FULL_EXPORT` or `INCREMENTAL_EXPORT`. If
3649
- # `INCREMENTAL_EXPORT` is provided, the
3650
- # `IncrementalExportSpecification` must also be used.
3644
+ # Valid values are FULL\_EXPORT or INCREMENTAL\_EXPORT. The default
3645
+ # value is FULL\_EXPORT. If INCREMENTAL\_EXPORT is provided, the
3646
+ # IncrementalExportSpecification must also be used.
3651
3647
  # @return [String]
3652
3648
  #
3653
3649
  # @!attribute [rw] incremental_export_specification
@@ -4612,9 +4608,9 @@ module Aws::DynamoDB
4612
4608
  # @return [Time]
4613
4609
  #
4614
4610
  # @!attribute [rw] export_view_type
4615
- # Choice of whether to output the previous item image prior to the
4616
- # start time of the incremental export. Valid values are
4617
- # `NEW_AND_OLD_IMAGES` and `NEW_IMAGES`.
4611
+ # The view type that was chosen for the export. Valid values are
4612
+ # `NEW_AND_OLD_IMAGES` and `NEW_IMAGES`. The default value is
4613
+ # `NEW_AND_OLD_IMAGES`.
4618
4614
  # @return [String]
4619
4615
  #
4620
4616
  # @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/IncrementalExportSpecification AWS API Documentation
@@ -7743,7 +7739,7 @@ module Aws::DynamoDB
7743
7739
  #
7744
7740
  #
7745
7741
  #
7746
- # [1]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/QueryAndScan.html#Query.FilterExpression
7742
+ # [1]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Scan.html#Scan.FilterExpression
7747
7743
  # @return [String]
7748
7744
  #
7749
7745
  # @!attribute [rw] expression_attribute_names
@@ -8872,6 +8868,11 @@ module Aws::DynamoDB
8872
8868
  #
8873
8869
  # * There is a user error, such as an invalid data format.
8874
8870
  #
8871
+ # * There is an ongoing `TransactWriteItems` operation that conflicts
8872
+ # with a concurrent `TransactWriteItems` request. In this case the
8873
+ # `TransactWriteItems` operation fails with a
8874
+ # `TransactionCanceledException`.
8875
+ #
8875
8876
  # DynamoDB cancels a `TransactGetItems` request under the following
8876
8877
  # circumstances:
8877
8878
  #
@@ -54,6 +54,6 @@ require_relative 'aws-sdk-dynamodb/customizations'
54
54
  # @!group service
55
55
  module Aws::DynamoDB
56
56
 
57
- GEM_VERSION = '1.94.0'
57
+ GEM_VERSION = '1.96.0'
58
58
 
59
59
  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.94.0
4
+ version: 1.96.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: 2023-09-26 00:00:00.000000000 Z
11
+ date: 2023-10-18 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.177.0
22
+ version: 3.184.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.177.0
32
+ version: 3.184.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement