aws-sdk-dynamodb 1.77.0 → 1.79.0

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.
@@ -0,0 +1,174 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+
11
+ module Aws::DynamoDB
12
+ module Plugins
13
+ class Endpoints < Seahorse::Client::Plugin
14
+ option(
15
+ :endpoint_provider,
16
+ doc_type: 'Aws::DynamoDB::EndpointProvider',
17
+ docstring: 'The endpoint provider used to resolve endpoints. Any '\
18
+ 'object that responds to `#resolve_endpoint(parameters)` '\
19
+ 'where `parameters` is a Struct similar to '\
20
+ '`Aws::DynamoDB::EndpointParameters`'
21
+ ) do |cfg|
22
+ Aws::DynamoDB::EndpointProvider.new
23
+ end
24
+
25
+ # @api private
26
+ class Handler < Seahorse::Client::Handler
27
+ def call(context)
28
+ # If endpoint was discovered, do not resolve or apply the endpoint.
29
+ unless context[:discovered_endpoint]
30
+ params = parameters_for_operation(context)
31
+ endpoint = context.config.endpoint_provider.resolve_endpoint(params)
32
+
33
+ context.http_request.endpoint = endpoint.url
34
+ apply_endpoint_headers(context, endpoint.headers)
35
+ end
36
+
37
+ context[:endpoint_params] = params
38
+ context[:auth_scheme] =
39
+ Aws::Endpoints.resolve_auth_scheme(context, endpoint)
40
+
41
+ @handler.call(context)
42
+ end
43
+
44
+ private
45
+
46
+ def apply_endpoint_headers(context, headers)
47
+ headers.each do |key, values|
48
+ value = values
49
+ .compact
50
+ .map { |s| Seahorse::Util.escape_header_list_string(s.to_s) }
51
+ .join(',')
52
+
53
+ context.http_request.headers[key] = value
54
+ end
55
+ end
56
+
57
+ def parameters_for_operation(context)
58
+ case context.operation_name
59
+ when :batch_execute_statement
60
+ Aws::DynamoDB::Endpoints::BatchExecuteStatement.build(context)
61
+ when :batch_get_item
62
+ Aws::DynamoDB::Endpoints::BatchGetItem.build(context)
63
+ when :batch_write_item
64
+ Aws::DynamoDB::Endpoints::BatchWriteItem.build(context)
65
+ when :create_backup
66
+ Aws::DynamoDB::Endpoints::CreateBackup.build(context)
67
+ when :create_global_table
68
+ Aws::DynamoDB::Endpoints::CreateGlobalTable.build(context)
69
+ when :create_table
70
+ Aws::DynamoDB::Endpoints::CreateTable.build(context)
71
+ when :delete_backup
72
+ Aws::DynamoDB::Endpoints::DeleteBackup.build(context)
73
+ when :delete_item
74
+ Aws::DynamoDB::Endpoints::DeleteItem.build(context)
75
+ when :delete_table
76
+ Aws::DynamoDB::Endpoints::DeleteTable.build(context)
77
+ when :describe_backup
78
+ Aws::DynamoDB::Endpoints::DescribeBackup.build(context)
79
+ when :describe_continuous_backups
80
+ Aws::DynamoDB::Endpoints::DescribeContinuousBackups.build(context)
81
+ when :describe_contributor_insights
82
+ Aws::DynamoDB::Endpoints::DescribeContributorInsights.build(context)
83
+ when :describe_endpoints
84
+ Aws::DynamoDB::Endpoints::DescribeEndpoints.build(context)
85
+ when :describe_export
86
+ Aws::DynamoDB::Endpoints::DescribeExport.build(context)
87
+ when :describe_global_table
88
+ Aws::DynamoDB::Endpoints::DescribeGlobalTable.build(context)
89
+ when :describe_global_table_settings
90
+ Aws::DynamoDB::Endpoints::DescribeGlobalTableSettings.build(context)
91
+ when :describe_import
92
+ Aws::DynamoDB::Endpoints::DescribeImport.build(context)
93
+ when :describe_kinesis_streaming_destination
94
+ Aws::DynamoDB::Endpoints::DescribeKinesisStreamingDestination.build(context)
95
+ when :describe_limits
96
+ Aws::DynamoDB::Endpoints::DescribeLimits.build(context)
97
+ when :describe_table
98
+ Aws::DynamoDB::Endpoints::DescribeTable.build(context)
99
+ when :describe_table_replica_auto_scaling
100
+ Aws::DynamoDB::Endpoints::DescribeTableReplicaAutoScaling.build(context)
101
+ when :describe_time_to_live
102
+ Aws::DynamoDB::Endpoints::DescribeTimeToLive.build(context)
103
+ when :disable_kinesis_streaming_destination
104
+ Aws::DynamoDB::Endpoints::DisableKinesisStreamingDestination.build(context)
105
+ when :enable_kinesis_streaming_destination
106
+ Aws::DynamoDB::Endpoints::EnableKinesisStreamingDestination.build(context)
107
+ when :execute_statement
108
+ Aws::DynamoDB::Endpoints::ExecuteStatement.build(context)
109
+ when :execute_transaction
110
+ Aws::DynamoDB::Endpoints::ExecuteTransaction.build(context)
111
+ when :export_table_to_point_in_time
112
+ Aws::DynamoDB::Endpoints::ExportTableToPointInTime.build(context)
113
+ when :get_item
114
+ Aws::DynamoDB::Endpoints::GetItem.build(context)
115
+ when :import_table
116
+ Aws::DynamoDB::Endpoints::ImportTable.build(context)
117
+ when :list_backups
118
+ Aws::DynamoDB::Endpoints::ListBackups.build(context)
119
+ when :list_contributor_insights
120
+ Aws::DynamoDB::Endpoints::ListContributorInsights.build(context)
121
+ when :list_exports
122
+ Aws::DynamoDB::Endpoints::ListExports.build(context)
123
+ when :list_global_tables
124
+ Aws::DynamoDB::Endpoints::ListGlobalTables.build(context)
125
+ when :list_imports
126
+ Aws::DynamoDB::Endpoints::ListImports.build(context)
127
+ when :list_tables
128
+ Aws::DynamoDB::Endpoints::ListTables.build(context)
129
+ when :list_tags_of_resource
130
+ Aws::DynamoDB::Endpoints::ListTagsOfResource.build(context)
131
+ when :put_item
132
+ Aws::DynamoDB::Endpoints::PutItem.build(context)
133
+ when :query
134
+ Aws::DynamoDB::Endpoints::Query.build(context)
135
+ when :restore_table_from_backup
136
+ Aws::DynamoDB::Endpoints::RestoreTableFromBackup.build(context)
137
+ when :restore_table_to_point_in_time
138
+ Aws::DynamoDB::Endpoints::RestoreTableToPointInTime.build(context)
139
+ when :scan
140
+ Aws::DynamoDB::Endpoints::Scan.build(context)
141
+ when :tag_resource
142
+ Aws::DynamoDB::Endpoints::TagResource.build(context)
143
+ when :transact_get_items
144
+ Aws::DynamoDB::Endpoints::TransactGetItems.build(context)
145
+ when :transact_write_items
146
+ Aws::DynamoDB::Endpoints::TransactWriteItems.build(context)
147
+ when :untag_resource
148
+ Aws::DynamoDB::Endpoints::UntagResource.build(context)
149
+ when :update_continuous_backups
150
+ Aws::DynamoDB::Endpoints::UpdateContinuousBackups.build(context)
151
+ when :update_contributor_insights
152
+ Aws::DynamoDB::Endpoints::UpdateContributorInsights.build(context)
153
+ when :update_global_table
154
+ Aws::DynamoDB::Endpoints::UpdateGlobalTable.build(context)
155
+ when :update_global_table_settings
156
+ Aws::DynamoDB::Endpoints::UpdateGlobalTableSettings.build(context)
157
+ when :update_item
158
+ Aws::DynamoDB::Endpoints::UpdateItem.build(context)
159
+ when :update_table
160
+ Aws::DynamoDB::Endpoints::UpdateTable.build(context)
161
+ when :update_table_replica_auto_scaling
162
+ Aws::DynamoDB::Endpoints::UpdateTableReplicaAutoScaling.build(context)
163
+ when :update_time_to_live
164
+ Aws::DynamoDB::Endpoints::UpdateTimeToLive.build(context)
165
+ end
166
+ end
167
+ end
168
+
169
+ def add_handlers(handlers, _config)
170
+ handlers.add(Handler, step: :build, priority: 75)
171
+ end
172
+ end
173
+ end
174
+ end
@@ -86,7 +86,8 @@ module Aws::DynamoDB
86
86
  #
