@aws-sdk/client-keyspaces 3.312.0 → 3.315.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/protocols/Aws_json1_0.js +89 -561
- package/dist-es/protocols/Aws_json1_0.js +90 -562
- package/package.json +6 -6
|
@@ -1,59 +1,59 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
|
-
import { decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp,
|
|
2
|
+
import { _json, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { KeyspacesServiceException as __BaseException } from "../models/KeyspacesServiceException";
|
|
4
4
|
import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ValidationException, } from "../models/models_0";
|
|
5
5
|
export const se_CreateKeyspaceCommand = async (input, context) => {
|
|
6
6
|
const headers = sharedHeaders("CreateKeyspace");
|
|
7
7
|
let body;
|
|
8
|
-
body = JSON.stringify(
|
|
8
|
+
body = JSON.stringify(_json(input));
|
|
9
9
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
10
10
|
};
|
|
11
11
|
export const se_CreateTableCommand = async (input, context) => {
|
|
12
12
|
const headers = sharedHeaders("CreateTable");
|
|
13
13
|
let body;
|
|
14
|
-
body = JSON.stringify(
|
|
14
|
+
body = JSON.stringify(_json(input));
|
|
15
15
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
16
16
|
};
|
|
17
17
|
export const se_DeleteKeyspaceCommand = async (input, context) => {
|
|
18
18
|
const headers = sharedHeaders("DeleteKeyspace");
|
|
19
19
|
let body;
|
|
20
|
-
body = JSON.stringify(
|
|
20
|
+
body = JSON.stringify(_json(input));
|
|
21
21
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
22
22
|
};
|
|
23
23
|
export const se_DeleteTableCommand = async (input, context) => {
|
|
24
24
|
const headers = sharedHeaders("DeleteTable");
|
|
25
25
|
let body;
|
|
26
|
-
body = JSON.stringify(
|
|
26
|
+
body = JSON.stringify(_json(input));
|
|
27
27
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
28
28
|
};
|
|
29
29
|
export const se_GetKeyspaceCommand = async (input, context) => {
|
|
30
30
|
const headers = sharedHeaders("GetKeyspace");
|
|
31
31
|
let body;
|
|
32
|
-
body = JSON.stringify(
|
|
32
|
+
body = JSON.stringify(_json(input));
|
|
33
33
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
34
34
|
};
|
|
35
35
|
export const se_GetTableCommand = async (input, context) => {
|
|
36
36
|
const headers = sharedHeaders("GetTable");
|
|
37
37
|
let body;
|
|
38
|
-
body = JSON.stringify(
|
|
38
|
+
body = JSON.stringify(_json(input));
|
|
39
39
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
40
40
|
};
|
|
41
41
|
export const se_ListKeyspacesCommand = async (input, context) => {
|
|
42
42
|
const headers = sharedHeaders("ListKeyspaces");
|
|
43
43
|
let body;
|
|
44
|
-
body = JSON.stringify(
|
|
44
|
+
body = JSON.stringify(_json(input));
|
|
45
45
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
46
46
|
};
|
|
47
47
|
export const se_ListTablesCommand = async (input, context) => {
|
|
48
48
|
const headers = sharedHeaders("ListTables");
|
|
49
49
|
let body;
|
|
50
|
-
body = JSON.stringify(
|
|
50
|
+
body = JSON.stringify(_json(input));
|
|
51
51
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
52
52
|
};
|
|
53
53
|
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
54
54
|
const headers = sharedHeaders("ListTagsForResource");
|
|
55
55
|
let body;
|
|
56
|
-
body = JSON.stringify(
|
|
56
|
+
body = JSON.stringify(_json(input));
|
|
57
57
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
58
58
|
};
|
|
59
59
|
export const se_RestoreTableCommand = async (input, context) => {
|
|
@@ -65,19 +65,19 @@ export const se_RestoreTableCommand = async (input, context) => {
|
|
|
65
65
|
export const se_TagResourceCommand = async (input, context) => {
|
|
66
66
|
const headers = sharedHeaders("TagResource");
|
|
67
67
|
let body;
|
|
68
|
-
body = JSON.stringify(
|
|
68
|
+
body = JSON.stringify(_json(input));
|
|
69
69
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
70
70
|
};
|
|
71
71
|
export const se_UntagResourceCommand = async (input, context) => {
|
|
72
72
|
const headers = sharedHeaders("UntagResource");
|
|
73
73
|
let body;
|
|
74
|
-
body = JSON.stringify(
|
|
74
|
+
body = JSON.stringify(_json(input));
|
|
75
75
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
76
76
|
};
|
|
77
77
|
export const se_UpdateTableCommand = async (input, context) => {
|
|
78
78
|
const headers = sharedHeaders("UpdateTable");
|
|
79
79
|
let body;
|
|
80
|
-
body = JSON.stringify(
|
|
80
|
+
body = JSON.stringify(_json(input));
|
|
81
81
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
82
82
|
};
|
|
83
83
|
export const de_CreateKeyspaceCommand = async (output, context) => {
|
|
@@ -86,12 +86,12 @@ export const de_CreateKeyspaceCommand = async (output, context) => {
|
|
|
86
86
|
}
|
|
87
87
|
const data = await parseBody(output.body, context);
|
|
88
88
|
let contents = {};
|
|
89
|
-
contents =
|
|
89
|
+
contents = _json(data);
|
|
90
90
|
const response = {
|
|
91
91
|
$metadata: deserializeMetadata(output),
|
|
92
92
|
...contents,
|
|
93
93
|
};
|
|
94
|
-
return
|
|
94
|
+
return response;
|
|
95
95
|
};
|
|
96
96
|
const de_CreateKeyspaceCommandError = async (output, context) => {
|
|
97
97
|
const parsedOutput = {
|
|
@@ -117,10 +117,9 @@ const de_CreateKeyspaceCommandError = async (output, context) => {
|
|
|
117
117
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
118
118
|
default:
|
|
119
119
|
const parsedBody = parsedOutput.body;
|
|
120
|
-
throwDefaultError({
|
|
120
|
+
return throwDefaultError({
|
|
121
121
|
output,
|
|
122
122
|
parsedBody,
|
|
123
|
-
exceptionCtor: __BaseException,
|
|
124
123
|
errorCode,
|
|
125
124
|
});
|
|
126
125
|
}
|
|
@@ -131,12 +130,12 @@ export const de_CreateTableCommand = async (output, context) => {
|
|
|
131
130
|
}
|
|
132
131
|
const data = await parseBody(output.body, context);
|
|
133
132
|
let contents = {};
|
|
134
|
-
contents =
|
|
133
|
+
contents = _json(data);
|
|
135
134
|
const response = {
|
|
136
135
|
$metadata: deserializeMetadata(output),
|
|
137
136
|
...contents,
|
|
138
137
|
};
|
|
139
|
-
return
|
|
138
|
+
return response;
|
|
140
139
|
};
|
|
141
140
|
const de_CreateTableCommandError = async (output, context) => {
|
|
142
141
|
const parsedOutput = {
|
|
@@ -165,10 +164,9 @@ const de_CreateTableCommandError = async (output, context) => {
|
|
|
165
164
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
166
165
|
default:
|
|
167
166
|
const parsedBody = parsedOutput.body;
|
|
168
|
-
throwDefaultError({
|
|
167
|
+
return throwDefaultError({
|
|
169
168
|
output,
|
|
170
169
|
parsedBody,
|
|
171
|
-
exceptionCtor: __BaseException,
|
|
172
170
|
errorCode,
|
|
173
171
|
});
|
|
174
172
|
}
|
|
@@ -179,12 +177,12 @@ export const de_DeleteKeyspaceCommand = async (output, context) => {
|
|
|
179
177
|
}
|
|
180
178
|
const data = await parseBody(output.body, context);
|
|
181
179
|
let contents = {};
|
|
182
|
-
contents =
|
|
180
|
+
contents = _json(data);
|
|
183
181
|
const response = {
|
|
184
182
|
$metadata: deserializeMetadata(output),
|
|
185
183
|
...contents,
|
|
186
184
|
};
|
|
187
|
-
return
|
|
185
|
+
return response;
|
|
188
186
|
};
|
|
189
187
|
const de_DeleteKeyspaceCommandError = async (output, context) => {
|
|
190
188
|
const parsedOutput = {
|
|
@@ -213,10 +211,9 @@ const de_DeleteKeyspaceCommandError = async (output, context) => {
|
|
|
213
211
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
214
212
|
default:
|
|
215
213
|
const parsedBody = parsedOutput.body;
|
|
216
|
-
throwDefaultError({
|
|
214
|
+
return throwDefaultError({
|
|
217
215
|
output,
|
|
218
216
|
parsedBody,
|
|
219
|
-
exceptionCtor: __BaseException,
|
|
220
217
|
errorCode,
|
|
221
218
|
});
|
|
222
219
|
}
|
|
@@ -227,12 +224,12 @@ export const de_DeleteTableCommand = async (output, context) => {
|
|
|
227
224
|
}
|
|
228
225
|
const data = await parseBody(output.body, context);
|
|
229
226
|
let contents = {};
|
|
230
|
-
contents =
|
|
227
|
+
contents = _json(data);
|
|
231
228
|
const response = {
|
|
232
229
|
$metadata: deserializeMetadata(output),
|
|
233
230
|
...contents,
|
|
234
231
|
};
|
|
235
|
-
return
|
|
232
|
+
return response;
|
|
236
233
|
};
|
|
237
234
|
const de_DeleteTableCommandError = async (output, context) => {
|
|
238
235
|
const parsedOutput = {
|
|
@@ -261,10 +258,9 @@ const de_DeleteTableCommandError = async (output, context) => {
|
|
|
261
258
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
262
259
|
default:
|
|
263
260
|
const parsedBody = parsedOutput.body;
|
|
264
|
-
throwDefaultError({
|
|
261
|
+
return throwDefaultError({
|
|
265
262
|
output,
|
|
266
263
|
parsedBody,
|
|
267
|
-
exceptionCtor: __BaseException,
|
|
268
264
|
errorCode,
|
|
269
265
|
});
|
|
270
266
|
}
|
|
@@ -275,12 +271,12 @@ export const de_GetKeyspaceCommand = async (output, context) => {
|
|
|
275
271
|
}
|
|
276
272
|
const data = await parseBody(output.body, context);
|
|
277
273
|
let contents = {};
|
|
278
|
-
contents =
|
|
274
|
+
contents = _json(data);
|
|
279
275
|
const response = {
|
|
280
276
|
$metadata: deserializeMetadata(output),
|
|
281
277
|
...contents,
|
|
282
278
|
};
|
|
283
|
-
return
|
|
279
|
+
return response;
|
|
284
280
|
};
|
|
285
281
|
const de_GetKeyspaceCommandError = async (output, context) => {
|
|
286
282
|
const parsedOutput = {
|
|
@@ -306,10 +302,9 @@ const de_GetKeyspaceCommandError = async (output, context) => {
|
|
|
306
302
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
307
303
|
default:
|
|
308
304
|
const parsedBody = parsedOutput.body;
|
|
309
|
-
throwDefaultError({
|
|
305
|
+
return throwDefaultError({
|
|
310
306
|
output,
|
|
311
307
|
parsedBody,
|
|
312
|
-
exceptionCtor: __BaseException,
|
|
313
308
|
errorCode,
|
|
314
309
|
});
|
|
315
310
|
}
|
|
@@ -325,7 +320,7 @@ export const de_GetTableCommand = async (output, context) => {
|
|
|
325
320
|
$metadata: deserializeMetadata(output),
|
|
326
321
|
...contents,
|
|
327
322
|
};
|
|
328
|
-
return
|
|
323
|
+
return response;
|
|
329
324
|
};
|
|
330
325
|
const de_GetTableCommandError = async (output, context) => {
|
|
331
326
|
const parsedOutput = {
|
|
@@ -351,10 +346,9 @@ const de_GetTableCommandError = async (output, context) => {
|
|
|
351
346
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
352
347
|
default:
|
|
353
348
|
const parsedBody = parsedOutput.body;
|
|
354
|
-
throwDefaultError({
|
|
349
|
+
return throwDefaultError({
|
|
355
350
|
output,
|
|
356
351
|
parsedBody,
|
|
357
|
-
exceptionCtor: __BaseException,
|
|
358
352
|
errorCode,
|
|
359
353
|
});
|
|
360
354
|
}
|
|
@@ -365,12 +359,12 @@ export const de_ListKeyspacesCommand = async (output, context) => {
|
|
|
365
359
|
}
|
|
366
360
|
const data = await parseBody(output.body, context);
|
|
367
361
|
let contents = {};
|
|
368
|
-
contents =
|
|
362
|
+
contents = _json(data);
|
|
369
363
|
const response = {
|
|
370
364
|
$metadata: deserializeMetadata(output),
|
|
371
365
|
...contents,
|
|
372
366
|
};
|
|
373
|
-
return
|
|
367
|
+
return response;
|
|
374
368
|
};
|
|
375
369
|
const de_ListKeyspacesCommandError = async (output, context) => {
|
|
376
370
|
const parsedOutput = {
|
|
@@ -396,10 +390,9 @@ const de_ListKeyspacesCommandError = async (output, context) => {
|
|
|
396
390
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
397
391
|
default:
|
|
398
392
|
const parsedBody = parsedOutput.body;
|
|
399
|
-
throwDefaultError({
|
|
393
|
+
return throwDefaultError({
|
|
400
394
|
output,
|
|
401
395
|
parsedBody,
|
|
402
|
-
exceptionCtor: __BaseException,
|
|
403
396
|
errorCode,
|
|
404
397
|
});
|
|
405
398
|
}
|
|
@@ -410,12 +403,12 @@ export const de_ListTablesCommand = async (output, context) => {
|
|
|
410
403
|
}
|
|
411
404
|
const data = await parseBody(output.body, context);
|
|
412
405
|
let contents = {};
|
|
413
|
-
contents =
|
|
406
|
+
contents = _json(data);
|
|
414
407
|
const response = {
|
|
415
408
|
$metadata: deserializeMetadata(output),
|
|
416
409
|
...contents,
|
|
417
410
|
};
|
|
418
|
-
return
|
|
411
|
+
return response;
|
|
419
412
|
};
|
|
420
413
|
const de_ListTablesCommandError = async (output, context) => {
|
|
421
414
|
const parsedOutput = {
|
|
@@ -441,10 +434,9 @@ const de_ListTablesCommandError = async (output, context) => {
|
|
|
441
434
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
442
435
|
default:
|
|
443
436
|
const parsedBody = parsedOutput.body;
|
|
444
|
-
throwDefaultError({
|
|
437
|
+
return throwDefaultError({
|
|
445
438
|
output,
|
|
446
439
|
parsedBody,
|
|
447
|
-
exceptionCtor: __BaseException,
|
|
448
440
|
errorCode,
|
|
449
441
|
});
|
|
450
442
|
}
|
|
@@ -455,12 +447,12 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
455
447
|
}
|
|
456
448
|
const data = await parseBody(output.body, context);
|
|
457
449
|
let contents = {};
|
|
458
|
-
contents =
|
|
450
|
+
contents = _json(data);
|
|
459
451
|
const response = {
|
|
460
452
|
$metadata: deserializeMetadata(output),
|
|
461
453
|
...contents,
|
|
462
454
|
};
|
|
463
|
-
return
|
|
455
|
+
return response;
|
|
464
456
|
};
|
|
465
457
|
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
466
458
|
const parsedOutput = {
|
|
@@ -486,10 +478,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
486
478
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
487
479
|
default:
|
|
488
480
|
const parsedBody = parsedOutput.body;
|
|
489
|
-
throwDefaultError({
|
|
481
|
+
return throwDefaultError({
|
|
490
482
|
output,
|
|
491
483
|
parsedBody,
|
|
492
|
-
exceptionCtor: __BaseException,
|
|
493
484
|
errorCode,
|
|
494
485
|
});
|
|
495
486
|
}
|
|
@@ -500,12 +491,12 @@ export const de_RestoreTableCommand = async (output, context) => {
|
|
|
500
491
|
}
|
|
501
492
|
const data = await parseBody(output.body, context);
|
|
502
493
|
let contents = {};
|
|
503
|
-
contents =
|
|
494
|
+
contents = _json(data);
|
|
504
495
|
const response = {
|
|
505
496
|
$metadata: deserializeMetadata(output),
|
|
506
497
|
...contents,
|
|
507
498
|
};
|
|
508
|
-
return
|
|
499
|
+
return response;
|
|
509
500
|
};
|
|
510
501
|
const de_RestoreTableCommandError = async (output, context) => {
|
|
511
502
|
const parsedOutput = {
|
|
@@ -534,10 +525,9 @@ const de_RestoreTableCommandError = async (output, context) => {
|
|
|
534
525
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
535
526
|
default:
|
|
536
527
|
const parsedBody = parsedOutput.body;
|
|
537
|
-
throwDefaultError({
|
|
528
|
+
return throwDefaultError({
|
|
538
529
|
output,
|
|
539
530
|
parsedBody,
|
|
540
|
-
exceptionCtor: __BaseException,
|
|
541
531
|
errorCode,
|
|
542
532
|
});
|
|
543
533
|
}
|
|
@@ -548,12 +538,12 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
548
538
|
}
|
|
549
539
|
const data = await parseBody(output.body, context);
|
|
550
540
|
let contents = {};
|
|
551
|
-
contents =
|
|
541
|
+
contents = _json(data);
|
|
552
542
|
const response = {
|
|
553
543
|
$metadata: deserializeMetadata(output),
|
|
554
544
|
...contents,
|
|
555
545
|
};
|
|
556
|
-
return
|
|
546
|
+
return response;
|
|
557
547
|
};
|
|
558
548
|
const de_TagResourceCommandError = async (output, context) => {
|
|
559
549
|
const parsedOutput = {
|
|
@@ -579,10 +569,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
579
569
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
580
570
|
default:
|
|
581
571
|
const parsedBody = parsedOutput.body;
|
|
582
|
-
throwDefaultError({
|
|
572
|
+
return throwDefaultError({
|
|
583
573
|
output,
|
|
584
574
|
parsedBody,
|
|
585
|
-
exceptionCtor: __BaseException,
|
|
586
575
|
errorCode,
|
|
587
576
|
});
|
|
588
577
|
}
|
|
@@ -593,12 +582,12 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
593
582
|
}
|
|
594
583
|
const data = await parseBody(output.body, context);
|
|
595
584
|
let contents = {};
|
|
596
|
-
contents =
|
|
585
|
+
contents = _json(data);
|
|
597
586
|
const response = {
|
|
598
587
|
$metadata: deserializeMetadata(output),
|
|
599
588
|
...contents,
|
|
600
589
|
};
|
|
601
|
-
return
|
|
590
|
+
return response;
|
|
602
591
|
};
|
|
603
592
|
const de_UntagResourceCommandError = async (output, context) => {
|
|
604
593
|
const parsedOutput = {
|
|
@@ -627,10 +616,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
627
616
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
628
617
|
default:
|
|
629
618
|
const parsedBody = parsedOutput.body;
|
|
630
|
-
throwDefaultError({
|
|
619
|
+
return throwDefaultError({
|
|
631
620
|
output,
|
|
632
621
|
parsedBody,
|
|
633
|
-
exceptionCtor: __BaseException,
|
|
634
622
|
errorCode,
|
|
635
623
|
});
|
|
636
624
|
}
|
|
@@ -641,12 +629,12 @@ export const de_UpdateTableCommand = async (output, context) => {
|
|
|
641
629
|
}
|
|
642
630
|
const data = await parseBody(output.body, context);
|
|
643
631
|
let contents = {};
|
|
644
|
-
contents =
|
|
632
|
+
contents = _json(data);
|
|
645
633
|
const response = {
|
|
646
634
|
$metadata: deserializeMetadata(output),
|
|
647
635
|
...contents,
|
|
648
636
|
};
|
|
649
|
-
return
|
|
637
|
+
return response;
|
|
650
638
|
};
|
|
651
639
|
const de_UpdateTableCommandError = async (output, context) => {
|
|
652
640
|
const parsedOutput = {
|
|
@@ -675,17 +663,16 @@ const de_UpdateTableCommandError = async (output, context) => {
|
|
|
675
663
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
676
664
|
default:
|
|
677
665
|
const parsedBody = parsedOutput.body;
|
|
678
|
-
throwDefaultError({
|
|
666
|
+
return throwDefaultError({
|
|
679
667
|
output,
|
|
680
668
|
parsedBody,
|
|
681
|
-
exceptionCtor: __BaseException,
|
|
682
669
|
errorCode,
|
|
683
670
|
});
|
|
684
671
|
}
|
|
685
672
|
};
|
|
686
673
|
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
687
674
|
const body = parsedOutput.body;
|
|
688
|
-
const deserialized =
|
|
675
|
+
const deserialized = _json(body);
|
|
689
676
|
const exception = new AccessDeniedException({
|
|
690
677
|
$metadata: deserializeMetadata(parsedOutput),
|
|
691
678
|
...deserialized,
|
|
@@ -694,7 +681,7 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
|
694
681
|
};
|
|
695
682
|
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
696
683
|
const body = parsedOutput.body;
|
|
697
|
-
const deserialized =
|
|
684
|
+
const deserialized = _json(body);
|
|
698
685
|
const exception = new ConflictException({
|
|
699
686
|
$metadata: deserializeMetadata(parsedOutput),
|
|
700
687
|
...deserialized,
|
|
@@ -703,7 +690,7 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
703
690
|
};
|
|
704
691
|
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
705
692
|
const body = parsedOutput.body;
|
|
706
|
-
const deserialized =
|
|
693
|
+
const deserialized = _json(body);
|
|
707
694
|
const exception = new InternalServerException({
|
|
708
695
|
$metadata: deserializeMetadata(parsedOutput),
|
|
709
696
|
...deserialized,
|
|
@@ -712,7 +699,7 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
|
712
699
|
};
|
|
713
700
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
714
701
|
const body = parsedOutput.body;
|
|
715
|
-
const deserialized =
|
|
702
|
+
const deserialized = _json(body);
|
|
716
703
|
const exception = new ResourceNotFoundException({
|
|
717
704
|
$metadata: deserializeMetadata(parsedOutput),
|
|
718
705
|
...deserialized,
|
|
@@ -721,7 +708,7 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
721
708
|
};
|
|
722
709
|
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
723
710
|
const body = parsedOutput.body;
|
|
724
|
-
const deserialized =
|
|
711
|
+
const deserialized = _json(body);
|
|
725
712
|
const exception = new ServiceQuotaExceededException({
|
|
726
713
|
$metadata: deserializeMetadata(parsedOutput),
|
|
727
714
|
...deserialized,
|
|
@@ -730,516 +717,56 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
730
717
|
};
|
|
731
718
|
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
732
719
|
const body = parsedOutput.body;
|
|
733
|
-
const deserialized =
|
|
720
|
+
const deserialized = _json(body);
|
|
734
721
|
const exception = new ValidationException({
|
|
735
722
|
$metadata: deserializeMetadata(parsedOutput),
|
|
736
723
|
...deserialized,
|
|
737
724
|
});
|
|
738
725
|
return __decorateServiceException(exception, body);
|
|
739
726
|
};
|
|
740
|
-
const se_CapacitySpecification = (input, context) => {
|
|
741
|
-
return {
|
|
742
|
-
...(input.readCapacityUnits != null && { readCapacityUnits: input.readCapacityUnits }),
|
|
743
|
-
...(input.throughputMode != null && { throughputMode: input.throughputMode }),
|
|
744
|
-
...(input.writeCapacityUnits != null && { writeCapacityUnits: input.writeCapacityUnits }),
|
|
745
|
-
};
|
|
746
|
-
};
|
|
747
|
-
const se_ClientSideTimestamps = (input, context) => {
|
|
748
|
-
return {
|
|
749
|
-
...(input.status != null && { status: input.status }),
|
|
750
|
-
};
|
|
751
|
-
};
|
|
752
|
-
const se_ClusteringKey = (input, context) => {
|
|
753
|
-
return {
|
|
754
|
-
...(input.name != null && { name: input.name }),
|
|
755
|
-
...(input.orderBy != null && { orderBy: input.orderBy }),
|
|
756
|
-
};
|
|
757
|
-
};
|
|
758
|
-
const se_ClusteringKeyList = (input, context) => {
|
|
759
|
-
return input
|
|
760
|
-
.filter((e) => e != null)
|
|
761
|
-
.map((entry) => {
|
|
762
|
-
return se_ClusteringKey(entry, context);
|
|
763
|
-
});
|
|
764
|
-
};
|
|
765
|
-
const se_ColumnDefinition = (input, context) => {
|
|
766
|
-
return {
|
|
767
|
-
...(input.name != null && { name: input.name }),
|
|
768
|
-
...(input.type != null && { type: input.type }),
|
|
769
|
-
};
|
|
770
|
-
};
|
|
771
|
-
const se_ColumnDefinitionList = (input, context) => {
|
|
772
|
-
return input
|
|
773
|
-
.filter((e) => e != null)
|
|
774
|
-
.map((entry) => {
|
|
775
|
-
return se_ColumnDefinition(entry, context);
|
|
776
|
-
});
|
|
777
|
-
};
|
|
778
|
-
const se_Comment = (input, context) => {
|
|
779
|
-
return {
|
|
780
|
-
...(input.message != null && { message: input.message }),
|
|
781
|
-
};
|
|
782
|
-
};
|
|
783
|
-
const se_CreateKeyspaceRequest = (input, context) => {
|
|
784
|
-
return {
|
|
785
|
-
...(input.keyspaceName != null && { keyspaceName: input.keyspaceName }),
|
|
786
|
-
...(input.tags != null && { tags: se_TagList(input.tags, context) }),
|
|
787
|
-
};
|
|
788
|
-
};
|
|
789
|
-
const se_CreateTableRequest = (input, context) => {
|
|
790
|
-
return {
|
|
791
|
-
...(input.capacitySpecification != null && {
|
|
792
|
-
capacitySpecification: se_CapacitySpecification(input.capacitySpecification, context),
|
|
793
|
-
}),
|
|
794
|
-
...(input.clientSideTimestamps != null && {
|
|
795
|
-
clientSideTimestamps: se_ClientSideTimestamps(input.clientSideTimestamps, context),
|
|
796
|
-
}),
|
|
797
|
-
...(input.comment != null && { comment: se_Comment(input.comment, context) }),
|
|
798
|
-
...(input.defaultTimeToLive != null && { defaultTimeToLive: input.defaultTimeToLive }),
|
|
799
|
-
...(input.encryptionSpecification != null && {
|
|
800
|
-
encryptionSpecification: se_EncryptionSpecification(input.encryptionSpecification, context),
|
|
801
|
-
}),
|
|
802
|
-
...(input.keyspaceName != null && { keyspaceName: input.keyspaceName }),
|
|
803
|
-
...(input.pointInTimeRecovery != null && {
|
|
804
|
-
pointInTimeRecovery: se_PointInTimeRecovery(input.pointInTimeRecovery, context),
|
|
805
|
-
}),
|
|
806
|
-
...(input.schemaDefinition != null && { schemaDefinition: se_SchemaDefinition(input.schemaDefinition, context) }),
|
|
807
|
-
...(input.tableName != null && { tableName: input.tableName }),
|
|
808
|
-
...(input.tags != null && { tags: se_TagList(input.tags, context) }),
|
|
809
|
-
...(input.ttl != null && { ttl: se_TimeToLive(input.ttl, context) }),
|
|
810
|
-
};
|
|
811
|
-
};
|
|
812
|
-
const se_DeleteKeyspaceRequest = (input, context) => {
|
|
813
|
-
return {
|
|
814
|
-
...(input.keyspaceName != null && { keyspaceName: input.keyspaceName }),
|
|
815
|
-
};
|
|
816
|
-
};
|
|
817
|
-
const se_DeleteTableRequest = (input, context) => {
|
|
818
|
-
return {
|
|
819
|
-
...(input.keyspaceName != null && { keyspaceName: input.keyspaceName }),
|
|
820
|
-
...(input.tableName != null && { tableName: input.tableName }),
|
|
821
|
-
};
|
|
822
|
-
};
|
|
823
|
-
const se_EncryptionSpecification = (input, context) => {
|
|
824
|
-
return {
|
|
825
|
-
...(input.kmsKeyIdentifier != null && { kmsKeyIdentifier: input.kmsKeyIdentifier }),
|
|
826
|
-
...(input.type != null && { type: input.type }),
|
|
827
|
-
};
|
|
828
|
-
};
|
|
829
|
-
const se_GetKeyspaceRequest = (input, context) => {
|
|
830
|
-
return {
|
|
831
|
-
...(input.keyspaceName != null && { keyspaceName: input.keyspaceName }),
|
|
832
|
-
};
|
|
833
|
-
};
|
|
834
|
-
const se_GetTableRequest = (input, context) => {
|
|
835
|
-
return {
|
|
836
|
-
...(input.keyspaceName != null && { keyspaceName: input.keyspaceName }),
|
|
837
|
-
...(input.tableName != null && { tableName: input.tableName }),
|
|
838
|
-
};
|
|
839
|
-
};
|
|
840
|
-
const se_ListKeyspacesRequest = (input, context) => {
|
|
841
|
-
return {
|
|
842
|
-
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
843
|
-
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
844
|
-
};
|
|
845
|
-
};
|
|
846
|
-
const se_ListTablesRequest = (input, context) => {
|
|
847
|
-
return {
|
|
848
|
-
...(input.keyspaceName != null && { keyspaceName: input.keyspaceName }),
|
|
849
|
-
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
850
|
-
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
851
|
-
};
|
|
852
|
-
};
|
|
853
|
-
const se_ListTagsForResourceRequest = (input, context) => {
|
|
854
|
-
return {
|
|
855
|
-
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
856
|
-
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
857
|
-
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
858
|
-
};
|
|
859
|
-
};
|
|
860
|
-
const se_PartitionKey = (input, context) => {
|
|
861
|
-
return {
|
|
862
|
-
...(input.name != null && { name: input.name }),
|
|
863
|
-
};
|
|
864
|
-
};
|
|
865
|
-
const se_PartitionKeyList = (input, context) => {
|
|
866
|
-
return input
|
|
867
|
-
.filter((e) => e != null)
|
|
868
|
-
.map((entry) => {
|
|
869
|
-
return se_PartitionKey(entry, context);
|
|
870
|
-
});
|
|
871
|
-
};
|
|
872
|
-
const se_PointInTimeRecovery = (input, context) => {
|
|
873
|
-
return {
|
|
874
|
-
...(input.status != null && { status: input.status }),
|
|
875
|
-
};
|
|
876
|
-
};
|
|
877
727
|
const se_RestoreTableRequest = (input, context) => {
|
|
878
|
-
return {
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
...(input.restoreTimestamp != null && { restoreTimestamp: Math.round(input.restoreTimestamp.getTime() / 1000) }),
|
|
889
|
-
...(input.sourceKeyspaceName != null && { sourceKeyspaceName: input.sourceKeyspaceName }),
|
|
890
|
-
...(input.sourceTableName != null && { sourceTableName: input.sourceTableName }),
|
|
891
|
-
...(input.tagsOverride != null && { tagsOverride: se_TagList(input.tagsOverride, context) }),
|
|
892
|
-
...(input.targetKeyspaceName != null && { targetKeyspaceName: input.targetKeyspaceName }),
|
|
893
|
-
...(input.targetTableName != null && { targetTableName: input.targetTableName }),
|
|
894
|
-
};
|
|
895
|
-
};
|
|
896
|
-
const se_SchemaDefinition = (input, context) => {
|
|
897
|
-
return {
|
|
898
|
-
...(input.allColumns != null && { allColumns: se_ColumnDefinitionList(input.allColumns, context) }),
|
|
899
|
-
...(input.clusteringKeys != null && { clusteringKeys: se_ClusteringKeyList(input.clusteringKeys, context) }),
|
|
900
|
-
...(input.partitionKeys != null && { partitionKeys: se_PartitionKeyList(input.partitionKeys, context) }),
|
|
901
|
-
...(input.staticColumns != null && { staticColumns: se_StaticColumnList(input.staticColumns, context) }),
|
|
902
|
-
};
|
|
903
|
-
};
|
|
904
|
-
const se_StaticColumn = (input, context) => {
|
|
905
|
-
return {
|
|
906
|
-
...(input.name != null && { name: input.name }),
|
|
907
|
-
};
|
|
908
|
-
};
|
|
909
|
-
const se_StaticColumnList = (input, context) => {
|
|
910
|
-
return input
|
|
911
|
-
.filter((e) => e != null)
|
|
912
|
-
.map((entry) => {
|
|
913
|
-
return se_StaticColumn(entry, context);
|
|
914
|
-
});
|
|
915
|
-
};
|
|
916
|
-
const se_Tag = (input, context) => {
|
|
917
|
-
return {
|
|
918
|
-
...(input.key != null && { key: input.key }),
|
|
919
|
-
...(input.value != null && { value: input.value }),
|
|
920
|
-
};
|
|
921
|
-
};
|
|
922
|
-
const se_TagList = (input, context) => {
|
|
923
|
-
return input
|
|
924
|
-
.filter((e) => e != null)
|
|
925
|
-
.map((entry) => {
|
|
926
|
-
return se_Tag(entry, context);
|
|
728
|
+
return take(input, {
|
|
729
|
+
capacitySpecificationOverride: _json,
|
|
730
|
+
encryptionSpecificationOverride: _json,
|
|
731
|
+
pointInTimeRecoveryOverride: _json,
|
|
732
|
+
restoreTimestamp: (_) => Math.round(_.getTime() / 1000),
|
|
733
|
+
sourceKeyspaceName: [],
|
|
734
|
+
sourceTableName: [],
|
|
735
|
+
tagsOverride: _json,
|
|
736
|
+
targetKeyspaceName: [],
|
|
737
|
+
targetTableName: [],
|
|
927
738
|
});
|
|
928
739
|
};
|
|
929
|
-
const se_TagResourceRequest = (input, context) => {
|
|
930
|
-
return {
|
|
931
|
-
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
932
|
-
...(input.tags != null && { tags: se_TagList(input.tags, context) }),
|
|
933
|
-
};
|
|
934
|
-
};
|
|
935
|
-
const se_TimeToLive = (input, context) => {
|
|
936
|
-
return {
|
|
937
|
-
...(input.status != null && { status: input.status }),
|
|
938
|
-
};
|
|
939
|
-
};
|
|
940
|
-
const se_UntagResourceRequest = (input, context) => {
|
|
941
|
-
return {
|
|
942
|
-
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
943
|
-
...(input.tags != null && { tags: se_TagList(input.tags, context) }),
|
|
944
|
-
};
|
|
945
|
-
};
|
|
946
|
-
const se_UpdateTableRequest = (input, context) => {
|
|
947
|
-
return {
|
|
948
|
-
...(input.addColumns != null && { addColumns: se_ColumnDefinitionList(input.addColumns, context) }),
|
|
949
|
-
...(input.capacitySpecification != null && {
|
|
950
|
-
capacitySpecification: se_CapacitySpecification(input.capacitySpecification, context),
|
|
951
|
-
}),
|
|
952
|
-
...(input.clientSideTimestamps != null && {
|
|
953
|
-
clientSideTimestamps: se_ClientSideTimestamps(input.clientSideTimestamps, context),
|
|
954
|
-
}),
|
|
955
|
-
...(input.defaultTimeToLive != null && { defaultTimeToLive: input.defaultTimeToLive }),
|
|
956
|
-
...(input.encryptionSpecification != null && {
|
|
957
|
-
encryptionSpecification: se_EncryptionSpecification(input.encryptionSpecification, context),
|
|
958
|
-
}),
|
|
959
|
-
...(input.keyspaceName != null && { keyspaceName: input.keyspaceName }),
|
|
960
|
-
...(input.pointInTimeRecovery != null && {
|
|
961
|
-
pointInTimeRecovery: se_PointInTimeRecovery(input.pointInTimeRecovery, context),
|
|
962
|
-
}),
|
|
963
|
-
...(input.tableName != null && { tableName: input.tableName }),
|
|
964
|
-
...(input.ttl != null && { ttl: se_TimeToLive(input.ttl, context) }),
|
|
965
|
-
};
|
|
966
|
-
};
|
|
967
|
-
const de_AccessDeniedException = (output, context) => {
|
|
968
|
-
return {
|
|
969
|
-
message: __expectString(output.message),
|
|
970
|
-
};
|
|
971
|
-
};
|
|
972
740
|
const de_CapacitySpecificationSummary = (output, context) => {
|
|
973
|
-
return {
|
|
974
|
-
lastUpdateToPayPerRequestTimestamp:
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
throughputMode: __expectString(output.throughputMode),
|
|
979
|
-
writeCapacityUnits: __expectLong(output.writeCapacityUnits),
|
|
980
|
-
};
|
|
981
|
-
};
|
|
982
|
-
const de_ClientSideTimestamps = (output, context) => {
|
|
983
|
-
return {
|
|
984
|
-
status: __expectString(output.status),
|
|
985
|
-
};
|
|
986
|
-
};
|
|
987
|
-
const de_ClusteringKey = (output, context) => {
|
|
988
|
-
return {
|
|
989
|
-
name: __expectString(output.name),
|
|
990
|
-
orderBy: __expectString(output.orderBy),
|
|
991
|
-
};
|
|
992
|
-
};
|
|
993
|
-
const de_ClusteringKeyList = (output, context) => {
|
|
994
|
-
const retVal = (output || [])
|
|
995
|
-
.filter((e) => e != null)
|
|
996
|
-
.map((entry) => {
|
|
997
|
-
if (entry === null) {
|
|
998
|
-
return null;
|
|
999
|
-
}
|
|
1000
|
-
return de_ClusteringKey(entry, context);
|
|
741
|
+
return take(output, {
|
|
742
|
+
lastUpdateToPayPerRequestTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
743
|
+
readCapacityUnits: __expectLong,
|
|
744
|
+
throughputMode: __expectString,
|
|
745
|
+
writeCapacityUnits: __expectLong,
|
|
1001
746
|
});
|
|
1002
|
-
return retVal;
|
|
1003
|
-
};
|
|
1004
|
-
const de_ColumnDefinition = (output, context) => {
|
|
1005
|
-
return {
|
|
1006
|
-
name: __expectString(output.name),
|
|
1007
|
-
type: __expectString(output.type),
|
|
1008
|
-
};
|
|
1009
|
-
};
|
|
1010
|
-
const de_ColumnDefinitionList = (output, context) => {
|
|
1011
|
-
const retVal = (output || [])
|
|
1012
|
-
.filter((e) => e != null)
|
|
1013
|
-
.map((entry) => {
|
|
1014
|
-
if (entry === null) {
|
|
1015
|
-
return null;
|
|
1016
|
-
}
|
|
1017
|
-
return de_ColumnDefinition(entry, context);
|
|
1018
|
-
});
|
|
1019
|
-
return retVal;
|
|
1020
|
-
};
|
|
1021
|
-
const de_Comment = (output, context) => {
|
|
1022
|
-
return {
|
|
1023
|
-
message: __expectString(output.message),
|
|
1024
|
-
};
|
|
1025
|
-
};
|
|
1026
|
-
const de_ConflictException = (output, context) => {
|
|
1027
|
-
return {
|
|
1028
|
-
message: __expectString(output.message),
|
|
1029
|
-
};
|
|
1030
|
-
};
|
|
1031
|
-
const de_CreateKeyspaceResponse = (output, context) => {
|
|
1032
|
-
return {
|
|
1033
|
-
resourceArn: __expectString(output.resourceArn),
|
|
1034
|
-
};
|
|
1035
|
-
};
|
|
1036
|
-
const de_CreateTableResponse = (output, context) => {
|
|
1037
|
-
return {
|
|
1038
|
-
resourceArn: __expectString(output.resourceArn),
|
|
1039
|
-
};
|
|
1040
|
-
};
|
|
1041
|
-
const de_DeleteKeyspaceResponse = (output, context) => {
|
|
1042
|
-
return {};
|
|
1043
|
-
};
|
|
1044
|
-
const de_DeleteTableResponse = (output, context) => {
|
|
1045
|
-
return {};
|
|
1046
|
-
};
|
|
1047
|
-
const de_EncryptionSpecification = (output, context) => {
|
|
1048
|
-
return {
|
|
1049
|
-
kmsKeyIdentifier: __expectString(output.kmsKeyIdentifier),
|
|
1050
|
-
type: __expectString(output.type),
|
|
1051
|
-
};
|
|
1052
|
-
};
|
|
1053
|
-
const de_GetKeyspaceResponse = (output, context) => {
|
|
1054
|
-
return {
|
|
1055
|
-
keyspaceName: __expectString(output.keyspaceName),
|
|
1056
|
-
resourceArn: __expectString(output.resourceArn),
|
|
1057
|
-
};
|
|
1058
747
|
};
|
|
1059
748
|
const de_GetTableResponse = (output, context) => {
|
|
1060
|
-
return {
|
|
1061
|
-
capacitySpecification:
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
pointInTimeRecovery: output.pointInTimeRecovery != null
|
|
1075
|
-
? de_PointInTimeRecoverySummary(output.pointInTimeRecovery, context)
|
|
1076
|
-
: undefined,
|
|
1077
|
-
resourceArn: __expectString(output.resourceArn),
|
|
1078
|
-
schemaDefinition: output.schemaDefinition != null ? de_SchemaDefinition(output.schemaDefinition, context) : undefined,
|
|
1079
|
-
status: __expectString(output.status),
|
|
1080
|
-
tableName: __expectString(output.tableName),
|
|
1081
|
-
ttl: output.ttl != null ? de_TimeToLive(output.ttl, context) : undefined,
|
|
1082
|
-
};
|
|
1083
|
-
};
|
|
1084
|
-
const de_InternalServerException = (output, context) => {
|
|
1085
|
-
return {
|
|
1086
|
-
message: __expectString(output.message),
|
|
1087
|
-
};
|
|
1088
|
-
};
|
|
1089
|
-
const de_KeyspaceSummary = (output, context) => {
|
|
1090
|
-
return {
|
|
1091
|
-
keyspaceName: __expectString(output.keyspaceName),
|
|
1092
|
-
resourceArn: __expectString(output.resourceArn),
|
|
1093
|
-
};
|
|
1094
|
-
};
|
|
1095
|
-
const de_KeyspaceSummaryList = (output, context) => {
|
|
1096
|
-
const retVal = (output || [])
|
|
1097
|
-
.filter((e) => e != null)
|
|
1098
|
-
.map((entry) => {
|
|
1099
|
-
if (entry === null) {
|
|
1100
|
-
return null;
|
|
1101
|
-
}
|
|
1102
|
-
return de_KeyspaceSummary(entry, context);
|
|
1103
|
-
});
|
|
1104
|
-
return retVal;
|
|
1105
|
-
};
|
|
1106
|
-
const de_ListKeyspacesResponse = (output, context) => {
|
|
1107
|
-
return {
|
|
1108
|
-
keyspaces: output.keyspaces != null ? de_KeyspaceSummaryList(output.keyspaces, context) : undefined,
|
|
1109
|
-
nextToken: __expectString(output.nextToken),
|
|
1110
|
-
};
|
|
1111
|
-
};
|
|
1112
|
-
const de_ListTablesResponse = (output, context) => {
|
|
1113
|
-
return {
|
|
1114
|
-
nextToken: __expectString(output.nextToken),
|
|
1115
|
-
tables: output.tables != null ? de_TableSummaryList(output.tables, context) : undefined,
|
|
1116
|
-
};
|
|
1117
|
-
};
|
|
1118
|
-
const de_ListTagsForResourceResponse = (output, context) => {
|
|
1119
|
-
return {
|
|
1120
|
-
nextToken: __expectString(output.nextToken),
|
|
1121
|
-
tags: output.tags != null ? de_TagList(output.tags, context) : undefined,
|
|
1122
|
-
};
|
|
1123
|
-
};
|
|
1124
|
-
const de_PartitionKey = (output, context) => {
|
|
1125
|
-
return {
|
|
1126
|
-
name: __expectString(output.name),
|
|
1127
|
-
};
|
|
1128
|
-
};
|
|
1129
|
-
const de_PartitionKeyList = (output, context) => {
|
|
1130
|
-
const retVal = (output || [])
|
|
1131
|
-
.filter((e) => e != null)
|
|
1132
|
-
.map((entry) => {
|
|
1133
|
-
if (entry === null) {
|
|
1134
|
-
return null;
|
|
1135
|
-
}
|
|
1136
|
-
return de_PartitionKey(entry, context);
|
|
749
|
+
return take(output, {
|
|
750
|
+
capacitySpecification: (_) => de_CapacitySpecificationSummary(_, context),
|
|
751
|
+
clientSideTimestamps: _json,
|
|
752
|
+
comment: _json,
|
|
753
|
+
creationTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
754
|
+
defaultTimeToLive: __expectInt32,
|
|
755
|
+
encryptionSpecification: _json,
|
|
756
|
+
keyspaceName: __expectString,
|
|
757
|
+
pointInTimeRecovery: (_) => de_PointInTimeRecoverySummary(_, context),
|
|
758
|
+
resourceArn: __expectString,
|
|
759
|
+
schemaDefinition: _json,
|
|
760
|
+
status: __expectString,
|
|
761
|
+
tableName: __expectString,
|
|
762
|
+
ttl: _json,
|
|
1137
763
|
});
|
|
1138
|
-
return retVal;
|
|
1139
764
|
};
|
|
1140
765
|
const de_PointInTimeRecoverySummary = (output, context) => {
|
|
1141
|
-
return {
|
|
1142
|
-
earliestRestorableTimestamp:
|
|
1143
|
-
|
|
1144
|
-
: undefined,
|
|
1145
|
-
status: __expectString(output.status),
|
|
1146
|
-
};
|
|
1147
|
-
};
|
|
1148
|
-
const de_ResourceNotFoundException = (output, context) => {
|
|
1149
|
-
return {
|
|
1150
|
-
message: __expectString(output.message),
|
|
1151
|
-
resourceArn: __expectString(output.resourceArn),
|
|
1152
|
-
};
|
|
1153
|
-
};
|
|
1154
|
-
const de_RestoreTableResponse = (output, context) => {
|
|
1155
|
-
return {
|
|
1156
|
-
restoredTableARN: __expectString(output.restoredTableARN),
|
|
1157
|
-
};
|
|
1158
|
-
};
|
|
1159
|
-
const de_SchemaDefinition = (output, context) => {
|
|
1160
|
-
return {
|
|
1161
|
-
allColumns: output.allColumns != null ? de_ColumnDefinitionList(output.allColumns, context) : undefined,
|
|
1162
|
-
clusteringKeys: output.clusteringKeys != null ? de_ClusteringKeyList(output.clusteringKeys, context) : undefined,
|
|
1163
|
-
partitionKeys: output.partitionKeys != null ? de_PartitionKeyList(output.partitionKeys, context) : undefined,
|
|
1164
|
-
staticColumns: output.staticColumns != null ? de_StaticColumnList(output.staticColumns, context) : undefined,
|
|
1165
|
-
};
|
|
1166
|
-
};
|
|
1167
|
-
const de_ServiceQuotaExceededException = (output, context) => {
|
|
1168
|
-
return {
|
|
1169
|
-
message: __expectString(output.message),
|
|
1170
|
-
};
|
|
1171
|
-
};
|
|
1172
|
-
const de_StaticColumn = (output, context) => {
|
|
1173
|
-
return {
|
|
1174
|
-
name: __expectString(output.name),
|
|
1175
|
-
};
|
|
1176
|
-
};
|
|
1177
|
-
const de_StaticColumnList = (output, context) => {
|
|
1178
|
-
const retVal = (output || [])
|
|
1179
|
-
.filter((e) => e != null)
|
|
1180
|
-
.map((entry) => {
|
|
1181
|
-
if (entry === null) {
|
|
1182
|
-
return null;
|
|
1183
|
-
}
|
|
1184
|
-
return de_StaticColumn(entry, context);
|
|
1185
|
-
});
|
|
1186
|
-
return retVal;
|
|
1187
|
-
};
|
|
1188
|
-
const de_TableSummary = (output, context) => {
|
|
1189
|
-
return {
|
|
1190
|
-
keyspaceName: __expectString(output.keyspaceName),
|
|
1191
|
-
resourceArn: __expectString(output.resourceArn),
|
|
1192
|
-
tableName: __expectString(output.tableName),
|
|
1193
|
-
};
|
|
1194
|
-
};
|
|
1195
|
-
const de_TableSummaryList = (output, context) => {
|
|
1196
|
-
const retVal = (output || [])
|
|
1197
|
-
.filter((e) => e != null)
|
|
1198
|
-
.map((entry) => {
|
|
1199
|
-
if (entry === null) {
|
|
1200
|
-
return null;
|
|
1201
|
-
}
|
|
1202
|
-
return de_TableSummary(entry, context);
|
|
1203
|
-
});
|
|
1204
|
-
return retVal;
|
|
1205
|
-
};
|
|
1206
|
-
const de_Tag = (output, context) => {
|
|
1207
|
-
return {
|
|
1208
|
-
key: __expectString(output.key),
|
|
1209
|
-
value: __expectString(output.value),
|
|
1210
|
-
};
|
|
1211
|
-
};
|
|
1212
|
-
const de_TagList = (output, context) => {
|
|
1213
|
-
const retVal = (output || [])
|
|
1214
|
-
.filter((e) => e != null)
|
|
1215
|
-
.map((entry) => {
|
|
1216
|
-
if (entry === null) {
|
|
1217
|
-
return null;
|
|
1218
|
-
}
|
|
1219
|
-
return de_Tag(entry, context);
|
|
766
|
+
return take(output, {
|
|
767
|
+
earliestRestorableTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
768
|
+
status: __expectString,
|
|
1220
769
|
});
|
|
1221
|
-
return retVal;
|
|
1222
|
-
};
|
|
1223
|
-
const de_TagResourceResponse = (output, context) => {
|
|
1224
|
-
return {};
|
|
1225
|
-
};
|
|
1226
|
-
const de_TimeToLive = (output, context) => {
|
|
1227
|
-
return {
|
|
1228
|
-
status: __expectString(output.status),
|
|
1229
|
-
};
|
|
1230
|
-
};
|
|
1231
|
-
const de_UntagResourceResponse = (output, context) => {
|
|
1232
|
-
return {};
|
|
1233
|
-
};
|
|
1234
|
-
const de_UpdateTableResponse = (output, context) => {
|
|
1235
|
-
return {
|
|
1236
|
-
resourceArn: __expectString(output.resourceArn),
|
|
1237
|
-
};
|
|
1238
|
-
};
|
|
1239
|
-
const de_ValidationException = (output, context) => {
|
|
1240
|
-
return {
|
|
1241
|
-
message: __expectString(output.message),
|
|
1242
|
-
};
|
|
1243
770
|
};
|
|
1244
771
|
const deserializeMetadata = (output) => ({
|
|
1245
772
|
httpStatusCode: output.statusCode,
|
|
@@ -1254,6 +781,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
|
1254
781
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
1255
782
|
};
|
|
1256
783
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
784
|
+
const throwDefaultError = withBaseException(__BaseException);
|
|
1257
785
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
1258
786
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1259
787
|
const contents = {
|