@aws-sdk/client-dynamodb 3.282.0 → 3.287.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 (66) hide show
  1. package/README.md +0 -2
  2. package/dist-cjs/endpoint/ruleset.js +3 -3
  3. package/dist-cjs/pagination/ListContributorInsightsPaginator.js +1 -8
  4. package/dist-cjs/pagination/ListExportsPaginator.js +1 -8
  5. package/dist-cjs/pagination/ListImportsPaginator.js +1 -8
  6. package/dist-cjs/pagination/ListTablesPaginator.js +1 -8
  7. package/dist-cjs/pagination/QueryPaginator.js +1 -8
  8. package/dist-cjs/pagination/ScanPaginator.js +1 -8
  9. package/dist-cjs/protocols/Aws_json1_0.js +3 -0
  10. package/dist-es/endpoint/ruleset.js +3 -3
  11. package/dist-es/pagination/ListContributorInsightsPaginator.js +1 -8
  12. package/dist-es/pagination/ListExportsPaginator.js +1 -8
  13. package/dist-es/pagination/ListImportsPaginator.js +1 -8
  14. package/dist-es/pagination/ListTablesPaginator.js +1 -8
  15. package/dist-es/pagination/QueryPaginator.js +1 -8
  16. package/dist-es/pagination/ScanPaginator.js +1 -8
  17. package/dist-es/protocols/Aws_json1_0.js +3 -0
  18. package/dist-types/DynamoDB.d.ts +314 -250
  19. package/dist-types/DynamoDBClient.d.ts +3 -6
  20. package/dist-types/commands/BatchExecuteStatementCommand.d.ts +4 -4
  21. package/dist-types/commands/BatchGetItemCommand.d.ts +11 -11
  22. package/dist-types/commands/BatchWriteItemCommand.d.ts +19 -20
  23. package/dist-types/commands/CreateBackupCommand.d.ts +11 -11
  24. package/dist-types/commands/CreateGlobalTableCommand.d.ts +27 -21
  25. package/dist-types/commands/CreateTableCommand.d.ts +3 -3
  26. package/dist-types/commands/DeleteBackupCommand.d.ts +1 -1
  27. package/dist-types/commands/DeleteItemCommand.d.ts +3 -3
  28. package/dist-types/commands/DeleteTableCommand.d.ts +10 -6
  29. package/dist-types/commands/DescribeBackupCommand.d.ts +1 -1
  30. package/dist-types/commands/DescribeContinuousBackupsCommand.d.ts +3 -3
  31. package/dist-types/commands/DescribeContributorInsightsCommand.d.ts +1 -1
  32. package/dist-types/commands/DescribeEndpointsCommand.d.ts +3 -1
  33. package/dist-types/commands/DescribeGlobalTableCommand.d.ts +11 -4
  34. package/dist-types/commands/DescribeGlobalTableSettingsCommand.d.ts +11 -3
  35. package/dist-types/commands/DescribeLimitsCommand.d.ts +23 -27
  36. package/dist-types/commands/DescribeTableCommand.d.ts +7 -2
  37. package/dist-types/commands/DescribeTableReplicaAutoScalingCommand.d.ts +4 -4
  38. package/dist-types/commands/ExecuteStatementCommand.d.ts +4 -3
  39. package/dist-types/commands/ExecuteTransactionCommand.d.ts +2 -2
  40. package/dist-types/commands/GetItemCommand.d.ts +1 -1
  41. package/dist-types/commands/ListBackupsCommand.d.ts +2 -2
  42. package/dist-types/commands/ListGlobalTablesCommand.d.ts +11 -3
  43. package/dist-types/commands/ListTagsOfResourceCommand.d.ts +1 -1
  44. package/dist-types/commands/PutItemCommand.d.ts +6 -7
  45. package/dist-types/commands/QueryCommand.d.ts +10 -11
  46. package/dist-types/commands/RestoreTableFromBackupCommand.d.ts +9 -9
  47. package/dist-types/commands/RestoreTableToPointInTimeCommand.d.ts +19 -20
  48. package/dist-types/commands/ScanCommand.d.ts +4 -4
  49. package/dist-types/commands/TagResourceCommand.d.ts +1 -1
  50. package/dist-types/commands/TransactGetItemsCommand.d.ts +6 -6
  51. package/dist-types/commands/TransactWriteItemsCommand.d.ts +14 -17
  52. package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
  53. package/dist-types/commands/UpdateContinuousBackupsCommand.d.ts +2 -2
  54. package/dist-types/commands/UpdateGlobalTableCommand.d.ts +28 -9
  55. package/dist-types/commands/UpdateGlobalTableSettingsCommand.d.ts +12 -0
  56. package/dist-types/commands/UpdateItemCommand.d.ts +1 -1
  57. package/dist-types/commands/UpdateTableCommand.d.ts +11 -6
  58. package/dist-types/commands/UpdateTableReplicaAutoScalingCommand.d.ts +5 -4
  59. package/dist-types/commands/UpdateTimeToLiveCommand.d.ts +8 -8
  60. package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
  61. package/dist-types/models/models_0.d.ts +1596 -1541
  62. package/dist-types/pagination/Interfaces.d.ts +1 -2
  63. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
  64. package/dist-types/ts3.4/models/models_0.d.ts +3 -0
  65. package/dist-types/ts3.4/pagination/Interfaces.d.ts +1 -2
  66. package/package.json +10 -10
