@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
|
@@ -6,132 +6,93 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
6
6
|
const KeyspacesServiceException_1 = require("../models/KeyspacesServiceException");
|
|
7
7
|
const models_0_1 = require("../models/models_0");
|
|
8
8
|
const se_CreateKeyspaceCommand = async (input, context) => {
|
|
9
|
-
const headers =
|
|
10
|
-
"content-type": "application/x-amz-json-1.0",
|
|
11
|
-
"x-amz-target": "KeyspacesService.CreateKeyspace",
|
|
12
|
-
};
|
|
9
|
+
const headers = sharedHeaders("CreateKeyspace");
|
|
13
10
|
let body;
|
|
14
|
-
body = JSON.stringify(
|
|
11
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
15
12
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
16
13
|
};
|
|
17
14
|
exports.se_CreateKeyspaceCommand = se_CreateKeyspaceCommand;
|
|
18
15
|
const se_CreateTableCommand = async (input, context) => {
|
|
19
|
-
const headers =
|
|
20
|
-
"content-type": "application/x-amz-json-1.0",
|
|
21
|
-
"x-amz-target": "KeyspacesService.CreateTable",
|
|
22
|
-
};
|
|
16
|
+
const headers = sharedHeaders("CreateTable");
|
|
23
17
|
let body;
|
|
24
|
-
body = JSON.stringify(
|
|
18
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
25
19
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
26
20
|
};
|
|
27
21
|
exports.se_CreateTableCommand = se_CreateTableCommand;
|
|
28
22
|
const se_DeleteKeyspaceCommand = async (input, context) => {
|
|
29
|
-
const headers =
|
|
30
|
-
"content-type": "application/x-amz-json-1.0",
|
|
31
|
-
"x-amz-target": "KeyspacesService.DeleteKeyspace",
|
|
32
|
-
};
|
|
23
|
+
const headers = sharedHeaders("DeleteKeyspace");
|
|
33
24
|
let body;
|
|
34
|
-
body = JSON.stringify(
|
|
25
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
35
26
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
36
27
|
};
|
|
37
28
|
exports.se_DeleteKeyspaceCommand = se_DeleteKeyspaceCommand;
|
|
38
29
|
const se_DeleteTableCommand = async (input, context) => {
|
|
39
|
-
const headers =
|
|
40
|
-
"content-type": "application/x-amz-json-1.0",
|
|
41
|
-
"x-amz-target": "KeyspacesService.DeleteTable",
|
|
42
|
-
};
|
|
30
|
+
const headers = sharedHeaders("DeleteTable");
|
|
43
31
|
let body;
|
|
44
|
-
body = JSON.stringify(
|
|
32
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
45
33
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
46
34
|
};
|
|
47
35
|
exports.se_DeleteTableCommand = se_DeleteTableCommand;
|
|
48
36
|
const se_GetKeyspaceCommand = async (input, context) => {
|
|
49
|
-
const headers =
|
|
50
|
-
"content-type": "application/x-amz-json-1.0",
|
|
51
|
-
"x-amz-target": "KeyspacesService.GetKeyspace",
|
|
52
|
-
};
|
|
37
|
+
const headers = sharedHeaders("GetKeyspace");
|
|
53
38
|
let body;
|
|
54
|
-
body = JSON.stringify(
|
|
39
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
55
40
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
56
41
|
};
|
|
57
42
|
exports.se_GetKeyspaceCommand = se_GetKeyspaceCommand;
|
|
58
43
|
const se_GetTableCommand = async (input, context) => {
|
|
59
|
-
const headers =
|
|
60
|
-
"content-type": "application/x-amz-json-1.0",
|
|
61
|
-
"x-amz-target": "KeyspacesService.GetTable",
|
|
62
|
-
};
|
|
44
|
+
const headers = sharedHeaders("GetTable");
|
|
63
45
|
let body;
|
|
64
|
-
body = JSON.stringify(
|
|
46
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
65
47
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
66
48
|
};
|
|
67
49
|
exports.se_GetTableCommand = se_GetTableCommand;
|
|
68
50
|
const se_ListKeyspacesCommand = async (input, context) => {
|
|
69
|
-
const headers =
|
|
70
|
-
"content-type": "application/x-amz-json-1.0",
|
|
71
|
-
"x-amz-target": "KeyspacesService.ListKeyspaces",
|
|
72
|
-
};
|
|
51
|
+
const headers = sharedHeaders("ListKeyspaces");
|
|
73
52
|
let body;
|
|
74
|
-
body = JSON.stringify(
|
|
53
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
75
54
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
76
55
|
};
|
|
77
56
|
exports.se_ListKeyspacesCommand = se_ListKeyspacesCommand;
|
|
78
57
|
const se_ListTablesCommand = async (input, context) => {
|
|
79
|
-
const headers =
|
|
80
|
-
"content-type": "application/x-amz-json-1.0",
|
|
81
|
-
"x-amz-target": "KeyspacesService.ListTables",
|
|
82
|
-
};
|
|
58
|
+
const headers = sharedHeaders("ListTables");
|
|
83
59
|
let body;
|
|
84
|
-
body = JSON.stringify(
|
|
60
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
85
61
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
86
62
|
};
|
|
87
63
|
exports.se_ListTablesCommand = se_ListTablesCommand;
|
|
88
64
|
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
89
|
-
const headers =
|
|
90
|
-
"content-type": "application/x-amz-json-1.0",
|
|
91
|
-
"x-amz-target": "KeyspacesService.ListTagsForResource",
|
|
92
|
-
};
|
|
65
|
+
const headers = sharedHeaders("ListTagsForResource");
|
|
93
66
|
let body;
|
|
94
|
-
body = JSON.stringify(
|
|
67
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
95
68
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
96
69
|
};
|
|
97
70
|
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
98
71
|
const se_RestoreTableCommand = async (input, context) => {
|
|
99
|
-
const headers =
|
|
100
|
-
"content-type": "application/x-amz-json-1.0",
|
|
101
|
-
"x-amz-target": "KeyspacesService.RestoreTable",
|
|
102
|
-
};
|
|
72
|
+
const headers = sharedHeaders("RestoreTable");
|
|
103
73
|
let body;
|
|
104
74
|
body = JSON.stringify(se_RestoreTableRequest(input, context));
|
|
105
75
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
106
76
|
};
|
|
107
77
|
exports.se_RestoreTableCommand = se_RestoreTableCommand;
|
|
108
78
|
const se_TagResourceCommand = async (input, context) => {
|
|
109
|
-
const headers =
|
|
110
|
-
"content-type": "application/x-amz-json-1.0",
|
|
111
|
-
"x-amz-target": "KeyspacesService.TagResource",
|
|
112
|
-
};
|
|
79
|
+
const headers = sharedHeaders("TagResource");
|
|
113
80
|
let body;
|
|
114
|
-
body = JSON.stringify(
|
|
81
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
115
82
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
116
83
|
};
|
|
117
84
|
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
118
85
|
const se_UntagResourceCommand = async (input, context) => {
|
|
119
|
-
const headers =
|
|
120
|
-
"content-type": "application/x-amz-json-1.0",
|
|
121
|
-
"x-amz-target": "KeyspacesService.UntagResource",
|
|
122
|
-
};
|
|
86
|
+
const headers = sharedHeaders("UntagResource");
|
|
123
87
|
let body;
|
|
124
|
-
body = JSON.stringify(
|
|
88
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
125
89
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
126
90
|
};
|
|
127
91
|
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
128
92
|
const se_UpdateTableCommand = async (input, context) => {
|
|
129
|
-
const headers =
|
|
130
|
-
"content-type": "application/x-amz-json-1.0",
|
|
131
|
-
"x-amz-target": "KeyspacesService.UpdateTable",
|
|
132
|
-
};
|
|
93
|
+
const headers = sharedHeaders("UpdateTable");
|
|
133
94
|
let body;
|
|
134
|
-
body = JSON.stringify(
|
|
95
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
135
96
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
136
97
|
};
|
|
137
98
|
exports.se_UpdateTableCommand = se_UpdateTableCommand;
|
|
@@ -141,12 +102,12 @@ const de_CreateKeyspaceCommand = async (output, context) => {
|
|
|
141
102
|
}
|
|
142
103
|
const data = await parseBody(output.body, context);
|
|
143
104
|
let contents = {};
|
|
144
|
-
contents =
|
|
105
|
+
contents = (0, smithy_client_1._json)(data);
|
|
145
106
|
const response = {
|
|
146
107
|
$metadata: deserializeMetadata(output),
|
|
147
108
|
...contents,
|
|
148
109
|
};
|
|
149
|
-
return
|
|
110
|
+
return response;
|
|
150
111
|
};
|
|
151
112
|
exports.de_CreateKeyspaceCommand = de_CreateKeyspaceCommand;
|
|
152
113
|
const de_CreateKeyspaceCommandError = async (output, context) => {
|
|
@@ -173,10 +134,9 @@ const de_CreateKeyspaceCommandError = async (output, context) => {
|
|
|
173
134
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
174
135
|
default:
|
|
175
136
|
const parsedBody = parsedOutput.body;
|
|
176
|
-
|
|
137
|
+
return throwDefaultError({
|
|
177
138
|
output,
|
|
178
139
|
parsedBody,
|
|
179
|
-
exceptionCtor: KeyspacesServiceException_1.KeyspacesServiceException,
|
|
180
140
|
errorCode,
|
|
181
141
|
});
|
|
182
142
|
}
|
|
@@ -187,12 +147,12 @@ const de_CreateTableCommand = async (output, context) => {
|
|
|
187
147
|
}
|
|
188
148
|
const data = await parseBody(output.body, context);
|
|
189
149
|
let contents = {};
|
|
190
|
-
contents =
|
|
150
|
+
contents = (0, smithy_client_1._json)(data);
|
|
191
151
|
const response = {
|
|
192
152
|
$metadata: deserializeMetadata(output),
|
|
193
153
|
...contents,
|
|
194
154
|
};
|
|
195
|
-
return
|
|
155
|
+
return response;
|
|
196
156
|
};
|
|
197
157
|
exports.de_CreateTableCommand = de_CreateTableCommand;
|
|
198
158
|
const de_CreateTableCommandError = async (output, context) => {
|
|
@@ -222,10 +182,9 @@ const de_CreateTableCommandError = async (output, context) => {
|
|
|
222
182
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
223
183
|
default:
|
|
224
184
|
const parsedBody = parsedOutput.body;
|
|
225
|
-
|
|
185
|
+
return throwDefaultError({
|
|
226
186
|
output,
|
|
227
187
|
parsedBody,
|
|
228
|
-
exceptionCtor: KeyspacesServiceException_1.KeyspacesServiceException,
|
|
229
188
|
errorCode,
|
|
230
189
|
});
|
|
231
190
|
}
|
|
@@ -236,12 +195,12 @@ const de_DeleteKeyspaceCommand = async (output, context) => {
|
|
|
236
195
|
}
|
|
237
196
|
const data = await parseBody(output.body, context);
|
|
238
197
|
let contents = {};
|
|
239
|
-
contents =
|
|
198
|
+
contents = (0, smithy_client_1._json)(data);
|
|
240
199
|
const response = {
|
|
241
200
|
$metadata: deserializeMetadata(output),
|
|
242
201
|
...contents,
|
|
243
202
|
};
|
|
244
|
-
return
|
|
203
|
+
return response;
|
|
245
204
|
};
|
|
246
205
|
exports.de_DeleteKeyspaceCommand = de_DeleteKeyspaceCommand;
|
|
247
206
|
const de_DeleteKeyspaceCommandError = async (output, context) => {
|
|
@@ -271,10 +230,9 @@ const de_DeleteKeyspaceCommandError = async (output, context) => {
|
|
|
271
230
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
272
231
|
default:
|
|
273
232
|
const parsedBody = parsedOutput.body;
|
|
274
|
-
|
|
233
|
+
return throwDefaultError({
|
|
275
234
|
output,
|
|
276
235
|
parsedBody,
|
|
277
|
-
exceptionCtor: KeyspacesServiceException_1.KeyspacesServiceException,
|
|
278
236
|
errorCode,
|
|
279
237
|
});
|
|
280
238
|
}
|
|
@@ -285,12 +243,12 @@ const de_DeleteTableCommand = async (output, context) => {
|
|
|
285
243
|
}
|
|
286
244
|
const data = await parseBody(output.body, context);
|
|
287
245
|
let contents = {};
|
|
288
|
-
contents =
|
|
246
|
+
contents = (0, smithy_client_1._json)(data);
|
|
289
247
|
const response = {
|
|
290
248
|
$metadata: deserializeMetadata(output),
|
|
291
249
|
...contents,
|
|
292
250
|
};
|
|
293
|
-
return
|
|
251
|
+
return response;
|
|
294
252
|
};
|
|
295
253
|
exports.de_DeleteTableCommand = de_DeleteTableCommand;
|
|
296
254
|
const de_DeleteTableCommandError = async (output, context) => {
|
|
@@ -320,10 +278,9 @@ const de_DeleteTableCommandError = async (output, context) => {
|
|
|
320
278
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
321
279
|
default:
|
|
322
280
|
const parsedBody = parsedOutput.body;
|
|
323
|
-
|
|
281
|
+
return throwDefaultError({
|
|
324
282
|
output,
|
|
325
283
|
parsedBody,
|
|
326
|
-
exceptionCtor: KeyspacesServiceException_1.KeyspacesServiceException,
|
|
327
284
|
errorCode,
|
|
328
285
|
});
|
|
329
286
|
}
|
|
@@ -334,12 +291,12 @@ const de_GetKeyspaceCommand = async (output, context) => {
|
|
|
334
291
|
}
|
|
335
292
|
const data = await parseBody(output.body, context);
|
|
336
293
|
let contents = {};
|
|
337
|
-
contents =
|
|
294
|
+
contents = (0, smithy_client_1._json)(data);
|
|
338
295
|
const response = {
|
|
339
296
|
$metadata: deserializeMetadata(output),
|
|
340
297
|
...contents,
|
|
341
298
|
};
|
|
342
|
-
return
|
|
299
|
+
return response;
|
|
343
300
|
};
|
|
344
301
|
exports.de_GetKeyspaceCommand = de_GetKeyspaceCommand;
|
|
345
302
|
const de_GetKeyspaceCommandError = async (output, context) => {
|
|
@@ -366,10 +323,9 @@ const de_GetKeyspaceCommandError = async (output, context) => {
|
|
|
366
323
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
367
324
|
default:
|
|
368
325
|
const parsedBody = parsedOutput.body;
|
|
369
|
-
|
|
326
|
+
return throwDefaultError({
|
|
370
327
|
output,
|
|
371
328
|
parsedBody,
|
|
372
|
-
exceptionCtor: KeyspacesServiceException_1.KeyspacesServiceException,
|
|
373
329
|
errorCode,
|
|
374
330
|
});
|
|
375
331
|
}
|
|
@@ -385,7 +341,7 @@ const de_GetTableCommand = async (output, context) => {
|
|
|
385
341
|
$metadata: deserializeMetadata(output),
|
|
386
342
|
...contents,
|
|
387
343
|
};
|
|
388
|
-
return
|
|
344
|
+
return response;
|
|
389
345
|
};
|
|
390
346
|
exports.de_GetTableCommand = de_GetTableCommand;
|
|
391
347
|
const de_GetTableCommandError = async (output, context) => {
|
|
@@ -412,10 +368,9 @@ const de_GetTableCommandError = async (output, context) => {
|
|
|
412
368
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
413
369
|
default:
|
|
414
370
|
const parsedBody = parsedOutput.body;
|
|
415
|
-
|
|
371
|
+
return throwDefaultError({
|
|
416
372
|
output,
|
|
417
373
|
parsedBody,
|
|
418
|
-
exceptionCtor: KeyspacesServiceException_1.KeyspacesServiceException,
|
|
419
374
|
errorCode,
|
|
420
375
|
});
|
|
421
376
|
}
|
|
@@ -426,12 +381,12 @@ const de_ListKeyspacesCommand = async (output, context) => {
|
|
|
426
381
|
}
|
|
427
382
|
const data = await parseBody(output.body, context);
|
|
428
383
|
let contents = {};
|
|
429
|
-
contents =
|
|
384
|
+
contents = (0, smithy_client_1._json)(data);
|
|
430
385
|
const response = {
|
|
431
386
|
$metadata: deserializeMetadata(output),
|
|
432
387
|
...contents,
|
|
433
388
|
};
|
|
434
|
-
return
|
|
389
|
+
return response;
|
|
435
390
|
};
|
|
436
391
|
exports.de_ListKeyspacesCommand = de_ListKeyspacesCommand;
|
|
437
392
|
const de_ListKeyspacesCommandError = async (output, context) => {
|
|
@@ -458,10 +413,9 @@ const de_ListKeyspacesCommandError = async (output, context) => {
|
|
|
458
413
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
459
414
|
default:
|
|
460
415
|
const parsedBody = parsedOutput.body;
|
|
461
|
-
|
|
416
|
+
return throwDefaultError({
|
|
462
417
|
output,
|
|
463
418
|
parsedBody,
|
|
464
|
-
exceptionCtor: KeyspacesServiceException_1.KeyspacesServiceException,
|
|
465
419
|
errorCode,
|
|
466
420
|
});
|
|
467
421
|
}
|
|
@@ -472,12 +426,12 @@ const de_ListTablesCommand = async (output, context) => {
|
|
|
472
426
|
}
|
|
473
427
|
const data = await parseBody(output.body, context);
|
|
474
428
|
let contents = {};
|
|
475
|
-
contents =
|
|
429
|
+
contents = (0, smithy_client_1._json)(data);
|
|
476
430
|
const response = {
|
|
477
431
|
$metadata: deserializeMetadata(output),
|
|
478
432
|
...contents,
|
|
479
433
|
};
|
|
480
|
-
return
|
|
434
|
+
return response;
|
|
481
435
|
};
|
|
482
436
|
exports.de_ListTablesCommand = de_ListTablesCommand;
|
|
483
437
|
const de_ListTablesCommandError = async (output, context) => {
|
|
@@ -504,10 +458,9 @@ const de_ListTablesCommandError = async (output, context) => {
|
|
|
504
458
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
505
459
|
default:
|
|
506
460
|
const parsedBody = parsedOutput.body;
|
|
507
|
-
|
|
461
|
+
return throwDefaultError({
|
|
508
462
|
output,
|
|
509
463
|
parsedBody,
|
|
510
|
-
exceptionCtor: KeyspacesServiceException_1.KeyspacesServiceException,
|
|
511
464
|
errorCode,
|
|
512
465
|
});
|
|
513
466
|
}
|
|
@@ -518,12 +471,12 @@ const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
518
471
|
}
|
|
519
472
|
const data = await parseBody(output.body, context);
|
|
520
473
|
let contents = {};
|
|
521
|
-
contents =
|
|
474
|
+
contents = (0, smithy_client_1._json)(data);
|
|
522
475
|
const response = {
|
|
523
476
|
$metadata: deserializeMetadata(output),
|
|
524
477
|
...contents,
|
|
525
478
|
};
|
|
526
|
-
return
|
|
479
|
+
return response;
|
|
527
480
|
};
|
|
528
481
|
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
529
482
|
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
@@ -550,10 +503,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
550
503
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
551
504
|
default:
|
|
552
505
|
const parsedBody = parsedOutput.body;
|
|
553
|
-
|
|
506
|
+
return throwDefaultError({
|
|
554
507
|
output,
|
|
555
508
|
parsedBody,
|
|
556
|
-
exceptionCtor: KeyspacesServiceException_1.KeyspacesServiceException,
|
|
557
509
|
errorCode,
|
|
558
510
|
});
|
|
559
511
|
}
|
|
@@ -564,12 +516,12 @@ const de_RestoreTableCommand = async (output, context) => {
|
|
|
564
516
|
}
|
|
565
517
|
const data = await parseBody(output.body, context);
|
|
566
518
|
let contents = {};
|
|
567
|
-
contents =
|
|
519
|
+
contents = (0, smithy_client_1._json)(data);
|
|
568
520
|
const response = {
|
|
569
521
|
$metadata: deserializeMetadata(output),
|
|
570
522
|
...contents,
|
|
571
523
|
};
|
|
572
|
-
return
|
|
524
|
+
return response;
|
|
573
525
|
};
|
|
574
526
|
exports.de_RestoreTableCommand = de_RestoreTableCommand;
|
|
575
527
|
const de_RestoreTableCommandError = async (output, context) => {
|
|
@@ -599,10 +551,9 @@ const de_RestoreTableCommandError = async (output, context) => {
|
|
|
599
551
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
600
552
|
default:
|
|
601
553
|
const parsedBody = parsedOutput.body;
|
|
602
|
-
|
|
554
|
+
return throwDefaultError({
|
|
603
555
|
output,
|
|
604
556
|
parsedBody,
|
|
605
|
-
exceptionCtor: KeyspacesServiceException_1.KeyspacesServiceException,
|
|
606
557
|
errorCode,
|
|
607
558
|
});
|
|
608
559
|
}
|
|
@@ -613,12 +564,12 @@ const de_TagResourceCommand = async (output, context) => {
|
|
|
613
564
|
}
|
|
614
565
|
const data = await parseBody(output.body, context);
|
|
615
566
|
let contents = {};
|
|
616
|
-
contents =
|
|
567
|
+
contents = (0, smithy_client_1._json)(data);
|
|
617
568
|
const response = {
|
|
618
569
|
$metadata: deserializeMetadata(output),
|
|
619
570
|
...contents,
|
|
620
571
|
};
|
|
621
|
-
return
|
|
572
|
+
return response;
|
|
622
573
|
};
|
|
623
574
|
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
624
575
|
const de_TagResourceCommandError = async (output, context) => {
|
|
@@ -645,10 +596,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
645
596
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
646
597
|
default:
|
|
647
598
|
const parsedBody = parsedOutput.body;
|
|
648
|
-
|
|
599
|
+
return throwDefaultError({
|
|
649
600
|
output,
|
|
650
601
|
parsedBody,
|
|
651
|
-
exceptionCtor: KeyspacesServiceException_1.KeyspacesServiceException,
|
|
652
602
|
errorCode,
|
|
653
603
|
});
|
|
654
604
|
}
|
|
@@ -659,12 +609,12 @@ const de_UntagResourceCommand = async (output, context) => {
|
|
|
659
609
|
}
|
|
660
610
|
const data = await parseBody(output.body, context);
|
|
661
611
|
let contents = {};
|
|
662
|
-
contents =
|
|
612
|
+
contents = (0, smithy_client_1._json)(data);
|
|
663
613
|
const response = {
|
|
664
614
|
$metadata: deserializeMetadata(output),
|
|
665
615
|
...contents,
|
|
666
616
|
};
|
|
667
|
-
return
|
|
617
|
+
return response;
|
|
668
618
|
};
|
|
669
619
|
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
670
620
|
const de_UntagResourceCommandError = async (output, context) => {
|
|
@@ -694,10 +644,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
694
644
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
695
645
|
default:
|
|
696
646
|
const parsedBody = parsedOutput.body;
|
|
697
|
-
|
|
647
|
+
return throwDefaultError({
|
|
698
648
|
output,
|
|
699
649
|
parsedBody,
|
|
700
|
-
exceptionCtor: KeyspacesServiceException_1.KeyspacesServiceException,
|
|
701
650
|
errorCode,
|
|
702
651
|
});
|
|
703
652
|
}
|
|
@@ -708,12 +657,12 @@ const de_UpdateTableCommand = async (output, context) => {
|
|
|
708
657
|
}
|
|
709
658
|
const data = await parseBody(output.body, context);
|
|
710
659
|
let contents = {};
|
|
711
|
-
contents =
|
|
660
|
+
contents = (0, smithy_client_1._json)(data);
|
|
712
661
|
const response = {
|
|
713
662
|
$metadata: deserializeMetadata(output),
|
|
714
663
|
...contents,
|
|
715
664
|
};
|
|
716
|
-
return
|
|
665
|
+
return response;
|
|
717
666
|
};
|
|
718
667
|
exports.de_UpdateTableCommand = de_UpdateTableCommand;
|
|
719
668
|
const de_UpdateTableCommandError = async (output, context) => {
|
|
@@ -743,17 +692,16 @@ const de_UpdateTableCommandError = async (output, context) => {
|
|
|
743
692
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
744
693
|
default:
|
|
745
694
|
const parsedBody = parsedOutput.body;
|
|
746
|
-
|
|
695
|
+
return throwDefaultError({
|
|
747
696
|
output,
|
|
748
697
|
parsedBody,
|
|
749
|
-
exceptionCtor: KeyspacesServiceException_1.KeyspacesServiceException,
|
|
750
698
|
errorCode,
|
|
751
699
|
});
|
|
752
700
|
}
|
|
753
701
|
};
|
|
754
702
|
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
755
703
|
const body = parsedOutput.body;
|
|
756
|
-
const deserialized =
|
|
704
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
757
705
|
const exception = new models_0_1.AccessDeniedException({
|
|
758
706
|
$metadata: deserializeMetadata(parsedOutput),
|
|
759
707
|
...deserialized,
|
|
@@ -762,7 +710,7 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
|
762
710
|
};
|
|
763
711
|
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
764
712
|
const body = parsedOutput.body;
|
|
765
|
-
const deserialized =
|
|
713
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
766
714
|
const exception = new models_0_1.ConflictException({
|
|
767
715
|
$metadata: deserializeMetadata(parsedOutput),
|
|
768
716
|
...deserialized,
|
|
@@ -771,7 +719,7 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
771
719
|
};
|
|
772
720
|
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
773
721
|
const body = parsedOutput.body;
|
|
774
|
-
const deserialized =
|
|
722
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
775
723
|
const exception = new models_0_1.InternalServerException({
|
|
776
724
|
$metadata: deserializeMetadata(parsedOutput),
|
|
777
725
|
...deserialized,
|
|
@@ -780,7 +728,7 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
|
780
728
|
};
|
|
781
729
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
782
730
|
const body = parsedOutput.body;
|
|
783
|
-
const deserialized =
|
|
731
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
784
732
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
785
733
|
$metadata: deserializeMetadata(parsedOutput),
|
|
786
734
|
...deserialized,
|
|
@@ -789,7 +737,7 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
789
737
|
};
|
|
790
738
|
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
791
739
|
const body = parsedOutput.body;
|
|
792
|
-
const deserialized =
|
|
740
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
793
741
|
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
794
742
|
$metadata: deserializeMetadata(parsedOutput),
|
|
795
743
|
...deserialized,
|
|
@@ -798,516 +746,56 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
798
746
|
};
|
|
799
747
|
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
800
748
|
const body = parsedOutput.body;
|
|
801
|
-
const deserialized =
|
|
749
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
802
750
|
const exception = new models_0_1.ValidationException({
|
|
803
751
|
$metadata: deserializeMetadata(parsedOutput),
|
|
804
752
|
...deserialized,
|
|
805
753
|
});
|
|
806
754
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
807
755
|
};
|
|
808
|
-
const se_CapacitySpecification = (input, context) => {
|
|
809
|
-
return {
|
|
810
|
-
...(input.readCapacityUnits != null && { readCapacityUnits: input.readCapacityUnits }),
|
|
811
|
-
...(input.throughputMode != null && { throughputMode: input.throughputMode }),
|
|
812
|
-
...(input.writeCapacityUnits != null && { writeCapacityUnits: input.writeCapacityUnits }),
|
|
813
|
-
};
|
|
814
|
-
};
|
|
815
|
-
const se_ClientSideTimestamps = (input, context) => {
|
|
816
|
-
return {
|
|
817
|
-
...(input.status != null && { status: input.status }),
|
|
818
|
-
};
|
|
819
|
-
};
|
|
820
|
-
const se_ClusteringKey = (input, context) => {
|
|
821
|
-
return {
|
|
822
|
-
...(input.name != null && { name: input.name }),
|
|
823
|
-
...(input.orderBy != null && { orderBy: input.orderBy }),
|
|
824
|
-
};
|
|
825
|
-
};
|
|
826
|
-
const se_ClusteringKeyList = (input, context) => {
|
|
827
|
-
return input
|
|
828
|
-
.filter((e) => e != null)
|
|
829
|
-
.map((entry) => {
|
|
830
|
-
return se_ClusteringKey(entry, context);
|
|
831
|
-
});
|
|
832
|
-
};
|
|
833
|
-
const se_ColumnDefinition = (input, context) => {
|
|
834
|
-
return {
|
|
835
|
-
...(input.name != null && { name: input.name }),
|
|
836
|
-
...(input.type != null && { type: input.type }),
|
|
837
|
-
};
|
|
838
|
-
};
|
|
839
|
-
const se_ColumnDefinitionList = (input, context) => {
|
|
840
|
-
return input
|
|
841
|
-
.filter((e) => e != null)
|
|
842
|
-
.map((entry) => {
|
|
843
|
-
return se_ColumnDefinition(entry, context);
|
|
844
|
-
});
|
|
845
|
-
};
|
|
846
|
-
const se_Comment = (input, context) => {
|
|
847
|
-
return {
|
|
848
|
-
...(input.message != null && { message: input.message }),
|
|
849
|
-
};
|
|
850
|
-
};
|
|
851
|
-
const se_CreateKeyspaceRequest = (input, context) => {
|
|
852
|
-
return {
|
|
853
|
-
...(input.keyspaceName != null && { keyspaceName: input.keyspaceName }),
|
|
854
|
-
...(input.tags != null && { tags: se_TagList(input.tags, context) }),
|
|
855
|
-
};
|
|
856
|
-
};
|
|
857
|
-
const se_CreateTableRequest = (input, context) => {
|
|
858
|
-
return {
|
|
859
|
-
...(input.capacitySpecification != null && {
|
|
860
|
-
capacitySpecification: se_CapacitySpecification(input.capacitySpecification, context),
|
|
861
|
-
}),
|
|
862
|
-
...(input.clientSideTimestamps != null && {
|
|
863
|
-
clientSideTimestamps: se_ClientSideTimestamps(input.clientSideTimestamps, context),
|
|
864
|
-
}),
|
|
865
|
-
...(input.comment != null && { comment: se_Comment(input.comment, context) }),
|
|
866
|
-
...(input.defaultTimeToLive != null && { defaultTimeToLive: input.defaultTimeToLive }),
|
|
867
|
-
...(input.encryptionSpecification != null && {
|
|
868
|
-
encryptionSpecification: se_EncryptionSpecification(input.encryptionSpecification, context),
|
|
869
|
-
}),
|
|
870
|
-
...(input.keyspaceName != null && { keyspaceName: input.keyspaceName }),
|
|
871
|
-
...(input.pointInTimeRecovery != null && {
|
|
872
|
-
pointInTimeRecovery: se_PointInTimeRecovery(input.pointInTimeRecovery, context),
|
|
873
|
-
}),
|
|
874
|
-
...(input.schemaDefinition != null && { schemaDefinition: se_SchemaDefinition(input.schemaDefinition, context) }),
|
|
875
|
-
...(input.tableName != null && { tableName: input.tableName }),
|
|
876
|
-
...(input.tags != null && { tags: se_TagList(input.tags, context) }),
|
|
877
|
-
...(input.ttl != null && { ttl: se_TimeToLive(input.ttl, context) }),
|
|
878
|
-
};
|
|
879
|
-
};
|
|
880
|
-
const se_DeleteKeyspaceRequest = (input, context) => {
|
|
881
|
-
return {
|
|
882
|
-
...(input.keyspaceName != null && { keyspaceName: input.keyspaceName }),
|
|
883
|
-
};
|
|
884
|
-
};
|
|
885
|
-
const se_DeleteTableRequest = (input, context) => {
|
|
886
|
-
return {
|
|
887
|
-
...(input.keyspaceName != null && { keyspaceName: input.keyspaceName }),
|
|
888
|
-
...(input.tableName != null && { tableName: input.tableName }),
|
|
889
|
-
};
|
|
890
|
-
};
|
|
891
|
-
const se_EncryptionSpecification = (input, context) => {
|
|
892
|
-
return {
|
|
893
|
-
...(input.kmsKeyIdentifier != null && { kmsKeyIdentifier: input.kmsKeyIdentifier }),
|
|
894
|
-
...(input.type != null && { type: input.type }),
|
|
895
|
-
};
|
|
896
|
-
};
|
|
897
|
-
const se_GetKeyspaceRequest = (input, context) => {
|
|
898
|
-
return {
|
|
899
|
-
...(input.keyspaceName != null && { keyspaceName: input.keyspaceName }),
|
|
900
|
-
};
|
|
901
|
-
};
|
|
902
|
-
const se_GetTableRequest = (input, context) => {
|
|
903
|
-
return {
|
|
904
|
-
...(input.keyspaceName != null && { keyspaceName: input.keyspaceName }),
|
|
905
|
-
...(input.tableName != null && { tableName: input.tableName }),
|
|
906
|
-
};
|
|
907
|
-
};
|
|
908
|
-
const se_ListKeyspacesRequest = (input, context) => {
|
|
909
|
-
return {
|
|
910
|
-
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
911
|
-
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
912
|
-
};
|
|
913
|
-
};
|
|
914
|
-
const se_ListTablesRequest = (input, context) => {
|
|
915
|
-
return {
|
|
916
|
-
...(input.keyspaceName != null && { keyspaceName: input.keyspaceName }),
|
|
917
|
-
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
918
|
-
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
919
|
-
};
|
|
920
|
-
};
|
|
921
|
-
const se_ListTagsForResourceRequest = (input, context) => {
|
|
922
|
-
return {
|
|
923
|
-
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
924
|
-
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
925
|
-
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
926
|
-
};
|
|
927
|
-
};
|
|
928
|
-
const se_PartitionKey = (input, context) => {
|
|
929
|
-
return {
|
|
930
|
-
...(input.name != null && { name: input.name }),
|
|
931
|
-
};
|
|
932
|
-
};
|
|
933
|
-
const se_PartitionKeyList = (input, context) => {
|
|
934
|
-
return input
|
|
935
|
-
.filter((e) => e != null)
|
|
936
|
-
.map((entry) => {
|
|
937
|
-
return se_PartitionKey(entry, context);
|
|
938
|
-
});
|
|
939
|
-
};
|
|
940
|
-
const se_PointInTimeRecovery = (input, context) => {
|
|
941
|
-
return {
|
|
942
|
-
...(input.status != null && { status: input.status }),
|
|
943
|
-
};
|
|
944
|
-
};
|
|
945
756
|
const se_RestoreTableRequest = (input, context) => {
|
|
946
|
-
return {
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
...(input.restoreTimestamp != null && { restoreTimestamp: Math.round(input.restoreTimestamp.getTime() / 1000) }),
|
|
957
|
-
...(input.sourceKeyspaceName != null && { sourceKeyspaceName: input.sourceKeyspaceName }),
|
|
958
|
-
...(input.sourceTableName != null && { sourceTableName: input.sourceTableName }),
|
|
959
|
-
...(input.tagsOverride != null && { tagsOverride: se_TagList(input.tagsOverride, context) }),
|
|
960
|
-
...(input.targetKeyspaceName != null && { targetKeyspaceName: input.targetKeyspaceName }),
|
|
961
|
-
...(input.targetTableName != null && { targetTableName: input.targetTableName }),
|
|
962
|
-
};
|
|
963
|
-
};
|
|
964
|
-
const se_SchemaDefinition = (input, context) => {
|
|
965
|
-
return {
|
|
966
|
-
...(input.allColumns != null && { allColumns: se_ColumnDefinitionList(input.allColumns, context) }),
|
|
967
|
-
...(input.clusteringKeys != null && { clusteringKeys: se_ClusteringKeyList(input.clusteringKeys, context) }),
|
|
968
|
-
...(input.partitionKeys != null && { partitionKeys: se_PartitionKeyList(input.partitionKeys, context) }),
|
|
969
|
-
...(input.staticColumns != null && { staticColumns: se_StaticColumnList(input.staticColumns, context) }),
|
|
970
|
-
};
|
|
971
|
-
};
|
|
972
|
-
const se_StaticColumn = (input, context) => {
|
|
973
|
-
return {
|
|
974
|
-
...(input.name != null && { name: input.name }),
|
|
975
|
-
};
|
|
976
|
-
};
|
|
977
|
-
const se_StaticColumnList = (input, context) => {
|
|
978
|
-
return input
|
|
979
|
-
.filter((e) => e != null)
|
|
980
|
-
.map((entry) => {
|
|
981
|
-
return se_StaticColumn(entry, context);
|
|
757
|
+
return (0, smithy_client_1.take)(input, {
|
|
758
|
+
capacitySpecificationOverride: smithy_client_1._json,
|
|
759
|
+
encryptionSpecificationOverride: smithy_client_1._json,
|
|
760
|
+
pointInTimeRecoveryOverride: smithy_client_1._json,
|
|
761
|
+
restoreTimestamp: (_) => Math.round(_.getTime() / 1000),
|
|
762
|
+
sourceKeyspaceName: [],
|
|
763
|
+
sourceTableName: [],
|
|
764
|
+
tagsOverride: smithy_client_1._json,
|
|
765
|
+
targetKeyspaceName: [],
|
|
766
|
+
targetTableName: [],
|
|
982
767
|
});
|
|
983
768
|
};
|
|
984
|
-
const se_Tag = (input, context) => {
|
|
985
|
-
return {
|
|
986
|
-
...(input.key != null && { key: input.key }),
|
|
987
|
-
...(input.value != null && { value: input.value }),
|
|
988
|
-
};
|
|
989
|
-
};
|
|
990
|
-
const se_TagList = (input, context) => {
|
|
991
|
-
return input
|
|
992
|
-
.filter((e) => e != null)
|
|
993
|
-
.map((entry) => {
|
|
994
|
-
return se_Tag(entry, context);
|
|
995
|
-
});
|
|
996
|
-
};
|
|
997
|
-
const se_TagResourceRequest = (input, context) => {
|
|
998
|
-
return {
|
|
999
|
-
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
1000
|
-
...(input.tags != null && { tags: se_TagList(input.tags, context) }),
|
|
1001
|
-
};
|
|
1002
|
-
};
|
|
1003
|
-
const se_TimeToLive = (input, context) => {
|
|
1004
|
-
return {
|
|
1005
|
-
...(input.status != null && { status: input.status }),
|
|
1006
|
-
};
|
|
1007
|
-
};
|
|
1008
|
-
const se_UntagResourceRequest = (input, context) => {
|
|
1009
|
-
return {
|
|
1010
|
-
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
1011
|
-
...(input.tags != null && { tags: se_TagList(input.tags, context) }),
|
|
1012
|
-
};
|
|
1013
|
-
};
|
|
1014
|
-
const se_UpdateTableRequest = (input, context) => {
|
|
1015
|
-
return {
|
|
1016
|
-
...(input.addColumns != null && { addColumns: se_ColumnDefinitionList(input.addColumns, context) }),
|
|
1017
|
-
...(input.capacitySpecification != null && {
|
|
1018
|
-
capacitySpecification: se_CapacitySpecification(input.capacitySpecification, context),
|
|
1019
|
-
}),
|
|
1020
|
-
...(input.clientSideTimestamps != null && {
|
|
1021
|
-
clientSideTimestamps: se_ClientSideTimestamps(input.clientSideTimestamps, context),
|
|
1022
|
-
}),
|
|
1023
|
-
...(input.defaultTimeToLive != null && { defaultTimeToLive: input.defaultTimeToLive }),
|
|
1024
|
-
...(input.encryptionSpecification != null && {
|
|
1025
|
-
encryptionSpecification: se_EncryptionSpecification(input.encryptionSpecification, context),
|
|
1026
|
-
}),
|
|
1027
|
-
...(input.keyspaceName != null && { keyspaceName: input.keyspaceName }),
|
|
1028
|
-
...(input.pointInTimeRecovery != null && {
|
|
1029
|
-
pointInTimeRecovery: se_PointInTimeRecovery(input.pointInTimeRecovery, context),
|
|
1030
|
-
}),
|
|
1031
|
-
...(input.tableName != null && { tableName: input.tableName }),
|
|
1032
|
-
...(input.ttl != null && { ttl: se_TimeToLive(input.ttl, context) }),
|
|
1033
|
-
};
|
|
1034
|
-
};
|
|
1035
|
-
const de_AccessDeniedException = (output, context) => {
|
|
1036
|
-
return {
|
|
1037
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
1038
|
-
};
|
|
1039
|
-
};
|
|
1040
769
|
const de_CapacitySpecificationSummary = (output, context) => {
|
|
1041
|
-
return {
|
|
1042
|
-
lastUpdateToPayPerRequestTimestamp:
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
throughputMode: (0, smithy_client_1.expectString)(output.throughputMode),
|
|
1047
|
-
writeCapacityUnits: (0, smithy_client_1.expectLong)(output.writeCapacityUnits),
|
|
1048
|
-
};
|
|
1049
|
-
};
|
|
1050
|
-
const de_ClientSideTimestamps = (output, context) => {
|
|
1051
|
-
return {
|
|
1052
|
-
status: (0, smithy_client_1.expectString)(output.status),
|
|
1053
|
-
};
|
|
1054
|
-
};
|
|
1055
|
-
const de_ClusteringKey = (output, context) => {
|
|
1056
|
-
return {
|
|
1057
|
-
name: (0, smithy_client_1.expectString)(output.name),
|
|
1058
|
-
orderBy: (0, smithy_client_1.expectString)(output.orderBy),
|
|
1059
|
-
};
|
|
1060
|
-
};
|
|
1061
|
-
const de_ClusteringKeyList = (output, context) => {
|
|
1062
|
-
const retVal = (output || [])
|
|
1063
|
-
.filter((e) => e != null)
|
|
1064
|
-
.map((entry) => {
|
|
1065
|
-
if (entry === null) {
|
|
1066
|
-
return null;
|
|
1067
|
-
}
|
|
1068
|
-
return de_ClusteringKey(entry, context);
|
|
1069
|
-
});
|
|
1070
|
-
return retVal;
|
|
1071
|
-
};
|
|
1072
|
-
const de_ColumnDefinition = (output, context) => {
|
|
1073
|
-
return {
|
|
1074
|
-
name: (0, smithy_client_1.expectString)(output.name),
|
|
1075
|
-
type: (0, smithy_client_1.expectString)(output.type),
|
|
1076
|
-
};
|
|
1077
|
-
};
|
|
1078
|
-
const de_ColumnDefinitionList = (output, context) => {
|
|
1079
|
-
const retVal = (output || [])
|
|
1080
|
-
.filter((e) => e != null)
|
|
1081
|
-
.map((entry) => {
|
|
1082
|
-
if (entry === null) {
|
|
1083
|
-
return null;
|
|
1084
|
-
}
|
|
1085
|
-
return de_ColumnDefinition(entry, context);
|
|
770
|
+
return (0, smithy_client_1.take)(output, {
|
|
771
|
+
lastUpdateToPayPerRequestTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
772
|
+
readCapacityUnits: smithy_client_1.expectLong,
|
|
773
|
+
throughputMode: smithy_client_1.expectString,
|
|
774
|
+
writeCapacityUnits: smithy_client_1.expectLong,
|
|
1086
775
|
});
|
|
1087
|
-
return retVal;
|
|
1088
|
-
};
|
|
1089
|
-
const de_Comment = (output, context) => {
|
|
1090
|
-
return {
|
|
1091
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
1092
|
-
};
|
|
1093
|
-
};
|
|
1094
|
-
const de_ConflictException = (output, context) => {
|
|
1095
|
-
return {
|
|
1096
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
1097
|
-
};
|
|
1098
|
-
};
|
|
1099
|
-
const de_CreateKeyspaceResponse = (output, context) => {
|
|
1100
|
-
return {
|
|
1101
|
-
resourceArn: (0, smithy_client_1.expectString)(output.resourceArn),
|
|
1102
|
-
};
|
|
1103
|
-
};
|
|
1104
|
-
const de_CreateTableResponse = (output, context) => {
|
|
1105
|
-
return {
|
|
1106
|
-
resourceArn: (0, smithy_client_1.expectString)(output.resourceArn),
|
|
1107
|
-
};
|
|
1108
|
-
};
|
|
1109
|
-
const de_DeleteKeyspaceResponse = (output, context) => {
|
|
1110
|
-
return {};
|
|
1111
|
-
};
|
|
1112
|
-
const de_DeleteTableResponse = (output, context) => {
|
|
1113
|
-
return {};
|
|
1114
|
-
};
|
|
1115
|
-
const de_EncryptionSpecification = (output, context) => {
|
|
1116
|
-
return {
|
|
1117
|
-
kmsKeyIdentifier: (0, smithy_client_1.expectString)(output.kmsKeyIdentifier),
|
|
1118
|
-
type: (0, smithy_client_1.expectString)(output.type),
|
|
1119
|
-
};
|
|
1120
|
-
};
|
|
1121
|
-
const de_GetKeyspaceResponse = (output, context) => {
|
|
1122
|
-
return {
|
|
1123
|
-
keyspaceName: (0, smithy_client_1.expectString)(output.keyspaceName),
|
|
1124
|
-
resourceArn: (0, smithy_client_1.expectString)(output.resourceArn),
|
|
1125
|
-
};
|
|
1126
776
|
};
|
|
1127
777
|
const de_GetTableResponse = (output, context) => {
|
|
1128
|
-
return {
|
|
1129
|
-
capacitySpecification:
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
pointInTimeRecovery: output.pointInTimeRecovery != null
|
|
1143
|
-
? de_PointInTimeRecoverySummary(output.pointInTimeRecovery, context)
|
|
1144
|
-
: undefined,
|
|
1145
|
-
resourceArn: (0, smithy_client_1.expectString)(output.resourceArn),
|
|
1146
|
-
schemaDefinition: output.schemaDefinition != null ? de_SchemaDefinition(output.schemaDefinition, context) : undefined,
|
|
1147
|
-
status: (0, smithy_client_1.expectString)(output.status),
|
|
1148
|
-
tableName: (0, smithy_client_1.expectString)(output.tableName),
|
|
1149
|
-
ttl: output.ttl != null ? de_TimeToLive(output.ttl, context) : undefined,
|
|
1150
|
-
};
|
|
1151
|
-
};
|
|
1152
|
-
const de_InternalServerException = (output, context) => {
|
|
1153
|
-
return {
|
|
1154
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
1155
|
-
};
|
|
1156
|
-
};
|
|
1157
|
-
const de_KeyspaceSummary = (output, context) => {
|
|
1158
|
-
return {
|
|
1159
|
-
keyspaceName: (0, smithy_client_1.expectString)(output.keyspaceName),
|
|
1160
|
-
resourceArn: (0, smithy_client_1.expectString)(output.resourceArn),
|
|
1161
|
-
};
|
|
1162
|
-
};
|
|
1163
|
-
const de_KeyspaceSummaryList = (output, context) => {
|
|
1164
|
-
const retVal = (output || [])
|
|
1165
|
-
.filter((e) => e != null)
|
|
1166
|
-
.map((entry) => {
|
|
1167
|
-
if (entry === null) {
|
|
1168
|
-
return null;
|
|
1169
|
-
}
|
|
1170
|
-
return de_KeyspaceSummary(entry, context);
|
|
778
|
+
return (0, smithy_client_1.take)(output, {
|
|
779
|
+
capacitySpecification: (_) => de_CapacitySpecificationSummary(_, context),
|
|
780
|
+
clientSideTimestamps: smithy_client_1._json,
|
|
781
|
+
comment: smithy_client_1._json,
|
|
782
|
+
creationTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
783
|
+
defaultTimeToLive: smithy_client_1.expectInt32,
|
|
784
|
+
encryptionSpecification: smithy_client_1._json,
|
|
785
|
+
keyspaceName: smithy_client_1.expectString,
|
|
786
|
+
pointInTimeRecovery: (_) => de_PointInTimeRecoverySummary(_, context),
|
|
787
|
+
resourceArn: smithy_client_1.expectString,
|
|
788
|
+
schemaDefinition: smithy_client_1._json,
|
|
789
|
+
status: smithy_client_1.expectString,
|
|
790
|
+
tableName: smithy_client_1.expectString,
|
|
791
|
+
ttl: smithy_client_1._json,
|
|
1171
792
|
});
|
|
1172
|
-
return retVal;
|
|
1173
|
-
};
|
|
1174
|
-
const de_ListKeyspacesResponse = (output, context) => {
|
|
1175
|
-
return {
|
|
1176
|
-
keyspaces: output.keyspaces != null ? de_KeyspaceSummaryList(output.keyspaces, context) : undefined,
|
|
1177
|
-
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
1178
|
-
};
|
|
1179
|
-
};
|
|
1180
|
-
const de_ListTablesResponse = (output, context) => {
|
|
1181
|
-
return {
|
|
1182
|
-
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
1183
|
-
tables: output.tables != null ? de_TableSummaryList(output.tables, context) : undefined,
|
|
1184
|
-
};
|
|
1185
|
-
};
|
|
1186
|
-
const de_ListTagsForResourceResponse = (output, context) => {
|
|
1187
|
-
return {
|
|
1188
|
-
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
1189
|
-
tags: output.tags != null ? de_TagList(output.tags, context) : undefined,
|
|
1190
|
-
};
|
|
1191
|
-
};
|
|
1192
|
-
const de_PartitionKey = (output, context) => {
|
|
1193
|
-
return {
|
|
1194
|
-
name: (0, smithy_client_1.expectString)(output.name),
|
|
1195
|
-
};
|
|
1196
|
-
};
|
|
1197
|
-
const de_PartitionKeyList = (output, context) => {
|
|
1198
|
-
const retVal = (output || [])
|
|
1199
|
-
.filter((e) => e != null)
|
|
1200
|
-
.map((entry) => {
|
|
1201
|
-
if (entry === null) {
|
|
1202
|
-
return null;
|
|
1203
|
-
}
|
|
1204
|
-
return de_PartitionKey(entry, context);
|
|
1205
|
-
});
|
|
1206
|
-
return retVal;
|
|
1207
793
|
};
|
|
1208
794
|
const de_PointInTimeRecoverySummary = (output, context) => {
|
|
1209
|
-
return {
|
|
1210
|
-
earliestRestorableTimestamp:
|
|
1211
|
-
|
|
1212
|
-
: undefined,
|
|
1213
|
-
status: (0, smithy_client_1.expectString)(output.status),
|
|
1214
|
-
};
|
|
1215
|
-
};
|
|
1216
|
-
const de_ResourceNotFoundException = (output, context) => {
|
|
1217
|
-
return {
|
|
1218
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
1219
|
-
resourceArn: (0, smithy_client_1.expectString)(output.resourceArn),
|
|
1220
|
-
};
|
|
1221
|
-
};
|
|
1222
|
-
const de_RestoreTableResponse = (output, context) => {
|
|
1223
|
-
return {
|
|
1224
|
-
restoredTableARN: (0, smithy_client_1.expectString)(output.restoredTableARN),
|
|
1225
|
-
};
|
|
1226
|
-
};
|
|
1227
|
-
const de_SchemaDefinition = (output, context) => {
|
|
1228
|
-
return {
|
|
1229
|
-
allColumns: output.allColumns != null ? de_ColumnDefinitionList(output.allColumns, context) : undefined,
|
|
1230
|
-
clusteringKeys: output.clusteringKeys != null ? de_ClusteringKeyList(output.clusteringKeys, context) : undefined,
|
|
1231
|
-
partitionKeys: output.partitionKeys != null ? de_PartitionKeyList(output.partitionKeys, context) : undefined,
|
|
1232
|
-
staticColumns: output.staticColumns != null ? de_StaticColumnList(output.staticColumns, context) : undefined,
|
|
1233
|
-
};
|
|
1234
|
-
};
|
|
1235
|
-
const de_ServiceQuotaExceededException = (output, context) => {
|
|
1236
|
-
return {
|
|
1237
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
1238
|
-
};
|
|
1239
|
-
};
|
|
1240
|
-
const de_StaticColumn = (output, context) => {
|
|
1241
|
-
return {
|
|
1242
|
-
name: (0, smithy_client_1.expectString)(output.name),
|
|
1243
|
-
};
|
|
1244
|
-
};
|
|
1245
|
-
const de_StaticColumnList = (output, context) => {
|
|
1246
|
-
const retVal = (output || [])
|
|
1247
|
-
.filter((e) => e != null)
|
|
1248
|
-
.map((entry) => {
|
|
1249
|
-
if (entry === null) {
|
|
1250
|
-
return null;
|
|
1251
|
-
}
|
|
1252
|
-
return de_StaticColumn(entry, context);
|
|
795
|
+
return (0, smithy_client_1.take)(output, {
|
|
796
|
+
earliestRestorableTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
797
|
+
status: smithy_client_1.expectString,
|
|
1253
798
|
});
|
|
1254
|
-
return retVal;
|
|
1255
|
-
};
|
|
1256
|
-
const de_TableSummary = (output, context) => {
|
|
1257
|
-
return {
|
|
1258
|
-
keyspaceName: (0, smithy_client_1.expectString)(output.keyspaceName),
|
|
1259
|
-
resourceArn: (0, smithy_client_1.expectString)(output.resourceArn),
|
|
1260
|
-
tableName: (0, smithy_client_1.expectString)(output.tableName),
|
|
1261
|
-
};
|
|
1262
|
-
};
|
|
1263
|
-
const de_TableSummaryList = (output, context) => {
|
|
1264
|
-
const retVal = (output || [])
|
|
1265
|
-
.filter((e) => e != null)
|
|
1266
|
-
.map((entry) => {
|
|
1267
|
-
if (entry === null) {
|
|
1268
|
-
return null;
|
|
1269
|
-
}
|
|
1270
|
-
return de_TableSummary(entry, context);
|
|
1271
|
-
});
|
|
1272
|
-
return retVal;
|
|
1273
|
-
};
|
|
1274
|
-
const de_Tag = (output, context) => {
|
|
1275
|
-
return {
|
|
1276
|
-
key: (0, smithy_client_1.expectString)(output.key),
|
|
1277
|
-
value: (0, smithy_client_1.expectString)(output.value),
|
|
1278
|
-
};
|
|
1279
|
-
};
|
|
1280
|
-
const de_TagList = (output, context) => {
|
|
1281
|
-
const retVal = (output || [])
|
|
1282
|
-
.filter((e) => e != null)
|
|
1283
|
-
.map((entry) => {
|
|
1284
|
-
if (entry === null) {
|
|
1285
|
-
return null;
|
|
1286
|
-
}
|
|
1287
|
-
return de_Tag(entry, context);
|
|
1288
|
-
});
|
|
1289
|
-
return retVal;
|
|
1290
|
-
};
|
|
1291
|
-
const de_TagResourceResponse = (output, context) => {
|
|
1292
|
-
return {};
|
|
1293
|
-
};
|
|
1294
|
-
const de_TimeToLive = (output, context) => {
|
|
1295
|
-
return {
|
|
1296
|
-
status: (0, smithy_client_1.expectString)(output.status),
|
|
1297
|
-
};
|
|
1298
|
-
};
|
|
1299
|
-
const de_UntagResourceResponse = (output, context) => {
|
|
1300
|
-
return {};
|
|
1301
|
-
};
|
|
1302
|
-
const de_UpdateTableResponse = (output, context) => {
|
|
1303
|
-
return {
|
|
1304
|
-
resourceArn: (0, smithy_client_1.expectString)(output.resourceArn),
|
|
1305
|
-
};
|
|
1306
|
-
};
|
|
1307
|
-
const de_ValidationException = (output, context) => {
|
|
1308
|
-
return {
|
|
1309
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
1310
|
-
};
|
|
1311
799
|
};
|
|
1312
800
|
const deserializeMetadata = (output) => ({
|
|
1313
801
|
httpStatusCode: output.statusCode,
|
|
@@ -1322,6 +810,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
|
1322
810
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
1323
811
|
};
|
|
1324
812
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
813
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(KeyspacesServiceException_1.KeyspacesServiceException);
|
|
1325
814
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
1326
815
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1327
816
|
const contents = {
|
|
@@ -1340,6 +829,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
|
|
|
1340
829
|
}
|
|
1341
830
|
return new protocol_http_1.HttpRequest(contents);
|
|
1342
831
|
};
|
|
832
|
+
function sharedHeaders(operation) {
|
|
833
|
+
return {
|
|
834
|
+
"content-type": "application/x-amz-json-1.0",
|
|
835
|
+
"x-amz-target": `KeyspacesService.${operation}`,
|
|
836
|
+
};
|
|
837
|
+
}
|
|
1343
838
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1344
839
|
if (encoded.length) {
|
|
1345
840
|
return JSON.parse(encoded);
|