87
87
  # * `CREATING` - The table is being created.
88
88
  #
89
- # * `UPDATING` - The table is being updated.
89
+ # * `UPDATING` - The table/index configuration is being updated. The
90
+ # table/index remains available for data operations when `UPDATING`.
90
91
  #
91
92
  # * `DELETING` - The table is being deleted.
92
93
  #
@@ -1200,7 +1200,7 @@ module Aws::DynamoDB
1200
1200
  # A map of tables and requests against those tables that were not
1201
1201
  # processed. The `UnprocessedItems` value is in the same form as
1202
1202
  # `RequestItems`, so you can provide this value directly to a
1203
- # subsequent `BatchGetItem` operation. For more information, see
1203
+ # subsequent `BatchWriteItem` operation. For more information, see
1204
1204
  # `RequestItems` in the Request Parameters section.
1205
1205
  #
1206
1206
  # Each `UnprocessedItems` entry consists of a table name and, for that
@@ -1279,7 +1279,18 @@ module Aws::DynamoDB
1279
1279
  include Aws::Structure
1280
1280
  end
1281
1281
 
1282
- # Contains the details for the read/write capacity mode.
1282
+ # Contains the details for the read/write capacity mode. This page talks
1283
+ # about `PROVISIONED` and `PAY_PER_REQUEST` billing modes. For more
1284
+ # information about these modes, see [Read/write capacity mode][1].
1285
+ #
1286
+ # <note markdown="1"> You may need to switch to on-demand mode at least once in order to
1287
+ # return a `BillingModeSummary` response.
1288
+ #
1289
+ # </note>
1290
+ #
1291
+ #
1292
+ #
1293
+ # [1]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.ReadWriteCapacityMode.html
1283
1294
  #
