@aws-sdk/client-dynamodb 3.36.0 → 3.39.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.
- package/CHANGELOG.md +42 -0
- package/dist-cjs/DynamoDB.js +0 -21
- package/dist-cjs/DynamoDBClient.js +0 -26
- package/dist-cjs/commands/BatchExecuteStatementCommand.js +0 -26
- package/dist-cjs/commands/BatchGetItemCommand.js +0 -69
- package/dist-cjs/commands/BatchWriteItemCommand.js +0 -98
- package/dist-cjs/commands/CreateBackupCommand.js +0 -53
- package/dist-cjs/commands/CreateGlobalTableCommand.js +0 -91
- package/dist-cjs/commands/CreateTableCommand.js +0 -36
- package/dist-cjs/commands/DeleteBackupCommand.js +0 -25
- package/dist-cjs/commands/DeleteItemCommand.js +0 -29
- package/dist-cjs/commands/DeleteTableCommand.js +0 -40
- package/dist-cjs/commands/DescribeBackupCommand.js +0 -25
- package/dist-cjs/commands/DescribeContinuousBackupsCommand.js +0 -34
- package/dist-cjs/commands/DescribeContributorInsightsCommand.js +0 -24
- package/dist-cjs/commands/DescribeEndpointsCommand.js +0 -24
- package/dist-cjs/commands/DescribeExportCommand.js +0 -24
- package/dist-cjs/commands/DescribeGlobalTableCommand.js +0 -28
- package/dist-cjs/commands/DescribeGlobalTableSettingsCommand.js +0 -27
- package/dist-cjs/commands/DescribeKinesisStreamingDestinationCommand.js +0 -24
- package/dist-cjs/commands/DescribeLimitsCommand.js +0 -87
- package/dist-cjs/commands/DescribeTableCommand.js +0 -30
- package/dist-cjs/commands/DescribeTableReplicaAutoScalingCommand.js +0 -27
- package/dist-cjs/commands/DescribeTimeToLiveCommand.js +0 -24
- package/dist-cjs/commands/DisableKinesisStreamingDestinationCommand.js +0 -25
- package/dist-cjs/commands/EnableKinesisStreamingDestinationCommand.js +0 -27
- package/dist-cjs/commands/ExecuteStatementCommand.js +0 -26
- package/dist-cjs/commands/ExecuteTransactionCommand.js +0 -26
- package/dist-cjs/commands/ExportTableToPointInTimeCommand.js +0 -26
- package/dist-cjs/commands/GetItemCommand.js +0 -30
- package/dist-cjs/commands/ListBackupsCommand.js +0 -30
- package/dist-cjs/commands/ListContributorInsightsCommand.js +0 -24
- package/dist-cjs/commands/ListExportsCommand.js +0 -24
- package/dist-cjs/commands/ListGlobalTablesCommand.js +0 -27
- package/dist-cjs/commands/ListTablesCommand.js +0 -26
- package/dist-cjs/commands/ListTagsOfResourceCommand.js +0 -27
- package/dist-cjs/commands/PutItemCommand.js +0 -91
- package/dist-cjs/commands/QueryCommand.js +0 -79
- package/dist-cjs/commands/RestoreTableFromBackupCommand.js +0 -48
- package/dist-cjs/commands/RestoreTableToPointInTimeCommand.js +0 -79
- package/dist-cjs/commands/ScanCommand.js +0 -48
- package/dist-cjs/commands/TagResourceCommand.js +0 -30
- package/dist-cjs/commands/TransactGetItemsCommand.js +0 -49
- package/dist-cjs/commands/TransactWriteItemsCommand.js +0 -97
- package/dist-cjs/commands/UntagResourceCommand.js +0 -28
- package/dist-cjs/commands/UpdateContinuousBackupsCommand.js +0 -35
- package/dist-cjs/commands/UpdateContributorInsightsCommand.js +0 -24
- package/dist-cjs/commands/UpdateGlobalTableCommand.js +0 -52
- package/dist-cjs/commands/UpdateGlobalTableSettingsCommand.js +0 -24
- package/dist-cjs/commands/UpdateItemCommand.js +0 -26
- package/dist-cjs/commands/UpdateTableCommand.js +0 -46
- package/dist-cjs/commands/UpdateTableReplicaAutoScalingCommand.js +0 -27
- package/dist-cjs/commands/UpdateTimeToLiveCommand.js +0 -48
- package/dist-cjs/commands/index.js +53 -0
- package/dist-cjs/endpoints.js +6 -1
- package/dist-cjs/index.js +5 -60
- package/dist-cjs/models/models_0.js +0 -660
- package/dist-cjs/pagination/ListContributorInsightsPaginator.js +0 -10
- package/dist-cjs/pagination/ListExportsPaginator.js +0 -10
- package/dist-cjs/pagination/ListTablesPaginator.js +0 -10
- package/dist-cjs/pagination/QueryPaginator.js +0 -10
- package/dist-cjs/pagination/ScanPaginator.js +0 -10
- package/dist-cjs/pagination/index.js +9 -0
- package/dist-cjs/protocols/Aws_json1_0.js +0 -5
- package/dist-cjs/runtimeConfig.browser.js +1 -5
- package/dist-cjs/runtimeConfig.js +1 -5
- package/dist-cjs/runtimeConfig.native.js +0 -3
- package/dist-cjs/runtimeConfig.shared.js +0 -3
- package/dist-cjs/waiters/index.js +5 -0
- package/dist-cjs/waiters/waitForTableExists.js +0 -9
- package/dist-cjs/waiters/waitForTableNotExists.js +0 -9
- package/dist-es/commands/index.js +50 -0
- package/dist-es/endpoints.js +6 -1
- package/dist-es/index.js +5 -60
- package/dist-es/pagination/index.js +6 -0
- package/dist-es/waiters/index.js +2 -0
- package/dist-types/commands/index.d.ts +50 -0
- package/dist-types/index.d.ts +5 -60
- package/dist-types/pagination/index.d.ts +6 -0
- package/dist-types/ts3.4/DynamoDB.d.ts +51 -965
- package/dist-types/ts3.4/DynamoDBClient.d.ts +25 -112
- package/dist-types/ts3.4/commands/BatchExecuteStatementCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/BatchGetItemCommand.d.ts +2 -65
- package/dist-types/ts3.4/commands/BatchWriteItemCommand.d.ts +2 -94
- package/dist-types/ts3.4/commands/CreateBackupCommand.d.ts +2 -49
- package/dist-types/ts3.4/commands/CreateGlobalTableCommand.d.ts +2 -87
- package/dist-types/ts3.4/commands/CreateTableCommand.d.ts +2 -32
- package/dist-types/ts3.4/commands/DeleteBackupCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/DeleteItemCommand.d.ts +2 -25
- package/dist-types/ts3.4/commands/DeleteTableCommand.d.ts +2 -36
- package/dist-types/ts3.4/commands/DescribeBackupCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/DescribeContinuousBackupsCommand.d.ts +2 -30
- package/dist-types/ts3.4/commands/DescribeContributorInsightsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DescribeEndpointsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DescribeExportCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DescribeGlobalTableCommand.d.ts +2 -24
- package/dist-types/ts3.4/commands/DescribeGlobalTableSettingsCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/DescribeKinesisStreamingDestinationCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DescribeLimitsCommand.d.ts +2 -83
- package/dist-types/ts3.4/commands/DescribeTableCommand.d.ts +2 -26
- package/dist-types/ts3.4/commands/DescribeTableReplicaAutoScalingCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/DescribeTimeToLiveCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DisableKinesisStreamingDestinationCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/EnableKinesisStreamingDestinationCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/ExecuteStatementCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/ExecuteTransactionCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/ExportTableToPointInTimeCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/GetItemCommand.d.ts +2 -26
- package/dist-types/ts3.4/commands/ListBackupsCommand.d.ts +2 -26
- package/dist-types/ts3.4/commands/ListContributorInsightsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListExportsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListGlobalTablesCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/ListTablesCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/ListTagsOfResourceCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/PutItemCommand.d.ts +2 -87
- package/dist-types/ts3.4/commands/QueryCommand.d.ts +2 -75
- package/dist-types/ts3.4/commands/RestoreTableFromBackupCommand.d.ts +2 -44
- package/dist-types/ts3.4/commands/RestoreTableToPointInTimeCommand.d.ts +2 -75
- package/dist-types/ts3.4/commands/ScanCommand.d.ts +2 -44
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +2 -26
- package/dist-types/ts3.4/commands/TransactGetItemsCommand.d.ts +2 -45
- package/dist-types/ts3.4/commands/TransactWriteItemsCommand.d.ts +2 -93
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +2 -24
- package/dist-types/ts3.4/commands/UpdateContinuousBackupsCommand.d.ts +2 -31
- package/dist-types/ts3.4/commands/UpdateContributorInsightsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/UpdateGlobalTableCommand.d.ts +2 -48
- package/dist-types/ts3.4/commands/UpdateGlobalTableSettingsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/UpdateItemCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/UpdateTableCommand.d.ts +2 -42
- package/dist-types/ts3.4/commands/UpdateTableReplicaAutoScalingCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/UpdateTimeToLiveCommand.d.ts +2 -44
- package/dist-types/ts3.4/commands/index.d.ts +50 -0
- package/dist-types/ts3.4/index.d.ts +5 -60
- package/dist-types/ts3.4/models/models_0.d.ts +1022 -6658
- package/dist-types/ts3.4/pagination/index.d.ts +6 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/dist-types/ts3.4/waiters/index.d.ts +2 -0
- package/dist-types/ts3.4/waiters/waitForTableExists.d.ts +2 -9
- package/dist-types/ts3.4/waiters/waitForTableNotExists.d.ts +2 -9
- package/dist-types/waiters/index.d.ts +2 -0
- package/package.json +34 -34
|
@@ -60,148 +60,61 @@ import { UpdateTimeToLiveCommandInput, UpdateTimeToLiveCommandOutput } from "./c
|
|
|
60
60
|
export declare type ServiceInputTypes = BatchExecuteStatementCommandInput | BatchGetItemCommandInput | BatchWriteItemCommandInput | CreateBackupCommandInput | CreateGlobalTableCommandInput | CreateTableCommandInput | DeleteBackupCommandInput | DeleteItemCommandInput | DeleteTableCommandInput | DescribeBackupCommandInput | DescribeContinuousBackupsCommandInput | DescribeContributorInsightsCommandInput | DescribeEndpointsCommandInput | DescribeExportCommandInput | DescribeGlobalTableCommandInput | DescribeGlobalTableSettingsCommandInput | DescribeKinesisStreamingDestinationCommandInput | DescribeLimitsCommandInput | DescribeTableCommandInput | DescribeTableReplicaAutoScalingCommandInput | DescribeTimeToLiveCommandInput | DisableKinesisStreamingDestinationCommandInput | EnableKinesisStreamingDestinationCommandInput | ExecuteStatementCommandInput | ExecuteTransactionCommandInput | ExportTableToPointInTimeCommandInput | GetItemCommandInput | ListBackupsCommandInput | ListContributorInsightsCommandInput | ListExportsCommandInput | ListGlobalTablesCommandInput | ListTablesCommandInput | ListTagsOfResourceCommandInput | PutItemCommandInput | QueryCommandInput | RestoreTableFromBackupCommandInput | RestoreTableToPointInTimeCommandInput | ScanCommandInput | TagResourceCommandInput | TransactGetItemsCommandInput | TransactWriteItemsCommandInput | UntagResourceCommandInput | UpdateContinuousBackupsCommandInput | UpdateContributorInsightsCommandInput | UpdateGlobalTableCommandInput | UpdateGlobalTableSettingsCommandInput | UpdateItemCommandInput | UpdateTableCommandInput | UpdateTableReplicaAutoScalingCommandInput | UpdateTimeToLiveCommandInput;
|
|
61
61
|
export declare type ServiceOutputTypes = BatchExecuteStatementCommandOutput | BatchGetItemCommandOutput | BatchWriteItemCommandOutput | CreateBackupCommandOutput | CreateGlobalTableCommandOutput | CreateTableCommandOutput | DeleteBackupCommandOutput | DeleteItemCommandOutput | DeleteTableCommandOutput | DescribeBackupCommandOutput | DescribeContinuousBackupsCommandOutput | DescribeContributorInsightsCommandOutput | DescribeEndpointsCommandOutput | DescribeExportCommandOutput | DescribeGlobalTableCommandOutput | DescribeGlobalTableSettingsCommandOutput | DescribeKinesisStreamingDestinationCommandOutput | DescribeLimitsCommandOutput | DescribeTableCommandOutput | DescribeTableReplicaAutoScalingCommandOutput | DescribeTimeToLiveCommandOutput | DisableKinesisStreamingDestinationCommandOutput | EnableKinesisStreamingDestinationCommandOutput | ExecuteStatementCommandOutput | ExecuteTransactionCommandOutput | ExportTableToPointInTimeCommandOutput | GetItemCommandOutput | ListBackupsCommandOutput | ListContributorInsightsCommandOutput | ListExportsCommandOutput | ListGlobalTablesCommandOutput | ListTablesCommandOutput | ListTagsOfResourceCommandOutput | PutItemCommandOutput | QueryCommandOutput | RestoreTableFromBackupCommandOutput | RestoreTableToPointInTimeCommandOutput | ScanCommandOutput | TagResourceCommandOutput | TransactGetItemsCommandOutput | TransactWriteItemsCommandOutput | UntagResourceCommandOutput | UpdateContinuousBackupsCommandOutput | UpdateContributorInsightsCommandOutput | UpdateGlobalTableCommandOutput | UpdateGlobalTableSettingsCommandOutput | UpdateItemCommandOutput | UpdateTableCommandOutput | UpdateTableReplicaAutoScalingCommandOutput | UpdateTimeToLiveCommandOutput;
|
|
62
62
|
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
63
|
-
|
|
64
|
-
* The HTTP handler to use. Fetch in browser and Https in Nodejs.
|
|
65
|
-
*/
|
|
63
|
+
|
|
66
64
|
requestHandler?: __HttpHandler;
|
|
67
|
-
|
|
68
|
-
* A constructor for a class implementing the {@link __Hash} interface
|
|
69
|
-
* that computes the SHA-256 HMAC or checksum of a string or binary buffer.
|
|
70
|
-
* @internal
|
|
71
|
-
*/
|
|
65
|
+
|
|
72
66
|
sha256?: __HashConstructor;
|
|
73
|
-
|
|
74
|
-
* The function that will be used to convert strings into HTTP endpoints.
|
|
75
|
-
* @internal
|
|
76
|
-
*/
|
|
67
|
+
|
|
77
68
|
urlParser?: __UrlParser;
|
|
78
|
-
|
|
79
|
-
* A function that can calculate the length of a request body.
|
|
80
|
-
* @internal
|
|
81
|
-
*/
|
|
69
|
+
|
|
82
70
|
bodyLengthChecker?: (body: any) => number | undefined;
|
|
83
|
-
|
|
84
|
-
* A function that converts a stream into an array of bytes.
|
|
85
|
-
* @internal
|
|
86
|
-
*/
|
|
71
|
+
|
|
87
72
|
streamCollector?: __StreamCollector;
|
|
88
|
-
|
|
89
|
-
* The function that will be used to convert a base64-encoded string to a byte array.
|
|
90
|
-
* @internal
|
|
91
|
-
*/
|
|
73
|
+
|
|
92
74
|
base64Decoder?: __Decoder;
|
|
93
|
-
|
|
94
|
-
* The function that will be used to convert binary data to a base64-encoded string.
|
|
95
|
-
* @internal
|
|
96
|
-
*/
|
|
75
|
+
|
|
97
76
|
base64Encoder?: __Encoder;
|
|
98
|
-
|
|
99
|
-
* The function that will be used to convert a UTF8-encoded string to a byte array.
|
|
100
|
-
* @internal
|
|
101
|
-
*/
|
|
77
|
+
|
|
102
78
|
utf8Decoder?: __Decoder;
|
|
103
|
-
|
|
104
|
-
* The function that will be used to convert binary data to a UTF-8 encoded string.
|
|
105
|
-
* @internal
|
|
106
|
-
*/
|
|
79
|
+
|
|
107
80
|
utf8Encoder?: __Encoder;
|
|
108
|
-
|
|
109
|
-
* The runtime environment.
|
|
110
|
-
* @internal
|
|
111
|
-
*/
|
|
81
|
+
|
|
112
82
|
runtime?: string;
|
|
113
|
-
|
|
114
|
-
* Disable dyanamically changing the endpoint of the client based on the hostPrefix
|
|
115
|
-
* trait of an operation.
|
|
116
|
-
*/
|
|
83
|
+
|
|
117
84
|
disableHostPrefix?: boolean;
|
|
118
|
-
|
|
119
|
-
* Value for how many times a request will be made at most in case of retry.
|
|
120
|
-
*/
|
|
85
|
+
|
|
121
86
|
maxAttempts?: number | __Provider<number>;
|
|
122
|
-
|
|
123
|
-
* Specifies which retry algorithm to use.
|
|
124
|
-
*/
|
|
87
|
+
|
|
125
88
|
retryMode?: string | __Provider<string>;
|
|
126
|
-
|
|
127
|
-
* Optional logger for logging debug/info/warn/error.
|
|
128
|
-
*/
|
|
89
|
+
|
|
129
90
|
logger?: __Logger;
|
|
130
|
-
|
|
131
|
-
* Unique service identifier.
|
|
132
|
-
* @internal
|
|
133
|
-
*/
|
|
91
|
+
|
|
134
92
|
serviceId?: string;
|
|
135
|
-
|
|
136
|
-
* The AWS region to which this client will send requests
|
|
137
|
-
*/
|
|
93
|
+
|
|
138
94
|
region?: string | __Provider<string>;
|
|
139
|
-
|
|
140
|
-
* Default credentials provider; Not available in browser runtime.
|
|
141
|
-
* @internal
|
|
142
|
-
*/
|
|
95
|
+
|
|
143
96
|
credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
|
|
144
|
-
|
|
145
|
-
* Fetch related hostname, signing name or signing region with given region.
|
|
146
|
-
* @internal
|
|
147
|
-
*/
|
|
97
|
+
|
|
148
98
|
regionInfoProvider?: RegionInfoProvider;
|
|
149
|
-
|
|
150
|
-
* The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
|
|
151
|
-
* @internal
|
|
152
|
-
*/
|
|
99
|
+
|
|
153
100
|
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
154
|
-
|
|
155
|
-
* The provider which populates default for endpointDiscoveryEnabled configuration, if it's
|
|
156
|
-
* not passed during client creation.
|
|
157
|
-
* @internal
|
|
158
|
-
*/
|
|
101
|
+
|
|
159
102
|
endpointDiscoveryEnabledProvider?: __Provider<boolean | undefined>;
|
|
160
103
|
}
|
|
161
104
|
declare type DynamoDBClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig & EndpointDiscoveryInputConfig;
|
|
162
|
-
|
|
163
|
-
* The configuration interface of DynamoDBClient class constructor that set the region, credentials and other options.
|
|
164
|
-
*/
|
|
105
|
+
|
|
165
106
|
export interface DynamoDBClientConfig extends DynamoDBClientConfigType {
|
|
166
107
|
}
|
|
167
108
|
declare type DynamoDBClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RegionResolvedConfig & EndpointsResolvedConfig & RetryResolvedConfig & HostHeaderResolvedConfig & AwsAuthResolvedConfig & UserAgentResolvedConfig & EndpointDiscoveryResolvedConfig;
|
|
168
|
-
|
|
169
|
-
* The resolved configuration interface of DynamoDBClient class. This is resolved and normalized from the {@link DynamoDBClientConfig | constructor configuration interface}.
|
|
170
|
-
*/
|
|
109
|
+
|
|
171
110
|
export interface DynamoDBClientResolvedConfig extends DynamoDBClientResolvedConfigType {
|
|
172
111
|
}
|
|
173
|
-
|
|
174
|
-
* <fullname>Amazon DynamoDB</fullname>
|
|
175
|
-
*
|
|
176
|
-
*
|
|
177
|
-
* <p>Amazon DynamoDB is a fully managed NoSQL database service that provides fast and
|
|
178
|
-
* predictable performance with seamless scalability. DynamoDB lets you offload the
|
|
179
|
-
* administrative burdens of operating and scaling a distributed database, so that you don't have
|
|
180
|
-
* to worry about hardware provisioning, setup and configuration, replication, software patching,
|
|
181
|
-
* or cluster scaling.</p>
|
|
182
|
-
*
|
|
183
|
-
* <p>With DynamoDB, you can create database tables that can store and retrieve any amount of
|
|
184
|
-
* data, and serve any level of request traffic. You can scale up or scale down your tables'
|
|
185
|
-
* throughput capacity without downtime or performance degradation, and use the AWS Management
|
|
186
|
-
* Console to monitor resource utilization and performance metrics.</p>
|
|
187
|
-
*
|
|
188
|
-
* <p>DynamoDB automatically spreads the data and traffic for your tables over a sufficient
|
|
189
|
-
* number of servers to handle your throughput and storage requirements, while maintaining
|
|
190
|
-
* consistent and fast performance. All of your data is stored on solid state disks (SSDs) and
|
|
191
|
-
* automatically replicated across multiple Availability Zones in an AWS region, providing
|
|
192
|
-
* built-in high availability and data durability. </p>
|
|
193
|
-
*/
|
|
112
|
+
|
|
194
113
|
export declare class DynamoDBClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, DynamoDBClientResolvedConfig> {
|
|
195
|
-
|
|
196
|
-
* The resolved configuration of DynamoDBClient class. This is resolved and normalized from the {@link DynamoDBClientConfig | constructor configuration interface}.
|
|
197
|
-
*/
|
|
114
|
+
|
|
198
115
|
readonly config: DynamoDBClientResolvedConfig;
|
|
199
116
|
constructor(configuration: DynamoDBClientConfig);
|
|
200
|
-
|
|
201
|
-
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
202
|
-
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
203
|
-
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
204
|
-
*/
|
|
117
|
+
|
|
205
118
|
destroy(): void;
|
|
206
119
|
}
|
|
207
120
|
export {};
|
|
@@ -6,31 +6,11 @@ export interface BatchExecuteStatementCommandInput extends BatchExecuteStatement
|
|
|
6
6
|
}
|
|
7
7
|
export interface BatchExecuteStatementCommandOutput extends BatchExecuteStatementOutput, __MetadataBearer {
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
* <p>
|
|
11
|
-
* This operation allows you to perform batch reads and writes on data stored in DynamoDB, using PartiQL.
|
|
12
|
-
* </p>
|
|
13
|
-
* @example
|
|
14
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
15
|
-
* ```javascript
|
|
16
|
-
* import { DynamoDBClient, BatchExecuteStatementCommand } from "@aws-sdk/client-dynamodb"; // ES Modules import
|
|
17
|
-
* // const { DynamoDBClient, BatchExecuteStatementCommand } = require("@aws-sdk/client-dynamodb"); // CommonJS import
|
|
18
|
-
* const client = new DynamoDBClient(config);
|
|
19
|
-
* const command = new BatchExecuteStatementCommand(input);
|
|
20
|
-
* const response = await client.send(command);
|
|
21
|
-
* ```
|
|
22
|
-
*
|
|
23
|
-
* @see {@link BatchExecuteStatementCommandInput} for command's `input` shape.
|
|
24
|
-
* @see {@link BatchExecuteStatementCommandOutput} for command's `response` shape.
|
|
25
|
-
* @see {@link DynamoDBClientResolvedConfig | config} for command's `input` shape.
|
|
26
|
-
*
|
|
27
|
-
*/
|
|
9
|
+
|
|
28
10
|
export declare class BatchExecuteStatementCommand extends $Command<BatchExecuteStatementCommandInput, BatchExecuteStatementCommandOutput, DynamoDBClientResolvedConfig> {
|
|
29
11
|
readonly input: BatchExecuteStatementCommandInput;
|
|
30
12
|
constructor(input: BatchExecuteStatementCommandInput);
|
|
31
|
-
|
|
32
|
-
* @internal
|
|
33
|
-
*/
|
|
13
|
+
|
|
34
14
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: DynamoDBClientResolvedConfig, options?: __HttpHandlerOptions): Handler<BatchExecuteStatementCommandInput, BatchExecuteStatementCommandOutput>;
|
|
35
15
|
private serialize;
|
|
36
16
|
private deserialize;
|
|
@@ -6,74 +6,11 @@ export interface BatchGetItemCommandInput extends BatchGetItemInput {
|
|
|
6
6
|
}
|
|
7
7
|
export interface BatchGetItemCommandOutput extends BatchGetItemOutput, __MetadataBearer {
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
* <p>The <code>BatchGetItem</code> operation returns the attributes of one or more items from one or
|
|
11
|
-
* more tables. You identify requested items by primary key.</p>
|
|
12
|
-
* <p>A single operation can retrieve up to 16 MB of data, which can contain as many as 100
|
|
13
|
-
* items. <code>BatchGetItem</code> returns a partial result if the response size limit is
|
|
14
|
-
* exceeded, the table's provisioned throughput is exceeded, or an internal processing
|
|
15
|
-
* failure occurs. If a partial result is returned, the operation returns a value for
|
|
16
|
-
* <code>UnprocessedKeys</code>. You can use this value to retry the operation starting
|
|
17
|
-
* with the next item to get.</p>
|
|
18
|
-
* <important>
|
|
19
|
-
* <p>If you request more than 100 items, <code>BatchGetItem</code> returns a
|
|
20
|
-
* <code>ValidationException</code> with the message "Too many items requested for
|
|
21
|
-
* the BatchGetItem call."</p>
|
|
22
|
-
* </important>
|
|
23
|
-
* <p>For example, if you ask to retrieve 100 items, but each individual item is 300 KB in
|
|
24
|
-
* size, the system returns 52 items (so as not to exceed the 16 MB limit). It also returns
|
|
25
|
-
* an appropriate <code>UnprocessedKeys</code> value so you can get the next page of
|
|
26
|
-
* results. If desired, your application can include its own logic to assemble the pages of
|
|
27
|
-
* results into one dataset.</p>
|
|
28
|
-
* <p>If <i>none</i> of the items can be processed due to insufficient
|
|
29
|
-
* provisioned throughput on all of the tables in the request, then
|
|
30
|
-
* <code>BatchGetItem</code> returns a
|
|
31
|
-
* <code>ProvisionedThroughputExceededException</code>. If <i>at least
|
|
32
|
-
* one</i> of the items is successfully processed, then
|
|
33
|
-
* <code>BatchGetItem</code> completes successfully, while returning the keys of the
|
|
34
|
-
* unread items in <code>UnprocessedKeys</code>.</p>
|
|
35
|
-
* <important>
|
|
36
|
-
* <p>If DynamoDB returns any unprocessed items, you should retry the batch operation on those
|
|
37
|
-
* items. However, <i>we strongly recommend that you use an exponential backoff algorithm</i>.
|
|
38
|
-
* If you retry the batch operation immediately, the underlying read or write requests can
|
|
39
|
-
* still fail due to throttling on the individual tables. If you delay the batch operation
|
|
40
|
-
* using exponential backoff, the individual requests in the batch are much more likely to
|
|
41
|
-
* succeed.</p>
|
|
42
|
-
* <p>For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ErrorHandling.html#BatchOperations">Batch
|
|
43
|
-
* Operations and Error Handling</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
|
|
44
|
-
* </important>
|
|
45
|
-
* <p>By default, <code>BatchGetItem</code> performs eventually consistent reads on every table in the
|
|
46
|
-
* request. If you want strongly consistent reads instead, you can set <code>ConsistentRead</code> to
|
|
47
|
-
* <code>true</code> for any or all tables.</p>
|
|
48
|
-
* <p>In order to minimize response latency, <code>BatchGetItem</code> retrieves items in parallel.</p>
|
|
49
|
-
* <p>When designing your application, keep in mind that DynamoDB does not return items in any
|
|
50
|
-
* particular order. To help parse the response by item, include the primary key values for the
|
|
51
|
-
* items in your request in the <code>ProjectionExpression</code> parameter.</p>
|
|
52
|
-
* <p>If a requested item does not exist, it is not returned in the result. Requests for
|
|
53
|
-
* nonexistent items consume the minimum read capacity units according to the type of read.
|
|
54
|
-
* For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.html#CapacityUnitCalculations">Working with Tables</a> in the <i>Amazon DynamoDB Developer
|
|
55
|
-
* Guide</i>.</p>
|
|
56
|
-
* @example
|
|
57
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
58
|
-
* ```javascript
|
|
59
|
-
* import { DynamoDBClient, BatchGetItemCommand } from "@aws-sdk/client-dynamodb"; // ES Modules import
|
|
60
|
-
* // const { DynamoDBClient, BatchGetItemCommand } = require("@aws-sdk/client-dynamodb"); // CommonJS import
|
|
61
|
-
* const client = new DynamoDBClient(config);
|
|
62
|
-
* const command = new BatchGetItemCommand(input);
|
|
63
|
-
* const response = await client.send(command);
|
|
64
|
-
* ```
|
|
65
|
-
*
|
|
66
|
-
* @see {@link BatchGetItemCommandInput} for command's `input` shape.
|
|
67
|
-
* @see {@link BatchGetItemCommandOutput} for command's `response` shape.
|
|
68
|
-
* @see {@link DynamoDBClientResolvedConfig | config} for command's `input` shape.
|
|
69
|
-
*
|
|
70
|
-
*/
|
|
9
|
+
|
|
71
10
|
export declare class BatchGetItemCommand extends $Command<BatchGetItemCommandInput, BatchGetItemCommandOutput, DynamoDBClientResolvedConfig> {
|
|
72
11
|
readonly input: BatchGetItemCommandInput;
|
|
73
12
|
constructor(input: BatchGetItemCommandInput);
|
|
74
|
-
|
|
75
|
-
* @internal
|
|
76
|
-
*/
|
|
13
|
+
|
|
77
14
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: DynamoDBClientResolvedConfig, options?: __HttpHandlerOptions): Handler<BatchGetItemCommandInput, BatchGetItemCommandOutput>;
|
|
78
15
|
private serialize;
|
|
79
16
|
private deserialize;
|
|
@@ -6,103 +6,11 @@ export interface BatchWriteItemCommandInput extends BatchWriteItemInput {
|
|
|
6
6
|
}
|
|
7
7
|
export interface BatchWriteItemCommandOutput extends BatchWriteItemOutput, __MetadataBearer {
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
* <p>The <code>BatchWriteItem</code> operation puts or deletes multiple items in one or more
|
|
11
|
-
* tables. A single call to <code>BatchWriteItem</code> can write up to 16 MB of data,
|
|
12
|
-
* which can comprise as many as 25 put or delete requests. Individual items to be written
|
|
13
|
-
* can be as large as 400 KB.</p>
|
|
14
|
-
* <note>
|
|
15
|
-
* <p>
|
|
16
|
-
* <code>BatchWriteItem</code> cannot update items. To update items, use the <code>UpdateItem</code>
|
|
17
|
-
* action.</p>
|
|
18
|
-
* </note>
|
|
19
|
-
* <p>The individual <code>PutItem</code> and <code>DeleteItem</code> operations specified in
|
|
20
|
-
* <code>BatchWriteItem</code> are atomic; however <code>BatchWriteItem</code> as a whole is not. If any
|
|
21
|
-
* requested operations fail because the table's provisioned throughput is exceeded or an
|
|
22
|
-
* internal processing failure occurs, the failed operations are returned in the
|
|
23
|
-
* <code>UnprocessedItems</code> response parameter. You can investigate and optionally resend the
|
|
24
|
-
* requests. Typically, you would call <code>BatchWriteItem</code> in a loop. Each iteration would
|
|
25
|
-
* check for unprocessed items and submit a new <code>BatchWriteItem</code> request with those
|
|
26
|
-
* unprocessed items until all items have been processed.</p>
|
|
27
|
-
* <p>If <i>none</i> of the items can be processed due to insufficient
|
|
28
|
-
* provisioned throughput on all of the tables in the request, then
|
|
29
|
-
* <code>BatchWriteItem</code> returns a
|
|
30
|
-
* <code>ProvisionedThroughputExceededException</code>.</p>
|
|
31
|
-
* <important>
|
|
32
|
-
* <p>If DynamoDB returns any unprocessed items, you should retry the batch operation on those
|
|
33
|
-
* items. However, <i>we strongly recommend that you use an exponential backoff algorithm</i>.
|
|
34
|
-
* If you retry the batch operation immediately, the underlying read or write requests can
|
|
35
|
-
* still fail due to throttling on the individual tables. If you delay the batch operation
|
|
36
|
-
* using exponential backoff, the individual requests in the batch are much more likely to
|
|
37
|
-
* succeed.</p>
|
|
38
|
-
* <p>For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ErrorHandling.html#Programming.Errors.BatchOperations">Batch Operations and Error Handling</a> in the <i>Amazon DynamoDB
|
|
39
|
-
* Developer Guide</i>.</p>
|
|
40
|
-
* </important>
|
|
41
|
-
*
|
|
42
|
-
* <p>With <code>BatchWriteItem</code>, you can efficiently write or delete large amounts of
|
|
43
|
-
* data, such as from Amazon EMR, or copy data from another database into DynamoDB. In
|
|
44
|
-
* order to improve performance with these large-scale operations,
|
|
45
|
-
* <code>BatchWriteItem</code> does not behave in the same way as individual
|
|
46
|
-
* <code>PutItem</code> and <code>DeleteItem</code> calls would. For example, you
|
|
47
|
-
* cannot specify conditions on individual put and delete requests, and
|
|
48
|
-
* <code>BatchWriteItem</code> does not return deleted items in the response.</p>
|
|
49
|
-
* <p>If you use a programming language that supports concurrency, you can use
|
|
50
|
-
* threads to write items in parallel. Your application must include the necessary logic to
|
|
51
|
-
* manage the threads. With languages that don't support threading, you must update
|
|
52
|
-
* or delete the specified items one at a time. In both situations, <code>BatchWriteItem</code>
|
|
53
|
-
* performs the specified put and delete operations in
|
|
54
|
-
* parallel, giving you the power of the thread pool approach without having to introduce
|
|
55
|
-
* complexity into your application.</p>
|
|
56
|
-
* <p>Parallel processing reduces latency, but each specified put and delete request consumes the same number of write capacity units whether it is processed in parallel or not. Delete operations on nonexistent items consume one write capacity unit.</p>
|
|
57
|
-
* <p>If one or more of the following is true, DynamoDB rejects the entire batch write operation:</p>
|
|
58
|
-
* <ul>
|
|
59
|
-
* <li>
|
|
60
|
-
* <p>One or more tables specified in the <code>BatchWriteItem</code> request does not exist.</p>
|
|
61
|
-
* </li>
|
|
62
|
-
* <li>
|
|
63
|
-
* <p>Primary key attributes specified on an item in the request do not match those in the corresponding table's primary key schema.</p>
|
|
64
|
-
* </li>
|
|
65
|
-
* <li>
|
|
66
|
-
* <p>You try to perform multiple operations on the same item in the same <code>BatchWriteItem</code>
|
|
67
|
-
* request. For example, you cannot put and delete the same item in the same
|
|
68
|
-
* <code>BatchWriteItem</code> request. </p>
|
|
69
|
-
* </li>
|
|
70
|
-
* <li>
|
|
71
|
-
* <p>
|
|
72
|
-
* Your request contains at least two items with identical hash and range keys (which essentially is two put operations).
|
|
73
|
-
* </p>
|
|
74
|
-
* </li>
|
|
75
|
-
* <li>
|
|
76
|
-
* <p>There are more than 25 requests in the batch.</p>
|
|
77
|
-
* </li>
|
|
78
|
-
* <li>
|
|
79
|
-
* <p>Any individual item in a batch exceeds 400 KB.</p>
|
|
80
|
-
* </li>
|
|
81
|
-
* <li>
|
|
82
|
-
* <p>The total request size exceeds 16 MB.</p>
|
|
83
|
-
* </li>
|
|
84
|
-
* </ul>
|
|
85
|
-
* @example
|
|
86
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
87
|
-
* ```javascript
|
|
88
|
-
* import { DynamoDBClient, BatchWriteItemCommand } from "@aws-sdk/client-dynamodb"; // ES Modules import
|
|
89
|
-
* // const { DynamoDBClient, BatchWriteItemCommand } = require("@aws-sdk/client-dynamodb"); // CommonJS import
|
|
90
|
-
* const client = new DynamoDBClient(config);
|
|
91
|
-
* const command = new BatchWriteItemCommand(input);
|
|
92
|
-
* const response = await client.send(command);
|
|
93
|
-
* ```
|
|
94
|
-
*
|
|
95
|
-
* @see {@link BatchWriteItemCommandInput} for command's `input` shape.
|
|
96
|
-
* @see {@link BatchWriteItemCommandOutput} for command's `response` shape.
|
|
97
|
-
* @see {@link DynamoDBClientResolvedConfig | config} for command's `input` shape.
|
|
98
|
-
*
|
|
99
|
-
*/
|
|
9
|
+
|
|
100
10
|
export declare class BatchWriteItemCommand extends $Command<BatchWriteItemCommandInput, BatchWriteItemCommandOutput, DynamoDBClientResolvedConfig> {
|
|
101
11
|
readonly input: BatchWriteItemCommandInput;
|
|
102
12
|
constructor(input: BatchWriteItemCommandInput);
|
|
103
|
-
|
|
104
|
-
* @internal
|
|
105
|
-
*/
|
|
13
|
+
|
|
106
14
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: DynamoDBClientResolvedConfig, options?: __HttpHandlerOptions): Handler<BatchWriteItemCommandInput, BatchWriteItemCommandOutput>;
|
|
107
15
|
private serialize;
|
|
108
16
|
private deserialize;
|
|
@@ -6,58 +6,11 @@ export interface CreateBackupCommandInput extends CreateBackupInput {
|
|
|
6
6
|
}
|
|
7
7
|
export interface CreateBackupCommandOutput extends CreateBackupOutput, __MetadataBearer {
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
* <p>Creates a backup for an existing table.</p>
|
|
11
|
-
* <p> Each time you create an on-demand backup, the entire table data is backed up. There
|
|
12
|
-
* is no limit to the number of on-demand backups that can be taken. </p>
|
|
13
|
-
* <p> When you create an on-demand backup, a time marker of the request is cataloged, and
|
|
14
|
-
* the backup is created asynchronously, by applying all changes until the time of the
|
|
15
|
-
* request to the last full table snapshot. Backup requests are processed instantaneously
|
|
16
|
-
* and become available for restore within minutes. </p>
|
|
17
|
-
* <p>You can call <code>CreateBackup</code> at a maximum rate of 50 times per second.</p>
|
|
18
|
-
* <p>All backups in DynamoDB work without consuming any provisioned throughput on the table.</p>
|
|
19
|
-
* <p> If you submit a backup request on 2018-12-14 at 14:25:00, the backup is guaranteed
|
|
20
|
-
* to contain all data committed to the table up to 14:24:00, and data committed after
|
|
21
|
-
* 14:26:00 will not be. The backup might contain data modifications made between 14:24:00
|
|
22
|
-
* and 14:26:00. On-demand backup does not support causal consistency. </p>
|
|
23
|
-
* <p>
|
|
24
|
-
* Along with data, the following are also included on the backups:
|
|
25
|
-
* </p>
|
|
26
|
-
* <ul>
|
|
27
|
-
* <li>
|
|
28
|
-
* <p>Global secondary indexes (GSIs)</p>
|
|
29
|
-
* </li>
|
|
30
|
-
* <li>
|
|
31
|
-
* <p>Local secondary indexes (LSIs)</p>
|
|
32
|
-
* </li>
|
|
33
|
-
* <li>
|
|
34
|
-
* <p>Streams</p>
|
|
35
|
-
* </li>
|
|
36
|
-
* <li>
|
|
37
|
-
* <p>Provisioned read and write capacity</p>
|
|
38
|
-
* </li>
|
|
39
|
-
* </ul>
|
|
40
|
-
* @example
|
|
41
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
42
|
-
* ```javascript
|
|
43
|
-
* import { DynamoDBClient, CreateBackupCommand } from "@aws-sdk/client-dynamodb"; // ES Modules import
|
|
44
|
-
* // const { DynamoDBClient, CreateBackupCommand } = require("@aws-sdk/client-dynamodb"); // CommonJS import
|
|
45
|
-
* const client = new DynamoDBClient(config);
|
|
46
|
-
* const command = new CreateBackupCommand(input);
|
|
47
|
-
* const response = await client.send(command);
|
|
48
|
-
* ```
|
|
49
|
-
*
|
|
50
|
-
* @see {@link CreateBackupCommandInput} for command's `input` shape.
|
|
51
|
-
* @see {@link CreateBackupCommandOutput} for command's `response` shape.
|
|
52
|
-
* @see {@link DynamoDBClientResolvedConfig | config} for command's `input` shape.
|
|
53
|
-
*
|
|
54
|
-
*/
|
|
9
|
+
|
|
55
10
|
export declare class CreateBackupCommand extends $Command<CreateBackupCommandInput, CreateBackupCommandOutput, DynamoDBClientResolvedConfig> {
|
|
56
11
|
readonly input: CreateBackupCommandInput;
|
|
57
12
|
constructor(input: CreateBackupCommandInput);
|
|
58
|
-
|
|
59
|
-
* @internal
|
|
60
|
-
*/
|
|
13
|
+
|
|
61
14
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: DynamoDBClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateBackupCommandInput, CreateBackupCommandOutput>;
|
|
62
15
|
private serialize;
|
|
63
16
|
private deserialize;
|
|
@@ -6,96 +6,11 @@ export interface CreateGlobalTableCommandInput extends CreateGlobalTableInput {
|
|
|
6
6
|
}
|
|
7
7
|
export interface CreateGlobalTableCommandOutput extends CreateGlobalTableOutput, __MetadataBearer {
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
* <p>Creates a global table from an existing table. A global table creates a replication
|
|
11
|
-
* relationship between two or more DynamoDB tables with the same table name in the
|
|
12
|
-
* provided Regions. </p>
|
|
13
|
-
* <note>
|
|
14
|
-
* <p>This operation only applies to <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/globaltables.V1.html">Version 2017.11.29</a> of global tables.</p>
|
|
15
|
-
* </note>
|
|
16
|
-
*
|
|
17
|
-
* <p>If you want to add a new replica table to a global table, each of the following conditions
|
|
18
|
-
* must be true:</p>
|
|
19
|
-
* <ul>
|
|
20
|
-
* <li>
|
|
21
|
-
* <p>The table must have the same primary key as all of the other replicas.</p>
|
|
22
|
-
* </li>
|
|
23
|
-
* <li>
|
|
24
|
-
* <p>The table must have the same name as all of the other replicas.</p>
|
|
25
|
-
* </li>
|
|
26
|
-
* <li>
|
|
27
|
-
* <p>The table must have DynamoDB Streams enabled, with the stream containing both the new and the old
|
|
28
|
-
* images of the item.</p>
|
|
29
|
-
* </li>
|
|
30
|
-
* <li>
|
|
31
|
-
* <p>None of the replica tables in the global table can contain any data.</p>
|
|
32
|
-
* </li>
|
|
33
|
-
* </ul>
|
|
34
|
-
* <p>
|
|
35
|
-
* If global secondary indexes are specified, then the following conditions must also be met:
|
|
36
|
-
* </p>
|
|
37
|
-
* <ul>
|
|
38
|
-
* <li>
|
|
39
|
-
* <p>
|
|
40
|
-
* The global secondary indexes must have the same name.
|
|
41
|
-
* </p>
|
|
42
|
-
* </li>
|
|
43
|
-
* <li>
|
|
44
|
-
* <p>
|
|
45
|
-
* The global secondary indexes must have the same hash key and sort key (if present).
|
|
46
|
-
* </p>
|
|
47
|
-
* </li>
|
|
48
|
-
* </ul>
|
|
49
|
-
* <p>
|
|
50
|
-
* If local secondary indexes are specified, then the following conditions must also be met:
|
|
51
|
-
* </p>
|
|
52
|
-
* <ul>
|
|
53
|
-
* <li>
|
|
54
|
-
* <p>
|
|
55
|
-
* The local secondary indexes must have the same name.
|
|
56
|
-
* </p>
|
|
57
|
-
* </li>
|
|
58
|
-
* <li>
|
|
59
|
-
* <p>
|
|
60
|
-
* The local secondary indexes must have the same hash key and sort key (if present).
|
|
61
|
-
* </p>
|
|
62
|
-
* </li>
|
|
63
|
-
* </ul>
|
|
64
|
-
*
|
|
65
|
-
* <important>
|
|
66
|
-
* <p>
|
|
67
|
-
* Write capacity settings should be set consistently across your replica tables and
|
|
68
|
-
* secondary indexes. DynamoDB strongly recommends enabling auto scaling to manage the write
|
|
69
|
-
* capacity settings for all of your global tables replicas and indexes.
|
|
70
|
-
* </p>
|
|
71
|
-
* <p>
|
|
72
|
-
* If you prefer to manage write capacity settings manually, you should provision equal
|
|
73
|
-
* replicated write capacity units to your replica tables. You should also provision
|
|
74
|
-
* equal replicated write capacity units to matching secondary indexes across
|
|
75
|
-
* your global table.
|
|
76
|
-
* </p>
|
|
77
|
-
* </important>
|
|
78
|
-
* @example
|
|
79
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
80
|
-
* ```javascript
|
|
81
|
-
* import { DynamoDBClient, CreateGlobalTableCommand } from "@aws-sdk/client-dynamodb"; // ES Modules import
|
|
82
|
-
* // const { DynamoDBClient, CreateGlobalTableCommand } = require("@aws-sdk/client-dynamodb"); // CommonJS import
|
|
83
|
-
* const client = new DynamoDBClient(config);
|
|
84
|
-
* const command = new CreateGlobalTableCommand(input);
|
|
85
|
-
* const response = await client.send(command);
|
|
86
|
-
* ```
|
|
87
|
-
*
|
|
88
|
-
* @see {@link CreateGlobalTableCommandInput} for command's `input` shape.
|
|
89
|
-
* @see {@link CreateGlobalTableCommandOutput} for command's `response` shape.
|
|
90
|
-
* @see {@link DynamoDBClientResolvedConfig | config} for command's `input` shape.
|
|
91
|
-
*
|
|
92
|
-
*/
|
|
9
|
+
|
|
93
10
|
export declare class CreateGlobalTableCommand extends $Command<CreateGlobalTableCommandInput, CreateGlobalTableCommandOutput, DynamoDBClientResolvedConfig> {
|
|
94
11
|
readonly input: CreateGlobalTableCommandInput;
|
|
95
12
|
constructor(input: CreateGlobalTableCommandInput);
|
|
96
|
-
|
|
97
|
-
* @internal
|
|
98
|
-
*/
|
|
13
|
+
|
|
99
14
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: DynamoDBClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateGlobalTableCommandInput, CreateGlobalTableCommandOutput>;
|
|
100
15
|
private serialize;
|
|
101
16
|
private deserialize;
|
|
@@ -6,41 +6,11 @@ export interface CreateTableCommandInput extends CreateTableInput {
|
|
|
6
6
|
}
|
|
7
7
|
export interface CreateTableCommandOutput extends CreateTableOutput, __MetadataBearer {
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
* <p>The <code>CreateTable</code> operation adds a new table to your account. In an AWS
|
|
11
|
-
* account, table names must be unique within each Region. That is, you can have two tables
|
|
12
|
-
* with same name if you create the tables in different Regions.</p>
|
|
13
|
-
* <p>
|
|
14
|
-
* <code>CreateTable</code> is an asynchronous operation. Upon receiving a <code>CreateTable</code> request,
|
|
15
|
-
* DynamoDB immediately returns a response with a <code>TableStatus</code> of <code>CREATING</code>. After
|
|
16
|
-
* the table is created, DynamoDB sets the <code>TableStatus</code> to <code>ACTIVE</code>. You can
|
|
17
|
-
* perform read and write operations only on an <code>ACTIVE</code> table. </p>
|
|
18
|
-
* <p>You can optionally define secondary indexes on the new table, as part of the <code>CreateTable</code>
|
|
19
|
-
* operation. If you want to create multiple tables with secondary indexes on them, you must create the
|
|
20
|
-
* tables sequentially. Only one table with secondary indexes can be in the <code>CREATING</code> state at
|
|
21
|
-
* any given time.</p>
|
|
22
|
-
* <p>You can use the <code>DescribeTable</code> action to check the table status.</p>
|
|
23
|
-
* @example
|
|
24
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
25
|
-
* ```javascript
|
|
26
|
-
* import { DynamoDBClient, CreateTableCommand } from "@aws-sdk/client-dynamodb"; // ES Modules import
|
|
27
|
-
* // const { DynamoDBClient, CreateTableCommand } = require("@aws-sdk/client-dynamodb"); // CommonJS import
|
|
28
|
-
* const client = new DynamoDBClient(config);
|
|
29
|
-
* const command = new CreateTableCommand(input);
|
|
30
|
-
* const response = await client.send(command);
|
|
31
|
-
* ```
|
|
32
|
-
*
|
|
33
|
-
* @see {@link CreateTableCommandInput} for command's `input` shape.
|
|
34
|
-
* @see {@link CreateTableCommandOutput} for command's `response` shape.
|
|
35
|
-
* @see {@link DynamoDBClientResolvedConfig | config} for command's `input` shape.
|
|
36
|
-
*
|
|
37
|
-
*/
|
|
9
|
+
|
|
38
10
|
export declare class CreateTableCommand extends $Command<CreateTableCommandInput, CreateTableCommandOutput, DynamoDBClientResolvedConfig> {
|
|
39
11
|
readonly input: CreateTableCommandInput;
|
|
40
12
|
constructor(input: CreateTableCommandInput);
|
|
41
|
-
|
|
42
|
-
* @internal
|
|
43
|
-
*/
|
|
13
|
+
|
|
44
14
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: DynamoDBClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateTableCommandInput, CreateTableCommandOutput>;
|
|
45
15
|
private serialize;
|
|
46
16
|
private deserialize;
|
|
@@ -6,30 +6,11 @@ export interface DeleteBackupCommandInput extends DeleteBackupInput {
|
|
|
6
6
|
}
|
|
7
7
|
export interface DeleteBackupCommandOutput extends DeleteBackupOutput, __MetadataBearer {
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
* <p>Deletes an existing backup of a table.</p>
|
|
11
|
-
* <p>You can call <code>DeleteBackup</code> at a maximum rate of 10 times per second.</p>
|
|
12
|
-
* @example
|
|
13
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
14
|
-
* ```javascript
|
|
15
|
-
* import { DynamoDBClient, DeleteBackupCommand } from "@aws-sdk/client-dynamodb"; // ES Modules import
|
|
16
|
-
* // const { DynamoDBClient, DeleteBackupCommand } = require("@aws-sdk/client-dynamodb"); // CommonJS import
|
|
17
|
-
* const client = new DynamoDBClient(config);
|
|
18
|
-
* const command = new DeleteBackupCommand(input);
|
|
19
|
-
* const response = await client.send(command);
|
|
20
|
-
* ```
|
|
21
|
-
*
|
|
22
|
-
* @see {@link DeleteBackupCommandInput} for command's `input` shape.
|
|
23
|
-
* @see {@link DeleteBackupCommandOutput} for command's `response` shape.
|
|
24
|
-
* @see {@link DynamoDBClientResolvedConfig | config} for command's `input` shape.
|
|
25
|
-
*
|
|
26
|
-
*/
|
|
9
|
+
|
|
27
10
|
export declare class DeleteBackupCommand extends $Command<DeleteBackupCommandInput, DeleteBackupCommandOutput, DynamoDBClientResolvedConfig> {
|
|
28
11
|
readonly input: DeleteBackupCommandInput;
|
|
29
12
|
constructor(input: DeleteBackupCommandInput);
|
|
30
|
-
|
|
31
|
-
* @internal
|
|
32
|
-
*/
|
|
13
|
+
|
|
33
14
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: DynamoDBClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DeleteBackupCommandInput, DeleteBackupCommandOutput>;
|
|
34
15
|
private serialize;
|
|
35
16
|
private deserialize;
|