@aws-sdk/client-dynamodb 3.36.0 → 3.39.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (144) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/dist-cjs/DynamoDB.js +0 -21
  3. package/dist-cjs/DynamoDBClient.js +0 -26
  4. package/dist-cjs/commands/BatchExecuteStatementCommand.js +0 -26
  5. package/dist-cjs/commands/BatchGetItemCommand.js +0 -69
  6. package/dist-cjs/commands/BatchWriteItemCommand.js +0 -98
  7. package/dist-cjs/commands/CreateBackupCommand.js +0 -53
  8. package/dist-cjs/commands/CreateGlobalTableCommand.js +0 -91
  9. package/dist-cjs/commands/CreateTableCommand.js +0 -36
  10. package/dist-cjs/commands/DeleteBackupCommand.js +0 -25
  11. package/dist-cjs/commands/DeleteItemCommand.js +0 -29
  12. package/dist-cjs/commands/DeleteTableCommand.js +0 -40
  13. package/dist-cjs/commands/DescribeBackupCommand.js +0 -25
  14. package/dist-cjs/commands/DescribeContinuousBackupsCommand.js +0 -34
  15. package/dist-cjs/commands/DescribeContributorInsightsCommand.js +0 -24
  16. package/dist-cjs/commands/DescribeEndpointsCommand.js +0 -24
  17. package/dist-cjs/commands/DescribeExportCommand.js +0 -24
  18. package/dist-cjs/commands/DescribeGlobalTableCommand.js +0 -28
  19. package/dist-cjs/commands/DescribeGlobalTableSettingsCommand.js +0 -27
  20. package/dist-cjs/commands/DescribeKinesisStreamingDestinationCommand.js +0 -24
  21. package/dist-cjs/commands/DescribeLimitsCommand.js +0 -87
  22. package/dist-cjs/commands/DescribeTableCommand.js +0 -30
  23. package/dist-cjs/commands/DescribeTableReplicaAutoScalingCommand.js +0 -27
  24. package/dist-cjs/commands/DescribeTimeToLiveCommand.js +0 -24
  25. package/dist-cjs/commands/DisableKinesisStreamingDestinationCommand.js +0 -25
  26. package/dist-cjs/commands/EnableKinesisStreamingDestinationCommand.js +0 -27
  27. package/dist-cjs/commands/ExecuteStatementCommand.js +0 -26
  28. package/dist-cjs/commands/ExecuteTransactionCommand.js +0 -26
  29. package/dist-cjs/commands/ExportTableToPointInTimeCommand.js +0 -26
  30. package/dist-cjs/commands/GetItemCommand.js +0 -30
  31. package/dist-cjs/commands/ListBackupsCommand.js +0 -30
  32. package/dist-cjs/commands/ListContributorInsightsCommand.js +0 -24
  33. package/dist-cjs/commands/ListExportsCommand.js +0 -24
  34. package/dist-cjs/commands/ListGlobalTablesCommand.js +0 -27
  35. package/dist-cjs/commands/ListTablesCommand.js +0 -26
  36. package/dist-cjs/commands/ListTagsOfResourceCommand.js +0 -27
  37. package/dist-cjs/commands/PutItemCommand.js +0 -91
  38. package/dist-cjs/commands/QueryCommand.js +0 -79
  39. package/dist-cjs/commands/RestoreTableFromBackupCommand.js +0 -48
  40. package/dist-cjs/commands/RestoreTableToPointInTimeCommand.js +0 -79
  41. package/dist-cjs/commands/ScanCommand.js +0 -48
  42. package/dist-cjs/commands/TagResourceCommand.js +0 -30
  43. package/dist-cjs/commands/TransactGetItemsCommand.js +0 -49
  44. package/dist-cjs/commands/TransactWriteItemsCommand.js +0 -97
  45. package/dist-cjs/commands/UntagResourceCommand.js +0 -28
  46. package/dist-cjs/commands/UpdateContinuousBackupsCommand.js +0 -35
  47. package/dist-cjs/commands/UpdateContributorInsightsCommand.js +0 -24
  48. package/dist-cjs/commands/UpdateGlobalTableCommand.js +0 -52
  49. package/dist-cjs/commands/UpdateGlobalTableSettingsCommand.js +0 -24
  50. package/dist-cjs/commands/UpdateItemCommand.js +0 -26
  51. package/dist-cjs/commands/UpdateTableCommand.js +0 -46
  52. package/dist-cjs/commands/UpdateTableReplicaAutoScalingCommand.js +0 -27
  53. package/dist-cjs/commands/UpdateTimeToLiveCommand.js +0 -48
  54. package/dist-cjs/commands/index.js +53 -0
  55. package/dist-cjs/endpoints.js +6 -1
  56. package/dist-cjs/index.js +5 -60
  57. package/dist-cjs/models/models_0.js +0 -660
  58. package/dist-cjs/pagination/ListContributorInsightsPaginator.js +0 -10
  59. package/dist-cjs/pagination/ListExportsPaginator.js +0 -10
  60. package/dist-cjs/pagination/ListTablesPaginator.js +0 -10
  61. package/dist-cjs/pagination/QueryPaginator.js +0 -10
  62. package/dist-cjs/pagination/ScanPaginator.js +0 -10
  63. package/dist-cjs/pagination/index.js +9 -0
  64. package/dist-cjs/protocols/Aws_json1_0.js +0 -5
  65. package/dist-cjs/runtimeConfig.browser.js +1 -5
  66. package/dist-cjs/runtimeConfig.js +1 -5
  67. package/dist-cjs/runtimeConfig.native.js +0 -3
  68. package/dist-cjs/runtimeConfig.shared.js +0 -3
  69. package/dist-cjs/waiters/index.js +5 -0
  70. package/dist-cjs/waiters/waitForTableExists.js +0 -9
  71. package/dist-cjs/waiters/waitForTableNotExists.js +0 -9
  72. package/dist-es/commands/index.js +50 -0
  73. package/dist-es/endpoints.js +6 -1
  74. package/dist-es/index.js +5 -60
  75. package/dist-es/pagination/index.js +6 -0
  76. package/dist-es/waiters/index.js +2 -0
  77. package/dist-types/commands/index.d.ts +50 -0
  78. package/dist-types/index.d.ts +5 -60
  79. package/dist-types/pagination/index.d.ts +6 -0
  80. package/dist-types/ts3.4/DynamoDB.d.ts +51 -965
  81. package/dist-types/ts3.4/DynamoDBClient.d.ts +25 -112
  82. package/dist-types/ts3.4/commands/BatchExecuteStatementCommand.d.ts +2 -22
  83. package/dist-types/ts3.4/commands/BatchGetItemCommand.d.ts +2 -65
  84. package/dist-types/ts3.4/commands/BatchWriteItemCommand.d.ts +2 -94
  85. package/dist-types/ts3.4/commands/CreateBackupCommand.d.ts +2 -49
  86. package/dist-types/ts3.4/commands/CreateGlobalTableCommand.d.ts +2 -87
  87. package/dist-types/ts3.4/commands/CreateTableCommand.d.ts +2 -32
  88. package/dist-types/ts3.4/commands/DeleteBackupCommand.d.ts +2 -21
  89. package/dist-types/ts3.4/commands/DeleteItemCommand.d.ts +2 -25
  90. package/dist-types/ts3.4/commands/DeleteTableCommand.d.ts +2 -36
  91. package/dist-types/ts3.4/commands/DescribeBackupCommand.d.ts +2 -21
  92. package/dist-types/ts3.4/commands/DescribeContinuousBackupsCommand.d.ts +2 -30
  93. package/dist-types/ts3.4/commands/DescribeContributorInsightsCommand.d.ts +2 -20
  94. package/dist-types/ts3.4/commands/DescribeEndpointsCommand.d.ts +2 -20
  95. package/dist-types/ts3.4/commands/DescribeExportCommand.d.ts +2 -20
  96. package/dist-types/ts3.4/commands/DescribeGlobalTableCommand.d.ts +2 -24
  97. package/dist-types/ts3.4/commands/DescribeGlobalTableSettingsCommand.d.ts +2 -23
  98. package/dist-types/ts3.4/commands/DescribeKinesisStreamingDestinationCommand.d.ts +2 -20
  99. package/dist-types/ts3.4/commands/DescribeLimitsCommand.d.ts +2 -83
  100. package/dist-types/ts3.4/commands/DescribeTableCommand.d.ts +2 -26
  101. package/dist-types/ts3.4/commands/DescribeTableReplicaAutoScalingCommand.d.ts +2 -23
  102. package/dist-types/ts3.4/commands/DescribeTimeToLiveCommand.d.ts +2 -20
  103. package/dist-types/ts3.4/commands/DisableKinesisStreamingDestinationCommand.d.ts +2 -21
  104. package/dist-types/ts3.4/commands/EnableKinesisStreamingDestinationCommand.d.ts +2 -23
  105. package/dist-types/ts3.4/commands/ExecuteStatementCommand.d.ts +2 -22
  106. package/dist-types/ts3.4/commands/ExecuteTransactionCommand.d.ts +2 -22
  107. package/dist-types/ts3.4/commands/ExportTableToPointInTimeCommand.d.ts +2 -22
  108. package/dist-types/ts3.4/commands/GetItemCommand.d.ts +2 -26
  109. package/dist-types/ts3.4/commands/ListBackupsCommand.d.ts +2 -26
  110. package/dist-types/ts3.4/commands/ListContributorInsightsCommand.d.ts +2 -20
  111. package/dist-types/ts3.4/commands/ListExportsCommand.d.ts +2 -20
  112. package/dist-types/ts3.4/commands/ListGlobalTablesCommand.d.ts +2 -23
  113. package/dist-types/ts3.4/commands/ListTablesCommand.d.ts +2 -22
  114. package/dist-types/ts3.4/commands/ListTagsOfResourceCommand.d.ts +2 -23
  115. package/dist-types/ts3.4/commands/PutItemCommand.d.ts +2 -87
  116. package/dist-types/ts3.4/commands/QueryCommand.d.ts +2 -75
  117. package/dist-types/ts3.4/commands/RestoreTableFromBackupCommand.d.ts +2 -44
  118. package/dist-types/ts3.4/commands/RestoreTableToPointInTimeCommand.d.ts +2 -75
  119. package/dist-types/ts3.4/commands/ScanCommand.d.ts +2 -44
  120. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +2 -26
  121. package/dist-types/ts3.4/commands/TransactGetItemsCommand.d.ts +2 -45
  122. package/dist-types/ts3.4/commands/TransactWriteItemsCommand.d.ts +2 -93
  123. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +2 -24
  124. package/dist-types/ts3.4/commands/UpdateContinuousBackupsCommand.d.ts +2 -31
  125. package/dist-types/ts3.4/commands/UpdateContributorInsightsCommand.d.ts +2 -20
  126. package/dist-types/ts3.4/commands/UpdateGlobalTableCommand.d.ts +2 -48
  127. package/dist-types/ts3.4/commands/UpdateGlobalTableSettingsCommand.d.ts +2 -20
  128. package/dist-types/ts3.4/commands/UpdateItemCommand.d.ts +2 -22
  129. package/dist-types/ts3.4/commands/UpdateTableCommand.d.ts +2 -42
  130. package/dist-types/ts3.4/commands/UpdateTableReplicaAutoScalingCommand.d.ts +2 -23
  131. package/dist-types/ts3.4/commands/UpdateTimeToLiveCommand.d.ts +2 -44
  132. package/dist-types/ts3.4/commands/index.d.ts +50 -0
  133. package/dist-types/ts3.4/index.d.ts +5 -60
  134. package/dist-types/ts3.4/models/models_0.d.ts +1022 -6658
  135. package/dist-types/ts3.4/pagination/index.d.ts +6 -0
  136. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
  137. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
  138. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
  139. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
  140. package/dist-types/ts3.4/waiters/index.d.ts +2 -0
  141. package/dist-types/ts3.4/waiters/waitForTableExists.d.ts +2 -9
  142. package/dist-types/ts3.4/waiters/waitForTableNotExists.d.ts +2 -9
  143. package/dist-types/waiters/index.d.ts +2 -0
  144. package/package.json +34 -34
