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