@aws-sdk/client-dynamodb 3.926.0 → 3.928.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +3099 -3619
- package/dist-cjs/runtimeConfig.shared.js +7 -0
- package/dist-es/DynamoDBClient.js +2 -0
- package/dist-es/commands/BatchExecuteStatementCommand.js +3 -9
- package/dist-es/commands/BatchGetItemCommand.js +3 -9
- package/dist-es/commands/BatchWriteItemCommand.js +3 -9
- package/dist-es/commands/CreateBackupCommand.js +3 -9
- package/dist-es/commands/CreateGlobalTableCommand.js +3 -9
- package/dist-es/commands/CreateTableCommand.js +3 -9
- package/dist-es/commands/DeleteBackupCommand.js +3 -9
- package/dist-es/commands/DeleteItemCommand.js +3 -9
- package/dist-es/commands/DeleteResourcePolicyCommand.js +3 -9
- package/dist-es/commands/DeleteTableCommand.js +3 -9
- package/dist-es/commands/DescribeBackupCommand.js +3 -9
- package/dist-es/commands/DescribeContinuousBackupsCommand.js +3 -9
- package/dist-es/commands/DescribeContributorInsightsCommand.js +3 -9
- package/dist-es/commands/DescribeEndpointsCommand.js +3 -9
- package/dist-es/commands/DescribeExportCommand.js +3 -9
- package/dist-es/commands/DescribeGlobalTableCommand.js +3 -9
- package/dist-es/commands/DescribeGlobalTableSettingsCommand.js +3 -9
- package/dist-es/commands/DescribeImportCommand.js +3 -9
- package/dist-es/commands/DescribeKinesisStreamingDestinationCommand.js +3 -9
- package/dist-es/commands/DescribeLimitsCommand.js +3 -9
- package/dist-es/commands/DescribeTableCommand.js +3 -9
- package/dist-es/commands/DescribeTableReplicaAutoScalingCommand.js +3 -9
- package/dist-es/commands/DescribeTimeToLiveCommand.js +3 -9
- package/dist-es/commands/DisableKinesisStreamingDestinationCommand.js +3 -9
- package/dist-es/commands/EnableKinesisStreamingDestinationCommand.js +3 -9
- package/dist-es/commands/ExecuteStatementCommand.js +3 -9
- package/dist-es/commands/ExecuteTransactionCommand.js +3 -9
- package/dist-es/commands/ExportTableToPointInTimeCommand.js +3 -9
- package/dist-es/commands/GetItemCommand.js +3 -9
- package/dist-es/commands/GetResourcePolicyCommand.js +3 -9
- package/dist-es/commands/ImportTableCommand.js +3 -9
- package/dist-es/commands/ListBackupsCommand.js +3 -9
- package/dist-es/commands/ListContributorInsightsCommand.js +3 -9
- package/dist-es/commands/ListExportsCommand.js +3 -9
- package/dist-es/commands/ListGlobalTablesCommand.js +3 -9
- package/dist-es/commands/ListImportsCommand.js +3 -9
- package/dist-es/commands/ListTablesCommand.js +3 -9
- package/dist-es/commands/ListTagsOfResourceCommand.js +3 -9
- package/dist-es/commands/PutItemCommand.js +3 -9
- package/dist-es/commands/PutResourcePolicyCommand.js +3 -9
- package/dist-es/commands/QueryCommand.js +3 -9
- package/dist-es/commands/RestoreTableFromBackupCommand.js +3 -9
- package/dist-es/commands/RestoreTableToPointInTimeCommand.js +3 -9
- package/dist-es/commands/ScanCommand.js +3 -9
- package/dist-es/commands/TagResourceCommand.js +3 -9
- package/dist-es/commands/TransactGetItemsCommand.js +3 -9
- package/dist-es/commands/TransactWriteItemsCommand.js +3 -9
- package/dist-es/commands/UntagResourceCommand.js +3 -9
- package/dist-es/commands/UpdateContinuousBackupsCommand.js +3 -9
- package/dist-es/commands/UpdateContributorInsightsCommand.js +3 -9
- package/dist-es/commands/UpdateGlobalTableCommand.js +3 -9
- package/dist-es/commands/UpdateGlobalTableSettingsCommand.js +3 -9
- package/dist-es/commands/UpdateItemCommand.js +3 -9
- package/dist-es/commands/UpdateKinesisStreamingDestinationCommand.js +3 -9
- package/dist-es/commands/UpdateTableCommand.js +3 -9
- package/dist-es/commands/UpdateTableReplicaAutoScalingCommand.js +3 -9
- package/dist-es/commands/UpdateTimeToLiveCommand.js +3 -9
- package/dist-es/runtimeConfig.shared.js +7 -0
- package/dist-es/schemas/schemas_0.js +2878 -0
- package/dist-types/DynamoDBClient.d.ts +10 -1
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +397 -0
- package/dist-types/ts3.4/DynamoDBClient.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +403 -0
- package/package.json +5 -6
- package/dist-es/protocols/Aws_json1_0.js +0 -3108
- package/dist-types/protocols/Aws_json1_0.d.ts +0 -515
- package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +0 -686
|
@@ -1,3108 +0,0 @@
|
|
|
1
|
-
import { awsExpectUnion as __expectUnion, loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody, } from "@aws-sdk/core";
|
|
2
|
-
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
3
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, limitedParseDouble as __limitedParseDouble, parseEpochTimestamp as __parseEpochTimestamp, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
-
import { v4 as generateIdempotencyToken } from "@smithy/uuid";
|
|
5
|
-
import { DynamoDBServiceException as __BaseException } from "../models/DynamoDBServiceException";
|
|
6
|
-
import { AttributeValue, BackupInUseException, BackupNotFoundException, ConditionalCheckFailedException, ContinuousBackupsUnavailableException, DuplicateItemException, ExportConflictException, ExportNotFoundException, GlobalTableAlreadyExistsException, GlobalTableNotFoundException, IdempotentParameterMismatchException, ImportConflictException, ImportNotFoundException, IndexNotFoundException, InternalServerError, InvalidEndpointException, InvalidExportTimeException, InvalidRestoreTimeException, ItemCollectionSizeLimitExceededException, LimitExceededException, PointInTimeRecoveryUnavailableException, PolicyNotFoundException, ProvisionedThroughputExceededException, ReplicaAlreadyExistsException, ReplicaNotFoundException, ReplicatedWriteConflictException, RequestLimitExceeded, ResourceInUseException, ResourceNotFoundException, TableAlreadyExistsException, TableInUseException, TableNotFoundException, ThrottlingException, TransactionCanceledException, TransactionConflictException, TransactionInProgressException, } from "../models/models_0";
|
|
7
|
-
export const se_BatchExecuteStatementCommand = async (input, context) => {
|
|
8
|
-
const headers = sharedHeaders("BatchExecuteStatement");
|
|
9
|
-
let body;
|
|
10
|
-
body = JSON.stringify(se_BatchExecuteStatementInput(input, context));
|
|
11
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
12
|
-
};
|
|
13
|
-
export const se_BatchGetItemCommand = async (input, context) => {
|
|
14
|
-
const headers = sharedHeaders("BatchGetItem");
|
|
15
|
-
let body;
|
|
16
|
-
body = JSON.stringify(se_BatchGetItemInput(input, context));
|
|
17
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
18
|
-
};
|
|
19
|
-
export const se_BatchWriteItemCommand = async (input, context) => {
|
|
20
|
-
const headers = sharedHeaders("BatchWriteItem");
|
|
21
|
-
let body;
|
|
22
|
-
body = JSON.stringify(se_BatchWriteItemInput(input, context));
|
|
23
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
24
|
-
};
|
|
25
|
-
export const se_CreateBackupCommand = async (input, context) => {
|
|
26
|
-
const headers = sharedHeaders("CreateBackup");
|
|
27
|
-
let body;
|
|
28
|
-
body = JSON.stringify(_json(input));
|
|
29
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
30
|
-
};
|
|
31
|
-
export const se_CreateGlobalTableCommand = async (input, context) => {
|
|
32
|
-
const headers = sharedHeaders("CreateGlobalTable");
|
|
33
|
-
let body;
|
|
34
|
-
body = JSON.stringify(_json(input));
|
|
35
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
36
|
-
};
|
|
37
|
-
export const se_CreateTableCommand = async (input, context) => {
|
|
38
|
-
const headers = sharedHeaders("CreateTable");
|
|
39
|
-
let body;
|
|
40
|
-
body = JSON.stringify(_json(input));
|
|
41
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
42
|
-
};
|
|
43
|
-
export const se_DeleteBackupCommand = async (input, context) => {
|
|
44
|
-
const headers = sharedHeaders("DeleteBackup");
|
|
45
|
-
let body;
|
|
46
|
-
body = JSON.stringify(_json(input));
|
|
47
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
48
|
-
};
|
|
49
|
-
export const se_DeleteItemCommand = async (input, context) => {
|
|
50
|
-
const headers = sharedHeaders("DeleteItem");
|
|
51
|
-
let body;
|
|
52
|
-
body = JSON.stringify(se_DeleteItemInput(input, context));
|
|
53
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
54
|
-
};
|
|
55
|
-
export const se_DeleteResourcePolicyCommand = async (input, context) => {
|
|
56
|
-
const headers = sharedHeaders("DeleteResourcePolicy");
|
|
57
|
-
let body;
|
|
58
|
-
body = JSON.stringify(_json(input));
|
|
59
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
60
|
-
};
|
|
61
|
-
export const se_DeleteTableCommand = async (input, context) => {
|
|
62
|
-
const headers = sharedHeaders("DeleteTable");
|
|
63
|
-
let body;
|
|
64
|
-
body = JSON.stringify(_json(input));
|
|
65
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
66
|
-
};
|
|
67
|
-
export const se_DescribeBackupCommand = async (input, context) => {
|
|
68
|
-
const headers = sharedHeaders("DescribeBackup");
|
|
69
|
-
let body;
|
|
70
|
-
body = JSON.stringify(_json(input));
|
|
71
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
72
|
-
};
|
|
73
|
-
export const se_DescribeContinuousBackupsCommand = async (input, context) => {
|
|
74
|
-
const headers = sharedHeaders("DescribeContinuousBackups");
|
|
75
|
-
let body;
|
|
76
|
-
body = JSON.stringify(_json(input));
|
|
77
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
78
|
-
};
|
|
79
|
-
export const se_DescribeContributorInsightsCommand = async (input, context) => {
|
|
80
|
-
const headers = sharedHeaders("DescribeContributorInsights");
|
|
81
|
-
let body;
|
|
82
|
-
body = JSON.stringify(_json(input));
|
|
83
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
84
|
-
};
|
|
85
|
-
export const se_DescribeEndpointsCommand = async (input, context) => {
|
|
86
|
-
const headers = sharedHeaders("DescribeEndpoints");
|
|
87
|
-
let body;
|
|
88
|
-
body = JSON.stringify(_json(input));
|
|
89
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
90
|
-
};
|
|
91
|
-
export const se_DescribeExportCommand = async (input, context) => {
|
|
92
|
-
const headers = sharedHeaders("DescribeExport");
|
|
93
|
-
let body;
|
|
94
|
-
body = JSON.stringify(_json(input));
|
|
95
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
96
|
-
};
|
|
97
|
-
export const se_DescribeGlobalTableCommand = async (input, context) => {
|
|
98
|
-
const headers = sharedHeaders("DescribeGlobalTable");
|
|
99
|
-
let body;
|
|
100
|
-
body = JSON.stringify(_json(input));
|
|
101
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
102
|
-
};
|
|
103
|
-
export const se_DescribeGlobalTableSettingsCommand = async (input, context) => {
|
|
104
|
-
const headers = sharedHeaders("DescribeGlobalTableSettings");
|
|
105
|
-
let body;
|
|
106
|
-
body = JSON.stringify(_json(input));
|
|
107
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
108
|
-
};
|
|
109
|
-
export const se_DescribeImportCommand = async (input, context) => {
|
|
110
|
-
const headers = sharedHeaders("DescribeImport");
|
|
111
|
-
let body;
|
|
112
|
-
body = JSON.stringify(_json(input));
|
|
113
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
114
|
-
};
|
|
115
|
-
export const se_DescribeKinesisStreamingDestinationCommand = async (input, context) => {
|
|
116
|
-
const headers = sharedHeaders("DescribeKinesisStreamingDestination");
|
|
117
|
-
let body;
|
|
118
|
-
body = JSON.stringify(_json(input));
|
|
119
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
120
|
-
};
|
|
121
|
-
export const se_DescribeLimitsCommand = async (input, context) => {
|
|
122
|
-
const headers = sharedHeaders("DescribeLimits");
|
|
123
|
-
let body;
|
|
124
|
-
body = JSON.stringify(_json(input));
|
|
125
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
126
|
-
};
|
|
127
|
-
export const se_DescribeTableCommand = async (input, context) => {
|
|
128
|
-
const headers = sharedHeaders("DescribeTable");
|
|
129
|
-
let body;
|
|
130
|
-
body = JSON.stringify(_json(input));
|
|
131
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
132
|
-
};
|
|
133
|
-
export const se_DescribeTableReplicaAutoScalingCommand = async (input, context) => {
|
|
134
|
-
const headers = sharedHeaders("DescribeTableReplicaAutoScaling");
|
|
135
|
-
let body;
|
|
136
|
-
body = JSON.stringify(_json(input));
|
|
137
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
138
|
-
};
|
|
139
|
-
export const se_DescribeTimeToLiveCommand = async (input, context) => {
|
|
140
|
-
const headers = sharedHeaders("DescribeTimeToLive");
|
|
141
|
-
let body;
|
|
142
|
-
body = JSON.stringify(_json(input));
|
|
143
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
144
|
-
};
|
|
145
|
-
export const se_DisableKinesisStreamingDestinationCommand = async (input, context) => {
|
|
146
|
-
const headers = sharedHeaders("DisableKinesisStreamingDestination");
|
|
147
|
-
let body;
|
|
148
|
-
body = JSON.stringify(_json(input));
|
|
149
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
150
|
-
};
|
|
151
|
-
export const se_EnableKinesisStreamingDestinationCommand = async (input, context) => {
|
|
152
|
-
const headers = sharedHeaders("EnableKinesisStreamingDestination");
|
|
153
|
-
let body;
|
|
154
|
-
body = JSON.stringify(_json(input));
|
|
155
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
156
|
-
};
|
|
157
|
-
export const se_ExecuteStatementCommand = async (input, context) => {
|
|
158
|
-
const headers = sharedHeaders("ExecuteStatement");
|
|
159
|
-
let body;
|
|
160
|
-
body = JSON.stringify(se_ExecuteStatementInput(input, context));
|
|
161
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
162
|
-
};
|
|
163
|
-
export const se_ExecuteTransactionCommand = async (input, context) => {
|
|
164
|
-
const headers = sharedHeaders("ExecuteTransaction");
|
|
165
|
-
let body;
|
|
166
|
-
body = JSON.stringify(se_ExecuteTransactionInput(input, context));
|
|
167
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
168
|
-
};
|
|
169
|
-
export const se_ExportTableToPointInTimeCommand = async (input, context) => {
|
|
170
|
-
const headers = sharedHeaders("ExportTableToPointInTime");
|
|
171
|
-
let body;
|
|
172
|
-
body = JSON.stringify(se_ExportTableToPointInTimeInput(input, context));
|
|
173
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
174
|
-
};
|
|
175
|
-
export const se_GetItemCommand = async (input, context) => {
|
|
176
|
-
const headers = sharedHeaders("GetItem");
|
|
177
|
-
let body;
|
|
178
|
-
body = JSON.stringify(se_GetItemInput(input, context));
|
|
179
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
180
|
-
};
|
|
181
|
-
export const se_GetResourcePolicyCommand = async (input, context) => {
|
|
182
|
-
const headers = sharedHeaders("GetResourcePolicy");
|
|
183
|
-
let body;
|
|
184
|
-
body = JSON.stringify(_json(input));
|
|
185
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
186
|
-
};
|
|
187
|
-
export const se_ImportTableCommand = async (input, context) => {
|
|
188
|
-
const headers = sharedHeaders("ImportTable");
|
|
189
|
-
let body;
|
|
190
|
-
body = JSON.stringify(se_ImportTableInput(input, context));
|
|
191
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
192
|
-
};
|
|
193
|
-
export const se_ListBackupsCommand = async (input, context) => {
|
|
194
|
-
const headers = sharedHeaders("ListBackups");
|
|
195
|
-
let body;
|
|
196
|
-
body = JSON.stringify(se_ListBackupsInput(input, context));
|
|
197
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
198
|
-
};
|
|
199
|
-
export const se_ListContributorInsightsCommand = async (input, context) => {
|
|
200
|
-
const headers = sharedHeaders("ListContributorInsights");
|
|
201
|
-
let body;
|
|
202
|
-
body = JSON.stringify(_json(input));
|
|
203
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
204
|
-
};
|
|
205
|
-
export const se_ListExportsCommand = async (input, context) => {
|
|
206
|
-
const headers = sharedHeaders("ListExports");
|
|
207
|
-
let body;
|
|
208
|
-
body = JSON.stringify(_json(input));
|
|
209
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
210
|
-
};
|
|
211
|
-
export const se_ListGlobalTablesCommand = async (input, context) => {
|
|
212
|
-
const headers = sharedHeaders("ListGlobalTables");
|
|
213
|
-
let body;
|
|
214
|
-
body = JSON.stringify(_json(input));
|
|
215
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
216
|
-
};
|
|
217
|
-
export const se_ListImportsCommand = async (input, context) => {
|
|
218
|
-
const headers = sharedHeaders("ListImports");
|
|
219
|
-
let body;
|
|
220
|
-
body = JSON.stringify(_json(input));
|
|
221
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
222
|
-
};
|
|
223
|
-
export const se_ListTablesCommand = async (input, context) => {
|
|
224
|
-
const headers = sharedHeaders("ListTables");
|
|
225
|
-
let body;
|
|
226
|
-
body = JSON.stringify(_json(input));
|
|
227
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
228
|
-
};
|
|
229
|
-
export const se_ListTagsOfResourceCommand = async (input, context) => {
|
|
230
|
-
const headers = sharedHeaders("ListTagsOfResource");
|
|
231
|
-
let body;
|
|
232
|
-
body = JSON.stringify(_json(input));
|
|
233
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
234
|
-
};
|
|
235
|
-
export const se_PutItemCommand = async (input, context) => {
|
|
236
|
-
const headers = sharedHeaders("PutItem");
|
|
237
|
-
let body;
|
|
238
|
-
body = JSON.stringify(se_PutItemInput(input, context));
|
|
239
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
240
|
-
};
|
|
241
|
-
export const se_PutResourcePolicyCommand = async (input, context) => {
|
|
242
|
-
const headers = sharedHeaders("PutResourcePolicy");
|
|
243
|
-
let body;
|
|
244
|
-
body = JSON.stringify(_json(input));
|
|
245
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
246
|
-
};
|
|
247
|
-
export const se_QueryCommand = async (input, context) => {
|
|
248
|
-
const headers = sharedHeaders("Query");
|
|
249
|
-
let body;
|
|
250
|
-
body = JSON.stringify(se_QueryInput(input, context));
|
|
251
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
252
|
-
};
|
|
253
|
-
export const se_RestoreTableFromBackupCommand = async (input, context) => {
|
|
254
|
-
const headers = sharedHeaders("RestoreTableFromBackup");
|
|
255
|
-
let body;
|
|
256
|
-
body = JSON.stringify(_json(input));
|
|
257
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
258
|
-
};
|
|
259
|
-
export const se_RestoreTableToPointInTimeCommand = async (input, context) => {
|
|
260
|
-
const headers = sharedHeaders("RestoreTableToPointInTime");
|
|
261
|
-
let body;
|
|
262
|
-
body = JSON.stringify(se_RestoreTableToPointInTimeInput(input, context));
|
|
263
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
264
|
-
};
|
|
265
|
-
export const se_ScanCommand = async (input, context) => {
|
|
266
|
-
const headers = sharedHeaders("Scan");
|
|
267
|
-
let body;
|
|
268
|
-
body = JSON.stringify(se_ScanInput(input, context));
|
|
269
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
270
|
-
};
|
|
271
|
-
export const se_TagResourceCommand = async (input, context) => {
|
|
272
|
-
const headers = sharedHeaders("TagResource");
|
|
273
|
-
let body;
|
|
274
|
-
body = JSON.stringify(_json(input));
|
|
275
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
276
|
-
};
|
|
277
|
-
export const se_TransactGetItemsCommand = async (input, context) => {
|
|
278
|
-
const headers = sharedHeaders("TransactGetItems");
|
|
279
|
-
let body;
|
|
280
|
-
body = JSON.stringify(se_TransactGetItemsInput(input, context));
|
|
281
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
282
|
-
};
|
|
283
|
-
export const se_TransactWriteItemsCommand = async (input, context) => {
|
|
284
|
-
const headers = sharedHeaders("TransactWriteItems");
|
|
285
|
-
let body;
|
|
286
|
-
body = JSON.stringify(se_TransactWriteItemsInput(input, context));
|
|
287
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
288
|
-
};
|
|
289
|
-
export const se_UntagResourceCommand = async (input, context) => {
|
|
290
|
-
const headers = sharedHeaders("UntagResource");
|
|
291
|
-
let body;
|
|
292
|
-
body = JSON.stringify(_json(input));
|
|
293
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
294
|
-
};
|
|
295
|
-
export const se_UpdateContinuousBackupsCommand = async (input, context) => {
|
|
296
|
-
const headers = sharedHeaders("UpdateContinuousBackups");
|
|
297
|
-
let body;
|
|
298
|
-
body = JSON.stringify(_json(input));
|
|
299
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
300
|
-
};
|
|
301
|
-
export const se_UpdateContributorInsightsCommand = async (input, context) => {
|
|
302
|
-
const headers = sharedHeaders("UpdateContributorInsights");
|
|
303
|
-
let body;
|
|
304
|
-
body = JSON.stringify(_json(input));
|
|
305
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
306
|
-
};
|
|
307
|
-
export const se_UpdateGlobalTableCommand = async (input, context) => {
|
|
308
|
-
const headers = sharedHeaders("UpdateGlobalTable");
|
|
309
|
-
let body;
|
|
310
|
-
body = JSON.stringify(_json(input));
|
|
311
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
312
|
-
};
|
|
313
|
-
export const se_UpdateGlobalTableSettingsCommand = async (input, context) => {
|
|
314
|
-
const headers = sharedHeaders("UpdateGlobalTableSettings");
|
|
315
|
-
let body;
|
|
316
|
-
body = JSON.stringify(se_UpdateGlobalTableSettingsInput(input, context));
|
|
317
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
318
|
-
};
|
|
319
|
-
export const se_UpdateItemCommand = async (input, context) => {
|
|
320
|
-
const headers = sharedHeaders("UpdateItem");
|
|
321
|
-
let body;
|
|
322
|
-
body = JSON.stringify(se_UpdateItemInput(input, context));
|
|
323
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
324
|
-
};
|
|
325
|
-
export const se_UpdateKinesisStreamingDestinationCommand = async (input, context) => {
|
|
326
|
-
const headers = sharedHeaders("UpdateKinesisStreamingDestination");
|
|
327
|
-
let body;
|
|
328
|
-
body = JSON.stringify(_json(input));
|
|
329
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
330
|
-
};
|
|
331
|
-
export const se_UpdateTableCommand = async (input, context) => {
|
|
332
|
-
const headers = sharedHeaders("UpdateTable");
|
|
333
|
-
let body;
|
|
334
|
-
body = JSON.stringify(_json(input));
|
|
335
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
336
|
-
};
|
|
337
|
-
export const se_UpdateTableReplicaAutoScalingCommand = async (input, context) => {
|
|
338
|
-
const headers = sharedHeaders("UpdateTableReplicaAutoScaling");
|
|
339
|
-
let body;
|
|
340
|
-
body = JSON.stringify(se_UpdateTableReplicaAutoScalingInput(input, context));
|
|
341
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
342
|
-
};
|
|
343
|
-
export const se_UpdateTimeToLiveCommand = async (input, context) => {
|
|
344
|
-
const headers = sharedHeaders("UpdateTimeToLive");
|
|
345
|
-
let body;
|
|
346
|
-
body = JSON.stringify(_json(input));
|
|
347
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
348
|
-
};
|
|
349
|
-
export const de_BatchExecuteStatementCommand = async (output, context) => {
|
|
350
|
-
if (output.statusCode >= 300) {
|
|
351
|
-
return de_CommandError(output, context);
|
|
352
|
-
}
|
|
353
|
-
const data = await parseBody(output.body, context);
|
|
354
|
-
let contents = {};
|
|
355
|
-
contents = de_BatchExecuteStatementOutput(data, context);
|
|
356
|
-
const response = {
|
|
357
|
-
$metadata: deserializeMetadata(output),
|
|
358
|
-
...contents,
|
|
359
|
-
};
|
|
360
|
-
return response;
|
|
361
|
-
};
|
|
362
|
-
export const de_BatchGetItemCommand = async (output, context) => {
|
|
363
|
-
if (output.statusCode >= 300) {
|
|
364
|
-
return de_CommandError(output, context);
|
|
365
|
-
}
|
|
366
|
-
const data = await parseBody(output.body, context);
|
|
367
|
-
let contents = {};
|
|
368
|
-
contents = de_BatchGetItemOutput(data, context);
|
|
369
|
-
const response = {
|
|
370
|
-
$metadata: deserializeMetadata(output),
|
|
371
|
-
...contents,
|
|
372
|
-
};
|
|
373
|
-
return response;
|
|
374
|
-
};
|
|
375
|
-
export const de_BatchWriteItemCommand = async (output, context) => {
|
|
376
|
-
if (output.statusCode >= 300) {
|
|
377
|
-
return de_CommandError(output, context);
|
|
378
|
-
}
|
|
379
|
-
const data = await parseBody(output.body, context);
|
|
380
|
-
let contents = {};
|
|
381
|
-
contents = de_BatchWriteItemOutput(data, context);
|
|
382
|
-
const response = {
|
|
383
|
-
$metadata: deserializeMetadata(output),
|
|
384
|
-
...contents,
|
|
385
|
-
};
|
|
386
|
-
return response;
|
|
387
|
-
};
|
|
388
|
-
export const de_CreateBackupCommand = async (output, context) => {
|
|
389
|
-
if (output.statusCode >= 300) {
|
|
390
|
-
return de_CommandError(output, context);
|
|
391
|
-
}
|
|
392
|
-
const data = await parseBody(output.body, context);
|
|
393
|
-
let contents = {};
|
|
394
|
-
contents = de_CreateBackupOutput(data, context);
|
|
395
|
-
const response = {
|
|
396
|
-
$metadata: deserializeMetadata(output),
|
|
397
|
-
...contents,
|
|
398
|
-
};
|
|
399
|
-
return response;
|
|
400
|
-
};
|
|
401
|
-
export const de_CreateGlobalTableCommand = async (output, context) => {
|
|
402
|
-
if (output.statusCode >= 300) {
|
|
403
|
-
return de_CommandError(output, context);
|
|
404
|
-
}
|
|
405
|
-
const data = await parseBody(output.body, context);
|
|
406
|
-
let contents = {};
|
|
407
|
-
contents = de_CreateGlobalTableOutput(data, context);
|
|
408
|
-
const response = {
|
|
409
|
-
$metadata: deserializeMetadata(output),
|
|
410
|
-
...contents,
|
|
411
|
-
};
|
|
412
|
-
return response;
|
|
413
|
-
};
|
|
414
|
-
export const de_CreateTableCommand = async (output, context) => {
|
|
415
|
-
if (output.statusCode >= 300) {
|
|
416
|
-
return de_CommandError(output, context);
|
|
417
|
-
}
|
|
418
|
-
const data = await parseBody(output.body, context);
|
|
419
|
-
let contents = {};
|
|
420
|
-
contents = de_CreateTableOutput(data, context);
|
|
421
|
-
const response = {
|
|
422
|
-
$metadata: deserializeMetadata(output),
|
|
423
|
-
...contents,
|
|
424
|
-
};
|
|
425
|
-
return response;
|
|
426
|
-
};
|
|
427
|
-
export const de_DeleteBackupCommand = async (output, context) => {
|
|
428
|
-
if (output.statusCode >= 300) {
|
|
429
|
-
return de_CommandError(output, context);
|
|
430
|
-
}
|
|
431
|
-
const data = await parseBody(output.body, context);
|
|
432
|
-
let contents = {};
|
|
433
|
-
contents = de_DeleteBackupOutput(data, context);
|
|
434
|
-
const response = {
|
|
435
|
-
$metadata: deserializeMetadata(output),
|
|
436
|
-
...contents,
|
|
437
|
-
};
|
|
438
|
-
return response;
|
|
439
|
-
};
|
|
440
|
-
export const de_DeleteItemCommand = async (output, context) => {
|
|
441
|
-
if (output.statusCode >= 300) {
|
|
442
|
-
return de_CommandError(output, context);
|
|
443
|
-
}
|
|
444
|
-
const data = await parseBody(output.body, context);
|
|
445
|
-
let contents = {};
|
|
446
|
-
contents = de_DeleteItemOutput(data, context);
|
|
447
|
-
const response = {
|
|
448
|
-
$metadata: deserializeMetadata(output),
|
|
449
|
-
...contents,
|
|
450
|
-
};
|
|
451
|
-
return response;
|
|
452
|
-
};
|
|
453
|
-
export const de_DeleteResourcePolicyCommand = async (output, context) => {
|
|
454
|
-
if (output.statusCode >= 300) {
|
|
455
|
-
return de_CommandError(output, context);
|
|
456
|
-
}
|
|
457
|
-
const data = await parseBody(output.body, context);
|
|
458
|
-
let contents = {};
|
|
459
|
-
contents = _json(data);
|
|
460
|
-
const response = {
|
|
461
|
-
$metadata: deserializeMetadata(output),
|
|
462
|
-
...contents,
|
|
463
|
-
};
|
|
464
|
-
return response;
|
|
465
|
-
};
|
|
466
|
-
export const de_DeleteTableCommand = async (output, context) => {
|
|
467
|
-
if (output.statusCode >= 300) {
|
|
468
|
-
return de_CommandError(output, context);
|
|
469
|
-
}
|
|
470
|
-
const data = await parseBody(output.body, context);
|
|
471
|
-
let contents = {};
|
|
472
|
-
contents = de_DeleteTableOutput(data, context);
|
|
473
|
-
const response = {
|
|
474
|
-
$metadata: deserializeMetadata(output),
|
|
475
|
-
...contents,
|
|
476
|
-
};
|
|
477
|
-
return response;
|
|
478
|
-
};
|
|
479
|
-
export const de_DescribeBackupCommand = async (output, context) => {
|
|
480
|
-
if (output.statusCode >= 300) {
|
|
481
|
-
return de_CommandError(output, context);
|
|
482
|
-
}
|
|
483
|
-
const data = await parseBody(output.body, context);
|
|
484
|
-
let contents = {};
|
|
485
|
-
contents = de_DescribeBackupOutput(data, context);
|
|
486
|
-
const response = {
|
|
487
|
-
$metadata: deserializeMetadata(output),
|
|
488
|
-
...contents,
|
|
489
|
-
};
|
|
490
|
-
return response;
|
|
491
|
-
};
|
|
492
|
-
export const de_DescribeContinuousBackupsCommand = async (output, context) => {
|
|
493
|
-
if (output.statusCode >= 300) {
|
|
494
|
-
return de_CommandError(output, context);
|
|
495
|
-
}
|
|
496
|
-
const data = await parseBody(output.body, context);
|
|
497
|
-
let contents = {};
|
|
498
|
-
contents = de_DescribeContinuousBackupsOutput(data, context);
|
|
499
|
-
const response = {
|
|
500
|
-
$metadata: deserializeMetadata(output),
|
|
501
|
-
...contents,
|
|
502
|
-
};
|
|
503
|
-
return response;
|
|
504
|
-
};
|
|
505
|
-
export const de_DescribeContributorInsightsCommand = async (output, context) => {
|
|
506
|
-
if (output.statusCode >= 300) {
|
|
507
|
-
return de_CommandError(output, context);
|
|
508
|
-
}
|
|
509
|
-
const data = await parseBody(output.body, context);
|
|
510
|
-
let contents = {};
|
|
511
|
-
contents = de_DescribeContributorInsightsOutput(data, context);
|
|
512
|
-
const response = {
|
|
513
|
-
$metadata: deserializeMetadata(output),
|
|
514
|
-
...contents,
|
|
515
|
-
};
|
|
516
|
-
return response;
|
|
517
|
-
};
|
|
518
|
-
export const de_DescribeEndpointsCommand = async (output, context) => {
|
|
519
|
-
if (output.statusCode >= 300) {
|
|
520
|
-
return de_CommandError(output, context);
|
|
521
|
-
}
|
|
522
|
-
const data = await parseBody(output.body, context);
|
|
523
|
-
let contents = {};
|
|
524
|
-
contents = _json(data);
|
|
525
|
-
const response = {
|
|
526
|
-
$metadata: deserializeMetadata(output),
|
|
527
|
-
...contents,
|
|
528
|
-
};
|
|
529
|
-
return response;
|
|
530
|
-
};
|
|
531
|
-
export const de_DescribeExportCommand = async (output, context) => {
|
|
532
|
-
if (output.statusCode >= 300) {
|
|
533
|
-
return de_CommandError(output, context);
|
|
534
|
-
}
|
|
535
|
-
const data = await parseBody(output.body, context);
|
|
536
|
-
let contents = {};
|
|
537
|
-
contents = de_DescribeExportOutput(data, context);
|
|
538
|
-
const response = {
|
|
539
|
-
$metadata: deserializeMetadata(output),
|
|
540
|
-
...contents,
|
|
541
|
-
};
|
|
542
|
-
return response;
|
|
543
|
-
};
|
|
544
|
-
export const de_DescribeGlobalTableCommand = async (output, context) => {
|
|
545
|
-
if (output.statusCode >= 300) {
|
|
546
|
-
return de_CommandError(output, context);
|
|
547
|
-
}
|
|
548
|
-
const data = await parseBody(output.body, context);
|
|
549
|
-
let contents = {};
|
|
550
|
-
contents = de_DescribeGlobalTableOutput(data, context);
|
|
551
|
-
const response = {
|
|
552
|
-
$metadata: deserializeMetadata(output),
|
|
553
|
-
...contents,
|
|
554
|
-
};
|
|
555
|
-
return response;
|
|
556
|
-
};
|
|
557
|
-
export const de_DescribeGlobalTableSettingsCommand = async (output, context) => {
|
|
558
|
-
if (output.statusCode >= 300) {
|
|
559
|
-
return de_CommandError(output, context);
|
|
560
|
-
}
|
|
561
|
-
const data = await parseBody(output.body, context);
|
|
562
|
-
let contents = {};
|
|
563
|
-
contents = de_DescribeGlobalTableSettingsOutput(data, context);
|
|
564
|
-
const response = {
|
|
565
|
-
$metadata: deserializeMetadata(output),
|
|
566
|
-
...contents,
|
|
567
|
-
};
|
|
568
|
-
return response;
|
|
569
|
-
};
|
|
570
|
-
export const de_DescribeImportCommand = async (output, context) => {
|
|
571
|
-
if (output.statusCode >= 300) {
|
|
572
|
-
return de_CommandError(output, context);
|
|
573
|
-
}
|
|
574
|
-
const data = await parseBody(output.body, context);
|
|
575
|
-
let contents = {};
|
|
576
|
-
contents = de_DescribeImportOutput(data, context);
|
|
577
|
-
const response = {
|
|
578
|
-
$metadata: deserializeMetadata(output),
|
|
579
|
-
...contents,
|
|
580
|
-
};
|
|
581
|
-
return response;
|
|
582
|
-
};
|
|
583
|
-
export const de_DescribeKinesisStreamingDestinationCommand = async (output, context) => {
|
|
584
|
-
if (output.statusCode >= 300) {
|
|
585
|
-
return de_CommandError(output, context);
|
|
586
|
-
}
|
|
587
|
-
const data = await parseBody(output.body, context);
|
|
588
|
-
let contents = {};
|
|
589
|
-
contents = _json(data);
|
|
590
|
-
const response = {
|
|
591
|
-
$metadata: deserializeMetadata(output),
|
|
592
|
-
...contents,
|
|
593
|
-
};
|
|
594
|
-
return response;
|
|
595
|
-
};
|
|
596
|
-
export const de_DescribeLimitsCommand = async (output, context) => {
|
|
597
|
-
if (output.statusCode >= 300) {
|
|
598
|
-
return de_CommandError(output, context);
|
|
599
|
-
}
|
|
600
|
-
const data = await parseBody(output.body, context);
|
|
601
|
-
let contents = {};
|
|
602
|
-
contents = _json(data);
|
|
603
|
-
const response = {
|
|
604
|
-
$metadata: deserializeMetadata(output),
|
|
605
|
-
...contents,
|
|
606
|
-
};
|
|
607
|
-
return response;
|
|
608
|
-
};
|
|
609
|
-
export const de_DescribeTableCommand = async (output, context) => {
|
|
610
|
-
if (output.statusCode >= 300) {
|
|
611
|
-
return de_CommandError(output, context);
|
|
612
|
-
}
|
|
613
|
-
const data = await parseBody(output.body, context);
|
|
614
|
-
let contents = {};
|
|
615
|
-
contents = de_DescribeTableOutput(data, context);
|
|
616
|
-
const response = {
|
|
617
|
-
$metadata: deserializeMetadata(output),
|
|
618
|
-
...contents,
|
|
619
|
-
};
|
|
620
|
-
return response;
|
|
621
|
-
};
|
|
622
|
-
export const de_DescribeTableReplicaAutoScalingCommand = async (output, context) => {
|
|
623
|
-
if (output.statusCode >= 300) {
|
|
624
|
-
return de_CommandError(output, context);
|
|
625
|
-
}
|
|
626
|
-
const data = await parseBody(output.body, context);
|
|
627
|
-
let contents = {};
|
|
628
|
-
contents = de_DescribeTableReplicaAutoScalingOutput(data, context);
|
|
629
|
-
const response = {
|
|
630
|
-
$metadata: deserializeMetadata(output),
|
|
631
|
-
...contents,
|
|
632
|
-
};
|
|
633
|
-
return response;
|
|
634
|
-
};
|
|
635
|
-
export const de_DescribeTimeToLiveCommand = async (output, context) => {
|
|
636
|
-
if (output.statusCode >= 300) {
|
|
637
|
-
return de_CommandError(output, context);
|
|
638
|
-
}
|
|
639
|
-
const data = await parseBody(output.body, context);
|
|
640
|
-
let contents = {};
|
|
641
|
-
contents = _json(data);
|
|
642
|
-
const response = {
|
|
643
|
-
$metadata: deserializeMetadata(output),
|
|
644
|
-
...contents,
|
|
645
|
-
};
|
|
646
|
-
return response;
|
|
647
|
-
};
|
|
648
|
-
export const de_DisableKinesisStreamingDestinationCommand = async (output, context) => {
|
|
649
|
-
if (output.statusCode >= 300) {
|
|
650
|
-
return de_CommandError(output, context);
|
|
651
|
-
}
|
|
652
|
-
const data = await parseBody(output.body, context);
|
|
653
|
-
let contents = {};
|
|
654
|
-
contents = _json(data);
|
|
655
|
-
const response = {
|
|
656
|
-
$metadata: deserializeMetadata(output),
|
|
657
|
-
...contents,
|
|
658
|
-
};
|
|
659
|
-
return response;
|
|
660
|
-
};
|
|
661
|
-
export const de_EnableKinesisStreamingDestinationCommand = async (output, context) => {
|
|
662
|
-
if (output.statusCode >= 300) {
|
|
663
|
-
return de_CommandError(output, context);
|
|
664
|
-
}
|
|
665
|
-
const data = await parseBody(output.body, context);
|
|
666
|
-
let contents = {};
|
|
667
|
-
contents = _json(data);
|
|
668
|
-
const response = {
|
|
669
|
-
$metadata: deserializeMetadata(output),
|
|
670
|
-
...contents,
|
|
671
|
-
};
|
|
672
|
-
return response;
|
|
673
|
-
};
|
|
674
|
-
export const de_ExecuteStatementCommand = async (output, context) => {
|
|
675
|
-
if (output.statusCode >= 300) {
|
|
676
|
-
return de_CommandError(output, context);
|
|
677
|
-
}
|
|
678
|
-
const data = await parseBody(output.body, context);
|
|
679
|
-
let contents = {};
|
|
680
|
-
contents = de_ExecuteStatementOutput(data, context);
|
|
681
|
-
const response = {
|
|
682
|
-
$metadata: deserializeMetadata(output),
|
|
683
|
-
...contents,
|
|
684
|
-
};
|
|
685
|
-
return response;
|
|
686
|
-
};
|
|
687
|
-
export const de_ExecuteTransactionCommand = async (output, context) => {
|
|
688
|
-
if (output.statusCode >= 300) {
|
|
689
|
-
return de_CommandError(output, context);
|
|
690
|
-
}
|
|
691
|
-
const data = await parseBody(output.body, context);
|
|
692
|
-
let contents = {};
|
|
693
|
-
contents = de_ExecuteTransactionOutput(data, context);
|
|
694
|
-
const response = {
|
|
695
|
-
$metadata: deserializeMetadata(output),
|
|
696
|
-
...contents,
|
|
697
|
-
};
|
|
698
|
-
return response;
|
|
699
|
-
};
|
|
700
|
-
export const de_ExportTableToPointInTimeCommand = async (output, context) => {
|
|
701
|
-
if (output.statusCode >= 300) {
|
|
702
|
-
return de_CommandError(output, context);
|
|
703
|
-
}
|
|
704
|
-
const data = await parseBody(output.body, context);
|
|
705
|
-
let contents = {};
|
|
706
|
-
contents = de_ExportTableToPointInTimeOutput(data, context);
|
|
707
|
-
const response = {
|
|
708
|
-
$metadata: deserializeMetadata(output),
|
|
709
|
-
...contents,
|
|
710
|
-
};
|
|
711
|
-
return response;
|
|
712
|
-
};
|
|
713
|
-
export const de_GetItemCommand = async (output, context) => {
|
|
714
|
-
if (output.statusCode >= 300) {
|
|
715
|
-
return de_CommandError(output, context);
|
|
716
|
-
}
|
|
717
|
-
const data = await parseBody(output.body, context);
|
|
718
|
-
let contents = {};
|
|
719
|
-
contents = de_GetItemOutput(data, context);
|
|
720
|
-
const response = {
|
|
721
|
-
$metadata: deserializeMetadata(output),
|
|
722
|
-
...contents,
|
|
723
|
-
};
|
|
724
|
-
return response;
|
|
725
|
-
};
|
|
726
|
-
export const de_GetResourcePolicyCommand = async (output, context) => {
|
|
727
|
-
if (output.statusCode >= 300) {
|
|
728
|
-
return de_CommandError(output, context);
|
|
729
|
-
}
|
|
730
|
-
const data = await parseBody(output.body, context);
|
|
731
|
-
let contents = {};
|
|
732
|
-
contents = _json(data);
|
|
733
|
-
const response = {
|
|
734
|
-
$metadata: deserializeMetadata(output),
|
|
735
|
-
...contents,
|
|
736
|
-
};
|
|
737
|
-
return response;
|
|
738
|
-
};
|
|
739
|
-
export const de_ImportTableCommand = async (output, context) => {
|
|
740
|
-
if (output.statusCode >= 300) {
|
|
741
|
-
return de_CommandError(output, context);
|
|
742
|
-
}
|
|
743
|
-
const data = await parseBody(output.body, context);
|
|
744
|
-
let contents = {};
|
|
745
|
-
contents = de_ImportTableOutput(data, context);
|
|
746
|
-
const response = {
|
|
747
|
-
$metadata: deserializeMetadata(output),
|
|
748
|
-
...contents,
|
|
749
|
-
};
|
|
750
|
-
return response;
|
|
751
|
-
};
|
|
752
|
-
export const de_ListBackupsCommand = async (output, context) => {
|
|
753
|
-
if (output.statusCode >= 300) {
|
|
754
|
-
return de_CommandError(output, context);
|
|
755
|
-
}
|
|
756
|
-
const data = await parseBody(output.body, context);
|
|
757
|
-
let contents = {};
|
|
758
|
-
contents = de_ListBackupsOutput(data, context);
|
|
759
|
-
const response = {
|
|
760
|
-
$metadata: deserializeMetadata(output),
|
|
761
|
-
...contents,
|
|
762
|
-
};
|
|
763
|
-
return response;
|
|
764
|
-
};
|
|
765
|
-
export const de_ListContributorInsightsCommand = async (output, context) => {
|
|
766
|
-
if (output.statusCode >= 300) {
|
|
767
|
-
return de_CommandError(output, context);
|
|
768
|
-
}
|
|
769
|
-
const data = await parseBody(output.body, context);
|
|
770
|
-
let contents = {};
|
|
771
|
-
contents = _json(data);
|
|
772
|
-
const response = {
|
|
773
|
-
$metadata: deserializeMetadata(output),
|
|
774
|
-
...contents,
|
|
775
|
-
};
|
|
776
|
-
return response;
|
|
777
|
-
};
|
|
778
|
-
export const de_ListExportsCommand = async (output, context) => {
|
|
779
|
-
if (output.statusCode >= 300) {
|
|
780
|
-
return de_CommandError(output, context);
|
|
781
|
-
}
|
|
782
|
-
const data = await parseBody(output.body, context);
|
|
783
|
-
let contents = {};
|
|
784
|
-
contents = _json(data);
|
|
785
|
-
const response = {
|
|
786
|
-
$metadata: deserializeMetadata(output),
|
|
787
|
-
...contents,
|
|
788
|
-
};
|
|
789
|
-
return response;
|
|
790
|
-
};
|
|
791
|
-
export const de_ListGlobalTablesCommand = async (output, context) => {
|
|
792
|
-
if (output.statusCode >= 300) {
|
|
793
|
-
return de_CommandError(output, context);
|
|
794
|
-
}
|
|
795
|
-
const data = await parseBody(output.body, context);
|
|
796
|
-
let contents = {};
|
|
797
|
-
contents = _json(data);
|
|
798
|
-
const response = {
|
|
799
|
-
$metadata: deserializeMetadata(output),
|
|
800
|
-
...contents,
|
|
801
|
-
};
|
|
802
|
-
return response;
|
|
803
|
-
};
|
|
804
|
-
export const de_ListImportsCommand = async (output, context) => {
|
|
805
|
-
if (output.statusCode >= 300) {
|
|
806
|
-
return de_CommandError(output, context);
|
|
807
|
-
}
|
|
808
|
-
const data = await parseBody(output.body, context);
|
|
809
|
-
let contents = {};
|
|
810
|
-
contents = de_ListImportsOutput(data, context);
|
|
811
|
-
const response = {
|
|
812
|
-
$metadata: deserializeMetadata(output),
|
|
813
|
-
...contents,
|
|
814
|
-
};
|
|
815
|
-
return response;
|
|
816
|
-
};
|
|
817
|
-
export const de_ListTablesCommand = async (output, context) => {
|
|
818
|
-
if (output.statusCode >= 300) {
|
|
819
|
-
return de_CommandError(output, context);
|
|
820
|
-
}
|
|
821
|
-
const data = await parseBody(output.body, context);
|
|
822
|
-
let contents = {};
|
|
823
|
-
contents = _json(data);
|
|
824
|
-
const response = {
|
|
825
|
-
$metadata: deserializeMetadata(output),
|
|
826
|
-
...contents,
|
|
827
|
-
};
|
|
828
|
-
return response;
|
|
829
|
-
};
|
|
830
|
-
export const de_ListTagsOfResourceCommand = async (output, context) => {
|
|
831
|
-
if (output.statusCode >= 300) {
|
|
832
|
-
return de_CommandError(output, context);
|
|
833
|
-
}
|
|
834
|
-
const data = await parseBody(output.body, context);
|
|
835
|
-
let contents = {};
|
|
836
|
-
contents = _json(data);
|
|
837
|
-
const response = {
|
|
838
|
-
$metadata: deserializeMetadata(output),
|
|
839
|
-
...contents,
|
|
840
|
-
};
|
|
841
|
-
return response;
|
|
842
|
-
};
|
|
843
|
-
export const de_PutItemCommand = async (output, context) => {
|
|
844
|
-
if (output.statusCode >= 300) {
|
|
845
|
-
return de_CommandError(output, context);
|
|
846
|
-
}
|
|
847
|
-
const data = await parseBody(output.body, context);
|
|
848
|
-
let contents = {};
|
|
849
|
-
contents = de_PutItemOutput(data, context);
|
|
850
|
-
const response = {
|
|
851
|
-
$metadata: deserializeMetadata(output),
|
|
852
|
-
...contents,
|
|
853
|
-
};
|
|
854
|
-
return response;
|
|
855
|
-
};
|
|
856
|
-
export const de_PutResourcePolicyCommand = async (output, context) => {
|
|
857
|
-
if (output.statusCode >= 300) {
|
|
858
|
-
return de_CommandError(output, context);
|
|
859
|
-
}
|
|
860
|
-
const data = await parseBody(output.body, context);
|
|
861
|
-
let contents = {};
|
|
862
|
-
contents = _json(data);
|
|
863
|
-
const response = {
|
|
864
|
-
$metadata: deserializeMetadata(output),
|
|
865
|
-
...contents,
|
|
866
|
-
};
|
|
867
|
-
return response;
|
|
868
|
-
};
|
|
869
|
-
export const de_QueryCommand = async (output, context) => {
|
|
870
|
-
if (output.statusCode >= 300) {
|
|
871
|
-
return de_CommandError(output, context);
|
|
872
|
-
}
|
|
873
|
-
const data = await parseBody(output.body, context);
|
|
874
|
-
let contents = {};
|
|
875
|
-
contents = de_QueryOutput(data, context);
|
|
876
|
-
const response = {
|
|
877
|
-
$metadata: deserializeMetadata(output),
|
|
878
|
-
...contents,
|
|
879
|
-
};
|
|
880
|
-
return response;
|
|
881
|
-
};
|
|
882
|
-
export const de_RestoreTableFromBackupCommand = async (output, context) => {
|
|
883
|
-
if (output.statusCode >= 300) {
|
|
884
|
-
return de_CommandError(output, context);
|
|
885
|
-
}
|
|
886
|
-
const data = await parseBody(output.body, context);
|
|
887
|
-
let contents = {};
|
|
888
|
-
contents = de_RestoreTableFromBackupOutput(data, context);
|
|
889
|
-
const response = {
|
|
890
|
-
$metadata: deserializeMetadata(output),
|
|
891
|
-
...contents,
|
|
892
|
-
};
|
|
893
|
-
return response;
|
|
894
|
-
};
|
|
895
|
-
export const de_RestoreTableToPointInTimeCommand = async (output, context) => {
|
|
896
|
-
if (output.statusCode >= 300) {
|
|
897
|
-
return de_CommandError(output, context);
|
|
898
|
-
}
|
|
899
|
-
const data = await parseBody(output.body, context);
|
|
900
|
-
let contents = {};
|
|
901
|
-
contents = de_RestoreTableToPointInTimeOutput(data, context);
|
|
902
|
-
const response = {
|
|
903
|
-
$metadata: deserializeMetadata(output),
|
|
904
|
-
...contents,
|
|
905
|
-
};
|
|
906
|
-
return response;
|
|
907
|
-
};
|
|
908
|
-
export const de_ScanCommand = async (output, context) => {
|
|
909
|
-
if (output.statusCode >= 300) {
|
|
910
|
-
return de_CommandError(output, context);
|
|
911
|
-
}
|
|
912
|
-
const data = await parseBody(output.body, context);
|
|
913
|
-
let contents = {};
|
|
914
|
-
contents = de_ScanOutput(data, context);
|
|
915
|
-
const response = {
|
|
916
|
-
$metadata: deserializeMetadata(output),
|
|
917
|
-
...contents,
|
|
918
|
-
};
|
|
919
|
-
return response;
|
|
920
|
-
};
|
|
921
|
-
export const de_TagResourceCommand = async (output, context) => {
|
|
922
|
-
if (output.statusCode >= 300) {
|
|
923
|
-
return de_CommandError(output, context);
|
|
924
|
-
}
|
|
925
|
-
await collectBody(output.body, context);
|
|
926
|
-
const response = {
|
|
927
|
-
$metadata: deserializeMetadata(output),
|
|
928
|
-
};
|
|
929
|
-
return response;
|
|
930
|
-
};
|
|
931
|
-
export const de_TransactGetItemsCommand = async (output, context) => {
|
|
932
|
-
if (output.statusCode >= 300) {
|
|
933
|
-
return de_CommandError(output, context);
|
|
934
|
-
}
|
|
935
|
-
const data = await parseBody(output.body, context);
|
|
936
|
-
let contents = {};
|
|
937
|
-
contents = de_TransactGetItemsOutput(data, context);
|
|
938
|
-
const response = {
|
|
939
|
-
$metadata: deserializeMetadata(output),
|
|
940
|
-
...contents,
|
|
941
|
-
};
|
|
942
|
-
return response;
|
|
943
|
-
};
|
|
944
|
-
export const de_TransactWriteItemsCommand = async (output, context) => {
|
|
945
|
-
if (output.statusCode >= 300) {
|
|
946
|
-
return de_CommandError(output, context);
|
|
947
|
-
}
|
|
948
|
-
const data = await parseBody(output.body, context);
|
|
949
|
-
let contents = {};
|
|
950
|
-
contents = de_TransactWriteItemsOutput(data, context);
|
|
951
|
-
const response = {
|
|
952
|
-
$metadata: deserializeMetadata(output),
|
|
953
|
-
...contents,
|
|
954
|
-
};
|
|
955
|
-
return response;
|
|
956
|
-
};
|
|
957
|
-
export const de_UntagResourceCommand = async (output, context) => {
|
|
958
|
-
if (output.statusCode >= 300) {
|
|
959
|
-
return de_CommandError(output, context);
|
|
960
|
-
}
|
|
961
|
-
await collectBody(output.body, context);
|
|
962
|
-
const response = {
|
|
963
|
-
$metadata: deserializeMetadata(output),
|
|
964
|
-
};
|
|
965
|
-
return response;
|
|
966
|
-
};
|
|
967
|
-
export const de_UpdateContinuousBackupsCommand = async (output, context) => {
|
|
968
|
-
if (output.statusCode >= 300) {
|
|
969
|
-
return de_CommandError(output, context);
|
|
970
|
-
}
|
|
971
|
-
const data = await parseBody(output.body, context);
|
|
972
|
-
let contents = {};
|
|
973
|
-
contents = de_UpdateContinuousBackupsOutput(data, context);
|
|
974
|
-
const response = {
|
|
975
|
-
$metadata: deserializeMetadata(output),
|
|
976
|
-
...contents,
|
|
977
|
-
};
|
|
978
|
-
return response;
|
|
979
|
-
};
|
|
980
|
-
export const de_UpdateContributorInsightsCommand = async (output, context) => {
|
|
981
|
-
if (output.statusCode >= 300) {
|
|
982
|
-
return de_CommandError(output, context);
|
|
983
|
-
}
|
|
984
|
-
const data = await parseBody(output.body, context);
|
|
985
|
-
let contents = {};
|
|
986
|
-
contents = _json(data);
|
|
987
|
-
const response = {
|
|
988
|
-
$metadata: deserializeMetadata(output),
|
|
989
|
-
...contents,
|
|
990
|
-
};
|
|
991
|
-
return response;
|
|
992
|
-
};
|
|
993
|
-
export const de_UpdateGlobalTableCommand = async (output, context) => {
|
|
994
|
-
if (output.statusCode >= 300) {
|
|
995
|
-
return de_CommandError(output, context);
|
|
996
|
-
}
|
|
997
|
-
const data = await parseBody(output.body, context);
|
|
998
|
-
let contents = {};
|
|
999
|
-
contents = de_UpdateGlobalTableOutput(data, context);
|
|
1000
|
-
const response = {
|
|
1001
|
-
$metadata: deserializeMetadata(output),
|
|
1002
|
-
...contents,
|
|
1003
|
-
};
|
|
1004
|
-
return response;
|
|
1005
|
-
};
|
|
1006
|
-
export const de_UpdateGlobalTableSettingsCommand = async (output, context) => {
|
|
1007
|
-
if (output.statusCode >= 300) {
|
|
1008
|
-
return de_CommandError(output, context);
|
|
1009
|
-
}
|
|
1010
|
-
const data = await parseBody(output.body, context);
|
|
1011
|
-
let contents = {};
|
|
1012
|
-
contents = de_UpdateGlobalTableSettingsOutput(data, context);
|
|
1013
|
-
const response = {
|
|
1014
|
-
$metadata: deserializeMetadata(output),
|
|
1015
|
-
...contents,
|
|
1016
|
-
};
|
|
1017
|
-
return response;
|
|
1018
|
-
};
|
|
1019
|
-
export const de_UpdateItemCommand = async (output, context) => {
|
|
1020
|
-
if (output.statusCode >= 300) {
|
|
1021
|
-
return de_CommandError(output, context);
|
|
1022
|
-
}
|
|
1023
|
-
const data = await parseBody(output.body, context);
|
|
1024
|
-
let contents = {};
|
|
1025
|
-
contents = de_UpdateItemOutput(data, context);
|
|
1026
|
-
const response = {
|
|
1027
|
-
$metadata: deserializeMetadata(output),
|
|
1028
|
-
...contents,
|
|
1029
|
-
};
|
|
1030
|
-
return response;
|
|
1031
|
-
};
|
|
1032
|
-
export const de_UpdateKinesisStreamingDestinationCommand = async (output, context) => {
|
|
1033
|
-
if (output.statusCode >= 300) {
|
|
1034
|
-
return de_CommandError(output, context);
|
|
1035
|
-
}
|
|
1036
|
-
const data = await parseBody(output.body, context);
|
|
1037
|
-
let contents = {};
|
|
1038
|
-
contents = _json(data);
|
|
1039
|
-
const response = {
|
|
1040
|
-
$metadata: deserializeMetadata(output),
|
|
1041
|
-
...contents,
|
|
1042
|
-
};
|
|
1043
|
-
return response;
|
|
1044
|
-
};
|
|
1045
|
-
export const de_UpdateTableCommand = async (output, context) => {
|
|
1046
|
-
if (output.statusCode >= 300) {
|
|
1047
|
-
return de_CommandError(output, context);
|
|
1048
|
-
}
|
|
1049
|
-
const data = await parseBody(output.body, context);
|
|
1050
|
-
let contents = {};
|
|
1051
|
-
contents = de_UpdateTableOutput(data, context);
|
|
1052
|
-
const response = {
|
|
1053
|
-
$metadata: deserializeMetadata(output),
|
|
1054
|
-
...contents,
|
|
1055
|
-
};
|
|
1056
|
-
return response;
|
|
1057
|
-
};
|
|
1058
|
-
export const de_UpdateTableReplicaAutoScalingCommand = async (output, context) => {
|
|
1059
|
-
if (output.statusCode >= 300) {
|
|
1060
|
-
return de_CommandError(output, context);
|
|
1061
|
-
}
|
|
1062
|
-
const data = await parseBody(output.body, context);
|
|
1063
|
-
let contents = {};
|
|
1064
|
-
contents = de_UpdateTableReplicaAutoScalingOutput(data, context);
|
|
1065
|
-
const response = {
|
|
1066
|
-
$metadata: deserializeMetadata(output),
|
|
1067
|
-
...contents,
|
|
1068
|
-
};
|
|
1069
|
-
return response;
|
|
1070
|
-
};
|
|
1071
|
-
export const de_UpdateTimeToLiveCommand = async (output, context) => {
|
|
1072
|
-
if (output.statusCode >= 300) {
|
|
1073
|
-
return de_CommandError(output, context);
|
|
1074
|
-
}
|
|
1075
|
-
const data = await parseBody(output.body, context);
|
|
1076
|
-
let contents = {};
|
|
1077
|
-
contents = _json(data);
|
|
1078
|
-
const response = {
|
|
1079
|
-
$metadata: deserializeMetadata(output),
|
|
1080
|
-
...contents,
|
|
1081
|
-
};
|
|
1082
|
-
return response;
|
|
1083
|
-
};
|
|
1084
|
-
const de_CommandError = async (output, context) => {
|
|
1085
|
-
const parsedOutput = {
|
|
1086
|
-
...output,
|
|
1087
|
-
body: await parseErrorBody(output.body, context),
|
|
1088
|
-
};
|
|
1089
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1090
|
-
switch (errorCode) {
|
|
1091
|
-
case "InternalServerError":
|
|
1092
|
-
case "com.amazonaws.dynamodb#InternalServerError":
|
|
1093
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1094
|
-
case "RequestLimitExceeded":
|
|
1095
|
-
case "com.amazonaws.dynamodb#RequestLimitExceeded":
|
|
1096
|
-
throw await de_RequestLimitExceededRes(parsedOutput, context);
|
|
1097
|
-
case "ThrottlingException":
|
|
1098
|
-
case "com.amazonaws.dynamodb#ThrottlingException":
|
|
1099
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1100
|
-
case "InvalidEndpointException":
|
|
1101
|
-
case "com.amazonaws.dynamodb#InvalidEndpointException":
|
|
1102
|
-
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
1103
|
-
case "ProvisionedThroughputExceededException":
|
|
1104
|
-
case "com.amazonaws.dynamodb#ProvisionedThroughputExceededException":
|
|
1105
|
-
throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
|
|
1106
|
-
case "ResourceNotFoundException":
|
|
1107
|
-
case "com.amazonaws.dynamodb#ResourceNotFoundException":
|
|
1108
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1109
|
-
case "ItemCollectionSizeLimitExceededException":
|
|
1110
|
-
case "com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException":
|
|
1111
|
-
throw await de_ItemCollectionSizeLimitExceededExceptionRes(parsedOutput, context);
|
|
1112
|
-
case "ReplicatedWriteConflictException":
|
|
1113
|
-
case "com.amazonaws.dynamodb#ReplicatedWriteConflictException":
|
|
1114
|
-
throw await de_ReplicatedWriteConflictExceptionRes(parsedOutput, context);
|
|
1115
|
-
case "BackupInUseException":
|
|
1116
|
-
case "com.amazonaws.dynamodb#BackupInUseException":
|
|
1117
|
-
throw await de_BackupInUseExceptionRes(parsedOutput, context);
|
|
1118
|
-
case "ContinuousBackupsUnavailableException":
|
|
1119
|
-
case "com.amazonaws.dynamodb#ContinuousBackupsUnavailableException":
|
|
1120
|
-
throw await de_ContinuousBackupsUnavailableExceptionRes(parsedOutput, context);
|
|
1121
|
-
case "LimitExceededException":
|
|
1122
|
-
case "com.amazonaws.dynamodb#LimitExceededException":
|
|
1123
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1124
|
-
case "TableInUseException":
|
|
1125
|
-
case "com.amazonaws.dynamodb#TableInUseException":
|
|
1126
|
-
throw await de_TableInUseExceptionRes(parsedOutput, context);
|
|
1127
|
-
case "TableNotFoundException":
|
|
1128
|
-
case "com.amazonaws.dynamodb#TableNotFoundException":
|
|
1129
|
-
throw await de_TableNotFoundExceptionRes(parsedOutput, context);
|
|
1130
|
-
case "GlobalTableAlreadyExistsException":
|
|
1131
|
-
case "com.amazonaws.dynamodb#GlobalTableAlreadyExistsException":
|
|
1132
|
-
throw await de_GlobalTableAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1133
|
-
case "ResourceInUseException":
|
|
1134
|
-
case "com.amazonaws.dynamodb#ResourceInUseException":
|
|
1135
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1136
|
-
case "BackupNotFoundException":
|
|
1137
|
-
case "com.amazonaws.dynamodb#BackupNotFoundException":
|
|
1138
|
-
throw await de_BackupNotFoundExceptionRes(parsedOutput, context);
|
|
1139
|
-
case "ConditionalCheckFailedException":
|
|
1140
|
-
case "com.amazonaws.dynamodb#ConditionalCheckFailedException":
|
|
1141
|
-
throw await de_ConditionalCheckFailedExceptionRes(parsedOutput, context);
|
|
1142
|
-
case "TransactionConflictException":
|
|
1143
|
-
case "com.amazonaws.dynamodb#TransactionConflictException":
|
|
1144
|
-
throw await de_TransactionConflictExceptionRes(parsedOutput, context);
|
|
1145
|
-
case "PolicyNotFoundException":
|
|
1146
|
-
case "com.amazonaws.dynamodb#PolicyNotFoundException":
|
|
1147
|
-
throw await de_PolicyNotFoundExceptionRes(parsedOutput, context);
|
|
1148
|
-
case "ExportNotFoundException":
|
|
1149
|
-
case "com.amazonaws.dynamodb#ExportNotFoundException":
|
|
1150
|
-
throw await de_ExportNotFoundExceptionRes(parsedOutput, context);
|
|
1151
|
-
case "GlobalTableNotFoundException":
|
|
1152
|
-
case "com.amazonaws.dynamodb#GlobalTableNotFoundException":
|
|
1153
|
-
throw await de_GlobalTableNotFoundExceptionRes(parsedOutput, context);
|
|
1154
|
-
case "ImportNotFoundException":
|
|
1155
|
-
case "com.amazonaws.dynamodb#ImportNotFoundException":
|
|
1156
|
-
throw await de_ImportNotFoundExceptionRes(parsedOutput, context);
|
|
1157
|
-
case "DuplicateItemException":
|
|
1158
|
-
case "com.amazonaws.dynamodb#DuplicateItemException":
|
|
1159
|
-
throw await de_DuplicateItemExceptionRes(parsedOutput, context);
|
|
1160
|
-
case "IdempotentParameterMismatchException":
|
|
1161
|
-
case "com.amazonaws.dynamodb#IdempotentParameterMismatchException":
|
|
1162
|
-
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
1163
|
-
case "TransactionCanceledException":
|
|
1164
|
-
case "com.amazonaws.dynamodb#TransactionCanceledException":
|
|
1165
|
-
throw await de_TransactionCanceledExceptionRes(parsedOutput, context);
|
|
1166
|
-
case "TransactionInProgressException":
|
|
1167
|
-
case "com.amazonaws.dynamodb#TransactionInProgressException":
|
|
1168
|
-
throw await de_TransactionInProgressExceptionRes(parsedOutput, context);
|
|
1169
|
-
case "ExportConflictException":
|
|
1170
|
-
case "com.amazonaws.dynamodb#ExportConflictException":
|
|
1171
|
-
throw await de_ExportConflictExceptionRes(parsedOutput, context);
|
|
1172
|
-
case "InvalidExportTimeException":
|
|
1173
|
-
case "com.amazonaws.dynamodb#InvalidExportTimeException":
|
|
1174
|
-
throw await de_InvalidExportTimeExceptionRes(parsedOutput, context);
|
|
1175
|
-
case "PointInTimeRecoveryUnavailableException":
|
|
1176
|
-
case "com.amazonaws.dynamodb#PointInTimeRecoveryUnavailableException":
|
|
1177
|
-
throw await de_PointInTimeRecoveryUnavailableExceptionRes(parsedOutput, context);
|
|
1178
|
-
case "ImportConflictException":
|
|
1179
|
-
case "com.amazonaws.dynamodb#ImportConflictException":
|
|
1180
|
-
throw await de_ImportConflictExceptionRes(parsedOutput, context);
|
|
1181
|
-
case "TableAlreadyExistsException":
|
|
1182
|
-
case "com.amazonaws.dynamodb#TableAlreadyExistsException":
|
|
1183
|
-
throw await de_TableAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1184
|
-
case "InvalidRestoreTimeException":
|
|
1185
|
-
case "com.amazonaws.dynamodb#InvalidRestoreTimeException":
|
|
1186
|
-
throw await de_InvalidRestoreTimeExceptionRes(parsedOutput, context);
|
|
1187
|
-
case "ReplicaAlreadyExistsException":
|
|
1188
|
-
case "com.amazonaws.dynamodb#ReplicaAlreadyExistsException":
|
|
1189
|
-
throw await de_ReplicaAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1190
|
-
case "ReplicaNotFoundException":
|
|
1191
|
-
case "com.amazonaws.dynamodb#ReplicaNotFoundException":
|
|
1192
|
-
throw await de_ReplicaNotFoundExceptionRes(parsedOutput, context);
|
|
1193
|
-
case "IndexNotFoundException":
|
|
1194
|
-
case "com.amazonaws.dynamodb#IndexNotFoundException":
|
|
1195
|
-
throw await de_IndexNotFoundExceptionRes(parsedOutput, context);
|
|
1196
|
-
default:
|
|
1197
|
-
const parsedBody = parsedOutput.body;
|
|
1198
|
-
return throwDefaultError({
|
|
1199
|
-
output,
|
|
1200
|
-
parsedBody,
|
|
1201
|
-
errorCode,
|
|
1202
|
-
});
|
|
1203
|
-
}
|
|
1204
|
-
};
|
|
1205
|
-
const de_BackupInUseExceptionRes = async (parsedOutput, context) => {
|
|
1206
|
-
const body = parsedOutput.body;
|
|
1207
|
-
const deserialized = _json(body);
|
|
1208
|
-
const exception = new BackupInUseException({
|
|
1209
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1210
|
-
...deserialized,
|
|
1211
|
-
});
|
|
1212
|
-
return __decorateServiceException(exception, body);
|
|
1213
|
-
};
|
|
1214
|
-
const de_BackupNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1215
|
-
const body = parsedOutput.body;
|
|
1216
|
-
const deserialized = _json(body);
|
|
1217
|
-
const exception = new BackupNotFoundException({
|
|
1218
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1219
|
-
...deserialized,
|
|
1220
|
-
});
|
|
1221
|
-
return __decorateServiceException(exception, body);
|
|
1222
|
-
};
|
|
1223
|
-
const de_ConditionalCheckFailedExceptionRes = async (parsedOutput, context) => {
|
|
1224
|
-
const body = parsedOutput.body;
|
|
1225
|
-
const deserialized = de_ConditionalCheckFailedException(body, context);
|
|
1226
|
-
const exception = new ConditionalCheckFailedException({
|
|
1227
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1228
|
-
...deserialized,
|
|
1229
|
-
});
|
|
1230
|
-
return __decorateServiceException(exception, body);
|
|
1231
|
-
};
|
|
1232
|
-
const de_ContinuousBackupsUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
1233
|
-
const body = parsedOutput.body;
|
|
1234
|
-
const deserialized = _json(body);
|
|
1235
|
-
const exception = new ContinuousBackupsUnavailableException({
|
|
1236
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1237
|
-
...deserialized,
|
|
1238
|
-
});
|
|
1239
|
-
return __decorateServiceException(exception, body);
|
|
1240
|
-
};
|
|
1241
|
-
const de_DuplicateItemExceptionRes = async (parsedOutput, context) => {
|
|
1242
|
-
const body = parsedOutput.body;
|
|
1243
|
-
const deserialized = _json(body);
|
|
1244
|
-
const exception = new DuplicateItemException({
|
|
1245
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1246
|
-
...deserialized,
|
|
1247
|
-
});
|
|
1248
|
-
return __decorateServiceException(exception, body);
|
|
1249
|
-
};
|
|
1250
|
-
const de_ExportConflictExceptionRes = async (parsedOutput, context) => {
|
|
1251
|
-
const body = parsedOutput.body;
|
|
1252
|
-
const deserialized = _json(body);
|
|
1253
|
-
const exception = new ExportConflictException({
|
|
1254
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1255
|
-
...deserialized,
|
|
1256
|
-
});
|
|
1257
|
-
return __decorateServiceException(exception, body);
|
|
1258
|
-
};
|
|
1259
|
-
const de_ExportNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1260
|
-
const body = parsedOutput.body;
|
|
1261
|
-
const deserialized = _json(body);
|
|
1262
|
-
const exception = new ExportNotFoundException({
|
|
1263
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1264
|
-
...deserialized,
|
|
1265
|
-
});
|
|
1266
|
-
return __decorateServiceException(exception, body);
|
|
1267
|
-
};
|
|
1268
|
-
const de_GlobalTableAlreadyExistsExceptionRes = async (parsedOutput, context) => {
|
|
1269
|
-
const body = parsedOutput.body;
|
|
1270
|
-
const deserialized = _json(body);
|
|
1271
|
-
const exception = new GlobalTableAlreadyExistsException({
|
|
1272
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1273
|
-
...deserialized,
|
|
1274
|
-
});
|
|
1275
|
-
return __decorateServiceException(exception, body);
|
|
1276
|
-
};
|
|
1277
|
-
const de_GlobalTableNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1278
|
-
const body = parsedOutput.body;
|
|
1279
|
-
const deserialized = _json(body);
|
|
1280
|
-
const exception = new GlobalTableNotFoundException({
|
|
1281
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1282
|
-
...deserialized,
|
|
1283
|
-
});
|
|
1284
|
-
return __decorateServiceException(exception, body);
|
|
1285
|
-
};
|
|
1286
|
-
const de_IdempotentParameterMismatchExceptionRes = async (parsedOutput, context) => {
|
|
1287
|
-
const body = parsedOutput.body;
|
|
1288
|
-
const deserialized = _json(body);
|
|
1289
|
-
const exception = new IdempotentParameterMismatchException({
|
|
1290
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1291
|
-
...deserialized,
|
|
1292
|
-
});
|
|
1293
|
-
return __decorateServiceException(exception, body);
|
|
1294
|
-
};
|
|
1295
|
-
const de_ImportConflictExceptionRes = async (parsedOutput, context) => {
|
|
1296
|
-
const body = parsedOutput.body;
|
|
1297
|
-
const deserialized = _json(body);
|
|
1298
|
-
const exception = new ImportConflictException({
|
|
1299
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1300
|
-
...deserialized,
|
|
1301
|
-
});
|
|
1302
|
-
return __decorateServiceException(exception, body);
|
|
1303
|
-
};
|
|
1304
|
-
const de_ImportNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1305
|
-
const body = parsedOutput.body;
|
|
1306
|
-
const deserialized = _json(body);
|
|
1307
|
-
const exception = new ImportNotFoundException({
|
|
1308
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1309
|
-
...deserialized,
|
|
1310
|
-
});
|
|
1311
|
-
return __decorateServiceException(exception, body);
|
|
1312
|
-
};
|
|
1313
|
-
const de_IndexNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1314
|
-
const body = parsedOutput.body;
|
|
1315
|
-
const deserialized = _json(body);
|
|
1316
|
-
const exception = new IndexNotFoundException({
|
|
1317
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1318
|
-
...deserialized,
|
|
1319
|
-
});
|
|
1320
|
-
return __decorateServiceException(exception, body);
|
|
1321
|
-
};
|
|
1322
|
-
const de_InternalServerErrorRes = async (parsedOutput, context) => {
|
|
1323
|
-
const body = parsedOutput.body;
|
|
1324
|
-
const deserialized = _json(body);
|
|
1325
|
-
const exception = new InternalServerError({
|
|
1326
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1327
|
-
...deserialized,
|
|
1328
|
-
});
|
|
1329
|
-
return __decorateServiceException(exception, body);
|
|
1330
|
-
};
|
|
1331
|
-
const de_InvalidEndpointExceptionRes = async (parsedOutput, context) => {
|
|
1332
|
-
const body = parsedOutput.body;
|
|
1333
|
-
const deserialized = _json(body);
|
|
1334
|
-
const exception = new InvalidEndpointException({
|
|
1335
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1336
|
-
...deserialized,
|
|
1337
|
-
});
|
|
1338
|
-
return __decorateServiceException(exception, body);
|
|
1339
|
-
};
|
|
1340
|
-
const de_InvalidExportTimeExceptionRes = async (parsedOutput, context) => {
|
|
1341
|
-
const body = parsedOutput.body;
|
|
1342
|
-
const deserialized = _json(body);
|
|
1343
|
-
const exception = new InvalidExportTimeException({
|
|
1344
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1345
|
-
...deserialized,
|
|
1346
|
-
});
|
|
1347
|
-
return __decorateServiceException(exception, body);
|
|
1348
|
-
};
|
|
1349
|
-
const de_InvalidRestoreTimeExceptionRes = async (parsedOutput, context) => {
|
|
1350
|
-
const body = parsedOutput.body;
|
|
1351
|
-
const deserialized = _json(body);
|
|
1352
|
-
const exception = new InvalidRestoreTimeException({
|
|
1353
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1354
|
-
...deserialized,
|
|
1355
|
-
});
|
|
1356
|
-
return __decorateServiceException(exception, body);
|
|
1357
|
-
};
|
|
1358
|
-
const de_ItemCollectionSizeLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
1359
|
-
const body = parsedOutput.body;
|
|
1360
|
-
const deserialized = _json(body);
|
|
1361
|
-
const exception = new ItemCollectionSizeLimitExceededException({
|
|
1362
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1363
|
-
...deserialized,
|
|
1364
|
-
});
|
|
1365
|
-
return __decorateServiceException(exception, body);
|
|
1366
|
-
};
|
|
1367
|
-
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
1368
|
-
const body = parsedOutput.body;
|
|
1369
|
-
const deserialized = _json(body);
|
|
1370
|
-
const exception = new LimitExceededException({
|
|
1371
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1372
|
-
...deserialized,
|
|
1373
|
-
});
|
|
1374
|
-
return __decorateServiceException(exception, body);
|
|
1375
|
-
};
|
|
1376
|
-
const de_PointInTimeRecoveryUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
1377
|
-
const body = parsedOutput.body;
|
|
1378
|
-
const deserialized = _json(body);
|
|
1379
|
-
const exception = new PointInTimeRecoveryUnavailableException({
|
|
1380
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1381
|
-
...deserialized,
|
|
1382
|
-
});
|
|
1383
|
-
return __decorateServiceException(exception, body);
|
|
1384
|
-
};
|
|
1385
|
-
const de_PolicyNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1386
|
-
const body = parsedOutput.body;
|
|
1387
|
-
const deserialized = _json(body);
|
|
1388
|
-
const exception = new PolicyNotFoundException({
|
|
1389
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1390
|
-
...deserialized,
|
|
1391
|
-
});
|
|
1392
|
-
return __decorateServiceException(exception, body);
|
|
1393
|
-
};
|
|
1394
|
-
const de_ProvisionedThroughputExceededExceptionRes = async (parsedOutput, context) => {
|
|
1395
|
-
const body = parsedOutput.body;
|
|
1396
|
-
const deserialized = _json(body);
|
|
1397
|
-
const exception = new ProvisionedThroughputExceededException({
|
|
1398
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1399
|
-
...deserialized,
|
|
1400
|
-
});
|
|
1401
|
-
return __decorateServiceException(exception, body);
|
|
1402
|
-
};
|
|
1403
|
-
const de_ReplicaAlreadyExistsExceptionRes = async (parsedOutput, context) => {
|
|
1404
|
-
const body = parsedOutput.body;
|
|
1405
|
-
const deserialized = _json(body);
|
|
1406
|
-
const exception = new ReplicaAlreadyExistsException({
|
|
1407
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1408
|
-
...deserialized,
|
|
1409
|
-
});
|
|
1410
|
-
return __decorateServiceException(exception, body);
|
|
1411
|
-
};
|
|
1412
|
-
const de_ReplicaNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1413
|
-
const body = parsedOutput.body;
|
|
1414
|
-
const deserialized = _json(body);
|
|
1415
|
-
const exception = new ReplicaNotFoundException({
|
|
1416
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1417
|
-
...deserialized,
|
|
1418
|
-
});
|
|
1419
|
-
return __decorateServiceException(exception, body);
|
|
1420
|
-
};
|
|
1421
|
-
const de_ReplicatedWriteConflictExceptionRes = async (parsedOutput, context) => {
|
|
1422
|
-
const body = parsedOutput.body;
|
|
1423
|
-
const deserialized = _json(body);
|
|
1424
|
-
const exception = new ReplicatedWriteConflictException({
|
|
1425
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1426
|
-
...deserialized,
|
|
1427
|
-
});
|
|
1428
|
-
return __decorateServiceException(exception, body);
|
|
1429
|
-
};
|
|
1430
|
-
const de_RequestLimitExceededRes = async (parsedOutput, context) => {
|
|
1431
|
-
const body = parsedOutput.body;
|
|
1432
|
-
const deserialized = _json(body);
|
|
1433
|
-
const exception = new RequestLimitExceeded({
|
|
1434
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1435
|
-
...deserialized,
|
|
1436
|
-
});
|
|
1437
|
-
return __decorateServiceException(exception, body);
|
|
1438
|
-
};
|
|
1439
|
-
const de_ResourceInUseExceptionRes = async (parsedOutput, context) => {
|
|
1440
|
-
const body = parsedOutput.body;
|
|
1441
|
-
const deserialized = _json(body);
|
|
1442
|
-
const exception = new ResourceInUseException({
|
|
1443
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1444
|
-
...deserialized,
|
|
1445
|
-
});
|
|
1446
|
-
return __decorateServiceException(exception, body);
|
|
1447
|
-
};
|
|
1448
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1449
|
-
const body = parsedOutput.body;
|
|
1450
|
-
const deserialized = _json(body);
|
|
1451
|
-
const exception = new ResourceNotFoundException({
|
|
1452
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1453
|
-
...deserialized,
|
|
1454
|
-
});
|
|
1455
|
-
return __decorateServiceException(exception, body);
|
|
1456
|
-
};
|
|
1457
|
-
const de_TableAlreadyExistsExceptionRes = async (parsedOutput, context) => {
|
|
1458
|
-
const body = parsedOutput.body;
|
|
1459
|
-
const deserialized = _json(body);
|
|
1460
|
-
const exception = new TableAlreadyExistsException({
|
|
1461
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1462
|
-
...deserialized,
|
|
1463
|
-
});
|
|
1464
|
-
return __decorateServiceException(exception, body);
|
|
1465
|
-
};
|
|
1466
|
-
const de_TableInUseExceptionRes = async (parsedOutput, context) => {
|
|
1467
|
-
const body = parsedOutput.body;
|
|
1468
|
-
const deserialized = _json(body);
|
|
1469
|
-
const exception = new TableInUseException({
|
|
1470
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1471
|
-
...deserialized,
|
|
1472
|
-
});
|
|
1473
|
-
return __decorateServiceException(exception, body);
|
|
1474
|
-
};
|
|
1475
|
-
const de_TableNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1476
|
-
const body = parsedOutput.body;
|
|
1477
|
-
const deserialized = _json(body);
|
|
1478
|
-
const exception = new TableNotFoundException({
|
|
1479
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1480
|
-
...deserialized,
|
|
1481
|
-
});
|
|
1482
|
-
return __decorateServiceException(exception, body);
|
|
1483
|
-
};
|
|
1484
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1485
|
-
const body = parsedOutput.body;
|
|
1486
|
-
const deserialized = _json(body);
|
|
1487
|
-
const exception = new ThrottlingException({
|
|
1488
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1489
|
-
...deserialized,
|
|
1490
|
-
});
|
|
1491
|
-
return __decorateServiceException(exception, body);
|
|
1492
|
-
};
|
|
1493
|
-
const de_TransactionCanceledExceptionRes = async (parsedOutput, context) => {
|
|
1494
|
-
const body = parsedOutput.body;
|
|
1495
|
-
const deserialized = de_TransactionCanceledException(body, context);
|
|
1496
|
-
const exception = new TransactionCanceledException({
|
|
1497
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1498
|
-
...deserialized,
|
|
1499
|
-
});
|
|
1500
|
-
return __decorateServiceException(exception, body);
|
|
1501
|
-
};
|
|
1502
|
-
const de_TransactionConflictExceptionRes = async (parsedOutput, context) => {
|
|
1503
|
-
const body = parsedOutput.body;
|
|
1504
|
-
const deserialized = _json(body);
|
|
1505
|
-
const exception = new TransactionConflictException({
|
|
1506
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1507
|
-
...deserialized,
|
|
1508
|
-
});
|
|
1509
|
-
return __decorateServiceException(exception, body);
|
|
1510
|
-
};
|
|
1511
|
-
const de_TransactionInProgressExceptionRes = async (parsedOutput, context) => {
|
|
1512
|
-
const body = parsedOutput.body;
|
|
1513
|
-
const deserialized = _json(body);
|
|
1514
|
-
const exception = new TransactionInProgressException({
|
|
1515
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1516
|
-
...deserialized,
|
|
1517
|
-
});
|
|
1518
|
-
return __decorateServiceException(exception, body);
|
|
1519
|
-
};
|
|
1520
|
-
const se_AttributeUpdates = (input, context) => {
|
|
1521
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1522
|
-
if (value === null) {
|
|
1523
|
-
return acc;
|
|
1524
|
-
}
|
|
1525
|
-
acc[key] = se_AttributeValueUpdate(value, context);
|
|
1526
|
-
return acc;
|
|
1527
|
-
}, {});
|
|
1528
|
-
};
|
|
1529
|
-
const se_AttributeValue = (input, context) => {
|
|
1530
|
-
return AttributeValue.visit(input, {
|
|
1531
|
-
B: (value) => ({ B: context.base64Encoder(value) }),
|
|
1532
|
-
BOOL: (value) => ({ BOOL: value }),
|
|
1533
|
-
BS: (value) => ({ BS: se_BinarySetAttributeValue(value, context) }),
|
|
1534
|
-
L: (value) => ({ L: se_ListAttributeValue(value, context) }),
|
|
1535
|
-
M: (value) => ({ M: se_MapAttributeValue(value, context) }),
|
|
1536
|
-
N: (value) => ({ N: value }),
|
|
1537
|
-
NS: (value) => ({ NS: _json(value) }),
|
|
1538
|
-
NULL: (value) => ({ NULL: value }),
|
|
1539
|
-
S: (value) => ({ S: value }),
|
|
1540
|
-
SS: (value) => ({ SS: _json(value) }),
|
|
1541
|
-
_: (name, value) => ({ [name]: value }),
|
|
1542
|
-
});
|
|
1543
|
-
};
|
|
1544
|
-
const se_AttributeValueList = (input, context) => {
|
|
1545
|
-
return input
|
|
1546
|
-
.filter((e) => e != null)
|
|
1547
|
-
.map((entry) => {
|
|
1548
|
-
return se_AttributeValue(entry, context);
|
|
1549
|
-
});
|
|
1550
|
-
};
|
|
1551
|
-
const se_AttributeValueUpdate = (input, context) => {
|
|
1552
|
-
return take(input, {
|
|
1553
|
-
Action: [],
|
|
1554
|
-
Value: (_) => se_AttributeValue(_, context),
|
|
1555
|
-
});
|
|
1556
|
-
};
|
|
1557
|
-
const se_AutoScalingPolicyUpdate = (input, context) => {
|
|
1558
|
-
return take(input, {
|
|
1559
|
-
PolicyName: [],
|
|
1560
|
-
TargetTrackingScalingPolicyConfiguration: (_) => se_AutoScalingTargetTrackingScalingPolicyConfigurationUpdate(_, context),
|
|
1561
|
-
});
|
|
1562
|
-
};
|
|
1563
|
-
const se_AutoScalingSettingsUpdate = (input, context) => {
|
|
1564
|
-
return take(input, {
|
|
1565
|
-
AutoScalingDisabled: [],
|
|
1566
|
-
AutoScalingRoleArn: [],
|
|
1567
|
-
MaximumUnits: [],
|
|
1568
|
-
MinimumUnits: [],
|
|
1569
|
-
ScalingPolicyUpdate: (_) => se_AutoScalingPolicyUpdate(_, context),
|
|
1570
|
-
});
|
|
1571
|
-
};
|
|
1572
|
-
const se_AutoScalingTargetTrackingScalingPolicyConfigurationUpdate = (input, context) => {
|
|
1573
|
-
return take(input, {
|
|
1574
|
-
DisableScaleIn: [],
|
|
1575
|
-
ScaleInCooldown: [],
|
|
1576
|
-
ScaleOutCooldown: [],
|
|
1577
|
-
TargetValue: __serializeFloat,
|
|
1578
|
-
});
|
|
1579
|
-
};
|
|
1580
|
-
const se_BatchExecuteStatementInput = (input, context) => {
|
|
1581
|
-
return take(input, {
|
|
1582
|
-
ReturnConsumedCapacity: [],
|
|
1583
|
-
Statements: (_) => se_PartiQLBatchRequest(_, context),
|
|
1584
|
-
});
|
|
1585
|
-
};
|
|
1586
|
-
const se_BatchGetItemInput = (input, context) => {
|
|
1587
|
-
return take(input, {
|
|
1588
|
-
RequestItems: (_) => se_BatchGetRequestMap(_, context),
|
|
1589
|
-
ReturnConsumedCapacity: [],
|
|
1590
|
-
});
|
|
1591
|
-
};
|
|
1592
|
-
const se_BatchGetRequestMap = (input, context) => {
|
|
1593
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1594
|
-
if (value === null) {
|
|
1595
|
-
return acc;
|
|
1596
|
-
}
|
|
1597
|
-
acc[key] = se_KeysAndAttributes(value, context);
|
|
1598
|
-
return acc;
|
|
1599
|
-
}, {});
|
|
1600
|
-
};
|
|
1601
|
-
const se_BatchStatementRequest = (input, context) => {
|
|
1602
|
-
return take(input, {
|
|
1603
|
-
ConsistentRead: [],
|
|
1604
|
-
Parameters: (_) => se_PreparedStatementParameters(_, context),
|
|
1605
|
-
ReturnValuesOnConditionCheckFailure: [],
|
|
1606
|
-
Statement: [],
|
|
1607
|
-
});
|
|
1608
|
-
};
|
|
1609
|
-
const se_BatchWriteItemInput = (input, context) => {
|
|
1610
|
-
return take(input, {
|
|
1611
|
-
RequestItems: (_) => se_BatchWriteItemRequestMap(_, context),
|
|
1612
|
-
ReturnConsumedCapacity: [],
|
|
1613
|
-
ReturnItemCollectionMetrics: [],
|
|
1614
|
-
});
|
|
1615
|
-
};
|
|
1616
|
-
const se_BatchWriteItemRequestMap = (input, context) => {
|
|
1617
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1618
|
-
if (value === null) {
|
|
1619
|
-
return acc;
|
|
1620
|
-
}
|
|
1621
|
-
acc[key] = se_WriteRequests(value, context);
|
|
1622
|
-
return acc;
|
|
1623
|
-
}, {});
|
|
1624
|
-
};
|
|
1625
|
-
const se_BinarySetAttributeValue = (input, context) => {
|
|
1626
|
-
return input
|
|
1627
|
-
.filter((e) => e != null)
|
|
1628
|
-
.map((entry) => {
|
|
1629
|
-
return context.base64Encoder(entry);
|
|
1630
|
-
});
|
|
1631
|
-
};
|
|
1632
|
-
const se_Condition = (input, context) => {
|
|
1633
|
-
return take(input, {
|
|
1634
|
-
AttributeValueList: (_) => se_AttributeValueList(_, context),
|
|
1635
|
-
ComparisonOperator: [],
|
|
1636
|
-
});
|
|
1637
|
-
};
|
|
1638
|
-
const se_ConditionCheck = (input, context) => {
|
|
1639
|
-
return take(input, {
|
|
1640
|
-
ConditionExpression: [],
|
|
1641
|
-
ExpressionAttributeNames: _json,
|
|
1642
|
-
ExpressionAttributeValues: (_) => se_ExpressionAttributeValueMap(_, context),
|
|
1643
|
-
Key: (_) => se_Key(_, context),
|
|
1644
|
-
ReturnValuesOnConditionCheckFailure: [],
|
|
1645
|
-
TableName: [],
|
|
1646
|
-
});
|
|
1647
|
-
};
|
|
1648
|
-
const se_Delete = (input, context) => {
|
|
1649
|
-
return take(input, {
|
|
1650
|
-
ConditionExpression: [],
|
|
1651
|
-
ExpressionAttributeNames: _json,
|
|
1652
|
-
ExpressionAttributeValues: (_) => se_ExpressionAttributeValueMap(_, context),
|
|
1653
|
-
Key: (_) => se_Key(_, context),
|
|
1654
|
-
ReturnValuesOnConditionCheckFailure: [],
|
|
1655
|
-
TableName: [],
|
|
1656
|
-
});
|
|
1657
|
-
};
|
|
1658
|
-
const se_DeleteItemInput = (input, context) => {
|
|
1659
|
-
return take(input, {
|
|
1660
|
-
ConditionExpression: [],
|
|
1661
|
-
ConditionalOperator: [],
|
|
1662
|
-
Expected: (_) => se_ExpectedAttributeMap(_, context),
|
|
1663
|
-
ExpressionAttributeNames: _json,
|
|
1664
|
-
ExpressionAttributeValues: (_) => se_ExpressionAttributeValueMap(_, context),
|
|
1665
|
-
Key: (_) => se_Key(_, context),
|
|
1666
|
-
ReturnConsumedCapacity: [],
|
|
1667
|
-
ReturnItemCollectionMetrics: [],
|
|
1668
|
-
ReturnValues: [],
|
|
1669
|
-
ReturnValuesOnConditionCheckFailure: [],
|
|
1670
|
-
TableName: [],
|
|
1671
|
-
});
|
|
1672
|
-
};
|
|
1673
|
-
const se_DeleteRequest = (input, context) => {
|
|
1674
|
-
return take(input, {
|
|
1675
|
-
Key: (_) => se_Key(_, context),
|
|
1676
|
-
});
|
|
1677
|
-
};
|
|
1678
|
-
const se_ExecuteStatementInput = (input, context) => {
|
|
1679
|
-
return take(input, {
|
|
1680
|
-
ConsistentRead: [],
|
|
1681
|
-
Limit: [],
|
|
1682
|
-
NextToken: [],
|
|
1683
|
-
Parameters: (_) => se_PreparedStatementParameters(_, context),
|
|
1684
|
-
ReturnConsumedCapacity: [],
|
|
1685
|
-
ReturnValuesOnConditionCheckFailure: [],
|
|
1686
|
-
Statement: [],
|
|
1687
|
-
});
|
|
1688
|
-
};
|
|
1689
|
-
const se_ExecuteTransactionInput = (input, context) => {
|
|
1690
|
-
return take(input, {
|
|
1691
|
-
ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
1692
|
-
ReturnConsumedCapacity: [],
|
|
1693
|
-
TransactStatements: (_) => se_ParameterizedStatements(_, context),
|
|
1694
|
-
});
|
|
1695
|
-
};
|
|
1696
|
-
const se_ExpectedAttributeMap = (input, context) => {
|
|
1697
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1698
|
-
if (value === null) {
|
|
1699
|
-
return acc;
|
|
1700
|
-
}
|
|
1701
|
-
acc[key] = se_ExpectedAttributeValue(value, context);
|
|
1702
|
-
return acc;
|
|
1703
|
-
}, {});
|
|
1704
|
-
};
|
|
1705
|
-
const se_ExpectedAttributeValue = (input, context) => {
|
|
1706
|
-
return take(input, {
|
|
1707
|
-
AttributeValueList: (_) => se_AttributeValueList(_, context),
|
|
1708
|
-
ComparisonOperator: [],
|
|
1709
|
-
Exists: [],
|
|
1710
|
-
Value: (_) => se_AttributeValue(_, context),
|
|
1711
|
-
});
|
|
1712
|
-
};
|
|
1713
|
-
const se_ExportTableToPointInTimeInput = (input, context) => {
|
|
1714
|
-
return take(input, {
|
|
1715
|
-
ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
1716
|
-
ExportFormat: [],
|
|
1717
|
-
ExportTime: (_) => _.getTime() / 1_000,
|
|
1718
|
-
ExportType: [],
|
|
1719
|
-
IncrementalExportSpecification: (_) => se_IncrementalExportSpecification(_, context),
|
|
1720
|
-
S3Bucket: [],
|
|
1721
|
-
S3BucketOwner: [],
|
|
1722
|
-
S3Prefix: [],
|
|
1723
|
-
S3SseAlgorithm: [],
|
|
1724
|
-
S3SseKmsKeyId: [],
|
|
1725
|
-
TableArn: [],
|
|
1726
|
-
});
|
|
1727
|
-
};
|
|
1728
|
-
const se_ExpressionAttributeValueMap = (input, context) => {
|
|
1729
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1730
|
-
if (value === null) {
|
|
1731
|
-
return acc;
|
|
1732
|
-
}
|
|
1733
|
-
acc[key] = se_AttributeValue(value, context);
|
|
1734
|
-
return acc;
|
|
1735
|
-
}, {});
|
|
1736
|
-
};
|
|
1737
|
-
const se_FilterConditionMap = (input, context) => {
|
|
1738
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1739
|
-
if (value === null) {
|
|
1740
|
-
return acc;
|
|
1741
|
-
}
|
|
1742
|
-
acc[key] = se_Condition(value, context);
|
|
1743
|
-
return acc;
|
|
1744
|
-
}, {});
|
|
1745
|
-
};
|
|
1746
|
-
const se_Get = (input, context) => {
|
|
1747
|
-
return take(input, {
|
|
1748
|
-
ExpressionAttributeNames: _json,
|
|
1749
|
-
Key: (_) => se_Key(_, context),
|
|
1750
|
-
ProjectionExpression: [],
|
|
1751
|
-
TableName: [],
|
|
1752
|
-
});
|
|
1753
|
-
};
|
|
1754
|
-
const se_GetItemInput = (input, context) => {
|
|
1755
|
-
return take(input, {
|
|
1756
|
-
AttributesToGet: _json,
|
|
1757
|
-
ConsistentRead: [],
|
|
1758
|
-
ExpressionAttributeNames: _json,
|
|
1759
|
-
Key: (_) => se_Key(_, context),
|
|
1760
|
-
ProjectionExpression: [],
|
|
1761
|
-
ReturnConsumedCapacity: [],
|
|
1762
|
-
TableName: [],
|
|
1763
|
-
});
|
|
1764
|
-
};
|
|
1765
|
-
const se_GlobalSecondaryIndexAutoScalingUpdate = (input, context) => {
|
|
1766
|
-
return take(input, {
|
|
1767
|
-
IndexName: [],
|
|
1768
|
-
ProvisionedWriteCapacityAutoScalingUpdate: (_) => se_AutoScalingSettingsUpdate(_, context),
|
|
1769
|
-
});
|
|
1770
|
-
};
|
|
1771
|
-
const se_GlobalSecondaryIndexAutoScalingUpdateList = (input, context) => {
|
|
1772
|
-
return input
|
|
1773
|
-
.filter((e) => e != null)
|
|
1774
|
-
.map((entry) => {
|
|
1775
|
-
return se_GlobalSecondaryIndexAutoScalingUpdate(entry, context);
|
|
1776
|
-
});
|
|
1777
|
-
};
|
|
1778
|
-
const se_GlobalTableGlobalSecondaryIndexSettingsUpdate = (input, context) => {
|
|
1779
|
-
return take(input, {
|
|
1780
|
-
IndexName: [],
|
|
1781
|
-
ProvisionedWriteCapacityAutoScalingSettingsUpdate: (_) => se_AutoScalingSettingsUpdate(_, context),
|
|
1782
|
-
ProvisionedWriteCapacityUnits: [],
|
|
1783
|
-
});
|
|
1784
|
-
};
|
|
1785
|
-
const se_GlobalTableGlobalSecondaryIndexSettingsUpdateList = (input, context) => {
|
|
1786
|
-
return input
|
|
1787
|
-
.filter((e) => e != null)
|
|
1788
|
-
.map((entry) => {
|
|
1789
|
-
return se_GlobalTableGlobalSecondaryIndexSettingsUpdate(entry, context);
|
|
1790
|
-
});
|
|
1791
|
-
};
|
|
1792
|
-
const se_ImportTableInput = (input, context) => {
|
|
1793
|
-
return take(input, {
|
|
1794
|
-
ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
1795
|
-
InputCompressionType: [],
|
|
1796
|
-
InputFormat: [],
|
|
1797
|
-
InputFormatOptions: _json,
|
|
1798
|
-
S3BucketSource: _json,
|
|
1799
|
-
TableCreationParameters: _json,
|
|
1800
|
-
});
|
|
1801
|
-
};
|
|
1802
|
-
const se_IncrementalExportSpecification = (input, context) => {
|
|
1803
|
-
return take(input, {
|
|
1804
|
-
ExportFromTime: (_) => _.getTime() / 1_000,
|
|
1805
|
-
ExportToTime: (_) => _.getTime() / 1_000,
|
|
1806
|
-
ExportViewType: [],
|
|
1807
|
-
});
|
|
1808
|
-
};
|
|
1809
|
-
const se_Key = (input, context) => {
|
|
1810
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1811
|
-
if (value === null) {
|
|
1812
|
-
return acc;
|
|
1813
|
-
}
|
|
1814
|
-
acc[key] = se_AttributeValue(value, context);
|
|
1815
|
-
return acc;
|
|
1816
|
-
}, {});
|
|
1817
|
-
};
|
|
1818
|
-
const se_KeyConditions = (input, context) => {
|
|
1819
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1820
|
-
if (value === null) {
|
|
1821
|
-
return acc;
|
|
1822
|
-
}
|
|
1823
|
-
acc[key] = se_Condition(value, context);
|
|
1824
|
-
return acc;
|
|
1825
|
-
}, {});
|
|
1826
|
-
};
|
|
1827
|
-
const se_KeyList = (input, context) => {
|
|
1828
|
-
return input
|
|
1829
|
-
.filter((e) => e != null)
|
|
1830
|
-
.map((entry) => {
|
|
1831
|
-
return se_Key(entry, context);
|
|
1832
|
-
});
|
|
1833
|
-
};
|
|
1834
|
-
const se_KeysAndAttributes = (input, context) => {
|
|
1835
|
-
return take(input, {
|
|
1836
|
-
AttributesToGet: _json,
|
|
1837
|
-
ConsistentRead: [],
|
|
1838
|
-
ExpressionAttributeNames: _json,
|
|
1839
|
-
Keys: (_) => se_KeyList(_, context),
|
|
1840
|
-
ProjectionExpression: [],
|
|
1841
|
-
});
|
|
1842
|
-
};
|
|
1843
|
-
const se_ListAttributeValue = (input, context) => {
|
|
1844
|
-
return input
|
|
1845
|
-
.filter((e) => e != null)
|
|
1846
|
-
.map((entry) => {
|
|
1847
|
-
return se_AttributeValue(entry, context);
|
|
1848
|
-
});
|
|
1849
|
-
};
|
|
1850
|
-
const se_ListBackupsInput = (input, context) => {
|
|
1851
|
-
return take(input, {
|
|
1852
|
-
BackupType: [],
|
|
1853
|
-
ExclusiveStartBackupArn: [],
|
|
1854
|
-
Limit: [],
|
|
1855
|
-
TableName: [],
|
|
1856
|
-
TimeRangeLowerBound: (_) => _.getTime() / 1_000,
|
|
1857
|
-
TimeRangeUpperBound: (_) => _.getTime() / 1_000,
|
|
1858
|
-
});
|
|
1859
|
-
};
|
|
1860
|
-
const se_MapAttributeValue = (input, context) => {
|
|
1861
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1862
|
-
if (value === null) {
|
|
1863
|
-
return acc;
|
|
1864
|
-
}
|
|
1865
|
-
acc[key] = se_AttributeValue(value, context);
|
|
1866
|
-
return acc;
|
|
1867
|
-
}, {});
|
|
1868
|
-
};
|
|
1869
|
-
const se_ParameterizedStatement = (input, context) => {
|
|
1870
|
-
return take(input, {
|
|
1871
|
-
Parameters: (_) => se_PreparedStatementParameters(_, context),
|
|
1872
|
-
ReturnValuesOnConditionCheckFailure: [],
|
|
1873
|
-
Statement: [],
|
|
1874
|
-
});
|
|
1875
|
-
};
|
|
1876
|
-
const se_ParameterizedStatements = (input, context) => {
|
|
1877
|
-
return input
|
|
1878
|
-
.filter((e) => e != null)
|
|
1879
|
-
.map((entry) => {
|
|
1880
|
-
return se_ParameterizedStatement(entry, context);
|
|
1881
|
-
});
|
|
1882
|
-
};
|
|
1883
|
-
const se_PartiQLBatchRequest = (input, context) => {
|
|
1884
|
-
return input
|
|
1885
|
-
.filter((e) => e != null)
|
|
1886
|
-
.map((entry) => {
|
|
1887
|
-
return se_BatchStatementRequest(entry, context);
|
|
1888
|
-
});
|
|
1889
|
-
};
|
|
1890
|
-
const se_PreparedStatementParameters = (input, context) => {
|
|
1891
|
-
return input
|
|
1892
|
-
.filter((e) => e != null)
|
|
1893
|
-
.map((entry) => {
|
|
1894
|
-
return se_AttributeValue(entry, context);
|
|
1895
|
-
});
|
|
1896
|
-
};
|
|
1897
|
-
const se_Put = (input, context) => {
|
|
1898
|
-
return take(input, {
|
|
1899
|
-
ConditionExpression: [],
|
|
1900
|
-
ExpressionAttributeNames: _json,
|
|
1901
|
-
ExpressionAttributeValues: (_) => se_ExpressionAttributeValueMap(_, context),
|
|
1902
|
-
Item: (_) => se_PutItemInputAttributeMap(_, context),
|
|
1903
|
-
ReturnValuesOnConditionCheckFailure: [],
|
|
1904
|
-
TableName: [],
|
|
1905
|
-
});
|
|
1906
|
-
};
|
|
1907
|
-
const se_PutItemInput = (input, context) => {
|
|
1908
|
-
return take(input, {
|
|
1909
|
-
ConditionExpression: [],
|
|
1910
|
-
ConditionalOperator: [],
|
|
1911
|
-
Expected: (_) => se_ExpectedAttributeMap(_, context),
|
|
1912
|
-
ExpressionAttributeNames: _json,
|
|
1913
|
-
ExpressionAttributeValues: (_) => se_ExpressionAttributeValueMap(_, context),
|
|
1914
|
-
Item: (_) => se_PutItemInputAttributeMap(_, context),
|
|
1915
|
-
ReturnConsumedCapacity: [],
|
|
1916
|
-
ReturnItemCollectionMetrics: [],
|
|
1917
|
-
ReturnValues: [],
|
|
1918
|
-
ReturnValuesOnConditionCheckFailure: [],
|
|
1919
|
-
TableName: [],
|
|
1920
|
-
});
|
|
1921
|
-
};
|
|
1922
|
-
const se_PutItemInputAttributeMap = (input, context) => {
|
|
1923
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1924
|
-
if (value === null) {
|
|
1925
|
-
return acc;
|
|
1926
|
-
}
|
|
1927
|
-
acc[key] = se_AttributeValue(value, context);
|
|
1928
|
-
return acc;
|
|
1929
|
-
}, {});
|
|
1930
|
-
};
|
|
1931
|
-
const se_PutRequest = (input, context) => {
|
|
1932
|
-
return take(input, {
|
|
1933
|
-
Item: (_) => se_PutItemInputAttributeMap(_, context),
|
|
1934
|
-
});
|
|
1935
|
-
};
|
|
1936
|
-
const se_QueryInput = (input, context) => {
|
|
1937
|
-
return take(input, {
|
|
1938
|
-
AttributesToGet: _json,
|
|
1939
|
-
ConditionalOperator: [],
|
|
1940
|
-
ConsistentRead: [],
|
|
1941
|
-
ExclusiveStartKey: (_) => se_Key(_, context),
|
|
1942
|
-
ExpressionAttributeNames: _json,
|
|
1943
|
-
ExpressionAttributeValues: (_) => se_ExpressionAttributeValueMap(_, context),
|
|
1944
|
-
FilterExpression: [],
|
|
1945
|
-
IndexName: [],
|
|
1946
|
-
KeyConditionExpression: [],
|
|
1947
|
-
KeyConditions: (_) => se_KeyConditions(_, context),
|
|
1948
|
-
Limit: [],
|
|
1949
|
-
ProjectionExpression: [],
|
|
1950
|
-
QueryFilter: (_) => se_FilterConditionMap(_, context),
|
|
1951
|
-
ReturnConsumedCapacity: [],
|
|
1952
|
-
ScanIndexForward: [],
|
|
1953
|
-
Select: [],
|
|
1954
|
-
TableName: [],
|
|
1955
|
-
});
|
|
1956
|
-
};
|
|
1957
|
-
const se_ReplicaAutoScalingUpdate = (input, context) => {
|
|
1958
|
-
return take(input, {
|
|
1959
|
-
RegionName: [],
|
|
1960
|
-
ReplicaGlobalSecondaryIndexUpdates: (_) => se_ReplicaGlobalSecondaryIndexAutoScalingUpdateList(_, context),
|
|
1961
|
-
ReplicaProvisionedReadCapacityAutoScalingUpdate: (_) => se_AutoScalingSettingsUpdate(_, context),
|
|
1962
|
-
});
|
|
1963
|
-
};
|
|
1964
|
-
const se_ReplicaAutoScalingUpdateList = (input, context) => {
|
|
1965
|
-
return input
|
|
1966
|
-
.filter((e) => e != null)
|
|
1967
|
-
.map((entry) => {
|
|
1968
|
-
return se_ReplicaAutoScalingUpdate(entry, context);
|
|
1969
|
-
});
|
|
1970
|
-
};
|
|
1971
|
-
const se_ReplicaGlobalSecondaryIndexAutoScalingUpdate = (input, context) => {
|
|
1972
|
-
return take(input, {
|
|
1973
|
-
IndexName: [],
|
|
1974
|
-
ProvisionedReadCapacityAutoScalingUpdate: (_) => se_AutoScalingSettingsUpdate(_, context),
|
|
1975
|
-
});
|
|
1976
|
-
};
|
|
1977
|
-
const se_ReplicaGlobalSecondaryIndexAutoScalingUpdateList = (input, context) => {
|
|
1978
|
-
return input
|
|
1979
|
-
.filter((e) => e != null)
|
|
1980
|
-
.map((entry) => {
|
|
1981
|
-
return se_ReplicaGlobalSecondaryIndexAutoScalingUpdate(entry, context);
|
|
1982
|
-
});
|
|
1983
|
-
};
|
|
1984
|
-
const se_ReplicaGlobalSecondaryIndexSettingsUpdate = (input, context) => {
|
|
1985
|
-
return take(input, {
|
|
1986
|
-
IndexName: [],
|
|
1987
|
-
ProvisionedReadCapacityAutoScalingSettingsUpdate: (_) => se_AutoScalingSettingsUpdate(_, context),
|
|
1988
|
-
ProvisionedReadCapacityUnits: [],
|
|
1989
|
-
});
|
|
1990
|
-
};
|
|
1991
|
-
const se_ReplicaGlobalSecondaryIndexSettingsUpdateList = (input, context) => {
|
|
1992
|
-
return input
|
|
1993
|
-
.filter((e) => e != null)
|
|
1994
|
-
.map((entry) => {
|
|
1995
|
-
return se_ReplicaGlobalSecondaryIndexSettingsUpdate(entry, context);
|
|
1996
|
-
});
|
|
1997
|
-
};
|
|
1998
|
-
const se_ReplicaSettingsUpdate = (input, context) => {
|
|
1999
|
-
return take(input, {
|
|
2000
|
-
RegionName: [],
|
|
2001
|
-
ReplicaGlobalSecondaryIndexSettingsUpdate: (_) => se_ReplicaGlobalSecondaryIndexSettingsUpdateList(_, context),
|
|
2002
|
-
ReplicaProvisionedReadCapacityAutoScalingSettingsUpdate: (_) => se_AutoScalingSettingsUpdate(_, context),
|
|
2003
|
-
ReplicaProvisionedReadCapacityUnits: [],
|
|
2004
|
-
ReplicaTableClass: [],
|
|
2005
|
-
});
|
|
2006
|
-
};
|
|
2007
|
-
const se_ReplicaSettingsUpdateList = (input, context) => {
|
|
2008
|
-
return input
|
|
2009
|
-
.filter((e) => e != null)
|
|
2010
|
-
.map((entry) => {
|
|
2011
|
-
return se_ReplicaSettingsUpdate(entry, context);
|
|
2012
|
-
});
|
|
2013
|
-
};
|
|
2014
|
-
const se_RestoreTableToPointInTimeInput = (input, context) => {
|
|
2015
|
-
return take(input, {
|
|
2016
|
-
BillingModeOverride: [],
|
|
2017
|
-
GlobalSecondaryIndexOverride: _json,
|
|
2018
|
-
LocalSecondaryIndexOverride: _json,
|
|
2019
|
-
OnDemandThroughputOverride: _json,
|
|
2020
|
-
ProvisionedThroughputOverride: _json,
|
|
2021
|
-
RestoreDateTime: (_) => _.getTime() / 1_000,
|
|
2022
|
-
SSESpecificationOverride: _json,
|
|
2023
|
-
SourceTableArn: [],
|
|
2024
|
-
SourceTableName: [],
|
|
2025
|
-
TargetTableName: [],
|
|
2026
|
-
UseLatestRestorableTime: [],
|
|
2027
|
-
});
|
|
2028
|
-
};
|
|
2029
|
-
const se_ScanInput = (input, context) => {
|
|
2030
|
-
return take(input, {
|
|
2031
|
-
AttributesToGet: _json,
|
|
2032
|
-
ConditionalOperator: [],
|
|
2033
|
-
ConsistentRead: [],
|
|
2034
|
-
ExclusiveStartKey: (_) => se_Key(_, context),
|
|
2035
|
-
ExpressionAttributeNames: _json,
|
|
2036
|
-
ExpressionAttributeValues: (_) => se_ExpressionAttributeValueMap(_, context),
|
|
2037
|
-
FilterExpression: [],
|
|
2038
|
-
IndexName: [],
|
|
2039
|
-
Limit: [],
|
|
2040
|
-
ProjectionExpression: [],
|
|
2041
|
-
ReturnConsumedCapacity: [],
|
|
2042
|
-
ScanFilter: (_) => se_FilterConditionMap(_, context),
|
|
2043
|
-
Segment: [],
|
|
2044
|
-
Select: [],
|
|
2045
|
-
TableName: [],
|
|
2046
|
-
TotalSegments: [],
|
|
2047
|
-
});
|
|
2048
|
-
};
|
|
2049
|
-
const se_TransactGetItem = (input, context) => {
|
|
2050
|
-
return take(input, {
|
|
2051
|
-
Get: (_) => se_Get(_, context),
|
|
2052
|
-
});
|
|
2053
|
-
};
|
|
2054
|
-
const se_TransactGetItemList = (input, context) => {
|
|
2055
|
-
return input
|
|
2056
|
-
.filter((e) => e != null)
|
|
2057
|
-
.map((entry) => {
|
|
2058
|
-
return se_TransactGetItem(entry, context);
|
|
2059
|
-
});
|
|
2060
|
-
};
|
|
2061
|
-
const se_TransactGetItemsInput = (input, context) => {
|
|
2062
|
-
return take(input, {
|
|
2063
|
-
ReturnConsumedCapacity: [],
|
|
2064
|
-
TransactItems: (_) => se_TransactGetItemList(_, context),
|
|
2065
|
-
});
|
|
2066
|
-
};
|
|
2067
|
-
const se_TransactWriteItem = (input, context) => {
|
|
2068
|
-
return take(input, {
|
|
2069
|
-
ConditionCheck: (_) => se_ConditionCheck(_, context),
|
|
2070
|
-
Delete: (_) => se_Delete(_, context),
|
|
2071
|
-
Put: (_) => se_Put(_, context),
|
|
2072
|
-
Update: (_) => se_Update(_, context),
|
|
2073
|
-
});
|
|
2074
|
-
};
|
|
2075
|
-
const se_TransactWriteItemList = (input, context) => {
|
|
2076
|
-
return input
|
|
2077
|
-
.filter((e) => e != null)
|
|
2078
|
-
.map((entry) => {
|
|
2079
|
-
return se_TransactWriteItem(entry, context);
|
|
2080
|
-
});
|
|
2081
|
-
};
|
|
2082
|
-
const se_TransactWriteItemsInput = (input, context) => {
|
|
2083
|
-
return take(input, {
|
|
2084
|
-
ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
2085
|
-
ReturnConsumedCapacity: [],
|
|
2086
|
-
ReturnItemCollectionMetrics: [],
|
|
2087
|
-
TransactItems: (_) => se_TransactWriteItemList(_, context),
|
|
2088
|
-
});
|
|
2089
|
-
};
|
|
2090
|
-
const se_Update = (input, context) => {
|
|
2091
|
-
return take(input, {
|
|
2092
|
-
ConditionExpression: [],
|
|
2093
|
-
ExpressionAttributeNames: _json,
|
|
2094
|
-
ExpressionAttributeValues: (_) => se_ExpressionAttributeValueMap(_, context),
|
|
2095
|
-
Key: (_) => se_Key(_, context),
|
|
2096
|
-
ReturnValuesOnConditionCheckFailure: [],
|
|
2097
|
-
TableName: [],
|
|
2098
|
-
UpdateExpression: [],
|
|
2099
|
-
});
|
|
2100
|
-
};
|
|
2101
|
-
const se_UpdateGlobalTableSettingsInput = (input, context) => {
|
|
2102
|
-
return take(input, {
|
|
2103
|
-
GlobalTableBillingMode: [],
|
|
2104
|
-
GlobalTableGlobalSecondaryIndexSettingsUpdate: (_) => se_GlobalTableGlobalSecondaryIndexSettingsUpdateList(_, context),
|
|
2105
|
-
GlobalTableName: [],
|
|
2106
|
-
GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate: (_) => se_AutoScalingSettingsUpdate(_, context),
|
|
2107
|
-
GlobalTableProvisionedWriteCapacityUnits: [],
|
|
2108
|
-
ReplicaSettingsUpdate: (_) => se_ReplicaSettingsUpdateList(_, context),
|
|
2109
|
-
});
|
|
2110
|
-
};
|
|
2111
|
-
const se_UpdateItemInput = (input, context) => {
|
|
2112
|
-
return take(input, {
|
|
2113
|
-
AttributeUpdates: (_) => se_AttributeUpdates(_, context),
|
|
2114
|
-
ConditionExpression: [],
|
|
2115
|
-
ConditionalOperator: [],
|
|
2116
|
-
Expected: (_) => se_ExpectedAttributeMap(_, context),
|
|
2117
|
-
ExpressionAttributeNames: _json,
|
|
2118
|
-
ExpressionAttributeValues: (_) => se_ExpressionAttributeValueMap(_, context),
|
|
2119
|
-
Key: (_) => se_Key(_, context),
|
|
2120
|
-
ReturnConsumedCapacity: [],
|
|
2121
|
-
ReturnItemCollectionMetrics: [],
|
|
2122
|
-
ReturnValues: [],
|
|
2123
|
-
ReturnValuesOnConditionCheckFailure: [],
|
|
2124
|
-
TableName: [],
|
|
2125
|
-
UpdateExpression: [],
|
|
2126
|
-
});
|
|
2127
|
-
};
|
|
2128
|
-
const se_UpdateTableReplicaAutoScalingInput = (input, context) => {
|
|
2129
|
-
return take(input, {
|
|
2130
|
-
GlobalSecondaryIndexUpdates: (_) => se_GlobalSecondaryIndexAutoScalingUpdateList(_, context),
|
|
2131
|
-
ProvisionedWriteCapacityAutoScalingUpdate: (_) => se_AutoScalingSettingsUpdate(_, context),
|
|
2132
|
-
ReplicaUpdates: (_) => se_ReplicaAutoScalingUpdateList(_, context),
|
|
2133
|
-
TableName: [],
|
|
2134
|
-
});
|
|
2135
|
-
};
|
|
2136
|
-
const se_WriteRequest = (input, context) => {
|
|
2137
|
-
return take(input, {
|
|
2138
|
-
DeleteRequest: (_) => se_DeleteRequest(_, context),
|
|
2139
|
-
PutRequest: (_) => se_PutRequest(_, context),
|
|
2140
|
-
});
|
|
2141
|
-
};
|
|
2142
|
-
const se_WriteRequests = (input, context) => {
|
|
2143
|
-
return input
|
|
2144
|
-
.filter((e) => e != null)
|
|
2145
|
-
.map((entry) => {
|
|
2146
|
-
return se_WriteRequest(entry, context);
|
|
2147
|
-
});
|
|
2148
|
-
};
|
|
2149
|
-
const de_ArchivalSummary = (output, context) => {
|
|
2150
|
-
return take(output, {
|
|
2151
|
-
ArchivalBackupArn: __expectString,
|
|
2152
|
-
ArchivalDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2153
|
-
ArchivalReason: __expectString,
|
|
2154
|
-
});
|
|
2155
|
-
};
|
|
2156
|
-
const de_AttributeMap = (output, context) => {
|
|
2157
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2158
|
-
if (value === null) {
|
|
2159
|
-
return acc;
|
|
2160
|
-
}
|
|
2161
|
-
acc[key] = de_AttributeValue(__expectUnion(value), context);
|
|
2162
|
-
return acc;
|
|
2163
|
-
}, {});
|
|
2164
|
-
};
|
|
2165
|
-
const de_AttributeValue = (output, context) => {
|
|
2166
|
-
if (output.B != null) {
|
|
2167
|
-
return {
|
|
2168
|
-
B: context.base64Decoder(output.B),
|
|
2169
|
-
};
|
|
2170
|
-
}
|
|
2171
|
-
if (__expectBoolean(output.BOOL) !== undefined) {
|
|
2172
|
-
return { BOOL: __expectBoolean(output.BOOL) };
|
|
2173
|
-
}
|
|
2174
|
-
if (output.BS != null) {
|
|
2175
|
-
return {
|
|
2176
|
-
BS: de_BinarySetAttributeValue(output.BS, context),
|
|
2177
|
-
};
|
|
2178
|
-
}
|
|
2179
|
-
if (output.L != null) {
|
|
2180
|
-
return {
|
|
2181
|
-
L: de_ListAttributeValue(output.L, context),
|
|
2182
|
-
};
|
|
2183
|
-
}
|
|
2184
|
-
if (output.M != null) {
|
|
2185
|
-
return {
|
|
2186
|
-
M: de_MapAttributeValue(output.M, context),
|
|
2187
|
-
};
|
|
2188
|
-
}
|
|
2189
|
-
if (__expectString(output.N) !== undefined) {
|
|
2190
|
-
return { N: __expectString(output.N) };
|
|
2191
|
-
}
|
|
2192
|
-
if (output.NS != null) {
|
|
2193
|
-
return {
|
|
2194
|
-
NS: _json(output.NS),
|
|
2195
|
-
};
|
|
2196
|
-
}
|
|
2197
|
-
if (__expectBoolean(output.NULL) !== undefined) {
|
|
2198
|
-
return { NULL: __expectBoolean(output.NULL) };
|
|
2199
|
-
}
|
|
2200
|
-
if (__expectString(output.S) !== undefined) {
|
|
2201
|
-
return { S: __expectString(output.S) };
|
|
2202
|
-
}
|
|
2203
|
-
if (output.SS != null) {
|
|
2204
|
-
return {
|
|
2205
|
-
SS: _json(output.SS),
|
|
2206
|
-
};
|
|
2207
|
-
}
|
|
2208
|
-
return { $unknown: Object.entries(output)[0] };
|
|
2209
|
-
};
|
|
2210
|
-
const de_AutoScalingPolicyDescription = (output, context) => {
|
|
2211
|
-
return take(output, {
|
|
2212
|
-
PolicyName: __expectString,
|
|
2213
|
-
TargetTrackingScalingPolicyConfiguration: (_) => de_AutoScalingTargetTrackingScalingPolicyConfigurationDescription(_, context),
|
|
2214
|
-
});
|
|
2215
|
-
};
|
|
2216
|
-
const de_AutoScalingPolicyDescriptionList = (output, context) => {
|
|
2217
|
-
const retVal = (output || [])
|
|
2218
|
-
.filter((e) => e != null)
|
|
2219
|
-
.map((entry) => {
|
|
2220
|
-
return de_AutoScalingPolicyDescription(entry, context);
|
|
2221
|
-
});
|
|
2222
|
-
return retVal;
|
|
2223
|
-
};
|
|
2224
|
-
const de_AutoScalingSettingsDescription = (output, context) => {
|
|
2225
|
-
return take(output, {
|
|
2226
|
-
AutoScalingDisabled: __expectBoolean,
|
|
2227
|
-
AutoScalingRoleArn: __expectString,
|
|
2228
|
-
MaximumUnits: __expectLong,
|
|
2229
|
-
MinimumUnits: __expectLong,
|
|
2230
|
-
ScalingPolicies: (_) => de_AutoScalingPolicyDescriptionList(_, context),
|
|
2231
|
-
});
|
|
2232
|
-
};
|
|
2233
|
-
const de_AutoScalingTargetTrackingScalingPolicyConfigurationDescription = (output, context) => {
|
|
2234
|
-
return take(output, {
|
|
2235
|
-
DisableScaleIn: __expectBoolean,
|
|
2236
|
-
ScaleInCooldown: __expectInt32,
|
|
2237
|
-
ScaleOutCooldown: __expectInt32,
|
|
2238
|
-
TargetValue: __limitedParseDouble,
|
|
2239
|
-
});
|
|
2240
|
-
};
|
|
2241
|
-
const de_BackupDescription = (output, context) => {
|
|
2242
|
-
return take(output, {
|
|
2243
|
-
BackupDetails: (_) => de_BackupDetails(_, context),
|
|
2244
|
-
SourceTableDetails: (_) => de_SourceTableDetails(_, context),
|
|
2245
|
-
SourceTableFeatureDetails: (_) => de_SourceTableFeatureDetails(_, context),
|
|
2246
|
-
});
|
|
2247
|
-
};
|
|
2248
|
-
const de_BackupDetails = (output, context) => {
|
|
2249
|
-
return take(output, {
|
|
2250
|
-
BackupArn: __expectString,
|
|
2251
|
-
BackupCreationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2252
|
-
BackupExpiryDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2253
|
-
BackupName: __expectString,
|
|
2254
|
-
BackupSizeBytes: __expectLong,
|
|
2255
|
-
BackupStatus: __expectString,
|
|
2256
|
-
BackupType: __expectString,
|
|
2257
|
-
});
|
|
2258
|
-
};
|
|
2259
|
-
const de_BackupSummaries = (output, context) => {
|
|
2260
|
-
const retVal = (output || [])
|
|
2261
|
-
.filter((e) => e != null)
|
|
2262
|
-
.map((entry) => {
|
|
2263
|
-
return de_BackupSummary(entry, context);
|
|
2264
|
-
});
|
|
2265
|
-
return retVal;
|
|
2266
|
-
};
|
|
2267
|
-
const de_BackupSummary = (output, context) => {
|
|
2268
|
-
return take(output, {
|
|
2269
|
-
BackupArn: __expectString,
|
|
2270
|
-
BackupCreationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2271
|
-
BackupExpiryDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2272
|
-
BackupName: __expectString,
|
|
2273
|
-
BackupSizeBytes: __expectLong,
|
|
2274
|
-
BackupStatus: __expectString,
|
|
2275
|
-
BackupType: __expectString,
|
|
2276
|
-
TableArn: __expectString,
|
|
2277
|
-
TableId: __expectString,
|
|
2278
|
-
TableName: __expectString,
|
|
2279
|
-
});
|
|
2280
|
-
};
|
|
2281
|
-
const de_BatchExecuteStatementOutput = (output, context) => {
|
|
2282
|
-
return take(output, {
|
|
2283
|
-
ConsumedCapacity: (_) => de_ConsumedCapacityMultiple(_, context),
|
|
2284
|
-
Responses: (_) => de_PartiQLBatchResponse(_, context),
|
|
2285
|
-
});
|
|
2286
|
-
};
|
|
2287
|
-
const de_BatchGetItemOutput = (output, context) => {
|
|
2288
|
-
return take(output, {
|
|
2289
|
-
ConsumedCapacity: (_) => de_ConsumedCapacityMultiple(_, context),
|
|
2290
|
-
Responses: (_) => de_BatchGetResponseMap(_, context),
|
|
2291
|
-
UnprocessedKeys: (_) => de_BatchGetRequestMap(_, context),
|
|
2292
|
-
});
|
|
2293
|
-
};
|
|
2294
|
-
const de_BatchGetRequestMap = (output, context) => {
|
|
2295
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2296
|
-
if (value === null) {
|
|
2297
|
-
return acc;
|
|
2298
|
-
}
|
|
2299
|
-
acc[key] = de_KeysAndAttributes(value, context);
|
|
2300
|
-
return acc;
|
|
2301
|
-
}, {});
|
|
2302
|
-
};
|
|
2303
|
-
const de_BatchGetResponseMap = (output, context) => {
|
|
2304
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2305
|
-
if (value === null) {
|
|
2306
|
-
return acc;
|
|
2307
|
-
}
|
|
2308
|
-
acc[key] = de_ItemList(value, context);
|
|
2309
|
-
return acc;
|
|
2310
|
-
}, {});
|
|
2311
|
-
};
|
|
2312
|
-
const de_BatchStatementError = (output, context) => {
|
|
2313
|
-
return take(output, {
|
|
2314
|
-
Code: __expectString,
|
|
2315
|
-
Item: (_) => de_AttributeMap(_, context),
|
|
2316
|
-
Message: __expectString,
|
|
2317
|
-
});
|
|
2318
|
-
};
|
|
2319
|
-
const de_BatchStatementResponse = (output, context) => {
|
|
2320
|
-
return take(output, {
|
|
2321
|
-
Error: (_) => de_BatchStatementError(_, context),
|
|
2322
|
-
Item: (_) => de_AttributeMap(_, context),
|
|
2323
|
-
TableName: __expectString,
|
|
2324
|
-
});
|
|
2325
|
-
};
|
|
2326
|
-
const de_BatchWriteItemOutput = (output, context) => {
|
|
2327
|
-
return take(output, {
|
|
2328
|
-
ConsumedCapacity: (_) => de_ConsumedCapacityMultiple(_, context),
|
|
2329
|
-
ItemCollectionMetrics: (_) => de_ItemCollectionMetricsPerTable(_, context),
|
|
2330
|
-
UnprocessedItems: (_) => de_BatchWriteItemRequestMap(_, context),
|
|
2331
|
-
});
|
|
2332
|
-
};
|
|
2333
|
-
const de_BatchWriteItemRequestMap = (output, context) => {
|
|
2334
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2335
|
-
if (value === null) {
|
|
2336
|
-
return acc;
|
|
2337
|
-
}
|
|
2338
|
-
acc[key] = de_WriteRequests(value, context);
|
|
2339
|
-
return acc;
|
|
2340
|
-
}, {});
|
|
2341
|
-
};
|
|
2342
|
-
const de_BillingModeSummary = (output, context) => {
|
|
2343
|
-
return take(output, {
|
|
2344
|
-
BillingMode: __expectString,
|
|
2345
|
-
LastUpdateToPayPerRequestDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2346
|
-
});
|
|
2347
|
-
};
|
|
2348
|
-
const de_BinarySetAttributeValue = (output, context) => {
|
|
2349
|
-
const retVal = (output || [])
|
|
2350
|
-
.filter((e) => e != null)
|
|
2351
|
-
.map((entry) => {
|
|
2352
|
-
return context.base64Decoder(entry);
|
|
2353
|
-
});
|
|
2354
|
-
return retVal;
|
|
2355
|
-
};
|
|
2356
|
-
const de_CancellationReason = (output, context) => {
|
|
2357
|
-
return take(output, {
|
|
2358
|
-
Code: __expectString,
|
|
2359
|
-
Item: (_) => de_AttributeMap(_, context),
|
|
2360
|
-
Message: __expectString,
|
|
2361
|
-
});
|
|
2362
|
-
};
|
|
2363
|
-
const de_CancellationReasonList = (output, context) => {
|
|
2364
|
-
const retVal = (output || [])
|
|
2365
|
-
.filter((e) => e != null)
|
|
2366
|
-
.map((entry) => {
|
|
2367
|
-
return de_CancellationReason(entry, context);
|
|
2368
|
-
});
|
|
2369
|
-
return retVal;
|
|
2370
|
-
};
|
|
2371
|
-
const de_Capacity = (output, context) => {
|
|
2372
|
-
return take(output, {
|
|
2373
|
-
CapacityUnits: __limitedParseDouble,
|
|
2374
|
-
ReadCapacityUnits: __limitedParseDouble,
|
|
2375
|
-
WriteCapacityUnits: __limitedParseDouble,
|
|
2376
|
-
});
|
|
2377
|
-
};
|
|
2378
|
-
const de_ConditionalCheckFailedException = (output, context) => {
|
|
2379
|
-
return take(output, {
|
|
2380
|
-
Item: (_) => de_AttributeMap(_, context),
|
|
2381
|
-
message: __expectString,
|
|
2382
|
-
});
|
|
2383
|
-
};
|
|
2384
|
-
const de_ConsumedCapacity = (output, context) => {
|
|
2385
|
-
return take(output, {
|
|
2386
|
-
CapacityUnits: __limitedParseDouble,
|
|
2387
|
-
GlobalSecondaryIndexes: (_) => de_SecondaryIndexesCapacityMap(_, context),
|
|
2388
|
-
LocalSecondaryIndexes: (_) => de_SecondaryIndexesCapacityMap(_, context),
|
|
2389
|
-
ReadCapacityUnits: __limitedParseDouble,
|
|
2390
|
-
Table: (_) => de_Capacity(_, context),
|
|
2391
|
-
TableName: __expectString,
|
|
2392
|
-
WriteCapacityUnits: __limitedParseDouble,
|
|
2393
|
-
});
|
|
2394
|
-
};
|
|
2395
|
-
const de_ConsumedCapacityMultiple = (output, context) => {
|
|
2396
|
-
const retVal = (output || [])
|
|
2397
|
-
.filter((e) => e != null)
|
|
2398
|
-
.map((entry) => {
|
|
2399
|
-
return de_ConsumedCapacity(entry, context);
|
|
2400
|
-
});
|
|
2401
|
-
return retVal;
|
|
2402
|
-
};
|
|
2403
|
-
const de_ContinuousBackupsDescription = (output, context) => {
|
|
2404
|
-
return take(output, {
|
|
2405
|
-
ContinuousBackupsStatus: __expectString,
|
|
2406
|
-
PointInTimeRecoveryDescription: (_) => de_PointInTimeRecoveryDescription(_, context),
|
|
2407
|
-
});
|
|
2408
|
-
};
|
|
2409
|
-
const de_CreateBackupOutput = (output, context) => {
|
|
2410
|
-
return take(output, {
|
|
2411
|
-
BackupDetails: (_) => de_BackupDetails(_, context),
|
|
2412
|
-
});
|
|
2413
|
-
};
|
|
2414
|
-
const de_CreateGlobalTableOutput = (output, context) => {
|
|
2415
|
-
return take(output, {
|
|
2416
|
-
GlobalTableDescription: (_) => de_GlobalTableDescription(_, context),
|
|
2417
|
-
});
|
|
2418
|
-
};
|
|
2419
|
-
const de_CreateTableOutput = (output, context) => {
|
|
2420
|
-
return take(output, {
|
|
2421
|
-
TableDescription: (_) => de_TableDescription(_, context),
|
|
2422
|
-
});
|
|
2423
|
-
};
|
|
2424
|
-
const de_DeleteBackupOutput = (output, context) => {
|
|
2425
|
-
return take(output, {
|
|
2426
|
-
BackupDescription: (_) => de_BackupDescription(_, context),
|
|
2427
|
-
});
|
|
2428
|
-
};
|
|
2429
|
-
const de_DeleteItemOutput = (output, context) => {
|
|
2430
|
-
return take(output, {
|
|
2431
|
-
Attributes: (_) => de_AttributeMap(_, context),
|
|
2432
|
-
ConsumedCapacity: (_) => de_ConsumedCapacity(_, context),
|
|
2433
|
-
ItemCollectionMetrics: (_) => de_ItemCollectionMetrics(_, context),
|
|
2434
|
-
});
|
|
2435
|
-
};
|
|
2436
|
-
const de_DeleteRequest = (output, context) => {
|
|
2437
|
-
return take(output, {
|
|
2438
|
-
Key: (_) => de_Key(_, context),
|
|
2439
|
-
});
|
|
2440
|
-
};
|
|
2441
|
-
const de_DeleteTableOutput = (output, context) => {
|
|
2442
|
-
return take(output, {
|
|
2443
|
-
TableDescription: (_) => de_TableDescription(_, context),
|
|
2444
|
-
});
|
|
2445
|
-
};
|
|
2446
|
-
const de_DescribeBackupOutput = (output, context) => {
|
|
2447
|
-
return take(output, {
|
|
2448
|
-
BackupDescription: (_) => de_BackupDescription(_, context),
|
|
2449
|
-
});
|
|
2450
|
-
};
|
|
2451
|
-
const de_DescribeContinuousBackupsOutput = (output, context) => {
|
|
2452
|
-
return take(output, {
|
|
2453
|
-
ContinuousBackupsDescription: (_) => de_ContinuousBackupsDescription(_, context),
|
|
2454
|
-
});
|
|
2455
|
-
};
|
|
2456
|
-
const de_DescribeContributorInsightsOutput = (output, context) => {
|
|
2457
|
-
return take(output, {
|
|
2458
|
-
ContributorInsightsMode: __expectString,
|
|
2459
|
-
ContributorInsightsRuleList: _json,
|
|
2460
|
-
ContributorInsightsStatus: __expectString,
|
|
2461
|
-
FailureException: _json,
|
|
2462
|
-
IndexName: __expectString,
|
|
2463
|
-
LastUpdateDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2464
|
-
TableName: __expectString,
|
|
2465
|
-
});
|
|
2466
|
-
};
|
|
2467
|
-
const de_DescribeExportOutput = (output, context) => {
|
|
2468
|
-
return take(output, {
|
|
2469
|
-
ExportDescription: (_) => de_ExportDescription(_, context),
|
|
2470
|
-
});
|
|
2471
|
-
};
|
|
2472
|
-
const de_DescribeGlobalTableOutput = (output, context) => {
|
|
2473
|
-
return take(output, {
|
|
2474
|
-
GlobalTableDescription: (_) => de_GlobalTableDescription(_, context),
|
|
2475
|
-
});
|
|
2476
|
-
};
|
|
2477
|
-
const de_DescribeGlobalTableSettingsOutput = (output, context) => {
|
|
2478
|
-
return take(output, {
|
|
2479
|
-
GlobalTableName: __expectString,
|
|
2480
|
-
ReplicaSettings: (_) => de_ReplicaSettingsDescriptionList(_, context),
|
|
2481
|
-
});
|
|
2482
|
-
};
|
|
2483
|
-
const de_DescribeImportOutput = (output, context) => {
|
|
2484
|
-
return take(output, {
|
|
2485
|
-
ImportTableDescription: (_) => de_ImportTableDescription(_, context),
|
|
2486
|
-
});
|
|
2487
|
-
};
|
|
2488
|
-
const de_DescribeTableOutput = (output, context) => {
|
|
2489
|
-
return take(output, {
|
|
2490
|
-
Table: (_) => de_TableDescription(_, context),
|
|
2491
|
-
});
|
|
2492
|
-
};
|
|
2493
|
-
const de_DescribeTableReplicaAutoScalingOutput = (output, context) => {
|
|
2494
|
-
return take(output, {
|
|
2495
|
-
TableAutoScalingDescription: (_) => de_TableAutoScalingDescription(_, context),
|
|
2496
|
-
});
|
|
2497
|
-
};
|
|
2498
|
-
const de_ExecuteStatementOutput = (output, context) => {
|
|
2499
|
-
return take(output, {
|
|
2500
|
-
ConsumedCapacity: (_) => de_ConsumedCapacity(_, context),
|
|
2501
|
-
Items: (_) => de_ItemList(_, context),
|
|
2502
|
-
LastEvaluatedKey: (_) => de_Key(_, context),
|
|
2503
|
-
NextToken: __expectString,
|
|
2504
|
-
});
|
|
2505
|
-
};
|
|
2506
|
-
const de_ExecuteTransactionOutput = (output, context) => {
|
|
2507
|
-
return take(output, {
|
|
2508
|
-
ConsumedCapacity: (_) => de_ConsumedCapacityMultiple(_, context),
|
|
2509
|
-
Responses: (_) => de_ItemResponseList(_, context),
|
|
2510
|
-
});
|
|
2511
|
-
};
|
|
2512
|
-
const de_ExportDescription = (output, context) => {
|
|
2513
|
-
return take(output, {
|
|
2514
|
-
BilledSizeBytes: __expectLong,
|
|
2515
|
-
ClientToken: __expectString,
|
|
2516
|
-
EndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2517
|
-
ExportArn: __expectString,
|
|
2518
|
-
ExportFormat: __expectString,
|
|
2519
|
-
ExportManifest: __expectString,
|
|
2520
|
-
ExportStatus: __expectString,
|
|
2521
|
-
ExportTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2522
|
-
ExportType: __expectString,
|
|
2523
|
-
FailureCode: __expectString,
|
|
2524
|
-
FailureMessage: __expectString,
|
|
2525
|
-
IncrementalExportSpecification: (_) => de_IncrementalExportSpecification(_, context),
|
|
2526
|
-
ItemCount: __expectLong,
|
|
2527
|
-
S3Bucket: __expectString,
|
|
2528
|
-
S3BucketOwner: __expectString,
|
|
2529
|
-
S3Prefix: __expectString,
|
|
2530
|
-
S3SseAlgorithm: __expectString,
|
|
2531
|
-
S3SseKmsKeyId: __expectString,
|
|
2532
|
-
StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2533
|
-
TableArn: __expectString,
|
|
2534
|
-
TableId: __expectString,
|
|
2535
|
-
});
|
|
2536
|
-
};
|
|
2537
|
-
const de_ExportTableToPointInTimeOutput = (output, context) => {
|
|
2538
|
-
return take(output, {
|
|
2539
|
-
ExportDescription: (_) => de_ExportDescription(_, context),
|
|
2540
|
-
});
|
|
2541
|
-
};
|
|
2542
|
-
const de_GetItemOutput = (output, context) => {
|
|
2543
|
-
return take(output, {
|
|
2544
|
-
ConsumedCapacity: (_) => de_ConsumedCapacity(_, context),
|
|
2545
|
-
Item: (_) => de_AttributeMap(_, context),
|
|
2546
|
-
});
|
|
2547
|
-
};
|
|
2548
|
-
const de_GlobalSecondaryIndexDescription = (output, context) => {
|
|
2549
|
-
return take(output, {
|
|
2550
|
-
Backfilling: __expectBoolean,
|
|
2551
|
-
IndexArn: __expectString,
|
|
2552
|
-
IndexName: __expectString,
|
|
2553
|
-
IndexSizeBytes: __expectLong,
|
|
2554
|
-
IndexStatus: __expectString,
|
|
2555
|
-
ItemCount: __expectLong,
|
|
2556
|
-
KeySchema: _json,
|
|
2557
|
-
OnDemandThroughput: _json,
|
|
2558
|
-
Projection: _json,
|
|
2559
|
-
ProvisionedThroughput: (_) => de_ProvisionedThroughputDescription(_, context),
|
|
2560
|
-
WarmThroughput: _json,
|
|
2561
|
-
});
|
|
2562
|
-
};
|
|
2563
|
-
const de_GlobalSecondaryIndexDescriptionList = (output, context) => {
|
|
2564
|
-
const retVal = (output || [])
|
|
2565
|
-
.filter((e) => e != null)
|
|
2566
|
-
.map((entry) => {
|
|
2567
|
-
return de_GlobalSecondaryIndexDescription(entry, context);
|
|
2568
|
-
});
|
|
2569
|
-
return retVal;
|
|
2570
|
-
};
|
|
2571
|
-
const de_GlobalTableDescription = (output, context) => {
|
|
2572
|
-
return take(output, {
|
|
2573
|
-
CreationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2574
|
-
GlobalTableArn: __expectString,
|
|
2575
|
-
GlobalTableName: __expectString,
|
|
2576
|
-
GlobalTableStatus: __expectString,
|
|
2577
|
-
ReplicationGroup: (_) => de_ReplicaDescriptionList(_, context),
|
|
2578
|
-
});
|
|
2579
|
-
};
|
|
2580
|
-
const de_ImportSummary = (output, context) => {
|
|
2581
|
-
return take(output, {
|
|
2582
|
-
CloudWatchLogGroupArn: __expectString,
|
|
2583
|
-
EndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2584
|
-
ImportArn: __expectString,
|
|
2585
|
-
ImportStatus: __expectString,
|
|
2586
|
-
InputFormat: __expectString,
|
|
2587
|
-
S3BucketSource: _json,
|
|
2588
|
-
StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2589
|
-
TableArn: __expectString,
|
|
2590
|
-
});
|
|
2591
|
-
};
|
|
2592
|
-
const de_ImportSummaryList = (output, context) => {
|
|
2593
|
-
const retVal = (output || [])
|
|
2594
|
-
.filter((e) => e != null)
|
|
2595
|
-
.map((entry) => {
|
|
2596
|
-
return de_ImportSummary(entry, context);
|
|
2597
|
-
});
|
|
2598
|
-
return retVal;
|
|
2599
|
-
};
|
|
2600
|
-
const de_ImportTableDescription = (output, context) => {
|
|
2601
|
-
return take(output, {
|
|
2602
|
-
ClientToken: __expectString,
|
|
2603
|
-
CloudWatchLogGroupArn: __expectString,
|
|
2604
|
-
EndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2605
|
-
ErrorCount: __expectLong,
|
|
2606
|
-
FailureCode: __expectString,
|
|
2607
|
-
FailureMessage: __expectString,
|
|
2608
|
-
ImportArn: __expectString,
|
|
2609
|
-
ImportStatus: __expectString,
|
|
2610
|
-
ImportedItemCount: __expectLong,
|
|
2611
|
-
InputCompressionType: __expectString,
|
|
2612
|
-
InputFormat: __expectString,
|
|
2613
|
-
InputFormatOptions: _json,
|
|
2614
|
-
ProcessedItemCount: __expectLong,
|
|
2615
|
-
ProcessedSizeBytes: __expectLong,
|
|
2616
|
-
S3BucketSource: _json,
|
|
2617
|
-
StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2618
|
-
TableArn: __expectString,
|
|
2619
|
-
TableCreationParameters: _json,
|
|
2620
|
-
TableId: __expectString,
|
|
2621
|
-
});
|
|
2622
|
-
};
|
|
2623
|
-
const de_ImportTableOutput = (output, context) => {
|
|
2624
|
-
return take(output, {
|
|
2625
|
-
ImportTableDescription: (_) => de_ImportTableDescription(_, context),
|
|
2626
|
-
});
|
|
2627
|
-
};
|
|
2628
|
-
const de_IncrementalExportSpecification = (output, context) => {
|
|
2629
|
-
return take(output, {
|
|
2630
|
-
ExportFromTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2631
|
-
ExportToTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2632
|
-
ExportViewType: __expectString,
|
|
2633
|
-
});
|
|
2634
|
-
};
|
|
2635
|
-
const de_ItemCollectionKeyAttributeMap = (output, context) => {
|
|
2636
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2637
|
-
if (value === null) {
|
|
2638
|
-
return acc;
|
|
2639
|
-
}
|
|
2640
|
-
acc[key] = de_AttributeValue(__expectUnion(value), context);
|
|
2641
|
-
return acc;
|
|
2642
|
-
}, {});
|
|
2643
|
-
};
|
|
2644
|
-
const de_ItemCollectionMetrics = (output, context) => {
|
|
2645
|
-
return take(output, {
|
|
2646
|
-
ItemCollectionKey: (_) => de_ItemCollectionKeyAttributeMap(_, context),
|
|
2647
|
-
SizeEstimateRangeGB: (_) => de_ItemCollectionSizeEstimateRange(_, context),
|
|
2648
|
-
});
|
|
2649
|
-
};
|
|
2650
|
-
const de_ItemCollectionMetricsMultiple = (output, context) => {
|
|
2651
|
-
const retVal = (output || [])
|
|
2652
|
-
.filter((e) => e != null)
|
|
2653
|
-
.map((entry) => {
|
|
2654
|
-
return de_ItemCollectionMetrics(entry, context);
|
|
2655
|
-
});
|
|
2656
|
-
return retVal;
|
|
2657
|
-
};
|
|
2658
|
-
const de_ItemCollectionMetricsPerTable = (output, context) => {
|
|
2659
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2660
|
-
if (value === null) {
|
|
2661
|
-
return acc;
|
|
2662
|
-
}
|
|
2663
|
-
acc[key] = de_ItemCollectionMetricsMultiple(value, context);
|
|
2664
|
-
return acc;
|
|
2665
|
-
}, {});
|
|
2666
|
-
};
|
|
2667
|
-
const de_ItemCollectionSizeEstimateRange = (output, context) => {
|
|
2668
|
-
const retVal = (output || [])
|
|
2669
|
-
.filter((e) => e != null)
|
|
2670
|
-
.map((entry) => {
|
|
2671
|
-
return __limitedParseDouble(entry);
|
|
2672
|
-
});
|
|
2673
|
-
return retVal;
|
|
2674
|
-
};
|
|
2675
|
-
const de_ItemList = (output, context) => {
|
|
2676
|
-
const retVal = (output || [])
|
|
2677
|
-
.filter((e) => e != null)
|
|
2678
|
-
.map((entry) => {
|
|
2679
|
-
return de_AttributeMap(entry, context);
|
|
2680
|
-
});
|
|
2681
|
-
return retVal;
|
|
2682
|
-
};
|
|
2683
|
-
const de_ItemResponse = (output, context) => {
|
|
2684
|
-
return take(output, {
|
|
2685
|
-
Item: (_) => de_AttributeMap(_, context),
|
|
2686
|
-
});
|
|
2687
|
-
};
|
|
2688
|
-
const de_ItemResponseList = (output, context) => {
|
|
2689
|
-
const retVal = (output || [])
|
|
2690
|
-
.filter((e) => e != null)
|
|
2691
|
-
.map((entry) => {
|
|
2692
|
-
return de_ItemResponse(entry, context);
|
|
2693
|
-
});
|
|
2694
|
-
return retVal;
|
|
2695
|
-
};
|
|
2696
|
-
const de_Key = (output, context) => {
|
|
2697
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2698
|
-
if (value === null) {
|
|
2699
|
-
return acc;
|
|
2700
|
-
}
|
|
2701
|
-
acc[key] = de_AttributeValue(__expectUnion(value), context);
|
|
2702
|
-
return acc;
|
|
2703
|
-
}, {});
|
|
2704
|
-
};
|
|
2705
|
-
const de_KeyList = (output, context) => {
|
|
2706
|
-
const retVal = (output || [])
|
|
2707
|
-
.filter((e) => e != null)
|
|
2708
|
-
.map((entry) => {
|
|
2709
|
-
return de_Key(entry, context);
|
|
2710
|
-
});
|
|
2711
|
-
return retVal;
|
|
2712
|
-
};
|
|
2713
|
-
const de_KeysAndAttributes = (output, context) => {
|
|
2714
|
-
return take(output, {
|
|
2715
|
-
AttributesToGet: _json,
|
|
2716
|
-
ConsistentRead: __expectBoolean,
|
|
2717
|
-
ExpressionAttributeNames: _json,
|
|
2718
|
-
Keys: (_) => de_KeyList(_, context),
|
|
2719
|
-
ProjectionExpression: __expectString,
|
|
2720
|
-
});
|
|
2721
|
-
};
|
|
2722
|
-
const de_ListAttributeValue = (output, context) => {
|
|
2723
|
-
const retVal = (output || [])
|
|
2724
|
-
.filter((e) => e != null)
|
|
2725
|
-
.map((entry) => {
|
|
2726
|
-
return de_AttributeValue(__expectUnion(entry), context);
|
|
2727
|
-
});
|
|
2728
|
-
return retVal;
|
|
2729
|
-
};
|
|
2730
|
-
const de_ListBackupsOutput = (output, context) => {
|
|
2731
|
-
return take(output, {
|
|
2732
|
-
BackupSummaries: (_) => de_BackupSummaries(_, context),
|
|
2733
|
-
LastEvaluatedBackupArn: __expectString,
|
|
2734
|
-
});
|
|
2735
|
-
};
|
|
2736
|
-
const de_ListImportsOutput = (output, context) => {
|
|
2737
|
-
return take(output, {
|
|
2738
|
-
ImportSummaryList: (_) => de_ImportSummaryList(_, context),
|
|
2739
|
-
NextToken: __expectString,
|
|
2740
|
-
});
|
|
2741
|
-
};
|
|
2742
|
-
const de_MapAttributeValue = (output, context) => {
|
|
2743
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2744
|
-
if (value === null) {
|
|
2745
|
-
return acc;
|
|
2746
|
-
}
|
|
2747
|
-
acc[key] = de_AttributeValue(__expectUnion(value), context);
|
|
2748
|
-
return acc;
|
|
2749
|
-
}, {});
|
|
2750
|
-
};
|
|
2751
|
-
const de_PartiQLBatchResponse = (output, context) => {
|
|
2752
|
-
const retVal = (output || [])
|
|
2753
|
-
.filter((e) => e != null)
|
|
2754
|
-
.map((entry) => {
|
|
2755
|
-
return de_BatchStatementResponse(entry, context);
|
|
2756
|
-
});
|
|
2757
|
-
return retVal;
|
|
2758
|
-
};
|
|
2759
|
-
const de_PointInTimeRecoveryDescription = (output, context) => {
|
|
2760
|
-
return take(output, {
|
|
2761
|
-
EarliestRestorableDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2762
|
-
LatestRestorableDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2763
|
-
PointInTimeRecoveryStatus: __expectString,
|
|
2764
|
-
RecoveryPeriodInDays: __expectInt32,
|
|
2765
|
-
});
|
|
2766
|
-
};
|
|
2767
|
-
const de_ProvisionedThroughputDescription = (output, context) => {
|
|
2768
|
-
return take(output, {
|
|
2769
|
-
LastDecreaseDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2770
|
-
LastIncreaseDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2771
|
-
NumberOfDecreasesToday: __expectLong,
|
|
2772
|
-
ReadCapacityUnits: __expectLong,
|
|
2773
|
-
WriteCapacityUnits: __expectLong,
|
|
2774
|
-
});
|
|
2775
|
-
};
|
|
2776
|
-
const de_PutItemInputAttributeMap = (output, context) => {
|
|
2777
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2778
|
-
if (value === null) {
|
|
2779
|
-
return acc;
|
|
2780
|
-
}
|
|
2781
|
-
acc[key] = de_AttributeValue(__expectUnion(value), context);
|
|
2782
|
-
return acc;
|
|
2783
|
-
}, {});
|
|
2784
|
-
};
|
|
2785
|
-
const de_PutItemOutput = (output, context) => {
|
|
2786
|
-
return take(output, {
|
|
2787
|
-
Attributes: (_) => de_AttributeMap(_, context),
|
|
2788
|
-
ConsumedCapacity: (_) => de_ConsumedCapacity(_, context),
|
|
2789
|
-
ItemCollectionMetrics: (_) => de_ItemCollectionMetrics(_, context),
|
|
2790
|
-
});
|
|
2791
|
-
};
|
|
2792
|
-
const de_PutRequest = (output, context) => {
|
|
2793
|
-
return take(output, {
|
|
2794
|
-
Item: (_) => de_PutItemInputAttributeMap(_, context),
|
|
2795
|
-
});
|
|
2796
|
-
};
|
|
2797
|
-
const de_QueryOutput = (output, context) => {
|
|
2798
|
-
return take(output, {
|
|
2799
|
-
ConsumedCapacity: (_) => de_ConsumedCapacity(_, context),
|
|
2800
|
-
Count: __expectInt32,
|
|
2801
|
-
Items: (_) => de_ItemList(_, context),
|
|
2802
|
-
LastEvaluatedKey: (_) => de_Key(_, context),
|
|
2803
|
-
ScannedCount: __expectInt32,
|
|
2804
|
-
});
|
|
2805
|
-
};
|
|
2806
|
-
const de_ReplicaAutoScalingDescription = (output, context) => {
|
|
2807
|
-
return take(output, {
|
|
2808
|
-
GlobalSecondaryIndexes: (_) => de_ReplicaGlobalSecondaryIndexAutoScalingDescriptionList(_, context),
|
|
2809
|
-
RegionName: __expectString,
|
|
2810
|
-
ReplicaProvisionedReadCapacityAutoScalingSettings: (_) => de_AutoScalingSettingsDescription(_, context),
|
|
2811
|
-
ReplicaProvisionedWriteCapacityAutoScalingSettings: (_) => de_AutoScalingSettingsDescription(_, context),
|
|
2812
|
-
ReplicaStatus: __expectString,
|
|
2813
|
-
});
|
|
2814
|
-
};
|
|
2815
|
-
const de_ReplicaAutoScalingDescriptionList = (output, context) => {
|
|
2816
|
-
const retVal = (output || [])
|
|
2817
|
-
.filter((e) => e != null)
|
|
2818
|
-
.map((entry) => {
|
|
2819
|
-
return de_ReplicaAutoScalingDescription(entry, context);
|
|
2820
|
-
});
|
|
2821
|
-
return retVal;
|
|
2822
|
-
};
|
|
2823
|
-
const de_ReplicaDescription = (output, context) => {
|
|
2824
|
-
return take(output, {
|
|
2825
|
-
GlobalSecondaryIndexes: _json,
|
|
2826
|
-
KMSMasterKeyId: __expectString,
|
|
2827
|
-
OnDemandThroughputOverride: _json,
|
|
2828
|
-
ProvisionedThroughputOverride: _json,
|
|
2829
|
-
RegionName: __expectString,
|
|
2830
|
-
ReplicaInaccessibleDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2831
|
-
ReplicaStatus: __expectString,
|
|
2832
|
-
ReplicaStatusDescription: __expectString,
|
|
2833
|
-
ReplicaStatusPercentProgress: __expectString,
|
|
2834
|
-
ReplicaTableClassSummary: (_) => de_TableClassSummary(_, context),
|
|
2835
|
-
WarmThroughput: _json,
|
|
2836
|
-
});
|
|
2837
|
-
};
|
|
2838
|
-
const de_ReplicaDescriptionList = (output, context) => {
|
|
2839
|
-
const retVal = (output || [])
|
|
2840
|
-
.filter((e) => e != null)
|
|
2841
|
-
.map((entry) => {
|
|
2842
|
-
return de_ReplicaDescription(entry, context);
|
|
2843
|
-
});
|
|
2844
|
-
return retVal;
|
|
2845
|
-
};
|
|
2846
|
-
const de_ReplicaGlobalSecondaryIndexAutoScalingDescription = (output, context) => {
|
|
2847
|
-
return take(output, {
|
|
2848
|
-
IndexName: __expectString,
|
|
2849
|
-
IndexStatus: __expectString,
|
|
2850
|
-
ProvisionedReadCapacityAutoScalingSettings: (_) => de_AutoScalingSettingsDescription(_, context),
|
|
2851
|
-
ProvisionedWriteCapacityAutoScalingSettings: (_) => de_AutoScalingSettingsDescription(_, context),
|
|
2852
|
-
});
|
|
2853
|
-
};
|
|
2854
|
-
const de_ReplicaGlobalSecondaryIndexAutoScalingDescriptionList = (output, context) => {
|
|
2855
|
-
const retVal = (output || [])
|
|
2856
|
-
.filter((e) => e != null)
|
|
2857
|
-
.map((entry) => {
|
|
2858
|
-
return de_ReplicaGlobalSecondaryIndexAutoScalingDescription(entry, context);
|
|
2859
|
-
});
|
|
2860
|
-
return retVal;
|
|
2861
|
-
};
|
|
2862
|
-
const de_ReplicaGlobalSecondaryIndexSettingsDescription = (output, context) => {
|
|
2863
|
-
return take(output, {
|
|
2864
|
-
IndexName: __expectString,
|
|
2865
|
-
IndexStatus: __expectString,
|
|
2866
|
-
ProvisionedReadCapacityAutoScalingSettings: (_) => de_AutoScalingSettingsDescription(_, context),
|
|
2867
|
-
ProvisionedReadCapacityUnits: __expectLong,
|
|
2868
|
-
ProvisionedWriteCapacityAutoScalingSettings: (_) => de_AutoScalingSettingsDescription(_, context),
|
|
2869
|
-
ProvisionedWriteCapacityUnits: __expectLong,
|
|
2870
|
-
});
|
|
2871
|
-
};
|
|
2872
|
-
const de_ReplicaGlobalSecondaryIndexSettingsDescriptionList = (output, context) => {
|
|
2873
|
-
const retVal = (output || [])
|
|
2874
|
-
.filter((e) => e != null)
|
|
2875
|
-
.map((entry) => {
|
|
2876
|
-
return de_ReplicaGlobalSecondaryIndexSettingsDescription(entry, context);
|
|
2877
|
-
});
|
|
2878
|
-
return retVal;
|
|
2879
|
-
};
|
|
2880
|
-
const de_ReplicaSettingsDescription = (output, context) => {
|
|
2881
|
-
return take(output, {
|
|
2882
|
-
RegionName: __expectString,
|
|
2883
|
-
ReplicaBillingModeSummary: (_) => de_BillingModeSummary(_, context),
|
|
2884
|
-
ReplicaGlobalSecondaryIndexSettings: (_) => de_ReplicaGlobalSecondaryIndexSettingsDescriptionList(_, context),
|
|
2885
|
-
ReplicaProvisionedReadCapacityAutoScalingSettings: (_) => de_AutoScalingSettingsDescription(_, context),
|
|
2886
|
-
ReplicaProvisionedReadCapacityUnits: __expectLong,
|
|
2887
|
-
ReplicaProvisionedWriteCapacityAutoScalingSettings: (_) => de_AutoScalingSettingsDescription(_, context),
|
|
2888
|
-
ReplicaProvisionedWriteCapacityUnits: __expectLong,
|
|
2889
|
-
ReplicaStatus: __expectString,
|
|
2890
|
-
ReplicaTableClassSummary: (_) => de_TableClassSummary(_, context),
|
|
2891
|
-
});
|
|
2892
|
-
};
|
|
2893
|
-
const de_ReplicaSettingsDescriptionList = (output, context) => {
|
|
2894
|
-
const retVal = (output || [])
|
|
2895
|
-
.filter((e) => e != null)
|
|
2896
|
-
.map((entry) => {
|
|
2897
|
-
return de_ReplicaSettingsDescription(entry, context);
|
|
2898
|
-
});
|
|
2899
|
-
return retVal;
|
|
2900
|
-
};
|
|
2901
|
-
const de_RestoreSummary = (output, context) => {
|
|
2902
|
-
return take(output, {
|
|
2903
|
-
RestoreDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2904
|
-
RestoreInProgress: __expectBoolean,
|
|
2905
|
-
SourceBackupArn: __expectString,
|
|
2906
|
-
SourceTableArn: __expectString,
|
|
2907
|
-
});
|
|
2908
|
-
};
|
|
2909
|
-
const de_RestoreTableFromBackupOutput = (output, context) => {
|
|
2910
|
-
return take(output, {
|
|
2911
|
-
TableDescription: (_) => de_TableDescription(_, context),
|
|
2912
|
-
});
|
|
2913
|
-
};
|
|
2914
|
-
const de_RestoreTableToPointInTimeOutput = (output, context) => {
|
|
2915
|
-
return take(output, {
|
|
2916
|
-
TableDescription: (_) => de_TableDescription(_, context),
|
|
2917
|
-
});
|
|
2918
|
-
};
|
|
2919
|
-
const de_ScanOutput = (output, context) => {
|
|
2920
|
-
return take(output, {
|
|
2921
|
-
ConsumedCapacity: (_) => de_ConsumedCapacity(_, context),
|
|
2922
|
-
Count: __expectInt32,
|
|
2923
|
-
Items: (_) => de_ItemList(_, context),
|
|
2924
|
-
LastEvaluatedKey: (_) => de_Key(_, context),
|
|
2925
|
-
ScannedCount: __expectInt32,
|
|
2926
|
-
});
|
|
2927
|
-
};
|
|
2928
|
-
const de_SecondaryIndexesCapacityMap = (output, context) => {
|
|
2929
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2930
|
-
if (value === null) {
|
|
2931
|
-
return acc;
|
|
2932
|
-
}
|
|
2933
|
-
acc[key] = de_Capacity(value, context);
|
|
2934
|
-
return acc;
|
|
2935
|
-
}, {});
|
|
2936
|
-
};
|
|
2937
|
-
const de_SourceTableDetails = (output, context) => {
|
|
2938
|
-
return take(output, {
|
|
2939
|
-
BillingMode: __expectString,
|
|
2940
|
-
ItemCount: __expectLong,
|
|
2941
|
-
KeySchema: _json,
|
|
2942
|
-
OnDemandThroughput: _json,
|
|
2943
|
-
ProvisionedThroughput: _json,
|
|
2944
|
-
TableArn: __expectString,
|
|
2945
|
-
TableCreationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2946
|
-
TableId: __expectString,
|
|
2947
|
-
TableName: __expectString,
|
|
2948
|
-
TableSizeBytes: __expectLong,
|
|
2949
|
-
});
|
|
2950
|
-
};
|
|
2951
|
-
const de_SourceTableFeatureDetails = (output, context) => {
|
|
2952
|
-
return take(output, {
|
|
2953
|
-
GlobalSecondaryIndexes: _json,
|
|
2954
|
-
LocalSecondaryIndexes: _json,
|
|
2955
|
-
SSEDescription: (_) => de_SSEDescription(_, context),
|
|
2956
|
-
StreamDescription: _json,
|
|
2957
|
-
TimeToLiveDescription: _json,
|
|
2958
|
-
});
|
|
2959
|
-
};
|
|
2960
|
-
const de_SSEDescription = (output, context) => {
|
|
2961
|
-
return take(output, {
|
|
2962
|
-
InaccessibleEncryptionDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2963
|
-
KMSMasterKeyArn: __expectString,
|
|
2964
|
-
SSEType: __expectString,
|
|
2965
|
-
Status: __expectString,
|
|
2966
|
-
});
|
|
2967
|
-
};
|
|
2968
|
-
const de_TableAutoScalingDescription = (output, context) => {
|
|
2969
|
-
return take(output, {
|
|
2970
|
-
Replicas: (_) => de_ReplicaAutoScalingDescriptionList(_, context),
|
|
2971
|
-
TableName: __expectString,
|
|
2972
|
-
TableStatus: __expectString,
|
|
2973
|
-
});
|
|
2974
|
-
};
|
|
2975
|
-
const de_TableClassSummary = (output, context) => {
|
|
2976
|
-
return take(output, {
|
|
2977
|
-
LastUpdateDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2978
|
-
TableClass: __expectString,
|
|
2979
|
-
});
|
|
2980
|
-
};
|
|
2981
|
-
const de_TableDescription = (output, context) => {
|
|
2982
|
-
return take(output, {
|
|
2983
|
-
ArchivalSummary: (_) => de_ArchivalSummary(_, context),
|
|
2984
|
-
AttributeDefinitions: _json,
|
|
2985
|
-
BillingModeSummary: (_) => de_BillingModeSummary(_, context),
|
|
2986
|
-
CreationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2987
|
-
DeletionProtectionEnabled: __expectBoolean,
|
|
2988
|
-
GlobalSecondaryIndexes: (_) => de_GlobalSecondaryIndexDescriptionList(_, context),
|
|
2989
|
-
GlobalTableVersion: __expectString,
|
|
2990
|
-
GlobalTableWitnesses: _json,
|
|
2991
|
-
ItemCount: __expectLong,
|
|
2992
|
-
KeySchema: _json,
|
|
2993
|
-
LatestStreamArn: __expectString,
|
|
2994
|
-
LatestStreamLabel: __expectString,
|
|
2995
|
-
LocalSecondaryIndexes: _json,
|
|
2996
|
-
MultiRegionConsistency: __expectString,
|
|
2997
|
-
OnDemandThroughput: _json,
|
|
2998
|
-
ProvisionedThroughput: (_) => de_ProvisionedThroughputDescription(_, context),
|
|
2999
|
-
Replicas: (_) => de_ReplicaDescriptionList(_, context),
|
|
3000
|
-
RestoreSummary: (_) => de_RestoreSummary(_, context),
|
|
3001
|
-
SSEDescription: (_) => de_SSEDescription(_, context),
|
|
3002
|
-
StreamSpecification: _json,
|
|
3003
|
-
TableArn: __expectString,
|
|
3004
|
-
TableClassSummary: (_) => de_TableClassSummary(_, context),
|
|
3005
|
-
TableId: __expectString,
|
|
3006
|
-
TableName: __expectString,
|
|
3007
|
-
TableSizeBytes: __expectLong,
|
|
3008
|
-
TableStatus: __expectString,
|
|
3009
|
-
WarmThroughput: _json,
|
|
3010
|
-
});
|
|
3011
|
-
};
|
|
3012
|
-
const de_TransactGetItemsOutput = (output, context) => {
|
|
3013
|
-
return take(output, {
|
|
3014
|
-
ConsumedCapacity: (_) => de_ConsumedCapacityMultiple(_, context),
|
|
3015
|
-
Responses: (_) => de_ItemResponseList(_, context),
|
|
3016
|
-
});
|
|
3017
|
-
};
|
|
3018
|
-
const de_TransactionCanceledException = (output, context) => {
|
|
3019
|
-
return take(output, {
|
|
3020
|
-
CancellationReasons: (_) => de_CancellationReasonList(_, context),
|
|
3021
|
-
Message: __expectString,
|
|
3022
|
-
});
|
|
3023
|
-
};
|
|
3024
|
-
const de_TransactWriteItemsOutput = (output, context) => {
|
|
3025
|
-
return take(output, {
|
|
3026
|
-
ConsumedCapacity: (_) => de_ConsumedCapacityMultiple(_, context),
|
|
3027
|
-
ItemCollectionMetrics: (_) => de_ItemCollectionMetricsPerTable(_, context),
|
|
3028
|
-
});
|
|
3029
|
-
};
|
|
3030
|
-
const de_UpdateContinuousBackupsOutput = (output, context) => {
|
|
3031
|
-
return take(output, {
|
|
3032
|
-
ContinuousBackupsDescription: (_) => de_ContinuousBackupsDescription(_, context),
|
|
3033
|
-
});
|
|
3034
|
-
};
|
|
3035
|
-
const de_UpdateGlobalTableOutput = (output, context) => {
|
|
3036
|
-
return take(output, {
|
|
3037
|
-
GlobalTableDescription: (_) => de_GlobalTableDescription(_, context),
|
|
3038
|
-
});
|
|
3039
|
-
};
|
|
3040
|
-
const de_UpdateGlobalTableSettingsOutput = (output, context) => {
|
|
3041
|
-
return take(output, {
|
|
3042
|
-
GlobalTableName: __expectString,
|
|
3043
|
-
ReplicaSettings: (_) => de_ReplicaSettingsDescriptionList(_, context),
|
|
3044
|
-
});
|
|
3045
|
-
};
|
|
3046
|
-
const de_UpdateItemOutput = (output, context) => {
|
|
3047
|
-
return take(output, {
|
|
3048
|
-
Attributes: (_) => de_AttributeMap(_, context),
|
|
3049
|
-
ConsumedCapacity: (_) => de_ConsumedCapacity(_, context),
|
|
3050
|
-
ItemCollectionMetrics: (_) => de_ItemCollectionMetrics(_, context),
|
|
3051
|
-
});
|
|
3052
|
-
};
|
|
3053
|
-
const de_UpdateTableOutput = (output, context) => {
|
|
3054
|
-
return take(output, {
|
|
3055
|
-
TableDescription: (_) => de_TableDescription(_, context),
|
|
3056
|
-
});
|
|
3057
|
-
};
|
|
3058
|
-
const de_UpdateTableReplicaAutoScalingOutput = (output, context) => {
|
|
3059
|
-
return take(output, {
|
|
3060
|
-
TableAutoScalingDescription: (_) => de_TableAutoScalingDescription(_, context),
|
|
3061
|
-
});
|
|
3062
|
-
};
|
|
3063
|
-
const de_WriteRequest = (output, context) => {
|
|
3064
|
-
return take(output, {
|
|
3065
|
-
DeleteRequest: (_) => de_DeleteRequest(_, context),
|
|
3066
|
-
PutRequest: (_) => de_PutRequest(_, context),
|
|
3067
|
-
});
|
|
3068
|
-
};
|
|
3069
|
-
const de_WriteRequests = (output, context) => {
|
|
3070
|
-
const retVal = (output || [])
|
|
3071
|
-
.filter((e) => e != null)
|
|
3072
|
-
.map((entry) => {
|
|
3073
|
-
return de_WriteRequest(entry, context);
|
|
3074
|
-
});
|
|
3075
|
-
return retVal;
|
|
3076
|
-
};
|
|
3077
|
-
const deserializeMetadata = (output) => ({
|
|
3078
|
-
httpStatusCode: output.statusCode,
|
|
3079
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
3080
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
3081
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
3082
|
-
});
|
|
3083
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
3084
|
-
const throwDefaultError = withBaseException(__BaseException);
|
|
3085
|
-
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
3086
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3087
|
-
const contents = {
|
|
3088
|
-
protocol,
|
|
3089
|
-
hostname,
|
|
3090
|
-
port,
|
|
3091
|
-
method: "POST",
|
|
3092
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
3093
|
-
headers,
|
|
3094
|
-
};
|
|
3095
|
-
if (resolvedHostname !== undefined) {
|
|
3096
|
-
contents.hostname = resolvedHostname;
|
|
3097
|
-
}
|
|
3098
|
-
if (body !== undefined) {
|
|
3099
|
-
contents.body = body;
|
|
3100
|
-
}
|
|
3101
|
-
return new __HttpRequest(contents);
|
|
3102
|
-
};
|
|
3103
|
-
function sharedHeaders(operation) {
|
|
3104
|
-
return {
|
|
3105
|
-
"content-type": "application/x-amz-json-1.0",
|
|
3106
|
-
"x-amz-target": `DynamoDB_20120810.${operation}`,
|
|
3107
|
-
};
|
|
3108
|
-
}
|