1284
1295
  # @!attribute [rw] billing_mode
1285
1296
  # Controls how you are charged for read and write throughput and how
@@ -5619,15 +5630,18 @@ module Aws::DynamoDB
5619
5630
  # There is no limit to the number of daily on-demand backups that can be
5620
5631
  # taken.
5621
5632
  #
5622
- # Up to 500 simultaneous table operations are allowed per account. These
5623
- # operations include `CreateTable`, `UpdateTable`,
5633
+ # For most purposes, up to 500 simultaneous table operations are allowed
5634
+ # per account. These operations include `CreateTable`, `UpdateTable`,
5624
5635
  # `DeleteTable`,`UpdateTimeToLive`, `RestoreTableFromBackup`, and
5625
5636
  # `RestoreTableToPointInTime`.
5626
5637
  #
5627
- # The only exception is when you are creating a table with one or more
5628
- # secondary indexes. You can have up to 250 such requests running at a
5629
- # time; however, if the table or index specifications are complex,
5630
- # DynamoDB might temporarily reduce the number of concurrent operations.
5638
+ # When you are creating a table with one or more secondary indexes, you
5639
+ # can have up to 250 such requests running at a time. However, if the
5640
+ # table or index specifications are complex, then DynamoDB might
5641
+ # temporarily reduce the number of concurrent operations.
5642
+ #
5643
+ # When importing into DynamoDB, up to 50 simultaneous import table
5644
+ # operations are allowed per account.
5631
5645
  #