package/README.md CHANGED
@@ -16,13 +16,11 @@ and predictable performance with seamless scalability. DynamoDB lets you
16
16
  offload the administrative burdens of operating and scaling a distributed database, so
17
17
  that you don't have to worry about hardware provisioning, setup and configuration,
18
18
  replication, software patching, or cluster scaling.</p>
19
-
20
19
  <p>With DynamoDB, you can create database tables that can store and retrieve
21
20
  any amount of data, and serve any level of request traffic. You can scale up or scale
22
21
  down your tables' throughput capacity without downtime or performance degradation, and
23
22
  use the Amazon Web Services Management Console to monitor resource utilization and performance
24
23
  metrics.</p>
25
-
26
24
  <p>DynamoDB automatically spreads the data and traffic for your tables over
27
25
  a sufficient number of servers to handle your throughput and storage requirements, while
28
26
  maintaining consistent and fast performance. All of your data is stored on solid state
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ruleSet = void 0;
4
- const v = "fn", w = "argv", x = "ref";
5
- const a = true, b = false, c = "String", d = "PartitionResult", e = "tree", f = "error", g = "endpoint", h = "getAttr", i = "stringEquals", j = { "required": true, "default": false, "type": "Boolean" }, k = { [x]: "Region" }, l = { [x]: "Endpoint" }, m = { [v]: "booleanEquals", [w]: [{ [x]: "UseFIPS" }, true] }, n = { [v]: "booleanEquals", [w]: [{ [x]: "UseDualStack" }, true] }, o = {}, p = { [v]: "booleanEquals", [w]: [true, { [v]: h, [w]: [{ [x]: d }, "supportsFIPS"] }] }, q = { [x]: d }, r = { [v]: "booleanEquals", [w]: [true, { [v]: h, [w]: [q, "supportsDualStack"] }] }, s = { "url": "https://dynamodb.{Region}.{PartitionResult#dnsSuffix}", "properties": {}, "headers": {} }, t = [m], u = [n];
6
- const _data = { version: "1.0", parameters: { Region: { required: a, type: c }, UseDualStack: j, UseFIPS: j, Endpoint: { required: b, type: c } }, rules: [{ conditions: [{ [v]: "aws.partition", [w]: [k], assign: d }], type: e, rules: [{ conditions: [{ [v]: "isSet", [w]: [l] }], type: e, rules: [{ conditions: t, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: f }, { type: e, rules: [{ conditions: u, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: f }, { endpoint: { url: l, properties: o, headers: o }, type: g }] }] }, { conditions: [m, n], type: e, rules: [{ conditions: [p, r], type: e, rules: [{ endpoint: { url: "https://dynamodb-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: o, headers: o }, type: g }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: f }] }, { conditions: t, type: e, rules: [{ conditions: [p], type: e, rules: [{ type: e, rules: [{ conditions: [{ [v]: i, [w]: ["aws-us-gov", { [v]: h, [w]: [q, "name"] }] }], endpoint: s, type: g }, { endpoint: { url: "https://dynamodb-fips.{Region}.{PartitionResult#dnsSuffix}", properties: o, headers: o }, type: g }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: f }] }, { conditions: u, type: e, rules: [{ conditions: [r], type: e, rules: [{ endpoint: { url: "https://dynamodb.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: o, headers: o }, type: g }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: f }] }, { type: e, rules: [{ conditions: [{ [v]: i, [w]: [k, "local"] }], endpoint: { url: "http://localhost:8000", properties: { authSchemes: [{ name: "sigv4", signingRegion: "us-east-1", signingName: "dynamodb" }] }, headers: o }, type: g }, { endpoint: s, type: g }] }] }] };
4
+ const u = "required", v = "fn", w = "argv", x = "ref";
5
+ const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = "getAttr", g = "stringEquals", h = { [u]: false, "type": "String" }, i = { [u]: true, "default": false, "type": "Boolean" }, j = { [x]: "Endpoint" }, k = { [v]: "booleanEquals", [w]: [{ [x]: "UseFIPS" }, true] }, l = { [v]: "booleanEquals", [w]: [{ [x]: "UseDualStack" }, true] }, m = {}, n = { [x]: "Region" }, o = { [v]: "booleanEquals", [w]: [true, { [v]: f, [w]: [{ [x]: e }, "supportsFIPS"] }] }, p = { [x]: e }, q = { [v]: "booleanEquals", [w]: [true, { [v]: f, [w]: [p, "supportsDualStack"] }] }, r = [k], s = [l], t = [n];
6
+ const _data = { version: "1.0", parameters: { Region: h, UseDualStack: i, UseFIPS: i, Endpoint: h }, rules: [{ conditions: [{ [v]: a, [w]: [j] }], type: b, rules: [{ conditions: r, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: s, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: j, properties: m, headers: m }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [v]: a, [w]: t }], type: b, rules: [{ conditions: [{ [v]: "aws.partition", [w]: t, assign: e }], type: b, rules: [{ conditions: [k, l], type: b, rules: [{ conditions: [o, q], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://dynamodb-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: r, type: b, rules: [{ conditions: [o], type: b, rules: [{ type: b, rules: [{ conditions: [{ [v]: g, [w]: ["aws-us-gov", { [v]: f, [w]: [p, "name"] }] }], endpoint: { url: "https://dynamodb.{Region}.amazonaws.com", properties: m, headers: m }, type: d }, { endpoint: { url: "https://dynamodb-fips.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: s, type: b, rules: [{ conditions: [q], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://dynamodb.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ conditions: [{ [v]: g, [w]: [n, "local"] }], endpoint: { url: "http://localhost:8000", properties: { authSchemes: [{ name: "sigv4", signingName: "dynamodb", signingRegion: "us-east-1" }] }, headers: m }, type: d }, { endpoint: { url: "https://dynamodb.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
7
7
  exports.ruleSet = _data;
@@ -2,14 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListContributorInsights = void 0;
4
4
  const ListContributorInsightsCommand_1 = require("../commands/ListContributorInsightsCommand");
5
- const DynamoDB_1 = require("../DynamoDB");
6
5
  const DynamoDBClient_1 = require("../DynamoDBClient");
7
6
  const makePagedClientRequest = async (client, input, ...args) => {
8
7
  return await client.send(new ListContributorInsightsCommand_1.ListContributorInsightsCommand(input), ...args);
9
8
  };
10
- const makePagedRequest = async (client, input, ...args) => {
11
- return await client.listContributorInsights(input, ...args);
12
- };
13
9
  async function* paginateListContributorInsights(config, input, ...additionalArguments) {
14
10
  let token = config.startingToken || undefined;
15
11
  let hasNext = true;
@@ -17,10 +13,7 @@ async function* paginateListContributorInsights(config, input, ...additionalArgu
17
13
  while (hasNext) {
18
14
  input.NextToken = token;
19
15
  input["MaxResults"] = config.pageSize;
20
- if (config.client instanceof DynamoDB_1.DynamoDB) {
21
- page = await makePagedRequest(config.client, input, ...additionalArguments);
22
- }
23
- else if (config.client instanceof DynamoDBClient_1.DynamoDBClient) {
16
+ if (config.client instanceof DynamoDBClient_1.DynamoDBClient) {
24
17
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
25
18
  }
26
19
  else {
@@ -2,14 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListExports = void 0;
4
4
  const ListExportsCommand_1 = require("../commands/ListExportsCommand");
5
- const DynamoDB_1 = require("../DynamoDB");
6
5
  const DynamoDBClient_1 = require("../DynamoDBClient");
7
6
  const makePagedClientRequest = async (client, input, ...args) => {
8
7
  return await client.send(new ListExportsCommand_1.ListExportsCommand(input), ...args);
9
8
  };
10
- const makePagedRequest = async (client, input, ...args) => {
11
- return await client.listExports(input, ...args);
12
- };
13
9
  async function* paginateListExports(config, input, ...additionalArguments) {
14
10
  let token = config.startingToken || undefined;
15
11
  let hasNext = true;
@@ -17,10 +13,7 @@ async function* paginateListExports(config, input, ...additionalArguments) {
17
13
  while (hasNext) {
18
14
  input.NextToken = token;
19
15
  input["MaxResults"] = config.pageSize;
20
- if (config.client instanceof DynamoDB_1.DynamoDB) {
21
- page = await makePagedRequest(config.client, input, ...additionalArguments);
22
- }
23
- else if (config.client instanceof DynamoDBClient_1.DynamoDBClient) {
16
+ if (config.client instanceof DynamoDBClient_1.DynamoDBClient) {
24
17
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
25
18
  }
26
19
  else {
@@ -2,14 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListImports = void 0;
4
4
  const ListImportsCommand_1 = require("../commands/ListImportsCommand");
5
- const DynamoDB_1 = require("../DynamoDB");
6
5
  const DynamoDBClient_1 = require("../DynamoDBClient");
7
6
  const makePagedClientRequest = async (client, input, ...args) => {
8
7
  return await client.send(new ListImportsCommand_1.ListImportsCommand(input), ...args);
9
8
  };
10
- const makePagedRequest = async (client, input, ...args) => {
11
- return await client.listImports(input, ...args);
12
- };
13
9
  async function* paginateListImports(config, input, ...additionalArguments) {
14
10
  let token = config.startingToken || undefined;
15
11
  let hasNext = true;
@@ -17,10 +13,7 @@ async function* paginateListImports(config, input, ...additionalArguments) {
17
13
  while (hasNext) {
18
14
  input.NextToken = token;
19
15
  input["PageSize"] = config.pageSize;
20
- if (config.client instanceof DynamoDB_1.DynamoDB) {
21
- page = await makePagedRequest(config.client, input, ...additionalArguments);
22
- }
23
- else if (config.client instanceof DynamoDBClient_1.DynamoDBClient) {
16
+ if (config.client instanceof DynamoDBClient_1.DynamoDBClient) {
24
17
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
25
18
  }
26
19
  else {
@@ -2,14 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListTables = void 0;
4
4
  const ListTablesCommand_1 = require("../commands/ListTablesCommand");
5
- const DynamoDB_1 = require("../DynamoDB");
6
5
  const DynamoDBClient_1 = require("../DynamoDBClient");
7
6
  const makePagedClientRequest = async (client, input, ...args) => {
8
7
  return await client.send(new ListTablesCommand_1.ListTablesCommand(input), ...args);
9
8
  };
10
- const makePagedRequest = async (client, input, ...args) => {
11
- return await client.listTables(input, ...args);
12
- };
13
9
  async function* paginateListTables(config, input, ...additionalArguments) {
14
10
  let token = config.startingToken || undefined;
15
11
  let hasNext = true;
@@ -17,10 +13,7 @@ async function* paginateListTables(config, input, ...additionalArguments) {
17
13
  while (hasNext) {
18
14
  input.ExclusiveStartTableName = token;
19
15
  input["Limit"] = config.pageSize;
20
- if (config.client instanceof DynamoDB_1.DynamoDB) {
21
- page = await makePagedRequest(config.client, input, ...additionalArguments);
22
- }
23
- else if (config.client instanceof DynamoDBClient_1.DynamoDBClient) {
16
+ if (config.client instanceof DynamoDBClient_1.DynamoDBClient) {
24
17
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
25
18
  }
26
19
  else {
@@ -2,14 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateQuery = void 0;
4
4
  const QueryCommand_1 = require("../commands/QueryCommand");
5
- const DynamoDB_1 = require("../DynamoDB");
6
5
  const DynamoDBClient_1 = require("../DynamoDBClient");
7
6
  const makePagedClientRequest = async (client, input, ...args) => {
8
7
  return await client.send(new QueryCommand_1.QueryCommand(input), ...args);
9
8
  };
10
- const makePagedRequest = async (client, input, ...args) => {
11
- return await client.query(input, ...args);
12
- };
13
9
  async function* paginateQuery(config, input, ...additionalArguments) {
14
10
  let token = config.startingToken || undefined;
15
11
  let hasNext = true;
@@ -17,10 +13,7 @@ async function* paginateQuery(config, input, ...additionalArguments) {
17
13
  while (hasNext) {
18
14
  input.ExclusiveStartKey = token;
19
15
  input["Limit"] = config.pageSize;
20
- if (config.client instanceof DynamoDB_1.DynamoDB) {
21
- page = await makePagedRequest(config.client, input, ...additionalArguments);
22
- }
23
- else if (config.client instanceof DynamoDBClient_1.DynamoDBClient) {
16
+ if (config.client instanceof DynamoDBClient_1.DynamoDBClient) {
24
17
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
25
18
  }
26
19
  else {
@@ -2,14 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateScan = void 0;
4
4
  const ScanCommand_1 = require("../commands/ScanCommand");
5
- const DynamoDB_1 = require("../DynamoDB");
6
5
  const DynamoDBClient_1 = require("../DynamoDBClient");
7
6
  const makePagedClientRequest = async (client, input, ...args) => {
8
7
  return await client.send(new ScanCommand_1.ScanCommand(input), ...args);
9
8
  };
10
- const makePagedRequest = async (client, input, ...args) => {
11
- return await client.scan(input, ...args);
12
- };
13
9
  async function* paginateScan(config, input, ...additionalArguments) {
14
10
  let token = config.startingToken || undefined;
15
11
  let hasNext = true;
@@ -17,10 +13,7 @@ async function* paginateScan(config, input, ...additionalArguments) {
17
13
  while (hasNext) {
18
14
  input.ExclusiveStartKey = token;
19
15
  input["Limit"] = config.pageSize;
20
- if (config.client instanceof DynamoDB_1.DynamoDB) {
21
- page = await makePagedRequest(config.client, input, ...additionalArguments);
22
- }
23
- else if (config.client instanceof DynamoDBClient_1.DynamoDBClient) {
16
+ if (config.client instanceof DynamoDBClient_1.DynamoDBClient) {
24
17
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
25
18
  }
26
19
  else {
@@ -3362,6 +3362,7 @@ const serializeAws_json1_0CreateTableInput = (input, context) => {
3362
3362
  AttributeDefinitions: serializeAws_json1_0AttributeDefinitions(input.AttributeDefinitions, context),
3363
3363
  }),
3364
3364
  ...(input.BillingMode != null && { BillingMode: input.BillingMode }),
3365
+ ...(input.DeletionProtectionEnabled != null && { DeletionProtectionEnabled: input.DeletionProtectionEnabled }),
3365
3366
  ...(input.GlobalSecondaryIndexes != null && {
3366
3367
  GlobalSecondaryIndexes: serializeAws_json1_0GlobalSecondaryIndexList(input.GlobalSecondaryIndexes, context),
3367
3368
  }),
@@ -4457,6 +4458,7 @@ const serializeAws_json1_0UpdateTableInput = (input, context) => {
4457
4458
  AttributeDefinitions: serializeAws_json1_0AttributeDefinitions(input.AttributeDefinitions, context),
4458
4459
  }),
4459
4460
  ...(input.BillingMode != null && { BillingMode: input.BillingMode }),
4461
+ ...(input.DeletionProtectionEnabled != null && { DeletionProtectionEnabled: input.DeletionProtectionEnabled }),
4460
4462
  ...(input.GlobalSecondaryIndexUpdates != null && {
4461
4463
  GlobalSecondaryIndexUpdates: serializeAws_json1_0GlobalSecondaryIndexUpdateList(input.GlobalSecondaryIndexUpdates, context),
4462
4464
  }),
@@ -6158,6 +6160,7 @@ const deserializeAws_json1_0TableDescription = (output, context) => {
6158
6160
  CreationDateTime: output.CreationDateTime != null
6159
6161
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationDateTime)))
6160
6162
  : undefined,
6163
+ DeletionProtectionEnabled: (0, smithy_client_1.expectBoolean)(output.DeletionProtectionEnabled),
6161
6164
  GlobalSecondaryIndexes: output.GlobalSecondaryIndexes != null
6162
6165
  ? deserializeAws_json1_0GlobalSecondaryIndexDescriptionList(output.GlobalSecondaryIndexes, context)
6163
6166
  : undefined,
@@ -1,4 +1,4 @@
1
- const v = "fn", w = "argv", x = "ref";
2
- const a = true, b = false, c = "String", d = "PartitionResult", e = "tree", f = "error", g = "endpoint", h = "getAttr", i = "stringEquals", j = { "required": true, "default": false, "type": "Boolean" }, k = { [x]: "Region" }, l = { [x]: "Endpoint" }, m = { [v]: "booleanEquals", [w]: [{ [x]: "UseFIPS" }, true] }, n = { [v]: "booleanEquals", [w]: [{ [x]: "UseDualStack" }, true] }, o = {}, p = { [v]: "booleanEquals", [w]: [true, { [v]: h, [w]: [{ [x]: d }, "supportsFIPS"] }] }, q = { [x]: d }, r = { [v]: "booleanEquals", [w]: [true, { [v]: h, [w]: [q, "supportsDualStack"] }] }, s = { "url": "https://dynamodb.{Region}.{PartitionResult#dnsSuffix}", "properties": {}, "headers": {} }, t = [m], u = [n];
3
- const _data = { version: "1.0", parameters: { Region: { required: a, type: c }, UseDualStack: j, UseFIPS: j, Endpoint: { required: b, type: c } }, rules: [{ conditions: [{ [v]: "aws.partition", [w]: [k], assign: d }], type: e, rules: [{ conditions: [{ [v]: "isSet", [w]: [l] }], type: e, rules: [{ conditions: t, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: f }, { type: e, rules: [{ conditions: u, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: f }, { endpoint: { url: l, properties: o, headers: o }, type: g }] }] }, { conditions: [m, n], type: e, rules: [{ conditions: [p, r], type: e, rules: [{ endpoint: { url: "https://dynamodb-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: o, headers: o }, type: g }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: f }] }, { conditions: t, type: e, rules: [{ conditions: [p], type: e, rules: [{ type: e, rules: [{ conditions: [{ [v]: i, [w]: ["aws-us-gov", { [v]: h, [w]: [q, "name"] }] }], endpoint: s, type: g }, { endpoint: { url: "https://dynamodb-fips.{Region}.{PartitionResult#dnsSuffix}", properties: o, headers: o }, type: g }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: f }] }, { conditions: u, type: e, rules: [{ conditions: [r], type: e, rules: [{ endpoint: { url: "https://dynamodb.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: o, headers: o }, type: g }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: f }] }, { type: e, rules: [{ conditions: [{ [v]: i, [w]: [k, "local"] }], endpoint: { url: "http://localhost:8000", properties: { authSchemes: [{ name: "sigv4", signingRegion: "us-east-1", signingName: "dynamodb" }] }, headers: o }, type: g }, { endpoint: s, type: g }] }] }] };
1
+ const u = "required", v = "fn", w = "argv", x = "ref";
2
+ const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = "getAttr", g = "stringEquals", h = { [u]: false, "type": "String" }, i = { [u]: true, "default": false, "type": "Boolean" }, j = { [x]: "Endpoint" }, k = { [v]: "booleanEquals", [w]: [{ [x]: "UseFIPS" }, true] }, l = { [v]: "booleanEquals", [w]: [{ [x]: "UseDualStack" }, true] }, m = {}, n = { [x]: "Region" }, o = { [v]: "booleanEquals", [w]: [true, { [v]: f, [w]: [{ [x]: e }, "supportsFIPS"] }] }, p = { [x]: e }, q = { [v]: "booleanEquals", [w]: [true, { [v]: f, [w]: [p, "supportsDualStack"] }] }, r = [k], s = [l], t = [n];
3
+ const _data = { version: "1.0", parameters: { Region: h, UseDualStack: i, UseFIPS: i, Endpoint: h }, rules: [{ conditions: [{ [v]: a, [w]: [j] }], type: b, rules: [{ conditions: r, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: s, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: j, properties: m, headers: m }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [v]: a, [w]: t }], type: b, rules: [{ conditions: [{ [v]: "aws.partition", [w]: t, assign: e }], type: b, rules: [{ conditions: [k, l], type: b, rules: [{ conditions: [o, q], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://dynamodb-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: r, type: b, rules: [{ conditions: [o], type: b, rules: [{ type: b, rules: [{ conditions: [{ [v]: g, [w]: ["aws-us-gov", { [v]: f, [w]: [p, "name"] }] }], endpoint: { url: "https://dynamodb.{Region}.amazonaws.com", properties: m, headers: m }, type: d }, { endpoint: { url: "https://dynamodb-fips.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: s, type: b, rules: [{ conditions: [q], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://dynamodb.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ conditions: [{ [v]: g, [w]: [n, "local"] }], endpoint: { url: "http://localhost:8000", properties: { authSchemes: [{ name: "sigv4", signingName: "dynamodb", signingRegion: "us-east-1" }] }, headers: m }, type: d }, { endpoint: { url: "https://dynamodb.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
4
4
  export const ruleSet = _data;
@@ -1,12 +1,8 @@
1
1
  import { ListContributorInsightsCommand, } from "../commands/ListContributorInsightsCommand";
2
- import { DynamoDB } from "../DynamoDB";
3
2
  import { DynamoDBClient } from "../DynamoDBClient";
4
3
  const makePagedClientRequest = async (client, input, ...args) => {
5
4
  return await client.send(new ListContributorInsightsCommand(input), ...args);
6
5
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.listContributorInsights(input, ...args);
9
- };
10
6
  export async function* paginateListContributorInsights(config, input, ...additionalArguments) {
11
7
  let token = config.startingToken || undefined;
12
8
  let hasNext = true;
@@ -14,10 +10,7 @@ export async function* paginateListContributorInsights(config, input, ...additio
14
10
  while (hasNext) {
15
11
  input.NextToken = token;
16
12
  input["MaxResults"] = config.pageSize;
17
- if (config.client instanceof DynamoDB) {
18
- page = await makePagedRequest(config.client, input, ...additionalArguments);
19
- }
20
- else if (config.client instanceof DynamoDBClient) {
13
+ if (config.client instanceof DynamoDBClient) {
21
14
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
15
  }
23
16
  else {
@@ -1,12 +1,8 @@
1
1
  import { ListExportsCommand } from "../commands/ListExportsCommand";
2
- import { DynamoDB } from "../DynamoDB";
3
2
  import { DynamoDBClient } from "../DynamoDBClient";
4
3
  const makePagedClientRequest = async (client, input, ...args) => {
5
4
  return await client.send(new ListExportsCommand(input), ...args);
6
5
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.listExports(input, ...args);
9
- };
10
6
  export async function* paginateListExports(config, input, ...additionalArguments) {
11
7
  let token = config.startingToken || undefined;
12
8
  let hasNext = true;
@@ -14,10 +10,7 @@ export async function* paginateListExports(config, input, ...additionalArguments
14
10
  while (hasNext) {
15
11
  input.NextToken = token;
16
12
  input["MaxResults"] = config.pageSize;
17
- if (config.client instanceof DynamoDB) {
18
- page = await makePagedRequest(config.client, input, ...additionalArguments);
19
- }
20
- else if (config.client instanceof DynamoDBClient) {
13
+ if (config.client instanceof DynamoDBClient) {
21
14
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
15
  }
23
16
  else {
@@ -1,12 +1,8 @@
1
1
  import { ListImportsCommand } from "../commands/ListImportsCommand";
2
- import { DynamoDB } from "../DynamoDB";
3
2
  import { DynamoDBClient } from "../DynamoDBClient";
4
3
  const makePagedClientRequest = async (client, input, ...args) => {
5
4
  return await client.send(new ListImportsCommand(input), ...args);
6
5
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.listImports(input, ...args);
9
- };
10
6
  export async function* paginateListImports(config, input, ...additionalArguments) {
11
7
  let token = config.startingToken || undefined;
12
8
  let hasNext = true;
@@ -14,10 +10,7 @@ export async function* paginateListImports(config, input, ...additionalArguments
14
10
  while (hasNext) {
15
11
  input.NextToken = token;
16
12
  input["PageSize"] = config.pageSize;
17
- if (config.client instanceof DynamoDB) {
18
- page = await makePagedRequest(config.client, input, ...additionalArguments);
19
- }
20
- else if (config.client instanceof DynamoDBClient) {
13
+ if (config.client instanceof DynamoDBClient) {
21
14
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
15
  }
23
16
  else {
@@ -1,12 +1,8 @@
1
1
  import { ListTablesCommand } from "../commands/ListTablesCommand";
2
- import { DynamoDB } from "../DynamoDB";
3
2
  import { DynamoDBClient } from "../DynamoDBClient";
4
3
  const makePagedClientRequest = async (client, input, ...args) => {
5
4
  return await client.send(new ListTablesCommand(input), ...args);
6
5
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.listTables(input, ...args);
9
- };
10
6
  export async function* paginateListTables(config, input, ...additionalArguments) {
11
7
  let token = config.startingToken || undefined;
12
8
  let hasNext = true;
@@ -14,10 +10,7 @@ export async function* paginateListTables(config, input, ...additionalArguments)
14
10
  while (hasNext) {
15
11
  input.ExclusiveStartTableName = token;
16
12
  input["Limit"] = config.pageSize;
17
- if (config.client instanceof DynamoDB) {
18
- page = await makePagedRequest(config.client, input, ...additionalArguments);
19
- }
20
- else if (config.client instanceof DynamoDBClient) {
13
+ if (config.client instanceof DynamoDBClient) {
21
14
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
15
  }
23
16
  else {
@@ -1,12 +1,8 @@
1
1
  import { QueryCommand } from "../commands/QueryCommand";
2
- import { DynamoDB } from "../DynamoDB";
3
2
  import { DynamoDBClient } from "../DynamoDBClient";
4
3
  const makePagedClientRequest = async (client, input, ...args) => {
5
4
  return await client.send(new QueryCommand(input), ...args);
6
5
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.query(input, ...args);
9
- };
10
6
  export async function* paginateQuery(config, input, ...additionalArguments) {
11
7
  let token = config.startingToken || undefined;
12
8
  let hasNext = true;
@@ -14,10 +10,7 @@ export async function* paginateQuery(config, input, ...additionalArguments) {
14
10
  while (hasNext) {
15
11
  input.ExclusiveStartKey = token;
16
12
  input["Limit"] = config.pageSize;
17
- if (config.client instanceof DynamoDB) {
18
- page = await makePagedRequest(config.client, input, ...additionalArguments);
19
- }
20
- else if (config.client instanceof DynamoDBClient) {
13
+ if (config.client instanceof DynamoDBClient) {
21
14
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
15
  }
23
16
  else {
@@ -1,12 +1,8 @@
1
1
  import { ScanCommand } from "../commands/ScanCommand";
2
- import { DynamoDB } from "../DynamoDB";
3
2
  import { DynamoDBClient } from "../DynamoDBClient";
4
3
  const makePagedClientRequest = async (client, input, ...args) => {
5
4
  return await client.send(new ScanCommand(input), ...args);
6
5
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.scan(input, ...args);
9
- };
10
6
  export async function* paginateScan(config, input, ...additionalArguments) {
11
7
  let token = config.startingToken || undefined;
12
8
  let hasNext = true;
@@ -14,10 +10,7 @@ export async function* paginateScan(config, input, ...additionalArguments) {
14
10
  while (hasNext) {
15
11
  input.ExclusiveStartKey = token;
16
12
  input["Limit"] = config.pageSize;
17
- if (config.client instanceof DynamoDB) {
18
- page = await makePagedRequest(config.client, input, ...additionalArguments);
19
- }
20
- else if (config.client instanceof DynamoDBClient) {
13
+ if (config.client instanceof DynamoDBClient) {
21
14
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
15
  }
23
16
  else {
@@ -3251,6 +3251,7 @@ const serializeAws_json1_0CreateTableInput = (input, context) => {
3251
3251
  AttributeDefinitions: serializeAws_json1_0AttributeDefinitions(input.AttributeDefinitions, context),
3252
3252
  }),
3253
3253
  ...(input.BillingMode != null && { BillingMode: input.BillingMode }),
3254
+ ...(input.DeletionProtectionEnabled != null && { DeletionProtectionEnabled: input.DeletionProtectionEnabled }),
3254
3255
  ...(input.GlobalSecondaryIndexes != null && {
3255
3256
  GlobalSecondaryIndexes: serializeAws_json1_0GlobalSecondaryIndexList(input.GlobalSecondaryIndexes, context),
3256
3257
  }),
@@ -4346,6 +4347,7 @@ const serializeAws_json1_0UpdateTableInput = (input, context) => {
4346
4347
  AttributeDefinitions: serializeAws_json1_0AttributeDefinitions(input.AttributeDefinitions, context),
4347
4348
  }),
4348
4349
  ...(input.BillingMode != null && { BillingMode: input.BillingMode }),
4350
+ ...(input.DeletionProtectionEnabled != null && { DeletionProtectionEnabled: input.DeletionProtectionEnabled }),
4349
4351
  ...(input.GlobalSecondaryIndexUpdates != null && {
4350
4352
  GlobalSecondaryIndexUpdates: serializeAws_json1_0GlobalSecondaryIndexUpdateList(input.GlobalSecondaryIndexUpdates, context),
4351
4353
  }),
@@ -6047,6 +6049,7 @@ const deserializeAws_json1_0TableDescription = (output, context) => {
6047
6049
  CreationDateTime: output.CreationDateTime != null
6048
6050
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationDateTime)))
6049
6051
  : undefined,
6052
+ DeletionProtectionEnabled: __expectBoolean(output.DeletionProtectionEnabled),
6050
6053
  GlobalSecondaryIndexes: output.GlobalSecondaryIndexes != null
6051
6054
  ? deserializeAws_json1_0GlobalSecondaryIndexDescriptionList(output.GlobalSecondaryIndexes, context)
6052
6055
  : undefined,