@aws-sdk/client-dynamodb 3.533.0 → 3.538.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 (134) hide show
  1. package/README.md +24 -0
  2. package/dist-cjs/index.js +148 -0
  3. package/dist-es/DynamoDB.js +6 -0
  4. package/dist-es/commands/DeleteResourcePolicyCommand.js +24 -0
  5. package/dist-es/commands/GetResourcePolicyCommand.js +24 -0
  6. package/dist-es/commands/PutResourcePolicyCommand.js +24 -0
  7. package/dist-es/commands/index.js +3 -0
  8. package/dist-es/models/models_0.js +12 -0
  9. package/dist-es/protocols/Aws_json1_0.js +70 -1
  10. package/dist-types/DynamoDB.d.ts +30 -1
  11. package/dist-types/DynamoDBClient.d.ts +6 -3
  12. package/dist-types/commands/BatchExecuteStatementCommand.d.ts +2 -1
  13. package/dist-types/commands/BatchGetItemCommand.d.ts +2 -1
  14. package/dist-types/commands/BatchWriteItemCommand.d.ts +2 -1
  15. package/dist-types/commands/CreateBackupCommand.d.ts +2 -1
  16. package/dist-types/commands/CreateGlobalTableCommand.d.ts +2 -1
  17. package/dist-types/commands/CreateTableCommand.d.ts +3 -1
  18. package/dist-types/commands/DeleteBackupCommand.d.ts +2 -1
  19. package/dist-types/commands/DeleteItemCommand.d.ts +2 -1
  20. package/dist-types/commands/DeleteResourcePolicyCommand.d.ts +104 -0
  21. package/dist-types/commands/DeleteTableCommand.d.ts +2 -1
  22. package/dist-types/commands/DescribeBackupCommand.d.ts +2 -1
  23. package/dist-types/commands/DescribeContinuousBackupsCommand.d.ts +2 -1
  24. package/dist-types/commands/DescribeContributorInsightsCommand.d.ts +2 -1
  25. package/dist-types/commands/DescribeEndpointsCommand.d.ts +2 -1
  26. package/dist-types/commands/DescribeExportCommand.d.ts +2 -1
  27. package/dist-types/commands/DescribeGlobalTableCommand.d.ts +2 -1
  28. package/dist-types/commands/DescribeGlobalTableSettingsCommand.d.ts +2 -1
  29. package/dist-types/commands/DescribeImportCommand.d.ts +2 -1
  30. package/dist-types/commands/DescribeKinesisStreamingDestinationCommand.d.ts +2 -1
  31. package/dist-types/commands/DescribeLimitsCommand.d.ts +2 -1
  32. package/dist-types/commands/DescribeTableCommand.d.ts +2 -1
  33. package/dist-types/commands/DescribeTableReplicaAutoScalingCommand.d.ts +2 -1
  34. package/dist-types/commands/DescribeTimeToLiveCommand.d.ts +2 -1
  35. package/dist-types/commands/DisableKinesisStreamingDestinationCommand.d.ts +2 -1
  36. package/dist-types/commands/EnableKinesisStreamingDestinationCommand.d.ts +2 -1
  37. package/dist-types/commands/ExecuteStatementCommand.d.ts +2 -1
  38. package/dist-types/commands/ExecuteTransactionCommand.d.ts +2 -1
  39. package/dist-types/commands/ExportTableToPointInTimeCommand.d.ts +2 -1
  40. package/dist-types/commands/GetItemCommand.d.ts +2 -1
  41. package/dist-types/commands/GetResourcePolicyCommand.d.ts +90 -0
  42. package/dist-types/commands/ImportTableCommand.d.ts +2 -1
  43. package/dist-types/commands/ListBackupsCommand.d.ts +2 -1
  44. package/dist-types/commands/ListContributorInsightsCommand.d.ts +2 -1
  45. package/dist-types/commands/ListExportsCommand.d.ts +2 -1
  46. package/dist-types/commands/ListGlobalTablesCommand.d.ts +2 -1
  47. package/dist-types/commands/ListImportsCommand.d.ts +2 -1
  48. package/dist-types/commands/ListTablesCommand.d.ts +2 -1
  49. package/dist-types/commands/ListTagsOfResourceCommand.d.ts +2 -1
  50. package/dist-types/commands/PutItemCommand.d.ts +2 -1
  51. package/dist-types/commands/PutResourcePolicyCommand.d.ts +104 -0
  52. package/dist-types/commands/QueryCommand.d.ts +2 -1
  53. package/dist-types/commands/RestoreTableFromBackupCommand.d.ts +2 -1
  54. package/dist-types/commands/RestoreTableToPointInTimeCommand.d.ts +2 -1
  55. package/dist-types/commands/ScanCommand.d.ts +2 -1
  56. package/dist-types/commands/TagResourceCommand.d.ts +2 -1
  57. package/dist-types/commands/TransactGetItemsCommand.d.ts +2 -1
  58. package/dist-types/commands/TransactWriteItemsCommand.d.ts +2 -1
  59. package/dist-types/commands/UntagResourceCommand.d.ts +2 -1
  60. package/dist-types/commands/UpdateContinuousBackupsCommand.d.ts +2 -1
  61. package/dist-types/commands/UpdateContributorInsightsCommand.d.ts +2 -1
  62. package/dist-types/commands/UpdateGlobalTableCommand.d.ts +2 -1
  63. package/dist-types/commands/UpdateGlobalTableSettingsCommand.d.ts +2 -1
  64. package/dist-types/commands/UpdateItemCommand.d.ts +2 -1
  65. package/dist-types/commands/UpdateKinesisStreamingDestinationCommand.d.ts +2 -1
  66. package/dist-types/commands/UpdateTableCommand.d.ts +7 -9
  67. package/dist-types/commands/UpdateTableReplicaAutoScalingCommand.d.ts +2 -1
  68. package/dist-types/commands/UpdateTimeToLiveCommand.d.ts +2 -1
  69. package/dist-types/commands/index.d.ts +3 -0
  70. package/dist-types/models/models_0.d.ts +1026 -915
  71. package/dist-types/protocols/Aws_json1_0.d.ts +27 -0
  72. package/dist-types/ts3.4/DynamoDB.d.ts +59 -0
  73. package/dist-types/ts3.4/DynamoDBClient.d.ts +18 -0
  74. package/dist-types/ts3.4/commands/BatchExecuteStatementCommand.d.ts +9 -0
  75. package/dist-types/ts3.4/commands/BatchGetItemCommand.d.ts +9 -0
  76. package/dist-types/ts3.4/commands/BatchWriteItemCommand.d.ts +9 -0
  77. package/dist-types/ts3.4/commands/CreateBackupCommand.d.ts +9 -0
  78. package/dist-types/ts3.4/commands/CreateGlobalTableCommand.d.ts +9 -0
  79. package/dist-types/ts3.4/commands/CreateTableCommand.d.ts +9 -0
  80. package/dist-types/ts3.4/commands/DeleteBackupCommand.d.ts +9 -0
  81. package/dist-types/ts3.4/commands/DeleteItemCommand.d.ts +9 -0
  82. package/dist-types/ts3.4/commands/DeleteResourcePolicyCommand.d.ts +39 -0
  83. package/dist-types/ts3.4/commands/DeleteTableCommand.d.ts +9 -0
  84. package/dist-types/ts3.4/commands/DescribeBackupCommand.d.ts +9 -0
  85. package/dist-types/ts3.4/commands/DescribeContinuousBackupsCommand.d.ts +9 -0
  86. package/dist-types/ts3.4/commands/DescribeContributorInsightsCommand.d.ts +9 -0
  87. package/dist-types/ts3.4/commands/DescribeEndpointsCommand.d.ts +9 -0
  88. package/dist-types/ts3.4/commands/DescribeExportCommand.d.ts +9 -0
  89. package/dist-types/ts3.4/commands/DescribeGlobalTableCommand.d.ts +9 -0
  90. package/dist-types/ts3.4/commands/DescribeGlobalTableSettingsCommand.d.ts +9 -0
  91. package/dist-types/ts3.4/commands/DescribeImportCommand.d.ts +9 -0
  92. package/dist-types/ts3.4/commands/DescribeKinesisStreamingDestinationCommand.d.ts +9 -0
  93. package/dist-types/ts3.4/commands/DescribeLimitsCommand.d.ts +9 -0
  94. package/dist-types/ts3.4/commands/DescribeTableCommand.d.ts +9 -0
  95. package/dist-types/ts3.4/commands/DescribeTableReplicaAutoScalingCommand.d.ts +9 -0
  96. package/dist-types/ts3.4/commands/DescribeTimeToLiveCommand.d.ts +9 -0
  97. package/dist-types/ts3.4/commands/DisableKinesisStreamingDestinationCommand.d.ts +9 -0
  98. package/dist-types/ts3.4/commands/EnableKinesisStreamingDestinationCommand.d.ts +9 -0
  99. package/dist-types/ts3.4/commands/ExecuteStatementCommand.d.ts +9 -0
  100. package/dist-types/ts3.4/commands/ExecuteTransactionCommand.d.ts +9 -0
  101. package/dist-types/ts3.4/commands/ExportTableToPointInTimeCommand.d.ts +9 -0
  102. package/dist-types/ts3.4/commands/GetItemCommand.d.ts +7 -0
  103. package/dist-types/ts3.4/commands/GetResourcePolicyCommand.d.ts +38 -0
  104. package/dist-types/ts3.4/commands/ImportTableCommand.d.ts +9 -0
  105. package/dist-types/ts3.4/commands/ListBackupsCommand.d.ts +9 -0
  106. package/dist-types/ts3.4/commands/ListContributorInsightsCommand.d.ts +9 -0
  107. package/dist-types/ts3.4/commands/ListExportsCommand.d.ts +9 -0
  108. package/dist-types/ts3.4/commands/ListGlobalTablesCommand.d.ts +9 -0
  109. package/dist-types/ts3.4/commands/ListImportsCommand.d.ts +9 -0
  110. package/dist-types/ts3.4/commands/ListTablesCommand.d.ts +9 -0
  111. package/dist-types/ts3.4/commands/ListTagsOfResourceCommand.d.ts +9 -0
  112. package/dist-types/ts3.4/commands/PutItemCommand.d.ts +7 -0
  113. package/dist-types/ts3.4/commands/PutResourcePolicyCommand.d.ts +38 -0
  114. package/dist-types/ts3.4/commands/QueryCommand.d.ts +7 -0
  115. package/dist-types/ts3.4/commands/RestoreTableFromBackupCommand.d.ts +9 -0
  116. package/dist-types/ts3.4/commands/RestoreTableToPointInTimeCommand.d.ts +9 -0
  117. package/dist-types/ts3.4/commands/ScanCommand.d.ts +7 -0
  118. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +9 -0
  119. package/dist-types/ts3.4/commands/TransactGetItemsCommand.d.ts +9 -0
  120. package/dist-types/ts3.4/commands/TransactWriteItemsCommand.d.ts +9 -0
  121. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +9 -0
  122. package/dist-types/ts3.4/commands/UpdateContinuousBackupsCommand.d.ts +9 -0
  123. package/dist-types/ts3.4/commands/UpdateContributorInsightsCommand.d.ts +9 -0
  124. package/dist-types/ts3.4/commands/UpdateGlobalTableCommand.d.ts +9 -0
  125. package/dist-types/ts3.4/commands/UpdateGlobalTableSettingsCommand.d.ts +9 -0
  126. package/dist-types/ts3.4/commands/UpdateItemCommand.d.ts +9 -0
  127. package/dist-types/ts3.4/commands/UpdateKinesisStreamingDestinationCommand.d.ts +9 -0
  128. package/dist-types/ts3.4/commands/UpdateTableCommand.d.ts +9 -0
  129. package/dist-types/ts3.4/commands/UpdateTableReplicaAutoScalingCommand.d.ts +9 -0
  130. package/dist-types/ts3.4/commands/UpdateTimeToLiveCommand.d.ts +9 -0
  131. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  132. package/dist-types/ts3.4/models/models_0.d.ts +31 -0
  133. package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +36 -0
  134. package/package.json +42 -42