5632
5646
  # There is a soft account quota of 2,500 tables.
5633
5647
  #
@@ -7722,7 +7736,8 @@ module Aws::DynamoDB
7722
7736
  #
7723
7737
  # * `CREATING` - The index is being created.
7724
7738
  #
7725
- # * `UPDATING` - The index is being updated.
7739
+ # * `UPDATING` - The table/index configuration is being updated. The
7740
+ # table/index remains available for data operations when `UPDATING`
7726
7741
  #
7727
7742
  # * `DELETING` - The index is being deleted.
7728
7743
  #
@@ -9486,7 +9501,8 @@ module Aws::DynamoDB
9486
9501
  #
9487
9502
  # * `CREATING` - The table is being created.
9488
9503
  #
9489
- # * `UPDATING` - The table is being updated.
9504
+ # * `UPDATING` - The table/index configuration is being updated. The
9505
+ # table/index remains available for data operations when `UPDATING`.
9490
9506
  #
9491
9507
  # * `DELETING` - The table is being deleted.
9492
9508
  #
@@ -13,10 +13,14 @@ require 'aws-sigv4'
13
13
 
14
14
  require_relative 'aws-sdk-dynamodb/types'
15
15
  require_relative 'aws-sdk-dynamodb/client_api'
16
+ require_relative 'aws-sdk-dynamodb/plugins/endpoints.rb'
16
17
  require_relative 'aws-sdk-dynamodb/client'
17
18
  require_relative 'aws-sdk-dynamodb/errors'
18
19
  require_relative 'aws-sdk-dynamodb/waiters'
19
20
  require_relative 'aws-sdk-dynamodb/resource'
21
+ require_relative 'aws-sdk-dynamodb/endpoint_parameters'
22
+ require_relative 'aws-sdk-dynamodb/endpoint_provider'
23
+ require_relative 'aws-sdk-dynamodb/endpoints'
20
24
  require_relative 'aws-sdk-dynamodb/table'
21
25
  require_relative 'aws-sdk-dynamodb/customizations'
22
26
 
@@ -50,6 +54,6 @@ require_relative 'aws-sdk-dynamodb/customizations'
50
54
  # @!group service
51
55
  module Aws::DynamoDB
52
56
 
53
- GEM_VERSION = '1.77.0'
57
+ GEM_VERSION = '1.79.0'
54
58
 
55
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.77.0
4
+ version: 1.79.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-09-15 00:00:00.000000000 Z
11
+ date: 2022-11-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.127.0
22
+ version: 3.165.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.127.0
32
+ version: 3.165.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -61,8 +61,12 @@ files:
61
61
  - lib/aws-sdk-dynamodb/client_api.rb
62
62
  - lib/aws-sdk-dynamodb/customizations.rb
63
63
  - lib/aws-sdk-dynamodb/customizations/client.rb
64
+ - lib/aws-sdk-dynamodb/endpoint_parameters.rb
65
+ - lib/aws-sdk-dynamodb/endpoint_provider.rb
66
+ - lib/aws-sdk-dynamodb/endpoints.rb
64
67
  - lib/aws-sdk-dynamodb/errors.rb
65
68
  - lib/aws-sdk-dynamodb/plugins/crc32_validation.rb
69
+ - lib/aws-sdk-dynamodb/plugins/endpoints.rb
66
70
  - lib/aws-sdk-dynamodb/plugins/extended_retries.rb
67
71
  - lib/aws-sdk-dynamodb/plugins/simple_attributes.rb
68
72
  - lib/aws-sdk-dynamodb/resource.rb