@@ -5,38 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
8
- /**
9
- * <p>Starts table data replication to the specified Kinesis data stream at a timestamp chosen
10
- * during the enable workflow. If this operation doesn't return results immediately, use
11
- * DescribeKinesisStreamingDestination to check if streaming to the Kinesis data stream is
12
- * ACTIVE.</p>
13
- * @example
14
- * Use a bare-bones client and the command you need to make an API call.
15
- * ```javascript
16
- * import { DynamoDBClient, EnableKinesisStreamingDestinationCommand } from "@aws-sdk/client-dynamodb"; // ES Modules import
17
- * // const { DynamoDBClient, EnableKinesisStreamingDestinationCommand } = require("@aws-sdk/client-dynamodb"); // CommonJS import
18
- * const client = new DynamoDBClient(config);
19
- * const command = new EnableKinesisStreamingDestinationCommand(input);
20
- * const response = await client.send(command);
21
- * ```
22
- *
23
- * @see {@link EnableKinesisStreamingDestinationCommandInput} for command's `input` shape.
24
- * @see {@link EnableKinesisStreamingDestinationCommandOutput} for command's `response` shape.
25
- * @see {@link DynamoDBClientResolvedConfig | config} for command's `input` shape.
26
- *
27
- */
28
8
  class EnableKinesisStreamingDestinationCommand extends smithy_client_1.Command {
29
- // Start section: command_properties
30
- // End section: command_properties
31
9
  constructor(input) {
32
- // Start section: command_constructor
33
10
  super();
34
11
  this.input = input;
35
- // End section: command_constructor
36
12
  }
37
- /**
38
- * @internal
39
- */
40
13
  resolveMiddleware(clientStack, configuration, options) {
41
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
42
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,37 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
8
- /**
9
- * <p>
10
- * This operation allows you to perform reads and singleton writes on data stored in DynamoDB, using PartiQL.
11
- * </p>
12
- * @example
13
- * Use a bare-bones client and the command you need to make an API call.
14
- * ```javascript
15
- * import { DynamoDBClient, ExecuteStatementCommand } from "@aws-sdk/client-dynamodb"; // ES Modules import
16
- * // const { DynamoDBClient, ExecuteStatementCommand } = require("@aws-sdk/client-dynamodb"); // CommonJS import
17
- * const client = new DynamoDBClient(config);
18
- * const command = new ExecuteStatementCommand(input);
19
- * const response = await client.send(command);
20
- * ```
21
- *
22
- * @see {@link ExecuteStatementCommandInput} for command's `input` shape.
23
- * @see {@link ExecuteStatementCommandOutput} for command's `response` shape.
24
- * @see {@link DynamoDBClientResolvedConfig | config} for command's `input` shape.
25
- *
26
- */
27
8
  class ExecuteStatementCommand extends smithy_client_1.Command {
28
- // Start section: command_properties
29
- // End section: command_properties
30
9
  constructor(input) {
31
- // Start section: command_constructor
32
10
  super();
33
11
  this.input = input;
34
- // End section: command_constructor
35
12
  }
36
- /**
37
- * @internal
38
- */
39
13
  resolveMiddleware(clientStack, configuration, options) {
40
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
41
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,37 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
8
- /**
9
- * <p>
10
- * This operation allows you to perform transactional reads or writes on data stored in DynamoDB, using PartiQL.
11
- * </p>
12
- * @example
13
- * Use a bare-bones client and the command you need to make an API call.
14
- * ```javascript
15
- * import { DynamoDBClient, ExecuteTransactionCommand } from "@aws-sdk/client-dynamodb"; // ES Modules import
16
- * // const { DynamoDBClient, ExecuteTransactionCommand } = require("@aws-sdk/client-dynamodb"); // CommonJS import
17
- * const client = new DynamoDBClient(config);
18
- * const command = new ExecuteTransactionCommand(input);
19
- * const response = await client.send(command);
20
- * ```
21
- *
22
- * @see {@link ExecuteTransactionCommandInput} for command's `input` shape.
23
- * @see {@link ExecuteTransactionCommandOutput} for command's `response` shape.
24
- * @see {@link DynamoDBClientResolvedConfig | config} for command's `input` shape.
25
- *
26
- */
27
8
  class ExecuteTransactionCommand extends smithy_client_1.Command {
28
- // Start section: command_properties
29
- // End section: command_properties
30
9
  constructor(input) {
31
- // Start section: command_constructor
32
10
  super();
33
11
  this.input = input;
34
- // End section: command_constructor
35
12
  }
36
- /**
37
- * @internal
38
- */
39
13
  resolveMiddleware(clientStack, configuration, options) {
40
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
41
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,37 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
8
- /**
9
- * <p>Exports table data to an S3 bucket. The table must have point in time recovery
10
- * enabled, and you can export data from any time within the point in time recovery
11
- * window.</p>
12
- * @example
13
- * Use a bare-bones client and the command you need to make an API call.
14
- * ```javascript
15
- * import { DynamoDBClient, ExportTableToPointInTimeCommand } from "@aws-sdk/client-dynamodb"; // ES Modules import
16
- * // const { DynamoDBClient, ExportTableToPointInTimeCommand } = require("@aws-sdk/client-dynamodb"); // CommonJS import
17
- * const client = new DynamoDBClient(config);
18
- * const command = new ExportTableToPointInTimeCommand(input);
19
- * const response = await client.send(command);
20
- * ```
21
- *
22
- * @see {@link ExportTableToPointInTimeCommandInput} for command's `input` shape.
23
- * @see {@link ExportTableToPointInTimeCommandOutput} for command's `response` shape.
24
- * @see {@link DynamoDBClientResolvedConfig | config} for command's `input` shape.
25
- *
26
- */
27
8
  class ExportTableToPointInTimeCommand extends smithy_client_1.Command {
28
- // Start section: command_properties
29
- // End section: command_properties
30
9
  constructor(input) {
31
- // Start section: command_constructor
32
10
  super();
33
11
  this.input = input;
34
- // End section: command_constructor
35
12
  }
36
- /**
37
- * @internal
38
- */
39
13
  resolveMiddleware(clientStack, configuration, options) {
40
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
41
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,41 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
8
- /**
9
- * <p>The <code>GetItem</code> operation returns a set of attributes for the item with the given primary
10
- * key. If there is no matching item, <code>GetItem</code> does not return any data and there will be no <code>Item</code> element in the response.</p>
11
- * <p>
12
- * <code>GetItem</code> provides an eventually consistent read by default. If your application
13
- * requires a strongly consistent read, set <code>ConsistentRead</code> to <code>true</code>. Although
14
- * a strongly consistent read might take more time than an eventually consistent read, it always
15
- * returns the last updated value.</p>
16
- * @example
17
- * Use a bare-bones client and the command you need to make an API call.
18
- * ```javascript
19
- * import { DynamoDBClient, GetItemCommand } from "@aws-sdk/client-dynamodb"; // ES Modules import
20
- * // const { DynamoDBClient, GetItemCommand } = require("@aws-sdk/client-dynamodb"); // CommonJS import
21
- * const client = new DynamoDBClient(config);
22
- * const command = new GetItemCommand(input);
23
- * const response = await client.send(command);
24
- * ```
25
- *
26
- * @see {@link GetItemCommandInput} for command's `input` shape.
27
- * @see {@link GetItemCommandOutput} for command's `response` shape.
28
- * @see {@link DynamoDBClientResolvedConfig | config} for command's `input` shape.
29
- *
30
- */
31
8
  class GetItemCommand extends smithy_client_1.Command {
32
- // Start section: command_properties
33
- // End section: command_properties
34
9
  constructor(input) {
35
- // Start section: command_constructor
36
10
  super();
37
11
  this.input = input;
38
- // End section: command_constructor
39
12
  }
40
- /**
41
- * @internal
42
- */
43
13
  resolveMiddleware(clientStack, configuration, options) {
44
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
45
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,41 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
8
- /**
9
- * <p>List backups associated with an AWS account. To list backups for a given table, specify
10
- * <code>TableName</code>. <code>ListBackups</code> returns a paginated list of results
11
- * with at most 1 MB worth of items in a page. You can also specify a maximum number of
12
- * entries to be returned in a page. </p>
13
- * <p>In the request, start time is inclusive, but end time is exclusive. Note that these
14
- * boundaries are for the time at which the original backup was requested.</p>
15
- * <p>You can call <code>ListBackups</code> a maximum of five times per second.</p>
16
- * @example
17
- * Use a bare-bones client and the command you need to make an API call.
18
- * ```javascript
19
- * import { DynamoDBClient, ListBackupsCommand } from "@aws-sdk/client-dynamodb"; // ES Modules import
20
- * // const { DynamoDBClient, ListBackupsCommand } = require("@aws-sdk/client-dynamodb"); // CommonJS import
21
- * const client = new DynamoDBClient(config);
22
- * const command = new ListBackupsCommand(input);
23
- * const response = await client.send(command);
24
- * ```
25
- *
26
- * @see {@link ListBackupsCommandInput} for command's `input` shape.
27
- * @see {@link ListBackupsCommandOutput} for command's `response` shape.
28
- * @see {@link DynamoDBClientResolvedConfig | config} for command's `input` shape.
29
- *
30
- */
31
8
  class ListBackupsCommand extends smithy_client_1.Command {
32
- // Start section: command_properties
33
- // End section: command_properties
34
9
  constructor(input) {
35
- // Start section: command_constructor
36
10
  super();
37
11
  this.input = input;
38
- // End section: command_constructor
39
12
  }
40
- /**
41
- * @internal
42
- */
43
13
  resolveMiddleware(clientStack, configuration, options) {
44
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
45
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
8
- /**
9
- * <p>Returns a list of ContributorInsightsSummary for a table and all its global secondary indexes.</p>
10
- * @example
11
- * Use a bare-bones client and the command you need to make an API call.
12
- * ```javascript
13
- * import { DynamoDBClient, ListContributorInsightsCommand } from "@aws-sdk/client-dynamodb"; // ES Modules import
14
- * // const { DynamoDBClient, ListContributorInsightsCommand } = require("@aws-sdk/client-dynamodb"); // CommonJS import
15
- * const client = new DynamoDBClient(config);
16
- * const command = new ListContributorInsightsCommand(input);
17
- * const response = await client.send(command);
18
- * ```
19
- *
20
- * @see {@link ListContributorInsightsCommandInput} for command's `input` shape.
21
- * @see {@link ListContributorInsightsCommandOutput} for command's `response` shape.
22
- * @see {@link DynamoDBClientResolvedConfig | config} for command's `input` shape.
23
- *
24
- */
25
8
  class ListContributorInsightsCommand extends smithy_client_1.Command {
26
- // Start section: command_properties
27
- // End section: command_properties
28
9
  constructor(input) {
29
- // Start section: command_constructor
30
10
  super();
31
11
  this.input = input;
32
- // End section: command_constructor
33
12
  }
34
- /**
35
- * @internal
36
- */
37
13
  resolveMiddleware(clientStack, configuration, options) {
38
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
39
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
8
- /**
9
- * <p>Lists completed exports within the past 90 days.</p>
10
- * @example
11
- * Use a bare-bones client and the command you need to make an API call.
12
- * ```javascript
13
- * import { DynamoDBClient, ListExportsCommand } from "@aws-sdk/client-dynamodb"; // ES Modules import
14
- * // const { DynamoDBClient, ListExportsCommand } = require("@aws-sdk/client-dynamodb"); // CommonJS import
15
- * const client = new DynamoDBClient(config);
16
- * const command = new ListExportsCommand(input);
17
- * const response = await client.send(command);
18
- * ```
19
- *
20
- * @see {@link ListExportsCommandInput} for command's `input` shape.
21
- * @see {@link ListExportsCommandOutput} for command's `response` shape.
22
- * @see {@link DynamoDBClientResolvedConfig | config} for command's `input` shape.
23
- *
24
- */
25
8
  class ListExportsCommand extends smithy_client_1.Command {
26
- // Start section: command_properties
27
- // End section: command_properties
28
9
  constructor(input) {
29
- // Start section: command_constructor
30
10
  super();
31
11
  this.input = input;
32
- // End section: command_constructor
33
12
  }
34
- /**
35
- * @internal
36
- */
37
13
  resolveMiddleware(clientStack, configuration, options) {
38
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
39
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,38 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
8
- /**
9
- * <p>Lists all global tables that have a replica in the specified Region.</p>
10
- * <note>
11
- * <p>This operation only applies to <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/globaltables.V1.html">Version 2017.11.29</a> of global tables.</p>
12
- * </note>
13
- * @example
14
- * Use a bare-bones client and the command you need to make an API call.
15
- * ```javascript
16
- * import { DynamoDBClient, ListGlobalTablesCommand } from "@aws-sdk/client-dynamodb"; // ES Modules import
17
- * // const { DynamoDBClient, ListGlobalTablesCommand } = require("@aws-sdk/client-dynamodb"); // CommonJS import
18
- * const client = new DynamoDBClient(config);
19
- * const command = new ListGlobalTablesCommand(input);
20
- * const response = await client.send(command);
21
- * ```
22
- *
23
- * @see {@link ListGlobalTablesCommandInput} for command's `input` shape.
24
- * @see {@link ListGlobalTablesCommandOutput} for command's `response` shape.
25
- * @see {@link DynamoDBClientResolvedConfig | config} for command's `input` shape.
26
- *
27
- */
28
8
  class ListGlobalTablesCommand extends smithy_client_1.Command {
29
- // Start section: command_properties
30
- // End section: command_properties
31
9
  constructor(input) {
32
- // Start section: command_constructor
33
10
  super();
34
11
  this.input = input;
35
- // End section: command_constructor
36
12
  }
37
- /**
38
- * @internal
39
- */
40
13
  resolveMiddleware(clientStack, configuration, options) {
41
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
42
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,37 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
8
- /**
9
- * <p>Returns an array of table names associated with the current account and endpoint. The output
10
- * from <code>ListTables</code> is paginated, with each page returning a maximum of 100 table
11
- * names.</p>
12
- * @example
13
- * Use a bare-bones client and the command you need to make an API call.
14
- * ```javascript
15
- * import { DynamoDBClient, ListTablesCommand } from "@aws-sdk/client-dynamodb"; // ES Modules import
16
- * // const { DynamoDBClient, ListTablesCommand } = require("@aws-sdk/client-dynamodb"); // CommonJS import
17
- * const client = new DynamoDBClient(config);
18
- * const command = new ListTablesCommand(input);
19
- * const response = await client.send(command);
20
- * ```
21
- *
22
- * @see {@link ListTablesCommandInput} for command's `input` shape.
23
- * @see {@link ListTablesCommandOutput} for command's `response` shape.
24
- * @see {@link DynamoDBClientResolvedConfig | config} for command's `input` shape.
25
- *
26
- */
27
8
  class ListTablesCommand extends smithy_client_1.Command {
28
- // Start section: command_properties
29
- // End section: command_properties
30
9
  constructor(input) {
31
- // Start section: command_constructor
32
10
  super();
33
11
  this.input = input;
34
- // End section: command_constructor
35
12
  }
36
- /**
37
- * @internal
38
- */
39
13
  resolveMiddleware(clientStack, configuration, options) {
40
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
41
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,38 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
8
- /**
9
- * <p>List all tags on an Amazon DynamoDB resource. You can call ListTagsOfResource up to 10 times per second, per account.</p>
10
- * <p>For an overview on tagging DynamoDB resources, see
11
- * <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Tagging.html">Tagging for DynamoDB</a>
12
- * in the <i>Amazon DynamoDB Developer Guide</i>.</p>
13
- * @example
14
- * Use a bare-bones client and the command you need to make an API call.
15
- * ```javascript
16
- * import { DynamoDBClient, ListTagsOfResourceCommand } from "@aws-sdk/client-dynamodb"; // ES Modules import
17
- * // const { DynamoDBClient, ListTagsOfResourceCommand } = require("@aws-sdk/client-dynamodb"); // CommonJS import
18
- * const client = new DynamoDBClient(config);
19
- * const command = new ListTagsOfResourceCommand(input);
20
- * const response = await client.send(command);
21
- * ```
22
- *
23
- * @see {@link ListTagsOfResourceCommandInput} for command's `input` shape.
24
- * @see {@link ListTagsOfResourceCommandOutput} for command's `response` shape.
25
- * @see {@link DynamoDBClientResolvedConfig | config} for command's `input` shape.
26
- *
27
- */
28
8
  class ListTagsOfResourceCommand extends smithy_client_1.Command {
29
- // Start section: command_properties
30
- // End section: command_properties
31
9
  constructor(input) {
32
- // Start section: command_constructor
33
10
  super();
34
11
  this.input = input;
35
- // End section: command_constructor
36
12
  }
37
- /**
38
- * @internal
39
- */
40
13
  resolveMiddleware(clientStack, configuration, options) {
41
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
42
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,102 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
8
- /**
9
- * <p>Creates a new item, or replaces an old item with a new item. If an item that has the same primary key as the new item already exists in the specified table, the new item completely replaces the existing item. You can perform a conditional put operation (add a new item if one with the specified primary key doesn't exist), or replace an existing item if it has certain attribute values. You can return the item's attribute values in the same operation, using the <code>ReturnValues</code> parameter.</p>
10
- * <important>
11
- * <p>This topic provides general information about the <code>PutItem</code> API.</p>
12
- * <p>For information on how to call the <code>PutItem</code> API using the AWS SDK in specific languages, see the following:</p>
13
- * <ul>
14
- * <li>
15
- * <p>
16
- * <a href="http://docs.aws.amazon.com/goto/aws-cli/dynamodb-2012-08-10/PutItem"> PutItem in the AWS Command Line Interface</a>
17
- * </p>
18
- * </li>
19
- * <li>
20
- * <p>
21
- * <a href="http://docs.aws.amazon.com/goto/DotNetSDKV3/dynamodb-2012-08-10/PutItem"> PutItem in the AWS SDK for .NET</a>
22
- * </p>
23
- * </li>
24
- * <li>
25
- * <p>
26
- * <a href="http://docs.aws.amazon.com/goto/SdkForCpp/dynamodb-2012-08-10/PutItem"> PutItem in the AWS SDK for C++</a>
27
- * </p>
28
- * </li>
29
- * <li>
30
- * <p>
31
- * <a href="http://docs.aws.amazon.com/goto/SdkForGoV1/dynamodb-2012-08-10/PutItem"> PutItem in the AWS SDK for Go</a>
32
- * </p>
33
- * </li>
34
- * <li>
35
- * <p>
36
- * <a href="http://docs.aws.amazon.com/goto/SdkForJava/dynamodb-2012-08-10/PutItem"> PutItem in the AWS SDK for Java</a>
37
- * </p>
38
- * </li>
39
- * <li>
40
- * <p>
41
- * <a href="http://docs.aws.amazon.com/goto/AWSJavaScriptSDK/dynamodb-2012-08-10/PutItem"> PutItem in the AWS SDK for JavaScript</a>
42
- * </p>
43
- * </li>
44
- * <li>
45
- * <p>
46
- * <a href="http://docs.aws.amazon.com/goto/SdkForPHPV3/dynamodb-2012-08-10/PutItem"> PutItem in the AWS SDK for PHP V3</a>
47
- * </p>
48
- * </li>
49
- * <li>
50
- * <p>
51
- * <a href="http://docs.aws.amazon.com/goto/boto3/dynamodb-2012-08-10/PutItem">
52
- * PutItem in the AWS SDK for Python</a>
53
- * </p>
54
- * </li>
55
- * <li>
56
- * <p>
57
- * <a href="http://docs.aws.amazon.com/goto/SdkForRubyV2/dynamodb-2012-08-10/PutItem"> PutItem in the AWS SDK for Ruby V2</a>
58
- * </p>
59
- * </li>
60
- * </ul>
61
- * </important>
62
- *
63
- * <p>When you add an item, the primary key attributes are the only required attributes.
64
- * Attribute values cannot be null.</p>
65
- * <p>Empty String and Binary attribute values are allowed. Attribute values of type String and Binary must have a length greater than zero if the attribute is used as a key attribute for a table or index.
66
- * Set type attributes cannot be empty. </p>
67
- * <p>Invalid Requests with empty values will
68
- * be rejected with a <code>ValidationException</code> exception.</p>
69
- * <note>
70
- * <p>To prevent a new item from replacing an existing item, use a conditional expression
71
- * that contains the <code>attribute_not_exists</code> function with the name of the
72
- * attribute being used as the partition key for the table. Since every record must contain
73
- * that attribute, the <code>attribute_not_exists</code> function will only succeed if
74
- * no matching item exists.</p>
75
- * </note>
76
- * <p>For more information about <code>PutItem</code>, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithItems.html">Working with Items</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
77
- * @example
78
- * Use a bare-bones client and the command you need to make an API call.
79
- * ```javascript
80
- * import { DynamoDBClient, PutItemCommand } from "@aws-sdk/client-dynamodb"; // ES Modules import
81
- * // const { DynamoDBClient, PutItemCommand } = require("@aws-sdk/client-dynamodb"); // CommonJS import
82
- * const client = new DynamoDBClient(config);
83
- * const command = new PutItemCommand(input);
84
- * const response = await client.send(command);
85
- * ```
86
- *
87
- * @see {@link PutItemCommandInput} for command's `input` shape.
88
- * @see {@link PutItemCommandOutput} for command's `response` shape.
89
- * @see {@link DynamoDBClientResolvedConfig | config} for command's `input` shape.
90
- *
91
- */
92
8
  class PutItemCommand extends smithy_client_1.Command {
93
- // Start section: command_properties
94
- // End section: command_properties
95
9
  constructor(input) {
96
- // Start section: command_constructor
97
10
  super();
98
11
  this.input = input;
99
- // End section: command_constructor
100
12
  }
101
- /**
102
- * @internal
103
- */
104
13
  resolveMiddleware(clientStack, configuration, options) {
105
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
106
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,90 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
8
- /**
9
- * <p>The <code>Query</code> operation finds items based on primary key values.
10
- * You can query any table or secondary index that has a composite primary key (a partition
11
- * key and a sort key).
12
- * </p>
13
- * <p>Use the <code>KeyConditionExpression</code> parameter to provide a specific value
14
- * for the partition key. The <code>Query</code> operation will return all of the items
15
- * from the table or index with that partition key value. You can optionally narrow the
16
- * scope of the <code>Query</code> operation by specifying a sort key value and a
17
- * comparison operator in <code>KeyConditionExpression</code>. To further refine the <code>Query</code> results,
18
- * you can optionally provide a <code>FilterExpression</code>. A <code>FilterExpression</code> determines which items
19
- * within the results should be returned to you. All of the other results are discarded.
20
- * </p>
21
- * <p>
22
- * A <code>Query</code> operation always returns a result set. If no matching items are found,
23
- * the result set will be empty. Queries that do not return results consume the minimum number of
24
- * read capacity units for that type of read operation.
25
- * </p>
26
- * <note>
27
- * <p>
28
- * DynamoDB calculates the number of read capacity units consumed based on item size,
29
- * not on the amount of data that is returned to an application. The number of capacity
30
- * units consumed will be the same whether you request all of the attributes (the default behavior)
31
- * or just some of them (using a projection expression). The number will also be the same
32
- * whether or not you use a <code>FilterExpression</code>.
33
- * </p>
34
- * </note>
35
- * <p>
36
- * <code>Query</code> results are always sorted by the sort key value. If the data type of the sort key is Number,
37
- * the results are returned in numeric order; otherwise, the results are returned in order of UTF-8 bytes.
38
- * By default, the sort order is ascending. To reverse the order, set the <code>ScanIndexForward</code> parameter
39
- * to false.
40
- * </p>
41
- * <p> A single <code>Query</code> operation will read up to the maximum number of items
42
- * set (if using the <code>Limit</code> parameter) or a maximum of 1 MB of data and then
43
- * apply any filtering to the results using <code>FilterExpression</code>. If
44
- * <code>LastEvaluatedKey</code> is present in the response, you will need to paginate
45
- * the result set. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Query.html#Query.Pagination">Paginating
46
- * the Results</a> in the <i>Amazon DynamoDB Developer Guide</i>. </p>
47
- * <p>
48
- * <code>FilterExpression</code> is applied after a <code>Query</code> finishes, but before
49
- * the results are returned.
50
- * A <code>FilterExpression</code> cannot contain partition key or sort key attributes.
51
- * You need to specify those attributes in the <code>KeyConditionExpression</code>.
52
- * </p>
53
- * <note>
54
- * <p>
55
- * A <code>Query</code> operation can return an empty result set and a <code>LastEvaluatedKey</code>
56
- * if all the items read for the page of results are filtered out.
57
- * </p>
58
- * </note>
59
- * <p>You can query a table, a local secondary index, or a global secondary index. For a
60
- * query on a table or on a local secondary index, you can set the
61
- * <code>ConsistentRead</code> parameter to <code>true</code> and obtain a
62
- * strongly consistent result. Global secondary indexes support eventually consistent reads
63
- * only, so do not specify <code>ConsistentRead</code> when querying a global
64
- * secondary index.</p>
65
- * @example
66
- * Use a bare-bones client and the command you need to make an API call.
67
- * ```javascript
68
- * import { DynamoDBClient, QueryCommand } from "@aws-sdk/client-dynamodb"; // ES Modules import
69
- * // const { DynamoDBClient, QueryCommand } = require("@aws-sdk/client-dynamodb"); // CommonJS import
70
- * const client = new DynamoDBClient(config);
71
- * const command = new QueryCommand(input);
72
- * const response = await client.send(command);
73
- * ```
74
- *
75
- * @see {@link QueryCommandInput} for command's `input` shape.
76
- * @see {@link QueryCommandOutput} for command's `response` shape.
77
- * @see {@link DynamoDBClientResolvedConfig | config} for command's `input` shape.
78
- *
79
- */
80
8
  class QueryCommand extends smithy_client_1.Command {
81
- // Start section: command_properties
82
- // End section: command_properties
83
9
  constructor(input) {
84
- // Start section: command_constructor
85
10
  super();
86
11
  this.input = input;
87
- // End section: command_constructor
88
12
  }
89
- /**
90
- * @internal
91
- */
92
13
  resolveMiddleware(clientStack, configuration, options) {
93
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
94
15
  const stack = clientStack.concat(this.middlewareStack);