@aws-sdk/client-keyspaces 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 +663 -835
- package/dist-cjs/runtimeConfig.shared.js +7 -0
- package/dist-es/KeyspacesClient.js +2 -0
- package/dist-es/commands/CreateKeyspaceCommand.js +3 -9
- package/dist-es/commands/CreateTableCommand.js +3 -9
- package/dist-es/commands/CreateTypeCommand.js +3 -9
- package/dist-es/commands/DeleteKeyspaceCommand.js +3 -9
- package/dist-es/commands/DeleteTableCommand.js +3 -9
- package/dist-es/commands/DeleteTypeCommand.js +3 -9
- package/dist-es/commands/GetKeyspaceCommand.js +3 -9
- package/dist-es/commands/GetTableAutoScalingSettingsCommand.js +3 -9
- package/dist-es/commands/GetTableCommand.js +3 -9
- package/dist-es/commands/GetTypeCommand.js +3 -9
- package/dist-es/commands/ListKeyspacesCommand.js +3 -9
- package/dist-es/commands/ListTablesCommand.js +3 -9
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
- package/dist-es/commands/ListTypesCommand.js +3 -9
- package/dist-es/commands/RestoreTableCommand.js +3 -9
- package/dist-es/commands/TagResourceCommand.js +3 -9
- package/dist-es/commands/UntagResourceCommand.js +3 -9
- package/dist-es/commands/UpdateKeyspaceCommand.js +3 -9
- package/dist-es/commands/UpdateTableCommand.js +3 -9
- package/dist-es/runtimeConfig.shared.js +7 -0
- package/dist-es/schemas/schemas_0.js +608 -0
- package/dist-types/KeyspacesClient.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 +2 -5
- package/dist-types/schemas/schemas_0.d.ts +108 -0
- package/dist-types/ts3.4/KeyspacesClient.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 +113 -0
- package/package.json +5 -5
- package/dist-es/protocols/Aws_json1_0.js +0 -688
- package/dist-types/protocols/Aws_json1_0.d.ts +0 -173
- package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +0 -233
|
@@ -1,688 +0,0 @@
|
|
|
1
|
-
import { 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 { KeyspacesServiceException as __BaseException } from "../models/KeyspacesServiceException";
|
|
5
|
-
import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ValidationException, } from "../models/models_0";
|
|
6
|
-
export const se_CreateKeyspaceCommand = async (input, context) => {
|
|
7
|
-
const headers = sharedHeaders("CreateKeyspace");
|
|
8
|
-
let body;
|
|
9
|
-
body = JSON.stringify(_json(input));
|
|
10
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
11
|
-
};
|
|
12
|
-
export const se_CreateTableCommand = async (input, context) => {
|
|
13
|
-
const headers = sharedHeaders("CreateTable");
|
|
14
|
-
let body;
|
|
15
|
-
body = JSON.stringify(se_CreateTableRequest(input, context));
|
|
16
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
17
|
-
};
|
|
18
|
-
export const se_CreateTypeCommand = async (input, context) => {
|
|
19
|
-
const headers = sharedHeaders("CreateType");
|
|
20
|
-
let body;
|
|
21
|
-
body = JSON.stringify(_json(input));
|
|
22
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
23
|
-
};
|
|
24
|
-
export const se_DeleteKeyspaceCommand = async (input, context) => {
|
|
25
|
-
const headers = sharedHeaders("DeleteKeyspace");
|
|
26
|
-
let body;
|
|
27
|
-
body = JSON.stringify(_json(input));
|
|
28
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
29
|
-
};
|
|
30
|
-
export const se_DeleteTableCommand = async (input, context) => {
|
|
31
|
-
const headers = sharedHeaders("DeleteTable");
|
|
32
|
-
let body;
|
|
33
|
-
body = JSON.stringify(_json(input));
|
|
34
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
35
|
-
};
|
|
36
|
-
export const se_DeleteTypeCommand = async (input, context) => {
|
|
37
|
-
const headers = sharedHeaders("DeleteType");
|
|
38
|
-
let body;
|
|
39
|
-
body = JSON.stringify(_json(input));
|
|
40
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
41
|
-
};
|
|
42
|
-
export const se_GetKeyspaceCommand = async (input, context) => {
|
|
43
|
-
const headers = sharedHeaders("GetKeyspace");
|
|
44
|
-
let body;
|
|
45
|
-
body = JSON.stringify(_json(input));
|
|
46
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
47
|
-
};
|
|
48
|
-
export const se_GetTableCommand = async (input, context) => {
|
|
49
|
-
const headers = sharedHeaders("GetTable");
|
|
50
|
-
let body;
|
|
51
|
-
body = JSON.stringify(_json(input));
|
|
52
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
53
|
-
};
|
|
54
|
-
export const se_GetTableAutoScalingSettingsCommand = async (input, context) => {
|
|
55
|
-
const headers = sharedHeaders("GetTableAutoScalingSettings");
|
|
56
|
-
let body;
|
|
57
|
-
body = JSON.stringify(_json(input));
|
|
58
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
59
|
-
};
|
|
60
|
-
export const se_GetTypeCommand = async (input, context) => {
|
|
61
|
-
const headers = sharedHeaders("GetType");
|
|
62
|
-
let body;
|
|
63
|
-
body = JSON.stringify(_json(input));
|
|
64
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
65
|
-
};
|
|
66
|
-
export const se_ListKeyspacesCommand = async (input, context) => {
|
|
67
|
-
const headers = sharedHeaders("ListKeyspaces");
|
|
68
|
-
let body;
|
|
69
|
-
body = JSON.stringify(_json(input));
|
|
70
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
71
|
-
};
|
|
72
|
-
export const se_ListTablesCommand = async (input, context) => {
|
|
73
|
-
const headers = sharedHeaders("ListTables");
|
|
74
|
-
let body;
|
|
75
|
-
body = JSON.stringify(_json(input));
|
|
76
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
77
|
-
};
|
|
78
|
-
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
79
|
-
const headers = sharedHeaders("ListTagsForResource");
|
|
80
|
-
let body;
|
|
81
|
-
body = JSON.stringify(_json(input));
|
|
82
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
83
|
-
};
|
|
84
|
-
export const se_ListTypesCommand = async (input, context) => {
|
|
85
|
-
const headers = sharedHeaders("ListTypes");
|
|
86
|
-
let body;
|
|
87
|
-
body = JSON.stringify(_json(input));
|
|
88
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
89
|
-
};
|
|
90
|
-
export const se_RestoreTableCommand = async (input, context) => {
|
|
91
|
-
const headers = sharedHeaders("RestoreTable");
|
|
92
|
-
let body;
|
|
93
|
-
body = JSON.stringify(se_RestoreTableRequest(input, context));
|
|
94
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
95
|
-
};
|
|
96
|
-
export const se_TagResourceCommand = async (input, context) => {
|
|
97
|
-
const headers = sharedHeaders("TagResource");
|
|
98
|
-
let body;
|
|
99
|
-
body = JSON.stringify(_json(input));
|
|
100
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
101
|
-
};
|
|
102
|
-
export const se_UntagResourceCommand = async (input, context) => {
|
|
103
|
-
const headers = sharedHeaders("UntagResource");
|
|
104
|
-
let body;
|
|
105
|
-
body = JSON.stringify(_json(input));
|
|
106
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
107
|
-
};
|
|
108
|
-
export const se_UpdateKeyspaceCommand = async (input, context) => {
|
|
109
|
-
const headers = sharedHeaders("UpdateKeyspace");
|
|
110
|
-
let body;
|
|
111
|
-
body = JSON.stringify(_json(input));
|
|
112
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
113
|
-
};
|
|
114
|
-
export const se_UpdateTableCommand = async (input, context) => {
|
|
115
|
-
const headers = sharedHeaders("UpdateTable");
|
|
116
|
-
let body;
|
|
117
|
-
body = JSON.stringify(se_UpdateTableRequest(input, context));
|
|
118
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
119
|
-
};
|
|
120
|
-
export const de_CreateKeyspaceCommand = async (output, context) => {
|
|
121
|
-
if (output.statusCode >= 300) {
|
|
122
|
-
return de_CommandError(output, context);
|
|
123
|
-
}
|
|
124
|
-
const data = await parseBody(output.body, context);
|
|
125
|
-
let contents = {};
|
|
126
|
-
contents = _json(data);
|
|
127
|
-
const response = {
|
|
128
|
-
$metadata: deserializeMetadata(output),
|
|
129
|
-
...contents,
|
|
130
|
-
};
|
|
131
|
-
return response;
|
|
132
|
-
};
|
|
133
|
-
export const de_CreateTableCommand = async (output, context) => {
|
|
134
|
-
if (output.statusCode >= 300) {
|
|
135
|
-
return de_CommandError(output, context);
|
|
136
|
-
}
|
|
137
|
-
const data = await parseBody(output.body, context);
|
|
138
|
-
let contents = {};
|
|
139
|
-
contents = _json(data);
|
|
140
|
-
const response = {
|
|
141
|
-
$metadata: deserializeMetadata(output),
|
|
142
|
-
...contents,
|
|
143
|
-
};
|
|
144
|
-
return response;
|
|
145
|
-
};
|
|
146
|
-
export const de_CreateTypeCommand = async (output, context) => {
|
|
147
|
-
if (output.statusCode >= 300) {
|
|
148
|
-
return de_CommandError(output, context);
|
|
149
|
-
}
|
|
150
|
-
const data = await parseBody(output.body, context);
|
|
151
|
-
let contents = {};
|
|
152
|
-
contents = _json(data);
|
|
153
|
-
const response = {
|
|
154
|
-
$metadata: deserializeMetadata(output),
|
|
155
|
-
...contents,
|
|
156
|
-
};
|
|
157
|
-
return response;
|
|
158
|
-
};
|
|
159
|
-
export const de_DeleteKeyspaceCommand = async (output, context) => {
|
|
160
|
-
if (output.statusCode >= 300) {
|
|
161
|
-
return de_CommandError(output, context);
|
|
162
|
-
}
|
|
163
|
-
const data = await parseBody(output.body, context);
|
|
164
|
-
let contents = {};
|
|
165
|
-
contents = _json(data);
|
|
166
|
-
const response = {
|
|
167
|
-
$metadata: deserializeMetadata(output),
|
|
168
|
-
...contents,
|
|
169
|
-
};
|
|
170
|
-
return response;
|
|
171
|
-
};
|
|
172
|
-
export const de_DeleteTableCommand = async (output, context) => {
|
|
173
|
-
if (output.statusCode >= 300) {
|
|
174
|
-
return de_CommandError(output, context);
|
|
175
|
-
}
|
|
176
|
-
const data = await parseBody(output.body, context);
|
|
177
|
-
let contents = {};
|
|
178
|
-
contents = _json(data);
|
|
179
|
-
const response = {
|
|
180
|
-
$metadata: deserializeMetadata(output),
|
|
181
|
-
...contents,
|
|
182
|
-
};
|
|
183
|
-
return response;
|
|
184
|
-
};
|
|
185
|
-
export const de_DeleteTypeCommand = async (output, context) => {
|
|
186
|
-
if (output.statusCode >= 300) {
|
|
187
|
-
return de_CommandError(output, context);
|
|
188
|
-
}
|
|
189
|
-
const data = await parseBody(output.body, context);
|
|
190
|
-
let contents = {};
|
|
191
|
-
contents = _json(data);
|
|
192
|
-
const response = {
|
|
193
|
-
$metadata: deserializeMetadata(output),
|
|
194
|
-
...contents,
|
|
195
|
-
};
|
|
196
|
-
return response;
|
|
197
|
-
};
|
|
198
|
-
export const de_GetKeyspaceCommand = async (output, context) => {
|
|
199
|
-
if (output.statusCode >= 300) {
|
|
200
|
-
return de_CommandError(output, context);
|
|
201
|
-
}
|
|
202
|
-
const data = await parseBody(output.body, context);
|
|
203
|
-
let contents = {};
|
|
204
|
-
contents = _json(data);
|
|
205
|
-
const response = {
|
|
206
|
-
$metadata: deserializeMetadata(output),
|
|
207
|
-
...contents,
|
|
208
|
-
};
|
|
209
|
-
return response;
|
|
210
|
-
};
|
|
211
|
-
export const de_GetTableCommand = async (output, context) => {
|
|
212
|
-
if (output.statusCode >= 300) {
|
|
213
|
-
return de_CommandError(output, context);
|
|
214
|
-
}
|
|
215
|
-
const data = await parseBody(output.body, context);
|
|
216
|
-
let contents = {};
|
|
217
|
-
contents = de_GetTableResponse(data, context);
|
|
218
|
-
const response = {
|
|
219
|
-
$metadata: deserializeMetadata(output),
|
|
220
|
-
...contents,
|
|
221
|
-
};
|
|
222
|
-
return response;
|
|
223
|
-
};
|
|
224
|
-
export const de_GetTableAutoScalingSettingsCommand = async (output, context) => {
|
|
225
|
-
if (output.statusCode >= 300) {
|
|
226
|
-
return de_CommandError(output, context);
|
|
227
|
-
}
|
|
228
|
-
const data = await parseBody(output.body, context);
|
|
229
|
-
let contents = {};
|
|
230
|
-
contents = de_GetTableAutoScalingSettingsResponse(data, context);
|
|
231
|
-
const response = {
|
|
232
|
-
$metadata: deserializeMetadata(output),
|
|
233
|
-
...contents,
|
|
234
|
-
};
|
|
235
|
-
return response;
|
|
236
|
-
};
|
|
237
|
-
export const de_GetTypeCommand = async (output, context) => {
|
|
238
|
-
if (output.statusCode >= 300) {
|
|
239
|
-
return de_CommandError(output, context);
|
|
240
|
-
}
|
|
241
|
-
const data = await parseBody(output.body, context);
|
|
242
|
-
let contents = {};
|
|
243
|
-
contents = de_GetTypeResponse(data, context);
|
|
244
|
-
const response = {
|
|
245
|
-
$metadata: deserializeMetadata(output),
|
|
246
|
-
...contents,
|
|
247
|
-
};
|
|
248
|
-
return response;
|
|
249
|
-
};
|
|
250
|
-
export const de_ListKeyspacesCommand = async (output, context) => {
|
|
251
|
-
if (output.statusCode >= 300) {
|
|
252
|
-
return de_CommandError(output, context);
|
|
253
|
-
}
|
|
254
|
-
const data = await parseBody(output.body, context);
|
|
255
|
-
let contents = {};
|
|
256
|
-
contents = _json(data);
|
|
257
|
-
const response = {
|
|
258
|
-
$metadata: deserializeMetadata(output),
|
|
259
|
-
...contents,
|
|
260
|
-
};
|
|
261
|
-
return response;
|
|
262
|
-
};
|
|
263
|
-
export const de_ListTablesCommand = async (output, context) => {
|
|
264
|
-
if (output.statusCode >= 300) {
|
|
265
|
-
return de_CommandError(output, context);
|
|
266
|
-
}
|
|
267
|
-
const data = await parseBody(output.body, context);
|
|
268
|
-
let contents = {};
|
|
269
|
-
contents = _json(data);
|
|
270
|
-
const response = {
|
|
271
|
-
$metadata: deserializeMetadata(output),
|
|
272
|
-
...contents,
|
|
273
|
-
};
|
|
274
|
-
return response;
|
|
275
|
-
};
|
|
276
|
-
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
277
|
-
if (output.statusCode >= 300) {
|
|
278
|
-
return de_CommandError(output, context);
|
|
279
|
-
}
|
|
280
|
-
const data = await parseBody(output.body, context);
|
|
281
|
-
let contents = {};
|
|
282
|
-
contents = _json(data);
|
|
283
|
-
const response = {
|
|
284
|
-
$metadata: deserializeMetadata(output),
|
|
285
|
-
...contents,
|
|
286
|
-
};
|
|
287
|
-
return response;
|
|
288
|
-
};
|
|
289
|
-
export const de_ListTypesCommand = async (output, context) => {
|
|
290
|
-
if (output.statusCode >= 300) {
|
|
291
|
-
return de_CommandError(output, context);
|
|
292
|
-
}
|
|
293
|
-
const data = await parseBody(output.body, context);
|
|
294
|
-
let contents = {};
|
|
295
|
-
contents = _json(data);
|
|
296
|
-
const response = {
|
|
297
|
-
$metadata: deserializeMetadata(output),
|
|
298
|
-
...contents,
|
|
299
|
-
};
|
|
300
|
-
return response;
|
|
301
|
-
};
|
|
302
|
-
export const de_RestoreTableCommand = async (output, context) => {
|
|
303
|
-
if (output.statusCode >= 300) {
|
|
304
|
-
return de_CommandError(output, context);
|
|
305
|
-
}
|
|
306
|
-
const data = await parseBody(output.body, context);
|
|
307
|
-
let contents = {};
|
|
308
|
-
contents = _json(data);
|
|
309
|
-
const response = {
|
|
310
|
-
$metadata: deserializeMetadata(output),
|
|
311
|
-
...contents,
|
|
312
|
-
};
|
|
313
|
-
return response;
|
|
314
|
-
};
|
|
315
|
-
export const de_TagResourceCommand = async (output, context) => {
|
|
316
|
-
if (output.statusCode >= 300) {
|
|
317
|
-
return de_CommandError(output, context);
|
|
318
|
-
}
|
|
319
|
-
const data = await parseBody(output.body, context);
|
|
320
|
-
let contents = {};
|
|
321
|
-
contents = _json(data);
|
|
322
|
-
const response = {
|
|
323
|
-
$metadata: deserializeMetadata(output),
|
|
324
|
-
...contents,
|
|
325
|
-
};
|
|
326
|
-
return response;
|
|
327
|
-
};
|
|
328
|
-
export const de_UntagResourceCommand = async (output, context) => {
|
|
329
|
-
if (output.statusCode >= 300) {
|
|
330
|
-
return de_CommandError(output, context);
|
|
331
|
-
}
|
|
332
|
-
const data = await parseBody(output.body, context);
|
|
333
|
-
let contents = {};
|
|
334
|
-
contents = _json(data);
|
|
335
|
-
const response = {
|
|
336
|
-
$metadata: deserializeMetadata(output),
|
|
337
|
-
...contents,
|
|
338
|
-
};
|
|
339
|
-
return response;
|
|
340
|
-
};
|
|
341
|
-
export const de_UpdateKeyspaceCommand = async (output, context) => {
|
|
342
|
-
if (output.statusCode >= 300) {
|
|
343
|
-
return de_CommandError(output, context);
|
|
344
|
-
}
|
|
345
|
-
const data = await parseBody(output.body, context);
|
|
346
|
-
let contents = {};
|
|
347
|
-
contents = _json(data);
|
|
348
|
-
const response = {
|
|
349
|
-
$metadata: deserializeMetadata(output),
|
|
350
|
-
...contents,
|
|
351
|
-
};
|
|
352
|
-
return response;
|
|
353
|
-
};
|
|
354
|
-
export const de_UpdateTableCommand = async (output, context) => {
|
|
355
|
-
if (output.statusCode >= 300) {
|
|
356
|
-
return de_CommandError(output, context);
|
|
357
|
-
}
|
|
358
|
-
const data = await parseBody(output.body, context);
|
|
359
|
-
let contents = {};
|
|
360
|
-
contents = _json(data);
|
|
361
|
-
const response = {
|
|
362
|
-
$metadata: deserializeMetadata(output),
|
|
363
|
-
...contents,
|
|
364
|
-
};
|
|
365
|
-
return response;
|
|
366
|
-
};
|
|
367
|
-
const de_CommandError = async (output, context) => {
|
|
368
|
-
const parsedOutput = {
|
|
369
|
-
...output,
|
|
370
|
-
body: await parseErrorBody(output.body, context),
|
|
371
|
-
};
|
|
372
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
373
|
-
switch (errorCode) {
|
|
374
|
-
case "AccessDeniedException":
|
|
375
|
-
case "com.amazonaws.keyspaces#AccessDeniedException":
|
|
376
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
377
|
-
case "ConflictException":
|
|
378
|
-
case "com.amazonaws.keyspaces#ConflictException":
|
|
379
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
380
|
-
case "InternalServerException":
|
|
381
|
-
case "com.amazonaws.keyspaces#InternalServerException":
|
|
382
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
383
|
-
case "ServiceQuotaExceededException":
|
|
384
|
-
case "com.amazonaws.keyspaces#ServiceQuotaExceededException":
|
|
385
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
386
|
-
case "ValidationException":
|
|
387
|
-
case "com.amazonaws.keyspaces#ValidationException":
|
|
388
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
389
|
-
case "ResourceNotFoundException":
|
|
390
|
-
case "com.amazonaws.keyspaces#ResourceNotFoundException":
|
|
391
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
392
|
-
default:
|
|
393
|
-
const parsedBody = parsedOutput.body;
|
|
394
|
-
return throwDefaultError({
|
|
395
|
-
output,
|
|
396
|
-
parsedBody,
|
|
397
|
-
errorCode,
|
|
398
|
-
});
|
|
399
|
-
}
|
|
400
|
-
};
|
|
401
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
402
|
-
const body = parsedOutput.body;
|
|
403
|
-
const deserialized = _json(body);
|
|
404
|
-
const exception = new AccessDeniedException({
|
|
405
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
406
|
-
...deserialized,
|
|
407
|
-
});
|
|
408
|
-
return __decorateServiceException(exception, body);
|
|
409
|
-
};
|
|
410
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
411
|
-
const body = parsedOutput.body;
|
|
412
|
-
const deserialized = _json(body);
|
|
413
|
-
const exception = new ConflictException({
|
|
414
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
415
|
-
...deserialized,
|
|
416
|
-
});
|
|
417
|
-
return __decorateServiceException(exception, body);
|
|
418
|
-
};
|
|
419
|
-
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
420
|
-
const body = parsedOutput.body;
|
|
421
|
-
const deserialized = _json(body);
|
|
422
|
-
const exception = new InternalServerException({
|
|
423
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
424
|
-
...deserialized,
|
|
425
|
-
});
|
|
426
|
-
return __decorateServiceException(exception, body);
|
|
427
|
-
};
|
|
428
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
429
|
-
const body = parsedOutput.body;
|
|
430
|
-
const deserialized = _json(body);
|
|
431
|
-
const exception = new ResourceNotFoundException({
|
|
432
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
433
|
-
...deserialized,
|
|
434
|
-
});
|
|
435
|
-
return __decorateServiceException(exception, body);
|
|
436
|
-
};
|
|
437
|
-
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
438
|
-
const body = parsedOutput.body;
|
|
439
|
-
const deserialized = _json(body);
|
|
440
|
-
const exception = new ServiceQuotaExceededException({
|
|
441
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
442
|
-
...deserialized,
|
|
443
|
-
});
|
|
444
|
-
return __decorateServiceException(exception, body);
|
|
445
|
-
};
|
|
446
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
447
|
-
const body = parsedOutput.body;
|
|
448
|
-
const deserialized = _json(body);
|
|
449
|
-
const exception = new ValidationException({
|
|
450
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
451
|
-
...deserialized,
|
|
452
|
-
});
|
|
453
|
-
return __decorateServiceException(exception, body);
|
|
454
|
-
};
|
|
455
|
-
const se_AutoScalingPolicy = (input, context) => {
|
|
456
|
-
return take(input, {
|
|
457
|
-
targetTrackingScalingPolicyConfiguration: (_) => se_TargetTrackingScalingPolicyConfiguration(_, context),
|
|
458
|
-
});
|
|
459
|
-
};
|
|
460
|
-
const se_AutoScalingSettings = (input, context) => {
|
|
461
|
-
return take(input, {
|
|
462
|
-
autoScalingDisabled: [],
|
|
463
|
-
maximumUnits: [],
|
|
464
|
-
minimumUnits: [],
|
|
465
|
-
scalingPolicy: (_) => se_AutoScalingPolicy(_, context),
|
|
466
|
-
});
|
|
467
|
-
};
|
|
468
|
-
const se_AutoScalingSpecification = (input, context) => {
|
|
469
|
-
return take(input, {
|
|
470
|
-
readCapacityAutoScaling: (_) => se_AutoScalingSettings(_, context),
|
|
471
|
-
writeCapacityAutoScaling: (_) => se_AutoScalingSettings(_, context),
|
|
472
|
-
});
|
|
473
|
-
};
|
|
474
|
-
const se_CreateTableRequest = (input, context) => {
|
|
475
|
-
return take(input, {
|
|
476
|
-
autoScalingSpecification: (_) => se_AutoScalingSpecification(_, context),
|
|
477
|
-
capacitySpecification: _json,
|
|
478
|
-
cdcSpecification: _json,
|
|
479
|
-
clientSideTimestamps: _json,
|
|
480
|
-
comment: _json,
|
|
481
|
-
defaultTimeToLive: [],
|
|
482
|
-
encryptionSpecification: _json,
|
|
483
|
-
keyspaceName: [],
|
|
484
|
-
pointInTimeRecovery: _json,
|
|
485
|
-
replicaSpecifications: (_) => se_ReplicaSpecificationList(_, context),
|
|
486
|
-
schemaDefinition: _json,
|
|
487
|
-
tableName: [],
|
|
488
|
-
tags: _json,
|
|
489
|
-
ttl: _json,
|
|
490
|
-
});
|
|
491
|
-
};
|
|
492
|
-
const se_ReplicaSpecification = (input, context) => {
|
|
493
|
-
return take(input, {
|
|
494
|
-
readCapacityAutoScaling: (_) => se_AutoScalingSettings(_, context),
|
|
495
|
-
readCapacityUnits: [],
|
|
496
|
-
region: [],
|
|
497
|
-
});
|
|
498
|
-
};
|
|
499
|
-
const se_ReplicaSpecificationList = (input, context) => {
|
|
500
|
-
return input
|
|
501
|
-
.filter((e) => e != null)
|
|
502
|
-
.map((entry) => {
|
|
503
|
-
return se_ReplicaSpecification(entry, context);
|
|
504
|
-
});
|
|
505
|
-
};
|
|
506
|
-
const se_RestoreTableRequest = (input, context) => {
|
|
507
|
-
return take(input, {
|
|
508
|
-
autoScalingSpecification: (_) => se_AutoScalingSpecification(_, context),
|
|
509
|
-
capacitySpecificationOverride: _json,
|
|
510
|
-
encryptionSpecificationOverride: _json,
|
|
511
|
-
pointInTimeRecoveryOverride: _json,
|
|
512
|
-
replicaSpecifications: (_) => se_ReplicaSpecificationList(_, context),
|
|
513
|
-
restoreTimestamp: (_) => _.getTime() / 1_000,
|
|
514
|
-
sourceKeyspaceName: [],
|
|
515
|
-
sourceTableName: [],
|
|
516
|
-
tagsOverride: _json,
|
|
517
|
-
targetKeyspaceName: [],
|
|
518
|
-
targetTableName: [],
|
|
519
|
-
});
|
|
520
|
-
};
|
|
521
|
-
const se_TargetTrackingScalingPolicyConfiguration = (input, context) => {
|
|
522
|
-
return take(input, {
|
|
523
|
-
disableScaleIn: [],
|
|
524
|
-
scaleInCooldown: [],
|
|
525
|
-
scaleOutCooldown: [],
|
|
526
|
-
targetValue: __serializeFloat,
|
|
527
|
-
});
|
|
528
|
-
};
|
|
529
|
-
const se_UpdateTableRequest = (input, context) => {
|
|
530
|
-
return take(input, {
|
|
531
|
-
addColumns: _json,
|
|
532
|
-
autoScalingSpecification: (_) => se_AutoScalingSpecification(_, context),
|
|
533
|
-
capacitySpecification: _json,
|
|
534
|
-
cdcSpecification: _json,
|
|
535
|
-
clientSideTimestamps: _json,
|
|
536
|
-
defaultTimeToLive: [],
|
|
537
|
-
encryptionSpecification: _json,
|
|
538
|
-
keyspaceName: [],
|
|
539
|
-
pointInTimeRecovery: _json,
|
|
540
|
-
replicaSpecifications: (_) => se_ReplicaSpecificationList(_, context),
|
|
541
|
-
tableName: [],
|
|
542
|
-
ttl: _json,
|
|
543
|
-
});
|
|
544
|
-
};
|
|
545
|
-
const de_AutoScalingPolicy = (output, context) => {
|
|
546
|
-
return take(output, {
|
|
547
|
-
targetTrackingScalingPolicyConfiguration: (_) => de_TargetTrackingScalingPolicyConfiguration(_, context),
|
|
548
|
-
});
|
|
549
|
-
};
|
|
550
|
-
const de_AutoScalingSettings = (output, context) => {
|
|
551
|
-
return take(output, {
|
|
552
|
-
autoScalingDisabled: __expectBoolean,
|
|
553
|
-
maximumUnits: __expectLong,
|
|
554
|
-
minimumUnits: __expectLong,
|
|
555
|
-
scalingPolicy: (_) => de_AutoScalingPolicy(_, context),
|
|
556
|
-
});
|
|
557
|
-
};
|
|
558
|
-
const de_AutoScalingSpecification = (output, context) => {
|
|
559
|
-
return take(output, {
|
|
560
|
-
readCapacityAutoScaling: (_) => de_AutoScalingSettings(_, context),
|
|
561
|
-
writeCapacityAutoScaling: (_) => de_AutoScalingSettings(_, context),
|
|
562
|
-
});
|
|
563
|
-
};
|
|
564
|
-
const de_CapacitySpecificationSummary = (output, context) => {
|
|
565
|
-
return take(output, {
|
|
566
|
-
lastUpdateToPayPerRequestTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
567
|
-
readCapacityUnits: __expectLong,
|
|
568
|
-
throughputMode: __expectString,
|
|
569
|
-
writeCapacityUnits: __expectLong,
|
|
570
|
-
});
|
|
571
|
-
};
|
|
572
|
-
const de_GetTableAutoScalingSettingsResponse = (output, context) => {
|
|
573
|
-
return take(output, {
|
|
574
|
-
autoScalingSpecification: (_) => de_AutoScalingSpecification(_, context),
|
|
575
|
-
keyspaceName: __expectString,
|
|
576
|
-
replicaSpecifications: (_) => de_ReplicaAutoScalingSpecificationList(_, context),
|
|
577
|
-
resourceArn: __expectString,
|
|
578
|
-
tableName: __expectString,
|
|
579
|
-
});
|
|
580
|
-
};
|
|
581
|
-
const de_GetTableResponse = (output, context) => {
|
|
582
|
-
return take(output, {
|
|
583
|
-
capacitySpecification: (_) => de_CapacitySpecificationSummary(_, context),
|
|
584
|
-
cdcSpecification: _json,
|
|
585
|
-
clientSideTimestamps: _json,
|
|
586
|
-
comment: _json,
|
|
587
|
-
creationTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
588
|
-
defaultTimeToLive: __expectInt32,
|
|
589
|
-
encryptionSpecification: _json,
|
|
590
|
-
keyspaceName: __expectString,
|
|
591
|
-
latestStreamArn: __expectString,
|
|
592
|
-
pointInTimeRecovery: (_) => de_PointInTimeRecoverySummary(_, context),
|
|
593
|
-
replicaSpecifications: (_) => de_ReplicaSpecificationSummaryList(_, context),
|
|
594
|
-
resourceArn: __expectString,
|
|
595
|
-
schemaDefinition: _json,
|
|
596
|
-
status: __expectString,
|
|
597
|
-
tableName: __expectString,
|
|
598
|
-
ttl: _json,
|
|
599
|
-
});
|
|
600
|
-
};
|
|
601
|
-
const de_GetTypeResponse = (output, context) => {
|
|
602
|
-
return take(output, {
|
|
603
|
-
directParentTypes: _json,
|
|
604
|
-
directReferringTables: _json,
|
|
605
|
-
fieldDefinitions: _json,
|
|
606
|
-
keyspaceArn: __expectString,
|
|
607
|
-
keyspaceName: __expectString,
|
|
608
|
-
lastModifiedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
609
|
-
maxNestingDepth: __expectInt32,
|
|
610
|
-
status: __expectString,
|
|
611
|
-
typeName: __expectString,
|
|
612
|
-
});
|
|
613
|
-
};
|
|
614
|
-
const de_PointInTimeRecoverySummary = (output, context) => {
|
|
615
|
-
return take(output, {
|
|
616
|
-
earliestRestorableTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
617
|
-
status: __expectString,
|
|
618
|
-
});
|
|
619
|
-
};
|
|
620
|
-
const de_ReplicaAutoScalingSpecification = (output, context) => {
|
|
621
|
-
return take(output, {
|
|
622
|
-
autoScalingSpecification: (_) => de_AutoScalingSpecification(_, context),
|
|
623
|
-
region: __expectString,
|
|
624
|
-
});
|
|
625
|
-
};
|
|
626
|
-
const de_ReplicaAutoScalingSpecificationList = (output, context) => {
|
|
627
|
-
const retVal = (output || [])
|
|
628
|
-
.filter((e) => e != null)
|
|
629
|
-
.map((entry) => {
|
|
630
|
-
return de_ReplicaAutoScalingSpecification(entry, context);
|
|
631
|
-
});
|
|
632
|
-
return retVal;
|
|
633
|
-
};
|
|
634
|
-
const de_ReplicaSpecificationSummary = (output, context) => {
|
|
635
|
-
return take(output, {
|
|
636
|
-
capacitySpecification: (_) => de_CapacitySpecificationSummary(_, context),
|
|
637
|
-
region: __expectString,
|
|
638
|
-
status: __expectString,
|
|
639
|
-
});
|
|
640
|
-
};
|
|
641
|
-
const de_ReplicaSpecificationSummaryList = (output, context) => {
|
|
642
|
-
const retVal = (output || [])
|
|
643
|
-
.filter((e) => e != null)
|
|
644
|
-
.map((entry) => {
|
|
645
|
-
return de_ReplicaSpecificationSummary(entry, context);
|
|
646
|
-
});
|
|
647
|
-
return retVal;
|
|
648
|
-
};
|
|
649
|
-
const de_TargetTrackingScalingPolicyConfiguration = (output, context) => {
|
|
650
|
-
return take(output, {
|
|
651
|
-
disableScaleIn: __expectBoolean,
|
|
652
|
-
scaleInCooldown: __expectInt32,
|
|
653
|
-
scaleOutCooldown: __expectInt32,
|
|
654
|
-
targetValue: __limitedParseDouble,
|
|
655
|
-
});
|
|
656
|
-
};
|
|
657
|
-
const deserializeMetadata = (output) => ({
|
|
658
|
-
httpStatusCode: output.statusCode,
|
|
659
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
660
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
661
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
662
|
-
});
|
|
663
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
664
|
-
const throwDefaultError = withBaseException(__BaseException);
|
|
665
|
-
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
666
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
667
|
-
const contents = {
|
|
668
|
-
protocol,
|
|
669
|
-
hostname,
|
|
670
|
-
port,
|
|
671
|
-
method: "POST",
|
|
672
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
673
|
-
headers,
|
|
674
|
-
};
|
|
675
|
-
if (resolvedHostname !== undefined) {
|
|
676
|
-
contents.hostname = resolvedHostname;
|
|
677
|
-
}
|
|
678
|
-
if (body !== undefined) {
|
|
679
|
-
contents.body = body;
|
|
680
|
-
}
|
|
681
|
-
return new __HttpRequest(contents);
|
|
682
|
-
};
|
|
683
|
-
function sharedHeaders(operation) {
|
|
684
|
-
return {
|
|
685
|
-
"content-type": "application/x-amz-json-1.0",
|
|
686
|
-
"x-amz-target": `KeyspacesService.${operation}`,
|
|
687
|
-
};
|
|
688
|
-
}
|