@aws-sdk/client-dynamodb 3.490.0 → 3.495.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 (78) hide show
  1. package/dist-cjs/DynamoDB.js +1 -117
  2. package/dist-cjs/DynamoDBClient.js +1 -61
  3. package/dist-cjs/auth/httpAuthExtensionConfiguration.js +1 -43
  4. package/dist-cjs/commands/BatchExecuteStatementCommand.js +1 -28
  5. package/dist-cjs/commands/BatchGetItemCommand.js +1 -28
  6. package/dist-cjs/commands/BatchWriteItemCommand.js +1 -28
  7. package/dist-cjs/commands/CreateBackupCommand.js +1 -28
  8. package/dist-cjs/commands/CreateGlobalTableCommand.js +1 -28
  9. package/dist-cjs/commands/CreateTableCommand.js +1 -28
  10. package/dist-cjs/commands/DeleteBackupCommand.js +1 -28
  11. package/dist-cjs/commands/DeleteItemCommand.js +1 -28
  12. package/dist-cjs/commands/DeleteTableCommand.js +1 -28
  13. package/dist-cjs/commands/DescribeBackupCommand.js +1 -28
  14. package/dist-cjs/commands/DescribeContinuousBackupsCommand.js +1 -28
  15. package/dist-cjs/commands/DescribeContributorInsightsCommand.js +1 -28
  16. package/dist-cjs/commands/DescribeEndpointsCommand.js +1 -28
  17. package/dist-cjs/commands/DescribeExportCommand.js +1 -28
  18. package/dist-cjs/commands/DescribeGlobalTableCommand.js +1 -28
  19. package/dist-cjs/commands/DescribeGlobalTableSettingsCommand.js +1 -28
  20. package/dist-cjs/commands/DescribeImportCommand.js +1 -28
  21. package/dist-cjs/commands/DescribeKinesisStreamingDestinationCommand.js +1 -28
  22. package/dist-cjs/commands/DescribeLimitsCommand.js +1 -28
  23. package/dist-cjs/commands/DescribeTableCommand.js +1 -28
  24. package/dist-cjs/commands/DescribeTableReplicaAutoScalingCommand.js +1 -28
  25. package/dist-cjs/commands/DescribeTimeToLiveCommand.js +1 -28
  26. package/dist-cjs/commands/DisableKinesisStreamingDestinationCommand.js +1 -28
  27. package/dist-cjs/commands/EnableKinesisStreamingDestinationCommand.js +1 -28
  28. package/dist-cjs/commands/ExecuteStatementCommand.js +1 -28
  29. package/dist-cjs/commands/ExecuteTransactionCommand.js +1 -28
  30. package/dist-cjs/commands/ExportTableToPointInTimeCommand.js +1 -28
  31. package/dist-cjs/commands/GetItemCommand.js +1 -28
  32. package/dist-cjs/commands/ImportTableCommand.js +1 -28
  33. package/dist-cjs/commands/ListBackupsCommand.js +1 -28
  34. package/dist-cjs/commands/ListContributorInsightsCommand.js +1 -28
  35. package/dist-cjs/commands/ListExportsCommand.js +1 -28
  36. package/dist-cjs/commands/ListGlobalTablesCommand.js +1 -28
  37. package/dist-cjs/commands/ListImportsCommand.js +1 -28
  38. package/dist-cjs/commands/ListTablesCommand.js +1 -28
  39. package/dist-cjs/commands/ListTagsOfResourceCommand.js +1 -28
  40. package/dist-cjs/commands/PutItemCommand.js +1 -28
  41. package/dist-cjs/commands/QueryCommand.js +1 -28
  42. package/dist-cjs/commands/RestoreTableFromBackupCommand.js +1 -28
  43. package/dist-cjs/commands/RestoreTableToPointInTimeCommand.js +1 -28
  44. package/dist-cjs/commands/ScanCommand.js +1 -28
  45. package/dist-cjs/commands/TagResourceCommand.js +1 -28
  46. package/dist-cjs/commands/TransactGetItemsCommand.js +1 -28
  47. package/dist-cjs/commands/TransactWriteItemsCommand.js +1 -28
  48. package/dist-cjs/commands/UntagResourceCommand.js +1 -28
  49. package/dist-cjs/commands/UpdateContinuousBackupsCommand.js +1 -28
  50. package/dist-cjs/commands/UpdateContributorInsightsCommand.js +1 -28
  51. package/dist-cjs/commands/UpdateGlobalTableCommand.js +1 -28
  52. package/dist-cjs/commands/UpdateGlobalTableSettingsCommand.js +1 -28
  53. package/dist-cjs/commands/UpdateItemCommand.js +1 -28
  54. package/dist-cjs/commands/UpdateTableCommand.js +1 -28
  55. package/dist-cjs/commands/UpdateTableReplicaAutoScalingCommand.js +1 -28
  56. package/dist-cjs/commands/UpdateTimeToLiveCommand.js +1 -28
  57. package/dist-cjs/commands/index.js +1 -56
  58. package/dist-cjs/endpoint/EndpointParameters.js +1 -18
  59. package/dist-cjs/extensionConfiguration.js +1 -2
  60. package/dist-cjs/index.js +6692 -12
  61. package/dist-cjs/models/DynamoDBServiceException.js +1 -12
  62. package/dist-cjs/models/index.js +1 -4
  63. package/dist-cjs/models/models_0.js +1 -671
  64. package/dist-cjs/pagination/Interfaces.js +1 -2
  65. package/dist-cjs/pagination/ListContributorInsightsPaginator.js +1 -7
  66. package/dist-cjs/pagination/ListExportsPaginator.js +1 -7
  67. package/dist-cjs/pagination/ListImportsPaginator.js +1 -7
  68. package/dist-cjs/pagination/ListTablesPaginator.js +1 -7
  69. package/dist-cjs/pagination/QueryPaginator.js +1 -7
  70. package/dist-cjs/pagination/ScanPaginator.js +1 -7
  71. package/dist-cjs/pagination/index.js +1 -10
  72. package/dist-cjs/protocols/Aws_json1_0.js +1 -4555
  73. package/dist-cjs/runtimeExtensions.js +1 -25
  74. package/dist-cjs/waiters/index.js +1 -5
  75. package/dist-cjs/waiters/waitForTableExists.js +1 -39
  76. package/dist-cjs/waiters/waitForTableNotExists.js +1 -30
  77. package/dist-types/models/models_0.d.ts +2 -2
  78. package/package.json +42 -42
