@aws-sdk/client-dynamodb 3.30.0 → 3.34.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 +35 -0
- package/dist/cjs/DynamoDBClient.js +14 -14
- package/dist/cjs/DynamoDBClient.js.map +1 -1
- package/dist/cjs/commands/BatchExecuteStatementCommand.js +3 -3
- package/dist/cjs/commands/BatchExecuteStatementCommand.js.map +1 -1
- package/dist/cjs/commands/BatchGetItemCommand.js +3 -3
- package/dist/cjs/commands/BatchGetItemCommand.js.map +1 -1
- package/dist/cjs/commands/BatchWriteItemCommand.js +3 -3
- package/dist/cjs/commands/BatchWriteItemCommand.js.map +1 -1
- package/dist/cjs/commands/CreateBackupCommand.js +3 -3
- package/dist/cjs/commands/CreateBackupCommand.js.map +1 -1
- package/dist/cjs/commands/CreateGlobalTableCommand.js +3 -3
- package/dist/cjs/commands/CreateGlobalTableCommand.js.map +1 -1
- package/dist/cjs/commands/CreateTableCommand.js +3 -3
- package/dist/cjs/commands/CreateTableCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteBackupCommand.js +3 -3
- package/dist/cjs/commands/DeleteBackupCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteItemCommand.js +3 -3
- package/dist/cjs/commands/DeleteItemCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteTableCommand.js +3 -3
- package/dist/cjs/commands/DeleteTableCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeBackupCommand.js +3 -3
- package/dist/cjs/commands/DescribeBackupCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeContinuousBackupsCommand.js +3 -3
- package/dist/cjs/commands/DescribeContinuousBackupsCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeContributorInsightsCommand.js +3 -3
- package/dist/cjs/commands/DescribeContributorInsightsCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeEndpointsCommand.js +3 -3
- package/dist/cjs/commands/DescribeEndpointsCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeExportCommand.js +3 -3
- package/dist/cjs/commands/DescribeExportCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeGlobalTableCommand.js +3 -3
- package/dist/cjs/commands/DescribeGlobalTableCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeGlobalTableSettingsCommand.js +3 -3
- package/dist/cjs/commands/DescribeGlobalTableSettingsCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeKinesisStreamingDestinationCommand.js +3 -3
- package/dist/cjs/commands/DescribeKinesisStreamingDestinationCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeLimitsCommand.js +3 -3
- package/dist/cjs/commands/DescribeLimitsCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeTableCommand.js +3 -3
- package/dist/cjs/commands/DescribeTableCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeTableReplicaAutoScalingCommand.js +3 -3
- package/dist/cjs/commands/DescribeTableReplicaAutoScalingCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeTimeToLiveCommand.js +3 -3
- package/dist/cjs/commands/DescribeTimeToLiveCommand.js.map +1 -1
- package/dist/cjs/commands/DisableKinesisStreamingDestinationCommand.js +3 -3
- package/dist/cjs/commands/DisableKinesisStreamingDestinationCommand.js.map +1 -1
- package/dist/cjs/commands/EnableKinesisStreamingDestinationCommand.js +3 -3
- package/dist/cjs/commands/EnableKinesisStreamingDestinationCommand.js.map +1 -1
- package/dist/cjs/commands/ExecuteStatementCommand.js +3 -3
- package/dist/cjs/commands/ExecuteStatementCommand.js.map +1 -1
- package/dist/cjs/commands/ExecuteTransactionCommand.js +3 -3
- package/dist/cjs/commands/ExecuteTransactionCommand.js.map +1 -1
- package/dist/cjs/commands/ExportTableToPointInTimeCommand.js +3 -3
- package/dist/cjs/commands/ExportTableToPointInTimeCommand.js.map +1 -1
- package/dist/cjs/commands/GetItemCommand.js +3 -3
- package/dist/cjs/commands/GetItemCommand.js.map +1 -1
- package/dist/cjs/commands/ListBackupsCommand.js +3 -3
- package/dist/cjs/commands/ListBackupsCommand.js.map +1 -1
- package/dist/cjs/commands/ListContributorInsightsCommand.js +3 -3
- package/dist/cjs/commands/ListContributorInsightsCommand.js.map +1 -1
- package/dist/cjs/commands/ListExportsCommand.js +3 -3
- package/dist/cjs/commands/ListExportsCommand.js.map +1 -1
- package/dist/cjs/commands/ListGlobalTablesCommand.js +3 -3
- package/dist/cjs/commands/ListGlobalTablesCommand.js.map +1 -1
- package/dist/cjs/commands/ListTablesCommand.js +3 -3
- package/dist/cjs/commands/ListTablesCommand.js.map +1 -1
- package/dist/cjs/commands/ListTagsOfResourceCommand.js +3 -3
- package/dist/cjs/commands/ListTagsOfResourceCommand.js.map +1 -1
- package/dist/cjs/commands/PutItemCommand.js +3 -3
- package/dist/cjs/commands/PutItemCommand.js.map +1 -1
- package/dist/cjs/commands/QueryCommand.js +3 -3
- package/dist/cjs/commands/QueryCommand.js.map +1 -1
- package/dist/cjs/commands/RestoreTableFromBackupCommand.js +3 -3
- package/dist/cjs/commands/RestoreTableFromBackupCommand.js.map +1 -1
- package/dist/cjs/commands/RestoreTableToPointInTimeCommand.js +3 -3
- package/dist/cjs/commands/RestoreTableToPointInTimeCommand.js.map +1 -1
- package/dist/cjs/commands/ScanCommand.js +3 -3
- package/dist/cjs/commands/ScanCommand.js.map +1 -1
- package/dist/cjs/commands/TagResourceCommand.js +3 -3
- package/dist/cjs/commands/TagResourceCommand.js.map +1 -1
- package/dist/cjs/commands/TransactGetItemsCommand.js +3 -3
- package/dist/cjs/commands/TransactGetItemsCommand.js.map +1 -1
- package/dist/cjs/commands/TransactWriteItemsCommand.js +3 -3
- package/dist/cjs/commands/TransactWriteItemsCommand.js.map +1 -1
- package/dist/cjs/commands/UntagResourceCommand.js +3 -3
- package/dist/cjs/commands/UntagResourceCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateContinuousBackupsCommand.js +3 -3
- package/dist/cjs/commands/UpdateContinuousBackupsCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateContributorInsightsCommand.js +3 -3
- package/dist/cjs/commands/UpdateContributorInsightsCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateGlobalTableCommand.js +3 -3
- package/dist/cjs/commands/UpdateGlobalTableCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateGlobalTableSettingsCommand.js +3 -3
- package/dist/cjs/commands/UpdateGlobalTableSettingsCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateItemCommand.js +3 -3
- package/dist/cjs/commands/UpdateItemCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateTableCommand.js +3 -3
- package/dist/cjs/commands/UpdateTableCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateTableReplicaAutoScalingCommand.js +3 -3
- package/dist/cjs/commands/UpdateTableReplicaAutoScalingCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateTimeToLiveCommand.js +3 -3
- package/dist/cjs/commands/UpdateTimeToLiveCommand.js.map +1 -1
- package/dist/cjs/endpoints.js +1 -1
- package/dist/cjs/endpoints.js.map +1 -1
- package/dist/cjs/index.js +61 -61
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/models/index.js +1 -1
- package/dist/cjs/models/index.js.map +1 -1
- package/dist/cjs/package.json +41 -41
- package/dist/cjs/protocols/Aws_json1_0.js +252 -250
- package/dist/cjs/protocols/Aws_json1_0.js.map +1 -1
- package/dist/cjs/runtimeConfig.browser.js +4 -4
- package/dist/cjs/runtimeConfig.browser.js.map +1 -1
- package/dist/cjs/runtimeConfig.js +9 -9
- package/dist/cjs/runtimeConfig.js.map +1 -1
- package/dist/cjs/runtimeConfig.native.js +1 -1
- package/dist/cjs/runtimeConfig.native.js.map +1 -1
- package/dist/cjs/waiters/waitForTableExists.js +3 -3
- package/dist/cjs/waiters/waitForTableExists.js.map +1 -1
- package/dist/cjs/waiters/waitForTableNotExists.js +3 -3
- package/dist/cjs/waiters/waitForTableNotExists.js.map +1 -1
- package/dist/es/DynamoDB.js +1 -22
- package/dist/es/DynamoDB.js.map +1 -1
- package/dist/es/DynamoDBClient.js +1 -27
- package/dist/es/DynamoDBClient.js.map +1 -1
- package/dist/es/commands/BatchExecuteStatementCommand.js +2 -29
- package/dist/es/commands/BatchExecuteStatementCommand.js.map +1 -1
- package/dist/es/commands/BatchGetItemCommand.js +2 -72
- package/dist/es/commands/BatchGetItemCommand.js.map +1 -1
- package/dist/es/commands/BatchWriteItemCommand.js +2 -101
- package/dist/es/commands/BatchWriteItemCommand.js.map +1 -1
- package/dist/es/commands/CreateBackupCommand.js +2 -56
- package/dist/es/commands/CreateBackupCommand.js.map +1 -1
- package/dist/es/commands/CreateGlobalTableCommand.js +2 -94
- package/dist/es/commands/CreateGlobalTableCommand.js.map +1 -1
- package/dist/es/commands/CreateTableCommand.js +2 -39
- package/dist/es/commands/CreateTableCommand.js.map +1 -1
- package/dist/es/commands/DeleteBackupCommand.js +2 -28
- package/dist/es/commands/DeleteBackupCommand.js.map +1 -1
- package/dist/es/commands/DeleteItemCommand.js +2 -32
- package/dist/es/commands/DeleteItemCommand.js.map +1 -1
- package/dist/es/commands/DeleteTableCommand.js +2 -43
- package/dist/es/commands/DeleteTableCommand.js.map +1 -1
- package/dist/es/commands/DescribeBackupCommand.js +2 -28
- package/dist/es/commands/DescribeBackupCommand.js.map +1 -1
- package/dist/es/commands/DescribeContinuousBackupsCommand.js +2 -37
- package/dist/es/commands/DescribeContinuousBackupsCommand.js.map +1 -1
- package/dist/es/commands/DescribeContributorInsightsCommand.js +2 -27
- package/dist/es/commands/DescribeContributorInsightsCommand.js.map +1 -1
- package/dist/es/commands/DescribeEndpointsCommand.js +2 -27
- package/dist/es/commands/DescribeEndpointsCommand.js.map +1 -1
- package/dist/es/commands/DescribeExportCommand.js +2 -27
- package/dist/es/commands/DescribeExportCommand.js.map +1 -1
- package/dist/es/commands/DescribeGlobalTableCommand.js +2 -31
- package/dist/es/commands/DescribeGlobalTableCommand.js.map +1 -1
- package/dist/es/commands/DescribeGlobalTableSettingsCommand.js +2 -30
- package/dist/es/commands/DescribeGlobalTableSettingsCommand.js.map +1 -1
- package/dist/es/commands/DescribeKinesisStreamingDestinationCommand.js +2 -27
- package/dist/es/commands/DescribeKinesisStreamingDestinationCommand.js.map +1 -1
- package/dist/es/commands/DescribeLimitsCommand.js +2 -90
- package/dist/es/commands/DescribeLimitsCommand.js.map +1 -1
- package/dist/es/commands/DescribeTableCommand.js +2 -33
- package/dist/es/commands/DescribeTableCommand.js.map +1 -1
- package/dist/es/commands/DescribeTableReplicaAutoScalingCommand.js +2 -30
- package/dist/es/commands/DescribeTableReplicaAutoScalingCommand.js.map +1 -1
- package/dist/es/commands/DescribeTimeToLiveCommand.js +2 -27
- package/dist/es/commands/DescribeTimeToLiveCommand.js.map +1 -1
- package/dist/es/commands/DisableKinesisStreamingDestinationCommand.js +2 -28
- package/dist/es/commands/DisableKinesisStreamingDestinationCommand.js.map +1 -1
- package/dist/es/commands/EnableKinesisStreamingDestinationCommand.js +2 -30
- package/dist/es/commands/EnableKinesisStreamingDestinationCommand.js.map +1 -1
- package/dist/es/commands/ExecuteStatementCommand.js +2 -29
- package/dist/es/commands/ExecuteStatementCommand.js.map +1 -1
- package/dist/es/commands/ExecuteTransactionCommand.js +2 -29
- package/dist/es/commands/ExecuteTransactionCommand.js.map +1 -1
- package/dist/es/commands/ExportTableToPointInTimeCommand.js +2 -29
- package/dist/es/commands/ExportTableToPointInTimeCommand.js.map +1 -1
- package/dist/es/commands/GetItemCommand.js +2 -33
- package/dist/es/commands/GetItemCommand.js.map +1 -1
- package/dist/es/commands/ListBackupsCommand.js +2 -33
- package/dist/es/commands/ListBackupsCommand.js.map +1 -1
- package/dist/es/commands/ListContributorInsightsCommand.js +2 -27
- package/dist/es/commands/ListContributorInsightsCommand.js.map +1 -1
- package/dist/es/commands/ListExportsCommand.js +2 -27
- package/dist/es/commands/ListExportsCommand.js.map +1 -1
- package/dist/es/commands/ListGlobalTablesCommand.js +2 -30
- package/dist/es/commands/ListGlobalTablesCommand.js.map +1 -1
- package/dist/es/commands/ListTablesCommand.js +2 -29
- package/dist/es/commands/ListTablesCommand.js.map +1 -1
- package/dist/es/commands/ListTagsOfResourceCommand.js +2 -30
- package/dist/es/commands/ListTagsOfResourceCommand.js.map +1 -1
- package/dist/es/commands/PutItemCommand.js +2 -94
- package/dist/es/commands/PutItemCommand.js.map +1 -1
- package/dist/es/commands/QueryCommand.js +2 -82
- package/dist/es/commands/QueryCommand.js.map +1 -1
- package/dist/es/commands/RestoreTableFromBackupCommand.js +2 -51
- package/dist/es/commands/RestoreTableFromBackupCommand.js.map +1 -1
- package/dist/es/commands/RestoreTableToPointInTimeCommand.js +2 -82
- package/dist/es/commands/RestoreTableToPointInTimeCommand.js.map +1 -1
- package/dist/es/commands/ScanCommand.js +2 -51
- package/dist/es/commands/ScanCommand.js.map +1 -1
- package/dist/es/commands/TagResourceCommand.js +2 -33
- package/dist/es/commands/TagResourceCommand.js.map +1 -1
- package/dist/es/commands/TransactGetItemsCommand.js +2 -52
- package/dist/es/commands/TransactGetItemsCommand.js.map +1 -1
- package/dist/es/commands/TransactWriteItemsCommand.js +2 -100
- package/dist/es/commands/TransactWriteItemsCommand.js.map +1 -1
- package/dist/es/commands/UntagResourceCommand.js +2 -31
- package/dist/es/commands/UntagResourceCommand.js.map +1 -1
- package/dist/es/commands/UpdateContinuousBackupsCommand.js +2 -38
- package/dist/es/commands/UpdateContinuousBackupsCommand.js.map +1 -1
- package/dist/es/commands/UpdateContributorInsightsCommand.js +2 -27
- package/dist/es/commands/UpdateContributorInsightsCommand.js.map +1 -1
- package/dist/es/commands/UpdateGlobalTableCommand.js +2 -55
- package/dist/es/commands/UpdateGlobalTableCommand.js.map +1 -1
- package/dist/es/commands/UpdateGlobalTableSettingsCommand.js +2 -27
- package/dist/es/commands/UpdateGlobalTableSettingsCommand.js.map +1 -1
- package/dist/es/commands/UpdateItemCommand.js +2 -29
- package/dist/es/commands/UpdateItemCommand.js.map +1 -1
- package/dist/es/commands/UpdateTableCommand.js +2 -49
- package/dist/es/commands/UpdateTableCommand.js.map +1 -1
- package/dist/es/commands/UpdateTableReplicaAutoScalingCommand.js +2 -30
- package/dist/es/commands/UpdateTableReplicaAutoScalingCommand.js.map +1 -1
- package/dist/es/commands/UpdateTimeToLiveCommand.js +2 -51
- package/dist/es/commands/UpdateTimeToLiveCommand.js.map +1 -1
- package/dist/es/endpoints.js +1 -1
- package/dist/es/endpoints.js.map +1 -1
- package/dist/es/models/models_0.js +0 -660
- package/dist/es/models/models_0.js.map +1 -1
- package/dist/es/package.json +41 -41
- package/dist/es/pagination/ListContributorInsightsPaginator.js +16 -28
- package/dist/es/pagination/ListContributorInsightsPaginator.js.map +1 -1
- package/dist/es/pagination/ListExportsPaginator.js +16 -28
- package/dist/es/pagination/ListExportsPaginator.js.map +1 -1
- package/dist/es/pagination/ListTablesPaginator.js +16 -28
- package/dist/es/pagination/ListTablesPaginator.js.map +1 -1
- package/dist/es/pagination/QueryPaginator.js +16 -28
- package/dist/es/pagination/QueryPaginator.js.map +1 -1
- package/dist/es/pagination/ScanPaginator.js +16 -28
- package/dist/es/pagination/ScanPaginator.js.map +1 -1
- package/dist/es/protocols/Aws_json1_0.js +1306 -1309
- package/dist/es/protocols/Aws_json1_0.js.map +1 -1
- package/dist/es/runtimeConfig.browser.js +0 -3
- package/dist/es/runtimeConfig.browser.js.map +1 -1
- package/dist/es/runtimeConfig.js +0 -3
- package/dist/es/runtimeConfig.js.map +1 -1
- package/dist/es/runtimeConfig.native.js +0 -3
- package/dist/es/runtimeConfig.native.js.map +1 -1
- package/dist/es/runtimeConfig.shared.js +0 -3
- package/dist/es/runtimeConfig.shared.js.map +1 -1
- package/dist/es/waiters/waitForTableExists.js +9 -18
- package/dist/es/waiters/waitForTableExists.js.map +1 -1
- package/dist/es/waiters/waitForTableNotExists.js +8 -17
- package/dist/es/waiters/waitForTableNotExists.js.map +1 -1
- package/dist/types/runtimeConfig.browser.d.ts +1 -0
- package/dist/types/runtimeConfig.d.ts +1 -0
- package/dist/types/runtimeConfig.native.d.ts +1 -0
- package/dist/types/ts3.4/runtimeConfig.browser.d.ts +1 -0
- package/dist/types/ts3.4/runtimeConfig.d.ts +1 -0
- package/dist/types/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/package.json +41 -41
- package/protocols/Aws_json1_0.ts +32 -26
- package/tsconfig.es.json +0 -2
- package/tsconfig.json +3 -5
- package/tsconfig.types.json +8 -0
|
@@ -3,112 +3,13 @@ import { BatchWriteItemInput, BatchWriteItemOutput } from "../models/models_0";
|
|
|
3
3
|
import { deserializeAws_json1_0BatchWriteItemCommand, serializeAws_json1_0BatchWriteItemCommand, } from "../protocols/Aws_json1_0";
|
|
4
4
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
5
5
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
6
|
-
|
|
7
|
-
* <p>The <code>BatchWriteItem</code> operation puts or deletes multiple items in one or more
|
|
8
|
-
* tables. A single call to <code>BatchWriteItem</code> can write up to 16 MB of data,
|
|
9
|
-
* which can comprise as many as 25 put or delete requests. Individual items to be written
|
|
10
|
-
* can be as large as 400 KB.</p>
|
|
11
|
-
* <note>
|
|
12
|
-
* <p>
|
|
13
|
-
* <code>BatchWriteItem</code> cannot update items. To update items, use the <code>UpdateItem</code>
|
|
14
|
-
* action.</p>
|
|
15
|
-
* </note>
|
|
16
|
-
* <p>The individual <code>PutItem</code> and <code>DeleteItem</code> operations specified in
|
|
17
|
-
* <code>BatchWriteItem</code> are atomic; however <code>BatchWriteItem</code> as a whole is not. If any
|
|
18
|
-
* requested operations fail because the table's provisioned throughput is exceeded or an
|
|
19
|
-
* internal processing failure occurs, the failed operations are returned in the
|
|
20
|
-
* <code>UnprocessedItems</code> response parameter. You can investigate and optionally resend the
|
|
21
|
-
* requests. Typically, you would call <code>BatchWriteItem</code> in a loop. Each iteration would
|
|
22
|
-
* check for unprocessed items and submit a new <code>BatchWriteItem</code> request with those
|
|
23
|
-
* unprocessed items until all items have been processed.</p>
|
|
24
|
-
* <p>If <i>none</i> of the items can be processed due to insufficient
|
|
25
|
-
* provisioned throughput on all of the tables in the request, then
|
|
26
|
-
* <code>BatchWriteItem</code> returns a
|
|
27
|
-
* <code>ProvisionedThroughputExceededException</code>.</p>
|
|
28
|
-
* <important>
|
|
29
|
-
* <p>If DynamoDB returns any unprocessed items, you should retry the batch operation on those
|
|
30
|
-
* items. However, <i>we strongly recommend that you use an exponential backoff algorithm</i>.
|
|
31
|
-
* If you retry the batch operation immediately, the underlying read or write requests can
|
|
32
|
-
* still fail due to throttling on the individual tables. If you delay the batch operation
|
|
33
|
-
* using exponential backoff, the individual requests in the batch are much more likely to
|
|
34
|
-
* succeed.</p>
|
|
35
|
-
* <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
|
|
36
|
-
* Developer Guide</i>.</p>
|
|
37
|
-
* </important>
|
|
38
|
-
*
|
|
39
|
-
* <p>With <code>BatchWriteItem</code>, you can efficiently write or delete large amounts of
|
|
40
|
-
* data, such as from Amazon EMR, or copy data from another database into DynamoDB. In
|
|
41
|
-
* order to improve performance with these large-scale operations,
|
|
42
|
-
* <code>BatchWriteItem</code> does not behave in the same way as individual
|
|
43
|
-
* <code>PutItem</code> and <code>DeleteItem</code> calls would. For example, you
|
|
44
|
-
* cannot specify conditions on individual put and delete requests, and
|
|
45
|
-
* <code>BatchWriteItem</code> does not return deleted items in the response.</p>
|
|
46
|
-
* <p>If you use a programming language that supports concurrency, you can use
|
|
47
|
-
* threads to write items in parallel. Your application must include the necessary logic to
|
|
48
|
-
* manage the threads. With languages that don't support threading, you must update
|
|
49
|
-
* or delete the specified items one at a time. In both situations, <code>BatchWriteItem</code>
|
|
50
|
-
* performs the specified put and delete operations in
|
|
51
|
-
* parallel, giving you the power of the thread pool approach without having to introduce
|
|
52
|
-
* complexity into your application.</p>
|
|
53
|
-
* <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>
|
|
54
|
-
* <p>If one or more of the following is true, DynamoDB rejects the entire batch write operation:</p>
|
|
55
|
-
* <ul>
|
|
56
|
-
* <li>
|
|
57
|
-
* <p>One or more tables specified in the <code>BatchWriteItem</code> request does not exist.</p>
|
|
58
|
-
* </li>
|
|
59
|
-
* <li>
|
|
60
|
-
* <p>Primary key attributes specified on an item in the request do not match those in the corresponding table's primary key schema.</p>
|
|
61
|
-
* </li>
|
|
62
|
-
* <li>
|
|
63
|
-
* <p>You try to perform multiple operations on the same item in the same <code>BatchWriteItem</code>
|
|
64
|
-
* request. For example, you cannot put and delete the same item in the same
|
|
65
|
-
* <code>BatchWriteItem</code> request. </p>
|
|
66
|
-
* </li>
|
|
67
|
-
* <li>
|
|
68
|
-
* <p>
|
|
69
|
-
* Your request contains at least two items with identical hash and range keys (which essentially is two put operations).
|
|
70
|
-
* </p>
|
|
71
|
-
* </li>
|
|
72
|
-
* <li>
|
|
73
|
-
* <p>There are more than 25 requests in the batch.</p>
|
|
74
|
-
* </li>
|
|
75
|
-
* <li>
|
|
76
|
-
* <p>Any individual item in a batch exceeds 400 KB.</p>
|
|
77
|
-
* </li>
|
|
78
|
-
* <li>
|
|
79
|
-
* <p>The total request size exceeds 16 MB.</p>
|
|
80
|
-
* </li>
|
|
81
|
-
* </ul>
|
|
82
|
-
* @example
|
|
83
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
84
|
-
* ```javascript
|
|
85
|
-
* import { DynamoDBClient, BatchWriteItemCommand } from "@aws-sdk/client-dynamodb"; // ES Modules import
|
|
86
|
-
* // const { DynamoDBClient, BatchWriteItemCommand } = require("@aws-sdk/client-dynamodb"); // CommonJS import
|
|
87
|
-
* const client = new DynamoDBClient(config);
|
|
88
|
-
* const command = new BatchWriteItemCommand(input);
|
|
89
|
-
* const response = await client.send(command);
|
|
90
|
-
* ```
|
|
91
|
-
*
|
|
92
|
-
* @see {@link BatchWriteItemCommandInput} for command's `input` shape.
|
|
93
|
-
* @see {@link BatchWriteItemCommandOutput} for command's `response` shape.
|
|
94
|
-
* @see {@link DynamoDBClientResolvedConfig | config} for command's `input` shape.
|
|
95
|
-
*
|
|
96
|
-
*/
|
|
97
|
-
var BatchWriteItemCommand = /** @class */ (function (_super) {
|
|
6
|
+
var BatchWriteItemCommand = (function (_super) {
|
|
98
7
|
__extends(BatchWriteItemCommand, _super);
|
|
99
|
-
// Start section: command_properties
|
|
100
|
-
// End section: command_properties
|
|
101
8
|
function BatchWriteItemCommand(input) {
|
|
102
|
-
var _this =
|
|
103
|
-
// Start section: command_constructor
|
|
104
|
-
_super.call(this) || this;
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
105
10
|
_this.input = input;
|
|
106
11
|
return _this;
|
|
107
|
-
// End section: command_constructor
|
|
108
12
|
}
|
|
109
|
-
/**
|
|
110
|
-
* @internal
|
|
111
|
-
*/
|
|
112
13
|
BatchWriteItemCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
113
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
114
15
|
var stack = clientStack.concat(this.middlewareStack);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BatchWriteItemCommand.js","sourceRoot":"","sources":["../../../commands/BatchWriteItemCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC/E,OAAO,EACL,2CAA2C,EAC3C,yCAAyC,GAC1C,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"BatchWriteItemCommand.js","sourceRoot":"","sources":["../../../commands/BatchWriteItemCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC/E,OAAO,EACL,2CAA2C,EAC3C,yCAAyC,GAC1C,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAyG7D;IAA2C,yCAI1C;IAIC,+BAAqB,KAAiC;QAAtD,YAEE,iBAAO,SAER;QAJoB,WAAK,GAAL,KAAK,CAA4B;;IAItD,CAAC;IAKD,iDAAiB,GAAjB,UACE,WAAmE,EACnE,aAA2C,EAC3C,OAA8B;QAE9B,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,cAAc,CAAC,aAAa,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;QAE1F,IAAM,KAAK,GAAG,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QAE/C,IAAA,MAAM,GAAK,aAAa,OAAlB,CAAmB;QACjC,IAAM,UAAU,GAAG,gBAAgB,CAAC;QACpC,IAAM,WAAW,GAAG,uBAAuB,CAAC;QAC5C,IAAM,uBAAuB,GAA4B;YACvD,MAAM,QAAA;YACN,UAAU,YAAA;YACV,WAAW,aAAA;YACX,uBAAuB,EAAE,mBAAmB,CAAC,kBAAkB;YAC/D,wBAAwB,EAAE,oBAAoB,CAAC,kBAAkB;SAClE,CAAC;QACM,IAAA,cAAc,GAAK,aAAa,eAAlB,CAAmB;QACzC,OAAO,KAAK,CAAC,OAAO,CAClB,UAAC,OAAsC;YACrC,OAAA,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,OAAwB,EAAE,OAAO,IAAI,EAAE,CAAC;QAAtE,CAAsE,EACxE,uBAAuB,CACxB,CAAC;IACJ,CAAC;IAEO,yCAAS,GAAjB,UAAkB,KAAiC,EAAE,OAAuB;QAC1E,OAAO,yCAAyC,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACnE,CAAC;IAEO,2CAAW,GAAnB,UAAoB,MAAsB,EAAE,OAAuB;QACjE,OAAO,2CAA2C,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACtE,CAAC;IAIH,4BAAC;AAAD,CAAC,AAtDD,CAA2C,QAAQ,GAsDlD"}
|
|
@@ -3,67 +3,13 @@ import { CreateBackupInput, CreateBackupOutput } from "../models/models_0";
|
|
|
3
3
|
import { deserializeAws_json1_0CreateBackupCommand, serializeAws_json1_0CreateBackupCommand, } from "../protocols/Aws_json1_0";
|
|
4
4
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
5
5
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
6
|
-
|
|
7
|
-
* <p>Creates a backup for an existing table.</p>
|
|
8
|
-
* <p> Each time you create an on-demand backup, the entire table data is backed up. There
|
|
9
|
-
* is no limit to the number of on-demand backups that can be taken. </p>
|
|
10
|
-
* <p> When you create an on-demand backup, a time marker of the request is cataloged, and
|
|
11
|
-
* the backup is created asynchronously, by applying all changes until the time of the
|
|
12
|
-
* request to the last full table snapshot. Backup requests are processed instantaneously
|
|
13
|
-
* and become available for restore within minutes. </p>
|
|
14
|
-
* <p>You can call <code>CreateBackup</code> at a maximum rate of 50 times per second.</p>
|
|
15
|
-
* <p>All backups in DynamoDB work without consuming any provisioned throughput on the table.</p>
|
|
16
|
-
* <p> If you submit a backup request on 2018-12-14 at 14:25:00, the backup is guaranteed
|
|
17
|
-
* to contain all data committed to the table up to 14:24:00, and data committed after
|
|
18
|
-
* 14:26:00 will not be. The backup might contain data modifications made between 14:24:00
|
|
19
|
-
* and 14:26:00. On-demand backup does not support causal consistency. </p>
|
|
20
|
-
* <p>
|
|
21
|
-
* Along with data, the following are also included on the backups:
|
|
22
|
-
* </p>
|
|
23
|
-
* <ul>
|
|
24
|
-
* <li>
|
|
25
|
-
* <p>Global secondary indexes (GSIs)</p>
|
|
26
|
-
* </li>
|
|
27
|
-
* <li>
|
|
28
|
-
* <p>Local secondary indexes (LSIs)</p>
|
|
29
|
-
* </li>
|
|
30
|
-
* <li>
|
|
31
|
-
* <p>Streams</p>
|
|
32
|
-
* </li>
|
|
33
|
-
* <li>
|
|
34
|
-
* <p>Provisioned read and write capacity</p>
|
|
35
|
-
* </li>
|
|
36
|
-
* </ul>
|
|
37
|
-
* @example
|
|
38
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
39
|
-
* ```javascript
|
|
40
|
-
* import { DynamoDBClient, CreateBackupCommand } from "@aws-sdk/client-dynamodb"; // ES Modules import
|
|
41
|
-
* // const { DynamoDBClient, CreateBackupCommand } = require("@aws-sdk/client-dynamodb"); // CommonJS import
|
|
42
|
-
* const client = new DynamoDBClient(config);
|
|
43
|
-
* const command = new CreateBackupCommand(input);
|
|
44
|
-
* const response = await client.send(command);
|
|
45
|
-
* ```
|
|
46
|
-
*
|
|
47
|
-
* @see {@link CreateBackupCommandInput} for command's `input` shape.
|
|
48
|
-
* @see {@link CreateBackupCommandOutput} for command's `response` shape.
|
|
49
|
-
* @see {@link DynamoDBClientResolvedConfig | config} for command's `input` shape.
|
|
50
|
-
*
|
|
51
|
-
*/
|
|
52
|
-
var CreateBackupCommand = /** @class */ (function (_super) {
|
|
6
|
+
var CreateBackupCommand = (function (_super) {
|
|
53
7
|
__extends(CreateBackupCommand, _super);
|
|
54
|
-
// Start section: command_properties
|
|
55
|
-
// End section: command_properties
|
|
56
8
|
function CreateBackupCommand(input) {
|
|
57
|
-
var _this =
|
|
58
|
-
// Start section: command_constructor
|
|
59
|
-
_super.call(this) || this;
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
60
10
|
_this.input = input;
|
|
61
11
|
return _this;
|
|
62
|
-
// End section: command_constructor
|
|
63
12
|
}
|
|
64
|
-
/**
|
|
65
|
-
* @internal
|
|
66
|
-
*/
|
|
67
13
|
CreateBackupCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
68
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
69
15
|
var stack = clientStack.concat(this.middlewareStack);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreateBackupCommand.js","sourceRoot":"","sources":["../../../commands/CreateBackupCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAC3E,OAAO,EACL,yCAAyC,EACzC,uCAAuC,GACxC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"CreateBackupCommand.js","sourceRoot":"","sources":["../../../commands/CreateBackupCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAC3E,OAAO,EACL,yCAAyC,EACzC,uCAAuC,GACxC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AA4D7D;IAAyC,uCAIxC;IAIC,6BAAqB,KAA+B;QAApD,YAEE,iBAAO,SAER;QAJoB,WAAK,GAAL,KAAK,CAA0B;;IAIpD,CAAC;IAKD,+CAAiB,GAAjB,UACE,WAAmE,EACnE,aAA2C,EAC3C,OAA8B;QAE9B,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,cAAc,CAAC,aAAa,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;QAE1F,IAAM,KAAK,GAAG,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QAE/C,IAAA,MAAM,GAAK,aAAa,OAAlB,CAAmB;QACjC,IAAM,UAAU,GAAG,gBAAgB,CAAC;QACpC,IAAM,WAAW,GAAG,qBAAqB,CAAC;QAC1C,IAAM,uBAAuB,GAA4B;YACvD,MAAM,QAAA;YACN,UAAU,YAAA;YACV,WAAW,aAAA;YACX,uBAAuB,EAAE,iBAAiB,CAAC,kBAAkB;YAC7D,wBAAwB,EAAE,kBAAkB,CAAC,kBAAkB;SAChE,CAAC;QACM,IAAA,cAAc,GAAK,aAAa,eAAlB,CAAmB;QACzC,OAAO,KAAK,CAAC,OAAO,CAClB,UAAC,OAAsC;YACrC,OAAA,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,OAAwB,EAAE,OAAO,IAAI,EAAE,CAAC;QAAtE,CAAsE,EACxE,uBAAuB,CACxB,CAAC;IACJ,CAAC;IAEO,uCAAS,GAAjB,UAAkB,KAA+B,EAAE,OAAuB;QACxE,OAAO,uCAAuC,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACjE,CAAC;IAEO,yCAAW,GAAnB,UAAoB,MAAsB,EAAE,OAAuB;QACjE,OAAO,yCAAyC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACpE,CAAC;IAIH,0BAAC;AAAD,CAAC,AAtDD,CAAyC,QAAQ,GAsDhD"}
|
|
@@ -3,105 +3,13 @@ import { CreateGlobalTableInput, CreateGlobalTableOutput } from "../models/model
|
|
|
3
3
|
import { deserializeAws_json1_0CreateGlobalTableCommand, serializeAws_json1_0CreateGlobalTableCommand, } from "../protocols/Aws_json1_0";
|
|
4
4
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
5
5
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
6
|
-
|
|
7
|
-
* <p>Creates a global table from an existing table. A global table creates a replication
|
|
8
|
-
* relationship between two or more DynamoDB tables with the same table name in the
|
|
9
|
-
* provided Regions. </p>
|
|
10
|
-
* <note>
|
|
11
|
-
* <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>
|
|
12
|
-
* </note>
|
|
13
|
-
*
|
|
14
|
-
* <p>If you want to add a new replica table to a global table, each of the following conditions
|
|
15
|
-
* must be true:</p>
|
|
16
|
-
* <ul>
|
|
17
|
-
* <li>
|
|
18
|
-
* <p>The table must have the same primary key as all of the other replicas.</p>
|
|
19
|
-
* </li>
|
|
20
|
-
* <li>
|
|
21
|
-
* <p>The table must have the same name as all of the other replicas.</p>
|
|
22
|
-
* </li>
|
|
23
|
-
* <li>
|
|
24
|
-
* <p>The table must have DynamoDB Streams enabled, with the stream containing both the new and the old
|
|
25
|
-
* images of the item.</p>
|
|
26
|
-
* </li>
|
|
27
|
-
* <li>
|
|
28
|
-
* <p>None of the replica tables in the global table can contain any data.</p>
|
|
29
|
-
* </li>
|
|
30
|
-
* </ul>
|
|
31
|
-
* <p>
|
|
32
|
-
* If global secondary indexes are specified, then the following conditions must also be met:
|
|
33
|
-
* </p>
|
|
34
|
-
* <ul>
|
|
35
|
-
* <li>
|
|
36
|
-
* <p>
|
|
37
|
-
* The global secondary indexes must have the same name.
|
|
38
|
-
* </p>
|
|
39
|
-
* </li>
|
|
40
|
-
* <li>
|
|
41
|
-
* <p>
|
|
42
|
-
* The global secondary indexes must have the same hash key and sort key (if present).
|
|
43
|
-
* </p>
|
|
44
|
-
* </li>
|
|
45
|
-
* </ul>
|
|
46
|
-
* <p>
|
|
47
|
-
* If local secondary indexes are specified, then the following conditions must also be met:
|
|
48
|
-
* </p>
|
|
49
|
-
* <ul>
|
|
50
|
-
* <li>
|
|
51
|
-
* <p>
|
|
52
|
-
* The local secondary indexes must have the same name.
|
|
53
|
-
* </p>
|
|
54
|
-
* </li>
|
|
55
|
-
* <li>
|
|
56
|
-
* <p>
|
|
57
|
-
* The local secondary indexes must have the same hash key and sort key (if present).
|
|
58
|
-
* </p>
|
|
59
|
-
* </li>
|
|
60
|
-
* </ul>
|
|
61
|
-
*
|
|
62
|
-
* <important>
|
|
63
|
-
* <p>
|
|
64
|
-
* Write capacity settings should be set consistently across your replica tables and
|
|
65
|
-
* secondary indexes. DynamoDB strongly recommends enabling auto scaling to manage the write
|
|
66
|
-
* capacity settings for all of your global tables replicas and indexes.
|
|
67
|
-
* </p>
|
|
68
|
-
* <p>
|
|
69
|
-
* If you prefer to manage write capacity settings manually, you should provision equal
|
|
70
|
-
* replicated write capacity units to your replica tables. You should also provision
|
|
71
|
-
* equal replicated write capacity units to matching secondary indexes across
|
|
72
|
-
* your global table.
|
|
73
|
-
* </p>
|
|
74
|
-
* </important>
|
|
75
|
-
* @example
|
|
76
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
77
|
-
* ```javascript
|
|
78
|
-
* import { DynamoDBClient, CreateGlobalTableCommand } from "@aws-sdk/client-dynamodb"; // ES Modules import
|
|
79
|
-
* // const { DynamoDBClient, CreateGlobalTableCommand } = require("@aws-sdk/client-dynamodb"); // CommonJS import
|
|
80
|
-
* const client = new DynamoDBClient(config);
|
|
81
|
-
* const command = new CreateGlobalTableCommand(input);
|
|
82
|
-
* const response = await client.send(command);
|
|
83
|
-
* ```
|
|
84
|
-
*
|
|
85
|
-
* @see {@link CreateGlobalTableCommandInput} for command's `input` shape.
|
|
86
|
-
* @see {@link CreateGlobalTableCommandOutput} for command's `response` shape.
|
|
87
|
-
* @see {@link DynamoDBClientResolvedConfig | config} for command's `input` shape.
|
|
88
|
-
*
|
|
89
|
-
*/
|
|
90
|
-
var CreateGlobalTableCommand = /** @class */ (function (_super) {
|
|
6
|
+
var CreateGlobalTableCommand = (function (_super) {
|
|
91
7
|
__extends(CreateGlobalTableCommand, _super);
|
|
92
|
-
// Start section: command_properties
|
|
93
|
-
// End section: command_properties
|
|
94
8
|
function CreateGlobalTableCommand(input) {
|
|
95
|
-
var _this =
|
|
96
|
-
// Start section: command_constructor
|
|
97
|
-
_super.call(this) || this;
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
98
10
|
_this.input = input;
|
|
99
11
|
return _this;
|
|
100
|
-
// End section: command_constructor
|
|
101
12
|
}
|
|
102
|
-
/**
|
|
103
|
-
* @internal
|
|
104
|
-
*/
|
|
105
13
|
CreateGlobalTableCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
106
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
107
15
|
var stack = clientStack.concat(this.middlewareStack);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreateGlobalTableCommand.js","sourceRoot":"","sources":["../../../commands/CreateGlobalTableCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,sBAAsB,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AACrF,OAAO,EACL,8CAA8C,EAC9C,4CAA4C,GAC7C,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"CreateGlobalTableCommand.js","sourceRoot":"","sources":["../../../commands/CreateGlobalTableCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,sBAAsB,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AACrF,OAAO,EACL,8CAA8C,EAC9C,4CAA4C,GAC7C,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAkG7D;IAA8C,4CAI7C;IAIC,kCAAqB,KAAoC;QAAzD,YAEE,iBAAO,SAER;QAJoB,WAAK,GAAL,KAAK,CAA+B;;IAIzD,CAAC;IAKD,oDAAiB,GAAjB,UACE,WAAmE,EACnE,aAA2C,EAC3C,OAA8B;QAE9B,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,cAAc,CAAC,aAAa,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;QAE1F,IAAM,KAAK,GAAG,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QAE/C,IAAA,MAAM,GAAK,aAAa,OAAlB,CAAmB;QACjC,IAAM,UAAU,GAAG,gBAAgB,CAAC;QACpC,IAAM,WAAW,GAAG,0BAA0B,CAAC;QAC/C,IAAM,uBAAuB,GAA4B;YACvD,MAAM,QAAA;YACN,UAAU,YAAA;YACV,WAAW,aAAA;YACX,uBAAuB,EAAE,sBAAsB,CAAC,kBAAkB;YAClE,wBAAwB,EAAE,uBAAuB,CAAC,kBAAkB;SACrE,CAAC;QACM,IAAA,cAAc,GAAK,aAAa,eAAlB,CAAmB;QACzC,OAAO,KAAK,CAAC,OAAO,CAClB,UAAC,OAAsC;YACrC,OAAA,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,OAAwB,EAAE,OAAO,IAAI,EAAE,CAAC;QAAtE,CAAsE,EACxE,uBAAuB,CACxB,CAAC;IACJ,CAAC;IAEO,4CAAS,GAAjB,UAAkB,KAAoC,EAAE,OAAuB;QAC7E,OAAO,4CAA4C,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACtE,CAAC;IAEO,8CAAW,GAAnB,UAAoB,MAAsB,EAAE,OAAuB;QACjE,OAAO,8CAA8C,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACzE,CAAC;IAIH,+BAAC;AAAD,CAAC,AAtDD,CAA8C,QAAQ,GAsDrD"}
|
|
@@ -3,50 +3,13 @@ import { CreateTableInput, CreateTableOutput } from "../models/models_0";
|
|
|
3
3
|
import { deserializeAws_json1_0CreateTableCommand, serializeAws_json1_0CreateTableCommand, } from "../protocols/Aws_json1_0";
|
|
4
4
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
5
5
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
6
|
-
|
|
7
|
-
* <p>The <code>CreateTable</code> operation adds a new table to your account. In an AWS
|
|
8
|
-
* account, table names must be unique within each Region. That is, you can have two tables
|
|
9
|
-
* with same name if you create the tables in different Regions.</p>
|
|
10
|
-
* <p>
|
|
11
|
-
* <code>CreateTable</code> is an asynchronous operation. Upon receiving a <code>CreateTable</code> request,
|
|
12
|
-
* DynamoDB immediately returns a response with a <code>TableStatus</code> of <code>CREATING</code>. After
|
|
13
|
-
* the table is created, DynamoDB sets the <code>TableStatus</code> to <code>ACTIVE</code>. You can
|
|
14
|
-
* perform read and write operations only on an <code>ACTIVE</code> table. </p>
|
|
15
|
-
* <p>You can optionally define secondary indexes on the new table, as part of the <code>CreateTable</code>
|
|
16
|
-
* operation. If you want to create multiple tables with secondary indexes on them, you must create the
|
|
17
|
-
* tables sequentially. Only one table with secondary indexes can be in the <code>CREATING</code> state at
|
|
18
|
-
* any given time.</p>
|
|
19
|
-
* <p>You can use the <code>DescribeTable</code> action to check the table status.</p>
|
|
20
|
-
* @example
|
|
21
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
22
|
-
* ```javascript
|
|
23
|
-
* import { DynamoDBClient, CreateTableCommand } from "@aws-sdk/client-dynamodb"; // ES Modules import
|
|
24
|
-
* // const { DynamoDBClient, CreateTableCommand } = require("@aws-sdk/client-dynamodb"); // CommonJS import
|
|
25
|
-
* const client = new DynamoDBClient(config);
|
|
26
|
-
* const command = new CreateTableCommand(input);
|
|
27
|
-
* const response = await client.send(command);
|
|
28
|
-
* ```
|
|
29
|
-
*
|
|
30
|
-
* @see {@link CreateTableCommandInput} for command's `input` shape.
|
|
31
|
-
* @see {@link CreateTableCommandOutput} for command's `response` shape.
|
|
32
|
-
* @see {@link DynamoDBClientResolvedConfig | config} for command's `input` shape.
|
|
33
|
-
*
|
|
34
|
-
*/
|
|
35
|
-
var CreateTableCommand = /** @class */ (function (_super) {
|
|
6
|
+
var CreateTableCommand = (function (_super) {
|
|
36
7
|
__extends(CreateTableCommand, _super);
|
|
37
|
-
// Start section: command_properties
|
|
38
|
-
// End section: command_properties
|
|
39
8
|
function CreateTableCommand(input) {
|
|
40
|
-
var _this =
|
|
41
|
-
// Start section: command_constructor
|
|
42
|
-
_super.call(this) || this;
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
43
10
|
_this.input = input;
|
|
44
11
|
return _this;
|
|
45
|
-
// End section: command_constructor
|
|
46
12
|
}
|
|
47
|
-
/**
|
|
48
|
-
* @internal
|
|
49
|
-
*/
|
|
50
13
|
CreateTableCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
51
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
52
15
|
var stack = clientStack.concat(this.middlewareStack);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreateTableCommand.js","sourceRoot":"","sources":["../../../commands/CreateTableCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACzE,OAAO,EACL,wCAAwC,EACxC,sCAAsC,GACvC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"CreateTableCommand.js","sourceRoot":"","sources":["../../../commands/CreateTableCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACzE,OAAO,EACL,wCAAwC,EACxC,sCAAsC,GACvC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AA2C7D;IAAwC,sCAIvC;IAIC,4BAAqB,KAA8B;QAAnD,YAEE,iBAAO,SAER;QAJoB,WAAK,GAAL,KAAK,CAAyB;;IAInD,CAAC;IAKD,8CAAiB,GAAjB,UACE,WAAmE,EACnE,aAA2C,EAC3C,OAA8B;QAE9B,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,cAAc,CAAC,aAAa,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;QAE1F,IAAM,KAAK,GAAG,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QAE/C,IAAA,MAAM,GAAK,aAAa,OAAlB,CAAmB;QACjC,IAAM,UAAU,GAAG,gBAAgB,CAAC;QACpC,IAAM,WAAW,GAAG,oBAAoB,CAAC;QACzC,IAAM,uBAAuB,GAA4B;YACvD,MAAM,QAAA;YACN,UAAU,YAAA;YACV,WAAW,aAAA;YACX,uBAAuB,EAAE,gBAAgB,CAAC,kBAAkB;YAC5D,wBAAwB,EAAE,iBAAiB,CAAC,kBAAkB;SAC/D,CAAC;QACM,IAAA,cAAc,GAAK,aAAa,eAAlB,CAAmB;QACzC,OAAO,KAAK,CAAC,OAAO,CAClB,UAAC,OAAsC;YACrC,OAAA,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,OAAwB,EAAE,OAAO,IAAI,EAAE,CAAC;QAAtE,CAAsE,EACxE,uBAAuB,CACxB,CAAC;IACJ,CAAC;IAEO,sCAAS,GAAjB,UAAkB,KAA8B,EAAE,OAAuB;QACvE,OAAO,sCAAsC,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IAChE,CAAC;IAEO,wCAAW,GAAnB,UAAoB,MAAsB,EAAE,OAAuB;QACjE,OAAO,wCAAwC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACnE,CAAC;IAIH,yBAAC;AAAD,CAAC,AAtDD,CAAwC,QAAQ,GAsD/C"}
|
|
@@ -3,39 +3,13 @@ import { DeleteBackupInput, DeleteBackupOutput } from "../models/models_0";
|
|
|
3
3
|
import { deserializeAws_json1_0DeleteBackupCommand, serializeAws_json1_0DeleteBackupCommand, } from "../protocols/Aws_json1_0";
|
|
4
4
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
5
5
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
6
|
-
|
|
7
|
-
* <p>Deletes an existing backup of a table.</p>
|
|
8
|
-
* <p>You can call <code>DeleteBackup</code> at a maximum rate of 10 times per second.</p>
|
|
9
|
-
* @example
|
|
10
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
11
|
-
* ```javascript
|
|
12
|
-
* import { DynamoDBClient, DeleteBackupCommand } from "@aws-sdk/client-dynamodb"; // ES Modules import
|
|
13
|
-
* // const { DynamoDBClient, DeleteBackupCommand } = require("@aws-sdk/client-dynamodb"); // CommonJS import
|
|
14
|
-
* const client = new DynamoDBClient(config);
|
|
15
|
-
* const command = new DeleteBackupCommand(input);
|
|
16
|
-
* const response = await client.send(command);
|
|
17
|
-
* ```
|
|
18
|
-
*
|
|
19
|
-
* @see {@link DeleteBackupCommandInput} for command's `input` shape.
|
|
20
|
-
* @see {@link DeleteBackupCommandOutput} for command's `response` shape.
|
|
21
|
-
* @see {@link DynamoDBClientResolvedConfig | config} for command's `input` shape.
|
|
22
|
-
*
|
|
23
|
-
*/
|
|
24
|
-
var DeleteBackupCommand = /** @class */ (function (_super) {
|
|
6
|
+
var DeleteBackupCommand = (function (_super) {
|
|
25
7
|
__extends(DeleteBackupCommand, _super);
|
|
26
|
-
// Start section: command_properties
|
|
27
|
-
// End section: command_properties
|
|
28
8
|
function DeleteBackupCommand(input) {
|
|
29
|
-
var _this =
|
|
30
|
-
// Start section: command_constructor
|
|
31
|
-
_super.call(this) || this;
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
32
10
|
_this.input = input;
|
|
33
11
|
return _this;
|
|
34
|
-
// End section: command_constructor
|
|
35
12
|
}
|
|
36
|
-
/**
|
|
37
|
-
* @internal
|
|
38
|
-
*/
|
|
39
13
|
DeleteBackupCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
40
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
41
15
|
var stack = clientStack.concat(this.middlewareStack);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeleteBackupCommand.js","sourceRoot":"","sources":["../../../commands/DeleteBackupCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAC3E,OAAO,EACL,yCAAyC,EACzC,uCAAuC,GACxC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"DeleteBackupCommand.js","sourceRoot":"","sources":["../../../commands/DeleteBackupCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAC3E,OAAO,EACL,yCAAyC,EACzC,uCAAuC,GACxC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAgC7D;IAAyC,uCAIxC;IAIC,6BAAqB,KAA+B;QAApD,YAEE,iBAAO,SAER;QAJoB,WAAK,GAAL,KAAK,CAA0B;;IAIpD,CAAC;IAKD,+CAAiB,GAAjB,UACE,WAAmE,EACnE,aAA2C,EAC3C,OAA8B;QAE9B,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,cAAc,CAAC,aAAa,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;QAE1F,IAAM,KAAK,GAAG,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QAE/C,IAAA,MAAM,GAAK,aAAa,OAAlB,CAAmB;QACjC,IAAM,UAAU,GAAG,gBAAgB,CAAC;QACpC,IAAM,WAAW,GAAG,qBAAqB,CAAC;QAC1C,IAAM,uBAAuB,GAA4B;YACvD,MAAM,QAAA;YACN,UAAU,YAAA;YACV,WAAW,aAAA;YACX,uBAAuB,EAAE,iBAAiB,CAAC,kBAAkB;YAC7D,wBAAwB,EAAE,kBAAkB,CAAC,kBAAkB;SAChE,CAAC;QACM,IAAA,cAAc,GAAK,aAAa,eAAlB,CAAmB;QACzC,OAAO,KAAK,CAAC,OAAO,CAClB,UAAC,OAAsC;YACrC,OAAA,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,OAAwB,EAAE,OAAO,IAAI,EAAE,CAAC;QAAtE,CAAsE,EACxE,uBAAuB,CACxB,CAAC;IACJ,CAAC;IAEO,uCAAS,GAAjB,UAAkB,KAA+B,EAAE,OAAuB;QACxE,OAAO,uCAAuC,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACjE,CAAC;IAEO,yCAAW,GAAnB,UAAoB,MAAsB,EAAE,OAAuB;QACjE,OAAO,yCAAyC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACpE,CAAC;IAIH,0BAAC;AAAD,CAAC,AAtDD,CAAyC,QAAQ,GAsDhD"}
|
|
@@ -3,43 +3,13 @@ import { DeleteItemInput, DeleteItemOutput } from "../models/models_0";
|
|
|
3
3
|
import { deserializeAws_json1_0DeleteItemCommand, serializeAws_json1_0DeleteItemCommand, } from "../protocols/Aws_json1_0";
|
|
4
4
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
5
5
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
6
|
-
|
|
7
|
-
* <p>Deletes a single item in a table by primary key. You can perform a conditional delete operation that deletes the item if it exists, or if it has an expected attribute value.</p>
|
|
8
|
-
* <p>In addition to deleting an item, you can also return the item's attribute values in the same
|
|
9
|
-
* operation, using the <code>ReturnValues</code> parameter.</p>
|
|
10
|
-
* <p>Unless you specify conditions, the <code>DeleteItem</code> is an idempotent operation; running it
|
|
11
|
-
* multiple times on the same item or attribute does <i>not</i> result in an error response.</p>
|
|
12
|
-
* <p>Conditional deletes are useful for deleting items only if specific conditions are met. If those conditions are met, DynamoDB performs the delete. Otherwise, the item is not deleted.</p>
|
|
13
|
-
* @example
|
|
14
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
15
|
-
* ```javascript
|
|
16
|
-
* import { DynamoDBClient, DeleteItemCommand } from "@aws-sdk/client-dynamodb"; // ES Modules import
|
|
17
|
-
* // const { DynamoDBClient, DeleteItemCommand } = require("@aws-sdk/client-dynamodb"); // CommonJS import
|
|
18
|
-
* const client = new DynamoDBClient(config);
|
|
19
|
-
* const command = new DeleteItemCommand(input);
|
|
20
|
-
* const response = await client.send(command);
|
|
21
|
-
* ```
|
|
22
|
-
*
|
|
23
|
-
* @see {@link DeleteItemCommandInput} for command's `input` shape.
|
|
24
|
-
* @see {@link DeleteItemCommandOutput} for command's `response` shape.
|
|
25
|
-
* @see {@link DynamoDBClientResolvedConfig | config} for command's `input` shape.
|
|
26
|
-
*
|
|
27
|
-
*/
|
|
28
|
-
var DeleteItemCommand = /** @class */ (function (_super) {
|
|
6
|
+
var DeleteItemCommand = (function (_super) {
|
|
29
7
|
__extends(DeleteItemCommand, _super);
|
|
30
|
-
// Start section: command_properties
|
|
31
|
-
// End section: command_properties
|
|
32
8
|
function DeleteItemCommand(input) {
|
|
33
|
-
var _this =
|
|
34
|
-
// Start section: command_constructor
|
|
35
|
-
_super.call(this) || this;
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
36
10
|
_this.input = input;
|
|
37
11
|
return _this;
|
|
38
|
-
// End section: command_constructor
|
|
39
12
|
}
|
|
40
|
-
/**
|
|
41
|
-
* @internal
|
|
42
|
-
*/
|
|
43
13
|
DeleteItemCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
44
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
45
15
|
var stack = clientStack.concat(this.middlewareStack);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeleteItemCommand.js","sourceRoot":"","sources":["../../../commands/DeleteItemCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACvE,OAAO,EACL,uCAAuC,EACvC,qCAAqC,GACtC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"DeleteItemCommand.js","sourceRoot":"","sources":["../../../commands/DeleteItemCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACvE,OAAO,EACL,uCAAuC,EACvC,qCAAqC,GACtC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAoC7D;IAAuC,qCAItC;IAIC,2BAAqB,KAA6B;QAAlD,YAEE,iBAAO,SAER;QAJoB,WAAK,GAAL,KAAK,CAAwB;;IAIlD,CAAC;IAKD,6CAAiB,GAAjB,UACE,WAAmE,EACnE,aAA2C,EAC3C,OAA8B;QAE9B,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,cAAc,CAAC,aAAa,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;QAE1F,IAAM,KAAK,GAAG,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QAE/C,IAAA,MAAM,GAAK,aAAa,OAAlB,CAAmB;QACjC,IAAM,UAAU,GAAG,gBAAgB,CAAC;QACpC,IAAM,WAAW,GAAG,mBAAmB,CAAC;QACxC,IAAM,uBAAuB,GAA4B;YACvD,MAAM,QAAA;YACN,UAAU,YAAA;YACV,WAAW,aAAA;YACX,uBAAuB,EAAE,eAAe,CAAC,kBAAkB;YAC3D,wBAAwB,EAAE,gBAAgB,CAAC,kBAAkB;SAC9D,CAAC;QACM,IAAA,cAAc,GAAK,aAAa,eAAlB,CAAmB;QACzC,OAAO,KAAK,CAAC,OAAO,CAClB,UAAC,OAAsC;YACrC,OAAA,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,OAAwB,EAAE,OAAO,IAAI,EAAE,CAAC;QAAtE,CAAsE,EACxE,uBAAuB,CACxB,CAAC;IACJ,CAAC;IAEO,qCAAS,GAAjB,UAAkB,KAA6B,EAAE,OAAuB;QACtE,OAAO,qCAAqC,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IAC/D,CAAC;IAEO,uCAAW,GAAnB,UAAoB,MAAsB,EAAE,OAAuB;QACjE,OAAO,uCAAuC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAClE,CAAC;IAIH,wBAAC;AAAD,CAAC,AAtDD,CAAuC,QAAQ,GAsD9C"}
|
|
@@ -3,54 +3,13 @@ import { DeleteTableInput, DeleteTableOutput } from "../models/models_0";
|
|
|
3
3
|
import { deserializeAws_json1_0DeleteTableCommand, serializeAws_json1_0DeleteTableCommand, } from "../protocols/Aws_json1_0";
|
|
4
4
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
5
5
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
6
|
-
|
|
7
|
-
* <p>The <code>DeleteTable</code> operation deletes a table and all of its items. After a
|
|
8
|
-
* <code>DeleteTable</code> request, the specified table is in the <code>DELETING</code> state until
|
|
9
|
-
* DynamoDB completes the deletion. If the table is in the <code>ACTIVE</code> state, you can delete
|
|
10
|
-
* it. If a table is in <code>CREATING</code> or <code>UPDATING</code> states, then DynamoDB returns
|
|
11
|
-
* a <code>ResourceInUseException</code>. If the specified table does not exist, DynamoDB returns a
|
|
12
|
-
* <code>ResourceNotFoundException</code>. If table is already in the <code>DELETING</code> state, no
|
|
13
|
-
* error is returned. </p>
|
|
14
|
-
* <note>
|
|
15
|
-
* <p>DynamoDB might continue to accept data read and write operations, such as <code>GetItem</code> and
|
|
16
|
-
* <code>PutItem</code>, on a table in the <code>DELETING</code> state until the table deletion is
|
|
17
|
-
* complete.</p>
|
|
18
|
-
* </note>
|
|
19
|
-
* <p>When you delete a table, any indexes on that table are also deleted.</p>
|
|
20
|
-
* <p>If you have DynamoDB Streams enabled on the table, then the corresponding stream on that table goes
|
|
21
|
-
* into the <code>DISABLED</code> state, and the stream is automatically deleted after 24 hours.</p>
|
|
22
|
-
*
|
|
23
|
-
* <p>Use the <code>DescribeTable</code> action to check the status of the table. </p>
|
|
24
|
-
* @example
|
|
25
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
26
|
-
* ```javascript
|
|
27
|
-
* import { DynamoDBClient, DeleteTableCommand } from "@aws-sdk/client-dynamodb"; // ES Modules import
|
|
28
|
-
* // const { DynamoDBClient, DeleteTableCommand } = require("@aws-sdk/client-dynamodb"); // CommonJS import
|
|
29
|
-
* const client = new DynamoDBClient(config);
|
|
30
|
-
* const command = new DeleteTableCommand(input);
|
|
31
|
-
* const response = await client.send(command);
|
|
32
|
-
* ```
|
|
33
|
-
*
|
|
34
|
-
* @see {@link DeleteTableCommandInput} for command's `input` shape.
|
|
35
|
-
* @see {@link DeleteTableCommandOutput} for command's `response` shape.
|
|
36
|
-
* @see {@link DynamoDBClientResolvedConfig | config} for command's `input` shape.
|
|
37
|
-
*
|
|
38
|
-
*/
|
|
39
|
-
var DeleteTableCommand = /** @class */ (function (_super) {
|
|
6
|
+
var DeleteTableCommand = (function (_super) {
|
|
40
7
|
__extends(DeleteTableCommand, _super);
|
|
41
|
-
// Start section: command_properties
|
|
42
|
-
// End section: command_properties
|
|
43
8
|
function DeleteTableCommand(input) {
|
|
44
|
-
var _this =
|
|
45
|
-
// Start section: command_constructor
|
|
46
|
-
_super.call(this) || this;
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
47
10
|
_this.input = input;
|
|
48
11
|
return _this;
|
|
49
|
-
// End section: command_constructor
|
|
50
12
|
}
|
|
51
|
-
/**
|
|
52
|
-
* @internal
|
|
53
|
-
*/
|
|
54
13
|
DeleteTableCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
55
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
56
15
|
var stack = clientStack.concat(this.middlewareStack);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeleteTableCommand.js","sourceRoot":"","sources":["../../../commands/DeleteTableCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACzE,OAAO,EACL,wCAAwC,EACxC,sCAAsC,GACvC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"DeleteTableCommand.js","sourceRoot":"","sources":["../../../commands/DeleteTableCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACzE,OAAO,EACL,wCAAwC,EACxC,sCAAsC,GACvC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AA+C7D;IAAwC,sCAIvC;IAIC,4BAAqB,KAA8B;QAAnD,YAEE,iBAAO,SAER;QAJoB,WAAK,GAAL,KAAK,CAAyB;;IAInD,CAAC;IAKD,8CAAiB,GAAjB,UACE,WAAmE,EACnE,aAA2C,EAC3C,OAA8B;QAE9B,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,cAAc,CAAC,aAAa,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;QAE1F,IAAM,KAAK,GAAG,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QAE/C,IAAA,MAAM,GAAK,aAAa,OAAlB,CAAmB;QACjC,IAAM,UAAU,GAAG,gBAAgB,CAAC;QACpC,IAAM,WAAW,GAAG,oBAAoB,CAAC;QACzC,IAAM,uBAAuB,GAA4B;YACvD,MAAM,QAAA;YACN,UAAU,YAAA;YACV,WAAW,aAAA;YACX,uBAAuB,EAAE,gBAAgB,CAAC,kBAAkB;YAC5D,wBAAwB,EAAE,iBAAiB,CAAC,kBAAkB;SAC/D,CAAC;QACM,IAAA,cAAc,GAAK,aAAa,eAAlB,CAAmB;QACzC,OAAO,KAAK,CAAC,OAAO,CAClB,UAAC,OAAsC;YACrC,OAAA,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,OAAwB,EAAE,OAAO,IAAI,EAAE,CAAC;QAAtE,CAAsE,EACxE,uBAAuB,CACxB,CAAC;IACJ,CAAC;IAEO,sCAAS,GAAjB,UAAkB,KAA8B,EAAE,OAAuB;QACvE,OAAO,sCAAsC,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IAChE,CAAC;IAEO,wCAAW,GAAnB,UAAoB,MAAsB,EAAE,OAAuB;QACjE,OAAO,wCAAwC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACnE,CAAC;IAIH,yBAAC;AAAD,CAAC,AAtDD,CAAwC,QAAQ,GAsD/C"}
|
|
@@ -3,39 +3,13 @@ import { DescribeBackupInput, DescribeBackupOutput } from "../models/models_0";
|
|
|
3
3
|
import { deserializeAws_json1_0DescribeBackupCommand, serializeAws_json1_0DescribeBackupCommand, } from "../protocols/Aws_json1_0";
|
|
4
4
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
5
5
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
6
|
-
|
|
7
|
-
* <p>Describes an existing backup of a table.</p>
|
|
8
|
-
* <p>You can call <code>DescribeBackup</code> at a maximum rate of 10 times per second.</p>
|
|
9
|
-
* @example
|
|
10
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
11
|
-
* ```javascript
|
|
12
|
-
* import { DynamoDBClient, DescribeBackupCommand } from "@aws-sdk/client-dynamodb"; // ES Modules import
|
|
13
|
-
* // const { DynamoDBClient, DescribeBackupCommand } = require("@aws-sdk/client-dynamodb"); // CommonJS import
|
|
14
|
-
* const client = new DynamoDBClient(config);
|
|
15
|
-
* const command = new DescribeBackupCommand(input);
|
|
16
|
-
* const response = await client.send(command);
|
|
17
|
-
* ```
|
|
18
|
-
*
|
|
19
|
-
* @see {@link DescribeBackupCommandInput} for command's `input` shape.
|
|
20
|
-
* @see {@link DescribeBackupCommandOutput} for command's `response` shape.
|
|
21
|
-
* @see {@link DynamoDBClientResolvedConfig | config} for command's `input` shape.
|
|
22
|
-
*
|
|
23
|
-
*/
|
|
24
|
-
var DescribeBackupCommand = /** @class */ (function (_super) {
|
|
6
|
+
var DescribeBackupCommand = (function (_super) {
|
|
25
7
|
__extends(DescribeBackupCommand, _super);
|
|
26
|
-
// Start section: command_properties
|
|
27
|
-
// End section: command_properties
|
|
28
8
|
function DescribeBackupCommand(input) {
|
|
29
|
-
var _this =
|
|
30
|
-
// Start section: command_constructor
|
|
31
|
-
_super.call(this) || this;
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
32
10
|
_this.input = input;
|
|
33
11
|
return _this;
|
|
34
|
-
// End section: command_constructor
|
|
35
12
|
}
|
|
36
|
-
/**
|
|
37
|
-
* @internal
|
|
38
|
-
*/
|
|
39
13
|
DescribeBackupCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
40
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
41
15
|
var stack = clientStack.concat(this.middlewareStack);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DescribeBackupCommand.js","sourceRoot":"","sources":["../../../commands/DescribeBackupCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC/E,OAAO,EACL,2CAA2C,EAC3C,yCAAyC,GAC1C,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"DescribeBackupCommand.js","sourceRoot":"","sources":["../../../commands/DescribeBackupCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC/E,OAAO,EACL,2CAA2C,EAC3C,yCAAyC,GAC1C,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAgC7D;IAA2C,yCAI1C;IAIC,+BAAqB,KAAiC;QAAtD,YAEE,iBAAO,SAER;QAJoB,WAAK,GAAL,KAAK,CAA4B;;IAItD,CAAC;IAKD,iDAAiB,GAAjB,UACE,WAAmE,EACnE,aAA2C,EAC3C,OAA8B;QAE9B,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,cAAc,CAAC,aAAa,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;QAE1F,IAAM,KAAK,GAAG,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QAE/C,IAAA,MAAM,GAAK,aAAa,OAAlB,CAAmB;QACjC,IAAM,UAAU,GAAG,gBAAgB,CAAC;QACpC,IAAM,WAAW,GAAG,uBAAuB,CAAC;QAC5C,IAAM,uBAAuB,GAA4B;YACvD,MAAM,QAAA;YACN,UAAU,YAAA;YACV,WAAW,aAAA;YACX,uBAAuB,EAAE,mBAAmB,CAAC,kBAAkB;YAC/D,wBAAwB,EAAE,oBAAoB,CAAC,kBAAkB;SAClE,CAAC;QACM,IAAA,cAAc,GAAK,aAAa,eAAlB,CAAmB;QACzC,OAAO,KAAK,CAAC,OAAO,CAClB,UAAC,OAAsC;YACrC,OAAA,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,OAAwB,EAAE,OAAO,IAAI,EAAE,CAAC;QAAtE,CAAsE,EACxE,uBAAuB,CACxB,CAAC;IACJ,CAAC;IAEO,yCAAS,GAAjB,UAAkB,KAAiC,EAAE,OAAuB;QAC1E,OAAO,yCAAyC,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACnE,CAAC;IAEO,2CAAW,GAAnB,UAAoB,MAAsB,EAAE,OAAuB;QACjE,OAAO,2CAA2C,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACtE,CAAC;IAIH,4BAAC;AAAD,CAAC,AAtDD,CAA2C,QAAQ,GAsDlD"}
|