@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
|
@@ -5,59 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Creates a new table from an existing backup. Any number of users can execute up to 4 concurrent restores
|
|
10
|
-
* (any type of restore) in a given account.
|
|
11
|
-
* </p>
|
|
12
|
-
* <p>You can call <code>RestoreTableFromBackup</code> at a maximum rate of 10 times per second.</p>
|
|
13
|
-
* <p>You must manually set up the following on the restored table:</p>
|
|
14
|
-
* <ul>
|
|
15
|
-
* <li>
|
|
16
|
-
* <p>Auto scaling policies</p>
|
|
17
|
-
* </li>
|
|
18
|
-
* <li>
|
|
19
|
-
* <p>IAM policies</p>
|
|
20
|
-
* </li>
|
|
21
|
-
* <li>
|
|
22
|
-
* <p>Amazon CloudWatch metrics and alarms</p>
|
|
23
|
-
* </li>
|
|
24
|
-
* <li>
|
|
25
|
-
* <p>Tags</p>
|
|
26
|
-
* </li>
|
|
27
|
-
* <li>
|
|
28
|
-
* <p>Stream settings</p>
|
|
29
|
-
* </li>
|
|
30
|
-
* <li>
|
|
31
|
-
* <p>Time to Live (TTL) settings</p>
|
|
32
|
-
* </li>
|
|
33
|
-
* </ul>
|
|
34
|
-
* @example
|
|
35
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
36
|
-
* ```javascript
|
|
37
|
-
* import { DynamoDBClient, RestoreTableFromBackupCommand } from "@aws-sdk/client-dynamodb"; // ES Modules import
|
|
38
|
-
* // const { DynamoDBClient, RestoreTableFromBackupCommand } = require("@aws-sdk/client-dynamodb"); // CommonJS import
|
|
39
|
-
* const client = new DynamoDBClient(config);
|
|
40
|
-
* const command = new RestoreTableFromBackupCommand(input);
|
|
41
|
-
* const response = await client.send(command);
|
|
42
|
-
* ```
|
|
43
|
-
*
|
|
44
|
-
* @see {@link RestoreTableFromBackupCommandInput} for command's `input` shape.
|
|
45
|
-
* @see {@link RestoreTableFromBackupCommandOutput} for command's `response` shape.
|
|
46
|
-
* @see {@link DynamoDBClientResolvedConfig | config} for command's `input` shape.
|
|
47
|
-
*
|
|
48
|
-
*/
|
|
49
8
|
class RestoreTableFromBackupCommand extends smithy_client_1.Command {
|
|
50
|
-
// Start section: command_properties
|
|
51
|
-
// End section: command_properties
|
|
52
9
|
constructor(input) {
|
|
53
|
-
// Start section: command_constructor
|
|
54
10
|
super();
|
|
55
11
|
this.input = input;
|
|
56
|
-
// End section: command_constructor
|
|
57
12
|
}
|
|
58
|
-
/**
|
|
59
|
-
* @internal
|
|
60
|
-
*/
|
|
61
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
62
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
63
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,90 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Restores the specified table to the specified point in time within
|
|
10
|
-
* <code>EarliestRestorableDateTime</code> and <code>LatestRestorableDateTime</code>.
|
|
11
|
-
* You can restore your table to any point in time during the last 35 days.
|
|
12
|
-
* Any number of users can execute up to 4 concurrent restores (any type of restore) in a given account.
|
|
13
|
-
* </p>
|
|
14
|
-
* <p>
|
|
15
|
-
* When you restore using point in time recovery, DynamoDB restores your table data to the state based on
|
|
16
|
-
* the selected date and time (day:hour:minute:second) to a new table.
|
|
17
|
-
* </p>
|
|
18
|
-
* <p>
|
|
19
|
-
* Along with data, the following are also included on the new restored table using point in time recovery:
|
|
20
|
-
* </p>
|
|
21
|
-
* <ul>
|
|
22
|
-
* <li>
|
|
23
|
-
* <p>Global secondary indexes (GSIs)</p>
|
|
24
|
-
* </li>
|
|
25
|
-
* <li>
|
|
26
|
-
* <p>Local secondary indexes (LSIs)</p>
|
|
27
|
-
* </li>
|
|
28
|
-
* <li>
|
|
29
|
-
* <p>Provisioned read and write capacity</p>
|
|
30
|
-
* </li>
|
|
31
|
-
* <li>
|
|
32
|
-
* <p>Encryption settings</p>
|
|
33
|
-
* <important>
|
|
34
|
-
* <p>
|
|
35
|
-
* All these settings come from the current settings of the source table at the time of restore.
|
|
36
|
-
* </p>
|
|
37
|
-
* </important>
|
|
38
|
-
* </li>
|
|
39
|
-
* </ul>
|
|
40
|
-
*
|
|
41
|
-
* <p>You must manually set up the following on the restored table:</p>
|
|
42
|
-
* <ul>
|
|
43
|
-
* <li>
|
|
44
|
-
* <p>Auto scaling policies</p>
|
|
45
|
-
* </li>
|
|
46
|
-
* <li>
|
|
47
|
-
* <p>IAM policies</p>
|
|
48
|
-
* </li>
|
|
49
|
-
* <li>
|
|
50
|
-
* <p>Amazon CloudWatch metrics and alarms</p>
|
|
51
|
-
* </li>
|
|
52
|
-
* <li>
|
|
53
|
-
* <p>Tags</p>
|
|
54
|
-
* </li>
|
|
55
|
-
* <li>
|
|
56
|
-
* <p>Stream settings</p>
|
|
57
|
-
* </li>
|
|
58
|
-
* <li>
|
|
59
|
-
* <p>Time to Live (TTL) settings</p>
|
|
60
|
-
* </li>
|
|
61
|
-
* <li>
|
|
62
|
-
* <p>Point in time recovery settings</p>
|
|
63
|
-
* </li>
|
|
64
|
-
* </ul>
|
|
65
|
-
* @example
|
|
66
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
67
|
-
* ```javascript
|
|
68
|
-
* import { DynamoDBClient, RestoreTableToPointInTimeCommand } from "@aws-sdk/client-dynamodb"; // ES Modules import
|
|
69
|
-
* // const { DynamoDBClient, RestoreTableToPointInTimeCommand } = require("@aws-sdk/client-dynamodb"); // CommonJS import
|
|
70
|
-
* const client = new DynamoDBClient(config);
|
|
71
|
-
* const command = new RestoreTableToPointInTimeCommand(input);
|
|
72
|
-
* const response = await client.send(command);
|
|
73
|
-
* ```
|
|
74
|
-
*
|
|
75
|
-
* @see {@link RestoreTableToPointInTimeCommandInput} for command's `input` shape.
|
|
76
|
-
* @see {@link RestoreTableToPointInTimeCommandOutput} for command's `response` shape.
|
|
77
|
-
* @see {@link DynamoDBClientResolvedConfig | config} for command's `input` shape.
|
|
78
|
-
*
|
|
79
|
-
*/
|
|
80
8
|
class RestoreTableToPointInTimeCommand extends smithy_client_1.Command {
|
|
81
|
-
// Start section: command_properties
|
|
82
|
-
// End section: command_properties
|
|
83
9
|
constructor(input) {
|
|
84
|
-
// Start section: command_constructor
|
|
85
10
|
super();
|
|
86
11
|
this.input = input;
|
|
87
|
-
// End section: command_constructor
|
|
88
12
|
}
|
|
89
|
-
/**
|
|
90
|
-
* @internal
|
|
91
|
-
*/
|
|
92
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
93
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
94
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,59 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
|
|
8
|
-
/**
|
|
9
|
-
* <p>The <code>Scan</code> operation returns one or more items and item attributes by accessing every
|
|
10
|
-
* item in a table or a secondary index. To have DynamoDB return fewer items, you can provide a <code>FilterExpression</code> operation.</p>
|
|
11
|
-
* <p>If the total number of scanned items exceeds the maximum dataset size limit of 1 MB, the
|
|
12
|
-
* scan stops and results are returned to the user as a <code>LastEvaluatedKey</code> value
|
|
13
|
-
* to continue the scan in a subsequent operation. The results also include the number of
|
|
14
|
-
* items exceeding the limit. A scan can result in no table data meeting the filter
|
|
15
|
-
* criteria. </p>
|
|
16
|
-
* <p>A single <code>Scan</code> operation reads up to the maximum number of items set (if
|
|
17
|
-
* using the <code>Limit</code> parameter) or a maximum of 1 MB of data and then apply any
|
|
18
|
-
* filtering to the results using <code>FilterExpression</code>. If
|
|
19
|
-
* <code>LastEvaluatedKey</code> is present in the response, you need to paginate the
|
|
20
|
-
* result set. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Scan.html#Scan.Pagination">Paginating the
|
|
21
|
-
* Results</a> in the <i>Amazon DynamoDB Developer Guide</i>. </p>
|
|
22
|
-
* <p>
|
|
23
|
-
* <code>Scan</code> operations proceed sequentially; however, for faster performance on
|
|
24
|
-
* a large table or secondary index, applications can request a parallel <code>Scan</code>
|
|
25
|
-
* operation by providing the <code>Segment</code> and <code>TotalSegments</code>
|
|
26
|
-
* parameters. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Scan.html#Scan.ParallelScan">Parallel
|
|
27
|
-
* Scan</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
|
|
28
|
-
* <p>
|
|
29
|
-
* <code>Scan</code> uses eventually consistent reads when accessing the data in a
|
|
30
|
-
* table; therefore, the result set might not include the changes to data in the table
|
|
31
|
-
* immediately before the operation began. If you need a consistent copy of the data, as of
|
|
32
|
-
* the time that the <code>Scan</code> begins, you can set the <code>ConsistentRead</code>
|
|
33
|
-
* parameter to <code>true</code>.</p>
|
|
34
|
-
* @example
|
|
35
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
36
|
-
* ```javascript
|
|
37
|
-
* import { DynamoDBClient, ScanCommand } from "@aws-sdk/client-dynamodb"; // ES Modules import
|
|
38
|
-
* // const { DynamoDBClient, ScanCommand } = require("@aws-sdk/client-dynamodb"); // CommonJS import
|
|
39
|
-
* const client = new DynamoDBClient(config);
|
|
40
|
-
* const command = new ScanCommand(input);
|
|
41
|
-
* const response = await client.send(command);
|
|
42
|
-
* ```
|
|
43
|
-
*
|
|
44
|
-
* @see {@link ScanCommandInput} for command's `input` shape.
|
|
45
|
-
* @see {@link ScanCommandOutput} for command's `response` shape.
|
|
46
|
-
* @see {@link DynamoDBClientResolvedConfig | config} for command's `input` shape.
|
|
47
|
-
*
|
|
48
|
-
*/
|
|
49
8
|
class ScanCommand extends smithy_client_1.Command {
|
|
50
|
-
// Start section: command_properties
|
|
51
|
-
// End section: command_properties
|
|
52
9
|
constructor(input) {
|
|
53
|
-
// Start section: command_constructor
|
|
54
10
|
super();
|
|
55
11
|
this.input = input;
|
|
56
|
-
// End section: command_constructor
|
|
57
12
|
}
|
|
58
|
-
/**
|
|
59
|
-
* @internal
|
|
60
|
-
*/
|
|
61
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
62
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
63
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,41 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Associate a set of tags with an Amazon DynamoDB resource. You can then activate these
|
|
10
|
-
* user-defined tags so that they appear on the Billing and Cost Management console for
|
|
11
|
-
* cost allocation tracking. You can call TagResource up to five times per second, per
|
|
12
|
-
* account. </p>
|
|
13
|
-
* <p>For an overview on tagging DynamoDB resources, see
|
|
14
|
-
* <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Tagging.html">Tagging for DynamoDB</a>
|
|
15
|
-
* in the <i>Amazon DynamoDB Developer Guide</i>.</p>
|
|
16
|
-
* @example
|
|
17
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
18
|
-
* ```javascript
|
|
19
|
-
* import { DynamoDBClient, TagResourceCommand } from "@aws-sdk/client-dynamodb"; // ES Modules import
|
|
20
|
-
* // const { DynamoDBClient, TagResourceCommand } = require("@aws-sdk/client-dynamodb"); // CommonJS import
|
|
21
|
-
* const client = new DynamoDBClient(config);
|
|
22
|
-
* const command = new TagResourceCommand(input);
|
|
23
|
-
* const response = await client.send(command);
|
|
24
|
-
* ```
|
|
25
|
-
*
|
|
26
|
-
* @see {@link TagResourceCommandInput} for command's `input` shape.
|
|
27
|
-
* @see {@link TagResourceCommandOutput} for command's `response` shape.
|
|
28
|
-
* @see {@link DynamoDBClientResolvedConfig | config} for command's `input` shape.
|
|
29
|
-
*
|
|
30
|
-
*/
|
|
31
8
|
class TagResourceCommand extends smithy_client_1.Command {
|
|
32
|
-
// Start section: command_properties
|
|
33
|
-
// End section: command_properties
|
|
34
9
|
constructor(input) {
|
|
35
|
-
// Start section: command_constructor
|
|
36
10
|
super();
|
|
37
11
|
this.input = input;
|
|
38
|
-
// End section: command_constructor
|
|
39
12
|
}
|
|
40
|
-
/**
|
|
41
|
-
* @internal
|
|
42
|
-
*/
|
|
43
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
44
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
45
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,60 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
|
|
8
|
-
/**
|
|
9
|
-
* <p>
|
|
10
|
-
* <code>TransactGetItems</code> is a synchronous operation that atomically retrieves
|
|
11
|
-
* multiple items from one or more tables (but not from indexes) in a single account and
|
|
12
|
-
* Region. A <code>TransactGetItems</code> call can contain up to 25
|
|
13
|
-
* <code>TransactGetItem</code> objects, each of which contains a <code>Get</code>
|
|
14
|
-
* structure that specifies an item to retrieve from a table in the account and Region. A
|
|
15
|
-
* call to <code>TransactGetItems</code> cannot retrieve items from tables in more than one
|
|
16
|
-
* AWS account or Region. The aggregate size of the items in the transaction cannot exceed
|
|
17
|
-
* 4 MB.</p>
|
|
18
|
-
* <p>DynamoDB rejects the entire <code>TransactGetItems</code> request if any of the following is true:</p>
|
|
19
|
-
* <ul>
|
|
20
|
-
* <li>
|
|
21
|
-
* <p>A conflicting operation is in the process of updating an
|
|
22
|
-
* item to be read.</p>
|
|
23
|
-
* </li>
|
|
24
|
-
* <li>
|
|
25
|
-
* <p>There is insufficient provisioned capacity for the transaction
|
|
26
|
-
* to be completed.</p>
|
|
27
|
-
* </li>
|
|
28
|
-
* <li>
|
|
29
|
-
* <p>There is a user error, such as an invalid data format.</p>
|
|
30
|
-
* </li>
|
|
31
|
-
* <li>
|
|
32
|
-
* <p>The aggregate size of the items in the transaction cannot exceed 4 MB.</p>
|
|
33
|
-
* </li>
|
|
34
|
-
* </ul>
|
|
35
|
-
* @example
|
|
36
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
37
|
-
* ```javascript
|
|
38
|
-
* import { DynamoDBClient, TransactGetItemsCommand } from "@aws-sdk/client-dynamodb"; // ES Modules import
|
|
39
|
-
* // const { DynamoDBClient, TransactGetItemsCommand } = require("@aws-sdk/client-dynamodb"); // CommonJS import
|
|
40
|
-
* const client = new DynamoDBClient(config);
|
|
41
|
-
* const command = new TransactGetItemsCommand(input);
|
|
42
|
-
* const response = await client.send(command);
|
|
43
|
-
* ```
|
|
44
|
-
*
|
|
45
|
-
* @see {@link TransactGetItemsCommandInput} for command's `input` shape.
|
|
46
|
-
* @see {@link TransactGetItemsCommandOutput} for command's `response` shape.
|
|
47
|
-
* @see {@link DynamoDBClientResolvedConfig | config} for command's `input` shape.
|
|
48
|
-
*
|
|
49
|
-
*/
|
|
50
8
|
class TransactGetItemsCommand extends smithy_client_1.Command {
|
|
51
|
-
// Start section: command_properties
|
|
52
|
-
// End section: command_properties
|
|
53
9
|
constructor(input) {
|
|
54
|
-
// Start section: command_constructor
|
|
55
10
|
super();
|
|
56
11
|
this.input = input;
|
|
57
|
-
// End section: command_constructor
|
|
58
12
|
}
|
|
59
|
-
/**
|
|
60
|
-
* @internal
|
|
61
|
-
*/
|
|
62
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
63
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
64
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,108 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
|
|
8
|
-
/**
|
|
9
|
-
* <p>
|
|
10
|
-
* <code>TransactWriteItems</code> is a synchronous write operation that groups up to 25
|
|
11
|
-
* action requests. These actions can target items in different tables, but not in
|
|
12
|
-
* different AWS accounts or Regions, and no two actions can target the same item. For
|
|
13
|
-
* example, you cannot both <code>ConditionCheck</code> and <code>Update</code> the same
|
|
14
|
-
* item. The aggregate size of the items in the transaction cannot exceed 4 MB.</p>
|
|
15
|
-
*
|
|
16
|
-
* <p>The actions are completed atomically so that either all of
|
|
17
|
-
* them succeed, or all of them fail. They are defined by the following objects:</p>
|
|
18
|
-
*
|
|
19
|
-
* <ul>
|
|
20
|
-
* <li>
|
|
21
|
-
* <p>
|
|
22
|
-
* <code>Put</code> Initiates a <code>PutItem</code> operation to write a new
|
|
23
|
-
* item. This structure specifies the primary key of the item to be written, the
|
|
24
|
-
* name of the table to write it in, an optional condition expression that must be
|
|
25
|
-
* satisfied for the write to succeed, a list of the item's attributes, and a field
|
|
26
|
-
* indicating whether to retrieve the item's attributes if the condition is not
|
|
27
|
-
* met.</p>
|
|
28
|
-
* </li>
|
|
29
|
-
* <li>
|
|
30
|
-
* <p>
|
|
31
|
-
* <code>Update</code> Initiates an <code>UpdateItem</code> operation to
|
|
32
|
-
* update an existing item. This structure specifies the primary key of the item to
|
|
33
|
-
* be updated, the name of the table where it resides, an optional condition
|
|
34
|
-
* expression that must be satisfied for the update to succeed, an expression that
|
|
35
|
-
* defines one or more attributes to be updated, and a field indicating whether to
|
|
36
|
-
* retrieve the item's attributes if the condition is not met.</p>
|
|
37
|
-
* </li>
|
|
38
|
-
* <li>
|
|
39
|
-
* <p>
|
|
40
|
-
* <code>Delete</code> Initiates a <code>DeleteItem</code> operation to
|
|
41
|
-
* delete an existing item. This structure specifies the primary key of the item to
|
|
42
|
-
* be deleted, the name of the table where it resides, an optional condition
|
|
43
|
-
* expression that must be satisfied for the deletion to succeed, and a field
|
|
44
|
-
* indicating whether to retrieve the item's attributes if the condition is not
|
|
45
|
-
* met.</p>
|
|
46
|
-
* </li>
|
|
47
|
-
* <li>
|
|
48
|
-
* <p>
|
|
49
|
-
* <code>ConditionCheck</code> Applies a condition to an item that is not
|
|
50
|
-
* being modified by the transaction. This structure specifies the primary key of
|
|
51
|
-
* the item to be checked, the name of the table where it resides, a condition
|
|
52
|
-
* expression that must be satisfied for the transaction to succeed, and a field
|
|
53
|
-
* indicating whether to retrieve the item's attributes if the condition is not
|
|
54
|
-
* met.</p>
|
|
55
|
-
* </li>
|
|
56
|
-
* </ul>
|
|
57
|
-
*
|
|
58
|
-
* <p>DynamoDB rejects the entire <code>TransactWriteItems</code> request if any of the following is true:</p>
|
|
59
|
-
* <ul>
|
|
60
|
-
* <li>
|
|
61
|
-
* <p>A condition in one of the condition expressions is not met.</p>
|
|
62
|
-
* </li>
|
|
63
|
-
* <li>
|
|
64
|
-
* <p>An ongoing operation is in the process of updating the same
|
|
65
|
-
* item.</p>
|
|
66
|
-
* </li>
|
|
67
|
-
* <li>
|
|
68
|
-
* <p>There is insufficient provisioned capacity for the transaction
|
|
69
|
-
* to be completed.</p>
|
|
70
|
-
* </li>
|
|
71
|
-
* <li>
|
|
72
|
-
* <p>An item size becomes too large (bigger than 400 KB), a local secondary index (LSI) becomes too
|
|
73
|
-
* large, or a similar validation error occurs because of changes made by the
|
|
74
|
-
* transaction.</p>
|
|
75
|
-
* </li>
|
|
76
|
-
* <li>
|
|
77
|
-
* <p>The aggregate size of the items in the transaction exceeds 4 MB.</p>
|
|
78
|
-
* </li>
|
|
79
|
-
* <li>
|
|
80
|
-
* <p>There is a user error, such as an invalid data format.</p>
|
|
81
|
-
* </li>
|
|
82
|
-
* </ul>
|
|
83
|
-
* @example
|
|
84
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
85
|
-
* ```javascript
|
|
86
|
-
* import { DynamoDBClient, TransactWriteItemsCommand } from "@aws-sdk/client-dynamodb"; // ES Modules import
|
|
87
|
-
* // const { DynamoDBClient, TransactWriteItemsCommand } = require("@aws-sdk/client-dynamodb"); // CommonJS import
|
|
88
|
-
* const client = new DynamoDBClient(config);
|
|
89
|
-
* const command = new TransactWriteItemsCommand(input);
|
|
90
|
-
* const response = await client.send(command);
|
|
91
|
-
* ```
|
|
92
|
-
*
|
|
93
|
-
* @see {@link TransactWriteItemsCommandInput} for command's `input` shape.
|
|
94
|
-
* @see {@link TransactWriteItemsCommandOutput} for command's `response` shape.
|
|
95
|
-
* @see {@link DynamoDBClientResolvedConfig | config} for command's `input` shape.
|
|
96
|
-
*
|
|
97
|
-
*/
|
|
98
8
|
class TransactWriteItemsCommand extends smithy_client_1.Command {
|
|
99
|
-
// Start section: command_properties
|
|
100
|
-
// End section: command_properties
|
|
101
9
|
constructor(input) {
|
|
102
|
-
// Start section: command_constructor
|
|
103
10
|
super();
|
|
104
11
|
this.input = input;
|
|
105
|
-
// End section: command_constructor
|
|
106
12
|
}
|
|
107
|
-
/**
|
|
108
|
-
* @internal
|
|
109
|
-
*/
|
|
110
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
111
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
112
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,39 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Removes the association of tags from an Amazon DynamoDB resource. You can call
|
|
10
|
-
* <code>UntagResource</code> up to five times per second, per account. </p>
|
|
11
|
-
* <p>For an overview on tagging DynamoDB resources, see
|
|
12
|
-
* <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Tagging.html">Tagging for DynamoDB</a>
|
|
13
|
-
* in the <i>Amazon DynamoDB Developer Guide</i>.</p>
|
|
14
|
-
* @example
|
|
15
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
16
|
-
* ```javascript
|
|
17
|
-
* import { DynamoDBClient, UntagResourceCommand } from "@aws-sdk/client-dynamodb"; // ES Modules import
|
|
18
|
-
* // const { DynamoDBClient, UntagResourceCommand } = require("@aws-sdk/client-dynamodb"); // CommonJS import
|
|
19
|
-
* const client = new DynamoDBClient(config);
|
|
20
|
-
* const command = new UntagResourceCommand(input);
|
|
21
|
-
* const response = await client.send(command);
|
|
22
|
-
* ```
|
|
23
|
-
*
|
|
24
|
-
* @see {@link UntagResourceCommandInput} for command's `input` shape.
|
|
25
|
-
* @see {@link UntagResourceCommandOutput} for command's `response` shape.
|
|
26
|
-
* @see {@link DynamoDBClientResolvedConfig | config} for command's `input` shape.
|
|
27
|
-
*
|
|
28
|
-
*/
|
|
29
8
|
class UntagResourceCommand extends smithy_client_1.Command {
|
|
30
|
-
// Start section: command_properties
|
|
31
|
-
// End section: command_properties
|
|
32
9
|
constructor(input) {
|
|
33
|
-
// Start section: command_constructor
|
|
34
10
|
super();
|
|
35
11
|
this.input = input;
|
|
36
|
-
// End section: command_constructor
|
|
37
12
|
}
|
|
38
|
-
/**
|
|
39
|
-
* @internal
|
|
40
|
-
*/
|
|
41
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
42
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
43
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,46 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
|
|
8
|
-
/**
|
|
9
|
-
* <p>
|
|
10
|
-
* <code>UpdateContinuousBackups</code> enables or disables point in time recovery for the specified table.
|
|
11
|
-
* A successful <code>UpdateContinuousBackups</code> call returns the current <code>ContinuousBackupsDescription</code>.
|
|
12
|
-
* Continuous backups are <code>ENABLED</code> on all tables at table creation.
|
|
13
|
-
* If point in time recovery is enabled, <code>PointInTimeRecoveryStatus</code> will be set to ENABLED.</p>
|
|
14
|
-
* <p>
|
|
15
|
-
* Once continuous backups and point in time recovery are enabled, you can restore to any point in time within
|
|
16
|
-
* <code>EarliestRestorableDateTime</code> and <code>LatestRestorableDateTime</code>.
|
|
17
|
-
* </p>
|
|
18
|
-
* <p>
|
|
19
|
-
* <code>LatestRestorableDateTime</code> is typically 5 minutes before the current time.
|
|
20
|
-
* You can restore your table to any point in time during the last 35 days. </p>
|
|
21
|
-
* @example
|
|
22
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
23
|
-
* ```javascript
|
|
24
|
-
* import { DynamoDBClient, UpdateContinuousBackupsCommand } from "@aws-sdk/client-dynamodb"; // ES Modules import
|
|
25
|
-
* // const { DynamoDBClient, UpdateContinuousBackupsCommand } = require("@aws-sdk/client-dynamodb"); // CommonJS import
|
|
26
|
-
* const client = new DynamoDBClient(config);
|
|
27
|
-
* const command = new UpdateContinuousBackupsCommand(input);
|
|
28
|
-
* const response = await client.send(command);
|
|
29
|
-
* ```
|
|
30
|
-
*
|
|
31
|
-
* @see {@link UpdateContinuousBackupsCommandInput} for command's `input` shape.
|
|
32
|
-
* @see {@link UpdateContinuousBackupsCommandOutput} for command's `response` shape.
|
|
33
|
-
* @see {@link DynamoDBClientResolvedConfig | config} for command's `input` shape.
|
|
34
|
-
*
|
|
35
|
-
*/
|
|
36
8
|
class UpdateContinuousBackupsCommand extends smithy_client_1.Command {
|
|
37
|
-
// Start section: command_properties
|
|
38
|
-
// End section: command_properties
|
|
39
9
|
constructor(input) {
|
|
40
|
-
// Start section: command_constructor
|
|
41
10
|
super();
|
|
42
11
|
this.input = input;
|
|
43
|
-
// End section: command_constructor
|
|
44
12
|
}
|
|
45
|
-
/**
|
|
46
|
-
* @internal
|
|
47
|
-
*/
|
|
48
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
49
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
50
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Updates the status for contributor insights for a specific table or index.</p>
|
|
10
|
-
* @example
|
|
11
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
12
|
-
* ```javascript
|
|
13
|
-
* import { DynamoDBClient, UpdateContributorInsightsCommand } from "@aws-sdk/client-dynamodb"; // ES Modules import
|
|
14
|
-
* // const { DynamoDBClient, UpdateContributorInsightsCommand } = require("@aws-sdk/client-dynamodb"); // CommonJS import
|
|
15
|
-
* const client = new DynamoDBClient(config);
|
|
16
|
-
* const command = new UpdateContributorInsightsCommand(input);
|
|
17
|
-
* const response = await client.send(command);
|
|
18
|
-
* ```
|
|
19
|
-
*
|
|
20
|
-
* @see {@link UpdateContributorInsightsCommandInput} for command's `input` shape.
|
|
21
|
-
* @see {@link UpdateContributorInsightsCommandOutput} for command's `response` shape.
|
|
22
|
-
* @see {@link DynamoDBClientResolvedConfig | config} for command's `input` shape.
|
|
23
|
-
*
|
|
24
|
-
*/
|
|
25
8
|
class UpdateContributorInsightsCommand extends smithy_client_1.Command {
|
|
26
|
-
// Start section: command_properties
|
|
27
|
-
// End section: command_properties
|
|
28
9
|
constructor(input) {
|
|
29
|
-
// Start section: command_constructor
|
|
30
10
|
super();
|
|
31
11
|
this.input = input;
|
|
32
|
-
// End section: command_constructor
|
|
33
12
|
}
|
|
34
|
-
/**
|
|
35
|
-
* @internal
|
|
36
|
-
*/
|
|
37
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
38
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
39
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,63 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Adds or removes replicas in the specified global table. The global table must already
|
|
10
|
-
* exist to be able to use this operation. Any replica to be added must be empty, have the
|
|
11
|
-
* same name as the global table, have the same key schema, have DynamoDB Streams enabled,
|
|
12
|
-
* and have the same provisioned and maximum write capacity units.</p>
|
|
13
|
-
* <note>
|
|
14
|
-
* <p>Although you can use <code>UpdateGlobalTable</code> to add replicas and remove replicas in
|
|
15
|
-
* a single request, for simplicity we recommend that you issue separate requests for
|
|
16
|
-
* adding or removing replicas.</p>
|
|
17
|
-
* </note>
|
|
18
|
-
* <p>
|
|
19
|
-
* If global secondary indexes are specified, then the following conditions must also be met:
|
|
20
|
-
* </p>
|
|
21
|
-
* <ul>
|
|
22
|
-
* <li>
|
|
23
|
-
* <p>
|
|
24
|
-
* The global secondary indexes must have the same name.
|
|
25
|
-
* </p>
|
|
26
|
-
* </li>
|
|
27
|
-
* <li>
|
|
28
|
-
* <p>
|
|
29
|
-
* The global secondary indexes must have the same hash key and sort key (if present).
|
|
30
|
-
* </p>
|
|
31
|
-
* </li>
|
|
32
|
-
* <li>
|
|
33
|
-
* <p>
|
|
34
|
-
* The global secondary indexes must have the same provisioned and maximum write capacity units.
|
|
35
|
-
* </p>
|
|
36
|
-
* </li>
|
|
37
|
-
* </ul>
|
|
38
|
-
* @example
|
|
39
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
40
|
-
* ```javascript
|
|
41
|
-
* import { DynamoDBClient, UpdateGlobalTableCommand } from "@aws-sdk/client-dynamodb"; // ES Modules import
|
|
42
|
-
* // const { DynamoDBClient, UpdateGlobalTableCommand } = require("@aws-sdk/client-dynamodb"); // CommonJS import
|
|
43
|
-
* const client = new DynamoDBClient(config);
|
|
44
|
-
* const command = new UpdateGlobalTableCommand(input);
|
|
45
|
-
* const response = await client.send(command);
|
|
46
|
-
* ```
|
|
47
|
-
*
|
|
48
|
-
* @see {@link UpdateGlobalTableCommandInput} for command's `input` shape.
|
|
49
|
-
* @see {@link UpdateGlobalTableCommandOutput} for command's `response` shape.
|
|
50
|
-
* @see {@link DynamoDBClientResolvedConfig | config} for command's `input` shape.
|
|
51
|
-
*
|
|
52
|
-
*/
|
|
53
8
|
class UpdateGlobalTableCommand extends smithy_client_1.Command {
|
|
54
|
-
// Start section: command_properties
|
|
55
|
-
// End section: command_properties
|
|
56
9
|
constructor(input) {
|
|
57
|
-
// Start section: command_constructor
|
|
58
10
|
super();
|
|
59
11
|
this.input = input;
|
|
60
|
-
// End section: command_constructor
|
|
61
12
|
}
|
|
62
|
-
/**
|
|
63
|
-
* @internal
|
|
64
|
-
*/
|
|
65
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
66
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
67
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Updates settings for a global table.</p>
|
|
10
|
-
* @example
|
|
11
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
12
|
-
* ```javascript
|
|
13
|
-
* import { DynamoDBClient, UpdateGlobalTableSettingsCommand } from "@aws-sdk/client-dynamodb"; // ES Modules import
|
|
14
|
-
* // const { DynamoDBClient, UpdateGlobalTableSettingsCommand } = require("@aws-sdk/client-dynamodb"); // CommonJS import
|
|
15
|
-
* const client = new DynamoDBClient(config);
|
|
16
|
-
* const command = new UpdateGlobalTableSettingsCommand(input);
|
|
17
|
-
* const response = await client.send(command);
|
|
18
|
-
* ```
|
|
19
|
-
*
|
|
20
|
-
* @see {@link UpdateGlobalTableSettingsCommandInput} for command's `input` shape.
|
|
21
|
-
* @see {@link UpdateGlobalTableSettingsCommandOutput} for command's `response` shape.
|
|
22
|
-
* @see {@link DynamoDBClientResolvedConfig | config} for command's `input` shape.
|
|
23
|
-
*
|
|
24
|
-
*/
|
|
25
8
|
class UpdateGlobalTableSettingsCommand extends smithy_client_1.Command {
|
|
26
|
-
// Start section: command_properties
|
|
27
|
-
// End section: command_properties
|
|
28
9
|
constructor(input) {
|
|
29
|
-
// Start section: command_constructor
|
|
30
10
|
super();
|
|
31
11
|
this.input = input;
|
|
32
|
-
// End section: command_constructor
|
|
33
12
|
}
|
|
34
|
-
/**
|
|
35
|
-
* @internal
|
|
36
|
-
*/
|
|
37
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
38
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
39
15
|
const stack = clientStack.concat(this.middlewareStack);
|