@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,272 @@
|
|
|
1
|
+
import { AccountIdEndpointMode, AccountIdEndpointModeInputConfig, AccountIdEndpointModeResolvedConfig } from "@aws-sdk/core/account-id-endpoint";
|
|
2
|
+
import { type EndpointDiscoveryInputConfig, type EndpointDiscoveryResolvedConfig } from "@aws-sdk/middleware-endpoint-discovery";
|
|
3
|
+
import { type HostHeaderInputConfig, type HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
|
|
4
|
+
import { type UserAgentInputConfig, type UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
5
|
+
import { type RegionInputConfig, type RegionResolvedConfig } from "@smithy/config-resolver";
|
|
6
|
+
import { type EndpointInputConfig, type EndpointResolvedConfig } from "@smithy/middleware-endpoint";
|
|
7
|
+
import { type RetryInputConfig, type RetryResolvedConfig } from "@smithy/middleware-retry";
|
|
8
|
+
import type { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
|
|
9
|
+
import { type DefaultsMode as __DefaultsMode, type SmithyConfiguration as __SmithyConfiguration, type SmithyResolvedConfiguration as __SmithyResolvedConfiguration, Client as __Client } from "@smithy/smithy-client";
|
|
10
|
+
import { type BodyLengthCalculator as __BodyLengthCalculator, type CheckOptionalClientConfig as __CheckOptionalClientConfig, type ChecksumConstructor as __ChecksumConstructor, type Decoder as __Decoder, type Encoder as __Encoder, type HashConstructor as __HashConstructor, type HttpHandlerOptions as __HttpHandlerOptions, type Logger as __Logger, type StreamCollector as __StreamCollector, type UrlParser as __UrlParser, AwsCredentialIdentityProvider, Provider, Provider as __Provider, UserAgent as __UserAgent } from "@smithy/types";
|
|
11
|
+
import { type HttpAuthSchemeInputConfig, type HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
|
|
12
|
+
import { BatchExecuteStatementCommandInput, BatchExecuteStatementCommandOutput } from "./commands/BatchExecuteStatementCommand";
|
|
13
|
+
import { BatchGetItemCommandInput, BatchGetItemCommandOutput } from "./commands/BatchGetItemCommand";
|
|
14
|
+
import { BatchWriteItemCommandInput, BatchWriteItemCommandOutput } from "./commands/BatchWriteItemCommand";
|
|
15
|
+
import { CreateBackupCommandInput, CreateBackupCommandOutput } from "./commands/CreateBackupCommand";
|
|
16
|
+
import { CreateGlobalTableCommandInput, CreateGlobalTableCommandOutput } from "./commands/CreateGlobalTableCommand";
|
|
17
|
+
import { CreateTableCommandInput, CreateTableCommandOutput } from "./commands/CreateTableCommand";
|
|
18
|
+
import { DeleteBackupCommandInput, DeleteBackupCommandOutput } from "./commands/DeleteBackupCommand";
|
|
19
|
+
import { DeleteItemCommandInput, DeleteItemCommandOutput } from "./commands/DeleteItemCommand";
|
|
20
|
+
import { DeleteResourcePolicyCommandInput, DeleteResourcePolicyCommandOutput } from "./commands/DeleteResourcePolicyCommand";
|
|
21
|
+
import { DeleteTableCommandInput, DeleteTableCommandOutput } from "./commands/DeleteTableCommand";
|
|
22
|
+
import { DescribeBackupCommandInput, DescribeBackupCommandOutput } from "./commands/DescribeBackupCommand";
|
|
23
|
+
import { DescribeContinuousBackupsCommandInput, DescribeContinuousBackupsCommandOutput } from "./commands/DescribeContinuousBackupsCommand";
|
|
24
|
+
import { DescribeContributorInsightsCommandInput, DescribeContributorInsightsCommandOutput } from "./commands/DescribeContributorInsightsCommand";
|
|
25
|
+
import { DescribeEndpointsCommandInput, DescribeEndpointsCommandOutput } from "./commands/DescribeEndpointsCommand";
|
|
26
|
+
import { DescribeExportCommandInput, DescribeExportCommandOutput } from "./commands/DescribeExportCommand";
|
|
27
|
+
import { DescribeGlobalTableCommandInput, DescribeGlobalTableCommandOutput } from "./commands/DescribeGlobalTableCommand";
|
|
28
|
+
import { DescribeGlobalTableSettingsCommandInput, DescribeGlobalTableSettingsCommandOutput } from "./commands/DescribeGlobalTableSettingsCommand";
|
|
29
|
+
import { DescribeImportCommandInput, DescribeImportCommandOutput } from "./commands/DescribeImportCommand";
|
|
30
|
+
import { DescribeKinesisStreamingDestinationCommandInput, DescribeKinesisStreamingDestinationCommandOutput } from "./commands/DescribeKinesisStreamingDestinationCommand";
|
|
31
|
+
import { DescribeLimitsCommandInput, DescribeLimitsCommandOutput } from "./commands/DescribeLimitsCommand";
|
|
32
|
+
import { DescribeTableCommandInput, DescribeTableCommandOutput } from "./commands/DescribeTableCommand";
|
|
33
|
+
import { DescribeTableReplicaAutoScalingCommandInput, DescribeTableReplicaAutoScalingCommandOutput } from "./commands/DescribeTableReplicaAutoScalingCommand";
|
|
34
|
+
import { DescribeTimeToLiveCommandInput, DescribeTimeToLiveCommandOutput } from "./commands/DescribeTimeToLiveCommand";
|
|
35
|
+
import { DisableKinesisStreamingDestinationCommandInput, DisableKinesisStreamingDestinationCommandOutput } from "./commands/DisableKinesisStreamingDestinationCommand";
|
|
36
|
+
import { EnableKinesisStreamingDestinationCommandInput, EnableKinesisStreamingDestinationCommandOutput } from "./commands/EnableKinesisStreamingDestinationCommand";
|
|
37
|
+
import { ExecuteStatementCommandInput, ExecuteStatementCommandOutput } from "./commands/ExecuteStatementCommand";
|
|
38
|
+
import { ExecuteTransactionCommandInput, ExecuteTransactionCommandOutput } from "./commands/ExecuteTransactionCommand";
|
|
39
|
+
import { ExportTableToPointInTimeCommandInput, ExportTableToPointInTimeCommandOutput } from "./commands/ExportTableToPointInTimeCommand";
|
|
40
|
+
import { GetItemCommandInput, GetItemCommandOutput } from "./commands/GetItemCommand";
|
|
41
|
+
import { GetResourcePolicyCommandInput, GetResourcePolicyCommandOutput } from "./commands/GetResourcePolicyCommand";
|
|
42
|
+
import { ImportTableCommandInput, ImportTableCommandOutput } from "./commands/ImportTableCommand";
|
|
43
|
+
import { ListBackupsCommandInput, ListBackupsCommandOutput } from "./commands/ListBackupsCommand";
|
|
44
|
+
import { ListContributorInsightsCommandInput, ListContributorInsightsCommandOutput } from "./commands/ListContributorInsightsCommand";
|
|
45
|
+
import { ListExportsCommandInput, ListExportsCommandOutput } from "./commands/ListExportsCommand";
|
|
46
|
+
import { ListGlobalTablesCommandInput, ListGlobalTablesCommandOutput } from "./commands/ListGlobalTablesCommand";
|
|
47
|
+
import { ListImportsCommandInput, ListImportsCommandOutput } from "./commands/ListImportsCommand";
|
|
48
|
+
import { ListTablesCommandInput, ListTablesCommandOutput } from "./commands/ListTablesCommand";
|
|
49
|
+
import { ListTagsOfResourceCommandInput, ListTagsOfResourceCommandOutput } from "./commands/ListTagsOfResourceCommand";
|
|
50
|
+
import { PutItemCommandInput, PutItemCommandOutput } from "./commands/PutItemCommand";
|
|
51
|
+
import { PutResourcePolicyCommandInput, PutResourcePolicyCommandOutput } from "./commands/PutResourcePolicyCommand";
|
|
52
|
+
import { QueryCommandInput, QueryCommandOutput } from "./commands/QueryCommand";
|
|
53
|
+
import { RestoreTableFromBackupCommandInput, RestoreTableFromBackupCommandOutput } from "./commands/RestoreTableFromBackupCommand";
|
|
54
|
+
import { RestoreTableToPointInTimeCommandInput, RestoreTableToPointInTimeCommandOutput } from "./commands/RestoreTableToPointInTimeCommand";
|
|
55
|
+
import { ScanCommandInput, ScanCommandOutput } from "./commands/ScanCommand";
|
|
56
|
+
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
57
|
+
import { TransactGetItemsCommandInput, TransactGetItemsCommandOutput } from "./commands/TransactGetItemsCommand";
|
|
58
|
+
import { TransactWriteItemsCommandInput, TransactWriteItemsCommandOutput } from "./commands/TransactWriteItemsCommand";
|
|
59
|
+
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
60
|
+
import { UpdateContinuousBackupsCommandInput, UpdateContinuousBackupsCommandOutput } from "./commands/UpdateContinuousBackupsCommand";
|
|
61
|
+
import { UpdateContributorInsightsCommandInput, UpdateContributorInsightsCommandOutput } from "./commands/UpdateContributorInsightsCommand";
|
|
62
|
+
import { UpdateGlobalTableCommandInput, UpdateGlobalTableCommandOutput } from "./commands/UpdateGlobalTableCommand";
|
|
63
|
+
import { UpdateGlobalTableSettingsCommandInput, UpdateGlobalTableSettingsCommandOutput } from "./commands/UpdateGlobalTableSettingsCommand";
|
|
64
|
+
import { UpdateItemCommandInput, UpdateItemCommandOutput } from "./commands/UpdateItemCommand";
|
|
65
|
+
import { UpdateKinesisStreamingDestinationCommandInput, UpdateKinesisStreamingDestinationCommandOutput } from "./commands/UpdateKinesisStreamingDestinationCommand";
|
|
66
|
+
import { UpdateTableCommandInput, UpdateTableCommandOutput } from "./commands/UpdateTableCommand";
|
|
67
|
+
import { UpdateTableReplicaAutoScalingCommandInput, UpdateTableReplicaAutoScalingCommandOutput } from "./commands/UpdateTableReplicaAutoScalingCommand";
|
|
68
|
+
import { UpdateTimeToLiveCommandInput, UpdateTimeToLiveCommandOutput } from "./commands/UpdateTimeToLiveCommand";
|
|
69
|
+
import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
|
|
70
|
+
import { type RuntimeExtension, type RuntimeExtensionsConfig } from "./runtimeExtensions";
|
|
71
|
+
export { __Client };
|
|
72
|
+
/**
|
|
73
|
+
* @public
|
|
74
|
+
*/
|
|
75
|
+
export type ServiceInputTypes = BatchExecuteStatementCommandInput | BatchGetItemCommandInput | BatchWriteItemCommandInput | CreateBackupCommandInput | CreateGlobalTableCommandInput | CreateTableCommandInput | DeleteBackupCommandInput | DeleteItemCommandInput | DeleteResourcePolicyCommandInput | DeleteTableCommandInput | DescribeBackupCommandInput | DescribeContinuousBackupsCommandInput | DescribeContributorInsightsCommandInput | DescribeEndpointsCommandInput | DescribeExportCommandInput | DescribeGlobalTableCommandInput | DescribeGlobalTableSettingsCommandInput | DescribeImportCommandInput | DescribeKinesisStreamingDestinationCommandInput | DescribeLimitsCommandInput | DescribeTableCommandInput | DescribeTableReplicaAutoScalingCommandInput | DescribeTimeToLiveCommandInput | DisableKinesisStreamingDestinationCommandInput | EnableKinesisStreamingDestinationCommandInput | ExecuteStatementCommandInput | ExecuteTransactionCommandInput | ExportTableToPointInTimeCommandInput | GetItemCommandInput | GetResourcePolicyCommandInput | ImportTableCommandInput | ListBackupsCommandInput | ListContributorInsightsCommandInput | ListExportsCommandInput | ListGlobalTablesCommandInput | ListImportsCommandInput | ListTablesCommandInput | ListTagsOfResourceCommandInput | PutItemCommandInput | PutResourcePolicyCommandInput | QueryCommandInput | RestoreTableFromBackupCommandInput | RestoreTableToPointInTimeCommandInput | ScanCommandInput | TagResourceCommandInput | TransactGetItemsCommandInput | TransactWriteItemsCommandInput | UntagResourceCommandInput | UpdateContinuousBackupsCommandInput | UpdateContributorInsightsCommandInput | UpdateGlobalTableCommandInput | UpdateGlobalTableSettingsCommandInput | UpdateItemCommandInput | UpdateKinesisStreamingDestinationCommandInput | UpdateTableCommandInput | UpdateTableReplicaAutoScalingCommandInput | UpdateTimeToLiveCommandInput;
|
|
76
|
+
/**
|
|
77
|
+
* @public
|
|
78
|
+
*/
|
|
79
|
+
export type ServiceOutputTypes = BatchExecuteStatementCommandOutput | BatchGetItemCommandOutput | BatchWriteItemCommandOutput | CreateBackupCommandOutput | CreateGlobalTableCommandOutput | CreateTableCommandOutput | DeleteBackupCommandOutput | DeleteItemCommandOutput | DeleteResourcePolicyCommandOutput | DeleteTableCommandOutput | DescribeBackupCommandOutput | DescribeContinuousBackupsCommandOutput | DescribeContributorInsightsCommandOutput | DescribeEndpointsCommandOutput | DescribeExportCommandOutput | DescribeGlobalTableCommandOutput | DescribeGlobalTableSettingsCommandOutput | DescribeImportCommandOutput | DescribeKinesisStreamingDestinationCommandOutput | DescribeLimitsCommandOutput | DescribeTableCommandOutput | DescribeTableReplicaAutoScalingCommandOutput | DescribeTimeToLiveCommandOutput | DisableKinesisStreamingDestinationCommandOutput | EnableKinesisStreamingDestinationCommandOutput | ExecuteStatementCommandOutput | ExecuteTransactionCommandOutput | ExportTableToPointInTimeCommandOutput | GetItemCommandOutput | GetResourcePolicyCommandOutput | ImportTableCommandOutput | ListBackupsCommandOutput | ListContributorInsightsCommandOutput | ListExportsCommandOutput | ListGlobalTablesCommandOutput | ListImportsCommandOutput | ListTablesCommandOutput | ListTagsOfResourceCommandOutput | PutItemCommandOutput | PutResourcePolicyCommandOutput | QueryCommandOutput | RestoreTableFromBackupCommandOutput | RestoreTableToPointInTimeCommandOutput | ScanCommandOutput | TagResourceCommandOutput | TransactGetItemsCommandOutput | TransactWriteItemsCommandOutput | UntagResourceCommandOutput | UpdateContinuousBackupsCommandOutput | UpdateContributorInsightsCommandOutput | UpdateGlobalTableCommandOutput | UpdateGlobalTableSettingsCommandOutput | UpdateItemCommandOutput | UpdateKinesisStreamingDestinationCommandOutput | UpdateTableCommandOutput | UpdateTableReplicaAutoScalingCommandOutput | UpdateTimeToLiveCommandOutput;
|
|
80
|
+
/**
|
|
81
|
+
* @public
|
|
82
|
+
*/
|
|
83
|
+
export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> {
|
|
84
|
+
/**
|
|
85
|
+
* The HTTP handler to use or its constructor options. Fetch in browser and Https in Nodejs.
|
|
86
|
+
*/
|
|
87
|
+
requestHandler?: __HttpHandlerUserInput;
|
|
88
|
+
/**
|
|
89
|
+
* A constructor for a class implementing the {@link @smithy/types#ChecksumConstructor} interface
|
|
90
|
+
* that computes the SHA-256 HMAC or checksum of a string or binary buffer.
|
|
91
|
+
* @internal
|
|
92
|
+
*/
|
|
93
|
+
sha256?: __ChecksumConstructor | __HashConstructor;
|
|
94
|
+
/**
|
|
95
|
+
* The function that will be used to convert strings into HTTP endpoints.
|
|
96
|
+
* @internal
|
|
97
|
+
*/
|
|
98
|
+
urlParser?: __UrlParser;
|
|
99
|
+
/**
|
|
100
|
+
* A function that can calculate the length of a request body.
|
|
101
|
+
* @internal
|
|
102
|
+
*/
|
|
103
|
+
bodyLengthChecker?: __BodyLengthCalculator;
|
|
104
|
+
/**
|
|
105
|
+
* A function that converts a stream into an array of bytes.
|
|
106
|
+
* @internal
|
|
107
|
+
*/
|
|
108
|
+
streamCollector?: __StreamCollector;
|
|
109
|
+
/**
|
|
110
|
+
* The function that will be used to convert a base64-encoded string to a byte array.
|
|
111
|
+
* @internal
|
|
112
|
+
*/
|
|
113
|
+
base64Decoder?: __Decoder;
|
|
114
|
+
/**
|
|
115
|
+
* The function that will be used to convert binary data to a base64-encoded string.
|
|
116
|
+
* @internal
|
|
117
|
+
*/
|
|
118
|
+
base64Encoder?: __Encoder;
|
|
119
|
+
/**
|
|
120
|
+
* The function that will be used to convert a UTF8-encoded string to a byte array.
|
|
121
|
+
* @internal
|
|
122
|
+
*/
|
|
123
|
+
utf8Decoder?: __Decoder;
|
|
124
|
+
/**
|
|
125
|
+
* The function that will be used to convert binary data to a UTF-8 encoded string.
|
|
126
|
+
* @internal
|
|
127
|
+
*/
|
|
128
|
+
utf8Encoder?: __Encoder;
|
|
129
|
+
/**
|
|
130
|
+
* The runtime environment.
|
|
131
|
+
* @internal
|
|
132
|
+
*/
|
|
133
|
+
runtime?: string;
|
|
134
|
+
/**
|
|
135
|
+
* Disable dynamically changing the endpoint of the client based on the hostPrefix
|
|
136
|
+
* trait of an operation.
|
|
137
|
+
*/
|
|
138
|
+
disableHostPrefix?: boolean;
|
|
139
|
+
/**
|
|
140
|
+
* Unique service identifier.
|
|
141
|
+
* @internal
|
|
142
|
+
*/
|
|
143
|
+
serviceId?: string;
|
|
144
|
+
/**
|
|
145
|
+
* Enables IPv6/IPv4 dualstack endpoint.
|
|
146
|
+
*/
|
|
147
|
+
useDualstackEndpoint?: boolean | __Provider<boolean>;
|
|
148
|
+
/**
|
|
149
|
+
* Enables FIPS compatible endpoints.
|
|
150
|
+
*/
|
|
151
|
+
useFipsEndpoint?: boolean | __Provider<boolean>;
|
|
152
|
+
/**
|
|
153
|
+
* The AWS region to which this client will send requests
|
|
154
|
+
*/
|
|
155
|
+
region?: string | __Provider<string>;
|
|
156
|
+
/**
|
|
157
|
+
* Setting a client profile is similar to setting a value for the
|
|
158
|
+
* AWS_PROFILE environment variable. Setting a profile on a client
|
|
159
|
+
* in code only affects the single client instance, unlike AWS_PROFILE.
|
|
160
|
+
*
|
|
161
|
+
* When set, and only for environments where an AWS configuration
|
|
162
|
+
* file exists, fields configurable by this file will be retrieved
|
|
163
|
+
* from the specified profile within that file.
|
|
164
|
+
* Conflicting code configuration and environment variables will
|
|
165
|
+
* still have higher priority.
|
|
166
|
+
*
|
|
167
|
+
* For client credential resolution that involves checking the AWS
|
|
168
|
+
* configuration file, the client's profile (this value) will be
|
|
169
|
+
* used unless a different profile is set in the credential
|
|
170
|
+
* provider options.
|
|
171
|
+
*
|
|
172
|
+
*/
|
|
173
|
+
profile?: string;
|
|
174
|
+
/**
|
|
175
|
+
* Defines if the AWS AccountId will be used for endpoint routing.
|
|
176
|
+
*/
|
|
177
|
+
accountIdEndpointMode?: AccountIdEndpointMode | __Provider<AccountIdEndpointMode>;
|
|
178
|
+
/**
|
|
179
|
+
* The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
|
|
180
|
+
* @internal
|
|
181
|
+
*/
|
|
182
|
+
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
183
|
+
/**
|
|
184
|
+
* Default credentials provider; Not available in browser runtime.
|
|
185
|
+
* @deprecated
|
|
186
|
+
* @internal
|
|
187
|
+
*/
|
|
188
|
+
credentialDefaultProvider?: (input: any) => AwsCredentialIdentityProvider;
|
|
189
|
+
/**
|
|
190
|
+
* Value for how many times a request will be made at most in case of retry.
|
|
191
|
+
*/
|
|
192
|
+
maxAttempts?: number | __Provider<number>;
|
|
193
|
+
/**
|
|
194
|
+
* Specifies which retry algorithm to use.
|
|
195
|
+
* @see https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-smithy-util-retry/Enum/RETRY_MODES/
|
|
196
|
+
*
|
|
197
|
+
*/
|
|
198
|
+
retryMode?: string | __Provider<string>;
|
|
199
|
+
/**
|
|
200
|
+
* Optional logger for logging debug/info/warn/error.
|
|
201
|
+
*/
|
|
202
|
+
logger?: __Logger;
|
|
203
|
+
/**
|
|
204
|
+
* Optional extensions
|
|
205
|
+
*/
|
|
206
|
+
extensions?: RuntimeExtension[];
|
|
207
|
+
/**
|
|
208
|
+
* The {@link @smithy/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
|
|
209
|
+
*/
|
|
210
|
+
defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
|
|
211
|
+
/**
|
|
212
|
+
* The provider which populates default for endpointDiscoveryEnabled configuration, if it's
|
|
213
|
+
* not passed during client creation.
|
|
214
|
+
* @internal
|
|
215
|
+
*/
|
|
216
|
+
endpointDiscoveryEnabledProvider?: __Provider<boolean | undefined>;
|
|
217
|
+
}
|
|
218
|
+
/**
|
|
219
|
+
* @public
|
|
220
|
+
*/
|
|
221
|
+
export type DynamoDBClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & AccountIdEndpointModeInputConfig & UserAgentInputConfig & RetryInputConfig & RegionInputConfig & HostHeaderInputConfig & EndpointInputConfig<EndpointParameters> & HttpAuthSchemeInputConfig & EndpointDiscoveryInputConfig & ClientInputEndpointParameters;
|
|
222
|
+
/**
|
|
223
|
+
* @public
|
|
224
|
+
*
|
|
225
|
+
* The configuration interface of DynamoDBClient class constructor that set the region, credentials and other options.
|
|
226
|
+
*/
|
|
227
|
+
export interface DynamoDBClientConfig extends DynamoDBClientConfigType {
|
|
228
|
+
}
|
|
229
|
+
/**
|
|
230
|
+
* @public
|
|
231
|
+
*/
|
|
232
|
+
export type DynamoDBClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & AccountIdEndpointModeResolvedConfig & UserAgentResolvedConfig & RetryResolvedConfig & RegionResolvedConfig & HostHeaderResolvedConfig & EndpointResolvedConfig<EndpointParameters> & HttpAuthSchemeResolvedConfig & EndpointDiscoveryResolvedConfig & ClientResolvedEndpointParameters;
|
|
233
|
+
/**
|
|
234
|
+
* @public
|
|
235
|
+
*
|
|
236
|
+
* The resolved configuration interface of DynamoDBClient class. This is resolved and normalized from the {@link DynamoDBClientConfig | constructor configuration interface}.
|
|
237
|
+
*/
|
|
238
|
+
export interface DynamoDBClientResolvedConfig extends DynamoDBClientResolvedConfigType {
|
|
239
|
+
}
|
|
240
|
+
/**
|
|
241
|
+
* <fullname>Amazon DynamoDB</fullname>
|
|
242
|
+
* <p>Amazon DynamoDB is a fully managed NoSQL database service that provides fast
|
|
243
|
+
* and predictable performance with seamless scalability. DynamoDB lets you
|
|
244
|
+
* offload the administrative burdens of operating and scaling a distributed database, so
|
|
245
|
+
* that you don't have to worry about hardware provisioning, setup and configuration,
|
|
246
|
+
* replication, software patching, or cluster scaling.</p>
|
|
247
|
+
* <p>With DynamoDB, you can create database tables that can store and retrieve
|
|
248
|
+
* any amount of data, and serve any level of request traffic. You can scale up or scale
|
|
249
|
+
* down your tables' throughput capacity without downtime or performance degradation, and
|
|
250
|
+
* use the Amazon Web Services Management Console to monitor resource utilization and performance
|
|
251
|
+
* metrics.</p>
|
|
252
|
+
* <p>DynamoDB automatically spreads the data and traffic for your tables over
|
|
253
|
+
* a sufficient number of servers to handle your throughput and storage requirements, while
|
|
254
|
+
* maintaining consistent and fast performance. All of your data is stored on solid state
|
|
255
|
+
* disks (SSDs) and automatically replicated across multiple Availability Zones in an
|
|
256
|
+
* Amazon Web Services Region, providing built-in high availability and data
|
|
257
|
+
* durability.</p>
|
|
258
|
+
* @public
|
|
259
|
+
*/
|
|
260
|
+
export declare class DynamoDBClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, DynamoDBClientResolvedConfig> {
|
|
261
|
+
/**
|
|
262
|
+
* The resolved configuration of DynamoDBClient class. This is resolved and normalized from the {@link DynamoDBClientConfig | constructor configuration interface}.
|
|
263
|
+
*/
|
|
264
|
+
readonly config: DynamoDBClientResolvedConfig;
|
|
265
|
+
constructor(...[configuration]: __CheckOptionalClientConfig<DynamoDBClientConfig>);
|
|
266
|
+
/**
|
|
267
|
+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
268
|
+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
269
|
+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
270
|
+
*/
|
|
271
|
+
destroy(): void;
|
|
272
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { type HttpAuthScheme, AwsCredentialIdentity, AwsCredentialIdentityProvider } from "@smithy/types";
|
|
2
|
+
import type { DynamoDBHttpAuthSchemeProvider } from "./httpAuthSchemeProvider";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export interface HttpAuthExtensionConfiguration {
|
|
7
|
+
setHttpAuthScheme(httpAuthScheme: HttpAuthScheme): void;
|
|
8
|
+
httpAuthSchemes(): HttpAuthScheme[];
|
|
9
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider: DynamoDBHttpAuthSchemeProvider): void;
|
|
10
|
+
httpAuthSchemeProvider(): DynamoDBHttpAuthSchemeProvider;
|
|
11
|
+
setCredentials(credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider): void;
|
|
12
|
+
credentials(): AwsCredentialIdentity | AwsCredentialIdentityProvider | undefined;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @internal
|
|
16
|
+
*/
|
|
17
|
+
export type HttpAuthRuntimeConfig = Partial<{
|
|
18
|
+
httpAuthSchemes: HttpAuthScheme[];
|
|
19
|
+
httpAuthSchemeProvider: DynamoDBHttpAuthSchemeProvider;
|
|
20
|
+
credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider;
|
|
21
|
+
}>;
|
|
22
|
+
/**
|
|
23
|
+
* @internal
|
|
24
|
+
*/
|
|
25
|
+
export declare const getHttpAuthExtensionConfiguration: (runtimeConfig: HttpAuthRuntimeConfig) => HttpAuthExtensionConfiguration;
|
|
26
|
+
/**
|
|
27
|
+
* @internal
|
|
28
|
+
*/
|
|
29
|
+
export declare const resolveHttpAuthRuntimeConfig: (config: HttpAuthExtensionConfiguration) => HttpAuthRuntimeConfig;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { AwsSdkSigV4AuthInputConfig, AwsSdkSigV4AuthResolvedConfig, AwsSdkSigV4PreviouslyResolved } from "@aws-sdk/core";
|
|
2
|
+
import type { HandlerExecutionContext, HttpAuthScheme, HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, Provider } from "@smithy/types";
|
|
3
|
+
import { type DynamoDBClientResolvedConfig } from "../DynamoDBClient";
|
|
4
|
+
/**
|
|
5
|
+
* @internal
|
|
6
|
+
*/
|
|
7
|
+
export interface DynamoDBHttpAuthSchemeParameters extends HttpAuthSchemeParameters {
|
|
8
|
+
region?: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
export interface DynamoDBHttpAuthSchemeParametersProvider extends HttpAuthSchemeParametersProvider<DynamoDBClientResolvedConfig, HandlerExecutionContext, DynamoDBHttpAuthSchemeParameters, object> {
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* @internal
|
|
17
|
+
*/
|
|
18
|
+
export declare const defaultDynamoDBHttpAuthSchemeParametersProvider: (config: DynamoDBClientResolvedConfig, context: HandlerExecutionContext, input: object) => Promise<DynamoDBHttpAuthSchemeParameters>;
|
|
19
|
+
/**
|
|
20
|
+
* @internal
|
|
21
|
+
*/
|
|
22
|
+
export interface DynamoDBHttpAuthSchemeProvider extends HttpAuthSchemeProvider<DynamoDBHttpAuthSchemeParameters> {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @internal
|
|
26
|
+
*/
|
|
27
|
+
export declare const defaultDynamoDBHttpAuthSchemeProvider: DynamoDBHttpAuthSchemeProvider;
|
|
28
|
+
/**
|
|
29
|
+
* @public
|
|
30
|
+
*/
|
|
31
|
+
export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
|
|
32
|
+
/**
|
|
33
|
+
* A comma-separated list of case-sensitive auth scheme names.
|
|
34
|
+
* An auth scheme name is a fully qualified auth scheme ID with the namespace prefix trimmed.
|
|
35
|
+
* For example, the auth scheme with ID aws.auth#sigv4 is named sigv4.
|
|
36
|
+
* @public
|
|
37
|
+
*/
|
|
38
|
+
authSchemePreference?: string[] | Provider<string[]>;
|
|
39
|
+
/**
|
|
40
|
+
* Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
|
|
41
|
+
* @internal
|
|
42
|
+
*/
|
|
43
|
+
httpAuthSchemes?: HttpAuthScheme[];
|
|
44
|
+
/**
|
|
45
|
+
* Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use.
|
|
46
|
+
* @internal
|
|
47
|
+
*/
|
|
48
|
+
httpAuthSchemeProvider?: DynamoDBHttpAuthSchemeProvider;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* @internal
|
|
52
|
+
*/
|
|
53
|
+
export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig {
|
|
54
|
+
/**
|
|
55
|
+
* A comma-separated list of case-sensitive auth scheme names.
|
|
56
|
+
* An auth scheme name is a fully qualified auth scheme ID with the namespace prefix trimmed.
|
|
57
|
+
* For example, the auth scheme with ID aws.auth#sigv4 is named sigv4.
|
|
58
|
+
* @public
|
|
59
|
+
*/
|
|
60
|
+
readonly authSchemePreference: Provider<string[]>;
|
|
61
|
+
/**
|
|
62
|
+
* Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
|
|
63
|
+
* @internal
|
|
64
|
+
*/
|
|
65
|
+
readonly httpAuthSchemes: HttpAuthScheme[];
|
|
66
|
+
/**
|
|
67
|
+
* Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use.
|
|
68
|
+
* @internal
|
|
69
|
+
*/
|
|
70
|
+
readonly httpAuthSchemeProvider: DynamoDBHttpAuthSchemeProvider;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* @internal
|
|
74
|
+
*/
|
|
75
|
+
export declare const resolveHttpAuthSchemeConfig: <T>(config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved) => T & HttpAuthSchemeResolvedConfig;
|
|
@@ -0,0 +1,234 @@
|
|
|
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 { BatchExecuteStatementInput, BatchExecuteStatementOutput } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link BatchExecuteStatementCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface BatchExecuteStatementCommandInput extends BatchExecuteStatementInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link BatchExecuteStatementCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface BatchExecuteStatementCommandOutput extends BatchExecuteStatementOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const BatchExecuteStatementCommand_base: {
|
|
25
|
+
new (input: BatchExecuteStatementCommandInput): import("@smithy/smithy-client").CommandImpl<BatchExecuteStatementCommandInput, BatchExecuteStatementCommandOutput, DynamoDBClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: BatchExecuteStatementCommandInput): import("@smithy/smithy-client").CommandImpl<BatchExecuteStatementCommandInput, BatchExecuteStatementCommandOutput, DynamoDBClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>This operation allows you to perform batch reads or writes on data stored in DynamoDB,
|
|
31
|
+
* using PartiQL. Each read statement in a <code>BatchExecuteStatement</code> must specify
|
|
32
|
+
* an equality condition on all key attributes. This enforces that each <code>SELECT</code>
|
|
33
|
+
* statement in a batch returns at most a single item. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ql-reference.multiplestatements.batching.html">Running batch operations with PartiQL for DynamoDB </a>.</p>
|
|
34
|
+
* <note>
|
|
35
|
+
* <p>The entire batch must consist of either read statements or write statements, you
|
|
36
|
+
* cannot mix both in one batch.</p>
|
|
37
|
+
* </note>
|
|
38
|
+
* <important>
|
|
39
|
+
* <p>A HTTP 200 response does not mean that all statements in the BatchExecuteStatement
|
|
40
|
+
* succeeded. Error details for individual statements can be found under the <a href="https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_BatchStatementResponse.html#DDB-Type-BatchStatementResponse-Error">Error</a> field of the <code>BatchStatementResponse</code> for each
|
|
41
|
+
* statement.</p>
|
|
42
|
+
* </important>
|
|
43
|
+
* @example
|
|
44
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
45
|
+
* ```javascript
|
|
46
|
+
* import { DynamoDBClient, BatchExecuteStatementCommand } from "@aws-sdk/client-dynamodb"; // ES Modules import
|
|
47
|
+
* // const { DynamoDBClient, BatchExecuteStatementCommand } = require("@aws-sdk/client-dynamodb"); // CommonJS import
|
|
48
|
+
* // import type { DynamoDBClientConfig } from "@aws-sdk/client-dynamodb";
|
|
49
|
+
* const config = {}; // type is DynamoDBClientConfig
|
|
50
|
+
* const client = new DynamoDBClient(config);
|
|
51
|
+
* const input = { // BatchExecuteStatementInput
|
|
52
|
+
* Statements: [ // PartiQLBatchRequest // required
|
|
53
|
+
* { // BatchStatementRequest
|
|
54
|
+
* Statement: "STRING_VALUE", // required
|
|
55
|
+
* Parameters: [ // PreparedStatementParameters
|
|
56
|
+
* { // AttributeValue Union: only one key present
|
|
57
|
+
* S: "STRING_VALUE",
|
|
58
|
+
* N: "STRING_VALUE",
|
|
59
|
+
* B: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("")
|
|
60
|
+
* SS: [ // StringSetAttributeValue
|
|
61
|
+
* "STRING_VALUE",
|
|
62
|
+
* ],
|
|
63
|
+
* NS: [ // NumberSetAttributeValue
|
|
64
|
+
* "STRING_VALUE",
|
|
65
|
+
* ],
|
|
66
|
+
* BS: [ // BinarySetAttributeValue
|
|
67
|
+
* new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("")
|
|
68
|
+
* ],
|
|
69
|
+
* M: { // MapAttributeValue
|
|
70
|
+
* "<keys>": {// Union: only one key present
|
|
71
|
+
* S: "STRING_VALUE",
|
|
72
|
+
* N: "STRING_VALUE",
|
|
73
|
+
* B: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("")
|
|
74
|
+
* SS: [
|
|
75
|
+
* "STRING_VALUE",
|
|
76
|
+
* ],
|
|
77
|
+
* NS: [
|
|
78
|
+
* "STRING_VALUE",
|
|
79
|
+
* ],
|
|
80
|
+
* BS: [
|
|
81
|
+
* new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("")
|
|
82
|
+
* ],
|
|
83
|
+
* M: {
|
|
84
|
+
* "<keys>": "<AttributeValue>",
|
|
85
|
+
* },
|
|
86
|
+
* L: [ // ListAttributeValue
|
|
87
|
+
* "<AttributeValue>",
|
|
88
|
+
* ],
|
|
89
|
+
* NULL: true || false,
|
|
90
|
+
* BOOL: true || false,
|
|
91
|
+
* },
|
|
92
|
+
* },
|
|
93
|
+
* L: [
|
|
94
|
+
* "<AttributeValue>",
|
|
95
|
+
* ],
|
|
96
|
+
* NULL: true || false,
|
|
97
|
+
* BOOL: true || false,
|
|
98
|
+
* },
|
|
99
|
+
* ],
|
|
100
|
+
* ConsistentRead: true || false,
|
|
101
|
+
* ReturnValuesOnConditionCheckFailure: "ALL_OLD" || "NONE",
|
|
102
|
+
* },
|
|
103
|
+
* ],
|
|
104
|
+
* ReturnConsumedCapacity: "INDEXES" || "TOTAL" || "NONE",
|
|
105
|
+
* };
|
|
106
|
+
* const command = new BatchExecuteStatementCommand(input);
|
|
107
|
+
* const response = await client.send(command);
|
|
108
|
+
* // { // BatchExecuteStatementOutput
|
|
109
|
+
* // Responses: [ // PartiQLBatchResponse
|
|
110
|
+
* // { // BatchStatementResponse
|
|
111
|
+
* // Error: { // BatchStatementError
|
|
112
|
+
* // Code: "ConditionalCheckFailed" || "ItemCollectionSizeLimitExceeded" || "RequestLimitExceeded" || "ValidationError" || "ProvisionedThroughputExceeded" || "TransactionConflict" || "ThrottlingError" || "InternalServerError" || "ResourceNotFound" || "AccessDenied" || "DuplicateItem",
|
|
113
|
+
* // Message: "STRING_VALUE",
|
|
114
|
+
* // Item: { // AttributeMap
|
|
115
|
+
* // "<keys>": { // AttributeValue Union: only one key present
|
|
116
|
+
* // S: "STRING_VALUE",
|
|
117
|
+
* // N: "STRING_VALUE",
|
|
118
|
+
* // B: new Uint8Array(),
|
|
119
|
+
* // SS: [ // StringSetAttributeValue
|
|
120
|
+
* // "STRING_VALUE",
|
|
121
|
+
* // ],
|
|
122
|
+
* // NS: [ // NumberSetAttributeValue
|
|
123
|
+
* // "STRING_VALUE",
|
|
124
|
+
* // ],
|
|
125
|
+
* // BS: [ // BinarySetAttributeValue
|
|
126
|
+
* // new Uint8Array(),
|
|
127
|
+
* // ],
|
|
128
|
+
* // M: { // MapAttributeValue
|
|
129
|
+
* // "<keys>": {// Union: only one key present
|
|
130
|
+
* // S: "STRING_VALUE",
|
|
131
|
+
* // N: "STRING_VALUE",
|
|
132
|
+
* // B: new Uint8Array(),
|
|
133
|
+
* // SS: [
|
|
134
|
+
* // "STRING_VALUE",
|
|
135
|
+
* // ],
|
|
136
|
+
* // NS: [
|
|
137
|
+
* // "STRING_VALUE",
|
|
138
|
+
* // ],
|
|
139
|
+
* // BS: [
|
|
140
|
+
* // new Uint8Array(),
|
|
141
|
+
* // ],
|
|
142
|
+
* // M: {
|
|
143
|
+
* // "<keys>": "<AttributeValue>",
|
|
144
|
+
* // },
|
|
145
|
+
* // L: [ // ListAttributeValue
|
|
146
|
+
* // "<AttributeValue>",
|
|
147
|
+
* // ],
|
|
148
|
+
* // NULL: true || false,
|
|
149
|
+
* // BOOL: true || false,
|
|
150
|
+
* // },
|
|
151
|
+
* // },
|
|
152
|
+
* // L: [
|
|
153
|
+
* // "<AttributeValue>",
|
|
154
|
+
* // ],
|
|
155
|
+
* // NULL: true || false,
|
|
156
|
+
* // BOOL: true || false,
|
|
157
|
+
* // },
|
|
158
|
+
* // },
|
|
159
|
+
* // },
|
|
160
|
+
* // TableName: "STRING_VALUE",
|
|
161
|
+
* // Item: {
|
|
162
|
+
* // "<keys>": "<AttributeValue>",
|
|
163
|
+
* // },
|
|
164
|
+
* // },
|
|
165
|
+
* // ],
|
|
166
|
+
* // ConsumedCapacity: [ // ConsumedCapacityMultiple
|
|
167
|
+
* // { // ConsumedCapacity
|
|
168
|
+
* // TableName: "STRING_VALUE",
|
|
169
|
+
* // CapacityUnits: Number("double"),
|
|
170
|
+
* // ReadCapacityUnits: Number("double"),
|
|
171
|
+
* // WriteCapacityUnits: Number("double"),
|
|
172
|
+
* // Table: { // Capacity
|
|
173
|
+
* // ReadCapacityUnits: Number("double"),
|
|
174
|
+
* // WriteCapacityUnits: Number("double"),
|
|
175
|
+
* // CapacityUnits: Number("double"),
|
|
176
|
+
* // },
|
|
177
|
+
* // LocalSecondaryIndexes: { // SecondaryIndexesCapacityMap
|
|
178
|
+
* // "<keys>": {
|
|
179
|
+
* // ReadCapacityUnits: Number("double"),
|
|
180
|
+
* // WriteCapacityUnits: Number("double"),
|
|
181
|
+
* // CapacityUnits: Number("double"),
|
|
182
|
+
* // },
|
|
183
|
+
* // },
|
|
184
|
+
* // GlobalSecondaryIndexes: {
|
|
185
|
+
* // "<keys>": {
|
|
186
|
+
* // ReadCapacityUnits: Number("double"),
|
|
187
|
+
* // WriteCapacityUnits: Number("double"),
|
|
188
|
+
* // CapacityUnits: Number("double"),
|
|
189
|
+
* // },
|
|
190
|
+
* // },
|
|
191
|
+
* // },
|
|
192
|
+
* // ],
|
|
193
|
+
* // };
|
|
194
|
+
*
|
|
195
|
+
* ```
|
|
196
|
+
*
|
|
197
|
+
* @param BatchExecuteStatementCommandInput - {@link BatchExecuteStatementCommandInput}
|
|
198
|
+
* @returns {@link BatchExecuteStatementCommandOutput}
|
|
199
|
+
* @see {@link BatchExecuteStatementCommandInput} for command's `input` shape.
|
|
200
|
+
* @see {@link BatchExecuteStatementCommandOutput} for command's `response` shape.
|
|
201
|
+
* @see {@link DynamoDBClientResolvedConfig | config} for DynamoDBClient's `config` shape.
|
|
202
|
+
*
|
|
203
|
+
* @throws {@link InternalServerError} (server fault)
|
|
204
|
+
* <p>An error occurred on the server side.</p>
|
|
205
|
+
*
|
|
206
|
+
* @throws {@link RequestLimitExceeded} (client fault)
|
|
207
|
+
* <p>Throughput exceeds the current throughput quota for your account. For detailed
|
|
208
|
+
* information about why the request was throttled and the ARN of the impacted resource,
|
|
209
|
+
* 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
|
|
210
|
+
* increase.</p>
|
|
211
|
+
*
|
|
212
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
213
|
+
* <p>The request was denied due to request throttling. For detailed information about why
|
|
214
|
+
* 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>
|
|
215
|
+
*
|
|
216
|
+
* @throws {@link DynamoDBServiceException}
|
|
217
|
+
* <p>Base exception class for all service exceptions from DynamoDB service.</p>
|
|
218
|
+
*
|
|
219
|
+
*
|
|
220
|
+
* @public
|
|
221
|
+
*/
|
|
222
|
+
export declare class BatchExecuteStatementCommand extends BatchExecuteStatementCommand_base {
|
|
223
|
+
/** @internal type navigation helper, not in runtime. */
|
|
224
|
+
protected static __types: {
|
|
225
|
+
api: {
|
|
226
|
+
input: BatchExecuteStatementInput;
|
|
227
|
+
output: BatchExecuteStatementOutput;
|
|
228
|
+
};
|
|
229
|
+
sdk: {
|
|
230
|
+
input: BatchExecuteStatementCommandInput;
|
|
231
|
+
output: BatchExecuteStatementCommandOutput;
|
|
232
|
+
};
|
|
233
|
+
};
|
|
234
|
+
}
|