@@ -1,4555 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.se_UpdateItemCommand = exports.se_UpdateGlobalTableSettingsCommand = exports.se_UpdateGlobalTableCommand = exports.se_UpdateContributorInsightsCommand = exports.se_UpdateContinuousBackupsCommand = exports.se_UntagResourceCommand = exports.se_TransactWriteItemsCommand = exports.se_TransactGetItemsCommand = exports.se_TagResourceCommand = exports.se_ScanCommand = exports.se_RestoreTableToPointInTimeCommand = exports.se_RestoreTableFromBackupCommand = exports.se_QueryCommand = exports.se_PutItemCommand = exports.se_ListTagsOfResourceCommand = exports.se_ListTablesCommand = exports.se_ListImportsCommand = exports.se_ListGlobalTablesCommand = exports.se_ListExportsCommand = exports.se_ListContributorInsightsCommand = exports.se_ListBackupsCommand = exports.se_ImportTableCommand = exports.se_GetItemCommand = exports.se_ExportTableToPointInTimeCommand = exports.se_ExecuteTransactionCommand = exports.se_ExecuteStatementCommand = exports.se_EnableKinesisStreamingDestinationCommand = exports.se_DisableKinesisStreamingDestinationCommand = exports.se_DescribeTimeToLiveCommand = exports.se_DescribeTableReplicaAutoScalingCommand = exports.se_DescribeTableCommand = exports.se_DescribeLimitsCommand = exports.se_DescribeKinesisStreamingDestinationCommand = exports.se_DescribeImportCommand = exports.se_DescribeGlobalTableSettingsCommand = exports.se_DescribeGlobalTableCommand = exports.se_DescribeExportCommand = exports.se_DescribeEndpointsCommand = exports.se_DescribeContributorInsightsCommand = exports.se_DescribeContinuousBackupsCommand = exports.se_DescribeBackupCommand = exports.se_DeleteTableCommand = exports.se_DeleteItemCommand = exports.se_DeleteBackupCommand = exports.se_CreateTableCommand = exports.se_CreateGlobalTableCommand = exports.se_CreateBackupCommand = exports.se_BatchWriteItemCommand = exports.se_BatchGetItemCommand = exports.se_BatchExecuteStatementCommand = void 0;
4
- exports.de_UpdateContributorInsightsCommand = exports.de_UpdateContinuousBackupsCommand = exports.de_UntagResourceCommand = exports.de_TransactWriteItemsCommand = exports.de_TransactGetItemsCommand = exports.de_TagResourceCommand = exports.de_ScanCommand = exports.de_RestoreTableToPointInTimeCommand = exports.de_RestoreTableFromBackupCommand = exports.de_QueryCommand = exports.de_PutItemCommand = exports.de_ListTagsOfResourceCommand = exports.de_ListTablesCommand = exports.de_ListImportsCommand = exports.de_ListGlobalTablesCommand = exports.de_ListExportsCommand = exports.de_ListContributorInsightsCommand = exports.de_ListBackupsCommand = exports.de_ImportTableCommand = exports.de_GetItemCommand = exports.de_ExportTableToPointInTimeCommand = exports.de_ExecuteTransactionCommand = exports.de_ExecuteStatementCommand = exports.de_EnableKinesisStreamingDestinationCommand = exports.de_DisableKinesisStreamingDestinationCommand = exports.de_DescribeTimeToLiveCommand = exports.de_DescribeTableReplicaAutoScalingCommand = exports.de_DescribeTableCommand = exports.de_DescribeLimitsCommand = exports.de_DescribeKinesisStreamingDestinationCommand = exports.de_DescribeImportCommand = exports.de_DescribeGlobalTableSettingsCommand = exports.de_DescribeGlobalTableCommand = exports.de_DescribeExportCommand = exports.de_DescribeEndpointsCommand = exports.de_DescribeContributorInsightsCommand = exports.de_DescribeContinuousBackupsCommand = exports.de_DescribeBackupCommand = exports.de_DeleteTableCommand = exports.de_DeleteItemCommand = exports.de_DeleteBackupCommand = exports.de_CreateTableCommand = exports.de_CreateGlobalTableCommand = exports.de_CreateBackupCommand = exports.de_BatchWriteItemCommand = exports.de_BatchGetItemCommand = exports.de_BatchExecuteStatementCommand = exports.se_UpdateTimeToLiveCommand = exports.se_UpdateTableReplicaAutoScalingCommand = exports.se_UpdateTableCommand = void 0;
5
- exports.de_UpdateTimeToLiveCommand = exports.de_UpdateTableReplicaAutoScalingCommand = exports.de_UpdateTableCommand = exports.de_UpdateItemCommand = exports.de_UpdateGlobalTableSettingsCommand = exports.de_UpdateGlobalTableCommand = void 0;
6
- const core_1 = require("@aws-sdk/core");
7
- const protocol_http_1 = require("@smithy/protocol-http");
8
- const smithy_client_1 = require("@smithy/smithy-client");
9
- const uuid_1 = require("uuid");
10
- const DynamoDBServiceException_1 = require("../models/DynamoDBServiceException");
11
- const models_0_1 = require("../models/models_0");
12
- const se_BatchExecuteStatementCommand = async (input, context) => {
13
- const headers = sharedHeaders("BatchExecuteStatement");
14
- let body;
15
- body = JSON.stringify(se_BatchExecuteStatementInput(input, context));
16
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
17
- };
18
- exports.se_BatchExecuteStatementCommand = se_BatchExecuteStatementCommand;
19
- const se_BatchGetItemCommand = async (input, context) => {
20
- const headers = sharedHeaders("BatchGetItem");
21
- let body;
22
- body = JSON.stringify(se_BatchGetItemInput(input, context));
23
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
24
- };
25
- exports.se_BatchGetItemCommand = se_BatchGetItemCommand;
26
- const se_BatchWriteItemCommand = async (input, context) => {
27
- const headers = sharedHeaders("BatchWriteItem");
28
- let body;
29
- body = JSON.stringify(se_BatchWriteItemInput(input, context));
30
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
31
- };
32
- exports.se_BatchWriteItemCommand = se_BatchWriteItemCommand;
33
- const se_CreateBackupCommand = async (input, context) => {
34
- const headers = sharedHeaders("CreateBackup");
35
- let body;
36
- body = JSON.stringify((0, smithy_client_1._json)(input));
37
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
38
- };
39
- exports.se_CreateBackupCommand = se_CreateBackupCommand;
40
- const se_CreateGlobalTableCommand = async (input, context) => {
41
- const headers = sharedHeaders("CreateGlobalTable");
42
- let body;
43
- body = JSON.stringify((0, smithy_client_1._json)(input));
44
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
45
- };
46
- exports.se_CreateGlobalTableCommand = se_CreateGlobalTableCommand;
47
- const se_CreateTableCommand = async (input, context) => {
48
- const headers = sharedHeaders("CreateTable");
49
- let body;
50
- body = JSON.stringify((0, smithy_client_1._json)(input));
51
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
52
- };
53
- exports.se_CreateTableCommand = se_CreateTableCommand;
54
- const se_DeleteBackupCommand = async (input, context) => {
55
- const headers = sharedHeaders("DeleteBackup");
56
- let body;
57
- body = JSON.stringify((0, smithy_client_1._json)(input));
58
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
59
- };
60
- exports.se_DeleteBackupCommand = se_DeleteBackupCommand;
61
- const se_DeleteItemCommand = async (input, context) => {
62
- const headers = sharedHeaders("DeleteItem");
63
- let body;
64
- body = JSON.stringify(se_DeleteItemInput(input, context));
65
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
66
- };
67
- exports.se_DeleteItemCommand = se_DeleteItemCommand;
68
- const se_DeleteTableCommand = async (input, context) => {
69
- const headers = sharedHeaders("DeleteTable");
70
- let body;
71
- body = JSON.stringify((0, smithy_client_1._json)(input));
72
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
73
- };
74
- exports.se_DeleteTableCommand = se_DeleteTableCommand;
75
- const se_DescribeBackupCommand = async (input, context) => {
76
- const headers = sharedHeaders("DescribeBackup");
77
- let body;
78
- body = JSON.stringify((0, smithy_client_1._json)(input));
79
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
80
- };
81
- exports.se_DescribeBackupCommand = se_DescribeBackupCommand;
82
- const se_DescribeContinuousBackupsCommand = async (input, context) => {
83
- const headers = sharedHeaders("DescribeContinuousBackups");
84
- let body;
85
- body = JSON.stringify((0, smithy_client_1._json)(input));
86
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
87
- };
88
- exports.se_DescribeContinuousBackupsCommand = se_DescribeContinuousBackupsCommand;
89
- const se_DescribeContributorInsightsCommand = async (input, context) => {
90
- const headers = sharedHeaders("DescribeContributorInsights");
91
- let body;
92
- body = JSON.stringify((0, smithy_client_1._json)(input));
93
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
94
- };
95
- exports.se_DescribeContributorInsightsCommand = se_DescribeContributorInsightsCommand;
96
- const se_DescribeEndpointsCommand = async (input, context) => {
97
- const headers = sharedHeaders("DescribeEndpoints");
98
- let body;
99
- body = JSON.stringify((0, smithy_client_1._json)(input));
100
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
101
- };
102
- exports.se_DescribeEndpointsCommand = se_DescribeEndpointsCommand;
103
- const se_DescribeExportCommand = async (input, context) => {
104
- const headers = sharedHeaders("DescribeExport");
105
- let body;
106
- body = JSON.stringify((0, smithy_client_1._json)(input));
107
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
108
- };
109
- exports.se_DescribeExportCommand = se_DescribeExportCommand;
110
- const se_DescribeGlobalTableCommand = async (input, context) => {
111
- const headers = sharedHeaders("DescribeGlobalTable");
112
- let body;
113
- body = JSON.stringify((0, smithy_client_1._json)(input));
114
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
115
- };
116
- exports.se_DescribeGlobalTableCommand = se_DescribeGlobalTableCommand;
117
- const se_DescribeGlobalTableSettingsCommand = async (input, context) => {
118
- const headers = sharedHeaders("DescribeGlobalTableSettings");
119
- let body;
120
- body = JSON.stringify((0, smithy_client_1._json)(input));
121
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
122
- };
123
- exports.se_DescribeGlobalTableSettingsCommand = se_DescribeGlobalTableSettingsCommand;
124
- const se_DescribeImportCommand = async (input, context) => {
125
- const headers = sharedHeaders("DescribeImport");
126
- let body;
127
- body = JSON.stringify((0, smithy_client_1._json)(input));
128
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
129
- };
130
- exports.se_DescribeImportCommand = se_DescribeImportCommand;
131
- const se_DescribeKinesisStreamingDestinationCommand = async (input, context) => {
132
- const headers = sharedHeaders("DescribeKinesisStreamingDestination");
133
- let body;
134
- body = JSON.stringify((0, smithy_client_1._json)(input));
135
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
136
- };
137
- exports.se_DescribeKinesisStreamingDestinationCommand = se_DescribeKinesisStreamingDestinationCommand;
138
- const se_DescribeLimitsCommand = async (input, context) => {
139
- const headers = sharedHeaders("DescribeLimits");
140
- let body;
141
- body = JSON.stringify((0, smithy_client_1._json)(input));
142
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
143
- };
144
- exports.se_DescribeLimitsCommand = se_DescribeLimitsCommand;
145
- const se_DescribeTableCommand = async (input, context) => {
146
- const headers = sharedHeaders("DescribeTable");
147
- let body;
148
- body = JSON.stringify((0, smithy_client_1._json)(input));
149
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
150
- };
151
- exports.se_DescribeTableCommand = se_DescribeTableCommand;
152
- const se_DescribeTableReplicaAutoScalingCommand = async (input, context) => {
153
- const headers = sharedHeaders("DescribeTableReplicaAutoScaling");
154
- let body;
155
- body = JSON.stringify((0, smithy_client_1._json)(input));
156
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
157
- };
158
- exports.se_DescribeTableReplicaAutoScalingCommand = se_DescribeTableReplicaAutoScalingCommand;
159
- const se_DescribeTimeToLiveCommand = async (input, context) => {
160
- const headers = sharedHeaders("DescribeTimeToLive");
161
- let body;
162
- body = JSON.stringify((0, smithy_client_1._json)(input));
163
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
164
- };
165
- exports.se_DescribeTimeToLiveCommand = se_DescribeTimeToLiveCommand;
166
- const se_DisableKinesisStreamingDestinationCommand = async (input, context) => {
167
- const headers = sharedHeaders("DisableKinesisStreamingDestination");
168
- let body;
169
- body = JSON.stringify((0, smithy_client_1._json)(input));
170
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
171
- };
172
- exports.se_DisableKinesisStreamingDestinationCommand = se_DisableKinesisStreamingDestinationCommand;
173
- const se_EnableKinesisStreamingDestinationCommand = async (input, context) => {
174
- const headers = sharedHeaders("EnableKinesisStreamingDestination");
175
- let body;
176
- body = JSON.stringify((0, smithy_client_1._json)(input));
177
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
178
- };
179
- exports.se_EnableKinesisStreamingDestinationCommand = se_EnableKinesisStreamingDestinationCommand;
180
- const se_ExecuteStatementCommand = async (input, context) => {
181
- const headers = sharedHeaders("ExecuteStatement");
182
- let body;
183
- body = JSON.stringify(se_ExecuteStatementInput(input, context));
184
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
185
- };
186
- exports.se_ExecuteStatementCommand = se_ExecuteStatementCommand;
187
- const se_ExecuteTransactionCommand = async (input, context) => {
188
- const headers = sharedHeaders("ExecuteTransaction");
189
- let body;
190
- body = JSON.stringify(se_ExecuteTransactionInput(input, context));
191
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
192
- };
193
- exports.se_ExecuteTransactionCommand = se_ExecuteTransactionCommand;
194
- const se_ExportTableToPointInTimeCommand = async (input, context) => {
195
- const headers = sharedHeaders("ExportTableToPointInTime");
196
- let body;
197
- body = JSON.stringify(se_ExportTableToPointInTimeInput(input, context));
198
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
199
- };
200
- exports.se_ExportTableToPointInTimeCommand = se_ExportTableToPointInTimeCommand;
201
- const se_GetItemCommand = async (input, context) => {
202
- const headers = sharedHeaders("GetItem");
203
- let body;
204
- body = JSON.stringify(se_GetItemInput(input, context));
205
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
206
- };
207
- exports.se_GetItemCommand = se_GetItemCommand;
208
- const se_ImportTableCommand = async (input, context) => {
209
- const headers = sharedHeaders("ImportTable");
210
- let body;
211
- body = JSON.stringify(se_ImportTableInput(input, context));
212
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
213
- };
214
- exports.se_ImportTableCommand = se_ImportTableCommand;
215
- const se_ListBackupsCommand = async (input, context) => {
216
- const headers = sharedHeaders("ListBackups");
217
- let body;
218
- body = JSON.stringify(se_ListBackupsInput(input, context));
219
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
220
- };
221
- exports.se_ListBackupsCommand = se_ListBackupsCommand;
222
- const se_ListContributorInsightsCommand = async (input, context) => {
223
- const headers = sharedHeaders("ListContributorInsights");
224
- let body;
225
- body = JSON.stringify((0, smithy_client_1._json)(input));
226
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
227
- };
228
- exports.se_ListContributorInsightsCommand = se_ListContributorInsightsCommand;
229
- const se_ListExportsCommand = async (input, context) => {
230
- const headers = sharedHeaders("ListExports");
231
- let body;
232
- body = JSON.stringify((0, smithy_client_1._json)(input));
233
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
234
- };
235
- exports.se_ListExportsCommand = se_ListExportsCommand;
236
- const se_ListGlobalTablesCommand = async (input, context) => {
237
- const headers = sharedHeaders("ListGlobalTables");
238
- let body;
239
- body = JSON.stringify((0, smithy_client_1._json)(input));
240
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
241
- };
242
- exports.se_ListGlobalTablesCommand = se_ListGlobalTablesCommand;
243
- const se_ListImportsCommand = async (input, context) => {
244
- const headers = sharedHeaders("ListImports");
245
- let body;
246
- body = JSON.stringify((0, smithy_client_1._json)(input));
247
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
248
- };
249
- exports.se_ListImportsCommand = se_ListImportsCommand;
250
- const se_ListTablesCommand = async (input, context) => {
251
- const headers = sharedHeaders("ListTables");
252
- let body;
253
- body = JSON.stringify((0, smithy_client_1._json)(input));
254
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
255
- };
256
- exports.se_ListTablesCommand = se_ListTablesCommand;
257
- const se_ListTagsOfResourceCommand = async (input, context) => {
258
- const headers = sharedHeaders("ListTagsOfResource");
259
- let body;
260
- body = JSON.stringify((0, smithy_client_1._json)(input));
261
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
262
- };
263
- exports.se_ListTagsOfResourceCommand = se_ListTagsOfResourceCommand;
264
- const se_PutItemCommand = async (input, context) => {
265
- const headers = sharedHeaders("PutItem");
266
- let body;
267
- body = JSON.stringify(se_PutItemInput(input, context));
268
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
269
- };
270
- exports.se_PutItemCommand = se_PutItemCommand;
271
- const se_QueryCommand = async (input, context) => {
272
- const headers = sharedHeaders("Query");
273
- let body;
274
- body = JSON.stringify(se_QueryInput(input, context));
275
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
276
- };
277
- exports.se_QueryCommand = se_QueryCommand;
278
- const se_RestoreTableFromBackupCommand = async (input, context) => {
279
- const headers = sharedHeaders("RestoreTableFromBackup");
280
- let body;
281
- body = JSON.stringify((0, smithy_client_1._json)(input));
282
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
283
- };
284
- exports.se_RestoreTableFromBackupCommand = se_RestoreTableFromBackupCommand;
285
- const se_RestoreTableToPointInTimeCommand = async (input, context) => {
286
- const headers = sharedHeaders("RestoreTableToPointInTime");
287
- let body;
288
- body = JSON.stringify(se_RestoreTableToPointInTimeInput(input, context));
289
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
290
- };
291
- exports.se_RestoreTableToPointInTimeCommand = se_RestoreTableToPointInTimeCommand;
292
- const se_ScanCommand = async (input, context) => {
293
- const headers = sharedHeaders("Scan");
294
- let body;
295
- body = JSON.stringify(se_ScanInput(input, context));
296
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
297
- };
298
- exports.se_ScanCommand = se_ScanCommand;
299
- const se_TagResourceCommand = async (input, context) => {
300
- const headers = sharedHeaders("TagResource");
301
- let body;
302
- body = JSON.stringify((0, smithy_client_1._json)(input));
303
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
304
- };
305
- exports.se_TagResourceCommand = se_TagResourceCommand;
306
- const se_TransactGetItemsCommand = async (input, context) => {
307
- const headers = sharedHeaders("TransactGetItems");
308
- let body;
309
- body = JSON.stringify(se_TransactGetItemsInput(input, context));
310
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
311
- };
312
- exports.se_TransactGetItemsCommand = se_TransactGetItemsCommand;
313
- const se_TransactWriteItemsCommand = async (input, context) => {
314
- const headers = sharedHeaders("TransactWriteItems");
315
- let body;
316
- body = JSON.stringify(se_TransactWriteItemsInput(input, context));
317
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
318
- };
319
- exports.se_TransactWriteItemsCommand = se_TransactWriteItemsCommand;
320
- const se_UntagResourceCommand = async (input, context) => {
321
- const headers = sharedHeaders("UntagResource");
322
- let body;
323
- body = JSON.stringify((0, smithy_client_1._json)(input));
324
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
325
- };
326
- exports.se_UntagResourceCommand = se_UntagResourceCommand;
327
- const se_UpdateContinuousBackupsCommand = async (input, context) => {
328
- const headers = sharedHeaders("UpdateContinuousBackups");
329
- let body;
330
- body = JSON.stringify((0, smithy_client_1._json)(input));
331
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
332
- };
333
- exports.se_UpdateContinuousBackupsCommand = se_UpdateContinuousBackupsCommand;
334
- const se_UpdateContributorInsightsCommand = async (input, context) => {
335
- const headers = sharedHeaders("UpdateContributorInsights");
336
- let body;
337
- body = JSON.stringify((0, smithy_client_1._json)(input));
338
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
339
- };
340
- exports.se_UpdateContributorInsightsCommand = se_UpdateContributorInsightsCommand;
341
- const se_UpdateGlobalTableCommand = async (input, context) => {
342
- const headers = sharedHeaders("UpdateGlobalTable");
343
- let body;
344
- body = JSON.stringify((0, smithy_client_1._json)(input));
345
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
346
- };
347
- exports.se_UpdateGlobalTableCommand = se_UpdateGlobalTableCommand;
348
- const se_UpdateGlobalTableSettingsCommand = async (input, context) => {
349
- const headers = sharedHeaders("UpdateGlobalTableSettings");
350
- let body;
351
- body = JSON.stringify(se_UpdateGlobalTableSettingsInput(input, context));
352
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
353
- };
354
- exports.se_UpdateGlobalTableSettingsCommand = se_UpdateGlobalTableSettingsCommand;
355
- const se_UpdateItemCommand = async (input, context) => {
356
- const headers = sharedHeaders("UpdateItem");
357
- let body;
358
- body = JSON.stringify(se_UpdateItemInput(input, context));
359
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
360
- };
361
- exports.se_UpdateItemCommand = se_UpdateItemCommand;
362
- const se_UpdateTableCommand = async (input, context) => {
363
- const headers = sharedHeaders("UpdateTable");
364
- let body;
365
- body = JSON.stringify((0, smithy_client_1._json)(input));
366
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
367
- };
368
- exports.se_UpdateTableCommand = se_UpdateTableCommand;
369
- const se_UpdateTableReplicaAutoScalingCommand = async (input, context) => {
370
- const headers = sharedHeaders("UpdateTableReplicaAutoScaling");
371
- let body;
372
- body = JSON.stringify(se_UpdateTableReplicaAutoScalingInput(input, context));
373
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
374
- };
375
- exports.se_UpdateTableReplicaAutoScalingCommand = se_UpdateTableReplicaAutoScalingCommand;
376
- const se_UpdateTimeToLiveCommand = async (input, context) => {
377
- const headers = sharedHeaders("UpdateTimeToLive");
378
- let body;
379
- body = JSON.stringify((0, smithy_client_1._json)(input));
380
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
381
- };
382
- exports.se_UpdateTimeToLiveCommand = se_UpdateTimeToLiveCommand;
383
- const de_BatchExecuteStatementCommand = async (output, context) => {
384
- if (output.statusCode >= 300) {
385
- return de_BatchExecuteStatementCommandError(output, context);
386
- }
387
- const data = await parseBody(output.body, context);
388
- let contents = {};
389
- contents = de_BatchExecuteStatementOutput(data, context);
390
- const response = {
391
- $metadata: deserializeMetadata(output),
392
- ...contents,
393
- };
394
- return response;
395
- };
396
- exports.de_BatchExecuteStatementCommand = de_BatchExecuteStatementCommand;
397
- const de_BatchExecuteStatementCommandError = async (output, context) => {
398
- const parsedOutput = {
399
- ...output,
400
- body: await parseErrorBody(output.body, context),
401
- };
402
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
403
- switch (errorCode) {
404
- case "InternalServerError":
405
- case "com.amazonaws.dynamodb#InternalServerError":
406
- throw await de_InternalServerErrorRes(parsedOutput, context);
407
- case "RequestLimitExceeded":
408
- case "com.amazonaws.dynamodb#RequestLimitExceeded":
409
- throw await de_RequestLimitExceededRes(parsedOutput, context);
410
- default:
411
- const parsedBody = parsedOutput.body;
412
- return throwDefaultError({
413
- output,
414
- parsedBody,
415
- errorCode,
416
- });
417
- }
418
- };
419
- const de_BatchGetItemCommand = async (output, context) => {
420
- if (output.statusCode >= 300) {
421
- return de_BatchGetItemCommandError(output, context);
422
- }
423
- const data = await parseBody(output.body, context);
424
- let contents = {};
425
- contents = de_BatchGetItemOutput(data, context);
426
- const response = {
427
- $metadata: deserializeMetadata(output),
428
- ...contents,
429
- };
430
- return response;
431
- };
432
- exports.de_BatchGetItemCommand = de_BatchGetItemCommand;
433
- const de_BatchGetItemCommandError = async (output, context) => {
434
- const parsedOutput = {
435
- ...output,
436
- body: await parseErrorBody(output.body, context),
437
- };
438
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
439
- switch (errorCode) {
440
- case "InternalServerError":
441
- case "com.amazonaws.dynamodb#InternalServerError":
442
- throw await de_InternalServerErrorRes(parsedOutput, context);
443
- case "InvalidEndpointException":
444
- case "com.amazonaws.dynamodb#InvalidEndpointException":
445
- throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
446
- case "ProvisionedThroughputExceededException":
447
- case "com.amazonaws.dynamodb#ProvisionedThroughputExceededException":
448
- throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
449
- case "RequestLimitExceeded":
450
- case "com.amazonaws.dynamodb#RequestLimitExceeded":
451
- throw await de_RequestLimitExceededRes(parsedOutput, context);
452
- case "ResourceNotFoundException":
453
- case "com.amazonaws.dynamodb#ResourceNotFoundException":
454
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
455
- default:
456
- const parsedBody = parsedOutput.body;
457
- return throwDefaultError({
458
- output,
459
- parsedBody,
460
- errorCode,
461
- });
462
- }
463
- };
464
- const de_BatchWriteItemCommand = async (output, context) => {
465
- if (output.statusCode >= 300) {
466
- return de_BatchWriteItemCommandError(output, context);
467
- }
468
- const data = await parseBody(output.body, context);
469
- let contents = {};
470
- contents = de_BatchWriteItemOutput(data, context);
471
- const response = {
472
- $metadata: deserializeMetadata(output),
473
- ...contents,
474
- };
475
- return response;
476
- };
477
- exports.de_BatchWriteItemCommand = de_BatchWriteItemCommand;
478
- const de_BatchWriteItemCommandError = async (output, context) => {
479
- const parsedOutput = {
480
- ...output,
481
- body: await parseErrorBody(output.body, context),
482
- };
483
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
484
- switch (errorCode) {
485
- case "InternalServerError":
486
- case "com.amazonaws.dynamodb#InternalServerError":
487
- throw await de_InternalServerErrorRes(parsedOutput, context);
488
- case "InvalidEndpointException":
489
- case "com.amazonaws.dynamodb#InvalidEndpointException":
490
- throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
491
- case "ItemCollectionSizeLimitExceededException":
492
- case "com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException":
493
- throw await de_ItemCollectionSizeLimitExceededExceptionRes(parsedOutput, context);
494
- case "ProvisionedThroughputExceededException":
495
- case "com.amazonaws.dynamodb#ProvisionedThroughputExceededException":
496
- throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
497
- case "RequestLimitExceeded":
498
- case "com.amazonaws.dynamodb#RequestLimitExceeded":
499
- throw await de_RequestLimitExceededRes(parsedOutput, context);
500
- case "ResourceNotFoundException":
501
- case "com.amazonaws.dynamodb#ResourceNotFoundException":
502
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
503
- default:
504
- const parsedBody = parsedOutput.body;
505
- return throwDefaultError({
506
- output,
507
- parsedBody,
508
- errorCode,
509
- });
510
- }
511
- };
512
- const de_CreateBackupCommand = async (output, context) => {
513
- if (output.statusCode >= 300) {
514
- return de_CreateBackupCommandError(output, context);
515
- }
516
- const data = await parseBody(output.body, context);
517
- let contents = {};
518
- contents = de_CreateBackupOutput(data, context);
519
- const response = {
520
- $metadata: deserializeMetadata(output),
521
- ...contents,
522
- };
523
- return response;
524
- };
525
- exports.de_CreateBackupCommand = de_CreateBackupCommand;
526
- const de_CreateBackupCommandError = async (output, context) => {
527
- const parsedOutput = {
528
- ...output,
529
- body: await parseErrorBody(output.body, context),
530
- };
531
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
532
- switch (errorCode) {
533
- case "BackupInUseException":
534
- case "com.amazonaws.dynamodb#BackupInUseException":
535
- throw await de_BackupInUseExceptionRes(parsedOutput, context);
536
- case "ContinuousBackupsUnavailableException":
537
- case "com.amazonaws.dynamodb#ContinuousBackupsUnavailableException":
538
- throw await de_ContinuousBackupsUnavailableExceptionRes(parsedOutput, context);
539
- case "InternalServerError":
540
- case "com.amazonaws.dynamodb#InternalServerError":
541
- throw await de_InternalServerErrorRes(parsedOutput, context);
542
- case "InvalidEndpointException":
543
- case "com.amazonaws.dynamodb#InvalidEndpointException":
544
- throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
545
- case "LimitExceededException":
546
- case "com.amazonaws.dynamodb#LimitExceededException":
547
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
548
- case "TableInUseException":
549
- case "com.amazonaws.dynamodb#TableInUseException":
550
- throw await de_TableInUseExceptionRes(parsedOutput, context);
551
- case "TableNotFoundException":
552
- case "com.amazonaws.dynamodb#TableNotFoundException":
553
- throw await de_TableNotFoundExceptionRes(parsedOutput, context);
554
- default:
555
- const parsedBody = parsedOutput.body;
556
- return throwDefaultError({
557
- output,
558
- parsedBody,
559
- errorCode,
560
- });
561
- }
562
- };
563
- const de_CreateGlobalTableCommand = async (output, context) => {
564
- if (output.statusCode >= 300) {
565
- return de_CreateGlobalTableCommandError(output, context);
566
- }
567
- const data = await parseBody(output.body, context);
568
- let contents = {};
569
- contents = de_CreateGlobalTableOutput(data, context);
570
- const response = {
571
- $metadata: deserializeMetadata(output),
572
- ...contents,
573
- };
574
- return response;
575
- };
576
- exports.de_CreateGlobalTableCommand = de_CreateGlobalTableCommand;
577
- const de_CreateGlobalTableCommandError = async (output, context) => {
578
- const parsedOutput = {
579
- ...output,
580
- body: await parseErrorBody(output.body, context),
581
- };
582
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
583
- switch (errorCode) {
584
- case "GlobalTableAlreadyExistsException":
585
- case "com.amazonaws.dynamodb#GlobalTableAlreadyExistsException":
586
- throw await de_GlobalTableAlreadyExistsExceptionRes(parsedOutput, context);
587
- case "InternalServerError":
588
- case "com.amazonaws.dynamodb#InternalServerError":
589
- throw await de_InternalServerErrorRes(parsedOutput, context);
590
- case "InvalidEndpointException":
591
- case "com.amazonaws.dynamodb#InvalidEndpointException":
592
- throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
593
- case "LimitExceededException":
594
- case "com.amazonaws.dynamodb#LimitExceededException":
595
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
596
- case "TableNotFoundException":
597
- case "com.amazonaws.dynamodb#TableNotFoundException":
598
- throw await de_TableNotFoundExceptionRes(parsedOutput, context);
599
- default:
600
- const parsedBody = parsedOutput.body;
601
- return throwDefaultError({
602
- output,
603
- parsedBody,
604
- errorCode,
605
- });
606
- }
607
- };
608
- const de_CreateTableCommand = async (output, context) => {
609
- if (output.statusCode >= 300) {
610
- return de_CreateTableCommandError(output, context);
611
- }
612
- const data = await parseBody(output.body, context);
613
- let contents = {};
614
- contents = de_CreateTableOutput(data, context);
615
- const response = {
616
- $metadata: deserializeMetadata(output),
617
- ...contents,
618
- };
619
- return response;
620
- };
621
- exports.de_CreateTableCommand = de_CreateTableCommand;
622
- const de_CreateTableCommandError = async (output, context) => {
623
- const parsedOutput = {
624
- ...output,
625
- body: await parseErrorBody(output.body, context),
626
- };
627
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
628
- switch (errorCode) {
629
- case "InternalServerError":
630
- case "com.amazonaws.dynamodb#InternalServerError":
631
- throw await de_InternalServerErrorRes(parsedOutput, context);
632
- case "InvalidEndpointException":
633
- case "com.amazonaws.dynamodb#InvalidEndpointException":
634
- throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
635
- case "LimitExceededException":
636
- case "com.amazonaws.dynamodb#LimitExceededException":
637
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
638
- case "ResourceInUseException":
639
- case "com.amazonaws.dynamodb#ResourceInUseException":
640
- throw await de_ResourceInUseExceptionRes(parsedOutput, context);
641
- default:
642
- const parsedBody = parsedOutput.body;
643
- return throwDefaultError({
644
- output,
645
- parsedBody,
646
- errorCode,
647
- });
648
- }
649
- };
650
- const de_DeleteBackupCommand = async (output, context) => {
651
- if (output.statusCode >= 300) {
652
- return de_DeleteBackupCommandError(output, context);
653
- }
654
- const data = await parseBody(output.body, context);
655
- let contents = {};
656
- contents = de_DeleteBackupOutput(data, context);
657
- const response = {
658
- $metadata: deserializeMetadata(output),
659
- ...contents,
660
- };
661
- return response;
662
- };
663
- exports.de_DeleteBackupCommand = de_DeleteBackupCommand;
664
- const de_DeleteBackupCommandError = async (output, context) => {
665
- const parsedOutput = {
666
- ...output,
667
- body: await parseErrorBody(output.body, context),
668
- };
669
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
670
- switch (errorCode) {
671
- case "BackupInUseException":
672
- case "com.amazonaws.dynamodb#BackupInUseException":
673
- throw await de_BackupInUseExceptionRes(parsedOutput, context);
674
- case "BackupNotFoundException":
675
- case "com.amazonaws.dynamodb#BackupNotFoundException":
676
- throw await de_BackupNotFoundExceptionRes(parsedOutput, context);
677
- case "InternalServerError":
678
- case "com.amazonaws.dynamodb#InternalServerError":
679
- throw await de_InternalServerErrorRes(parsedOutput, context);
680
- case "InvalidEndpointException":
681
- case "com.amazonaws.dynamodb#InvalidEndpointException":
682
- throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
683
- case "LimitExceededException":
684
- case "com.amazonaws.dynamodb#LimitExceededException":
685
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
686
- default:
687
- const parsedBody = parsedOutput.body;
688
- return throwDefaultError({
689
- output,
690
- parsedBody,
691
- errorCode,
692
- });
693
- }
694
- };
695
- const de_DeleteItemCommand = async (output, context) => {
696
- if (output.statusCode >= 300) {
697
- return de_DeleteItemCommandError(output, context);
698
- }
699
- const data = await parseBody(output.body, context);
700
- let contents = {};
701
- contents = de_DeleteItemOutput(data, context);
702
- const response = {
703
- $metadata: deserializeMetadata(output),
704
- ...contents,
705
- };
706
- return response;
707
- };
708
- exports.de_DeleteItemCommand = de_DeleteItemCommand;
709
- const de_DeleteItemCommandError = async (output, context) => {
710
- const parsedOutput = {
711
- ...output,
712
- body: await parseErrorBody(output.body, context),
713
- };
714
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
715
- switch (errorCode) {
716
- case "ConditionalCheckFailedException":
717
- case "com.amazonaws.dynamodb#ConditionalCheckFailedException":
718
- throw await de_ConditionalCheckFailedExceptionRes(parsedOutput, context);
719
- case "InternalServerError":
720
- case "com.amazonaws.dynamodb#InternalServerError":
721
- throw await de_InternalServerErrorRes(parsedOutput, context);
722
- case "InvalidEndpointException":
723
- case "com.amazonaws.dynamodb#InvalidEndpointException":
724
- throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
725
- case "ItemCollectionSizeLimitExceededException":
726
- case "com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException":
727
- throw await de_ItemCollectionSizeLimitExceededExceptionRes(parsedOutput, context);
728
- case "ProvisionedThroughputExceededException":
729
- case "com.amazonaws.dynamodb#ProvisionedThroughputExceededException":
730
- throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
731
- case "RequestLimitExceeded":
732
- case "com.amazonaws.dynamodb#RequestLimitExceeded":
733
- throw await de_RequestLimitExceededRes(parsedOutput, context);
734
- case "ResourceNotFoundException":
735
- case "com.amazonaws.dynamodb#ResourceNotFoundException":
736
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
737
- case "TransactionConflictException":
738
- case "com.amazonaws.dynamodb#TransactionConflictException":
739
- throw await de_TransactionConflictExceptionRes(parsedOutput, context);
740
- default:
741
- const parsedBody = parsedOutput.body;
742
- return throwDefaultError({
743
- output,
744
- parsedBody,
745
- errorCode,
746
- });
747
- }
748
- };
749
- const de_DeleteTableCommand = async (output, context) => {
750
- if (output.statusCode >= 300) {
751
- return de_DeleteTableCommandError(output, context);
752
- }
753
- const data = await parseBody(output.body, context);
754
- let contents = {};
755
- contents = de_DeleteTableOutput(data, context);
756
- const response = {
757
- $metadata: deserializeMetadata(output),
758
- ...contents,
759
- };
760
- return response;
761
- };
762
- exports.de_DeleteTableCommand = de_DeleteTableCommand;
763
- const de_DeleteTableCommandError = async (output, context) => {
764
- const parsedOutput = {
765
- ...output,
766
- body: await parseErrorBody(output.body, context),
767
- };
768
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
769
- switch (errorCode) {
770
- case "InternalServerError":
771
- case "com.amazonaws.dynamodb#InternalServerError":
772
- throw await de_InternalServerErrorRes(parsedOutput, context);
773
- case "InvalidEndpointException":
774
- case "com.amazonaws.dynamodb#InvalidEndpointException":
775
- throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
776
- case "LimitExceededException":
777
- case "com.amazonaws.dynamodb#LimitExceededException":
778
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
779
- case "ResourceInUseException":
780
- case "com.amazonaws.dynamodb#ResourceInUseException":
781
- throw await de_ResourceInUseExceptionRes(parsedOutput, context);
782
- case "ResourceNotFoundException":
783
- case "com.amazonaws.dynamodb#ResourceNotFoundException":
784
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
785
- default:
786
- const parsedBody = parsedOutput.body;
787
- return throwDefaultError({
788
- output,
789
- parsedBody,
790
- errorCode,
791
- });
792
- }
793
- };
794
- const de_DescribeBackupCommand = async (output, context) => {
795
- if (output.statusCode >= 300) {
796
- return de_DescribeBackupCommandError(output, context);
797
- }
798
- const data = await parseBody(output.body, context);
799
- let contents = {};
800
- contents = de_DescribeBackupOutput(data, context);
801
- const response = {
802
- $metadata: deserializeMetadata(output),
803
- ...contents,
804
- };
805
- return response;
806
- };
807
- exports.de_DescribeBackupCommand = de_DescribeBackupCommand;
808
- const de_DescribeBackupCommandError = async (output, context) => {
809
- const parsedOutput = {
810
- ...output,
811
- body: await parseErrorBody(output.body, context),
812
- };
813
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
814
- switch (errorCode) {
815
- case "BackupNotFoundException":
816
- case "com.amazonaws.dynamodb#BackupNotFoundException":
817
- throw await de_BackupNotFoundExceptionRes(parsedOutput, context);
818
- case "InternalServerError":
819
- case "com.amazonaws.dynamodb#InternalServerError":
820
- throw await de_InternalServerErrorRes(parsedOutput, context);
821
- case "InvalidEndpointException":
822
- case "com.amazonaws.dynamodb#InvalidEndpointException":
823
- throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
824
- default:
825
- const parsedBody = parsedOutput.body;
826
- return throwDefaultError({
827
- output,
828
- parsedBody,
829
- errorCode,
830
- });
831
- }
832
- };
833
- const de_DescribeContinuousBackupsCommand = async (output, context) => {
834
- if (output.statusCode >= 300) {
835
- return de_DescribeContinuousBackupsCommandError(output, context);
836
- }
837
- const data = await parseBody(output.body, context);
838
- let contents = {};
839
- contents = de_DescribeContinuousBackupsOutput(data, context);
840
- const response = {
841
- $metadata: deserializeMetadata(output),
842
- ...contents,
843
- };
844
- return response;
845
- };
846
- exports.de_DescribeContinuousBackupsCommand = de_DescribeContinuousBackupsCommand;
847
- const de_DescribeContinuousBackupsCommandError = async (output, context) => {
848
- const parsedOutput = {
849
- ...output,
850
- body: await parseErrorBody(output.body, context),
851
- };
852
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
853
- switch (errorCode) {
854
- case "InternalServerError":
855
- case "com.amazonaws.dynamodb#InternalServerError":
856
- throw await de_InternalServerErrorRes(parsedOutput, context);
857
- case "InvalidEndpointException":
858
- case "com.amazonaws.dynamodb#InvalidEndpointException":
859
- throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
860
- case "TableNotFoundException":
861
- case "com.amazonaws.dynamodb#TableNotFoundException":
862
- throw await de_TableNotFoundExceptionRes(parsedOutput, context);
863
- default:
864
- const parsedBody = parsedOutput.body;
865
- return throwDefaultError({
866
- output,
867
- parsedBody,
868
- errorCode,
869
- });
870
- }
871
- };
872
- const de_DescribeContributorInsightsCommand = async (output, context) => {
873
- if (output.statusCode >= 300) {
874
- return de_DescribeContributorInsightsCommandError(output, context);
875
- }
876
- const data = await parseBody(output.body, context);
877
- let contents = {};
878
- contents = de_DescribeContributorInsightsOutput(data, context);
879
- const response = {
880
- $metadata: deserializeMetadata(output),
881
- ...contents,
882
- };
883
- return response;
884
- };
885
- exports.de_DescribeContributorInsightsCommand = de_DescribeContributorInsightsCommand;
886
- const de_DescribeContributorInsightsCommandError = async (output, context) => {
887
- const parsedOutput = {
888
- ...output,
889
- body: await parseErrorBody(output.body, context),
890
- };
891
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
892
- switch (errorCode) {
893
- case "InternalServerError":
894
- case "com.amazonaws.dynamodb#InternalServerError":
895
- throw await de_InternalServerErrorRes(parsedOutput, context);
896
- case "ResourceNotFoundException":
897
- case "com.amazonaws.dynamodb#ResourceNotFoundException":
898
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
899
- default:
900
- const parsedBody = parsedOutput.body;
901
- return throwDefaultError({
902
- output,
903
- parsedBody,
904
- errorCode,
905
- });
906
- }
907
- };
908
- const de_DescribeEndpointsCommand = async (output, context) => {
909
- if (output.statusCode >= 300) {
910
- return de_DescribeEndpointsCommandError(output, context);
911
- }
912
- const data = await parseBody(output.body, context);
913
- let contents = {};
914
- contents = (0, smithy_client_1._json)(data);
915
- const response = {
916
- $metadata: deserializeMetadata(output),
917
- ...contents,
918
- };
919
- return response;
920
- };
921
- exports.de_DescribeEndpointsCommand = de_DescribeEndpointsCommand;
922
- const de_DescribeEndpointsCommandError = async (output, context) => {
923
- const parsedOutput = {
924
- ...output,
925
- body: await parseErrorBody(output.body, context),
926
- };
927
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
928
- const parsedBody = parsedOutput.body;
929
- return throwDefaultError({
930
- output,
931
- parsedBody,
932
- errorCode,
933
- });
934
- };
935
- const de_DescribeExportCommand = async (output, context) => {
936
- if (output.statusCode >= 300) {
937
- return de_DescribeExportCommandError(output, context);
938
- }
939
- const data = await parseBody(output.body, context);
940
- let contents = {};
941
- contents = de_DescribeExportOutput(data, context);
942
- const response = {
943
- $metadata: deserializeMetadata(output),
944
- ...contents,
945
- };
946
- return response;
947
- };
948
- exports.de_DescribeExportCommand = de_DescribeExportCommand;
949
- const de_DescribeExportCommandError = async (output, context) => {
950
- const parsedOutput = {
951
- ...output,
952
- body: await parseErrorBody(output.body, context),
953
- };
954
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
955
- switch (errorCode) {
956
- case "ExportNotFoundException":
957
- case "com.amazonaws.dynamodb#ExportNotFoundException":
958
- throw await de_ExportNotFoundExceptionRes(parsedOutput, context);
959
- case "InternalServerError":
960
- case "com.amazonaws.dynamodb#InternalServerError":
961
- throw await de_InternalServerErrorRes(parsedOutput, context);
962
- case "LimitExceededException":
963
- case "com.amazonaws.dynamodb#LimitExceededException":
964
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
965
- default:
966
- const parsedBody = parsedOutput.body;
967
- return throwDefaultError({
968
- output,
969
- parsedBody,
970
- errorCode,
971
- });
972
- }
973
- };
974
- const de_DescribeGlobalTableCommand = async (output, context) => {
975
- if (output.statusCode >= 300) {
976
- return de_DescribeGlobalTableCommandError(output, context);
977
- }
978
- const data = await parseBody(output.body, context);
979
- let contents = {};
980
- contents = de_DescribeGlobalTableOutput(data, context);
981
- const response = {
982
- $metadata: deserializeMetadata(output),
983
- ...contents,
984
- };
985
- return response;
986
- };
987
- exports.de_DescribeGlobalTableCommand = de_DescribeGlobalTableCommand;
988
- const de_DescribeGlobalTableCommandError = async (output, context) => {
989
- const parsedOutput = {
990
- ...output,
991
- body: await parseErrorBody(output.body, context),
992
- };
993
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
994
- switch (errorCode) {
995
- case "GlobalTableNotFoundException":
996
- case "com.amazonaws.dynamodb#GlobalTableNotFoundException":
997
- throw await de_GlobalTableNotFoundExceptionRes(parsedOutput, context);
998
- case "InternalServerError":
999
- case "com.amazonaws.dynamodb#InternalServerError":
1000
- throw await de_InternalServerErrorRes(parsedOutput, context);
1001
- case "InvalidEndpointException":
1002
- case "com.amazonaws.dynamodb#InvalidEndpointException":
1003
- throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
1004
- default:
1005
- const parsedBody = parsedOutput.body;
1006
- return throwDefaultError({
1007
- output,
1008
- parsedBody,
1009
- errorCode,
1010
- });
1011
- }
1012
- };
1013
- const de_DescribeGlobalTableSettingsCommand = async (output, context) => {
1014
- if (output.statusCode >= 300) {
1015
- return de_DescribeGlobalTableSettingsCommandError(output, context);
1016
- }
1017
- const data = await parseBody(output.body, context);
1018
- let contents = {};
1019
- contents = de_DescribeGlobalTableSettingsOutput(data, context);
1020
- const response = {
1021
- $metadata: deserializeMetadata(output),
1022
- ...contents,
1023
- };
1024
- return response;
1025
- };
1026
- exports.de_DescribeGlobalTableSettingsCommand = de_DescribeGlobalTableSettingsCommand;
1027
- const de_DescribeGlobalTableSettingsCommandError = async (output, context) => {
1028
- const parsedOutput = {
1029
- ...output,
1030
- body: await parseErrorBody(output.body, context),
1031
- };
1032
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1033
- switch (errorCode) {
1034
- case "GlobalTableNotFoundException":
1035
- case "com.amazonaws.dynamodb#GlobalTableNotFoundException":
1036
- throw await de_GlobalTableNotFoundExceptionRes(parsedOutput, context);
1037
- case "InternalServerError":
1038
- case "com.amazonaws.dynamodb#InternalServerError":
1039
- throw await de_InternalServerErrorRes(parsedOutput, context);
1040
- case "InvalidEndpointException":
1041
- case "com.amazonaws.dynamodb#InvalidEndpointException":
1042
- throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
1043
- default:
1044
- const parsedBody = parsedOutput.body;
1045
- return throwDefaultError({
1046
- output,
1047
- parsedBody,
1048
- errorCode,
1049
- });
1050
- }
1051
- };
1052
- const de_DescribeImportCommand = async (output, context) => {
1053
- if (output.statusCode >= 300) {
1054
- return de_DescribeImportCommandError(output, context);
1055
- }
1056
- const data = await parseBody(output.body, context);
1057
- let contents = {};
1058
- contents = de_DescribeImportOutput(data, context);
1059
- const response = {
1060
- $metadata: deserializeMetadata(output),
1061
- ...contents,
1062
- };
1063
- return response;
1064
- };
1065
- exports.de_DescribeImportCommand = de_DescribeImportCommand;
1066
- const de_DescribeImportCommandError = async (output, context) => {
1067
- const parsedOutput = {
1068
- ...output,
1069
- body: await parseErrorBody(output.body, context),
1070
- };
1071
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1072
- switch (errorCode) {
1073
- case "ImportNotFoundException":
1074
- case "com.amazonaws.dynamodb#ImportNotFoundException":
1075
- throw await de_ImportNotFoundExceptionRes(parsedOutput, context);
1076
- default:
1077
- const parsedBody = parsedOutput.body;
1078
- return throwDefaultError({
1079
- output,
1080
- parsedBody,
1081
- errorCode,
1082
- });
1083
- }
1084
- };
1085
- const de_DescribeKinesisStreamingDestinationCommand = async (output, context) => {
1086
- if (output.statusCode >= 300) {
1087
- return de_DescribeKinesisStreamingDestinationCommandError(output, context);
1088
- }
1089
- const data = await parseBody(output.body, context);
1090
- let contents = {};
1091
- contents = (0, smithy_client_1._json)(data);
1092
- const response = {
1093
- $metadata: deserializeMetadata(output),
1094
- ...contents,
1095
- };
1096
- return response;
1097
- };
1098
- exports.de_DescribeKinesisStreamingDestinationCommand = de_DescribeKinesisStreamingDestinationCommand;
1099
- const de_DescribeKinesisStreamingDestinationCommandError = async (output, context) => {
1100
- const parsedOutput = {
1101
- ...output,
1102
- body: await parseErrorBody(output.body, context),
1103
- };
1104
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1105
- switch (errorCode) {
1106
- case "InternalServerError":
1107
- case "com.amazonaws.dynamodb#InternalServerError":
1108
- throw await de_InternalServerErrorRes(parsedOutput, context);
1109
- case "InvalidEndpointException":
1110
- case "com.amazonaws.dynamodb#InvalidEndpointException":
1111
- throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
1112
- case "ResourceNotFoundException":
1113
- case "com.amazonaws.dynamodb#ResourceNotFoundException":
1114
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1115
- default:
1116
- const parsedBody = parsedOutput.body;
1117
- return throwDefaultError({
1118
- output,
1119
- parsedBody,
1120
- errorCode,
1121
- });
1122
- }
1123
- };
1124
- const de_DescribeLimitsCommand = async (output, context) => {
1125
- if (output.statusCode >= 300) {
1126
- return de_DescribeLimitsCommandError(output, context);
1127
- }
1128
- const data = await parseBody(output.body, context);
1129
- let contents = {};
1130
- contents = (0, smithy_client_1._json)(data);
1131
- const response = {
1132
- $metadata: deserializeMetadata(output),
1133
- ...contents,
1134
- };
1135
- return response;
1136
- };
1137
- exports.de_DescribeLimitsCommand = de_DescribeLimitsCommand;
1138
- const de_DescribeLimitsCommandError = async (output, context) => {
1139
- const parsedOutput = {
1140
- ...output,
1141
- body: await parseErrorBody(output.body, context),
1142
- };
1143
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1144
- switch (errorCode) {
1145
- case "InternalServerError":
1146
- case "com.amazonaws.dynamodb#InternalServerError":
1147
- throw await de_InternalServerErrorRes(parsedOutput, context);
1148
- case "InvalidEndpointException":
1149
- case "com.amazonaws.dynamodb#InvalidEndpointException":
1150
- throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
1151
- default:
1152
- const parsedBody = parsedOutput.body;
1153
- return throwDefaultError({
1154
- output,
1155
- parsedBody,
1156
- errorCode,
1157
- });
1158
- }
1159
- };
1160
- const de_DescribeTableCommand = async (output, context) => {
1161
- if (output.statusCode >= 300) {
1162
- return de_DescribeTableCommandError(output, context);
1163
- }
1164
- const data = await parseBody(output.body, context);
1165
- let contents = {};
1166
- contents = de_DescribeTableOutput(data, context);
1167
- const response = {
1168
- $metadata: deserializeMetadata(output),
1169
- ...contents,
1170
- };
1171
- return response;
1172
- };
1173
- exports.de_DescribeTableCommand = de_DescribeTableCommand;
1174
- const de_DescribeTableCommandError = async (output, context) => {
1175
- const parsedOutput = {
1176
- ...output,
1177
- body: await parseErrorBody(output.body, context),
1178
- };
1179
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1180
- switch (errorCode) {
1181
- case "InternalServerError":
1182
- case "com.amazonaws.dynamodb#InternalServerError":
1183
- throw await de_InternalServerErrorRes(parsedOutput, context);
1184
- case "InvalidEndpointException":
1185
- case "com.amazonaws.dynamodb#InvalidEndpointException":
1186
- throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
1187
- case "ResourceNotFoundException":
1188
- case "com.amazonaws.dynamodb#ResourceNotFoundException":
1189
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1190
- default:
1191
- const parsedBody = parsedOutput.body;
1192
- return throwDefaultError({
1193
- output,
1194
- parsedBody,
1195
- errorCode,
1196
- });
1197
- }
1198
- };
1199
- const de_DescribeTableReplicaAutoScalingCommand = async (output, context) => {
1200
- if (output.statusCode >= 300) {
1201
- return de_DescribeTableReplicaAutoScalingCommandError(output, context);
1202
- }
1203
- const data = await parseBody(output.body, context);
1204
- let contents = {};
1205
- contents = de_DescribeTableReplicaAutoScalingOutput(data, context);
1206
- const response = {
1207
- $metadata: deserializeMetadata(output),
1208
- ...contents,
1209
- };
1210
- return response;
1211
- };
1212
- exports.de_DescribeTableReplicaAutoScalingCommand = de_DescribeTableReplicaAutoScalingCommand;
1213
- const de_DescribeTableReplicaAutoScalingCommandError = async (output, context) => {
1214
- const parsedOutput = {
1215
- ...output,
1216
- body: await parseErrorBody(output.body, context),
1217
- };
1218
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1219
- switch (errorCode) {
1220
- case "InternalServerError":
1221
- case "com.amazonaws.dynamodb#InternalServerError":
1222
- throw await de_InternalServerErrorRes(parsedOutput, context);
1223
- case "ResourceNotFoundException":
1224
- case "com.amazonaws.dynamodb#ResourceNotFoundException":
1225
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1226
- default:
1227
- const parsedBody = parsedOutput.body;
1228
- return throwDefaultError({
1229
- output,
1230
- parsedBody,
1231
- errorCode,
1232
- });
1233
- }
1234
- };
1235
- const de_DescribeTimeToLiveCommand = async (output, context) => {
1236
- if (output.statusCode >= 300) {
1237
- return de_DescribeTimeToLiveCommandError(output, context);
1238
- }
1239
- const data = await parseBody(output.body, context);
1240
- let contents = {};
1241
- contents = (0, smithy_client_1._json)(data);
1242
- const response = {
1243
- $metadata: deserializeMetadata(output),
1244
- ...contents,
1245
- };
1246
- return response;
1247
- };
1248
- exports.de_DescribeTimeToLiveCommand = de_DescribeTimeToLiveCommand;
1249
- const de_DescribeTimeToLiveCommandError = async (output, context) => {
1250
- const parsedOutput = {
1251
- ...output,
1252
- body: await parseErrorBody(output.body, context),
1253
- };
1254
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1255
- switch (errorCode) {
1256
- case "InternalServerError":
1257
- case "com.amazonaws.dynamodb#InternalServerError":
1258
- throw await de_InternalServerErrorRes(parsedOutput, context);
1259
- case "InvalidEndpointException":
1260
- case "com.amazonaws.dynamodb#InvalidEndpointException":
1261
- throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
1262
- case "ResourceNotFoundException":
1263
- case "com.amazonaws.dynamodb#ResourceNotFoundException":
1264
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1265
- default:
1266
- const parsedBody = parsedOutput.body;
1267
- return throwDefaultError({
1268
- output,
1269
- parsedBody,
1270
- errorCode,
1271
- });
1272
- }
1273
- };
1274
- const de_DisableKinesisStreamingDestinationCommand = async (output, context) => {
1275
- if (output.statusCode >= 300) {
1276
- return de_DisableKinesisStreamingDestinationCommandError(output, context);
1277
- }
1278
- const data = await parseBody(output.body, context);
1279
- let contents = {};
1280
- contents = (0, smithy_client_1._json)(data);
1281
- const response = {
1282
- $metadata: deserializeMetadata(output),
1283
- ...contents,
1284
- };
1285
- return response;
1286
- };
1287
- exports.de_DisableKinesisStreamingDestinationCommand = de_DisableKinesisStreamingDestinationCommand;
1288
- const de_DisableKinesisStreamingDestinationCommandError = async (output, context) => {
1289
- const parsedOutput = {
1290
- ...output,
1291
- body: await parseErrorBody(output.body, context),
1292
- };
1293
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1294
- switch (errorCode) {
1295
- case "InternalServerError":
1296
- case "com.amazonaws.dynamodb#InternalServerError":
1297
- throw await de_InternalServerErrorRes(parsedOutput, context);
1298
- case "InvalidEndpointException":
1299
- case "com.amazonaws.dynamodb#InvalidEndpointException":
1300
- throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
1301
- case "LimitExceededException":
1302
- case "com.amazonaws.dynamodb#LimitExceededException":
1303
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
1304
- case "ResourceInUseException":
1305
- case "com.amazonaws.dynamodb#ResourceInUseException":
1306
- throw await de_ResourceInUseExceptionRes(parsedOutput, context);
1307
- case "ResourceNotFoundException":
1308
- case "com.amazonaws.dynamodb#ResourceNotFoundException":
1309
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1310
- default:
1311
- const parsedBody = parsedOutput.body;
1312
- return throwDefaultError({
1313
- output,
1314
- parsedBody,
1315
- errorCode,
1316
- });
1317
- }
1318
- };
1319
- const de_EnableKinesisStreamingDestinationCommand = async (output, context) => {
1320
- if (output.statusCode >= 300) {
1321
- return de_EnableKinesisStreamingDestinationCommandError(output, context);
1322
- }
1323
- const data = await parseBody(output.body, context);
1324
- let contents = {};
1325
- contents = (0, smithy_client_1._json)(data);
1326
- const response = {
1327
- $metadata: deserializeMetadata(output),
1328
- ...contents,
1329
- };
1330
- return response;
1331
- };
1332
- exports.de_EnableKinesisStreamingDestinationCommand = de_EnableKinesisStreamingDestinationCommand;
1333
- const de_EnableKinesisStreamingDestinationCommandError = async (output, context) => {
1334
- const parsedOutput = {
1335
- ...output,
1336
- body: await parseErrorBody(output.body, context),
1337
- };
1338
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1339
- switch (errorCode) {
1340
- case "InternalServerError":
1341
- case "com.amazonaws.dynamodb#InternalServerError":
1342
- throw await de_InternalServerErrorRes(parsedOutput, context);
1343
- case "InvalidEndpointException":
1344
- case "com.amazonaws.dynamodb#InvalidEndpointException":
1345
- throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
1346
- case "LimitExceededException":
1347
- case "com.amazonaws.dynamodb#LimitExceededException":
1348
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
1349
- case "ResourceInUseException":
1350
- case "com.amazonaws.dynamodb#ResourceInUseException":
1351
- throw await de_ResourceInUseExceptionRes(parsedOutput, context);
1352
- case "ResourceNotFoundException":
1353
- case "com.amazonaws.dynamodb#ResourceNotFoundException":
1354
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1355
- default:
1356
- const parsedBody = parsedOutput.body;
1357
- return throwDefaultError({
1358
- output,
1359
- parsedBody,
1360
- errorCode,
1361
- });
1362
- }
1363
- };
1364
- const de_ExecuteStatementCommand = async (output, context) => {
1365
- if (output.statusCode >= 300) {
1366
- return de_ExecuteStatementCommandError(output, context);
1367
- }
1368
- const data = await parseBody(output.body, context);
1369
- let contents = {};
1370
- contents = de_ExecuteStatementOutput(data, context);
1371
- const response = {
1372
- $metadata: deserializeMetadata(output),
1373
- ...contents,
1374
- };
1375
- return response;
1376
- };
1377
- exports.de_ExecuteStatementCommand = de_ExecuteStatementCommand;
1378
- const de_ExecuteStatementCommandError = async (output, context) => {
1379
- const parsedOutput = {
1380
- ...output,
1381
- body: await parseErrorBody(output.body, context),
1382
- };
1383
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1384
- switch (errorCode) {
1385
- case "ConditionalCheckFailedException":
1386
- case "com.amazonaws.dynamodb#ConditionalCheckFailedException":
1387
- throw await de_ConditionalCheckFailedExceptionRes(parsedOutput, context);
1388
- case "DuplicateItemException":
1389
- case "com.amazonaws.dynamodb#DuplicateItemException":
1390
- throw await de_DuplicateItemExceptionRes(parsedOutput, context);
1391
- case "InternalServerError":
1392
- case "com.amazonaws.dynamodb#InternalServerError":
1393
- throw await de_InternalServerErrorRes(parsedOutput, context);
1394
- case "ItemCollectionSizeLimitExceededException":
1395
- case "com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException":
1396
- throw await de_ItemCollectionSizeLimitExceededExceptionRes(parsedOutput, context);
1397
- case "ProvisionedThroughputExceededException":
1398
- case "com.amazonaws.dynamodb#ProvisionedThroughputExceededException":
1399
- throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
1400
- case "RequestLimitExceeded":
1401
- case "com.amazonaws.dynamodb#RequestLimitExceeded":
1402
- throw await de_RequestLimitExceededRes(parsedOutput, context);
1403
- case "ResourceNotFoundException":
1404
- case "com.amazonaws.dynamodb#ResourceNotFoundException":
1405
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1406
- case "TransactionConflictException":
1407
- case "com.amazonaws.dynamodb#TransactionConflictException":
1408
- throw await de_TransactionConflictExceptionRes(parsedOutput, context);
1409
- default:
1410
- const parsedBody = parsedOutput.body;
1411
- return throwDefaultError({
1412
- output,
1413
- parsedBody,
1414
- errorCode,
1415
- });
1416
- }
1417
- };
1418
- const de_ExecuteTransactionCommand = async (output, context) => {
1419
- if (output.statusCode >= 300) {
1420
- return de_ExecuteTransactionCommandError(output, context);
1421
- }
1422
- const data = await parseBody(output.body, context);
1423
- let contents = {};
1424
- contents = de_ExecuteTransactionOutput(data, context);
1425
- const response = {
1426
- $metadata: deserializeMetadata(output),
1427
- ...contents,
1428
- };
1429
- return response;
1430
- };
1431
- exports.de_ExecuteTransactionCommand = de_ExecuteTransactionCommand;
1432
- const de_ExecuteTransactionCommandError = async (output, context) => {
1433
- const parsedOutput = {
1434
- ...output,
1435
- body: await parseErrorBody(output.body, context),
1436
- };
1437
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1438
- switch (errorCode) {
1439
- case "IdempotentParameterMismatchException":
1440
- case "com.amazonaws.dynamodb#IdempotentParameterMismatchException":
1441
- throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
1442
- case "InternalServerError":
1443
- case "com.amazonaws.dynamodb#InternalServerError":
1444
- throw await de_InternalServerErrorRes(parsedOutput, context);
1445
- case "ProvisionedThroughputExceededException":
1446
- case "com.amazonaws.dynamodb#ProvisionedThroughputExceededException":
1447
- throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
1448
- case "RequestLimitExceeded":
1449
- case "com.amazonaws.dynamodb#RequestLimitExceeded":
1450
- throw await de_RequestLimitExceededRes(parsedOutput, context);
1451
- case "ResourceNotFoundException":
1452
- case "com.amazonaws.dynamodb#ResourceNotFoundException":
1453
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1454
- case "TransactionCanceledException":
1455
- case "com.amazonaws.dynamodb#TransactionCanceledException":
1456
- throw await de_TransactionCanceledExceptionRes(parsedOutput, context);
1457
- case "TransactionInProgressException":
1458
- case "com.amazonaws.dynamodb#TransactionInProgressException":
1459
- throw await de_TransactionInProgressExceptionRes(parsedOutput, context);
1460
- default:
1461
- const parsedBody = parsedOutput.body;
1462
- return throwDefaultError({
1463
- output,
1464
- parsedBody,
1465
- errorCode,
1466
- });
1467
- }
1468
- };
1469
- const de_ExportTableToPointInTimeCommand = async (output, context) => {
1470
- if (output.statusCode >= 300) {
1471
- return de_ExportTableToPointInTimeCommandError(output, context);
1472
- }
1473
- const data = await parseBody(output.body, context);
1474
- let contents = {};
1475
- contents = de_ExportTableToPointInTimeOutput(data, context);
1476
- const response = {
1477
- $metadata: deserializeMetadata(output),
1478
- ...contents,
1479
- };
1480
- return response;
1481
- };
1482
- exports.de_ExportTableToPointInTimeCommand = de_ExportTableToPointInTimeCommand;
1483
- const de_ExportTableToPointInTimeCommandError = async (output, context) => {
1484
- const parsedOutput = {
1485
- ...output,
1486
- body: await parseErrorBody(output.body, context),
1487
- };
1488
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1489
- switch (errorCode) {
1490
- case "ExportConflictException":
1491
- case "com.amazonaws.dynamodb#ExportConflictException":
1492
- throw await de_ExportConflictExceptionRes(parsedOutput, context);
1493
- case "InternalServerError":
1494
- case "com.amazonaws.dynamodb#InternalServerError":
1495
- throw await de_InternalServerErrorRes(parsedOutput, context);
1496
- case "InvalidExportTimeException":
1497
- case "com.amazonaws.dynamodb#InvalidExportTimeException":
1498
- throw await de_InvalidExportTimeExceptionRes(parsedOutput, context);
1499
- case "LimitExceededException":
1500
- case "com.amazonaws.dynamodb#LimitExceededException":
1501
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
1502
- case "PointInTimeRecoveryUnavailableException":
1503
- case "com.amazonaws.dynamodb#PointInTimeRecoveryUnavailableException":
1504
- throw await de_PointInTimeRecoveryUnavailableExceptionRes(parsedOutput, context);
1505
- case "TableNotFoundException":
1506
- case "com.amazonaws.dynamodb#TableNotFoundException":
1507
- throw await de_TableNotFoundExceptionRes(parsedOutput, context);
1508
- default:
1509
- const parsedBody = parsedOutput.body;
1510
- return throwDefaultError({
1511
- output,
1512
- parsedBody,
1513
- errorCode,
1514
- });
1515
- }
1516
- };
1517
- const de_GetItemCommand = async (output, context) => {
1518
- if (output.statusCode >= 300) {
1519
- return de_GetItemCommandError(output, context);
1520
- }
1521
- const data = await parseBody(output.body, context);
1522
- let contents = {};
1523
- contents = de_GetItemOutput(data, context);
1524
- const response = {
1525
- $metadata: deserializeMetadata(output),
1526
- ...contents,
1527
- };
1528
- return response;
1529
- };
1530
- exports.de_GetItemCommand = de_GetItemCommand;
1531
- const de_GetItemCommandError = async (output, context) => {
1532
- const parsedOutput = {
1533
- ...output,
1534
- body: await parseErrorBody(output.body, context),
1535
- };
1536
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1537
- switch (errorCode) {
1538
- case "InternalServerError":
1539
- case "com.amazonaws.dynamodb#InternalServerError":
1540
- throw await de_InternalServerErrorRes(parsedOutput, context);
1541
- case "InvalidEndpointException":
1542
- case "com.amazonaws.dynamodb#InvalidEndpointException":
1543
- throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
1544
- case "ProvisionedThroughputExceededException":
1545
- case "com.amazonaws.dynamodb#ProvisionedThroughputExceededException":
1546
- throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
1547
- case "RequestLimitExceeded":
1548
- case "com.amazonaws.dynamodb#RequestLimitExceeded":
1549
- throw await de_RequestLimitExceededRes(parsedOutput, context);
1550
- case "ResourceNotFoundException":
1551
- case "com.amazonaws.dynamodb#ResourceNotFoundException":
1552
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1553
- default:
1554
- const parsedBody = parsedOutput.body;
1555
- return throwDefaultError({
1556
- output,
1557
- parsedBody,
1558
- errorCode,
1559
- });
1560
- }
1561
- };
1562
- const de_ImportTableCommand = async (output, context) => {
1563
- if (output.statusCode >= 300) {
1564
- return de_ImportTableCommandError(output, context);
1565
- }
1566
- const data = await parseBody(output.body, context);
1567
- let contents = {};
1568
- contents = de_ImportTableOutput(data, context);
1569
- const response = {
1570
- $metadata: deserializeMetadata(output),
1571
- ...contents,
1572
- };
1573
- return response;
1574
- };
1575
- exports.de_ImportTableCommand = de_ImportTableCommand;
1576
- const de_ImportTableCommandError = async (output, context) => {
1577
- const parsedOutput = {
1578
- ...output,
1579
- body: await parseErrorBody(output.body, context),
1580
- };
1581
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1582
- switch (errorCode) {
1583
- case "ImportConflictException":
1584
- case "com.amazonaws.dynamodb#ImportConflictException":
1585
- throw await de_ImportConflictExceptionRes(parsedOutput, context);
1586
- case "LimitExceededException":
1587
- case "com.amazonaws.dynamodb#LimitExceededException":
1588
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
1589
- case "ResourceInUseException":
1590
- case "com.amazonaws.dynamodb#ResourceInUseException":
1591
- throw await de_ResourceInUseExceptionRes(parsedOutput, context);
1592
- default:
1593
- const parsedBody = parsedOutput.body;
1594
- return throwDefaultError({
1595
- output,
1596
- parsedBody,
1597
- errorCode,
1598
- });
1599
- }
1600
- };
1601
- const de_ListBackupsCommand = async (output, context) => {
1602
- if (output.statusCode >= 300) {
1603
- return de_ListBackupsCommandError(output, context);
1604
- }
1605
- const data = await parseBody(output.body, context);
1606
- let contents = {};
1607
- contents = de_ListBackupsOutput(data, context);
1608
- const response = {
1609
- $metadata: deserializeMetadata(output),
1610
- ...contents,
1611
- };
1612
- return response;
1613
- };
1614
- exports.de_ListBackupsCommand = de_ListBackupsCommand;
1615
- const de_ListBackupsCommandError = async (output, context) => {
1616
- const parsedOutput = {
1617
- ...output,
1618
- body: await parseErrorBody(output.body, context),
1619
- };
1620
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1621
- switch (errorCode) {
1622
- case "InternalServerError":
1623
- case "com.amazonaws.dynamodb#InternalServerError":
1624
- throw await de_InternalServerErrorRes(parsedOutput, context);
1625
- case "InvalidEndpointException":
1626
- case "com.amazonaws.dynamodb#InvalidEndpointException":
1627
- throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
1628
- default:
1629
- const parsedBody = parsedOutput.body;
1630
- return throwDefaultError({
1631
- output,
1632
- parsedBody,
1633
- errorCode,
1634
- });
1635
- }
1636
- };
1637
- const de_ListContributorInsightsCommand = async (output, context) => {
1638
- if (output.statusCode >= 300) {
1639
- return de_ListContributorInsightsCommandError(output, context);
1640
- }
1641
- const data = await parseBody(output.body, context);
1642
- let contents = {};
1643
- contents = (0, smithy_client_1._json)(data);
1644
- const response = {
1645
- $metadata: deserializeMetadata(output),
1646
- ...contents,
1647
- };
1648
- return response;
1649
- };
1650
- exports.de_ListContributorInsightsCommand = de_ListContributorInsightsCommand;
1651
- const de_ListContributorInsightsCommandError = async (output, context) => {
1652
- const parsedOutput = {
1653
- ...output,
1654
- body: await parseErrorBody(output.body, context),
1655
- };
1656
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1657
- switch (errorCode) {
1658
- case "InternalServerError":
1659
- case "com.amazonaws.dynamodb#InternalServerError":
1660
- throw await de_InternalServerErrorRes(parsedOutput, context);
1661
- case "ResourceNotFoundException":
1662
- case "com.amazonaws.dynamodb#ResourceNotFoundException":
1663
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1664
- default:
1665
- const parsedBody = parsedOutput.body;
1666
- return throwDefaultError({
1667
- output,
1668
- parsedBody,
1669
- errorCode,
1670
- });
1671
- }
1672
- };
1673
- const de_ListExportsCommand = async (output, context) => {
1674
- if (output.statusCode >= 300) {
1675
- return de_ListExportsCommandError(output, context);
1676
- }
1677
- const data = await parseBody(output.body, context);
1678
- let contents = {};
1679
- contents = (0, smithy_client_1._json)(data);
1680
- const response = {
1681
- $metadata: deserializeMetadata(output),
1682
- ...contents,
1683
- };
1684
- return response;
1685
- };
1686
- exports.de_ListExportsCommand = de_ListExportsCommand;
1687
- const de_ListExportsCommandError = async (output, context) => {
1688
- const parsedOutput = {
1689
- ...output,
1690
- body: await parseErrorBody(output.body, context),
1691
- };
1692
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1693
- switch (errorCode) {
1694
- case "InternalServerError":
1695
- case "com.amazonaws.dynamodb#InternalServerError":
1696
- throw await de_InternalServerErrorRes(parsedOutput, context);
1697
- case "LimitExceededException":
1698
- case "com.amazonaws.dynamodb#LimitExceededException":
1699
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
1700
- default:
1701
- const parsedBody = parsedOutput.body;
1702
- return throwDefaultError({
1703
- output,
1704
- parsedBody,
1705
- errorCode,
1706
- });
1707
- }
1708
- };
1709
- const de_ListGlobalTablesCommand = async (output, context) => {
1710
- if (output.statusCode >= 300) {
1711
- return de_ListGlobalTablesCommandError(output, context);
1712
- }
1713
- const data = await parseBody(output.body, context);
1714
- let contents = {};
1715
- contents = (0, smithy_client_1._json)(data);
1716
- const response = {
1717
- $metadata: deserializeMetadata(output),
1718
- ...contents,
1719
- };
1720
- return response;
1721
- };
1722
- exports.de_ListGlobalTablesCommand = de_ListGlobalTablesCommand;
1723
- const de_ListGlobalTablesCommandError = async (output, context) => {
1724
- const parsedOutput = {
1725
- ...output,
1726
- body: await parseErrorBody(output.body, context),
1727
- };
1728
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1729
- switch (errorCode) {
1730
- case "InternalServerError":
1731
- case "com.amazonaws.dynamodb#InternalServerError":
1732
- throw await de_InternalServerErrorRes(parsedOutput, context);
1733
- case "InvalidEndpointException":
1734
- case "com.amazonaws.dynamodb#InvalidEndpointException":
1735
- throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
1736
- default:
1737
- const parsedBody = parsedOutput.body;
1738
- return throwDefaultError({
1739
- output,
1740
- parsedBody,
1741
- errorCode,
1742
- });
1743
- }
1744
- };
1745
- const de_ListImportsCommand = async (output, context) => {
1746
- if (output.statusCode >= 300) {
1747
- return de_ListImportsCommandError(output, context);
1748
- }
1749
- const data = await parseBody(output.body, context);
1750
- let contents = {};
1751
- contents = de_ListImportsOutput(data, context);
1752
- const response = {
1753
- $metadata: deserializeMetadata(output),
1754
- ...contents,
1755
- };
1756
- return response;
1757
- };
1758
- exports.de_ListImportsCommand = de_ListImportsCommand;
1759
- const de_ListImportsCommandError = async (output, context) => {
1760
- const parsedOutput = {
1761
- ...output,
1762
- body: await parseErrorBody(output.body, context),
1763
- };
1764
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1765
- switch (errorCode) {
1766
- case "LimitExceededException":
1767
- case "com.amazonaws.dynamodb#LimitExceededException":
1768
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
1769
- default:
1770
- const parsedBody = parsedOutput.body;
1771
- return throwDefaultError({
1772
- output,
1773
- parsedBody,
1774
- errorCode,
1775
- });
1776
- }
1777
- };
1778
- const de_ListTablesCommand = async (output, context) => {
1779
- if (output.statusCode >= 300) {
1780
- return de_ListTablesCommandError(output, context);
1781
- }
1782
- const data = await parseBody(output.body, context);
1783
- let contents = {};
1784
- contents = (0, smithy_client_1._json)(data);
1785
- const response = {
1786
- $metadata: deserializeMetadata(output),
1787
- ...contents,
1788
- };
1789
- return response;
1790
- };
1791
- exports.de_ListTablesCommand = de_ListTablesCommand;
1792
- const de_ListTablesCommandError = async (output, context) => {
1793
- const parsedOutput = {
1794
- ...output,
1795
- body: await parseErrorBody(output.body, context),
1796
- };
1797
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1798
- switch (errorCode) {
1799
- case "InternalServerError":
1800
- case "com.amazonaws.dynamodb#InternalServerError":
1801
- throw await de_InternalServerErrorRes(parsedOutput, context);
1802
- case "InvalidEndpointException":
1803
- case "com.amazonaws.dynamodb#InvalidEndpointException":
1804
- throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
1805
- default:
1806
- const parsedBody = parsedOutput.body;
1807
- return throwDefaultError({
1808
- output,
1809
- parsedBody,
1810
- errorCode,
1811
- });
1812
- }
1813
- };
1814
- const de_ListTagsOfResourceCommand = async (output, context) => {
1815
- if (output.statusCode >= 300) {
1816
- return de_ListTagsOfResourceCommandError(output, context);
1817
- }
1818
- const data = await parseBody(output.body, context);
1819
- let contents = {};
1820
- contents = (0, smithy_client_1._json)(data);
1821
- const response = {
1822
- $metadata: deserializeMetadata(output),
1823
- ...contents,
1824
- };
1825
- return response;
1826
- };
1827
- exports.de_ListTagsOfResourceCommand = de_ListTagsOfResourceCommand;
1828
- const de_ListTagsOfResourceCommandError = async (output, context) => {
1829
- const parsedOutput = {
1830
- ...output,
1831
- body: await parseErrorBody(output.body, context),
1832
- };
1833
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1834
- switch (errorCode) {
1835
- case "InternalServerError":
1836
- case "com.amazonaws.dynamodb#InternalServerError":
1837
- throw await de_InternalServerErrorRes(parsedOutput, context);
1838
- case "InvalidEndpointException":
1839
- case "com.amazonaws.dynamodb#InvalidEndpointException":
1840
- throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
1841
- case "ResourceNotFoundException":
1842
- case "com.amazonaws.dynamodb#ResourceNotFoundException":
1843
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1844
- default:
1845
- const parsedBody = parsedOutput.body;
1846
- return throwDefaultError({
1847
- output,
1848
- parsedBody,
1849
- errorCode,
1850
- });
1851
- }
1852
- };
1853
- const de_PutItemCommand = async (output, context) => {
1854
- if (output.statusCode >= 300) {
1855
- return de_PutItemCommandError(output, context);
1856
- }
1857
- const data = await parseBody(output.body, context);
1858
- let contents = {};
1859
- contents = de_PutItemOutput(data, context);
1860
- const response = {
1861
- $metadata: deserializeMetadata(output),
1862
- ...contents,
1863
- };
1864
- return response;
1865
- };
1866
- exports.de_PutItemCommand = de_PutItemCommand;
1867
- const de_PutItemCommandError = async (output, context) => {
1868
- const parsedOutput = {
1869
- ...output,
1870
- body: await parseErrorBody(output.body, context),
1871
- };
1872
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1873
- switch (errorCode) {
1874
- case "ConditionalCheckFailedException":
1875
- case "com.amazonaws.dynamodb#ConditionalCheckFailedException":
1876
- throw await de_ConditionalCheckFailedExceptionRes(parsedOutput, context);
1877
- case "InternalServerError":
1878
- case "com.amazonaws.dynamodb#InternalServerError":
1879
- throw await de_InternalServerErrorRes(parsedOutput, context);
1880
- case "InvalidEndpointException":
1881
- case "com.amazonaws.dynamodb#InvalidEndpointException":
1882
- throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
1883
- case "ItemCollectionSizeLimitExceededException":
1884
- case "com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException":
1885
- throw await de_ItemCollectionSizeLimitExceededExceptionRes(parsedOutput, context);
1886
- case "ProvisionedThroughputExceededException":
1887
- case "com.amazonaws.dynamodb#ProvisionedThroughputExceededException":
1888
- throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
1889
- case "RequestLimitExceeded":
1890
- case "com.amazonaws.dynamodb#RequestLimitExceeded":
1891
- throw await de_RequestLimitExceededRes(parsedOutput, context);
1892
- case "ResourceNotFoundException":
1893
- case "com.amazonaws.dynamodb#ResourceNotFoundException":
1894
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1895
- case "TransactionConflictException":
1896
- case "com.amazonaws.dynamodb#TransactionConflictException":
1897
- throw await de_TransactionConflictExceptionRes(parsedOutput, context);
1898
- default:
1899
- const parsedBody = parsedOutput.body;
1900
- return throwDefaultError({
1901
- output,
1902
- parsedBody,
1903
- errorCode,
1904
- });
1905
- }
1906
- };
1907
- const de_QueryCommand = async (output, context) => {
1908
- if (output.statusCode >= 300) {
1909
- return de_QueryCommandError(output, context);
1910
- }
1911
- const data = await parseBody(output.body, context);
1912
- let contents = {};
1913
- contents = de_QueryOutput(data, context);
1914
- const response = {
1915
- $metadata: deserializeMetadata(output),
1916
- ...contents,
1917
- };
1918
- return response;
1919
- };
1920
- exports.de_QueryCommand = de_QueryCommand;
1921
- const de_QueryCommandError = async (output, context) => {
1922
- const parsedOutput = {
1923
- ...output,
1924
- body: await parseErrorBody(output.body, context),
1925
- };
1926
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1927
- switch (errorCode) {
1928
- case "InternalServerError":
1929
- case "com.amazonaws.dynamodb#InternalServerError":
1930
- throw await de_InternalServerErrorRes(parsedOutput, context);
1931
- case "InvalidEndpointException":
1932
- case "com.amazonaws.dynamodb#InvalidEndpointException":
1933
- throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
1934
- case "ProvisionedThroughputExceededException":
1935
- case "com.amazonaws.dynamodb#ProvisionedThroughputExceededException":
1936
- throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
1937
- case "RequestLimitExceeded":
1938
- case "com.amazonaws.dynamodb#RequestLimitExceeded":
1939
- throw await de_RequestLimitExceededRes(parsedOutput, context);
1940
- case "ResourceNotFoundException":
1941
- case "com.amazonaws.dynamodb#ResourceNotFoundException":
1942
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1943
- default:
1944
- const parsedBody = parsedOutput.body;
1945
- return throwDefaultError({
1946
- output,
1947
- parsedBody,
1948
- errorCode,
1949
- });
1950
- }
1951
- };
1952
- const de_RestoreTableFromBackupCommand = async (output, context) => {
1953
- if (output.statusCode >= 300) {
1954
- return de_RestoreTableFromBackupCommandError(output, context);
1955
- }
1956
- const data = await parseBody(output.body, context);
1957
- let contents = {};
1958
- contents = de_RestoreTableFromBackupOutput(data, context);
1959
- const response = {
1960
- $metadata: deserializeMetadata(output),
1961
- ...contents,
1962
- };
1963
- return response;
1964
- };
1965
- exports.de_RestoreTableFromBackupCommand = de_RestoreTableFromBackupCommand;
1966
- const de_RestoreTableFromBackupCommandError = async (output, context) => {
1967
- const parsedOutput = {
1968
- ...output,
1969
- body: await parseErrorBody(output.body, context),
1970
- };
1971
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1972
- switch (errorCode) {
1973
- case "BackupInUseException":
1974
- case "com.amazonaws.dynamodb#BackupInUseException":
1975
- throw await de_BackupInUseExceptionRes(parsedOutput, context);
1976
- case "BackupNotFoundException":
1977
- case "com.amazonaws.dynamodb#BackupNotFoundException":
1978
- throw await de_BackupNotFoundExceptionRes(parsedOutput, context);
1979
- case "InternalServerError":
1980
- case "com.amazonaws.dynamodb#InternalServerError":
1981
- throw await de_InternalServerErrorRes(parsedOutput, context);
1982
- case "InvalidEndpointException":
1983
- case "com.amazonaws.dynamodb#InvalidEndpointException":
1984
- throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
1985
- case "LimitExceededException":
1986
- case "com.amazonaws.dynamodb#LimitExceededException":
1987
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
1988
- case "TableAlreadyExistsException":
1989
- case "com.amazonaws.dynamodb#TableAlreadyExistsException":
1990
- throw await de_TableAlreadyExistsExceptionRes(parsedOutput, context);
1991
- case "TableInUseException":
1992
- case "com.amazonaws.dynamodb#TableInUseException":
1993
- throw await de_TableInUseExceptionRes(parsedOutput, context);
1994
- default:
1995
- const parsedBody = parsedOutput.body;
1996
- return throwDefaultError({
1997
- output,
1998
- parsedBody,
1999
- errorCode,
2000
- });
2001
- }
2002
- };
2003
- const de_RestoreTableToPointInTimeCommand = async (output, context) => {
2004
- if (output.statusCode >= 300) {
2005
- return de_RestoreTableToPointInTimeCommandError(output, context);
2006
- }
2007
- const data = await parseBody(output.body, context);
2008
- let contents = {};
2009
- contents = de_RestoreTableToPointInTimeOutput(data, context);
2010
- const response = {
2011
- $metadata: deserializeMetadata(output),
2012
- ...contents,
2013
- };
2014
- return response;
2015
- };
2016
- exports.de_RestoreTableToPointInTimeCommand = de_RestoreTableToPointInTimeCommand;
2017
- const de_RestoreTableToPointInTimeCommandError = async (output, context) => {
2018
- const parsedOutput = {
2019
- ...output,
2020
- body: await parseErrorBody(output.body, context),
2021
- };
2022
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2023
- switch (errorCode) {
2024
- case "InternalServerError":
2025
- case "com.amazonaws.dynamodb#InternalServerError":
2026
- throw await de_InternalServerErrorRes(parsedOutput, context);
2027
- case "InvalidEndpointException":
2028
- case "com.amazonaws.dynamodb#InvalidEndpointException":
2029
- throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
2030
- case "InvalidRestoreTimeException":
2031
- case "com.amazonaws.dynamodb#InvalidRestoreTimeException":
2032
- throw await de_InvalidRestoreTimeExceptionRes(parsedOutput, context);
2033
- case "LimitExceededException":
2034
- case "com.amazonaws.dynamodb#LimitExceededException":
2035
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
2036
- case "PointInTimeRecoveryUnavailableException":
2037
- case "com.amazonaws.dynamodb#PointInTimeRecoveryUnavailableException":
2038
- throw await de_PointInTimeRecoveryUnavailableExceptionRes(parsedOutput, context);
2039
- case "TableAlreadyExistsException":
2040
- case "com.amazonaws.dynamodb#TableAlreadyExistsException":
2041
- throw await de_TableAlreadyExistsExceptionRes(parsedOutput, context);
2042
- case "TableInUseException":
2043
- case "com.amazonaws.dynamodb#TableInUseException":
2044
- throw await de_TableInUseExceptionRes(parsedOutput, context);
2045
- case "TableNotFoundException":
2046
- case "com.amazonaws.dynamodb#TableNotFoundException":
2047
- throw await de_TableNotFoundExceptionRes(parsedOutput, context);
2048
- default:
2049
- const parsedBody = parsedOutput.body;
2050
- return throwDefaultError({
2051
- output,
2052
- parsedBody,
2053
- errorCode,
2054
- });
2055
- }
2056
- };
2057
- const de_ScanCommand = async (output, context) => {
2058
- if (output.statusCode >= 300) {
2059
- return de_ScanCommandError(output, context);
2060
- }
2061
- const data = await parseBody(output.body, context);
2062
- let contents = {};
2063
- contents = de_ScanOutput(data, context);
2064
- const response = {
2065
- $metadata: deserializeMetadata(output),
2066
- ...contents,
2067
- };
2068
- return response;
2069
- };
2070
- exports.de_ScanCommand = de_ScanCommand;
2071
- const de_ScanCommandError = async (output, context) => {
2072
- const parsedOutput = {
2073
- ...output,
2074
- body: await parseErrorBody(output.body, context),
2075
- };
2076
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2077
- switch (errorCode) {
2078
- case "InternalServerError":
2079
- case "com.amazonaws.dynamodb#InternalServerError":
2080
- throw await de_InternalServerErrorRes(parsedOutput, context);
2081
- case "InvalidEndpointException":
2082
- case "com.amazonaws.dynamodb#InvalidEndpointException":
2083
- throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
2084
- case "ProvisionedThroughputExceededException":
2085
- case "com.amazonaws.dynamodb#ProvisionedThroughputExceededException":
2086
- throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
2087
- case "RequestLimitExceeded":
2088
- case "com.amazonaws.dynamodb#RequestLimitExceeded":
2089
- throw await de_RequestLimitExceededRes(parsedOutput, context);
2090
- case "ResourceNotFoundException":
2091
- case "com.amazonaws.dynamodb#ResourceNotFoundException":
2092
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2093
- default:
2094
- const parsedBody = parsedOutput.body;
2095
- return throwDefaultError({
2096
- output,
2097
- parsedBody,
2098
- errorCode,
2099
- });
2100
- }
2101
- };
2102
- const de_TagResourceCommand = async (output, context) => {
2103
- if (output.statusCode >= 300) {
2104
- return de_TagResourceCommandError(output, context);
2105
- }
2106
- await (0, smithy_client_1.collectBody)(output.body, context);
2107
- const response = {
2108
- $metadata: deserializeMetadata(output),
2109
- };
2110
- return response;
2111
- };
2112
- exports.de_TagResourceCommand = de_TagResourceCommand;
2113
- const de_TagResourceCommandError = async (output, context) => {
2114
- const parsedOutput = {
2115
- ...output,
2116
- body: await parseErrorBody(output.body, context),
2117
- };
2118
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2119
- switch (errorCode) {
2120
- case "InternalServerError":
2121
- case "com.amazonaws.dynamodb#InternalServerError":
2122
- throw await de_InternalServerErrorRes(parsedOutput, context);
2123
- case "InvalidEndpointException":
2124
- case "com.amazonaws.dynamodb#InvalidEndpointException":
2125
- throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
2126
- case "LimitExceededException":
2127
- case "com.amazonaws.dynamodb#LimitExceededException":
2128
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
2129
- case "ResourceInUseException":
2130
- case "com.amazonaws.dynamodb#ResourceInUseException":
2131
- throw await de_ResourceInUseExceptionRes(parsedOutput, context);
2132
- case "ResourceNotFoundException":
2133
- case "com.amazonaws.dynamodb#ResourceNotFoundException":
2134
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2135
- default:
2136
- const parsedBody = parsedOutput.body;
2137
- return throwDefaultError({
2138
- output,
2139
- parsedBody,
2140
- errorCode,
2141
- });
2142
- }
2143
- };
2144
- const de_TransactGetItemsCommand = async (output, context) => {
2145
- if (output.statusCode >= 300) {
2146
- return de_TransactGetItemsCommandError(output, context);
2147
- }
2148
- const data = await parseBody(output.body, context);
2149
- let contents = {};
2150
- contents = de_TransactGetItemsOutput(data, context);
2151
- const response = {
2152
- $metadata: deserializeMetadata(output),
2153
- ...contents,
2154
- };
2155
- return response;
2156
- };
2157
- exports.de_TransactGetItemsCommand = de_TransactGetItemsCommand;
2158
- const de_TransactGetItemsCommandError = async (output, context) => {
2159
- const parsedOutput = {
2160
- ...output,
2161
- body: await parseErrorBody(output.body, context),
2162
- };
2163
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2164
- switch (errorCode) {
2165
- case "InternalServerError":
2166
- case "com.amazonaws.dynamodb#InternalServerError":
2167
- throw await de_InternalServerErrorRes(parsedOutput, context);
2168
- case "InvalidEndpointException":
2169
- case "com.amazonaws.dynamodb#InvalidEndpointException":
2170
- throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
2171
- case "ProvisionedThroughputExceededException":
2172
- case "com.amazonaws.dynamodb#ProvisionedThroughputExceededException":
2173
- throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
2174
- case "RequestLimitExceeded":
2175
- case "com.amazonaws.dynamodb#RequestLimitExceeded":
2176
- throw await de_RequestLimitExceededRes(parsedOutput, context);
2177
- case "ResourceNotFoundException":
2178
- case "com.amazonaws.dynamodb#ResourceNotFoundException":
2179
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2180
- case "TransactionCanceledException":
2181
- case "com.amazonaws.dynamodb#TransactionCanceledException":
2182
- throw await de_TransactionCanceledExceptionRes(parsedOutput, context);
2183
- default:
2184
- const parsedBody = parsedOutput.body;
2185
- return throwDefaultError({
2186
- output,
2187
- parsedBody,
2188
- errorCode,
2189
- });
2190
- }
2191
- };
2192
- const de_TransactWriteItemsCommand = async (output, context) => {
2193
- if (output.statusCode >= 300) {
2194
- return de_TransactWriteItemsCommandError(output, context);
2195
- }
2196
- const data = await parseBody(output.body, context);
2197
- let contents = {};
2198
- contents = de_TransactWriteItemsOutput(data, context);
2199
- const response = {
2200
- $metadata: deserializeMetadata(output),
2201
- ...contents,
2202
- };
2203
- return response;
2204
- };
2205
- exports.de_TransactWriteItemsCommand = de_TransactWriteItemsCommand;
2206
- const de_TransactWriteItemsCommandError = async (output, context) => {
2207
- const parsedOutput = {
2208
- ...output,
2209
- body: await parseErrorBody(output.body, context),
2210
- };
2211
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2212
- switch (errorCode) {
2213
- case "IdempotentParameterMismatchException":
2214
- case "com.amazonaws.dynamodb#IdempotentParameterMismatchException":
2215
- throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
2216
- case "InternalServerError":
2217
- case "com.amazonaws.dynamodb#InternalServerError":
2218
- throw await de_InternalServerErrorRes(parsedOutput, context);
2219
- case "InvalidEndpointException":
2220
- case "com.amazonaws.dynamodb#InvalidEndpointException":
2221
- throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
2222
- case "ProvisionedThroughputExceededException":
2223
- case "com.amazonaws.dynamodb#ProvisionedThroughputExceededException":
2224
- throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
2225
- case "RequestLimitExceeded":
2226
- case "com.amazonaws.dynamodb#RequestLimitExceeded":
2227
- throw await de_RequestLimitExceededRes(parsedOutput, context);
2228
- case "ResourceNotFoundException":
2229
- case "com.amazonaws.dynamodb#ResourceNotFoundException":
2230
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2231
- case "TransactionCanceledException":
2232
- case "com.amazonaws.dynamodb#TransactionCanceledException":
2233
- throw await de_TransactionCanceledExceptionRes(parsedOutput, context);
2234
- case "TransactionInProgressException":
2235
- case "com.amazonaws.dynamodb#TransactionInProgressException":
2236
- throw await de_TransactionInProgressExceptionRes(parsedOutput, context);
2237
- default:
2238
- const parsedBody = parsedOutput.body;
2239
- return throwDefaultError({
2240
- output,
2241
- parsedBody,
2242
- errorCode,
2243
- });
2244
- }
2245
- };
2246
- const de_UntagResourceCommand = async (output, context) => {
2247
- if (output.statusCode >= 300) {
2248
- return de_UntagResourceCommandError(output, context);
2249
- }
2250
- await (0, smithy_client_1.collectBody)(output.body, context);
2251
- const response = {
2252
- $metadata: deserializeMetadata(output),
2253
- };
2254
- return response;
2255
- };
2256
- exports.de_UntagResourceCommand = de_UntagResourceCommand;
2257
- const de_UntagResourceCommandError = async (output, context) => {
2258
- const parsedOutput = {
2259
- ...output,
2260
- body: await parseErrorBody(output.body, context),
2261
- };
2262
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2263
- switch (errorCode) {
2264
- case "InternalServerError":
2265
- case "com.amazonaws.dynamodb#InternalServerError":
2266
- throw await de_InternalServerErrorRes(parsedOutput, context);
2267
- case "InvalidEndpointException":
2268
- case "com.amazonaws.dynamodb#InvalidEndpointException":
2269
- throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
2270
- case "LimitExceededException":
2271
- case "com.amazonaws.dynamodb#LimitExceededException":
2272
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
2273
- case "ResourceInUseException":
2274
- case "com.amazonaws.dynamodb#ResourceInUseException":
2275
- throw await de_ResourceInUseExceptionRes(parsedOutput, context);
2276
- case "ResourceNotFoundException":
2277
- case "com.amazonaws.dynamodb#ResourceNotFoundException":
2278
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2279
- default:
2280
- const parsedBody = parsedOutput.body;
2281
- return throwDefaultError({
2282
- output,
2283
- parsedBody,
2284
- errorCode,
2285
- });
2286
- }
2287
- };
2288
- const de_UpdateContinuousBackupsCommand = async (output, context) => {
2289
- if (output.statusCode >= 300) {
2290
- return de_UpdateContinuousBackupsCommandError(output, context);
2291
- }
2292
- const data = await parseBody(output.body, context);
2293
- let contents = {};
2294
- contents = de_UpdateContinuousBackupsOutput(data, context);
2295
- const response = {
2296
- $metadata: deserializeMetadata(output),
2297
- ...contents,
2298
- };
2299
- return response;
2300
- };
2301
- exports.de_UpdateContinuousBackupsCommand = de_UpdateContinuousBackupsCommand;
2302
- const de_UpdateContinuousBackupsCommandError = async (output, context) => {
2303
- const parsedOutput = {
2304
- ...output,
2305
- body: await parseErrorBody(output.body, context),
2306
- };
2307
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2308
- switch (errorCode) {
2309
- case "ContinuousBackupsUnavailableException":
2310
- case "com.amazonaws.dynamodb#ContinuousBackupsUnavailableException":
2311
- throw await de_ContinuousBackupsUnavailableExceptionRes(parsedOutput, context);
2312
- case "InternalServerError":
2313
- case "com.amazonaws.dynamodb#InternalServerError":
2314
- throw await de_InternalServerErrorRes(parsedOutput, context);
2315
- case "InvalidEndpointException":
2316
- case "com.amazonaws.dynamodb#InvalidEndpointException":
2317
- throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
2318
- case "TableNotFoundException":
2319
- case "com.amazonaws.dynamodb#TableNotFoundException":
2320
- throw await de_TableNotFoundExceptionRes(parsedOutput, context);
2321
- default:
2322
- const parsedBody = parsedOutput.body;
2323
- return throwDefaultError({
2324
- output,
2325
- parsedBody,
2326
- errorCode,
2327
- });
2328
- }
2329
- };
2330
- const de_UpdateContributorInsightsCommand = async (output, context) => {
2331
- if (output.statusCode >= 300) {
2332
- return de_UpdateContributorInsightsCommandError(output, context);
2333
- }
2334
- const data = await parseBody(output.body, context);
2335
- let contents = {};
2336
- contents = (0, smithy_client_1._json)(data);
2337
- const response = {
2338
- $metadata: deserializeMetadata(output),
2339
- ...contents,
2340
- };
2341
- return response;
2342
- };
2343
- exports.de_UpdateContributorInsightsCommand = de_UpdateContributorInsightsCommand;
2344
- const de_UpdateContributorInsightsCommandError = async (output, context) => {
2345
- const parsedOutput = {
2346
- ...output,
2347
- body: await parseErrorBody(output.body, context),
2348
- };
2349
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2350
- switch (errorCode) {
2351
- case "InternalServerError":
2352
- case "com.amazonaws.dynamodb#InternalServerError":
2353
- throw await de_InternalServerErrorRes(parsedOutput, context);
2354
- case "ResourceNotFoundException":
2355
- case "com.amazonaws.dynamodb#ResourceNotFoundException":
2356
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2357
- default:
2358
- const parsedBody = parsedOutput.body;
2359
- return throwDefaultError({
2360
- output,
2361
- parsedBody,
2362
- errorCode,
2363
- });
2364
- }
2365
- };
2366
- const de_UpdateGlobalTableCommand = async (output, context) => {
2367
- if (output.statusCode >= 300) {
2368
- return de_UpdateGlobalTableCommandError(output, context);
2369
- }
2370
- const data = await parseBody(output.body, context);
2371
- let contents = {};
2372
- contents = de_UpdateGlobalTableOutput(data, context);
2373
- const response = {
2374
- $metadata: deserializeMetadata(output),
2375
- ...contents,
2376
- };
2377
- return response;
2378
- };
2379
- exports.de_UpdateGlobalTableCommand = de_UpdateGlobalTableCommand;
2380
- const de_UpdateGlobalTableCommandError = async (output, context) => {
2381
- const parsedOutput = {
2382
- ...output,
2383
- body: await parseErrorBody(output.body, context),
2384
- };
2385
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2386
- switch (errorCode) {
2387
- case "GlobalTableNotFoundException":
2388
- case "com.amazonaws.dynamodb#GlobalTableNotFoundException":
2389
- throw await de_GlobalTableNotFoundExceptionRes(parsedOutput, context);
2390
- case "InternalServerError":
2391
- case "com.amazonaws.dynamodb#InternalServerError":
2392
- throw await de_InternalServerErrorRes(parsedOutput, context);
2393
- case "InvalidEndpointException":
2394
- case "com.amazonaws.dynamodb#InvalidEndpointException":
2395
- throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
2396
- case "ReplicaAlreadyExistsException":
2397
- case "com.amazonaws.dynamodb#ReplicaAlreadyExistsException":
2398
- throw await de_ReplicaAlreadyExistsExceptionRes(parsedOutput, context);
2399
- case "ReplicaNotFoundException":
2400
- case "com.amazonaws.dynamodb#ReplicaNotFoundException":
2401
- throw await de_ReplicaNotFoundExceptionRes(parsedOutput, context);
2402
- case "TableNotFoundException":
2403
- case "com.amazonaws.dynamodb#TableNotFoundException":
2404
- throw await de_TableNotFoundExceptionRes(parsedOutput, context);
2405
- default:
2406
- const parsedBody = parsedOutput.body;
2407
- return throwDefaultError({
2408
- output,
2409
- parsedBody,
2410
- errorCode,
2411
- });
2412
- }
2413
- };
2414
- const de_UpdateGlobalTableSettingsCommand = async (output, context) => {
2415
- if (output.statusCode >= 300) {
2416
- return de_UpdateGlobalTableSettingsCommandError(output, context);
2417
- }
2418
- const data = await parseBody(output.body, context);
2419
- let contents = {};
2420
- contents = de_UpdateGlobalTableSettingsOutput(data, context);
2421
- const response = {
2422
- $metadata: deserializeMetadata(output),
2423
- ...contents,
2424
- };
2425
- return response;
2426
- };
2427
- exports.de_UpdateGlobalTableSettingsCommand = de_UpdateGlobalTableSettingsCommand;
2428
- const de_UpdateGlobalTableSettingsCommandError = async (output, context) => {
2429
- const parsedOutput = {
2430
- ...output,
2431
- body: await parseErrorBody(output.body, context),
2432
- };
2433
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2434
- switch (errorCode) {
2435
- case "GlobalTableNotFoundException":
2436
- case "com.amazonaws.dynamodb#GlobalTableNotFoundException":
2437
- throw await de_GlobalTableNotFoundExceptionRes(parsedOutput, context);
2438
- case "IndexNotFoundException":
2439
- case "com.amazonaws.dynamodb#IndexNotFoundException":
2440
- throw await de_IndexNotFoundExceptionRes(parsedOutput, context);
2441
- case "InternalServerError":
2442
- case "com.amazonaws.dynamodb#InternalServerError":
2443
- throw await de_InternalServerErrorRes(parsedOutput, context);
2444
- case "InvalidEndpointException":
2445
- case "com.amazonaws.dynamodb#InvalidEndpointException":
2446
- throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
2447
- case "LimitExceededException":
2448
- case "com.amazonaws.dynamodb#LimitExceededException":
2449
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
2450
- case "ReplicaNotFoundException":
2451
- case "com.amazonaws.dynamodb#ReplicaNotFoundException":
2452
- throw await de_ReplicaNotFoundExceptionRes(parsedOutput, context);
2453
- case "ResourceInUseException":
2454
- case "com.amazonaws.dynamodb#ResourceInUseException":
2455
- throw await de_ResourceInUseExceptionRes(parsedOutput, context);
2456
- default:
2457
- const parsedBody = parsedOutput.body;
2458
- return throwDefaultError({
2459
- output,
2460
- parsedBody,
2461
- errorCode,
2462
- });
2463
- }
2464
- };
2465
- const de_UpdateItemCommand = async (output, context) => {
2466
- if (output.statusCode >= 300) {
2467
- return de_UpdateItemCommandError(output, context);
2468
- }
2469
- const data = await parseBody(output.body, context);
2470
- let contents = {};
2471
- contents = de_UpdateItemOutput(data, context);
2472
- const response = {
2473
- $metadata: deserializeMetadata(output),
2474
- ...contents,
2475
- };
2476
- return response;
2477
- };
2478
- exports.de_UpdateItemCommand = de_UpdateItemCommand;
2479
- const de_UpdateItemCommandError = async (output, context) => {
2480
- const parsedOutput = {
2481
- ...output,
2482
- body: await parseErrorBody(output.body, context),
2483
- };
2484
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2485
- switch (errorCode) {
2486
- case "ConditionalCheckFailedException":
2487
- case "com.amazonaws.dynamodb#ConditionalCheckFailedException":
2488
- throw await de_ConditionalCheckFailedExceptionRes(parsedOutput, context);
2489
- case "InternalServerError":
2490
- case "com.amazonaws.dynamodb#InternalServerError":
2491
- throw await de_InternalServerErrorRes(parsedOutput, context);
2492
- case "InvalidEndpointException":
2493
- case "com.amazonaws.dynamodb#InvalidEndpointException":
2494
- throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
2495
- case "ItemCollectionSizeLimitExceededException":
2496
- case "com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException":
2497
- throw await de_ItemCollectionSizeLimitExceededExceptionRes(parsedOutput, context);
2498
- case "ProvisionedThroughputExceededException":
2499
- case "com.amazonaws.dynamodb#ProvisionedThroughputExceededException":
2500
- throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
2501
- case "RequestLimitExceeded":
2502
- case "com.amazonaws.dynamodb#RequestLimitExceeded":
2503
- throw await de_RequestLimitExceededRes(parsedOutput, context);
2504
- case "ResourceNotFoundException":
2505
- case "com.amazonaws.dynamodb#ResourceNotFoundException":
2506
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2507
- case "TransactionConflictException":
2508
- case "com.amazonaws.dynamodb#TransactionConflictException":
2509
- throw await de_TransactionConflictExceptionRes(parsedOutput, context);
2510
- default:
2511
- const parsedBody = parsedOutput.body;
2512
- return throwDefaultError({
2513
- output,
2514
- parsedBody,
2515
- errorCode,
2516
- });
2517
- }
2518
- };
2519
- const de_UpdateTableCommand = async (output, context) => {
2520
- if (output.statusCode >= 300) {
2521
- return de_UpdateTableCommandError(output, context);
2522
- }
2523
- const data = await parseBody(output.body, context);
2524
- let contents = {};
2525
- contents = de_UpdateTableOutput(data, context);
2526
- const response = {
2527
- $metadata: deserializeMetadata(output),
2528
- ...contents,
2529
- };
2530
- return response;
2531
- };
2532
- exports.de_UpdateTableCommand = de_UpdateTableCommand;
2533
- const de_UpdateTableCommandError = async (output, context) => {
2534
- const parsedOutput = {
2535
- ...output,
2536
- body: await parseErrorBody(output.body, context),
2537
- };
2538
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2539
- switch (errorCode) {
2540
- case "InternalServerError":
2541
- case "com.amazonaws.dynamodb#InternalServerError":
2542
- throw await de_InternalServerErrorRes(parsedOutput, context);
2543
- case "InvalidEndpointException":
2544
- case "com.amazonaws.dynamodb#InvalidEndpointException":
2545
- throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
2546
- case "LimitExceededException":
2547
- case "com.amazonaws.dynamodb#LimitExceededException":
2548
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
2549
- case "ResourceInUseException":
2550
- case "com.amazonaws.dynamodb#ResourceInUseException":
2551
- throw await de_ResourceInUseExceptionRes(parsedOutput, context);
2552
- case "ResourceNotFoundException":
2553
- case "com.amazonaws.dynamodb#ResourceNotFoundException":
2554
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2555
- default:
2556
- const parsedBody = parsedOutput.body;
2557
- return throwDefaultError({
2558
- output,
2559
- parsedBody,
2560
- errorCode,
2561
- });
2562
- }
2563
- };
2564
- const de_UpdateTableReplicaAutoScalingCommand = async (output, context) => {
2565
- if (output.statusCode >= 300) {
2566
- return de_UpdateTableReplicaAutoScalingCommandError(output, context);
2567
- }
2568
- const data = await parseBody(output.body, context);
2569
- let contents = {};
2570
- contents = de_UpdateTableReplicaAutoScalingOutput(data, context);
2571
- const response = {
2572
- $metadata: deserializeMetadata(output),
2573
- ...contents,
2574
- };
2575
- return response;
2576
- };
2577
- exports.de_UpdateTableReplicaAutoScalingCommand = de_UpdateTableReplicaAutoScalingCommand;
2578
- const de_UpdateTableReplicaAutoScalingCommandError = async (output, context) => {
2579
- const parsedOutput = {
2580
- ...output,
2581
- body: await parseErrorBody(output.body, context),
2582
- };
2583
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2584
- switch (errorCode) {
2585
- case "InternalServerError":
2586
- case "com.amazonaws.dynamodb#InternalServerError":
2587
- throw await de_InternalServerErrorRes(parsedOutput, context);
2588
- case "LimitExceededException":
2589
- case "com.amazonaws.dynamodb#LimitExceededException":
2590
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
2591
- case "ResourceInUseException":
2592
- case "com.amazonaws.dynamodb#ResourceInUseException":
2593
- throw await de_ResourceInUseExceptionRes(parsedOutput, context);
2594
- case "ResourceNotFoundException":
2595
- case "com.amazonaws.dynamodb#ResourceNotFoundException":
2596
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2597
- default:
2598
- const parsedBody = parsedOutput.body;
2599
- return throwDefaultError({
2600
- output,
2601
- parsedBody,
2602
- errorCode,
2603
- });
2604
- }
2605
- };
2606
- const de_UpdateTimeToLiveCommand = async (output, context) => {
2607
- if (output.statusCode >= 300) {
2608
- return de_UpdateTimeToLiveCommandError(output, context);
2609
- }
2610
- const data = await parseBody(output.body, context);
2611
- let contents = {};
2612
- contents = (0, smithy_client_1._json)(data);
2613
- const response = {
2614
- $metadata: deserializeMetadata(output),
2615
- ...contents,
2616
- };
2617
- return response;
2618
- };
2619
- exports.de_UpdateTimeToLiveCommand = de_UpdateTimeToLiveCommand;
2620
- const de_UpdateTimeToLiveCommandError = async (output, context) => {
2621
- const parsedOutput = {
2622
- ...output,
2623
- body: await parseErrorBody(output.body, context),
2624
- };
2625
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2626
- switch (errorCode) {
2627
- case "InternalServerError":
2628
- case "com.amazonaws.dynamodb#InternalServerError":
2629
- throw await de_InternalServerErrorRes(parsedOutput, context);
2630
- case "InvalidEndpointException":
2631
- case "com.amazonaws.dynamodb#InvalidEndpointException":
2632
- throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
2633
- case "LimitExceededException":
2634
- case "com.amazonaws.dynamodb#LimitExceededException":
2635
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
2636
- case "ResourceInUseException":
2637
- case "com.amazonaws.dynamodb#ResourceInUseException":
2638
- throw await de_ResourceInUseExceptionRes(parsedOutput, context);
2639
- case "ResourceNotFoundException":
2640
- case "com.amazonaws.dynamodb#ResourceNotFoundException":
2641
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2642
- default:
2643
- const parsedBody = parsedOutput.body;
2644
- return throwDefaultError({
2645
- output,
2646
- parsedBody,
2647
- errorCode,
2648
- });
2649
- }
2650
- };
2651
- const de_BackupInUseExceptionRes = async (parsedOutput, context) => {
2652
- const body = parsedOutput.body;
2653
- const deserialized = (0, smithy_client_1._json)(body);
2654
- const exception = new models_0_1.BackupInUseException({
2655
- $metadata: deserializeMetadata(parsedOutput),
2656
- ...deserialized,
2657
- });
2658
- return (0, smithy_client_1.decorateServiceException)(exception, body);
2659
- };
2660
- const de_BackupNotFoundExceptionRes = async (parsedOutput, context) => {
2661
- const body = parsedOutput.body;
2662
- const deserialized = (0, smithy_client_1._json)(body);
2663
- const exception = new models_0_1.BackupNotFoundException({
2664
- $metadata: deserializeMetadata(parsedOutput),
2665
- ...deserialized,
2666
- });
2667
- return (0, smithy_client_1.decorateServiceException)(exception, body);
2668
- };
2669
- const de_ConditionalCheckFailedExceptionRes = async (parsedOutput, context) => {
2670
- const body = parsedOutput.body;
2671
- const deserialized = de_ConditionalCheckFailedException(body, context);
2672
- const exception = new models_0_1.ConditionalCheckFailedException({
2673
- $metadata: deserializeMetadata(parsedOutput),
2674
- ...deserialized,
2675
- });
2676
- return (0, smithy_client_1.decorateServiceException)(exception, body);
2677
- };
2678
- const de_ContinuousBackupsUnavailableExceptionRes = async (parsedOutput, context) => {
2679
- const body = parsedOutput.body;
2680
- const deserialized = (0, smithy_client_1._json)(body);
2681
- const exception = new models_0_1.ContinuousBackupsUnavailableException({
2682
- $metadata: deserializeMetadata(parsedOutput),
2683
- ...deserialized,
2684
- });
2685
- return (0, smithy_client_1.decorateServiceException)(exception, body);
2686
- };
2687
- const de_DuplicateItemExceptionRes = async (parsedOutput, context) => {
2688
- const body = parsedOutput.body;
2689
- const deserialized = (0, smithy_client_1._json)(body);
2690
- const exception = new models_0_1.DuplicateItemException({
2691
- $metadata: deserializeMetadata(parsedOutput),
2692
- ...deserialized,
2693
- });
2694
- return (0, smithy_client_1.decorateServiceException)(exception, body);
2695
- };
2696
- const de_ExportConflictExceptionRes = async (parsedOutput, context) => {
2697
- const body = parsedOutput.body;
2698
- const deserialized = (0, smithy_client_1._json)(body);
2699
- const exception = new models_0_1.ExportConflictException({
2700
- $metadata: deserializeMetadata(parsedOutput),
2701
- ...deserialized,
2702
- });
2703
- return (0, smithy_client_1.decorateServiceException)(exception, body);
2704
- };
2705
- const de_ExportNotFoundExceptionRes = async (parsedOutput, context) => {
2706
- const body = parsedOutput.body;
2707
- const deserialized = (0, smithy_client_1._json)(body);
2708
- const exception = new models_0_1.ExportNotFoundException({
2709
- $metadata: deserializeMetadata(parsedOutput),
2710
- ...deserialized,
2711
- });
2712
- return (0, smithy_client_1.decorateServiceException)(exception, body);
2713
- };
2714
- const de_GlobalTableAlreadyExistsExceptionRes = async (parsedOutput, context) => {
2715
- const body = parsedOutput.body;
2716
- const deserialized = (0, smithy_client_1._json)(body);
2717
- const exception = new models_0_1.GlobalTableAlreadyExistsException({
2718
- $metadata: deserializeMetadata(parsedOutput),
2719
- ...deserialized,
2720
- });
2721
- return (0, smithy_client_1.decorateServiceException)(exception, body);
2722
- };
2723
- const de_GlobalTableNotFoundExceptionRes = async (parsedOutput, context) => {
2724
- const body = parsedOutput.body;
2725
- const deserialized = (0, smithy_client_1._json)(body);
2726
- const exception = new models_0_1.GlobalTableNotFoundException({
2727
- $metadata: deserializeMetadata(parsedOutput),
2728
- ...deserialized,
2729
- });
2730
- return (0, smithy_client_1.decorateServiceException)(exception, body);
2731
- };
2732
- const de_IdempotentParameterMismatchExceptionRes = async (parsedOutput, context) => {
2733
- const body = parsedOutput.body;
2734
- const deserialized = (0, smithy_client_1._json)(body);
2735
- const exception = new models_0_1.IdempotentParameterMismatchException({
2736
- $metadata: deserializeMetadata(parsedOutput),
2737
- ...deserialized,
2738
- });
2739
- return (0, smithy_client_1.decorateServiceException)(exception, body);
2740
- };
2741
- const de_ImportConflictExceptionRes = async (parsedOutput, context) => {
2742
- const body = parsedOutput.body;
2743
- const deserialized = (0, smithy_client_1._json)(body);
2744
- const exception = new models_0_1.ImportConflictException({
2745
- $metadata: deserializeMetadata(parsedOutput),
2746
- ...deserialized,
2747
- });
2748
- return (0, smithy_client_1.decorateServiceException)(exception, body);
2749
- };
2750
- const de_ImportNotFoundExceptionRes = async (parsedOutput, context) => {
2751
- const body = parsedOutput.body;
2752
- const deserialized = (0, smithy_client_1._json)(body);
2753
- const exception = new models_0_1.ImportNotFoundException({
2754
- $metadata: deserializeMetadata(parsedOutput),
2755
- ...deserialized,
2756
- });
2757
- return (0, smithy_client_1.decorateServiceException)(exception, body);
2758
- };
2759
- const de_IndexNotFoundExceptionRes = async (parsedOutput, context) => {
2760
- const body = parsedOutput.body;
2761
- const deserialized = (0, smithy_client_1._json)(body);
2762
- const exception = new models_0_1.IndexNotFoundException({
2763
- $metadata: deserializeMetadata(parsedOutput),
2764
- ...deserialized,
2765
- });
2766
- return (0, smithy_client_1.decorateServiceException)(exception, body);
2767
- };
2768
- const de_InternalServerErrorRes = async (parsedOutput, context) => {
2769
- const body = parsedOutput.body;
2770
- const deserialized = (0, smithy_client_1._json)(body);
2771
- const exception = new models_0_1.InternalServerError({
2772
- $metadata: deserializeMetadata(parsedOutput),
2773
- ...deserialized,
2774
- });
2775
- return (0, smithy_client_1.decorateServiceException)(exception, body);
2776
- };
2777
- const de_InvalidEndpointExceptionRes = async (parsedOutput, context) => {
2778
- const body = parsedOutput.body;
2779
- const deserialized = (0, smithy_client_1._json)(body);
2780
- const exception = new models_0_1.InvalidEndpointException({
2781
- $metadata: deserializeMetadata(parsedOutput),
2782
- ...deserialized,
2783
- });
2784
- return (0, smithy_client_1.decorateServiceException)(exception, body);
2785
- };
2786
- const de_InvalidExportTimeExceptionRes = async (parsedOutput, context) => {
2787
- const body = parsedOutput.body;
2788
- const deserialized = (0, smithy_client_1._json)(body);
2789
- const exception = new models_0_1.InvalidExportTimeException({
2790
- $metadata: deserializeMetadata(parsedOutput),
2791
- ...deserialized,
2792
- });
2793
- return (0, smithy_client_1.decorateServiceException)(exception, body);
2794
- };
2795
- const de_InvalidRestoreTimeExceptionRes = async (parsedOutput, context) => {
2796
- const body = parsedOutput.body;
2797
- const deserialized = (0, smithy_client_1._json)(body);
2798
- const exception = new models_0_1.InvalidRestoreTimeException({
2799
- $metadata: deserializeMetadata(parsedOutput),
2800
- ...deserialized,
2801
- });
2802
- return (0, smithy_client_1.decorateServiceException)(exception, body);
2803
- };
2804
- const de_ItemCollectionSizeLimitExceededExceptionRes = async (parsedOutput, context) => {
2805
- const body = parsedOutput.body;
2806
- const deserialized = (0, smithy_client_1._json)(body);
2807
- const exception = new models_0_1.ItemCollectionSizeLimitExceededException({
2808
- $metadata: deserializeMetadata(parsedOutput),
2809
- ...deserialized,
2810
- });
2811
- return (0, smithy_client_1.decorateServiceException)(exception, body);
2812
- };
2813
- const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
2814
- const body = parsedOutput.body;
2815
- const deserialized = (0, smithy_client_1._json)(body);
2816
- const exception = new models_0_1.LimitExceededException({
2817
- $metadata: deserializeMetadata(parsedOutput),
2818
- ...deserialized,
2819
- });
2820
- return (0, smithy_client_1.decorateServiceException)(exception, body);
2821
- };
2822
- const de_PointInTimeRecoveryUnavailableExceptionRes = async (parsedOutput, context) => {
2823
- const body = parsedOutput.body;
2824
- const deserialized = (0, smithy_client_1._json)(body);
2825
- const exception = new models_0_1.PointInTimeRecoveryUnavailableException({
2826
- $metadata: deserializeMetadata(parsedOutput),
2827
- ...deserialized,
2828
- });
2829
- return (0, smithy_client_1.decorateServiceException)(exception, body);
2830
- };
2831
- const de_ProvisionedThroughputExceededExceptionRes = async (parsedOutput, context) => {
2832
- const body = parsedOutput.body;
2833
- const deserialized = (0, smithy_client_1._json)(body);
2834
- const exception = new models_0_1.ProvisionedThroughputExceededException({
2835
- $metadata: deserializeMetadata(parsedOutput),
2836
- ...deserialized,
2837
- });
2838
- return (0, smithy_client_1.decorateServiceException)(exception, body);
2839
- };
2840
- const de_ReplicaAlreadyExistsExceptionRes = async (parsedOutput, context) => {
2841
- const body = parsedOutput.body;
2842
- const deserialized = (0, smithy_client_1._json)(body);
2843
- const exception = new models_0_1.ReplicaAlreadyExistsException({
2844
- $metadata: deserializeMetadata(parsedOutput),
2845
- ...deserialized,
2846
- });
2847
- return (0, smithy_client_1.decorateServiceException)(exception, body);
2848
- };
2849
- const de_ReplicaNotFoundExceptionRes = async (parsedOutput, context) => {
2850
- const body = parsedOutput.body;
2851
- const deserialized = (0, smithy_client_1._json)(body);
2852
- const exception = new models_0_1.ReplicaNotFoundException({
2853
- $metadata: deserializeMetadata(parsedOutput),
2854
- ...deserialized,
2855
- });
2856
- return (0, smithy_client_1.decorateServiceException)(exception, body);
2857
- };
2858
- const de_RequestLimitExceededRes = async (parsedOutput, context) => {
2859
- const body = parsedOutput.body;
2860
- const deserialized = (0, smithy_client_1._json)(body);
2861
- const exception = new models_0_1.RequestLimitExceeded({
2862
- $metadata: deserializeMetadata(parsedOutput),
2863
- ...deserialized,
2864
- });
2865
- return (0, smithy_client_1.decorateServiceException)(exception, body);
2866
- };
2867
- const de_ResourceInUseExceptionRes = async (parsedOutput, context) => {
2868
- const body = parsedOutput.body;
2869
- const deserialized = (0, smithy_client_1._json)(body);
2870
- const exception = new models_0_1.ResourceInUseException({
2871
- $metadata: deserializeMetadata(parsedOutput),
2872
- ...deserialized,
2873
- });
2874
- return (0, smithy_client_1.decorateServiceException)(exception, body);
2875
- };
2876
- const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
2877
- const body = parsedOutput.body;
2878
- const deserialized = (0, smithy_client_1._json)(body);
2879
- const exception = new models_0_1.ResourceNotFoundException({
2880
- $metadata: deserializeMetadata(parsedOutput),
2881
- ...deserialized,
2882
- });
2883
- return (0, smithy_client_1.decorateServiceException)(exception, body);
2884
- };
2885
- const de_TableAlreadyExistsExceptionRes = async (parsedOutput, context) => {
2886
- const body = parsedOutput.body;
2887
- const deserialized = (0, smithy_client_1._json)(body);
2888
- const exception = new models_0_1.TableAlreadyExistsException({
2889
- $metadata: deserializeMetadata(parsedOutput),
2890
- ...deserialized,
2891
- });
2892
- return (0, smithy_client_1.decorateServiceException)(exception, body);
2893
- };
2894
- const de_TableInUseExceptionRes = async (parsedOutput, context) => {
2895
- const body = parsedOutput.body;
2896
- const deserialized = (0, smithy_client_1._json)(body);
2897
- const exception = new models_0_1.TableInUseException({
2898
- $metadata: deserializeMetadata(parsedOutput),
2899
- ...deserialized,
2900
- });
2901
- return (0, smithy_client_1.decorateServiceException)(exception, body);
2902
- };
2903
- const de_TableNotFoundExceptionRes = async (parsedOutput, context) => {
2904
- const body = parsedOutput.body;
2905
- const deserialized = (0, smithy_client_1._json)(body);
2906
- const exception = new models_0_1.TableNotFoundException({
2907
- $metadata: deserializeMetadata(parsedOutput),
2908
- ...deserialized,
2909
- });
2910
- return (0, smithy_client_1.decorateServiceException)(exception, body);
2911
- };
2912
- const de_TransactionCanceledExceptionRes = async (parsedOutput, context) => {
2913
- const body = parsedOutput.body;
2914
- const deserialized = de_TransactionCanceledException(body, context);
2915
- const exception = new models_0_1.TransactionCanceledException({
2916
- $metadata: deserializeMetadata(parsedOutput),
2917
- ...deserialized,
2918
- });
2919
- return (0, smithy_client_1.decorateServiceException)(exception, body);
2920
- };
2921
- const de_TransactionConflictExceptionRes = async (parsedOutput, context) => {
2922
- const body = parsedOutput.body;
2923
- const deserialized = (0, smithy_client_1._json)(body);
2924
- const exception = new models_0_1.TransactionConflictException({
2925
- $metadata: deserializeMetadata(parsedOutput),
2926
- ...deserialized,
2927
- });
2928
- return (0, smithy_client_1.decorateServiceException)(exception, body);
2929
- };
2930
- const de_TransactionInProgressExceptionRes = async (parsedOutput, context) => {
2931
- const body = parsedOutput.body;
2932
- const deserialized = (0, smithy_client_1._json)(body);
2933
- const exception = new models_0_1.TransactionInProgressException({
2934
- $metadata: deserializeMetadata(parsedOutput),
2935
- ...deserialized,
2936
- });
2937
- return (0, smithy_client_1.decorateServiceException)(exception, body);
2938
- };
2939
- const se_AttributeUpdates = (input, context) => {
2940
- return Object.entries(input).reduce((acc, [key, value]) => {
2941
- if (value === null) {
2942
- return acc;
2943
- }
2944
- acc[key] = se_AttributeValueUpdate(value, context);
2945
- return acc;
2946
- }, {});
2947
- };
2948
- const se_AttributeValue = (input, context) => {
2949
- return models_0_1.AttributeValue.visit(input, {
2950
- B: (value) => ({ B: context.base64Encoder(value) }),
2951
- BOOL: (value) => ({ BOOL: value }),
2952
- BS: (value) => ({ BS: se_BinarySetAttributeValue(value, context) }),
2953
- L: (value) => ({ L: se_ListAttributeValue(value, context) }),
2954
- M: (value) => ({ M: se_MapAttributeValue(value, context) }),
2955
- N: (value) => ({ N: value }),
2956
- NS: (value) => ({ NS: (0, smithy_client_1._json)(value) }),
2957
- NULL: (value) => ({ NULL: value }),
2958
- S: (value) => ({ S: value }),
2959
- SS: (value) => ({ SS: (0, smithy_client_1._json)(value) }),
2960
- _: (name, value) => ({ name: value }),
2961
- });
2962
- };
2963
- const se_AttributeValueList = (input, context) => {
2964
- return input
2965
- .filter((e) => e != null)
2966
- .map((entry) => {
2967
- return se_AttributeValue(entry, context);
2968
- });
2969
- };
2970
- const se_AttributeValueUpdate = (input, context) => {
2971
- return (0, smithy_client_1.take)(input, {
2972
- Action: [],
2973
- Value: (_) => se_AttributeValue(_, context),
2974
- });
2975
- };
2976
- const se_AutoScalingPolicyUpdate = (input, context) => {
2977
- return (0, smithy_client_1.take)(input, {
2978
- PolicyName: [],
2979
- TargetTrackingScalingPolicyConfiguration: (_) => se_AutoScalingTargetTrackingScalingPolicyConfigurationUpdate(_, context),
2980
- });
2981
- };
2982
- const se_AutoScalingSettingsUpdate = (input, context) => {
2983
- return (0, smithy_client_1.take)(input, {
2984
- AutoScalingDisabled: [],
2985
- AutoScalingRoleArn: [],
2986
- MaximumUnits: [],
2987
- MinimumUnits: [],
2988
- ScalingPolicyUpdate: (_) => se_AutoScalingPolicyUpdate(_, context),
2989
- });
2990
- };
2991
- const se_AutoScalingTargetTrackingScalingPolicyConfigurationUpdate = (input, context) => {
2992
- return (0, smithy_client_1.take)(input, {
2993
- DisableScaleIn: [],
2994
- ScaleInCooldown: [],
2995
- ScaleOutCooldown: [],
2996
- TargetValue: smithy_client_1.serializeFloat,
2997
- });
2998
- };
2999
- const se_BatchExecuteStatementInput = (input, context) => {
3000
- return (0, smithy_client_1.take)(input, {
3001
- ReturnConsumedCapacity: [],
3002
- Statements: (_) => se_PartiQLBatchRequest(_, context),
3003
- });
3004
- };
3005
- const se_BatchGetItemInput = (input, context) => {
3006
- return (0, smithy_client_1.take)(input, {
3007
- RequestItems: (_) => se_BatchGetRequestMap(_, context),
3008
- ReturnConsumedCapacity: [],
3009
- });
3010
- };
3011
- const se_BatchGetRequestMap = (input, context) => {
3012
- return Object.entries(input).reduce((acc, [key, value]) => {
3013
- if (value === null) {
3014
- return acc;
3015
- }
3016
- acc[key] = se_KeysAndAttributes(value, context);
3017
- return acc;
3018
- }, {});
3019
- };
3020
- const se_BatchStatementRequest = (input, context) => {
3021
- return (0, smithy_client_1.take)(input, {
3022
- ConsistentRead: [],
3023
- Parameters: (_) => se_PreparedStatementParameters(_, context),
3024
- ReturnValuesOnConditionCheckFailure: [],
3025
- Statement: [],
3026
- });
3027
- };
3028
- const se_BatchWriteItemInput = (input, context) => {
3029
- return (0, smithy_client_1.take)(input, {
3030
- RequestItems: (_) => se_BatchWriteItemRequestMap(_, context),
3031
- ReturnConsumedCapacity: [],
3032
- ReturnItemCollectionMetrics: [],
3033
- });
3034
- };
3035
- const se_BatchWriteItemRequestMap = (input, context) => {
3036
- return Object.entries(input).reduce((acc, [key, value]) => {
3037
- if (value === null) {
3038
- return acc;
3039
- }
3040
- acc[key] = se_WriteRequests(value, context);
3041
- return acc;
3042
- }, {});
3043
- };
3044
- const se_BinarySetAttributeValue = (input, context) => {
3045
- return input
3046
- .filter((e) => e != null)
3047
- .map((entry) => {
3048
- return context.base64Encoder(entry);
3049
- });
3050
- };
3051
- const se_Condition = (input, context) => {
3052
- return (0, smithy_client_1.take)(input, {
3053
- AttributeValueList: (_) => se_AttributeValueList(_, context),
3054
- ComparisonOperator: [],
3055
- });
3056
- };
3057
- const se_ConditionCheck = (input, context) => {
3058
- return (0, smithy_client_1.take)(input, {
3059
- ConditionExpression: [],
3060
- ExpressionAttributeNames: smithy_client_1._json,
3061
- ExpressionAttributeValues: (_) => se_ExpressionAttributeValueMap(_, context),
3062
- Key: (_) => se_Key(_, context),
3063
- ReturnValuesOnConditionCheckFailure: [],
3064
- TableName: [],
3065
- });
3066
- };
3067
- const se_Delete = (input, context) => {
3068
- return (0, smithy_client_1.take)(input, {
3069
- ConditionExpression: [],
3070
- ExpressionAttributeNames: smithy_client_1._json,
3071
- ExpressionAttributeValues: (_) => se_ExpressionAttributeValueMap(_, context),
3072
- Key: (_) => se_Key(_, context),
3073
- ReturnValuesOnConditionCheckFailure: [],
3074
- TableName: [],
3075
- });
3076
- };
3077
- const se_DeleteItemInput = (input, context) => {
3078
- return (0, smithy_client_1.take)(input, {
3079
- ConditionExpression: [],
3080
- ConditionalOperator: [],
3081
- Expected: (_) => se_ExpectedAttributeMap(_, context),
3082
- ExpressionAttributeNames: smithy_client_1._json,
3083
- ExpressionAttributeValues: (_) => se_ExpressionAttributeValueMap(_, context),
3084
- Key: (_) => se_Key(_, context),
3085
- ReturnConsumedCapacity: [],
3086
- ReturnItemCollectionMetrics: [],
3087
- ReturnValues: [],
3088
- ReturnValuesOnConditionCheckFailure: [],
3089
- TableName: [],
3090
- });
3091
- };
3092
- const se_DeleteRequest = (input, context) => {
3093
- return (0, smithy_client_1.take)(input, {
3094
- Key: (_) => se_Key(_, context),
3095
- });
3096
- };
3097
- const se_ExecuteStatementInput = (input, context) => {
3098
- return (0, smithy_client_1.take)(input, {
3099
- ConsistentRead: [],
3100
- Limit: [],
3101
- NextToken: [],
3102
- Parameters: (_) => se_PreparedStatementParameters(_, context),
3103
- ReturnConsumedCapacity: [],
3104
- ReturnValuesOnConditionCheckFailure: [],
3105
- Statement: [],
3106
- });
3107
- };
3108
- const se_ExecuteTransactionInput = (input, context) => {
3109
- return (0, smithy_client_1.take)(input, {
3110
- ClientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
3111
- ReturnConsumedCapacity: [],
3112
- TransactStatements: (_) => se_ParameterizedStatements(_, context),
3113
- });
3114
- };
3115
- const se_ExpectedAttributeMap = (input, context) => {
3116
- return Object.entries(input).reduce((acc, [key, value]) => {
3117
- if (value === null) {
3118
- return acc;
3119
- }
3120
- acc[key] = se_ExpectedAttributeValue(value, context);
3121
- return acc;
3122
- }, {});
3123
- };
3124
- const se_ExpectedAttributeValue = (input, context) => {
3125
- return (0, smithy_client_1.take)(input, {
3126
- AttributeValueList: (_) => se_AttributeValueList(_, context),
3127
- ComparisonOperator: [],
3128
- Exists: [],
3129
- Value: (_) => se_AttributeValue(_, context),
3130
- });
3131
- };
3132
- const se_ExportTableToPointInTimeInput = (input, context) => {
3133
- return (0, smithy_client_1.take)(input, {
3134
- ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
3135
- ExportFormat: [],
3136
- ExportTime: (_) => Math.round(_.getTime() / 1000),
3137
- ExportType: [],
3138
- IncrementalExportSpecification: (_) => se_IncrementalExportSpecification(_, context),
3139
- S3Bucket: [],
3140
- S3BucketOwner: [],
3141
- S3Prefix: [],
3142
- S3SseAlgorithm: [],
3143
- S3SseKmsKeyId: [],
3144
- TableArn: [],
3145
- });
3146
- };
3147
- const se_ExpressionAttributeValueMap = (input, context) => {
3148
- return Object.entries(input).reduce((acc, [key, value]) => {
3149
- if (value === null) {
3150
- return acc;
3151
- }
3152
- acc[key] = se_AttributeValue(value, context);
3153
- return acc;
3154
- }, {});
3155
- };
3156
- const se_FilterConditionMap = (input, context) => {
3157
- return Object.entries(input).reduce((acc, [key, value]) => {
3158
- if (value === null) {
3159
- return acc;
3160
- }
3161
- acc[key] = se_Condition(value, context);
3162
- return acc;
3163
- }, {});
3164
- };
3165
- const se_Get = (input, context) => {
3166
- return (0, smithy_client_1.take)(input, {
3167
- ExpressionAttributeNames: smithy_client_1._json,
3168
- Key: (_) => se_Key(_, context),
3169
- ProjectionExpression: [],
3170
- TableName: [],
3171
- });
3172
- };
3173
- const se_GetItemInput = (input, context) => {
3174
- return (0, smithy_client_1.take)(input, {
3175
- AttributesToGet: smithy_client_1._json,
3176
- ConsistentRead: [],
3177
- ExpressionAttributeNames: smithy_client_1._json,
3178
- Key: (_) => se_Key(_, context),
3179
- ProjectionExpression: [],
3180
- ReturnConsumedCapacity: [],
3181
- TableName: [],
3182
- });
3183
- };
3184
- const se_GlobalSecondaryIndexAutoScalingUpdate = (input, context) => {
3185
- return (0, smithy_client_1.take)(input, {
3186
- IndexName: [],
3187
- ProvisionedWriteCapacityAutoScalingUpdate: (_) => se_AutoScalingSettingsUpdate(_, context),
3188
- });
3189
- };
3190
- const se_GlobalSecondaryIndexAutoScalingUpdateList = (input, context) => {
3191
- return input
3192
- .filter((e) => e != null)
3193
- .map((entry) => {
3194
- return se_GlobalSecondaryIndexAutoScalingUpdate(entry, context);
3195
- });
3196
- };
3197
- const se_GlobalTableGlobalSecondaryIndexSettingsUpdate = (input, context) => {
3198
- return (0, smithy_client_1.take)(input, {
3199
- IndexName: [],
3200
- ProvisionedWriteCapacityAutoScalingSettingsUpdate: (_) => se_AutoScalingSettingsUpdate(_, context),
3201
- ProvisionedWriteCapacityUnits: [],
3202
- });
3203
- };
3204
- const se_GlobalTableGlobalSecondaryIndexSettingsUpdateList = (input, context) => {
3205
- return input
3206
- .filter((e) => e != null)
3207
- .map((entry) => {
3208
- return se_GlobalTableGlobalSecondaryIndexSettingsUpdate(entry, context);
3209
- });
3210
- };
3211
- const se_ImportTableInput = (input, context) => {
3212
- return (0, smithy_client_1.take)(input, {
3213
- ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
3214
- InputCompressionType: [],
3215
- InputFormat: [],
3216
- InputFormatOptions: smithy_client_1._json,
3217
- S3BucketSource: smithy_client_1._json,
3218
- TableCreationParameters: smithy_client_1._json,
3219
- });
3220
- };
3221
- const se_IncrementalExportSpecification = (input, context) => {
3222
- return (0, smithy_client_1.take)(input, {
3223
- ExportFromTime: (_) => Math.round(_.getTime() / 1000),
3224
- ExportToTime: (_) => Math.round(_.getTime() / 1000),
3225
- ExportViewType: [],
3226
- });
3227
- };
3228
- const se_Key = (input, context) => {
3229
- return Object.entries(input).reduce((acc, [key, value]) => {
3230
- if (value === null) {
3231
- return acc;
3232
- }
3233
- acc[key] = se_AttributeValue(value, context);
3234
- return acc;
3235
- }, {});
3236
- };
3237
- const se_KeyConditions = (input, context) => {
3238
- return Object.entries(input).reduce((acc, [key, value]) => {
3239
- if (value === null) {
3240
- return acc;
3241
- }
3242
- acc[key] = se_Condition(value, context);
3243
- return acc;
3244
- }, {});
3245
- };
3246
- const se_KeyList = (input, context) => {
3247
- return input
3248
- .filter((e) => e != null)
3249
- .map((entry) => {
3250
- return se_Key(entry, context);
3251
- });
3252
- };
3253
- const se_KeysAndAttributes = (input, context) => {
3254
- return (0, smithy_client_1.take)(input, {
3255
- AttributesToGet: smithy_client_1._json,
3256
- ConsistentRead: [],
3257
- ExpressionAttributeNames: smithy_client_1._json,
3258
- Keys: (_) => se_KeyList(_, context),
3259
- ProjectionExpression: [],
3260
- });
3261
- };
3262
- const se_ListAttributeValue = (input, context) => {
3263
- return input
3264
- .filter((e) => e != null)
3265
- .map((entry) => {
3266
- return se_AttributeValue(entry, context);
3267
- });
3268
- };
3269
- const se_ListBackupsInput = (input, context) => {
3270
- return (0, smithy_client_1.take)(input, {
3271
- BackupType: [],
3272
- ExclusiveStartBackupArn: [],
3273
- Limit: [],
3274
- TableName: [],
3275
- TimeRangeLowerBound: (_) => Math.round(_.getTime() / 1000),
3276
- TimeRangeUpperBound: (_) => Math.round(_.getTime() / 1000),
3277
- });
3278
- };
3279
- const se_MapAttributeValue = (input, context) => {
3280
- return Object.entries(input).reduce((acc, [key, value]) => {
3281
- if (value === null) {
3282
- return acc;
3283
- }
3284
- acc[key] = se_AttributeValue(value, context);
3285
- return acc;
3286
- }, {});
3287
- };
3288
- const se_ParameterizedStatement = (input, context) => {
3289
- return (0, smithy_client_1.take)(input, {
3290
- Parameters: (_) => se_PreparedStatementParameters(_, context),
3291
- ReturnValuesOnConditionCheckFailure: [],
3292
- Statement: [],
3293
- });
3294
- };
3295
- const se_ParameterizedStatements = (input, context) => {
3296
- return input
3297
- .filter((e) => e != null)
3298
- .map((entry) => {
3299
- return se_ParameterizedStatement(entry, context);
3300
- });
3301
- };
3302
- const se_PartiQLBatchRequest = (input, context) => {
3303
- return input
3304
- .filter((e) => e != null)
3305
- .map((entry) => {
3306
- return se_BatchStatementRequest(entry, context);
3307
- });
3308
- };
3309
- const se_PreparedStatementParameters = (input, context) => {
3310
- return input
3311
- .filter((e) => e != null)
3312
- .map((entry) => {
3313
- return se_AttributeValue(entry, context);
3314
- });
3315
- };
3316
- const se_Put = (input, context) => {
3317
- return (0, smithy_client_1.take)(input, {
3318
- ConditionExpression: [],
3319
- ExpressionAttributeNames: smithy_client_1._json,
3320
- ExpressionAttributeValues: (_) => se_ExpressionAttributeValueMap(_, context),
3321
- Item: (_) => se_PutItemInputAttributeMap(_, context),
3322
- ReturnValuesOnConditionCheckFailure: [],
3323
- TableName: [],
3324
- });
3325
- };
3326
- const se_PutItemInput = (input, context) => {
3327
- return (0, smithy_client_1.take)(input, {
3328
- ConditionExpression: [],
3329
- ConditionalOperator: [],
3330
- Expected: (_) => se_ExpectedAttributeMap(_, context),
3331
- ExpressionAttributeNames: smithy_client_1._json,
3332
- ExpressionAttributeValues: (_) => se_ExpressionAttributeValueMap(_, context),
3333
- Item: (_) => se_PutItemInputAttributeMap(_, context),
3334
- ReturnConsumedCapacity: [],
3335
- ReturnItemCollectionMetrics: [],
3336
- ReturnValues: [],
3337
- ReturnValuesOnConditionCheckFailure: [],
3338
- TableName: [],
3339
- });
3340
- };
3341
- const se_PutItemInputAttributeMap = (input, context) => {
3342
- return Object.entries(input).reduce((acc, [key, value]) => {
3343
- if (value === null) {
3344
- return acc;
3345
- }
3346
- acc[key] = se_AttributeValue(value, context);
3347
- return acc;
3348
- }, {});
3349
- };
3350
- const se_PutRequest = (input, context) => {
3351
- return (0, smithy_client_1.take)(input, {
3352
- Item: (_) => se_PutItemInputAttributeMap(_, context),
3353
- });
3354
- };
3355
- const se_QueryInput = (input, context) => {
3356
- return (0, smithy_client_1.take)(input, {
3357
- AttributesToGet: smithy_client_1._json,
3358
- ConditionalOperator: [],
3359
- ConsistentRead: [],
3360
- ExclusiveStartKey: (_) => se_Key(_, context),
3361
- ExpressionAttributeNames: smithy_client_1._json,
3362
- ExpressionAttributeValues: (_) => se_ExpressionAttributeValueMap(_, context),
3363
- FilterExpression: [],
3364
- IndexName: [],
3365
- KeyConditionExpression: [],
3366
- KeyConditions: (_) => se_KeyConditions(_, context),
3367
- Limit: [],
3368
- ProjectionExpression: [],
3369
- QueryFilter: (_) => se_FilterConditionMap(_, context),
3370
- ReturnConsumedCapacity: [],
3371
- ScanIndexForward: [],
3372
- Select: [],
3373
- TableName: [],
3374
- });
3375
- };
3376
- const se_ReplicaAutoScalingUpdate = (input, context) => {
3377
- return (0, smithy_client_1.take)(input, {
3378
- RegionName: [],
3379
- ReplicaGlobalSecondaryIndexUpdates: (_) => se_ReplicaGlobalSecondaryIndexAutoScalingUpdateList(_, context),
3380
- ReplicaProvisionedReadCapacityAutoScalingUpdate: (_) => se_AutoScalingSettingsUpdate(_, context),
3381
- });
3382
- };
3383
- const se_ReplicaAutoScalingUpdateList = (input, context) => {
3384
- return input
3385
- .filter((e) => e != null)
3386
- .map((entry) => {
3387
- return se_ReplicaAutoScalingUpdate(entry, context);
3388
- });
3389
- };
3390
- const se_ReplicaGlobalSecondaryIndexAutoScalingUpdate = (input, context) => {
3391
- return (0, smithy_client_1.take)(input, {
3392
- IndexName: [],
3393
- ProvisionedReadCapacityAutoScalingUpdate: (_) => se_AutoScalingSettingsUpdate(_, context),
3394
- });
3395
- };
3396
- const se_ReplicaGlobalSecondaryIndexAutoScalingUpdateList = (input, context) => {
3397
- return input
3398
- .filter((e) => e != null)
3399
- .map((entry) => {
3400
- return se_ReplicaGlobalSecondaryIndexAutoScalingUpdate(entry, context);
3401
- });
3402
- };
3403
- const se_ReplicaGlobalSecondaryIndexSettingsUpdate = (input, context) => {
3404
- return (0, smithy_client_1.take)(input, {
3405
- IndexName: [],
3406
- ProvisionedReadCapacityAutoScalingSettingsUpdate: (_) => se_AutoScalingSettingsUpdate(_, context),
3407
- ProvisionedReadCapacityUnits: [],
3408
- });
3409
- };
3410
- const se_ReplicaGlobalSecondaryIndexSettingsUpdateList = (input, context) => {
3411
- return input
3412
- .filter((e) => e != null)
3413
- .map((entry) => {
3414
- return se_ReplicaGlobalSecondaryIndexSettingsUpdate(entry, context);
3415
- });
3416
- };
3417
- const se_ReplicaSettingsUpdate = (input, context) => {
3418
- return (0, smithy_client_1.take)(input, {
3419
- RegionName: [],
3420
- ReplicaGlobalSecondaryIndexSettingsUpdate: (_) => se_ReplicaGlobalSecondaryIndexSettingsUpdateList(_, context),
3421
- ReplicaProvisionedReadCapacityAutoScalingSettingsUpdate: (_) => se_AutoScalingSettingsUpdate(_, context),
3422
- ReplicaProvisionedReadCapacityUnits: [],
3423
- ReplicaTableClass: [],
3424
- });
3425
- };
3426
- const se_ReplicaSettingsUpdateList = (input, context) => {
3427
- return input
3428
- .filter((e) => e != null)
3429
- .map((entry) => {
3430
- return se_ReplicaSettingsUpdate(entry, context);
3431
- });
3432
- };
3433
- const se_RestoreTableToPointInTimeInput = (input, context) => {
3434
- return (0, smithy_client_1.take)(input, {
3435
- BillingModeOverride: [],
3436
- GlobalSecondaryIndexOverride: smithy_client_1._json,
3437
- LocalSecondaryIndexOverride: smithy_client_1._json,
3438
- ProvisionedThroughputOverride: smithy_client_1._json,
3439
- RestoreDateTime: (_) => Math.round(_.getTime() / 1000),
3440
- SSESpecificationOverride: smithy_client_1._json,
3441
- SourceTableArn: [],
3442
- SourceTableName: [],
3443
- TargetTableName: [],
3444
- UseLatestRestorableTime: [],
3445
- });
3446
- };
3447
- const se_ScanInput = (input, context) => {
3448
- return (0, smithy_client_1.take)(input, {
3449
- AttributesToGet: smithy_client_1._json,
3450
- ConditionalOperator: [],
3451
- ConsistentRead: [],
3452
- ExclusiveStartKey: (_) => se_Key(_, context),
3453
- ExpressionAttributeNames: smithy_client_1._json,
3454
- ExpressionAttributeValues: (_) => se_ExpressionAttributeValueMap(_, context),
3455
- FilterExpression: [],
3456
- IndexName: [],
3457
- Limit: [],
3458
- ProjectionExpression: [],
3459
- ReturnConsumedCapacity: [],
3460
- ScanFilter: (_) => se_FilterConditionMap(_, context),
3461
- Segment: [],
3462
- Select: [],
3463
- TableName: [],
3464
- TotalSegments: [],
3465
- });
3466
- };
3467
- const se_TransactGetItem = (input, context) => {
3468
- return (0, smithy_client_1.take)(input, {
3469
- Get: (_) => se_Get(_, context),
3470
- });
3471
- };
3472
- const se_TransactGetItemList = (input, context) => {
3473
- return input
3474
- .filter((e) => e != null)
3475
- .map((entry) => {
3476
- return se_TransactGetItem(entry, context);
3477
- });
3478
- };
3479
- const se_TransactGetItemsInput = (input, context) => {
3480
- return (0, smithy_client_1.take)(input, {
3481
- ReturnConsumedCapacity: [],
3482
- TransactItems: (_) => se_TransactGetItemList(_, context),
3483
- });
3484
- };
3485
- const se_TransactWriteItem = (input, context) => {
3486
- return (0, smithy_client_1.take)(input, {
3487
- ConditionCheck: (_) => se_ConditionCheck(_, context),
3488
- Delete: (_) => se_Delete(_, context),
3489
- Put: (_) => se_Put(_, context),
3490
- Update: (_) => se_Update(_, context),
3491
- });
3492
- };
3493
- const se_TransactWriteItemList = (input, context) => {
3494
- return input
3495
- .filter((e) => e != null)
3496
- .map((entry) => {
3497
- return se_TransactWriteItem(entry, context);
3498
- });
3499
- };
3500
- const se_TransactWriteItemsInput = (input, context) => {
3501
- return (0, smithy_client_1.take)(input, {
3502
- ClientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
3503
- ReturnConsumedCapacity: [],
3504
- ReturnItemCollectionMetrics: [],
3505
- TransactItems: (_) => se_TransactWriteItemList(_, context),
3506
- });
3507
- };
3508
- const se_Update = (input, context) => {
3509
- return (0, smithy_client_1.take)(input, {
3510
- ConditionExpression: [],
3511
- ExpressionAttributeNames: smithy_client_1._json,
3512
- ExpressionAttributeValues: (_) => se_ExpressionAttributeValueMap(_, context),
3513
- Key: (_) => se_Key(_, context),
3514
- ReturnValuesOnConditionCheckFailure: [],
3515
- TableName: [],
3516
- UpdateExpression: [],
3517
- });
3518
- };
3519
- const se_UpdateGlobalTableSettingsInput = (input, context) => {
3520
- return (0, smithy_client_1.take)(input, {
3521
- GlobalTableBillingMode: [],
3522
- GlobalTableGlobalSecondaryIndexSettingsUpdate: (_) => se_GlobalTableGlobalSecondaryIndexSettingsUpdateList(_, context),
3523
- GlobalTableName: [],
3524
- GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate: (_) => se_AutoScalingSettingsUpdate(_, context),
3525
- GlobalTableProvisionedWriteCapacityUnits: [],
3526
- ReplicaSettingsUpdate: (_) => se_ReplicaSettingsUpdateList(_, context),
3527
- });
3528
- };
3529
- const se_UpdateItemInput = (input, context) => {
3530
- return (0, smithy_client_1.take)(input, {
3531
- AttributeUpdates: (_) => se_AttributeUpdates(_, context),
3532
- ConditionExpression: [],
3533
- ConditionalOperator: [],
3534
- Expected: (_) => se_ExpectedAttributeMap(_, context),
3535
- ExpressionAttributeNames: smithy_client_1._json,
3536
- ExpressionAttributeValues: (_) => se_ExpressionAttributeValueMap(_, context),
3537
- Key: (_) => se_Key(_, context),
3538
- ReturnConsumedCapacity: [],
3539
- ReturnItemCollectionMetrics: [],
3540
- ReturnValues: [],
3541
- ReturnValuesOnConditionCheckFailure: [],
3542
- TableName: [],
3543
- UpdateExpression: [],
3544
- });
3545
- };
3546
- const se_UpdateTableReplicaAutoScalingInput = (input, context) => {
3547
- return (0, smithy_client_1.take)(input, {
3548
- GlobalSecondaryIndexUpdates: (_) => se_GlobalSecondaryIndexAutoScalingUpdateList(_, context),
3549
- ProvisionedWriteCapacityAutoScalingUpdate: (_) => se_AutoScalingSettingsUpdate(_, context),
3550
- ReplicaUpdates: (_) => se_ReplicaAutoScalingUpdateList(_, context),
3551
- TableName: [],
3552
- });
3553
- };
3554
- const se_WriteRequest = (input, context) => {
3555
- return (0, smithy_client_1.take)(input, {
3556
- DeleteRequest: (_) => se_DeleteRequest(_, context),
3557
- PutRequest: (_) => se_PutRequest(_, context),
3558
- });
3559
- };
3560
- const se_WriteRequests = (input, context) => {
3561
- return input
3562
- .filter((e) => e != null)
3563
- .map((entry) => {
3564
- return se_WriteRequest(entry, context);
3565
- });
3566
- };
3567
- const de_ArchivalSummary = (output, context) => {
3568
- return (0, smithy_client_1.take)(output, {
3569
- ArchivalBackupArn: smithy_client_1.expectString,
3570
- ArchivalDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3571
- ArchivalReason: smithy_client_1.expectString,
3572
- });
3573
- };
3574
- const de_AttributeMap = (output, context) => {
3575
- return Object.entries(output).reduce((acc, [key, value]) => {
3576
- if (value === null) {
3577
- return acc;
3578
- }
3579
- acc[key] = de_AttributeValue((0, core_1.awsExpectUnion)(value), context);
3580
- return acc;
3581
- }, {});
3582
- };
3583
- const de_AttributeValue = (output, context) => {
3584
- if (output.B != null) {
3585
- return {
3586
- B: context.base64Decoder(output.B),
3587
- };
3588
- }
3589
- if ((0, smithy_client_1.expectBoolean)(output.BOOL) !== undefined) {
3590
- return { BOOL: (0, smithy_client_1.expectBoolean)(output.BOOL) };
3591
- }
3592
- if (output.BS != null) {
3593
- return {
3594
- BS: de_BinarySetAttributeValue(output.BS, context),
3595
- };
3596
- }
3597
- if (output.L != null) {
3598
- return {
3599
- L: de_ListAttributeValue(output.L, context),
3600
- };
3601
- }
3602
- if (output.M != null) {
3603
- return {
3604
- M: de_MapAttributeValue(output.M, context),
3605
- };
3606
- }
3607
- if ((0, smithy_client_1.expectString)(output.N) !== undefined) {
3608
- return { N: (0, smithy_client_1.expectString)(output.N) };
3609
- }
3610
- if (output.NS != null) {
3611
- return {
3612
- NS: (0, smithy_client_1._json)(output.NS),
3613
- };
3614
- }
3615
- if ((0, smithy_client_1.expectBoolean)(output.NULL) !== undefined) {
3616
- return { NULL: (0, smithy_client_1.expectBoolean)(output.NULL) };
3617
- }
3618
- if ((0, smithy_client_1.expectString)(output.S) !== undefined) {
3619
- return { S: (0, smithy_client_1.expectString)(output.S) };
3620
- }
3621
- if (output.SS != null) {
3622
- return {
3623
- SS: (0, smithy_client_1._json)(output.SS),
3624
- };
3625
- }
3626
- return { $unknown: Object.entries(output)[0] };
3627
- };
3628
- const de_AutoScalingPolicyDescription = (output, context) => {
3629
- return (0, smithy_client_1.take)(output, {
3630
- PolicyName: smithy_client_1.expectString,
3631
- TargetTrackingScalingPolicyConfiguration: (_) => de_AutoScalingTargetTrackingScalingPolicyConfigurationDescription(_, context),
3632
- });
3633
- };
3634
- const de_AutoScalingPolicyDescriptionList = (output, context) => {
3635
- const retVal = (output || [])
3636
- .filter((e) => e != null)
3637
- .map((entry) => {
3638
- return de_AutoScalingPolicyDescription(entry, context);
3639
- });
3640
- return retVal;
3641
- };
3642
- const de_AutoScalingSettingsDescription = (output, context) => {
3643
- return (0, smithy_client_1.take)(output, {
3644
- AutoScalingDisabled: smithy_client_1.expectBoolean,
3645
- AutoScalingRoleArn: smithy_client_1.expectString,
3646
- MaximumUnits: smithy_client_1.expectLong,
3647
- MinimumUnits: smithy_client_1.expectLong,
3648
- ScalingPolicies: (_) => de_AutoScalingPolicyDescriptionList(_, context),
3649
- });
3650
- };
3651
- const de_AutoScalingTargetTrackingScalingPolicyConfigurationDescription = (output, context) => {
3652
- return (0, smithy_client_1.take)(output, {
3653
- DisableScaleIn: smithy_client_1.expectBoolean,
3654
- ScaleInCooldown: smithy_client_1.expectInt32,
3655
- ScaleOutCooldown: smithy_client_1.expectInt32,
3656
- TargetValue: smithy_client_1.limitedParseDouble,
3657
- });
3658
- };
3659
- const de_BackupDescription = (output, context) => {
3660
- return (0, smithy_client_1.take)(output, {
3661
- BackupDetails: (_) => de_BackupDetails(_, context),
3662
- SourceTableDetails: (_) => de_SourceTableDetails(_, context),
3663
- SourceTableFeatureDetails: (_) => de_SourceTableFeatureDetails(_, context),
3664
- });
3665
- };
3666
- const de_BackupDetails = (output, context) => {
3667
- return (0, smithy_client_1.take)(output, {
3668
- BackupArn: smithy_client_1.expectString,
3669
- BackupCreationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3670
- BackupExpiryDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3671
- BackupName: smithy_client_1.expectString,
3672
- BackupSizeBytes: smithy_client_1.expectLong,
3673
- BackupStatus: smithy_client_1.expectString,
3674
- BackupType: smithy_client_1.expectString,
3675
- });
3676
- };
3677
- const de_BackupSummaries = (output, context) => {
3678
- const retVal = (output || [])
3679
- .filter((e) => e != null)
3680
- .map((entry) => {
3681
- return de_BackupSummary(entry, context);
3682
- });
3683
- return retVal;
3684
- };
3685
- const de_BackupSummary = (output, context) => {
3686
- return (0, smithy_client_1.take)(output, {
3687
- BackupArn: smithy_client_1.expectString,
3688
- BackupCreationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3689
- BackupExpiryDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3690
- BackupName: smithy_client_1.expectString,
3691
- BackupSizeBytes: smithy_client_1.expectLong,
3692
- BackupStatus: smithy_client_1.expectString,
3693
- BackupType: smithy_client_1.expectString,
3694
- TableArn: smithy_client_1.expectString,
3695
- TableId: smithy_client_1.expectString,
3696
- TableName: smithy_client_1.expectString,
3697
- });
3698
- };
3699
- const de_BatchExecuteStatementOutput = (output, context) => {
3700
- return (0, smithy_client_1.take)(output, {
3701
- ConsumedCapacity: (_) => de_ConsumedCapacityMultiple(_, context),
3702
- Responses: (_) => de_PartiQLBatchResponse(_, context),
3703
- });
3704
- };
3705
- const de_BatchGetItemOutput = (output, context) => {
3706
- return (0, smithy_client_1.take)(output, {
3707
- ConsumedCapacity: (_) => de_ConsumedCapacityMultiple(_, context),
3708
- Responses: (_) => de_BatchGetResponseMap(_, context),
3709
- UnprocessedKeys: (_) => de_BatchGetRequestMap(_, context),
3710
- });
3711
- };
3712
- const de_BatchGetRequestMap = (output, context) => {
3713
- return Object.entries(output).reduce((acc, [key, value]) => {
3714
- if (value === null) {
3715
- return acc;
3716
- }
3717
- acc[key] = de_KeysAndAttributes(value, context);
3718
- return acc;
3719
- }, {});
3720
- };
3721
- const de_BatchGetResponseMap = (output, context) => {
3722
- return Object.entries(output).reduce((acc, [key, value]) => {
3723
- if (value === null) {
3724
- return acc;
3725
- }
3726
- acc[key] = de_ItemList(value, context);
3727
- return acc;
3728
- }, {});
3729
- };
3730
- const de_BatchStatementError = (output, context) => {
3731
- return (0, smithy_client_1.take)(output, {
3732
- Code: smithy_client_1.expectString,
3733
- Item: (_) => de_AttributeMap(_, context),
3734
- Message: smithy_client_1.expectString,
3735
- });
3736
- };
3737
- const de_BatchStatementResponse = (output, context) => {
3738
- return (0, smithy_client_1.take)(output, {
3739
- Error: (_) => de_BatchStatementError(_, context),
3740
- Item: (_) => de_AttributeMap(_, context),
3741
- TableName: smithy_client_1.expectString,
3742
- });
3743
- };
3744
- const de_BatchWriteItemOutput = (output, context) => {
3745
- return (0, smithy_client_1.take)(output, {
3746
- ConsumedCapacity: (_) => de_ConsumedCapacityMultiple(_, context),
3747
- ItemCollectionMetrics: (_) => de_ItemCollectionMetricsPerTable(_, context),
3748
- UnprocessedItems: (_) => de_BatchWriteItemRequestMap(_, context),
3749
- });
3750
- };
3751
- const de_BatchWriteItemRequestMap = (output, context) => {
3752
- return Object.entries(output).reduce((acc, [key, value]) => {
3753
- if (value === null) {
3754
- return acc;
3755
- }
3756
- acc[key] = de_WriteRequests(value, context);
3757
- return acc;
3758
- }, {});
3759
- };
3760
- const de_BillingModeSummary = (output, context) => {
3761
- return (0, smithy_client_1.take)(output, {
3762
- BillingMode: smithy_client_1.expectString,
3763
- LastUpdateToPayPerRequestDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3764
- });
3765
- };
3766
- const de_BinarySetAttributeValue = (output, context) => {
3767
- const retVal = (output || [])
3768
- .filter((e) => e != null)
3769
- .map((entry) => {
3770
- return context.base64Decoder(entry);
3771
- });
3772
- return retVal;
3773
- };
3774
- const de_CancellationReason = (output, context) => {
3775
- return (0, smithy_client_1.take)(output, {
3776
- Code: smithy_client_1.expectString,
3777
- Item: (_) => de_AttributeMap(_, context),
3778
- Message: smithy_client_1.expectString,
3779
- });
3780
- };
3781
- const de_CancellationReasonList = (output, context) => {
3782
- const retVal = (output || [])
3783
- .filter((e) => e != null)
3784
- .map((entry) => {
3785
- return de_CancellationReason(entry, context);
3786
- });
3787
- return retVal;
3788
- };
3789
- const de_Capacity = (output, context) => {
3790
- return (0, smithy_client_1.take)(output, {
3791
- CapacityUnits: smithy_client_1.limitedParseDouble,
3792
- ReadCapacityUnits: smithy_client_1.limitedParseDouble,
3793
- WriteCapacityUnits: smithy_client_1.limitedParseDouble,
3794
- });
3795
- };
3796
- const de_ConditionalCheckFailedException = (output, context) => {
3797
- return (0, smithy_client_1.take)(output, {
3798
- Item: (_) => de_AttributeMap(_, context),
3799
- message: smithy_client_1.expectString,
3800
- });
3801
- };
3802
- const de_ConsumedCapacity = (output, context) => {
3803
- return (0, smithy_client_1.take)(output, {
3804
- CapacityUnits: smithy_client_1.limitedParseDouble,
3805
- GlobalSecondaryIndexes: (_) => de_SecondaryIndexesCapacityMap(_, context),
3806
- LocalSecondaryIndexes: (_) => de_SecondaryIndexesCapacityMap(_, context),
3807
- ReadCapacityUnits: smithy_client_1.limitedParseDouble,
3808
- Table: (_) => de_Capacity(_, context),
3809
- TableName: smithy_client_1.expectString,
3810
- WriteCapacityUnits: smithy_client_1.limitedParseDouble,
3811
- });
3812
- };
3813
- const de_ConsumedCapacityMultiple = (output, context) => {
3814
- const retVal = (output || [])
3815
- .filter((e) => e != null)
3816
- .map((entry) => {
3817
- return de_ConsumedCapacity(entry, context);
3818
- });
3819
- return retVal;
3820
- };
3821
- const de_ContinuousBackupsDescription = (output, context) => {
3822
- return (0, smithy_client_1.take)(output, {
3823
- ContinuousBackupsStatus: smithy_client_1.expectString,
3824
- PointInTimeRecoveryDescription: (_) => de_PointInTimeRecoveryDescription(_, context),
3825
- });
3826
- };
3827
- const de_CreateBackupOutput = (output, context) => {
3828
- return (0, smithy_client_1.take)(output, {
3829
- BackupDetails: (_) => de_BackupDetails(_, context),
3830
- });
3831
- };
3832
- const de_CreateGlobalTableOutput = (output, context) => {
3833
- return (0, smithy_client_1.take)(output, {
3834
- GlobalTableDescription: (_) => de_GlobalTableDescription(_, context),
3835
- });
3836
- };
3837
- const de_CreateTableOutput = (output, context) => {
3838
- return (0, smithy_client_1.take)(output, {
3839
- TableDescription: (_) => de_TableDescription(_, context),
3840
- });
3841
- };
3842
- const de_DeleteBackupOutput = (output, context) => {
3843
- return (0, smithy_client_1.take)(output, {
3844
- BackupDescription: (_) => de_BackupDescription(_, context),
3845
- });
3846
- };
3847
- const de_DeleteItemOutput = (output, context) => {
3848
- return (0, smithy_client_1.take)(output, {
3849
- Attributes: (_) => de_AttributeMap(_, context),
3850
- ConsumedCapacity: (_) => de_ConsumedCapacity(_, context),
3851
- ItemCollectionMetrics: (_) => de_ItemCollectionMetrics(_, context),
3852
- });
3853
- };
3854
- const de_DeleteRequest = (output, context) => {
3855
- return (0, smithy_client_1.take)(output, {
3856
- Key: (_) => de_Key(_, context),
3857
- });
3858
- };
3859
- const de_DeleteTableOutput = (output, context) => {
3860
- return (0, smithy_client_1.take)(output, {
3861
- TableDescription: (_) => de_TableDescription(_, context),
3862
- });
3863
- };
3864
- const de_DescribeBackupOutput = (output, context) => {
3865
- return (0, smithy_client_1.take)(output, {
3866
- BackupDescription: (_) => de_BackupDescription(_, context),
3867
- });
3868
- };
3869
- const de_DescribeContinuousBackupsOutput = (output, context) => {
3870
- return (0, smithy_client_1.take)(output, {
3871
- ContinuousBackupsDescription: (_) => de_ContinuousBackupsDescription(_, context),
3872
- });
3873
- };
3874
- const de_DescribeContributorInsightsOutput = (output, context) => {
3875
- return (0, smithy_client_1.take)(output, {
3876
- ContributorInsightsRuleList: smithy_client_1._json,
3877
- ContributorInsightsStatus: smithy_client_1.expectString,
3878
- FailureException: smithy_client_1._json,
3879
- IndexName: smithy_client_1.expectString,
3880
- LastUpdateDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3881
- TableName: smithy_client_1.expectString,
3882
- });
3883
- };
3884
- const de_DescribeExportOutput = (output, context) => {
3885
- return (0, smithy_client_1.take)(output, {
3886
- ExportDescription: (_) => de_ExportDescription(_, context),
3887
- });
3888
- };
3889
- const de_DescribeGlobalTableOutput = (output, context) => {
3890
- return (0, smithy_client_1.take)(output, {
3891
- GlobalTableDescription: (_) => de_GlobalTableDescription(_, context),
3892
- });
3893
- };
3894
- const de_DescribeGlobalTableSettingsOutput = (output, context) => {
3895
- return (0, smithy_client_1.take)(output, {
3896
- GlobalTableName: smithy_client_1.expectString,
3897
- ReplicaSettings: (_) => de_ReplicaSettingsDescriptionList(_, context),
3898
- });
3899
- };
3900
- const de_DescribeImportOutput = (output, context) => {
3901
- return (0, smithy_client_1.take)(output, {
3902
- ImportTableDescription: (_) => de_ImportTableDescription(_, context),
3903
- });
3904
- };
3905
- const de_DescribeTableOutput = (output, context) => {
3906
- return (0, smithy_client_1.take)(output, {
3907
- Table: (_) => de_TableDescription(_, context),
3908
- });
3909
- };
3910
- const de_DescribeTableReplicaAutoScalingOutput = (output, context) => {
3911
- return (0, smithy_client_1.take)(output, {
3912
- TableAutoScalingDescription: (_) => de_TableAutoScalingDescription(_, context),
3913
- });
3914
- };
3915
- const de_ExecuteStatementOutput = (output, context) => {
3916
- return (0, smithy_client_1.take)(output, {
3917
- ConsumedCapacity: (_) => de_ConsumedCapacity(_, context),
3918
- Items: (_) => de_ItemList(_, context),
3919
- LastEvaluatedKey: (_) => de_Key(_, context),
3920
- NextToken: smithy_client_1.expectString,
3921
- });
3922
- };
3923
- const de_ExecuteTransactionOutput = (output, context) => {
3924
- return (0, smithy_client_1.take)(output, {
3925
- ConsumedCapacity: (_) => de_ConsumedCapacityMultiple(_, context),
3926
- Responses: (_) => de_ItemResponseList(_, context),
3927
- });
3928
- };
3929
- const de_ExportDescription = (output, context) => {
3930
- return (0, smithy_client_1.take)(output, {
3931
- BilledSizeBytes: smithy_client_1.expectLong,
3932
- ClientToken: smithy_client_1.expectString,
3933
- EndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3934
- ExportArn: smithy_client_1.expectString,
3935
- ExportFormat: smithy_client_1.expectString,
3936
- ExportManifest: smithy_client_1.expectString,
3937
- ExportStatus: smithy_client_1.expectString,
3938
- ExportTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3939
- ExportType: smithy_client_1.expectString,
3940
- FailureCode: smithy_client_1.expectString,
3941
- FailureMessage: smithy_client_1.expectString,
3942
- IncrementalExportSpecification: (_) => de_IncrementalExportSpecification(_, context),
3943
- ItemCount: smithy_client_1.expectLong,
3944
- S3Bucket: smithy_client_1.expectString,
3945
- S3BucketOwner: smithy_client_1.expectString,
3946
- S3Prefix: smithy_client_1.expectString,
3947
- S3SseAlgorithm: smithy_client_1.expectString,
3948
- S3SseKmsKeyId: smithy_client_1.expectString,
3949
- StartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3950
- TableArn: smithy_client_1.expectString,
3951
- TableId: smithy_client_1.expectString,
3952
- });
3953
- };
3954
- const de_ExportTableToPointInTimeOutput = (output, context) => {
3955
- return (0, smithy_client_1.take)(output, {
3956
- ExportDescription: (_) => de_ExportDescription(_, context),
3957
- });
3958
- };
3959
- const de_GetItemOutput = (output, context) => {
3960
- return (0, smithy_client_1.take)(output, {
3961
- ConsumedCapacity: (_) => de_ConsumedCapacity(_, context),
3962
- Item: (_) => de_AttributeMap(_, context),
3963
- });
3964
- };
3965
- const de_GlobalSecondaryIndexDescription = (output, context) => {
3966
- return (0, smithy_client_1.take)(output, {
3967
- Backfilling: smithy_client_1.expectBoolean,
3968
- IndexArn: smithy_client_1.expectString,
3969
- IndexName: smithy_client_1.expectString,
3970
- IndexSizeBytes: smithy_client_1.expectLong,
3971
- IndexStatus: smithy_client_1.expectString,
3972
- ItemCount: smithy_client_1.expectLong,
3973
- KeySchema: smithy_client_1._json,
3974
- Projection: smithy_client_1._json,
3975
- ProvisionedThroughput: (_) => de_ProvisionedThroughputDescription(_, context),
3976
- });
3977
- };
3978
- const de_GlobalSecondaryIndexDescriptionList = (output, context) => {
3979
- const retVal = (output || [])
3980
- .filter((e) => e != null)
3981
- .map((entry) => {
3982
- return de_GlobalSecondaryIndexDescription(entry, context);
3983
- });
3984
- return retVal;
3985
- };
3986
- const de_GlobalTableDescription = (output, context) => {
3987
- return (0, smithy_client_1.take)(output, {
3988
- CreationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3989
- GlobalTableArn: smithy_client_1.expectString,
3990
- GlobalTableName: smithy_client_1.expectString,
3991
- GlobalTableStatus: smithy_client_1.expectString,
3992
- ReplicationGroup: (_) => de_ReplicaDescriptionList(_, context),
3993
- });
3994
- };
3995
- const de_ImportSummary = (output, context) => {
3996
- return (0, smithy_client_1.take)(output, {
3997
- CloudWatchLogGroupArn: smithy_client_1.expectString,
3998
- EndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3999
- ImportArn: smithy_client_1.expectString,
4000
- ImportStatus: smithy_client_1.expectString,
4001
- InputFormat: smithy_client_1.expectString,
4002
- S3BucketSource: smithy_client_1._json,
4003
- StartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
4004
- TableArn: smithy_client_1.expectString,
4005
- });
4006
- };
4007
- const de_ImportSummaryList = (output, context) => {
4008
- const retVal = (output || [])
4009
- .filter((e) => e != null)
4010
- .map((entry) => {
4011
- return de_ImportSummary(entry, context);
4012
- });
4013
- return retVal;
4014
- };
4015
- const de_ImportTableDescription = (output, context) => {
4016
- return (0, smithy_client_1.take)(output, {
4017
- ClientToken: smithy_client_1.expectString,
4018
- CloudWatchLogGroupArn: smithy_client_1.expectString,
4019
- EndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
4020
- ErrorCount: smithy_client_1.expectLong,
4021
- FailureCode: smithy_client_1.expectString,
4022
- FailureMessage: smithy_client_1.expectString,
4023
- ImportArn: smithy_client_1.expectString,
4024
- ImportStatus: smithy_client_1.expectString,
4025
- ImportedItemCount: smithy_client_1.expectLong,
4026
- InputCompressionType: smithy_client_1.expectString,
4027
- InputFormat: smithy_client_1.expectString,
4028
- InputFormatOptions: smithy_client_1._json,
4029
- ProcessedItemCount: smithy_client_1.expectLong,
4030
- ProcessedSizeBytes: smithy_client_1.expectLong,
4031
- S3BucketSource: smithy_client_1._json,
4032
- StartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
4033
- TableArn: smithy_client_1.expectString,
4034
- TableCreationParameters: smithy_client_1._json,
4035
- TableId: smithy_client_1.expectString,
4036
- });
4037
- };
4038
- const de_ImportTableOutput = (output, context) => {
4039
- return (0, smithy_client_1.take)(output, {
4040
- ImportTableDescription: (_) => de_ImportTableDescription(_, context),
4041
- });
4042
- };
4043
- const de_IncrementalExportSpecification = (output, context) => {
4044
- return (0, smithy_client_1.take)(output, {
4045
- ExportFromTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
4046
- ExportToTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
4047
- ExportViewType: smithy_client_1.expectString,
4048
- });
4049
- };
4050
- const de_ItemCollectionKeyAttributeMap = (output, context) => {
4051
- return Object.entries(output).reduce((acc, [key, value]) => {
4052
- if (value === null) {
4053
- return acc;
4054
- }
4055
- acc[key] = de_AttributeValue((0, core_1.awsExpectUnion)(value), context);
4056
- return acc;
4057
- }, {});
4058
- };
4059
- const de_ItemCollectionMetrics = (output, context) => {
4060
- return (0, smithy_client_1.take)(output, {
4061
- ItemCollectionKey: (_) => de_ItemCollectionKeyAttributeMap(_, context),
4062
- SizeEstimateRangeGB: (_) => de_ItemCollectionSizeEstimateRange(_, context),
4063
- });
4064
- };
4065
- const de_ItemCollectionMetricsMultiple = (output, context) => {
4066
- const retVal = (output || [])
4067
- .filter((e) => e != null)
4068
- .map((entry) => {
4069
- return de_ItemCollectionMetrics(entry, context);
4070
- });
4071
- return retVal;
4072
- };
4073
- const de_ItemCollectionMetricsPerTable = (output, context) => {
4074
- return Object.entries(output).reduce((acc, [key, value]) => {
4075
- if (value === null) {
4076
- return acc;
4077
- }
4078
- acc[key] = de_ItemCollectionMetricsMultiple(value, context);
4079
- return acc;
4080
- }, {});
4081
- };
4082
- const de_ItemCollectionSizeEstimateRange = (output, context) => {
4083
- const retVal = (output || [])
4084
- .filter((e) => e != null)
4085
- .map((entry) => {
4086
- return (0, smithy_client_1.limitedParseDouble)(entry);
4087
- });
4088
- return retVal;
4089
- };
4090
- const de_ItemList = (output, context) => {
4091
- const retVal = (output || [])
4092
- .filter((e) => e != null)
4093
- .map((entry) => {
4094
- return de_AttributeMap(entry, context);
4095
- });
4096
- return retVal;
4097
- };
4098
- const de_ItemResponse = (output, context) => {
4099
- return (0, smithy_client_1.take)(output, {
4100
- Item: (_) => de_AttributeMap(_, context),
4101
- });
4102
- };
4103
- const de_ItemResponseList = (output, context) => {
4104
- const retVal = (output || [])
4105
- .filter((e) => e != null)
4106
- .map((entry) => {
4107
- return de_ItemResponse(entry, context);
4108
- });
4109
- return retVal;
4110
- };
4111
- const de_Key = (output, context) => {
4112
- return Object.entries(output).reduce((acc, [key, value]) => {
4113
- if (value === null) {
4114
- return acc;
4115
- }
4116
- acc[key] = de_AttributeValue((0, core_1.awsExpectUnion)(value), context);
4117
- return acc;
4118
- }, {});
4119
- };
4120
- const de_KeyList = (output, context) => {
4121
- const retVal = (output || [])
4122
- .filter((e) => e != null)
4123
- .map((entry) => {
4124
- return de_Key(entry, context);
4125
- });
4126
- return retVal;
4127
- };
4128
- const de_KeysAndAttributes = (output, context) => {
4129
- return (0, smithy_client_1.take)(output, {
4130
- AttributesToGet: smithy_client_1._json,
4131
- ConsistentRead: smithy_client_1.expectBoolean,
4132
- ExpressionAttributeNames: smithy_client_1._json,
4133
- Keys: (_) => de_KeyList(_, context),
4134
- ProjectionExpression: smithy_client_1.expectString,
4135
- });
4136
- };
4137
- const de_ListAttributeValue = (output, context) => {
4138
- const retVal = (output || [])
4139
- .filter((e) => e != null)
4140
- .map((entry) => {
4141
- return de_AttributeValue((0, core_1.awsExpectUnion)(entry), context);
4142
- });
4143
- return retVal;
4144
- };
4145
- const de_ListBackupsOutput = (output, context) => {
4146
- return (0, smithy_client_1.take)(output, {
4147
- BackupSummaries: (_) => de_BackupSummaries(_, context),
4148
- LastEvaluatedBackupArn: smithy_client_1.expectString,
4149
- });
4150
- };
4151
- const de_ListImportsOutput = (output, context) => {
4152
- return (0, smithy_client_1.take)(output, {
4153
- ImportSummaryList: (_) => de_ImportSummaryList(_, context),
4154
- NextToken: smithy_client_1.expectString,
4155
- });
4156
- };
4157
- const de_MapAttributeValue = (output, context) => {
4158
- return Object.entries(output).reduce((acc, [key, value]) => {
4159
- if (value === null) {
4160
- return acc;
4161
- }
4162
- acc[key] = de_AttributeValue((0, core_1.awsExpectUnion)(value), context);
4163
- return acc;
4164
- }, {});
4165
- };
4166
- const de_PartiQLBatchResponse = (output, context) => {
4167
- const retVal = (output || [])
4168
- .filter((e) => e != null)
4169
- .map((entry) => {
4170
- return de_BatchStatementResponse(entry, context);
4171
- });
4172
- return retVal;
4173
- };
4174
- const de_PointInTimeRecoveryDescription = (output, context) => {
4175
- return (0, smithy_client_1.take)(output, {
4176
- EarliestRestorableDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
4177
- LatestRestorableDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
4178
- PointInTimeRecoveryStatus: smithy_client_1.expectString,
4179
- });
4180
- };
4181
- const de_ProvisionedThroughputDescription = (output, context) => {
4182
- return (0, smithy_client_1.take)(output, {
4183
- LastDecreaseDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
4184
- LastIncreaseDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
4185
- NumberOfDecreasesToday: smithy_client_1.expectLong,
4186
- ReadCapacityUnits: smithy_client_1.expectLong,
4187
- WriteCapacityUnits: smithy_client_1.expectLong,
4188
- });
4189
- };
4190
- const de_PutItemInputAttributeMap = (output, context) => {
4191
- return Object.entries(output).reduce((acc, [key, value]) => {
4192
- if (value === null) {
4193
- return acc;
4194
- }
4195
- acc[key] = de_AttributeValue((0, core_1.awsExpectUnion)(value), context);
4196
- return acc;
4197
- }, {});
4198
- };
4199
- const de_PutItemOutput = (output, context) => {
4200
- return (0, smithy_client_1.take)(output, {
4201
- Attributes: (_) => de_AttributeMap(_, context),
4202
- ConsumedCapacity: (_) => de_ConsumedCapacity(_, context),
4203
- ItemCollectionMetrics: (_) => de_ItemCollectionMetrics(_, context),
4204
- });
4205
- };
4206
- const de_PutRequest = (output, context) => {
4207
- return (0, smithy_client_1.take)(output, {
4208
- Item: (_) => de_PutItemInputAttributeMap(_, context),
4209
- });
4210
- };
4211
- const de_QueryOutput = (output, context) => {
4212
- return (0, smithy_client_1.take)(output, {
4213
- ConsumedCapacity: (_) => de_ConsumedCapacity(_, context),
4214
- Count: smithy_client_1.expectInt32,
4215
- Items: (_) => de_ItemList(_, context),
4216
- LastEvaluatedKey: (_) => de_Key(_, context),
4217
- ScannedCount: smithy_client_1.expectInt32,
4218
- });
4219
- };
4220
- const de_ReplicaAutoScalingDescription = (output, context) => {
4221
- return (0, smithy_client_1.take)(output, {
4222
- GlobalSecondaryIndexes: (_) => de_ReplicaGlobalSecondaryIndexAutoScalingDescriptionList(_, context),
4223
- RegionName: smithy_client_1.expectString,
4224
- ReplicaProvisionedReadCapacityAutoScalingSettings: (_) => de_AutoScalingSettingsDescription(_, context),
4225
- ReplicaProvisionedWriteCapacityAutoScalingSettings: (_) => de_AutoScalingSettingsDescription(_, context),
4226
- ReplicaStatus: smithy_client_1.expectString,
4227
- });
4228
- };
4229
- const de_ReplicaAutoScalingDescriptionList = (output, context) => {
4230
- const retVal = (output || [])
4231
- .filter((e) => e != null)
4232
- .map((entry) => {
4233
- return de_ReplicaAutoScalingDescription(entry, context);
4234
- });
4235
- return retVal;
4236
- };
4237
- const de_ReplicaDescription = (output, context) => {
4238
- return (0, smithy_client_1.take)(output, {
4239
- GlobalSecondaryIndexes: smithy_client_1._json,
4240
- KMSMasterKeyId: smithy_client_1.expectString,
4241
- ProvisionedThroughputOverride: smithy_client_1._json,
4242
- RegionName: smithy_client_1.expectString,
4243
- ReplicaInaccessibleDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
4244
- ReplicaStatus: smithy_client_1.expectString,
4245
- ReplicaStatusDescription: smithy_client_1.expectString,
4246
- ReplicaStatusPercentProgress: smithy_client_1.expectString,
4247
- ReplicaTableClassSummary: (_) => de_TableClassSummary(_, context),
4248
- });
4249
- };
4250
- const de_ReplicaDescriptionList = (output, context) => {
4251
- const retVal = (output || [])
4252
- .filter((e) => e != null)
4253
- .map((entry) => {
4254
- return de_ReplicaDescription(entry, context);
4255
- });
4256
- return retVal;
4257
- };
4258
- const de_ReplicaGlobalSecondaryIndexAutoScalingDescription = (output, context) => {
4259
- return (0, smithy_client_1.take)(output, {
4260
- IndexName: smithy_client_1.expectString,
4261
- IndexStatus: smithy_client_1.expectString,
4262
- ProvisionedReadCapacityAutoScalingSettings: (_) => de_AutoScalingSettingsDescription(_, context),
4263
- ProvisionedWriteCapacityAutoScalingSettings: (_) => de_AutoScalingSettingsDescription(_, context),
4264
- });
4265
- };
4266
- const de_ReplicaGlobalSecondaryIndexAutoScalingDescriptionList = (output, context) => {
4267
- const retVal = (output || [])
4268
- .filter((e) => e != null)
4269
- .map((entry) => {
4270
- return de_ReplicaGlobalSecondaryIndexAutoScalingDescription(entry, context);
4271
- });
4272
- return retVal;
4273
- };
4274
- const de_ReplicaGlobalSecondaryIndexSettingsDescription = (output, context) => {
4275
- return (0, smithy_client_1.take)(output, {
4276
- IndexName: smithy_client_1.expectString,
4277
- IndexStatus: smithy_client_1.expectString,
4278
- ProvisionedReadCapacityAutoScalingSettings: (_) => de_AutoScalingSettingsDescription(_, context),
4279
- ProvisionedReadCapacityUnits: smithy_client_1.expectLong,
4280
- ProvisionedWriteCapacityAutoScalingSettings: (_) => de_AutoScalingSettingsDescription(_, context),
4281
- ProvisionedWriteCapacityUnits: smithy_client_1.expectLong,
4282
- });
4283
- };
4284
- const de_ReplicaGlobalSecondaryIndexSettingsDescriptionList = (output, context) => {
4285
- const retVal = (output || [])
4286
- .filter((e) => e != null)
4287
- .map((entry) => {
4288
- return de_ReplicaGlobalSecondaryIndexSettingsDescription(entry, context);
4289
- });
4290
- return retVal;
4291
- };
4292
- const de_ReplicaSettingsDescription = (output, context) => {
4293
- return (0, smithy_client_1.take)(output, {
4294
- RegionName: smithy_client_1.expectString,
4295
- ReplicaBillingModeSummary: (_) => de_BillingModeSummary(_, context),
4296
- ReplicaGlobalSecondaryIndexSettings: (_) => de_ReplicaGlobalSecondaryIndexSettingsDescriptionList(_, context),
4297
- ReplicaProvisionedReadCapacityAutoScalingSettings: (_) => de_AutoScalingSettingsDescription(_, context),
4298
- ReplicaProvisionedReadCapacityUnits: smithy_client_1.expectLong,
4299
- ReplicaProvisionedWriteCapacityAutoScalingSettings: (_) => de_AutoScalingSettingsDescription(_, context),
4300
- ReplicaProvisionedWriteCapacityUnits: smithy_client_1.expectLong,
4301
- ReplicaStatus: smithy_client_1.expectString,
4302
- ReplicaTableClassSummary: (_) => de_TableClassSummary(_, context),
4303
- });
4304
- };
4305
- const de_ReplicaSettingsDescriptionList = (output, context) => {
4306
- const retVal = (output || [])
4307
- .filter((e) => e != null)
4308
- .map((entry) => {
4309
- return de_ReplicaSettingsDescription(entry, context);
4310
- });
4311
- return retVal;
4312
- };
4313
- const de_RestoreSummary = (output, context) => {
4314
- return (0, smithy_client_1.take)(output, {
4315
- RestoreDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
4316
- RestoreInProgress: smithy_client_1.expectBoolean,
4317
- SourceBackupArn: smithy_client_1.expectString,
4318
- SourceTableArn: smithy_client_1.expectString,
4319
- });
4320
- };
4321
- const de_RestoreTableFromBackupOutput = (output, context) => {
4322
- return (0, smithy_client_1.take)(output, {
4323
- TableDescription: (_) => de_TableDescription(_, context),
4324
- });
4325
- };
4326
- const de_RestoreTableToPointInTimeOutput = (output, context) => {
4327
- return (0, smithy_client_1.take)(output, {
4328
- TableDescription: (_) => de_TableDescription(_, context),
4329
- });
4330
- };
4331
- const de_ScanOutput = (output, context) => {
4332
- return (0, smithy_client_1.take)(output, {
4333
- ConsumedCapacity: (_) => de_ConsumedCapacity(_, context),
4334
- Count: smithy_client_1.expectInt32,
4335
- Items: (_) => de_ItemList(_, context),
4336
- LastEvaluatedKey: (_) => de_Key(_, context),
4337
- ScannedCount: smithy_client_1.expectInt32,
4338
- });
4339
- };
4340
- const de_SecondaryIndexesCapacityMap = (output, context) => {
4341
- return Object.entries(output).reduce((acc, [key, value]) => {
4342
- if (value === null) {
4343
- return acc;
4344
- }
4345
- acc[key] = de_Capacity(value, context);
4346
- return acc;
4347
- }, {});
4348
- };
4349
- const de_SourceTableDetails = (output, context) => {
4350
- return (0, smithy_client_1.take)(output, {
4351
- BillingMode: smithy_client_1.expectString,
4352
- ItemCount: smithy_client_1.expectLong,
4353
- KeySchema: smithy_client_1._json,
4354
- ProvisionedThroughput: smithy_client_1._json,
4355
- TableArn: smithy_client_1.expectString,
4356
- TableCreationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
4357
- TableId: smithy_client_1.expectString,
4358
- TableName: smithy_client_1.expectString,
4359
- TableSizeBytes: smithy_client_1.expectLong,
4360
- });
4361
- };
4362
- const de_SourceTableFeatureDetails = (output, context) => {
4363
- return (0, smithy_client_1.take)(output, {
4364
- GlobalSecondaryIndexes: smithy_client_1._json,
4365
- LocalSecondaryIndexes: smithy_client_1._json,
4366
- SSEDescription: (_) => de_SSEDescription(_, context),
4367
- StreamDescription: smithy_client_1._json,
4368
- TimeToLiveDescription: smithy_client_1._json,
4369
- });
4370
- };
4371
- const de_SSEDescription = (output, context) => {
4372
- return (0, smithy_client_1.take)(output, {
4373
- InaccessibleEncryptionDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
4374
- KMSMasterKeyArn: smithy_client_1.expectString,
4375
- SSEType: smithy_client_1.expectString,
4376
- Status: smithy_client_1.expectString,
4377
- });
4378
- };
4379
- const de_TableAutoScalingDescription = (output, context) => {
4380
- return (0, smithy_client_1.take)(output, {
4381
- Replicas: (_) => de_ReplicaAutoScalingDescriptionList(_, context),
4382
- TableName: smithy_client_1.expectString,
4383
- TableStatus: smithy_client_1.expectString,
4384
- });
4385
- };
4386
- const de_TableClassSummary = (output, context) => {
4387
- return (0, smithy_client_1.take)(output, {
4388
- LastUpdateDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
4389
- TableClass: smithy_client_1.expectString,
4390
- });
4391
- };
4392
- const de_TableDescription = (output, context) => {
4393
- return (0, smithy_client_1.take)(output, {
4394
- ArchivalSummary: (_) => de_ArchivalSummary(_, context),
4395
- AttributeDefinitions: smithy_client_1._json,
4396
- BillingModeSummary: (_) => de_BillingModeSummary(_, context),
4397
- CreationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
4398
- DeletionProtectionEnabled: smithy_client_1.expectBoolean,
4399
- GlobalSecondaryIndexes: (_) => de_GlobalSecondaryIndexDescriptionList(_, context),
4400
- GlobalTableVersion: smithy_client_1.expectString,
4401
- ItemCount: smithy_client_1.expectLong,
4402
- KeySchema: smithy_client_1._json,
4403
- LatestStreamArn: smithy_client_1.expectString,
4404
- LatestStreamLabel: smithy_client_1.expectString,
4405
- LocalSecondaryIndexes: smithy_client_1._json,
4406
- ProvisionedThroughput: (_) => de_ProvisionedThroughputDescription(_, context),
4407
- Replicas: (_) => de_ReplicaDescriptionList(_, context),
4408
- RestoreSummary: (_) => de_RestoreSummary(_, context),
4409
- SSEDescription: (_) => de_SSEDescription(_, context),
4410
- StreamSpecification: smithy_client_1._json,
4411
- TableArn: smithy_client_1.expectString,
4412
- TableClassSummary: (_) => de_TableClassSummary(_, context),
4413
- TableId: smithy_client_1.expectString,
4414
- TableName: smithy_client_1.expectString,
4415
- TableSizeBytes: smithy_client_1.expectLong,
4416
- TableStatus: smithy_client_1.expectString,
4417
- });
4418
- };
4419
- const de_TransactGetItemsOutput = (output, context) => {
4420
- return (0, smithy_client_1.take)(output, {
4421
- ConsumedCapacity: (_) => de_ConsumedCapacityMultiple(_, context),
4422
- Responses: (_) => de_ItemResponseList(_, context),
4423
- });
4424
- };
4425
- const de_TransactionCanceledException = (output, context) => {
4426
- return (0, smithy_client_1.take)(output, {
4427
- CancellationReasons: (_) => de_CancellationReasonList(_, context),
4428
- Message: smithy_client_1.expectString,
4429
- });
4430
- };
4431
- const de_TransactWriteItemsOutput = (output, context) => {
4432
- return (0, smithy_client_1.take)(output, {
4433
- ConsumedCapacity: (_) => de_ConsumedCapacityMultiple(_, context),
4434
- ItemCollectionMetrics: (_) => de_ItemCollectionMetricsPerTable(_, context),
4435
- });
4436
- };
4437
- const de_UpdateContinuousBackupsOutput = (output, context) => {
4438
- return (0, smithy_client_1.take)(output, {
4439
- ContinuousBackupsDescription: (_) => de_ContinuousBackupsDescription(_, context),
4440
- });
4441
- };
4442
- const de_UpdateGlobalTableOutput = (output, context) => {
4443
- return (0, smithy_client_1.take)(output, {
4444
- GlobalTableDescription: (_) => de_GlobalTableDescription(_, context),
4445
- });
4446
- };
4447
- const de_UpdateGlobalTableSettingsOutput = (output, context) => {
4448
- return (0, smithy_client_1.take)(output, {
4449
- GlobalTableName: smithy_client_1.expectString,
4450
- ReplicaSettings: (_) => de_ReplicaSettingsDescriptionList(_, context),
4451
- });
4452
- };
4453
- const de_UpdateItemOutput = (output, context) => {
4454
- return (0, smithy_client_1.take)(output, {
4455
- Attributes: (_) => de_AttributeMap(_, context),
4456
- ConsumedCapacity: (_) => de_ConsumedCapacity(_, context),
4457
- ItemCollectionMetrics: (_) => de_ItemCollectionMetrics(_, context),
4458
- });
4459
- };
4460
- const de_UpdateTableOutput = (output, context) => {
4461
- return (0, smithy_client_1.take)(output, {
4462
- TableDescription: (_) => de_TableDescription(_, context),
4463
- });
4464
- };
4465
- const de_UpdateTableReplicaAutoScalingOutput = (output, context) => {
4466
- return (0, smithy_client_1.take)(output, {
4467
- TableAutoScalingDescription: (_) => de_TableAutoScalingDescription(_, context),
4468
- });
4469
- };
4470
- const de_WriteRequest = (output, context) => {
4471
- return (0, smithy_client_1.take)(output, {
4472
- DeleteRequest: (_) => de_DeleteRequest(_, context),
4473
- PutRequest: (_) => de_PutRequest(_, context),
4474
- });
4475
- };
4476
- const de_WriteRequests = (output, context) => {
4477
- const retVal = (output || [])
4478
- .filter((e) => e != null)
4479
- .map((entry) => {
4480
- return de_WriteRequest(entry, context);
4481
- });
4482
- return retVal;
4483
- };
4484
- const deserializeMetadata = (output) => ({
4485
- httpStatusCode: output.statusCode,
4486
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
4487
- extendedRequestId: output.headers["x-amz-id-2"],
4488
- cfId: output.headers["x-amz-cf-id"],
4489
- });
4490
- const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
4491
- const throwDefaultError = (0, smithy_client_1.withBaseException)(DynamoDBServiceException_1.DynamoDBServiceException);
4492
- const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
4493
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
4494
- const contents = {
4495
- protocol,
4496
- hostname,
4497
- port,
4498
- method: "POST",
4499
- path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
4500
- headers,
4501
- };
4502
- if (resolvedHostname !== undefined) {
4503
- contents.hostname = resolvedHostname;
4504
- }
4505
- if (body !== undefined) {
4506
- contents.body = body;
4507
- }
4508
- return new protocol_http_1.HttpRequest(contents);
4509
- };
4510
- function sharedHeaders(operation) {
4511
- return {
4512
- "content-type": "application/x-amz-json-1.0",
4513
- "x-amz-target": `DynamoDB_20120810.${operation}`,
4514
- };
4515
- }
4516
- const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
4517
- if (encoded.length) {
4518
- return JSON.parse(encoded);
4519
- }
4520
- return {};
4521
- });
4522
- const parseErrorBody = async (errorBody, context) => {
4523
- const value = await parseBody(errorBody, context);
4524
- value.message = value.message ?? value.Message;
4525
- return value;
4526
- };
4527
- const loadRestJsonErrorCode = (output, data) => {
4528
- const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
4529
- const sanitizeErrorCode = (rawValue) => {
4530
- let cleanValue = rawValue;
4531
- if (typeof cleanValue === "number") {
4532
- cleanValue = cleanValue.toString();
4533
- }
4534
- if (cleanValue.indexOf(",") >= 0) {
4535
- cleanValue = cleanValue.split(",")[0];
4536
- }
4537
- if (cleanValue.indexOf(":") >= 0) {
4538
- cleanValue = cleanValue.split(":")[0];
4539
- }
4540
- if (cleanValue.indexOf("#") >= 0) {
4541
- cleanValue = cleanValue.split("#")[1];
4542
- }
4543
- return cleanValue;
4544
- };
4545
- const headerKey = findKey(output.headers, "x-amzn-errortype");
4546
- if (headerKey !== undefined) {
4547
- return sanitizeErrorCode(output.headers[headerKey]);
4548
- }
4549
- if (data.code !== undefined) {
4550
- return sanitizeErrorCode(data.code);
4551
- }
4552
- if (data["__type"] !== undefined) {
4553
- return sanitizeErrorCode(data["__type"]);
4554
- }
4555
- };
1
+ module.exports = require("../index.js");