package/README.md CHANGED
@@ -283,6 +283,14 @@ DeleteItem
283
283
 
284
284
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/dynamodb/command/DeleteItemCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-dynamodb/Interface/DeleteItemCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-dynamodb/Interface/DeleteItemCommandOutput/)
285
285
 
286
+ </details>
287
+ <details>
288
+ <summary>
289
+ DeleteResourcePolicy
290
+ </summary>
291
+
292
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/dynamodb/command/DeleteResourcePolicyCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-dynamodb/Interface/DeleteResourcePolicyCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-dynamodb/Interface/DeleteResourcePolicyCommandOutput/)
293
+
286
294
  </details>
287
295
  <details>
288
296
  <summary>
@@ -443,6 +451,14 @@ GetItem
443
451
 
444
452
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/dynamodb/command/GetItemCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-dynamodb/Interface/GetItemCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-dynamodb/Interface/GetItemCommandOutput/)
445
453
 
454
+ </details>
455
+ <details>
456
+ <summary>
457
+ GetResourcePolicy
458
+ </summary>
459
+
460
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/dynamodb/command/GetResourcePolicyCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-dynamodb/Interface/GetResourcePolicyCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-dynamodb/Interface/GetResourcePolicyCommandOutput/)
461
+
446
462
  </details>
