@depup/aws-sdk__client-dynamodb 3.1005.0-depup.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/LICENSE +201 -0
- package/README.md +31 -0
- package/dist-cjs/auth/httpAuthSchemeProvider.js +46 -0
- package/dist-cjs/endpoint/endpointResolver.js +27 -0
- package/dist-cjs/endpoint/ruleset.js +7 -0
- package/dist-cjs/index.js +1667 -0
- package/dist-cjs/models/DynamoDBServiceException.js +12 -0
- package/dist-cjs/models/errors.js +478 -0
- package/dist-cjs/runtimeConfig.browser.js +41 -0
- package/dist-cjs/runtimeConfig.js +57 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +46 -0
- package/dist-cjs/schemas/schemas_0.js +2390 -0
- package/dist-es/DynamoDB.js +149 -0
- package/dist-es/DynamoDBClient.js +55 -0
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +40 -0
- package/dist-es/commands/BatchExecuteStatementCommand.js +16 -0
- package/dist-es/commands/BatchGetItemCommand.js +19 -0
- package/dist-es/commands/BatchWriteItemCommand.js +19 -0
- package/dist-es/commands/CreateBackupCommand.js +19 -0
- package/dist-es/commands/CreateGlobalTableCommand.js +19 -0
- package/dist-es/commands/CreateTableCommand.js +19 -0
- package/dist-es/commands/DeleteBackupCommand.js +19 -0
- package/dist-es/commands/DeleteItemCommand.js +19 -0
- package/dist-es/commands/DeleteResourcePolicyCommand.js +19 -0
- package/dist-es/commands/DeleteTableCommand.js +19 -0
- package/dist-es/commands/DescribeBackupCommand.js +19 -0
- package/dist-es/commands/DescribeContinuousBackupsCommand.js +19 -0
- package/dist-es/commands/DescribeContributorInsightsCommand.js +19 -0
- package/dist-es/commands/DescribeEndpointsCommand.js +16 -0
- package/dist-es/commands/DescribeExportCommand.js +19 -0
- package/dist-es/commands/DescribeGlobalTableCommand.js +19 -0
- package/dist-es/commands/DescribeGlobalTableSettingsCommand.js +19 -0
- package/dist-es/commands/DescribeImportCommand.js +19 -0
- package/dist-es/commands/DescribeKinesisStreamingDestinationCommand.js +19 -0
- package/dist-es/commands/DescribeLimitsCommand.js +16 -0
- package/dist-es/commands/DescribeTableCommand.js +19 -0
- package/dist-es/commands/DescribeTableReplicaAutoScalingCommand.js +19 -0
- package/dist-es/commands/DescribeTimeToLiveCommand.js +19 -0
- package/dist-es/commands/DisableKinesisStreamingDestinationCommand.js +19 -0
- package/dist-es/commands/EnableKinesisStreamingDestinationCommand.js +19 -0
- package/dist-es/commands/ExecuteStatementCommand.js +16 -0
- package/dist-es/commands/ExecuteTransactionCommand.js +16 -0
- package/dist-es/commands/ExportTableToPointInTimeCommand.js +19 -0
- package/dist-es/commands/GetItemCommand.js +19 -0
- package/dist-es/commands/GetResourcePolicyCommand.js +19 -0
- package/dist-es/commands/ImportTableCommand.js +19 -0
- package/dist-es/commands/ListBackupsCommand.js +19 -0
- package/dist-es/commands/ListContributorInsightsCommand.js +19 -0
- package/dist-es/commands/ListExportsCommand.js +19 -0
- package/dist-es/commands/ListGlobalTablesCommand.js +16 -0
- package/dist-es/commands/ListImportsCommand.js +19 -0
- package/dist-es/commands/ListTablesCommand.js +16 -0
- package/dist-es/commands/ListTagsOfResourceCommand.js +19 -0
- package/dist-es/commands/PutItemCommand.js +19 -0
- package/dist-es/commands/PutResourcePolicyCommand.js +19 -0
- package/dist-es/commands/QueryCommand.js +19 -0
- package/dist-es/commands/RestoreTableFromBackupCommand.js +19 -0
- package/dist-es/commands/RestoreTableToPointInTimeCommand.js +19 -0
- package/dist-es/commands/ScanCommand.js +19 -0
- package/dist-es/commands/TagResourceCommand.js +19 -0
- package/dist-es/commands/TransactGetItemsCommand.js +19 -0
- package/dist-es/commands/TransactWriteItemsCommand.js +19 -0
- package/dist-es/commands/UntagResourceCommand.js +19 -0
- package/dist-es/commands/UpdateContinuousBackupsCommand.js +19 -0
- package/dist-es/commands/UpdateContributorInsightsCommand.js +19 -0
- package/dist-es/commands/UpdateGlobalTableCommand.js +19 -0
- package/dist-es/commands/UpdateGlobalTableSettingsCommand.js +19 -0
- package/dist-es/commands/UpdateItemCommand.js +19 -0
- package/dist-es/commands/UpdateKinesisStreamingDestinationCommand.js +19 -0
- package/dist-es/commands/UpdateTableCommand.js +19 -0
- package/dist-es/commands/UpdateTableReplicaAutoScalingCommand.js +19 -0
- package/dist-es/commands/UpdateTimeToLiveCommand.js +19 -0
- package/dist-es/commands/index.js +57 -0
- package/dist-es/endpoint/EndpointParameters.js +15 -0
- package/dist-es/endpoint/endpointResolver.js +23 -0
- package/dist-es/endpoint/ruleset.js +4 -0
- package/dist-es/extensionConfiguration.js +1 -0
- package/dist-es/index.js +10 -0
- package/dist-es/models/DynamoDBServiceException.js +8 -0
- package/dist-es/models/enums.js +245 -0
- package/dist-es/models/errors.js +440 -0
- package/dist-es/models/models_0.js +1 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListContributorInsightsPaginator.js +4 -0
- package/dist-es/pagination/ListExportsPaginator.js +4 -0
- package/dist-es/pagination/ListImportsPaginator.js +4 -0
- package/dist-es/pagination/ListTablesPaginator.js +4 -0
- package/dist-es/pagination/QueryPaginator.js +4 -0
- package/dist-es/pagination/ScanPaginator.js +4 -0
- package/dist-es/pagination/index.js +7 -0
- package/dist-es/runtimeConfig.browser.js +36 -0
- package/dist-es/runtimeConfig.js +52 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +42 -0
- package/dist-es/runtimeExtensions.js +9 -0
- package/dist-es/schemas/schemas_0.js +2381 -0
- package/dist-es/waiters/index.js +6 -0
- package/dist-es/waiters/waitForContributorInsightsEnabled.js +40 -0
- package/dist-es/waiters/waitForExportCompleted.js +40 -0
- package/dist-es/waiters/waitForImportCompleted.js +49 -0
- package/dist-es/waiters/waitForKinesisStreamingDestinationActive.js +49 -0
- package/dist-es/waiters/waitForTableExists.js +34 -0
- package/dist-es/waiters/waitForTableNotExists.js +25 -0
- package/dist-types/DynamoDB.d.ts +512 -0
- package/dist-types/DynamoDBClient.d.ts +272 -0
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +75 -0
- package/dist-types/commands/BatchExecuteStatementCommand.d.ts +234 -0
- package/dist-types/commands/BatchGetItemCommand.d.ts +366 -0
- package/dist-types/commands/BatchWriteItemCommand.d.ts +414 -0
- package/dist-types/commands/CreateBackupCommand.d.ts +151 -0
- package/dist-types/commands/CreateGlobalTableCommand.d.ts +211 -0
- package/dist-types/commands/CreateTableCommand.d.ts +394 -0
- package/dist-types/commands/DeleteBackupCommand.d.ts +197 -0
- package/dist-types/commands/DeleteItemCommand.d.ts +296 -0
- package/dist-types/commands/DeleteResourcePolicyCommand.d.ts +145 -0
- package/dist-types/commands/DeleteTableCommand.d.ts +338 -0
- package/dist-types/commands/DescribeBackupCommand.d.ts +175 -0
- package/dist-types/commands/DescribeContinuousBackupsCommand.d.ts +104 -0
- package/dist-types/commands/DescribeContributorInsightsCommand.d.ts +94 -0
- package/dist-types/commands/DescribeEndpointsCommand.d.ts +78 -0
- package/dist-types/commands/DescribeExportCommand.d.ts +124 -0
- package/dist-types/commands/DescribeGlobalTableCommand.d.ts +133 -0
- package/dist-types/commands/DescribeGlobalTableSettingsCommand.d.ts +178 -0
- package/dist-types/commands/DescribeImportCommand.d.ts +165 -0
- package/dist-types/commands/DescribeKinesisStreamingDestinationCommand.d.ts +91 -0
- package/dist-types/commands/DescribeLimitsCommand.d.ts +165 -0
- package/dist-types/commands/DescribeTableCommand.d.ts +269 -0
- package/dist-types/commands/DescribeTableReplicaAutoScalingCommand.d.ts +164 -0
- package/dist-types/commands/DescribeTimeToLiveCommand.d.ts +86 -0
- package/dist-types/commands/DisableKinesisStreamingDestinationCommand.d.ts +128 -0
- package/dist-types/commands/EnableKinesisStreamingDestinationCommand.d.ts +130 -0
- package/dist-types/commands/ExecuteStatementCommand.d.ts +251 -0
- package/dist-types/commands/ExecuteTransactionCommand.d.ts +534 -0
- package/dist-types/commands/ExportTableToPointInTimeCommand.d.ts +152 -0
- package/dist-types/commands/GetItemCommand.d.ts +264 -0
- package/dist-types/commands/GetResourcePolicyCommand.d.ts +124 -0
- package/dist-types/commands/ImportTableCommand.d.ts +275 -0
- package/dist-types/commands/ListBackupsCommand.d.ts +109 -0
- package/dist-types/commands/ListContributorInsightsCommand.d.ts +92 -0
- package/dist-types/commands/ListExportsCommand.d.ts +104 -0
- package/dist-types/commands/ListGlobalTablesCommand.d.ts +95 -0
- package/dist-types/commands/ListImportsCommand.d.ts +110 -0
- package/dist-types/commands/ListTablesCommand.d.ts +103 -0
- package/dist-types/commands/ListTagsOfResourceCommand.d.ts +93 -0
- package/dist-types/commands/PutItemCommand.d.ts +315 -0
- package/dist-types/commands/PutResourcePolicyCommand.d.ts +147 -0
- package/dist-types/commands/QueryCommand.d.ts +338 -0
- package/dist-types/commands/RestoreTableFromBackupCommand.d.ts +373 -0
- package/dist-types/commands/RestoreTableToPointInTimeCommand.d.ts +407 -0
- package/dist-types/commands/ScanCommand.d.ts +337 -0
- package/dist-types/commands/TagResourceCommand.d.ts +145 -0
- package/dist-types/commands/TransactGetItemsCommand.d.ts +496 -0
- package/dist-types/commands/TransactWriteItemsCommand.d.ts +659 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +140 -0
- package/dist-types/commands/UpdateContinuousBackupsCommand.d.ts +111 -0
- package/dist-types/commands/UpdateContributorInsightsCommand.d.ts +93 -0
- package/dist-types/commands/UpdateGlobalTableCommand.d.ts +179 -0
- package/dist-types/commands/UpdateGlobalTableSettingsCommand.d.ts +286 -0
- package/dist-types/commands/UpdateItemCommand.d.ts +323 -0
- package/dist-types/commands/UpdateKinesisStreamingDestinationCommand.d.ts +127 -0
- package/dist-types/commands/UpdateTableCommand.d.ts +458 -0
- package/dist-types/commands/UpdateTableReplicaAutoScalingCommand.d.ts +246 -0
- package/dist-types/commands/UpdateTimeToLiveCommand.d.ts +149 -0
- package/dist-types/commands/index.d.ts +57 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +64 -0
- package/dist-types/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/extensionConfiguration.d.ts +9 -0
- package/dist-types/index.d.ts +34 -0
- package/dist-types/models/DynamoDBServiceException.d.ts +14 -0
- package/dist-types/models/enums.d.ts +589 -0
- package/dist-types/models/errors.d.ts +803 -0
- package/dist-types/models/models_0.d.ts +10010 -0
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/ListContributorInsightsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListExportsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListImportsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListTablesPaginator.d.ts +7 -0
- package/dist-types/pagination/QueryPaginator.d.ts +7 -0
- package/dist-types/pagination/ScanPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +7 -0
- package/dist-types/runtimeConfig.browser.d.ts +60 -0
- package/dist-types/runtimeConfig.d.ts +60 -0
- package/dist-types/runtimeConfig.native.d.ts +59 -0
- package/dist-types/runtimeConfig.shared.d.ts +27 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/dist-types/schemas/schemas_0.d.ts +325 -0
- package/dist-types/ts3.4/DynamoDB.d.ts +1102 -0
- package/dist-types/ts3.4/DynamoDBClient.d.ts +472 -0
- package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
- package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +47 -0
- package/dist-types/ts3.4/commands/BatchExecuteStatementCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/BatchGetItemCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/BatchWriteItemCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/CreateBackupCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/CreateGlobalTableCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/CreateTableCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/DeleteBackupCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/DeleteItemCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/DeleteResourcePolicyCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeleteTableCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/DescribeBackupCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/DescribeContinuousBackupsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DescribeContributorInsightsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DescribeEndpointsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DescribeExportCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/DescribeGlobalTableCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DescribeGlobalTableSettingsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DescribeImportCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/DescribeKinesisStreamingDestinationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DescribeLimitsCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/DescribeTableCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/DescribeTableReplicaAutoScalingCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DescribeTimeToLiveCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DisableKinesisStreamingDestinationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/EnableKinesisStreamingDestinationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ExecuteStatementCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/ExecuteTransactionCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ExportTableToPointInTimeCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetItemCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/GetResourcePolicyCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/ImportTableCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/ListBackupsCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/ListContributorInsightsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListExportsCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/ListGlobalTablesCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/ListImportsCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/ListTablesCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/ListTagsOfResourceCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/PutItemCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/PutResourcePolicyCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/QueryCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/RestoreTableFromBackupCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/RestoreTableToPointInTimeCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ScanCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +45 -0
- package/dist-types/ts3.4/commands/TransactGetItemsCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/TransactWriteItemsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +45 -0
- package/dist-types/ts3.4/commands/UpdateContinuousBackupsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/UpdateContributorInsightsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/UpdateGlobalTableCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/UpdateGlobalTableSettingsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/UpdateItemCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/UpdateKinesisStreamingDestinationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/UpdateTableCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/UpdateTableReplicaAutoScalingCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/UpdateTimeToLiveCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/index.d.ts +57 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +65 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
- package/dist-types/ts3.4/index.d.ts +13 -0
- package/dist-types/ts3.4/models/DynamoDBServiceException.d.ts +9 -0
- package/dist-types/ts3.4/models/enums.d.ts +313 -0
- package/dist-types/ts3.4/models/errors.d.ts +286 -0
- package/dist-types/ts3.4/models/models_0.d.ts +1557 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListContributorInsightsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListExportsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListImportsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListTablesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/QueryPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ScanPaginator.d.ts +8 -0
- package/dist-types/ts3.4/pagination/index.d.ts +7 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +114 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +111 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +118 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +30 -0
- package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +325 -0
- package/dist-types/ts3.4/waiters/index.d.ts +6 -0
- package/dist-types/ts3.4/waiters/waitForContributorInsightsEnabled.d.ts +11 -0
- package/dist-types/ts3.4/waiters/waitForExportCompleted.d.ts +11 -0
- package/dist-types/ts3.4/waiters/waitForImportCompleted.d.ts +11 -0
- package/dist-types/ts3.4/waiters/waitForKinesisStreamingDestinationActive.d.ts +11 -0
- package/dist-types/ts3.4/waiters/waitForTableExists.d.ts +11 -0
- package/dist-types/ts3.4/waiters/waitForTableNotExists.d.ts +11 -0
- package/dist-types/waiters/index.d.ts +6 -0
- package/dist-types/waiters/waitForContributorInsightsEnabled.d.ts +14 -0
- package/dist-types/waiters/waitForExportCompleted.d.ts +14 -0
- package/dist-types/waiters/waitForImportCompleted.d.ts +14 -0
- package/dist-types/waiters/waitForKinesisStreamingDestinationActive.d.ts +14 -0
- package/dist-types/waiters/waitForTableExists.d.ts +14 -0
- package/dist-types/waiters/waitForTableNotExists.d.ts +14 -0
- package/package.json +130 -0
|
@@ -0,0 +1,286 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import type { DynamoDBClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DynamoDBClient";
|
|
4
|
+
import type { UpdateGlobalTableSettingsInput, UpdateGlobalTableSettingsOutput } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link UpdateGlobalTableSettingsCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface UpdateGlobalTableSettingsCommandInput extends UpdateGlobalTableSettingsInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link UpdateGlobalTableSettingsCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface UpdateGlobalTableSettingsCommandOutput extends UpdateGlobalTableSettingsOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const UpdateGlobalTableSettingsCommand_base: {
|
|
25
|
+
new (input: UpdateGlobalTableSettingsCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateGlobalTableSettingsCommandInput, UpdateGlobalTableSettingsCommandOutput, DynamoDBClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: UpdateGlobalTableSettingsCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateGlobalTableSettingsCommandInput, UpdateGlobalTableSettingsCommandOutput, DynamoDBClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Updates settings for a global table.</p>
|
|
31
|
+
* <important>
|
|
32
|
+
* <p>This documentation is for version 2017.11.29 (Legacy) of global tables, which should be avoided for new global tables. Customers should use <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/GlobalTables.html">Global Tables version 2019.11.21 (Current)</a> when possible, because it provides greater flexibility, higher efficiency, and consumes less write capacity than 2017.11.29 (Legacy).</p>
|
|
33
|
+
* <p>To determine which version you're using, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/globaltables.DetermineVersion.html">Determining the global table version you are using</a>. To update existing global tables from version 2017.11.29 (Legacy) to version 2019.11.21 (Current), see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/V2globaltables_upgrade.html">Upgrading global tables</a>.</p>
|
|
34
|
+
* </important>
|
|
35
|
+
* @example
|
|
36
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
37
|
+
* ```javascript
|
|
38
|
+
* import { DynamoDBClient, UpdateGlobalTableSettingsCommand } from "@aws-sdk/client-dynamodb"; // ES Modules import
|
|
39
|
+
* // const { DynamoDBClient, UpdateGlobalTableSettingsCommand } = require("@aws-sdk/client-dynamodb"); // CommonJS import
|
|
40
|
+
* // import type { DynamoDBClientConfig } from "@aws-sdk/client-dynamodb";
|
|
41
|
+
* const config = {}; // type is DynamoDBClientConfig
|
|
42
|
+
* const client = new DynamoDBClient(config);
|
|
43
|
+
* const input = { // UpdateGlobalTableSettingsInput
|
|
44
|
+
* GlobalTableName: "STRING_VALUE", // required
|
|
45
|
+
* GlobalTableBillingMode: "PROVISIONED" || "PAY_PER_REQUEST",
|
|
46
|
+
* GlobalTableProvisionedWriteCapacityUnits: Number("long"),
|
|
47
|
+
* GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate: { // AutoScalingSettingsUpdate
|
|
48
|
+
* MinimumUnits: Number("long"),
|
|
49
|
+
* MaximumUnits: Number("long"),
|
|
50
|
+
* AutoScalingDisabled: true || false,
|
|
51
|
+
* AutoScalingRoleArn: "STRING_VALUE",
|
|
52
|
+
* ScalingPolicyUpdate: { // AutoScalingPolicyUpdate
|
|
53
|
+
* PolicyName: "STRING_VALUE",
|
|
54
|
+
* TargetTrackingScalingPolicyConfiguration: { // AutoScalingTargetTrackingScalingPolicyConfigurationUpdate
|
|
55
|
+
* DisableScaleIn: true || false,
|
|
56
|
+
* ScaleInCooldown: Number("int"),
|
|
57
|
+
* ScaleOutCooldown: Number("int"),
|
|
58
|
+
* TargetValue: Number("double"), // required
|
|
59
|
+
* },
|
|
60
|
+
* },
|
|
61
|
+
* },
|
|
62
|
+
* GlobalTableGlobalSecondaryIndexSettingsUpdate: [ // GlobalTableGlobalSecondaryIndexSettingsUpdateList
|
|
63
|
+
* { // GlobalTableGlobalSecondaryIndexSettingsUpdate
|
|
64
|
+
* IndexName: "STRING_VALUE", // required
|
|
65
|
+
* ProvisionedWriteCapacityUnits: Number("long"),
|
|
66
|
+
* ProvisionedWriteCapacityAutoScalingSettingsUpdate: {
|
|
67
|
+
* MinimumUnits: Number("long"),
|
|
68
|
+
* MaximumUnits: Number("long"),
|
|
69
|
+
* AutoScalingDisabled: true || false,
|
|
70
|
+
* AutoScalingRoleArn: "STRING_VALUE",
|
|
71
|
+
* ScalingPolicyUpdate: {
|
|
72
|
+
* PolicyName: "STRING_VALUE",
|
|
73
|
+
* TargetTrackingScalingPolicyConfiguration: {
|
|
74
|
+
* DisableScaleIn: true || false,
|
|
75
|
+
* ScaleInCooldown: Number("int"),
|
|
76
|
+
* ScaleOutCooldown: Number("int"),
|
|
77
|
+
* TargetValue: Number("double"), // required
|
|
78
|
+
* },
|
|
79
|
+
* },
|
|
80
|
+
* },
|
|
81
|
+
* },
|
|
82
|
+
* ],
|
|
83
|
+
* ReplicaSettingsUpdate: [ // ReplicaSettingsUpdateList
|
|
84
|
+
* { // ReplicaSettingsUpdate
|
|
85
|
+
* RegionName: "STRING_VALUE", // required
|
|
86
|
+
* ReplicaProvisionedReadCapacityUnits: Number("long"),
|
|
87
|
+
* ReplicaProvisionedReadCapacityAutoScalingSettingsUpdate: {
|
|
88
|
+
* MinimumUnits: Number("long"),
|
|
89
|
+
* MaximumUnits: Number("long"),
|
|
90
|
+
* AutoScalingDisabled: true || false,
|
|
91
|
+
* AutoScalingRoleArn: "STRING_VALUE",
|
|
92
|
+
* ScalingPolicyUpdate: {
|
|
93
|
+
* PolicyName: "STRING_VALUE",
|
|
94
|
+
* TargetTrackingScalingPolicyConfiguration: {
|
|
95
|
+
* DisableScaleIn: true || false,
|
|
96
|
+
* ScaleInCooldown: Number("int"),
|
|
97
|
+
* ScaleOutCooldown: Number("int"),
|
|
98
|
+
* TargetValue: Number("double"), // required
|
|
99
|
+
* },
|
|
100
|
+
* },
|
|
101
|
+
* },
|
|
102
|
+
* ReplicaGlobalSecondaryIndexSettingsUpdate: [ // ReplicaGlobalSecondaryIndexSettingsUpdateList
|
|
103
|
+
* { // ReplicaGlobalSecondaryIndexSettingsUpdate
|
|
104
|
+
* IndexName: "STRING_VALUE", // required
|
|
105
|
+
* ProvisionedReadCapacityUnits: Number("long"),
|
|
106
|
+
* ProvisionedReadCapacityAutoScalingSettingsUpdate: "<AutoScalingSettingsUpdate>",
|
|
107
|
+
* },
|
|
108
|
+
* ],
|
|
109
|
+
* ReplicaTableClass: "STANDARD" || "STANDARD_INFREQUENT_ACCESS",
|
|
110
|
+
* },
|
|
111
|
+
* ],
|
|
112
|
+
* };
|
|
113
|
+
* const command = new UpdateGlobalTableSettingsCommand(input);
|
|
114
|
+
* const response = await client.send(command);
|
|
115
|
+
* // { // UpdateGlobalTableSettingsOutput
|
|
116
|
+
* // GlobalTableName: "STRING_VALUE",
|
|
117
|
+
* // ReplicaSettings: [ // ReplicaSettingsDescriptionList
|
|
118
|
+
* // { // ReplicaSettingsDescription
|
|
119
|
+
* // RegionName: "STRING_VALUE", // required
|
|
120
|
+
* // ReplicaStatus: "CREATING" || "CREATION_FAILED" || "UPDATING" || "DELETING" || "ACTIVE" || "REGION_DISABLED" || "INACCESSIBLE_ENCRYPTION_CREDENTIALS" || "ARCHIVING" || "ARCHIVED" || "REPLICATION_NOT_AUTHORIZED",
|
|
121
|
+
* // ReplicaBillingModeSummary: { // BillingModeSummary
|
|
122
|
+
* // BillingMode: "PROVISIONED" || "PAY_PER_REQUEST",
|
|
123
|
+
* // LastUpdateToPayPerRequestDateTime: new Date("TIMESTAMP"),
|
|
124
|
+
* // },
|
|
125
|
+
* // ReplicaProvisionedReadCapacityUnits: Number("long"),
|
|
126
|
+
* // ReplicaProvisionedReadCapacityAutoScalingSettings: { // AutoScalingSettingsDescription
|
|
127
|
+
* // MinimumUnits: Number("long"),
|
|
128
|
+
* // MaximumUnits: Number("long"),
|
|
129
|
+
* // AutoScalingDisabled: true || false,
|
|
130
|
+
* // AutoScalingRoleArn: "STRING_VALUE",
|
|
131
|
+
* // ScalingPolicies: [ // AutoScalingPolicyDescriptionList
|
|
132
|
+
* // { // AutoScalingPolicyDescription
|
|
133
|
+
* // PolicyName: "STRING_VALUE",
|
|
134
|
+
* // TargetTrackingScalingPolicyConfiguration: { // AutoScalingTargetTrackingScalingPolicyConfigurationDescription
|
|
135
|
+
* // DisableScaleIn: true || false,
|
|
136
|
+
* // ScaleInCooldown: Number("int"),
|
|
137
|
+
* // ScaleOutCooldown: Number("int"),
|
|
138
|
+
* // TargetValue: Number("double"), // required
|
|
139
|
+
* // },
|
|
140
|
+
* // },
|
|
141
|
+
* // ],
|
|
142
|
+
* // },
|
|
143
|
+
* // ReplicaProvisionedWriteCapacityUnits: Number("long"),
|
|
144
|
+
* // ReplicaProvisionedWriteCapacityAutoScalingSettings: {
|
|
145
|
+
* // MinimumUnits: Number("long"),
|
|
146
|
+
* // MaximumUnits: Number("long"),
|
|
147
|
+
* // AutoScalingDisabled: true || false,
|
|
148
|
+
* // AutoScalingRoleArn: "STRING_VALUE",
|
|
149
|
+
* // ScalingPolicies: [
|
|
150
|
+
* // {
|
|
151
|
+
* // PolicyName: "STRING_VALUE",
|
|
152
|
+
* // TargetTrackingScalingPolicyConfiguration: {
|
|
153
|
+
* // DisableScaleIn: true || false,
|
|
154
|
+
* // ScaleInCooldown: Number("int"),
|
|
155
|
+
* // ScaleOutCooldown: Number("int"),
|
|
156
|
+
* // TargetValue: Number("double"), // required
|
|
157
|
+
* // },
|
|
158
|
+
* // },
|
|
159
|
+
* // ],
|
|
160
|
+
* // },
|
|
161
|
+
* // ReplicaGlobalSecondaryIndexSettings: [ // ReplicaGlobalSecondaryIndexSettingsDescriptionList
|
|
162
|
+
* // { // ReplicaGlobalSecondaryIndexSettingsDescription
|
|
163
|
+
* // IndexName: "STRING_VALUE", // required
|
|
164
|
+
* // IndexStatus: "CREATING" || "UPDATING" || "DELETING" || "ACTIVE",
|
|
165
|
+
* // ProvisionedReadCapacityUnits: Number("long"),
|
|
166
|
+
* // ProvisionedReadCapacityAutoScalingSettings: {
|
|
167
|
+
* // MinimumUnits: Number("long"),
|
|
168
|
+
* // MaximumUnits: Number("long"),
|
|
169
|
+
* // AutoScalingDisabled: true || false,
|
|
170
|
+
* // AutoScalingRoleArn: "STRING_VALUE",
|
|
171
|
+
* // ScalingPolicies: [
|
|
172
|
+
* // {
|
|
173
|
+
* // PolicyName: "STRING_VALUE",
|
|
174
|
+
* // TargetTrackingScalingPolicyConfiguration: {
|
|
175
|
+
* // DisableScaleIn: true || false,
|
|
176
|
+
* // ScaleInCooldown: Number("int"),
|
|
177
|
+
* // ScaleOutCooldown: Number("int"),
|
|
178
|
+
* // TargetValue: Number("double"), // required
|
|
179
|
+
* // },
|
|
180
|
+
* // },
|
|
181
|
+
* // ],
|
|
182
|
+
* // },
|
|
183
|
+
* // ProvisionedWriteCapacityUnits: Number("long"),
|
|
184
|
+
* // ProvisionedWriteCapacityAutoScalingSettings: {
|
|
185
|
+
* // MinimumUnits: Number("long"),
|
|
186
|
+
* // MaximumUnits: Number("long"),
|
|
187
|
+
* // AutoScalingDisabled: true || false,
|
|
188
|
+
* // AutoScalingRoleArn: "STRING_VALUE",
|
|
189
|
+
* // ScalingPolicies: [
|
|
190
|
+
* // {
|
|
191
|
+
* // PolicyName: "STRING_VALUE",
|
|
192
|
+
* // TargetTrackingScalingPolicyConfiguration: {
|
|
193
|
+
* // DisableScaleIn: true || false,
|
|
194
|
+
* // ScaleInCooldown: Number("int"),
|
|
195
|
+
* // ScaleOutCooldown: Number("int"),
|
|
196
|
+
* // TargetValue: Number("double"), // required
|
|
197
|
+
* // },
|
|
198
|
+
* // },
|
|
199
|
+
* // ],
|
|
200
|
+
* // },
|
|
201
|
+
* // },
|
|
202
|
+
* // ],
|
|
203
|
+
* // ReplicaTableClassSummary: { // TableClassSummary
|
|
204
|
+
* // TableClass: "STANDARD" || "STANDARD_INFREQUENT_ACCESS",
|
|
205
|
+
* // LastUpdateDateTime: new Date("TIMESTAMP"),
|
|
206
|
+
* // },
|
|
207
|
+
* // },
|
|
208
|
+
* // ],
|
|
209
|
+
* // };
|
|
210
|
+
*
|
|
211
|
+
* ```
|
|
212
|
+
*
|
|
213
|
+
* @param UpdateGlobalTableSettingsCommandInput - {@link UpdateGlobalTableSettingsCommandInput}
|
|
214
|
+
* @returns {@link UpdateGlobalTableSettingsCommandOutput}
|
|
215
|
+
* @see {@link UpdateGlobalTableSettingsCommandInput} for command's `input` shape.
|
|
216
|
+
* @see {@link UpdateGlobalTableSettingsCommandOutput} for command's `response` shape.
|
|
217
|
+
* @see {@link DynamoDBClientResolvedConfig | config} for DynamoDBClient's `config` shape.
|
|
218
|
+
*
|
|
219
|
+
* @throws {@link GlobalTableNotFoundException} (client fault)
|
|
220
|
+
* <p>The specified global table does not exist.</p>
|
|
221
|
+
*
|
|
222
|
+
* @throws {@link IndexNotFoundException} (client fault)
|
|
223
|
+
* <p>The operation tried to access a nonexistent index.</p>
|
|
224
|
+
*
|
|
225
|
+
* @throws {@link InternalServerError} (server fault)
|
|
226
|
+
* <p>An error occurred on the server side.</p>
|
|
227
|
+
*
|
|
228
|
+
* @throws {@link InvalidEndpointException} (client fault)
|
|
229
|
+
*
|
|
230
|
+
* @throws {@link LimitExceededException} (client fault)
|
|
231
|
+
* <p>There is no limit to the number of daily on-demand backups that can be taken. </p>
|
|
232
|
+
* <p>For most purposes, up to 500 simultaneous table operations are allowed per account.
|
|
233
|
+
* These operations include <code>CreateTable</code>, <code>UpdateTable</code>,
|
|
234
|
+
* <code>DeleteTable</code>,<code>UpdateTimeToLive</code>,
|
|
235
|
+
* <code>RestoreTableFromBackup</code>, and <code>RestoreTableToPointInTime</code>. </p>
|
|
236
|
+
* <p>When you are creating a table with one or more secondary indexes, you can have up
|
|
237
|
+
* to 250 such requests running at a time. However, if the table or index specifications
|
|
238
|
+
* are complex, then DynamoDB might temporarily reduce the number of concurrent
|
|
239
|
+
* operations.</p>
|
|
240
|
+
* <p>When importing into DynamoDB, up to 50 simultaneous import table operations are
|
|
241
|
+
* allowed per account.</p>
|
|
242
|
+
* <p>There is a soft account quota of 2,500 tables.</p>
|
|
243
|
+
* <p>GetRecords was called with a value of more than 1000 for the limit request
|
|
244
|
+
* parameter.</p>
|
|
245
|
+
* <p>More than 2 processes are reading from the same streams shard at the same time.
|
|
246
|
+
* Exceeding this limit may result in request throttling.</p>
|
|
247
|
+
*
|
|
248
|
+
* @throws {@link ReplicaNotFoundException} (client fault)
|
|
249
|
+
* <p>The specified replica is no longer part of the global table.</p>
|
|
250
|
+
*
|
|
251
|
+
* @throws {@link ResourceInUseException} (client fault)
|
|
252
|
+
* <p>The operation conflicts with the resource's availability. For example:</p>
|
|
253
|
+
* <ul>
|
|
254
|
+
* <li>
|
|
255
|
+
* <p>You attempted to recreate an existing table.</p>
|
|
256
|
+
* </li>
|
|
257
|
+
* <li>
|
|
258
|
+
* <p>You tried to delete a table currently in the <code>CREATING</code>
|
|
259
|
+
* state.</p>
|
|
260
|
+
* </li>
|
|
261
|
+
* <li>
|
|
262
|
+
* <p>You tried to update a resource that was already being updated.</p>
|
|
263
|
+
* </li>
|
|
264
|
+
* </ul>
|
|
265
|
+
* <p>When appropriate, wait for the ongoing update to complete and attempt the request
|
|
266
|
+
* again.</p>
|
|
267
|
+
*
|
|
268
|
+
* @throws {@link DynamoDBServiceException}
|
|
269
|
+
* <p>Base exception class for all service exceptions from DynamoDB service.</p>
|
|
270
|
+
*
|
|
271
|
+
*
|
|
272
|
+
* @public
|
|
273
|
+
*/
|
|
274
|
+
export declare class UpdateGlobalTableSettingsCommand extends UpdateGlobalTableSettingsCommand_base {
|
|
275
|
+
/** @internal type navigation helper, not in runtime. */
|
|
276
|
+
protected static __types: {
|
|
277
|
+
api: {
|
|
278
|
+
input: UpdateGlobalTableSettingsInput;
|
|
279
|
+
output: UpdateGlobalTableSettingsOutput;
|
|
280
|
+
};
|
|
281
|
+
sdk: {
|
|
282
|
+
input: UpdateGlobalTableSettingsCommandInput;
|
|
283
|
+
output: UpdateGlobalTableSettingsCommandOutput;
|
|
284
|
+
};
|
|
285
|
+
};
|
|
286
|
+
}
|
|
@@ -0,0 +1,323 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import type { DynamoDBClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DynamoDBClient";
|
|
4
|
+
import type { UpdateItemInput, UpdateItemOutput } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link UpdateItemCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface UpdateItemCommandInput extends UpdateItemInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link UpdateItemCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface UpdateItemCommandOutput extends UpdateItemOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const UpdateItemCommand_base: {
|
|
25
|
+
new (input: UpdateItemCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateItemCommandInput, UpdateItemCommandOutput, DynamoDBClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: UpdateItemCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateItemCommandInput, UpdateItemCommandOutput, DynamoDBClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Edits an existing item's attributes, or adds a new item to the table if it does not
|
|
31
|
+
* already exist. You can put, delete, or add attribute values. You can also perform a
|
|
32
|
+
* conditional update on an existing item (insert a new attribute name-value pair if it
|
|
33
|
+
* doesn't exist, or replace an existing name-value pair if it has certain expected
|
|
34
|
+
* attribute values).</p>
|
|
35
|
+
* <p>You can also return the item's attribute values in the same <code>UpdateItem</code>
|
|
36
|
+
* operation using the <code>ReturnValues</code> parameter.</p>
|
|
37
|
+
* @example
|
|
38
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
39
|
+
* ```javascript
|
|
40
|
+
* import { DynamoDBClient, UpdateItemCommand } from "@aws-sdk/client-dynamodb"; // ES Modules import
|
|
41
|
+
* // const { DynamoDBClient, UpdateItemCommand } = require("@aws-sdk/client-dynamodb"); // CommonJS import
|
|
42
|
+
* // import type { DynamoDBClientConfig } from "@aws-sdk/client-dynamodb";
|
|
43
|
+
* const config = {}; // type is DynamoDBClientConfig
|
|
44
|
+
* const client = new DynamoDBClient(config);
|
|
45
|
+
* const input = { // UpdateItemInput
|
|
46
|
+
* TableName: "STRING_VALUE", // required
|
|
47
|
+
* Key: { // Key // required
|
|
48
|
+
* "<keys>": { // AttributeValue Union: only one key present
|
|
49
|
+
* S: "STRING_VALUE",
|
|
50
|
+
* N: "STRING_VALUE",
|
|
51
|
+
* B: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("")
|
|
52
|
+
* SS: [ // StringSetAttributeValue
|
|
53
|
+
* "STRING_VALUE",
|
|
54
|
+
* ],
|
|
55
|
+
* NS: [ // NumberSetAttributeValue
|
|
56
|
+
* "STRING_VALUE",
|
|
57
|
+
* ],
|
|
58
|
+
* BS: [ // BinarySetAttributeValue
|
|
59
|
+
* new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("")
|
|
60
|
+
* ],
|
|
61
|
+
* M: { // MapAttributeValue
|
|
62
|
+
* "<keys>": {// Union: only one key present
|
|
63
|
+
* S: "STRING_VALUE",
|
|
64
|
+
* N: "STRING_VALUE",
|
|
65
|
+
* B: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("")
|
|
66
|
+
* SS: [
|
|
67
|
+
* "STRING_VALUE",
|
|
68
|
+
* ],
|
|
69
|
+
* NS: [
|
|
70
|
+
* "STRING_VALUE",
|
|
71
|
+
* ],
|
|
72
|
+
* BS: [
|
|
73
|
+
* new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("")
|
|
74
|
+
* ],
|
|
75
|
+
* M: {
|
|
76
|
+
* "<keys>": "<AttributeValue>",
|
|
77
|
+
* },
|
|
78
|
+
* L: [ // ListAttributeValue
|
|
79
|
+
* "<AttributeValue>",
|
|
80
|
+
* ],
|
|
81
|
+
* NULL: true || false,
|
|
82
|
+
* BOOL: true || false,
|
|
83
|
+
* },
|
|
84
|
+
* },
|
|
85
|
+
* L: [
|
|
86
|
+
* "<AttributeValue>",
|
|
87
|
+
* ],
|
|
88
|
+
* NULL: true || false,
|
|
89
|
+
* BOOL: true || false,
|
|
90
|
+
* },
|
|
91
|
+
* },
|
|
92
|
+
* AttributeUpdates: { // AttributeUpdates
|
|
93
|
+
* "<keys>": { // AttributeValueUpdate
|
|
94
|
+
* Value: "<AttributeValue>",
|
|
95
|
+
* Action: "ADD" || "PUT" || "DELETE",
|
|
96
|
+
* },
|
|
97
|
+
* },
|
|
98
|
+
* Expected: { // ExpectedAttributeMap
|
|
99
|
+
* "<keys>": { // ExpectedAttributeValue
|
|
100
|
+
* Value: "<AttributeValue>",
|
|
101
|
+
* Exists: true || false,
|
|
102
|
+
* ComparisonOperator: "EQ" || "NE" || "IN" || "LE" || "LT" || "GE" || "GT" || "BETWEEN" || "NOT_NULL" || "NULL" || "CONTAINS" || "NOT_CONTAINS" || "BEGINS_WITH",
|
|
103
|
+
* AttributeValueList: [ // AttributeValueList
|
|
104
|
+
* "<AttributeValue>",
|
|
105
|
+
* ],
|
|
106
|
+
* },
|
|
107
|
+
* },
|
|
108
|
+
* ConditionalOperator: "AND" || "OR",
|
|
109
|
+
* ReturnValues: "NONE" || "ALL_OLD" || "UPDATED_OLD" || "ALL_NEW" || "UPDATED_NEW",
|
|
110
|
+
* ReturnConsumedCapacity: "INDEXES" || "TOTAL" || "NONE",
|
|
111
|
+
* ReturnItemCollectionMetrics: "SIZE" || "NONE",
|
|
112
|
+
* UpdateExpression: "STRING_VALUE",
|
|
113
|
+
* ConditionExpression: "STRING_VALUE",
|
|
114
|
+
* ExpressionAttributeNames: { // ExpressionAttributeNameMap
|
|
115
|
+
* "<keys>": "STRING_VALUE",
|
|
116
|
+
* },
|
|
117
|
+
* ExpressionAttributeValues: { // ExpressionAttributeValueMap
|
|
118
|
+
* "<keys>": "<AttributeValue>",
|
|
119
|
+
* },
|
|
120
|
+
* ReturnValuesOnConditionCheckFailure: "ALL_OLD" || "NONE",
|
|
121
|
+
* };
|
|
122
|
+
* const command = new UpdateItemCommand(input);
|
|
123
|
+
* const response = await client.send(command);
|
|
124
|
+
* // { // UpdateItemOutput
|
|
125
|
+
* // Attributes: { // AttributeMap
|
|
126
|
+
* // "<keys>": { // AttributeValue Union: only one key present
|
|
127
|
+
* // S: "STRING_VALUE",
|
|
128
|
+
* // N: "STRING_VALUE",
|
|
129
|
+
* // B: new Uint8Array(),
|
|
130
|
+
* // SS: [ // StringSetAttributeValue
|
|
131
|
+
* // "STRING_VALUE",
|
|
132
|
+
* // ],
|
|
133
|
+
* // NS: [ // NumberSetAttributeValue
|
|
134
|
+
* // "STRING_VALUE",
|
|
135
|
+
* // ],
|
|
136
|
+
* // BS: [ // BinarySetAttributeValue
|
|
137
|
+
* // new Uint8Array(),
|
|
138
|
+
* // ],
|
|
139
|
+
* // M: { // MapAttributeValue
|
|
140
|
+
* // "<keys>": {// Union: only one key present
|
|
141
|
+
* // S: "STRING_VALUE",
|
|
142
|
+
* // N: "STRING_VALUE",
|
|
143
|
+
* // B: new Uint8Array(),
|
|
144
|
+
* // SS: [
|
|
145
|
+
* // "STRING_VALUE",
|
|
146
|
+
* // ],
|
|
147
|
+
* // NS: [
|
|
148
|
+
* // "STRING_VALUE",
|
|
149
|
+
* // ],
|
|
150
|
+
* // BS: [
|
|
151
|
+
* // new Uint8Array(),
|
|
152
|
+
* // ],
|
|
153
|
+
* // M: {
|
|
154
|
+
* // "<keys>": "<AttributeValue>",
|
|
155
|
+
* // },
|
|
156
|
+
* // L: [ // ListAttributeValue
|
|
157
|
+
* // "<AttributeValue>",
|
|
158
|
+
* // ],
|
|
159
|
+
* // NULL: true || false,
|
|
160
|
+
* // BOOL: true || false,
|
|
161
|
+
* // },
|
|
162
|
+
* // },
|
|
163
|
+
* // L: [
|
|
164
|
+
* // "<AttributeValue>",
|
|
165
|
+
* // ],
|
|
166
|
+
* // NULL: true || false,
|
|
167
|
+
* // BOOL: true || false,
|
|
168
|
+
* // },
|
|
169
|
+
* // },
|
|
170
|
+
* // ConsumedCapacity: { // ConsumedCapacity
|
|
171
|
+
* // TableName: "STRING_VALUE",
|
|
172
|
+
* // CapacityUnits: Number("double"),
|
|
173
|
+
* // ReadCapacityUnits: Number("double"),
|
|
174
|
+
* // WriteCapacityUnits: Number("double"),
|
|
175
|
+
* // Table: { // Capacity
|
|
176
|
+
* // ReadCapacityUnits: Number("double"),
|
|
177
|
+
* // WriteCapacityUnits: Number("double"),
|
|
178
|
+
* // CapacityUnits: Number("double"),
|
|
179
|
+
* // },
|
|
180
|
+
* // LocalSecondaryIndexes: { // SecondaryIndexesCapacityMap
|
|
181
|
+
* // "<keys>": {
|
|
182
|
+
* // ReadCapacityUnits: Number("double"),
|
|
183
|
+
* // WriteCapacityUnits: Number("double"),
|
|
184
|
+
* // CapacityUnits: Number("double"),
|
|
185
|
+
* // },
|
|
186
|
+
* // },
|
|
187
|
+
* // GlobalSecondaryIndexes: {
|
|
188
|
+
* // "<keys>": {
|
|
189
|
+
* // ReadCapacityUnits: Number("double"),
|
|
190
|
+
* // WriteCapacityUnits: Number("double"),
|
|
191
|
+
* // CapacityUnits: Number("double"),
|
|
192
|
+
* // },
|
|
193
|
+
* // },
|
|
194
|
+
* // },
|
|
195
|
+
* // ItemCollectionMetrics: { // ItemCollectionMetrics
|
|
196
|
+
* // ItemCollectionKey: { // ItemCollectionKeyAttributeMap
|
|
197
|
+
* // "<keys>": "<AttributeValue>",
|
|
198
|
+
* // },
|
|
199
|
+
* // SizeEstimateRangeGB: [ // ItemCollectionSizeEstimateRange
|
|
200
|
+
* // Number("double"),
|
|
201
|
+
* // ],
|
|
202
|
+
* // },
|
|
203
|
+
* // };
|
|
204
|
+
*
|
|
205
|
+
* ```
|
|
206
|
+
*
|
|
207
|
+
* @param UpdateItemCommandInput - {@link UpdateItemCommandInput}
|
|
208
|
+
* @returns {@link UpdateItemCommandOutput}
|
|
209
|
+
* @see {@link UpdateItemCommandInput} for command's `input` shape.
|
|
210
|
+
* @see {@link UpdateItemCommandOutput} for command's `response` shape.
|
|
211
|
+
* @see {@link DynamoDBClientResolvedConfig | config} for DynamoDBClient's `config` shape.
|
|
212
|
+
*
|
|
213
|
+
* @throws {@link ConditionalCheckFailedException} (client fault)
|
|
214
|
+
* <p>A condition specified in the operation failed to be evaluated.</p>
|
|
215
|
+
*
|
|
216
|
+
* @throws {@link InternalServerError} (server fault)
|
|
217
|
+
* <p>An error occurred on the server side.</p>
|
|
218
|
+
*
|
|
219
|
+
* @throws {@link InvalidEndpointException} (client fault)
|
|
220
|
+
*
|
|
221
|
+
* @throws {@link ItemCollectionSizeLimitExceededException} (client fault)
|
|
222
|
+
* <p>An item collection is too large. This exception is only returned for tables that
|
|
223
|
+
* have one or more local secondary indexes.</p>
|
|
224
|
+
*
|
|
225
|
+
* @throws {@link ProvisionedThroughputExceededException} (client fault)
|
|
226
|
+
* <p>The request was denied due to request throttling. For detailed information about
|
|
227
|
+
* why the request was throttled and the ARN of the impacted resource, find the <a href="https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_ThrottlingReason.html">ThrottlingReason</a> field in the returned exception. The Amazon Web Services
|
|
228
|
+
* SDKs for DynamoDB automatically retry requests that receive this exception.
|
|
229
|
+
* Your request is eventually successful, unless your retry queue is too large to finish.
|
|
230
|
+
* Reduce the frequency of requests and use exponential backoff. For more information, go
|
|
231
|
+
* to <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Programming.Errors.html#Programming.Errors.RetryAndBackoff">Error Retries and Exponential Backoff</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
|
|
232
|
+
*
|
|
233
|
+
* @throws {@link ReplicatedWriteConflictException} (client fault)
|
|
234
|
+
* <p>The request was rejected because one or more items in the request are being modified
|
|
235
|
+
* by a request in another Region. </p>
|
|
236
|
+
*
|
|
237
|
+
* @throws {@link RequestLimitExceeded} (client fault)
|
|
238
|
+
* <p>Throughput exceeds the current throughput quota for your account. For detailed
|
|
239
|
+
* information about why the request was throttled and the ARN of the impacted resource,
|
|
240
|
+
* find the <a href="https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_ThrottlingReason.html">ThrottlingReason</a> field in the returned exception. Contact <a href="https://aws.amazon.com/support">Amazon Web Services Support</a> to request a quota
|
|
241
|
+
* increase.</p>
|
|
242
|
+
*
|
|
243
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
244
|
+
* <p>The operation tried to access a nonexistent table or index. The resource might not
|
|
245
|
+
* be specified correctly, or its status might not be <code>ACTIVE</code>.</p>
|
|
246
|
+
*
|
|
247
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
248
|
+
* <p>The request was denied due to request throttling. For detailed information about why
|
|
249
|
+
* the request was throttled and the ARN of the impacted resource, find the <a href="https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_ThrottlingReason.html">ThrottlingReason</a> field in the returned exception.</p>
|
|
250
|
+
*
|
|
251
|
+
* @throws {@link TransactionConflictException} (client fault)
|
|
252
|
+
* <p>Operation was rejected because there is an ongoing transaction for the
|
|
253
|
+
* item.</p>
|
|
254
|
+
*
|
|
255
|
+
* @throws {@link DynamoDBServiceException}
|
|
256
|
+
* <p>Base exception class for all service exceptions from DynamoDB service.</p>
|
|
257
|
+
*
|
|
258
|
+
*
|
|
259
|
+
* @example To update an item in a table
|
|
260
|
+
* ```javascript
|
|
261
|
+
* // This example updates an item in the Music table. It adds a new attribute (Year) and modifies the AlbumTitle attribute. All of the attributes in the item, as they appear after the update, are returned in the response.
|
|
262
|
+
* const input = {
|
|
263
|
+
* ExpressionAttributeNames: {
|
|
264
|
+
* #AT: "AlbumTitle",
|
|
265
|
+
* #Y: "Year"
|
|
266
|
+
* },
|
|
267
|
+
* ExpressionAttributeValues: {
|
|
268
|
+
* :t: {
|
|
269
|
+
* S: "Louder Than Ever"
|
|
270
|
+
* },
|
|
271
|
+
* :y: {
|
|
272
|
+
* N: "2015"
|
|
273
|
+
* }
|
|
274
|
+
* },
|
|
275
|
+
* Key: {
|
|
276
|
+
* Artist: {
|
|
277
|
+
* S: "Acme Band"
|
|
278
|
+
* },
|
|
279
|
+
* SongTitle: {
|
|
280
|
+
* S: "Happy Day"
|
|
281
|
+
* }
|
|
282
|
+
* },
|
|
283
|
+
* ReturnValues: "ALL_NEW",
|
|
284
|
+
* TableName: "Music",
|
|
285
|
+
* UpdateExpression: "SET #Y = :y, #AT = :t"
|
|
286
|
+
* };
|
|
287
|
+
* const command = new UpdateItemCommand(input);
|
|
288
|
+
* const response = await client.send(command);
|
|
289
|
+
* /* response is
|
|
290
|
+
* {
|
|
291
|
+
* Attributes: {
|
|
292
|
+
* AlbumTitle: {
|
|
293
|
+
* S: "Louder Than Ever"
|
|
294
|
+
* },
|
|
295
|
+
* Artist: {
|
|
296
|
+
* S: "Acme Band"
|
|
297
|
+
* },
|
|
298
|
+
* SongTitle: {
|
|
299
|
+
* S: "Happy Day"
|
|
300
|
+
* },
|
|
301
|
+
* Year: {
|
|
302
|
+
* N: "2015"
|
|
303
|
+
* }
|
|
304
|
+
* }
|
|
305
|
+
* }
|
|
306
|
+
* *\/
|
|
307
|
+
* ```
|
|
308
|
+
*
|
|
309
|
+
* @public
|
|
310
|
+
*/
|
|
311
|
+
export declare class UpdateItemCommand extends UpdateItemCommand_base {
|
|
312
|
+
/** @internal type navigation helper, not in runtime. */
|
|
313
|
+
protected static __types: {
|
|
314
|
+
api: {
|
|
315
|
+
input: UpdateItemInput;
|
|
316
|
+
output: UpdateItemOutput;
|
|
317
|
+
};
|
|
318
|
+
sdk: {
|
|
319
|
+
input: UpdateItemCommandInput;
|
|
320
|
+
output: UpdateItemCommandOutput;
|
|
321
|
+
};
|
|
322
|
+
};
|
|
323
|
+
}
|