447
463
  <details>
448
464
  <summary>
@@ -515,6 +531,14 @@ PutItem
515
531
 
516
532
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/dynamodb/command/PutItemCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-dynamodb/Interface/PutItemCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-dynamodb/Interface/PutItemCommandOutput/)
517
533
 
534
+ </details>
535
+ <details>
536
+ <summary>
537
+ PutResourcePolicy
538
+ </summary>
539
+
540
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/dynamodb/command/PutResourcePolicyCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-dynamodb/Interface/PutResourcePolicyCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-dynamodb/Interface/PutResourcePolicyCommandOutput/)
541
+
518
542
  </details>
519
543
  <details>
520
544
  <summary>
package/dist-cjs/index.js CHANGED
@@ -46,6 +46,7 @@ __export(src_exports, {
46
46
  CreateTableCommand: () => CreateTableCommand,
47
47
  DeleteBackupCommand: () => DeleteBackupCommand,
48
48
  DeleteItemCommand: () => DeleteItemCommand,
49
+ DeleteResourcePolicyCommand: () => DeleteResourcePolicyCommand,
49
50
  DeleteTableCommand: () => DeleteTableCommand,
50
51
  DescribeBackupCommand: () => DescribeBackupCommand,
51
52
  DescribeContinuousBackupsCommand: () => DescribeContinuousBackupsCommand,
@@ -77,6 +78,7 @@ __export(src_exports, {
77
78
  ExportType: () => ExportType,
78
79
  ExportViewType: () => ExportViewType,
79
80
  GetItemCommand: () => GetItemCommand,
81
+ GetResourcePolicyCommand: () => GetResourcePolicyCommand,
80
82
  GlobalTableAlreadyExistsException: () => GlobalTableAlreadyExistsException,
81
83
  GlobalTableNotFoundException: () => GlobalTableNotFoundException,
82
84
  GlobalTableStatus: () => GlobalTableStatus,
@@ -105,9 +107,11 @@ __export(src_exports, {
105
107
  ListTagsOfResourceCommand: () => ListTagsOfResourceCommand,
106
108
  PointInTimeRecoveryStatus: () => PointInTimeRecoveryStatus,
107
109
  PointInTimeRecoveryUnavailableException: () => PointInTimeRecoveryUnavailableException,
110
+ PolicyNotFoundException: () => PolicyNotFoundException,
108
111
  ProjectionType: () => ProjectionType,
109
112
  ProvisionedThroughputExceededException: () => ProvisionedThroughputExceededException,
110
113
  PutItemCommand: () => PutItemCommand,
114
+ PutResourcePolicyCommand: () => PutResourcePolicyCommand,
111
115
  QueryCommand: () => QueryCommand,
112
116
  ReplicaAlreadyExistsException: () => ReplicaAlreadyExistsException,
113
117
  ReplicaNotFoundException: () => ReplicaNotFoundException,
@@ -648,6 +652,23 @@ var _TransactionConflictException = class _TransactionConflictException extends
648
652
  };
649
653
  __name(_TransactionConflictException, "TransactionConflictException");
650
654
  var TransactionConflictException = _TransactionConflictException;
655
+ var _PolicyNotFoundException = class _PolicyNotFoundException extends DynamoDBServiceException {
656
+ /**
657
+ * @internal
658
+ */
659
+ constructor(opts) {
660
+ super({
661
+ name: "PolicyNotFoundException",
662
+ $fault: "client",
663
+ ...opts
664
+ });
665
+ this.name = "PolicyNotFoundException";
666
+ this.$fault = "client";
667
+ Object.setPrototypeOf(this, _PolicyNotFoundException.prototype);
668
+ }
669
+ };
670
+ __name(_PolicyNotFoundException, "PolicyNotFoundException");
671
+ var PolicyNotFoundException = _PolicyNotFoundException;
651
672
  var ExportFormat = {
652
673
  DYNAMODB_JSON: "DYNAMODB_JSON",
653
674
  ION: "ION"
@@ -1070,6 +1091,12 @@ var se_DeleteItemCommand = /* @__PURE__ */ __name(async (input, context) => {
1070
1091
  body = JSON.stringify(se_DeleteItemInput(input, context));
1071
1092
  return buildHttpRpcRequest(context, headers, "/", void 0, body);
1072
1093
  }, "se_DeleteItemCommand");
1094
+ var se_DeleteResourcePolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
1095
+ const headers = sharedHeaders("DeleteResourcePolicy");
1096
+ let body;
1097
+ body = JSON.stringify((0, import_smithy_client._json)(input));
1098
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
1099
+ }, "se_DeleteResourcePolicyCommand");
1073
1100
  var se_DeleteTableCommand = /* @__PURE__ */ __name(async (input, context) => {
1074
1101
  const headers = sharedHeaders("DeleteTable");
1075
1102
  let body;
@@ -1190,6 +1217,12 @@ var se_GetItemCommand = /* @__PURE__ */ __name(async (input, context) => {
1190
1217
  body = JSON.stringify(se_GetItemInput(input, context));
1191
1218
  return buildHttpRpcRequest(context, headers, "/", void 0, body);
1192
1219
  }, "se_GetItemCommand");
1220
+ var se_GetResourcePolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
1221
+ const headers = sharedHeaders("GetResourcePolicy");
1222
+ let body;
1223
+ body = JSON.stringify((0, import_smithy_client._json)(input));
1224
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
1225
+ }, "se_GetResourcePolicyCommand");
1193
1226
  var se_ImportTableCommand = /* @__PURE__ */ __name(async (input, context) => {
1194
1227
  const headers = sharedHeaders("ImportTable");
1195
1228
  let body;
@@ -1244,6 +1277,12 @@ var se_PutItemCommand = /* @__PURE__ */ __name(async (input, context) => {
1244
1277
  body = JSON.stringify(se_PutItemInput(input, context));
1245
1278
  return buildHttpRpcRequest(context, headers, "/", void 0, body);
1246
1279
  }, "se_PutItemCommand");
1280
+ var se_PutResourcePolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
1281
+ const headers = sharedHeaders("PutResourcePolicy");
1282
+ let body;
1283
+ body = JSON.stringify((0, import_smithy_client._json)(input));
1284
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
1285
+ }, "se_PutResourcePolicyCommand");
1247
1286
  var se_QueryCommand = /* @__PURE__ */ __name(async (input, context) => {
1248
1287
  const headers = sharedHeaders("Query");
1249
1288
  let body;
@@ -1450,6 +1489,19 @@ var de_DeleteItemCommand = /* @__PURE__ */ __name(async (output, context) => {
1450
1489
  };
1451
1490
  return response;
1452
1491
  }, "de_DeleteItemCommand");
1492
+ var de_DeleteResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
1493
+ if (output.statusCode >= 300) {
1494
+ return de_CommandError(output, context);
1495
+ }
1496
+ const data = await (0, import_core.parseJsonBody)(output.body, context);
1497
+ let contents = {};
1498
+ contents = (0, import_smithy_client._json)(data);
1499
+ const response = {
1500
+ $metadata: deserializeMetadata(output),
1501
+ ...contents
1502
+ };
1503
+ return response;
1504
+ }, "de_DeleteResourcePolicyCommand");
1453
1505
  var de_DeleteTableCommand = /* @__PURE__ */ __name(async (output, context) => {
1454
1506
  if (output.statusCode >= 300) {
1455
1507
  return de_CommandError(output, context);
@@ -1710,6 +1762,19 @@ var de_GetItemCommand = /* @__PURE__ */ __name(async (output, context) => {
1710
1762
  };
1711
1763
  return response;
1712
1764
  }, "de_GetItemCommand");
1765
+ var de_GetResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
1766
+ if (output.statusCode >= 300) {
1767
+ return de_CommandError(output, context);
1768
+ }
1769
+ const data = await (0, import_core.parseJsonBody)(output.body, context);
1770
+ let contents = {};
1771
+ contents = (0, import_smithy_client._json)(data);
1772
+ const response = {
1773
+ $metadata: deserializeMetadata(output),
1774
+ ...contents
1775
+ };
1776
+ return response;
1777
+ }, "de_GetResourcePolicyCommand");
1713
1778
  var de_ImportTableCommand = /* @__PURE__ */ __name(async (output, context) => {
1714
1779
  if (output.statusCode >= 300) {
1715
1780
  return de_CommandError(output, context);
@@ -1827,6 +1892,19 @@ var de_PutItemCommand = /* @__PURE__ */ __name(async (output, context) => {
1827
1892
  };
1828
1893
  return response;
1829
1894
  }, "de_PutItemCommand");
1895
+ var de_PutResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
1896
+ if (output.statusCode >= 300) {
1897
+ return de_CommandError(output, context);
1898
+ }
1899
+ const data = await (0, import_core.parseJsonBody)(output.body, context);
1900
+ let contents = {};
1901
+ contents = (0, import_smithy_client._json)(data);
1902
+ const response = {
1903
+ $metadata: deserializeMetadata(output),
1904
+ ...contents
1905
+ };
1906
+ return response;
1907
+ }, "de_PutResourcePolicyCommand");
1830
1908
  var de_QueryCommand = /* @__PURE__ */ __name(async (output, context) => {
1831
1909
  if (output.statusCode >= 300) {
1832
1910
  return de_CommandError(output, context);
@@ -2097,6 +2175,9 @@ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
2097
2175
  case "TransactionConflictException":
2098
2176
  case "com.amazonaws.dynamodb#TransactionConflictException":
2099
2177
  throw await de_TransactionConflictExceptionRes(parsedOutput, context);
2178
+ case "PolicyNotFoundException":
2179
+ case "com.amazonaws.dynamodb#PolicyNotFoundException":
2180
+ throw await de_PolicyNotFoundExceptionRes(parsedOutput, context);
2100
2181
  case "ExportNotFoundException":
2101
2182
  case "com.amazonaws.dynamodb#ExportNotFoundException":
2102
2183
  throw await de_ExportNotFoundExceptionRes(parsedOutput, context);
@@ -2334,6 +2415,15 @@ var de_PointInTimeRecoveryUnavailableExceptionRes = /* @__PURE__ */ __name(async
2334
2415
  });
2335
2416
  return (0, import_smithy_client.decorateServiceException)(exception, body);
2336
2417
  }, "de_PointInTimeRecoveryUnavailableExceptionRes");
2418
+ var de_PolicyNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2419
+ const body = parsedOutput.body;
2420
+ const deserialized = (0, import_smithy_client._json)(body);
2421
+ const exception = new PolicyNotFoundException({
2422
+ $metadata: deserializeMetadata(parsedOutput),
2423
+ ...deserialized
2424
+ });
2425
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
2426
+ }, "de_PolicyNotFoundExceptionRes");
2337
2427
  var de_ProvisionedThroughputExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2338
2428
  const body = parsedOutput.body;
2339
2429
  const deserialized = (0, import_smithy_client._json)(body);
@@ -4220,6 +4310,23 @@ var _DeleteItemCommand = class _DeleteItemCommand extends import_smithy_client.C
4220
4310
  __name(_DeleteItemCommand, "DeleteItemCommand");
4221
4311
  var DeleteItemCommand = _DeleteItemCommand;
4222
4312
 
4313
+ // src/commands/DeleteResourcePolicyCommand.ts
4314
+
4315
+
4316
+
4317
+
4318
+ var _DeleteResourcePolicyCommand = class _DeleteResourcePolicyCommand extends import_smithy_client.Command.classBuilder().ep({
4319
+ ...commonParams
4320
+ }).m(function(Command, cs, config, o) {
4321
+ return [
4322
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
4323
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
4324
+ ];
4325
+ }).s("DynamoDB_20120810", "DeleteResourcePolicy", {}).n("DynamoDBClient", "DeleteResourcePolicyCommand").f(void 0, void 0).ser(se_DeleteResourcePolicyCommand).de(de_DeleteResourcePolicyCommand).build() {
4326
+ };
4327
+ __name(_DeleteResourcePolicyCommand, "DeleteResourcePolicyCommand");
4328
+ var DeleteResourcePolicyCommand = _DeleteResourcePolicyCommand;
4329
+
4223
4330
  // src/commands/DeleteTableCommand.ts
4224
4331
 
4225
4332
 
@@ -4543,6 +4650,23 @@ var _GetItemCommand = class _GetItemCommand extends import_smithy_client.Command
4543
4650
  __name(_GetItemCommand, "GetItemCommand");
4544
4651
  var GetItemCommand = _GetItemCommand;
4545
4652
 
4653
+ // src/commands/GetResourcePolicyCommand.ts
4654
+
4655
+
4656
+
4657
+
4658
+ var _GetResourcePolicyCommand = class _GetResourcePolicyCommand extends import_smithy_client.Command.classBuilder().ep({
4659
+ ...commonParams
4660
+ }).m(function(Command, cs, config, o) {
4661
+ return [
4662
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
4663
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
4664
+ ];
4665
+ }).s("DynamoDB_20120810", "GetResourcePolicy", {}).n("DynamoDBClient", "GetResourcePolicyCommand").f(void 0, void 0).ser(se_GetResourcePolicyCommand).de(de_GetResourcePolicyCommand).build() {
4666
+ };
4667
+ __name(_GetResourcePolicyCommand, "GetResourcePolicyCommand");
4668
+ var GetResourcePolicyCommand = _GetResourcePolicyCommand;
4669
+
4546
4670
  // src/commands/ImportTableCommand.ts
4547
4671
 
4548
4672
 
@@ -4696,6 +4820,23 @@ var _PutItemCommand = class _PutItemCommand extends import_smithy_client.Command
4696
4820
  __name(_PutItemCommand, "PutItemCommand");
4697
4821
  var PutItemCommand = _PutItemCommand;
4698
4822
 
4823
+ // src/commands/PutResourcePolicyCommand.ts
4824
+
4825
+
4826
+
4827
+
4828
+ var _PutResourcePolicyCommand = class _PutResourcePolicyCommand extends import_smithy_client.Command.classBuilder().ep({
4829
+ ...commonParams
4830
+ }).m(function(Command, cs, config, o) {
4831
+ return [
4832
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
4833
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
4834
+ ];
4835
+ }).s("DynamoDB_20120810", "PutResourcePolicy", {}).n("DynamoDBClient", "PutResourcePolicyCommand").f(void 0, void 0).ser(se_PutResourcePolicyCommand).de(de_PutResourcePolicyCommand).build() {
4836
+ };
4837
+ __name(_PutResourcePolicyCommand, "PutResourcePolicyCommand");
4838
+ var PutResourcePolicyCommand = _PutResourcePolicyCommand;
4839
+
4699
4840
  // src/commands/QueryCommand.ts
4700
4841
 
4701
4842
 
@@ -4995,6 +5136,7 @@ var commands = {
4995
5136
  CreateTableCommand,
4996
5137
  DeleteBackupCommand,
4997
5138
  DeleteItemCommand,
5139
+ DeleteResourcePolicyCommand,
4998
5140
  DeleteTableCommand,
4999
5141
  DescribeBackupCommand,
5000
5142
  DescribeContinuousBackupsCommand,
@@ -5015,6 +5157,7 @@ var commands = {
5015
5157
  ExecuteTransactionCommand,
5016
5158
  ExportTableToPointInTimeCommand,
5017
5159
  GetItemCommand,
5160
+ GetResourcePolicyCommand,
5018
5161
  ImportTableCommand,
5019
5162
  ListBackupsCommand,
5020
5163
  ListContributorInsightsCommand,
@@ -5024,6 +5167,7 @@ var commands = {
5024
5167
  ListTablesCommand,
5025
5168
  ListTagsOfResourceCommand,
5026
5169
  PutItemCommand,
5170
+ PutResourcePolicyCommand,
5027
5171
  QueryCommand,
5028
5172
  RestoreTableFromBackupCommand,
5029
5173
  RestoreTableToPointInTimeCommand,
@@ -5149,6 +5293,7 @@ var import_util_endpoints = require("@aws-sdk/util-endpoints");
5149
5293
  CreateTableCommand,
5150
5294
  DeleteBackupCommand,
5151
5295
  DeleteItemCommand,
5296
+ DeleteResourcePolicyCommand,
5152
5297
  DeleteTableCommand,
5153
5298
  DescribeBackupCommand,
5154
5299
  DescribeContinuousBackupsCommand,
@@ -5169,6 +5314,7 @@ var import_util_endpoints = require("@aws-sdk/util-endpoints");
5169
5314
  ExecuteTransactionCommand,
5170
5315
  ExportTableToPointInTimeCommand,
5171
5316
  GetItemCommand,
5317
+ GetResourcePolicyCommand,
5172
5318
  ImportTableCommand,
5173
5319
  ListBackupsCommand,
5174
5320
  ListContributorInsightsCommand,
@@ -5178,6 +5324,7 @@ var import_util_endpoints = require("@aws-sdk/util-endpoints");
5178
5324
  ListTablesCommand,
5179
5325
  ListTagsOfResourceCommand,
5180
5326
  PutItemCommand,
5327
+ PutResourcePolicyCommand,
5181
5328
  QueryCommand,
5182
5329
  RestoreTableFromBackupCommand,
5183
5330
  RestoreTableToPointInTimeCommand,
@@ -5249,6 +5396,7 @@ var import_util_endpoints = require("@aws-sdk/util-endpoints");
5249
5396
  ResourceInUseException,
5250
5397
  ReturnValue,
5251
5398
  TransactionConflictException,
5399
+ PolicyNotFoundException,
5252
5400
  ExportFormat,
5253
5401
  ExportStatus,
5254
5402
  ExportType,
@@ -7,6 +7,7 @@ import { CreateGlobalTableCommand, } from "./commands/CreateGlobalTableCommand";
7
7
  import { CreateTableCommand } from "./commands/CreateTableCommand";
8
8
  import { DeleteBackupCommand, } from "./commands/DeleteBackupCommand";
9
9
  import { DeleteItemCommand } from "./commands/DeleteItemCommand";
10
+ import { DeleteResourcePolicyCommand, } from "./commands/DeleteResourcePolicyCommand";
10
11
  import { DeleteTableCommand } from "./commands/DeleteTableCommand";
11
12
  import { DescribeBackupCommand, } from "./commands/DescribeBackupCommand";
12
13
  import { DescribeContinuousBackupsCommand, } from "./commands/DescribeContinuousBackupsCommand";
@@ -27,6 +28,7 @@ import { ExecuteStatementCommand, } from "./commands/ExecuteStatementCommand";
27
28
  import { ExecuteTransactionCommand, } from "./commands/ExecuteTransactionCommand";
28
29
  import { ExportTableToPointInTimeCommand, } from "./commands/ExportTableToPointInTimeCommand";
29
30
  import { GetItemCommand } from "./commands/GetItemCommand";
31
+ import { GetResourcePolicyCommand, } from "./commands/GetResourcePolicyCommand";
30
32
  import { ImportTableCommand } from "./commands/ImportTableCommand";
31
33
  import { ListBackupsCommand } from "./commands/ListBackupsCommand";
32
34
  import { ListContributorInsightsCommand, } from "./commands/ListContributorInsightsCommand";
@@ -36,6 +38,7 @@ import { ListImportsCommand } from "./commands/ListImportsCommand";
36
38
  import { ListTablesCommand } from "./commands/ListTablesCommand";
37
39
  import { ListTagsOfResourceCommand, } from "./commands/ListTagsOfResourceCommand";
38
40
  import { PutItemCommand } from "./commands/PutItemCommand";
41
+ import { PutResourcePolicyCommand, } from "./commands/PutResourcePolicyCommand";
39
42
  import { QueryCommand } from "./commands/QueryCommand";
40
43
  import { RestoreTableFromBackupCommand, } from "./commands/RestoreTableFromBackupCommand";
41
44
  import { RestoreTableToPointInTimeCommand, } from "./commands/RestoreTableToPointInTimeCommand";
@@ -63,6 +66,7 @@ const commands = {
63
66
  CreateTableCommand,
64
67
  DeleteBackupCommand,
65
68
  DeleteItemCommand,
69
+ DeleteResourcePolicyCommand,
66
70
  DeleteTableCommand,
67
71
  DescribeBackupCommand,
68
72
  DescribeContinuousBackupsCommand,
@@ -83,6 +87,7 @@ const commands = {
83
87
  ExecuteTransactionCommand,
84
88
  ExportTableToPointInTimeCommand,
85
89
  GetItemCommand,
90
+ GetResourcePolicyCommand,
86
91
  ImportTableCommand,
87
92
  ListBackupsCommand,
88
93
  ListContributorInsightsCommand,
@@ -92,6 +97,7 @@ const commands = {
92
97
  ListTablesCommand,
93
98
  ListTagsOfResourceCommand,
94
99
  PutItemCommand,
100
+ PutResourcePolicyCommand,
95
101
  QueryCommand,
96
102
  RestoreTableFromBackupCommand,
97
103
  RestoreTableToPointInTimeCommand,
@@ -0,0 +1,24 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_DeleteResourcePolicyCommand, se_DeleteResourcePolicyCommand } from "../protocols/Aws_json1_0";
6
+ export { $Command };
7
+ export class DeleteResourcePolicyCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("DynamoDB_20120810", "DeleteResourcePolicy", {})
19
+ .n("DynamoDBClient", "DeleteResourcePolicyCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_DeleteResourcePolicyCommand)
22
+ .de(de_DeleteResourcePolicyCommand)
23
+ .build() {
24
+ }
@@ -0,0 +1,24 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_GetResourcePolicyCommand, se_GetResourcePolicyCommand } from "../protocols/Aws_json1_0";
6
+ export { $Command };
7
+ export class GetResourcePolicyCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("DynamoDB_20120810", "GetResourcePolicy", {})
19
+ .n("DynamoDBClient", "GetResourcePolicyCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_GetResourcePolicyCommand)
22
+ .de(de_GetResourcePolicyCommand)
23
+ .build() {
24
+ }
@@ -0,0 +1,24 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_PutResourcePolicyCommand, se_PutResourcePolicyCommand } from "../protocols/Aws_json1_0";
6
+ export { $Command };
7
+ export class PutResourcePolicyCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("DynamoDB_20120810", "PutResourcePolicy", {})
19
+ .n("DynamoDBClient", "PutResourcePolicyCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_PutResourcePolicyCommand)
22
+ .de(de_PutResourcePolicyCommand)
23
+ .build() {
24
+ }
@@ -6,6 +6,7 @@ export * from "./CreateGlobalTableCommand";
6
6
  export * from "./CreateTableCommand";
7
7
  export * from "./DeleteBackupCommand";
8
8
  export * from "./DeleteItemCommand";
9
+ export * from "./DeleteResourcePolicyCommand";
9
10
  export * from "./DeleteTableCommand";
10
11
  export * from "./DescribeBackupCommand";
11
12
  export * from "./DescribeContinuousBackupsCommand";
@@ -26,6 +27,7 @@ export * from "./ExecuteStatementCommand";
26
27
  export * from "./ExecuteTransactionCommand";
27
28
  export * from "./ExportTableToPointInTimeCommand";
28
29
  export * from "./GetItemCommand";
30
+ export * from "./GetResourcePolicyCommand";
29
31
  export * from "./ImportTableCommand";
30
32
  export * from "./ListBackupsCommand";
31
33
  export * from "./ListContributorInsightsCommand";
@@ -35,6 +37,7 @@ export * from "./ListImportsCommand";
35
37
  export * from "./ListTablesCommand";
36
38
  export * from "./ListTagsOfResourceCommand";
37
39
  export * from "./PutItemCommand";
40
+ export * from "./PutResourcePolicyCommand";
38
41
  export * from "./QueryCommand";
39
42
  export * from "./RestoreTableFromBackupCommand";
40
43
  export * from "./RestoreTableToPointInTimeCommand";
@@ -351,6 +351,18 @@ export class TransactionConflictException extends __BaseException {
351
351
  Object.setPrototypeOf(this, TransactionConflictException.prototype);
352
352
  }
353
353
  }
354
+ export class PolicyNotFoundException extends __BaseException {
355
+ constructor(opts) {
356
+ super({
357
+ name: "PolicyNotFoundException",
358
+ $fault: "client",
359
+ ...opts,
360
+ });
361
+ this.name = "PolicyNotFoundException";
362
+ this.$fault = "client";
363
+ Object.setPrototypeOf(this, PolicyNotFoundException.prototype);
364
+ }
365
+ }
354
366
  export const ExportFormat = {
355
367
  DYNAMODB_JSON: "DYNAMODB_JSON",
356
368
  ION: "ION",
@@ -3,7 +3,7 @@ import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
3
3
  import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, limitedParseDouble as __limitedParseDouble, parseEpochTimestamp as __parseEpochTimestamp, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
4
4
  import { v4 as generateIdempotencyToken } from "uuid";
5
5
  import { DynamoDBServiceException as __BaseException } from "../models/DynamoDBServiceException";
6
- import { AttributeValue, BackupInUseException, BackupNotFoundException, ConditionalCheckFailedException, ContinuousBackupsUnavailableException, DuplicateItemException, ExportConflictException, ExportNotFoundException, GlobalTableAlreadyExistsException, GlobalTableNotFoundException, IdempotentParameterMismatchException, ImportConflictException, ImportNotFoundException, IndexNotFoundException, InternalServerError, InvalidEndpointException, InvalidExportTimeException, InvalidRestoreTimeException, ItemCollectionSizeLimitExceededException, LimitExceededException, PointInTimeRecoveryUnavailableException, ProvisionedThroughputExceededException, ReplicaAlreadyExistsException, ReplicaNotFoundException, RequestLimitExceeded, ResourceInUseException, ResourceNotFoundException, TableAlreadyExistsException, TableInUseException, TableNotFoundException, TransactionCanceledException, TransactionConflictException, TransactionInProgressException, } from "../models/models_0";
6
+ import { AttributeValue, BackupInUseException, BackupNotFoundException, ConditionalCheckFailedException, ContinuousBackupsUnavailableException, DuplicateItemException, ExportConflictException, ExportNotFoundException, GlobalTableAlreadyExistsException, GlobalTableNotFoundException, IdempotentParameterMismatchException, ImportConflictException, ImportNotFoundException, IndexNotFoundException, InternalServerError, InvalidEndpointException, InvalidExportTimeException, InvalidRestoreTimeException, ItemCollectionSizeLimitExceededException, LimitExceededException, PointInTimeRecoveryUnavailableException, PolicyNotFoundException, ProvisionedThroughputExceededException, ReplicaAlreadyExistsException, ReplicaNotFoundException, RequestLimitExceeded, ResourceInUseException, ResourceNotFoundException, TableAlreadyExistsException, TableInUseException, TableNotFoundException, TransactionCanceledException, TransactionConflictException, TransactionInProgressException, } from "../models/models_0";
7
7
  export const se_BatchExecuteStatementCommand = async (input, context) => {
8
8
  const headers = sharedHeaders("BatchExecuteStatement");
9
9
  let body;
@@ -52,6 +52,12 @@ export const se_DeleteItemCommand = async (input, context) => {
52
52
  body = JSON.stringify(se_DeleteItemInput(input, context));
53
53
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
54
54
  };
55
+ export const se_DeleteResourcePolicyCommand = async (input, context) => {
56
+ const headers = sharedHeaders("DeleteResourcePolicy");
57
+ let body;
58
+ body = JSON.stringify(_json(input));
59
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
60
+ };
55
61
  export const se_DeleteTableCommand = async (input, context) => {
56
62
  const headers = sharedHeaders("DeleteTable");
57
63
  let body;
@@ -172,6 +178,12 @@ export const se_GetItemCommand = async (input, context) => {
172
178
  body = JSON.stringify(se_GetItemInput(input, context));
173
179
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
174
180
  };
181
+ export const se_GetResourcePolicyCommand = async (input, context) => {
182
+ const headers = sharedHeaders("GetResourcePolicy");
183
+ let body;
184
+ body = JSON.stringify(_json(input));
185
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
186
+ };
175
187
  export const se_ImportTableCommand = async (input, context) => {
176
188
  const headers = sharedHeaders("ImportTable");
177
189
  let body;
@@ -226,6 +238,12 @@ export const se_PutItemCommand = async (input, context) => {
226
238
  body = JSON.stringify(se_PutItemInput(input, context));
227
239
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
228
240
  };
241
+ export const se_PutResourcePolicyCommand = async (input, context) => {
242
+ const headers = sharedHeaders("PutResourcePolicy");
243
+ let body;
244
+ body = JSON.stringify(_json(input));
245
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
246
+ };
229
247
  export const se_QueryCommand = async (input, context) => {
230
248
  const headers = sharedHeaders("Query");
231
249
  let body;
@@ -432,6 +450,19 @@ export const de_DeleteItemCommand = async (output, context) => {
432
450
  };
433
451
  return response;
434
452
  };
453
+ export const de_DeleteResourcePolicyCommand = async (output, context) => {
454
+ if (output.statusCode >= 300) {
455
+ return de_CommandError(output, context);
456
+ }
457
+ const data = await parseBody(output.body, context);
458
+ let contents = {};
459
+ contents = _json(data);
460
+ const response = {
461
+ $metadata: deserializeMetadata(output),
462
+ ...contents,
463
+ };
464
+ return response;
465
+ };
435
466
  export const de_DeleteTableCommand = async (output, context) => {
436
467
  if (output.statusCode >= 300) {
437
468
  return de_CommandError(output, context);
@@ -692,6 +723,19 @@ export const de_GetItemCommand = async (output, context) => {
692
723
  };
693
724
  return response;
694
725
  };
726
+ export const de_GetResourcePolicyCommand = async (output, context) => {
727
+ if (output.statusCode >= 300) {
728
+ return de_CommandError(output, context);
729
+ }
730
+ const data = await parseBody(output.body, context);
731
+ let contents = {};
732
+ contents = _json(data);
733
+ const response = {
734
+ $metadata: deserializeMetadata(output),
735
+ ...contents,
736
+ };
737
+ return response;
738
+ };
695
739
  export const de_ImportTableCommand = async (output, context) => {
696
740
  if (output.statusCode >= 300) {
697
741
  return de_CommandError(output, context);
@@ -809,6 +853,19 @@ export const de_PutItemCommand = async (output, context) => {
809
853
  };
810
854
  return response;
811
855
  };
856
+ export const de_PutResourcePolicyCommand = async (output, context) => {
857
+ if (output.statusCode >= 300) {
858
+ return de_CommandError(output, context);
859
+ }
860
+ const data = await parseBody(output.body, context);
861
+ let contents = {};
862
+ contents = _json(data);
863
+ const response = {
864
+ $metadata: deserializeMetadata(output),
865
+ ...contents,
866
+ };
867
+ return response;
868
+ };
812
869
  export const de_QueryCommand = async (output, context) => {
813
870
  if (output.statusCode >= 300) {
814
871
  return de_CommandError(output, context);
@@ -1079,6 +1136,9 @@ const de_CommandError = async (output, context) => {
1079
1136
  case "TransactionConflictException":
1080
1137
  case "com.amazonaws.dynamodb#TransactionConflictException":
1081
1138
  throw await de_TransactionConflictExceptionRes(parsedOutput, context);
1139
+ case "PolicyNotFoundException":
1140
+ case "com.amazonaws.dynamodb#PolicyNotFoundException":
1141
+ throw await de_PolicyNotFoundExceptionRes(parsedOutput, context);
1082
1142
  case "ExportNotFoundException":
1083
1143
  case "com.amazonaws.dynamodb#ExportNotFoundException":
1084
1144
  throw await de_ExportNotFoundExceptionRes(parsedOutput, context);
@@ -1316,6 +1376,15 @@ const de_PointInTimeRecoveryUnavailableExceptionRes = async (parsedOutput, conte
1316
1376
  });
1317
1377
  return __decorateServiceException(exception, body);
1318
1378
  };
1379
+ const de_PolicyNotFoundExceptionRes = async (parsedOutput, context) => {
1380
+ const body = parsedOutput.body;
1381
+ const deserialized = _json(body);
1382
+ const exception = new PolicyNotFoundException({
1383
+ $metadata: deserializeMetadata(parsedOutput),
1384
+ ...deserialized,
1385
+ });
1386
+ return __decorateServiceException(exception, body);
1387
+ };
1319
1388
  const de_ProvisionedThroughputExceededExceptionRes = async (parsedOutput, context) => {
1320
1389
  const body = parsedOutput.body;
1321
1390
  const deserialized = _json(body);