@aws-sdk/client-timestream-write 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 +179 -932
- package/dist-es/protocols/Aws_json1_0.js +180 -933
- package/package.json +6 -6
|
@@ -1,177 +1,120 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
|
-
import { decorateServiceException as __decorateServiceException,
|
|
2
|
+
import { _json, decorateServiceException as __decorateServiceException, 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 { v4 as generateIdempotencyToken } from "uuid";
|
|
4
4
|
import { AccessDeniedException, ConflictException, InternalServerException, InvalidEndpointException, RejectedRecordsException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
5
5
|
import { TimestreamWriteServiceException as __BaseException } from "../models/TimestreamWriteServiceException";
|
|
6
6
|
export const se_CreateBatchLoadTaskCommand = async (input, context) => {
|
|
7
|
-
const headers =
|
|
8
|
-
"content-type": "application/x-amz-json-1.0",
|
|
9
|
-
"x-amz-target": "Timestream_20181101.CreateBatchLoadTask",
|
|
10
|
-
};
|
|
7
|
+
const headers = sharedHeaders("CreateBatchLoadTask");
|
|
11
8
|
let body;
|
|
12
9
|
body = JSON.stringify(se_CreateBatchLoadTaskRequest(input, context));
|
|
13
10
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
14
11
|
};
|
|
15
12
|
export const se_CreateDatabaseCommand = async (input, context) => {
|
|
16
|
-
const headers =
|
|
17
|
-
"content-type": "application/x-amz-json-1.0",
|
|
18
|
-
"x-amz-target": "Timestream_20181101.CreateDatabase",
|
|
19
|
-
};
|
|
13
|
+
const headers = sharedHeaders("CreateDatabase");
|
|
20
14
|
let body;
|
|
21
|
-
body = JSON.stringify(
|
|
15
|
+
body = JSON.stringify(_json(input));
|
|
22
16
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
23
17
|
};
|
|
24
18
|
export const se_CreateTableCommand = async (input, context) => {
|
|
25
|
-
const headers =
|
|
26
|
-
"content-type": "application/x-amz-json-1.0",
|
|
27
|
-
"x-amz-target": "Timestream_20181101.CreateTable",
|
|
28
|
-
};
|
|
19
|
+
const headers = sharedHeaders("CreateTable");
|
|
29
20
|
let body;
|
|
30
|
-
body = JSON.stringify(
|
|
21
|
+
body = JSON.stringify(_json(input));
|
|
31
22
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
32
23
|
};
|
|
33
24
|
export const se_DeleteDatabaseCommand = async (input, context) => {
|
|
34
|
-
const headers =
|
|
35
|
-
"content-type": "application/x-amz-json-1.0",
|
|
36
|
-
"x-amz-target": "Timestream_20181101.DeleteDatabase",
|
|
37
|
-
};
|
|
25
|
+
const headers = sharedHeaders("DeleteDatabase");
|
|
38
26
|
let body;
|
|
39
|
-
body = JSON.stringify(
|
|
27
|
+
body = JSON.stringify(_json(input));
|
|
40
28
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
41
29
|
};
|
|
42
30
|
export const se_DeleteTableCommand = async (input, context) => {
|
|
43
|
-
const headers =
|
|
44
|
-
"content-type": "application/x-amz-json-1.0",
|
|
45
|
-
"x-amz-target": "Timestream_20181101.DeleteTable",
|
|
46
|
-
};
|
|
31
|
+
const headers = sharedHeaders("DeleteTable");
|
|
47
32
|
let body;
|
|
48
|
-
body = JSON.stringify(
|
|
33
|
+
body = JSON.stringify(_json(input));
|
|
49
34
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
50
35
|
};
|
|
51
36
|
export const se_DescribeBatchLoadTaskCommand = async (input, context) => {
|
|
52
|
-
const headers =
|
|
53
|
-
"content-type": "application/x-amz-json-1.0",
|
|
54
|
-
"x-amz-target": "Timestream_20181101.DescribeBatchLoadTask",
|
|
55
|
-
};
|
|
37
|
+
const headers = sharedHeaders("DescribeBatchLoadTask");
|
|
56
38
|
let body;
|
|
57
|
-
body = JSON.stringify(
|
|
39
|
+
body = JSON.stringify(_json(input));
|
|
58
40
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
59
41
|
};
|
|
60
42
|
export const se_DescribeDatabaseCommand = async (input, context) => {
|
|
61
|
-
const headers =
|
|
62
|
-
"content-type": "application/x-amz-json-1.0",
|
|
63
|
-
"x-amz-target": "Timestream_20181101.DescribeDatabase",
|
|
64
|
-
};
|
|
43
|
+
const headers = sharedHeaders("DescribeDatabase");
|
|
65
44
|
let body;
|
|
66
|
-
body = JSON.stringify(
|
|
45
|
+
body = JSON.stringify(_json(input));
|
|
67
46
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
68
47
|
};
|
|
69
48
|
export const se_DescribeEndpointsCommand = async (input, context) => {
|
|
70
|
-
const headers =
|
|
71
|
-
"content-type": "application/x-amz-json-1.0",
|
|
72
|
-
"x-amz-target": "Timestream_20181101.DescribeEndpoints",
|
|
73
|
-
};
|
|
49
|
+
const headers = sharedHeaders("DescribeEndpoints");
|
|
74
50
|
let body;
|
|
75
|
-
body = JSON.stringify(
|
|
51
|
+
body = JSON.stringify(_json(input));
|
|
76
52
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
77
53
|
};
|
|
78
54
|
export const se_DescribeTableCommand = async (input, context) => {
|
|
79
|
-
const headers =
|
|
80
|
-
"content-type": "application/x-amz-json-1.0",
|
|
81
|
-
"x-amz-target": "Timestream_20181101.DescribeTable",
|
|
82
|
-
};
|
|
55
|
+
const headers = sharedHeaders("DescribeTable");
|
|
83
56
|
let body;
|
|
84
|
-
body = JSON.stringify(
|
|
57
|
+
body = JSON.stringify(_json(input));
|
|
85
58
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
86
59
|
};
|
|
87
60
|
export const se_ListBatchLoadTasksCommand = async (input, context) => {
|
|
88
|
-
const headers =
|
|
89
|
-
"content-type": "application/x-amz-json-1.0",
|
|
90
|
-
"x-amz-target": "Timestream_20181101.ListBatchLoadTasks",
|
|
91
|
-
};
|
|
61
|
+
const headers = sharedHeaders("ListBatchLoadTasks");
|
|
92
62
|
let body;
|
|
93
|
-
body = JSON.stringify(
|
|
63
|
+
body = JSON.stringify(_json(input));
|
|
94
64
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
95
65
|
};
|
|
96
66
|
export const se_ListDatabasesCommand = async (input, context) => {
|
|
97
|
-
const headers =
|
|
98
|
-
"content-type": "application/x-amz-json-1.0",
|
|
99
|
-
"x-amz-target": "Timestream_20181101.ListDatabases",
|
|
100
|
-
};
|
|
67
|
+
const headers = sharedHeaders("ListDatabases");
|
|
101
68
|
let body;
|
|
102
|
-
body = JSON.stringify(
|
|
69
|
+
body = JSON.stringify(_json(input));
|
|
103
70
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
104
71
|
};
|
|
105
72
|
export const se_ListTablesCommand = async (input, context) => {
|
|
106
|
-
const headers =
|
|
107
|
-
"content-type": "application/x-amz-json-1.0",
|
|
108
|
-
"x-amz-target": "Timestream_20181101.ListTables",
|
|
109
|
-
};
|
|
73
|
+
const headers = sharedHeaders("ListTables");
|
|
110
74
|
let body;
|
|
111
|
-
body = JSON.stringify(
|
|
75
|
+
body = JSON.stringify(_json(input));
|
|
112
76
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
113
77
|
};
|
|
114
78
|
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
115
|
-
const headers =
|
|
116
|
-
"content-type": "application/x-amz-json-1.0",
|
|
117
|
-
"x-amz-target": "Timestream_20181101.ListTagsForResource",
|
|
118
|
-
};
|
|
79
|
+
const headers = sharedHeaders("ListTagsForResource");
|
|
119
80
|
let body;
|
|
120
|
-
body = JSON.stringify(
|
|
81
|
+
body = JSON.stringify(_json(input));
|
|
121
82
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
122
83
|
};
|
|
123
84
|
export const se_ResumeBatchLoadTaskCommand = async (input, context) => {
|
|
124
|
-
const headers =
|
|
125
|
-
"content-type": "application/x-amz-json-1.0",
|
|
126
|
-
"x-amz-target": "Timestream_20181101.ResumeBatchLoadTask",
|
|
127
|
-
};
|
|
85
|
+
const headers = sharedHeaders("ResumeBatchLoadTask");
|
|
128
86
|
let body;
|
|
129
|
-
body = JSON.stringify(
|
|
87
|
+
body = JSON.stringify(_json(input));
|
|
130
88
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
131
89
|
};
|
|
132
90
|
export const se_TagResourceCommand = async (input, context) => {
|
|
133
|
-
const headers =
|
|
134
|
-
"content-type": "application/x-amz-json-1.0",
|
|
135
|
-
"x-amz-target": "Timestream_20181101.TagResource",
|
|
136
|
-
};
|
|
91
|
+
const headers = sharedHeaders("TagResource");
|
|
137
92
|
let body;
|
|
138
|
-
body = JSON.stringify(
|
|
93
|
+
body = JSON.stringify(_json(input));
|
|
139
94
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
140
95
|
};
|
|
141
96
|
export const se_UntagResourceCommand = async (input, context) => {
|
|
142
|
-
const headers =
|
|
143
|
-
"content-type": "application/x-amz-json-1.0",
|
|
144
|
-
"x-amz-target": "Timestream_20181101.UntagResource",
|
|
145
|
-
};
|
|
97
|
+
const headers = sharedHeaders("UntagResource");
|
|
146
98
|
let body;
|
|
147
|
-
body = JSON.stringify(
|
|
99
|
+
body = JSON.stringify(_json(input));
|
|
148
100
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
149
101
|
};
|
|
150
102
|
export const se_UpdateDatabaseCommand = async (input, context) => {
|
|
151
|
-
const headers =
|
|
152
|
-
"content-type": "application/x-amz-json-1.0",
|
|
153
|
-
"x-amz-target": "Timestream_20181101.UpdateDatabase",
|
|
154
|
-
};
|
|
103
|
+
const headers = sharedHeaders("UpdateDatabase");
|
|
155
104
|
let body;
|
|
156
|
-
body = JSON.stringify(
|
|
105
|
+
body = JSON.stringify(_json(input));
|
|
157
106
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
158
107
|
};
|
|
159
108
|
export const se_UpdateTableCommand = async (input, context) => {
|
|
160
|
-
const headers =
|
|
161
|
-
"content-type": "application/x-amz-json-1.0",
|
|
162
|
-
"x-amz-target": "Timestream_20181101.UpdateTable",
|
|
163
|
-
};
|
|
109
|
+
const headers = sharedHeaders("UpdateTable");
|
|
164
110
|
let body;
|
|
165
|
-
body = JSON.stringify(
|
|
111
|
+
body = JSON.stringify(_json(input));
|
|
166
112
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
167
113
|
};
|
|
168
114
|
export const se_WriteRecordsCommand = async (input, context) => {
|
|
169
|
-
const headers =
|
|
170
|
-
"content-type": "application/x-amz-json-1.0",
|
|
171
|
-
"x-amz-target": "Timestream_20181101.WriteRecords",
|
|
172
|
-
};
|
|
115
|
+
const headers = sharedHeaders("WriteRecords");
|
|
173
116
|
let body;
|
|
174
|
-
body = JSON.stringify(
|
|
117
|
+
body = JSON.stringify(_json(input));
|
|
175
118
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
176
119
|
};
|
|
177
120
|
export const de_CreateBatchLoadTaskCommand = async (output, context) => {
|
|
@@ -180,12 +123,12 @@ export const de_CreateBatchLoadTaskCommand = async (output, context) => {
|
|
|
180
123
|
}
|
|
181
124
|
const data = await parseBody(output.body, context);
|
|
182
125
|
let contents = {};
|
|
183
|
-
contents =
|
|
126
|
+
contents = _json(data);
|
|
184
127
|
const response = {
|
|
185
128
|
$metadata: deserializeMetadata(output),
|
|
186
129
|
...contents,
|
|
187
130
|
};
|
|
188
|
-
return
|
|
131
|
+
return response;
|
|
189
132
|
};
|
|
190
133
|
const de_CreateBatchLoadTaskCommandError = async (output, context) => {
|
|
191
134
|
const parsedOutput = {
|
|
@@ -220,10 +163,9 @@ const de_CreateBatchLoadTaskCommandError = async (output, context) => {
|
|
|
220
163
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
221
164
|
default:
|
|
222
165
|
const parsedBody = parsedOutput.body;
|
|
223
|
-
throwDefaultError({
|
|
166
|
+
return throwDefaultError({
|
|
224
167
|
output,
|
|
225
168
|
parsedBody,
|
|
226
|
-
exceptionCtor: __BaseException,
|
|
227
169
|
errorCode,
|
|
228
170
|
});
|
|
229
171
|
}
|
|
@@ -239,7 +181,7 @@ export const de_CreateDatabaseCommand = async (output, context) => {
|
|
|
239
181
|
$metadata: deserializeMetadata(output),
|
|
240
182
|
...contents,
|
|
241
183
|
};
|
|
242
|
-
return
|
|
184
|
+
return response;
|
|
243
185
|
};
|
|
244
186
|
const de_CreateDatabaseCommandError = async (output, context) => {
|
|
245
187
|
const parsedOutput = {
|
|
@@ -271,10 +213,9 @@ const de_CreateDatabaseCommandError = async (output, context) => {
|
|
|
271
213
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
272
214
|
default:
|
|
273
215
|
const parsedBody = parsedOutput.body;
|
|
274
|
-
throwDefaultError({
|
|
216
|
+
return throwDefaultError({
|
|
275
217
|
output,
|
|
276
218
|
parsedBody,
|
|
277
|
-
exceptionCtor: __BaseException,
|
|
278
219
|
errorCode,
|
|
279
220
|
});
|
|
280
221
|
}
|
|
@@ -290,7 +231,7 @@ export const de_CreateTableCommand = async (output, context) => {
|
|
|
290
231
|
$metadata: deserializeMetadata(output),
|
|
291
232
|
...contents,
|
|
292
233
|
};
|
|
293
|
-
return
|
|
234
|
+
return response;
|
|
294
235
|
};
|
|
295
236
|
const de_CreateTableCommandError = async (output, context) => {
|
|
296
237
|
const parsedOutput = {
|
|
@@ -325,10 +266,9 @@ const de_CreateTableCommandError = async (output, context) => {
|
|
|
325
266
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
326
267
|
default:
|
|
327
268
|
const parsedBody = parsedOutput.body;
|
|
328
|
-
throwDefaultError({
|
|
269
|
+
return throwDefaultError({
|
|
329
270
|
output,
|
|
330
271
|
parsedBody,
|
|
331
|
-
exceptionCtor: __BaseException,
|
|
332
272
|
errorCode,
|
|
333
273
|
});
|
|
334
274
|
}
|
|
@@ -341,7 +281,7 @@ export const de_DeleteDatabaseCommand = async (output, context) => {
|
|
|
341
281
|
const response = {
|
|
342
282
|
$metadata: deserializeMetadata(output),
|
|
343
283
|
};
|
|
344
|
-
return
|
|
284
|
+
return response;
|
|
345
285
|
};
|
|
346
286
|
const de_DeleteDatabaseCommandError = async (output, context) => {
|
|
347
287
|
const parsedOutput = {
|
|
@@ -370,10 +310,9 @@ const de_DeleteDatabaseCommandError = async (output, context) => {
|
|
|
370
310
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
371
311
|
default:
|
|
372
312
|
const parsedBody = parsedOutput.body;
|
|
373
|
-
throwDefaultError({
|
|
313
|
+
return throwDefaultError({
|
|
374
314
|
output,
|
|
375
315
|
parsedBody,
|
|
376
|
-
exceptionCtor: __BaseException,
|
|
377
316
|
errorCode,
|
|
378
317
|
});
|
|
379
318
|
}
|
|
@@ -386,7 +325,7 @@ export const de_DeleteTableCommand = async (output, context) => {
|
|
|
386
325
|
const response = {
|
|
387
326
|
$metadata: deserializeMetadata(output),
|
|
388
327
|
};
|
|
389
|
-
return
|
|
328
|
+
return response;
|
|
390
329
|
};
|
|
391
330
|
const de_DeleteTableCommandError = async (output, context) => {
|
|
392
331
|
const parsedOutput = {
|
|
@@ -415,10 +354,9 @@ const de_DeleteTableCommandError = async (output, context) => {
|
|
|
415
354
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
416
355
|
default:
|
|
417
356
|
const parsedBody = parsedOutput.body;
|
|
418
|
-
throwDefaultError({
|
|
357
|
+
return throwDefaultError({
|
|
419
358
|
output,
|
|
420
359
|
parsedBody,
|
|
421
|
-
exceptionCtor: __BaseException,
|
|
422
360
|
errorCode,
|
|
423
361
|
});
|
|
424
362
|
}
|
|
@@ -434,7 +372,7 @@ export const de_DescribeBatchLoadTaskCommand = async (output, context) => {
|
|
|
434
372
|
$metadata: deserializeMetadata(output),
|
|
435
373
|
...contents,
|
|
436
374
|
};
|
|
437
|
-
return
|
|
375
|
+
return response;
|
|
438
376
|
};
|
|
439
377
|
const de_DescribeBatchLoadTaskCommandError = async (output, context) => {
|
|
440
378
|
const parsedOutput = {
|
|
@@ -460,10 +398,9 @@ const de_DescribeBatchLoadTaskCommandError = async (output, context) => {
|
|
|
460
398
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
461
399
|
default:
|
|
462
400
|
const parsedBody = parsedOutput.body;
|
|
463
|
-
throwDefaultError({
|
|
401
|
+
return throwDefaultError({
|
|
464
402
|
output,
|
|
465
403
|
parsedBody,
|
|
466
|
-
exceptionCtor: __BaseException,
|
|
467
404
|
errorCode,
|
|
468
405
|
});
|
|
469
406
|
}
|
|
@@ -479,7 +416,7 @@ export const de_DescribeDatabaseCommand = async (output, context) => {
|
|
|
479
416
|
$metadata: deserializeMetadata(output),
|
|
480
417
|
...contents,
|
|
481
418
|
};
|
|
482
|
-
return
|
|
419
|
+
return response;
|
|
483
420
|
};
|
|
484
421
|
const de_DescribeDatabaseCommandError = async (output, context) => {
|
|
485
422
|
const parsedOutput = {
|
|
@@ -508,10 +445,9 @@ const de_DescribeDatabaseCommandError = async (output, context) => {
|
|
|
508
445
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
509
446
|
default:
|
|
510
447
|
const parsedBody = parsedOutput.body;
|
|
511
|
-
throwDefaultError({
|
|
448
|
+
return throwDefaultError({
|
|
512
449
|
output,
|
|
513
450
|
parsedBody,
|
|
514
|
-
exceptionCtor: __BaseException,
|
|
515
451
|
errorCode,
|
|
516
452
|
});
|
|
517
453
|
}
|
|
@@ -522,12 +458,12 @@ export const de_DescribeEndpointsCommand = async (output, context) => {
|
|
|
522
458
|
}
|
|
523
459
|
const data = await parseBody(output.body, context);
|
|
524
460
|
let contents = {};
|
|
525
|
-
contents =
|
|
461
|
+
contents = _json(data);
|
|
526
462
|
const response = {
|
|
527
463
|
$metadata: deserializeMetadata(output),
|
|
528
464
|
...contents,
|
|
529
465
|
};
|
|
530
|
-
return
|
|
466
|
+
return response;
|
|
531
467
|
};
|
|
532
468
|
const de_DescribeEndpointsCommandError = async (output, context) => {
|
|
533
469
|
const parsedOutput = {
|
|
@@ -547,10 +483,9 @@ const de_DescribeEndpointsCommandError = async (output, context) => {
|
|
|
547
483
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
548
484
|
default:
|
|
549
485
|
const parsedBody = parsedOutput.body;
|
|
550
|
-
throwDefaultError({
|
|
486
|
+
return throwDefaultError({
|
|
551
487
|
output,
|
|
552
488
|
parsedBody,
|
|
553
|
-
exceptionCtor: __BaseException,
|
|
554
489
|
errorCode,
|
|
555
490
|
});
|
|
556
491
|
}
|
|
@@ -566,7 +501,7 @@ export const de_DescribeTableCommand = async (output, context) => {
|
|
|
566
501
|
$metadata: deserializeMetadata(output),
|
|
567
502
|
...contents,
|
|
568
503
|
};
|
|
569
|
-
return
|
|
504
|
+
return response;
|
|
570
505
|
};
|
|
571
506
|
const de_DescribeTableCommandError = async (output, context) => {
|
|
572
507
|
const parsedOutput = {
|
|
@@ -595,10 +530,9 @@ const de_DescribeTableCommandError = async (output, context) => {
|
|
|
595
530
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
596
531
|
default:
|
|
597
532
|
const parsedBody = parsedOutput.body;
|
|
598
|
-
throwDefaultError({
|
|
533
|
+
return throwDefaultError({
|
|
599
534
|
output,
|
|
600
535
|
parsedBody,
|
|
601
|
-
exceptionCtor: __BaseException,
|
|
602
536
|
errorCode,
|
|
603
537
|
});
|
|
604
538
|
}
|
|
@@ -614,7 +548,7 @@ export const de_ListBatchLoadTasksCommand = async (output, context) => {
|
|
|
614
548
|
$metadata: deserializeMetadata(output),
|
|
615
549
|
...contents,
|
|
616
550
|
};
|
|
617
|
-
return
|
|
551
|
+
return response;
|
|
618
552
|
};
|
|
619
553
|
const de_ListBatchLoadTasksCommandError = async (output, context) => {
|
|
620
554
|
const parsedOutput = {
|
|
@@ -640,10 +574,9 @@ const de_ListBatchLoadTasksCommandError = async (output, context) => {
|
|
|
640
574
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
641
575
|
default:
|
|
642
576
|
const parsedBody = parsedOutput.body;
|
|
643
|
-
throwDefaultError({
|
|
577
|
+
return throwDefaultError({
|
|
644
578
|
output,
|
|
645
579
|
parsedBody,
|
|
646
|
-
exceptionCtor: __BaseException,
|
|
647
580
|
errorCode,
|
|
648
581
|
});
|
|
649
582
|
}
|
|
@@ -659,7 +592,7 @@ export const de_ListDatabasesCommand = async (output, context) => {
|
|
|
659
592
|
$metadata: deserializeMetadata(output),
|
|
660
593
|
...contents,
|
|
661
594
|
};
|
|
662
|
-
return
|
|
595
|
+
return response;
|
|
663
596
|
};
|
|
664
597
|
const de_ListDatabasesCommandError = async (output, context) => {
|
|
665
598
|
const parsedOutput = {
|
|
@@ -685,10 +618,9 @@ const de_ListDatabasesCommandError = async (output, context) => {
|
|
|
685
618
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
686
619
|
default:
|
|
687
620
|
const parsedBody = parsedOutput.body;
|
|
688
|
-
throwDefaultError({
|
|
621
|
+
return throwDefaultError({
|
|
689
622
|
output,
|
|
690
623
|
parsedBody,
|
|
691
|
-
exceptionCtor: __BaseException,
|
|
692
624
|
errorCode,
|
|
693
625
|
});
|
|
694
626
|
}
|
|
@@ -704,7 +636,7 @@ export const de_ListTablesCommand = async (output, context) => {
|
|
|
704
636
|
$metadata: deserializeMetadata(output),
|
|
705
637
|
...contents,
|
|
706
638
|
};
|
|
707
|
-
return
|
|
639
|
+
return response;
|
|
708
640
|
};
|
|
709
641
|
const de_ListTablesCommandError = async (output, context) => {
|
|
710
642
|
const parsedOutput = {
|
|
@@ -733,10 +665,9 @@ const de_ListTablesCommandError = async (output, context) => {
|
|
|
733
665
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
734
666
|
default:
|
|
735
667
|
const parsedBody = parsedOutput.body;
|
|
736
|
-
throwDefaultError({
|
|
668
|
+
return throwDefaultError({
|
|
737
669
|
output,
|
|
738
670
|
parsedBody,
|
|
739
|
-
exceptionCtor: __BaseException,
|
|
740
671
|
errorCode,
|
|
741
672
|
});
|
|
742
673
|
}
|
|
@@ -747,12 +678,12 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
747
678
|
}
|
|
748
679
|
const data = await parseBody(output.body, context);
|
|
749
680
|
let contents = {};
|
|
750
|
-
contents =
|
|
681
|
+
contents = _json(data);
|
|
751
682
|
const response = {
|
|
752
683
|
$metadata: deserializeMetadata(output),
|
|
753
684
|
...contents,
|
|
754
685
|
};
|
|
755
|
-
return
|
|
686
|
+
return response;
|
|
756
687
|
};
|
|
757
688
|
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
758
689
|
const parsedOutput = {
|
|
@@ -775,10 +706,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
775
706
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
776
707
|
default:
|
|
777
708
|
const parsedBody = parsedOutput.body;
|
|
778
|
-
throwDefaultError({
|
|
709
|
+
return throwDefaultError({
|
|
779
710
|
output,
|
|
780
711
|
parsedBody,
|
|
781
|
-
exceptionCtor: __BaseException,
|
|
782
712
|
errorCode,
|
|
783
713
|
});
|
|
784
714
|
}
|
|
@@ -789,12 +719,12 @@ export const de_ResumeBatchLoadTaskCommand = async (output, context) => {
|
|
|
789
719
|
}
|
|
790
720
|
const data = await parseBody(output.body, context);
|
|
791
721
|
let contents = {};
|
|
792
|
-
contents =
|
|
722
|
+
contents = _json(data);
|
|
793
723
|
const response = {
|
|
794
724
|
$metadata: deserializeMetadata(output),
|
|
795
725
|
...contents,
|
|
796
726
|
};
|
|
797
|
-
return
|
|
727
|
+
return response;
|
|
798
728
|
};
|
|
799
729
|
const de_ResumeBatchLoadTaskCommandError = async (output, context) => {
|
|
800
730
|
const parsedOutput = {
|
|
@@ -823,10 +753,9 @@ const de_ResumeBatchLoadTaskCommandError = async (output, context) => {
|
|
|
823
753
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
824
754
|
default:
|
|
825
755
|
const parsedBody = parsedOutput.body;
|
|
826
|
-
throwDefaultError({
|
|
756
|
+
return throwDefaultError({
|
|
827
757
|
output,
|
|
828
758
|
parsedBody,
|
|
829
|
-
exceptionCtor: __BaseException,
|
|
830
759
|
errorCode,
|
|
831
760
|
});
|
|
832
761
|
}
|
|
@@ -837,12 +766,12 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
837
766
|
}
|
|
838
767
|
const data = await parseBody(output.body, context);
|
|
839
768
|
let contents = {};
|
|
840
|
-
contents =
|
|
769
|
+
contents = _json(data);
|
|
841
770
|
const response = {
|
|
842
771
|
$metadata: deserializeMetadata(output),
|
|
843
772
|
...contents,
|
|
844
773
|
};
|
|
845
|
-
return
|
|
774
|
+
return response;
|
|
846
775
|
};
|
|
847
776
|
const de_TagResourceCommandError = async (output, context) => {
|
|
848
777
|
const parsedOutput = {
|
|
@@ -868,10 +797,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
868
797
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
869
798
|
default:
|
|
870
799
|
const parsedBody = parsedOutput.body;
|
|
871
|
-
throwDefaultError({
|
|
800
|
+
return throwDefaultError({
|
|
872
801
|
output,
|
|
873
802
|
parsedBody,
|
|
874
|
-
exceptionCtor: __BaseException,
|
|
875
803
|
errorCode,
|
|
876
804
|
});
|
|
877
805
|
}
|
|
@@ -882,12 +810,12 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
882
810
|
}
|
|
883
811
|
const data = await parseBody(output.body, context);
|
|
884
812
|
let contents = {};
|
|
885
|
-
contents =
|
|
813
|
+
contents = _json(data);
|
|
886
814
|
const response = {
|
|
887
815
|
$metadata: deserializeMetadata(output),
|
|
888
816
|
...contents,
|
|
889
817
|
};
|
|
890
|
-
return
|
|
818
|
+
return response;
|
|
891
819
|
};
|
|
892
820
|
const de_UntagResourceCommandError = async (output, context) => {
|
|
893
821
|
const parsedOutput = {
|
|
@@ -913,10 +841,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
913
841
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
914
842
|
default:
|
|
915
843
|
const parsedBody = parsedOutput.body;
|
|
916
|
-
throwDefaultError({
|
|
844
|
+
return throwDefaultError({
|
|
917
845
|
output,
|
|
918
846
|
parsedBody,
|
|
919
|
-
exceptionCtor: __BaseException,
|
|
920
847
|
errorCode,
|
|
921
848
|
});
|
|
922
849
|
}
|
|
@@ -932,7 +859,7 @@ export const de_UpdateDatabaseCommand = async (output, context) => {
|
|
|
932
859
|
$metadata: deserializeMetadata(output),
|
|
933
860
|
...contents,
|
|
934
861
|
};
|
|
935
|
-
return
|
|
862
|
+
return response;
|
|
936
863
|
};
|
|
937
864
|
const de_UpdateDatabaseCommandError = async (output, context) => {
|
|
938
865
|
const parsedOutput = {
|
|
@@ -964,10 +891,9 @@ const de_UpdateDatabaseCommandError = async (output, context) => {
|
|
|
964
891
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
965
892
|
default:
|
|
966
893
|
const parsedBody = parsedOutput.body;
|
|
967
|
-
throwDefaultError({
|
|
894
|
+
return throwDefaultError({
|
|
968
895
|
output,
|
|
969
896
|
parsedBody,
|
|
970
|
-
exceptionCtor: __BaseException,
|
|
971
897
|
errorCode,
|
|
972
898
|
});
|
|
973
899
|
}
|
|
@@ -983,7 +909,7 @@ export const de_UpdateTableCommand = async (output, context) => {
|
|
|
983
909
|
$metadata: deserializeMetadata(output),
|
|
984
910
|
...contents,
|
|
985
911
|
};
|
|
986
|
-
return
|
|
912
|
+
return response;
|
|
987
913
|
};
|
|
988
914
|
const de_UpdateTableCommandError = async (output, context) => {
|
|
989
915
|
const parsedOutput = {
|
|
@@ -1012,10 +938,9 @@ const de_UpdateTableCommandError = async (output, context) => {
|
|
|
1012
938
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1013
939
|
default:
|
|
1014
940
|
const parsedBody = parsedOutput.body;
|
|
1015
|
-
throwDefaultError({
|
|
941
|
+
return throwDefaultError({
|
|
1016
942
|
output,
|
|
1017
943
|
parsedBody,
|
|
1018
|
-
exceptionCtor: __BaseException,
|
|
1019
944
|
errorCode,
|
|
1020
945
|
});
|
|
1021
946
|
}
|
|
@@ -1026,12 +951,12 @@ export const de_WriteRecordsCommand = async (output, context) => {
|
|
|
1026
951
|
}
|
|
1027
952
|
const data = await parseBody(output.body, context);
|
|
1028
953
|
let contents = {};
|
|
1029
|
-
contents =
|
|
954
|
+
contents = _json(data);
|
|
1030
955
|
const response = {
|
|
1031
956
|
$metadata: deserializeMetadata(output),
|
|
1032
957
|
...contents,
|
|
1033
958
|
};
|
|
1034
|
-
return
|
|
959
|
+
return response;
|
|
1035
960
|
};
|
|
1036
961
|
const de_WriteRecordsCommandError = async (output, context) => {
|
|
1037
962
|
const parsedOutput = {
|
|
@@ -1063,17 +988,16 @@ const de_WriteRecordsCommandError = async (output, context) => {
|
|
|
1063
988
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1064
989
|
default:
|
|
1065
990
|
const parsedBody = parsedOutput.body;
|
|
1066
|
-
throwDefaultError({
|
|
991
|
+
return throwDefaultError({
|
|
1067
992
|
output,
|
|
1068
993
|
parsedBody,
|
|
1069
|
-
exceptionCtor: __BaseException,
|
|
1070
994
|
errorCode,
|
|
1071
995
|
});
|
|
1072
996
|
}
|
|
1073
997
|
};
|
|
1074
998
|
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1075
999
|
const body = parsedOutput.body;
|
|
1076
|
-
const deserialized =
|
|
1000
|
+
const deserialized = _json(body);
|
|
1077
1001
|
const exception = new AccessDeniedException({
|
|
1078
1002
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1079
1003
|
...deserialized,
|
|
@@ -1082,7 +1006,7 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
|
1082
1006
|
};
|
|
1083
1007
|
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1084
1008
|
const body = parsedOutput.body;
|
|
1085
|
-
const deserialized =
|
|
1009
|
+
const deserialized = _json(body);
|
|
1086
1010
|
const exception = new ConflictException({
|
|
1087
1011
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1088
1012
|
...deserialized,
|
|
@@ -1091,7 +1015,7 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
1091
1015
|
};
|
|
1092
1016
|
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
1093
1017
|
const body = parsedOutput.body;
|
|
1094
|
-
const deserialized =
|
|
1018
|
+
const deserialized = _json(body);
|
|
1095
1019
|
const exception = new InternalServerException({
|
|
1096
1020
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1097
1021
|
...deserialized,
|
|
@@ -1100,7 +1024,7 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
|
1100
1024
|
};
|
|
1101
1025
|
const de_InvalidEndpointExceptionRes = async (parsedOutput, context) => {
|
|
1102
1026
|
const body = parsedOutput.body;
|
|
1103
|
-
const deserialized =
|
|
1027
|
+
const deserialized = _json(body);
|
|
1104
1028
|
const exception = new InvalidEndpointException({
|
|
1105
1029
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1106
1030
|
...deserialized,
|
|
@@ -1109,7 +1033,7 @@ const de_InvalidEndpointExceptionRes = async (parsedOutput, context) => {
|
|
|
1109
1033
|
};
|
|
1110
1034
|
const de_RejectedRecordsExceptionRes = async (parsedOutput, context) => {
|
|
1111
1035
|
const body = parsedOutput.body;
|
|
1112
|
-
const deserialized =
|
|
1036
|
+
const deserialized = _json(body);
|
|
1113
1037
|
const exception = new RejectedRecordsException({
|
|
1114
1038
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1115
1039
|
...deserialized,
|
|
@@ -1118,7 +1042,7 @@ const de_RejectedRecordsExceptionRes = async (parsedOutput, context) => {
|
|
|
1118
1042
|
};
|
|
1119
1043
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1120
1044
|
const body = parsedOutput.body;
|
|
1121
|
-
const deserialized =
|
|
1045
|
+
const deserialized = _json(body);
|
|
1122
1046
|
const exception = new ResourceNotFoundException({
|
|
1123
1047
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1124
1048
|
...deserialized,
|
|
@@ -1127,7 +1051,7 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
1127
1051
|
};
|
|
1128
1052
|
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
1129
1053
|
const body = parsedOutput.body;
|
|
1130
|
-
const deserialized =
|
|
1054
|
+
const deserialized = _json(body);
|
|
1131
1055
|
const exception = new ServiceQuotaExceededException({
|
|
1132
1056
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1133
1057
|
...deserialized,
|
|
@@ -1136,7 +1060,7 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
1136
1060
|
};
|
|
1137
1061
|
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1138
1062
|
const body = parsedOutput.body;
|
|
1139
|
-
const deserialized =
|
|
1063
|
+
const deserialized = _json(body);
|
|
1140
1064
|
const exception = new ThrottlingException({
|
|
1141
1065
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1142
1066
|
...deserialized,
|
|
@@ -1145,7 +1069,7 @@ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
|
1145
1069
|
};
|
|
1146
1070
|
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1147
1071
|
const body = parsedOutput.body;
|
|
1148
|
-
const deserialized =
|
|
1072
|
+
const deserialized = _json(body);
|
|
1149
1073
|
const exception = new ValidationException({
|
|
1150
1074
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1151
1075
|
...deserialized,
|
|
@@ -1153,826 +1077,142 @@ const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
|
1153
1077
|
return __decorateServiceException(exception, body);
|
|
1154
1078
|
};
|
|
1155
1079
|
const se_CreateBatchLoadTaskRequest = (input, context) => {
|
|
1156
|
-
return {
|
|
1157
|
-
ClientToken:
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
...(input.RecordVersion != null && { RecordVersion: input.RecordVersion }),
|
|
1165
|
-
...(input.ReportConfiguration != null && {
|
|
1166
|
-
ReportConfiguration: se_ReportConfiguration(input.ReportConfiguration, context),
|
|
1167
|
-
}),
|
|
1168
|
-
...(input.TargetDatabaseName != null && { TargetDatabaseName: input.TargetDatabaseName }),
|
|
1169
|
-
...(input.TargetTableName != null && { TargetTableName: input.TargetTableName }),
|
|
1170
|
-
};
|
|
1171
|
-
};
|
|
1172
|
-
const se_CreateDatabaseRequest = (input, context) => {
|
|
1173
|
-
return {
|
|
1174
|
-
...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
|
|
1175
|
-
...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
|
|
1176
|
-
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
1177
|
-
};
|
|
1178
|
-
};
|
|
1179
|
-
const se_CreateTableRequest = (input, context) => {
|
|
1180
|
-
return {
|
|
1181
|
-
...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
|
|
1182
|
-
...(input.MagneticStoreWriteProperties != null && {
|
|
1183
|
-
MagneticStoreWriteProperties: se_MagneticStoreWriteProperties(input.MagneticStoreWriteProperties, context),
|
|
1184
|
-
}),
|
|
1185
|
-
...(input.RetentionProperties != null && {
|
|
1186
|
-
RetentionProperties: se_RetentionProperties(input.RetentionProperties, context),
|
|
1187
|
-
}),
|
|
1188
|
-
...(input.TableName != null && { TableName: input.TableName }),
|
|
1189
|
-
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
1190
|
-
};
|
|
1191
|
-
};
|
|
1192
|
-
const se_CsvConfiguration = (input, context) => {
|
|
1193
|
-
return {
|
|
1194
|
-
...(input.ColumnSeparator != null && { ColumnSeparator: input.ColumnSeparator }),
|
|
1195
|
-
...(input.EscapeChar != null && { EscapeChar: input.EscapeChar }),
|
|
1196
|
-
...(input.NullValue != null && { NullValue: input.NullValue }),
|
|
1197
|
-
...(input.QuoteChar != null && { QuoteChar: input.QuoteChar }),
|
|
1198
|
-
...(input.TrimWhiteSpace != null && { TrimWhiteSpace: input.TrimWhiteSpace }),
|
|
1199
|
-
};
|
|
1200
|
-
};
|
|
1201
|
-
const se_DataModel = (input, context) => {
|
|
1202
|
-
return {
|
|
1203
|
-
...(input.DimensionMappings != null && {
|
|
1204
|
-
DimensionMappings: se_DimensionMappings(input.DimensionMappings, context),
|
|
1205
|
-
}),
|
|
1206
|
-
...(input.MeasureNameColumn != null && { MeasureNameColumn: input.MeasureNameColumn }),
|
|
1207
|
-
...(input.MixedMeasureMappings != null && {
|
|
1208
|
-
MixedMeasureMappings: se_MixedMeasureMappingList(input.MixedMeasureMappings, context),
|
|
1209
|
-
}),
|
|
1210
|
-
...(input.MultiMeasureMappings != null && {
|
|
1211
|
-
MultiMeasureMappings: se_MultiMeasureMappings(input.MultiMeasureMappings, context),
|
|
1212
|
-
}),
|
|
1213
|
-
...(input.TimeColumn != null && { TimeColumn: input.TimeColumn }),
|
|
1214
|
-
...(input.TimeUnit != null && { TimeUnit: input.TimeUnit }),
|
|
1215
|
-
};
|
|
1216
|
-
};
|
|
1217
|
-
const se_DataModelConfiguration = (input, context) => {
|
|
1218
|
-
return {
|
|
1219
|
-
...(input.DataModel != null && { DataModel: se_DataModel(input.DataModel, context) }),
|
|
1220
|
-
...(input.DataModelS3Configuration != null && {
|
|
1221
|
-
DataModelS3Configuration: se_DataModelS3Configuration(input.DataModelS3Configuration, context),
|
|
1222
|
-
}),
|
|
1223
|
-
};
|
|
1224
|
-
};
|
|
1225
|
-
const se_DataModelS3Configuration = (input, context) => {
|
|
1226
|
-
return {
|
|
1227
|
-
...(input.BucketName != null && { BucketName: input.BucketName }),
|
|
1228
|
-
...(input.ObjectKey != null && { ObjectKey: input.ObjectKey }),
|
|
1229
|
-
};
|
|
1230
|
-
};
|
|
1231
|
-
const se_DataSourceConfiguration = (input, context) => {
|
|
1232
|
-
return {
|
|
1233
|
-
...(input.CsvConfiguration != null && { CsvConfiguration: se_CsvConfiguration(input.CsvConfiguration, context) }),
|
|
1234
|
-
...(input.DataFormat != null && { DataFormat: input.DataFormat }),
|
|
1235
|
-
...(input.DataSourceS3Configuration != null && {
|
|
1236
|
-
DataSourceS3Configuration: se_DataSourceS3Configuration(input.DataSourceS3Configuration, context),
|
|
1237
|
-
}),
|
|
1238
|
-
};
|
|
1239
|
-
};
|
|
1240
|
-
const se_DataSourceS3Configuration = (input, context) => {
|
|
1241
|
-
return {
|
|
1242
|
-
...(input.BucketName != null && { BucketName: input.BucketName }),
|
|
1243
|
-
...(input.ObjectKeyPrefix != null && { ObjectKeyPrefix: input.ObjectKeyPrefix }),
|
|
1244
|
-
};
|
|
1245
|
-
};
|
|
1246
|
-
const se_DeleteDatabaseRequest = (input, context) => {
|
|
1247
|
-
return {
|
|
1248
|
-
...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
|
|
1249
|
-
};
|
|
1250
|
-
};
|
|
1251
|
-
const se_DeleteTableRequest = (input, context) => {
|
|
1252
|
-
return {
|
|
1253
|
-
...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
|
|
1254
|
-
...(input.TableName != null && { TableName: input.TableName }),
|
|
1255
|
-
};
|
|
1256
|
-
};
|
|
1257
|
-
const se_DescribeBatchLoadTaskRequest = (input, context) => {
|
|
1258
|
-
return {
|
|
1259
|
-
...(input.TaskId != null && { TaskId: input.TaskId }),
|
|
1260
|
-
};
|
|
1261
|
-
};
|
|
1262
|
-
const se_DescribeDatabaseRequest = (input, context) => {
|
|
1263
|
-
return {
|
|
1264
|
-
...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
|
|
1265
|
-
};
|
|
1266
|
-
};
|
|
1267
|
-
const se_DescribeEndpointsRequest = (input, context) => {
|
|
1268
|
-
return {};
|
|
1269
|
-
};
|
|
1270
|
-
const se_DescribeTableRequest = (input, context) => {
|
|
1271
|
-
return {
|
|
1272
|
-
...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
|
|
1273
|
-
...(input.TableName != null && { TableName: input.TableName }),
|
|
1274
|
-
};
|
|
1275
|
-
};
|
|
1276
|
-
const se_Dimension = (input, context) => {
|
|
1277
|
-
return {
|
|
1278
|
-
...(input.DimensionValueType != null && { DimensionValueType: input.DimensionValueType }),
|
|
1279
|
-
...(input.Name != null && { Name: input.Name }),
|
|
1280
|
-
...(input.Value != null && { Value: input.Value }),
|
|
1281
|
-
};
|
|
1282
|
-
};
|
|
1283
|
-
const se_DimensionMapping = (input, context) => {
|
|
1284
|
-
return {
|
|
1285
|
-
...(input.DestinationColumn != null && { DestinationColumn: input.DestinationColumn }),
|
|
1286
|
-
...(input.SourceColumn != null && { SourceColumn: input.SourceColumn }),
|
|
1287
|
-
};
|
|
1288
|
-
};
|
|
1289
|
-
const se_DimensionMappings = (input, context) => {
|
|
1290
|
-
return input
|
|
1291
|
-
.filter((e) => e != null)
|
|
1292
|
-
.map((entry) => {
|
|
1293
|
-
return se_DimensionMapping(entry, context);
|
|
1080
|
+
return take(input, {
|
|
1081
|
+
ClientToken: (_) => _ ?? generateIdempotencyToken(),
|
|
1082
|
+
DataModelConfiguration: _json,
|
|
1083
|
+
DataSourceConfiguration: _json,
|
|
1084
|
+
RecordVersion: [],
|
|
1085
|
+
ReportConfiguration: _json,
|
|
1086
|
+
TargetDatabaseName: [],
|
|
1087
|
+
TargetTableName: [],
|
|
1294
1088
|
});
|
|
1295
1089
|
};
|
|
1296
|
-
const se_Dimensions = (input, context) => {
|
|
1297
|
-
return input
|
|
1298
|
-
.filter((e) => e != null)
|
|
1299
|
-
.map((entry) => {
|
|
1300
|
-
return se_Dimension(entry, context);
|
|
1301
|
-
});
|
|
1302
|
-
};
|
|
1303
|
-
const se_ListBatchLoadTasksRequest = (input, context) => {
|
|
1304
|
-
return {
|
|
1305
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1306
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1307
|
-
...(input.TaskStatus != null && { TaskStatus: input.TaskStatus }),
|
|
1308
|
-
};
|
|
1309
|
-
};
|
|
1310
|
-
const se_ListDatabasesRequest = (input, context) => {
|
|
1311
|
-
return {
|
|
1312
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1313
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1314
|
-
};
|
|
1315
|
-
};
|
|
1316
|
-
const se_ListTablesRequest = (input, context) => {
|
|
1317
|
-
return {
|
|
1318
|
-
...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
|
|
1319
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1320
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1321
|
-
};
|
|
1322
|
-
};
|
|
1323
|
-
const se_ListTagsForResourceRequest = (input, context) => {
|
|
1324
|
-
return {
|
|
1325
|
-
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
1326
|
-
};
|
|
1327
|
-
};
|
|
1328
|
-
const se_MagneticStoreRejectedDataLocation = (input, context) => {
|
|
1329
|
-
return {
|
|
1330
|
-
...(input.S3Configuration != null && { S3Configuration: se_S3Configuration(input.S3Configuration, context) }),
|
|
1331
|
-
};
|
|
1332
|
-
};
|
|
1333
|
-
const se_MagneticStoreWriteProperties = (input, context) => {
|
|
1334
|
-
return {
|
|
1335
|
-
...(input.EnableMagneticStoreWrites != null && { EnableMagneticStoreWrites: input.EnableMagneticStoreWrites }),
|
|
1336
|
-
...(input.MagneticStoreRejectedDataLocation != null && {
|
|
1337
|
-
MagneticStoreRejectedDataLocation: se_MagneticStoreRejectedDataLocation(input.MagneticStoreRejectedDataLocation, context),
|
|
1338
|
-
}),
|
|
1339
|
-
};
|
|
1340
|
-
};
|
|
1341
|
-
const se_MeasureValue = (input, context) => {
|
|
1342
|
-
return {
|
|
1343
|
-
...(input.Name != null && { Name: input.Name }),
|
|
1344
|
-
...(input.Type != null && { Type: input.Type }),
|
|
1345
|
-
...(input.Value != null && { Value: input.Value }),
|
|
1346
|
-
};
|
|
1347
|
-
};
|
|
1348
|
-
const se_MeasureValues = (input, context) => {
|
|
1349
|
-
return input
|
|
1350
|
-
.filter((e) => e != null)
|
|
1351
|
-
.map((entry) => {
|
|
1352
|
-
return se_MeasureValue(entry, context);
|
|
1353
|
-
});
|
|
1354
|
-
};
|
|
1355
|
-
const se_MixedMeasureMapping = (input, context) => {
|
|
1356
|
-
return {
|
|
1357
|
-
...(input.MeasureName != null && { MeasureName: input.MeasureName }),
|
|
1358
|
-
...(input.MeasureValueType != null && { MeasureValueType: input.MeasureValueType }),
|
|
1359
|
-
...(input.MultiMeasureAttributeMappings != null && {
|
|
1360
|
-
MultiMeasureAttributeMappings: se_MultiMeasureAttributeMappingList(input.MultiMeasureAttributeMappings, context),
|
|
1361
|
-
}),
|
|
1362
|
-
...(input.SourceColumn != null && { SourceColumn: input.SourceColumn }),
|
|
1363
|
-
...(input.TargetMeasureName != null && { TargetMeasureName: input.TargetMeasureName }),
|
|
1364
|
-
};
|
|
1365
|
-
};
|
|
1366
|
-
const se_MixedMeasureMappingList = (input, context) => {
|
|
1367
|
-
return input
|
|
1368
|
-
.filter((e) => e != null)
|
|
1369
|
-
.map((entry) => {
|
|
1370
|
-
return se_MixedMeasureMapping(entry, context);
|
|
1371
|
-
});
|
|
1372
|
-
};
|
|
1373
|
-
const se_MultiMeasureAttributeMapping = (input, context) => {
|
|
1374
|
-
return {
|
|
1375
|
-
...(input.MeasureValueType != null && { MeasureValueType: input.MeasureValueType }),
|
|
1376
|
-
...(input.SourceColumn != null && { SourceColumn: input.SourceColumn }),
|
|
1377
|
-
...(input.TargetMultiMeasureAttributeName != null && {
|
|
1378
|
-
TargetMultiMeasureAttributeName: input.TargetMultiMeasureAttributeName,
|
|
1379
|
-
}),
|
|
1380
|
-
};
|
|
1381
|
-
};
|
|
1382
|
-
const se_MultiMeasureAttributeMappingList = (input, context) => {
|
|
1383
|
-
return input
|
|
1384
|
-
.filter((e) => e != null)
|
|
1385
|
-
.map((entry) => {
|
|
1386
|
-
return se_MultiMeasureAttributeMapping(entry, context);
|
|
1387
|
-
});
|
|
1388
|
-
};
|
|
1389
|
-
const se_MultiMeasureMappings = (input, context) => {
|
|
1390
|
-
return {
|
|
1391
|
-
...(input.MultiMeasureAttributeMappings != null && {
|
|
1392
|
-
MultiMeasureAttributeMappings: se_MultiMeasureAttributeMappingList(input.MultiMeasureAttributeMappings, context),
|
|
1393
|
-
}),
|
|
1394
|
-
...(input.TargetMultiMeasureName != null && { TargetMultiMeasureName: input.TargetMultiMeasureName }),
|
|
1395
|
-
};
|
|
1396
|
-
};
|
|
1397
|
-
const se__Record = (input, context) => {
|
|
1398
|
-
return {
|
|
1399
|
-
...(input.Dimensions != null && { Dimensions: se_Dimensions(input.Dimensions, context) }),
|
|
1400
|
-
...(input.MeasureName != null && { MeasureName: input.MeasureName }),
|
|
1401
|
-
...(input.MeasureValue != null && { MeasureValue: input.MeasureValue }),
|
|
1402
|
-
...(input.MeasureValueType != null && { MeasureValueType: input.MeasureValueType }),
|
|
1403
|
-
...(input.MeasureValues != null && { MeasureValues: se_MeasureValues(input.MeasureValues, context) }),
|
|
1404
|
-
...(input.Time != null && { Time: input.Time }),
|
|
1405
|
-
...(input.TimeUnit != null && { TimeUnit: input.TimeUnit }),
|
|
1406
|
-
...(input.Version != null && { Version: input.Version }),
|
|
1407
|
-
};
|
|
1408
|
-
};
|
|
1409
|
-
const se_Records = (input, context) => {
|
|
1410
|
-
return input
|
|
1411
|
-
.filter((e) => e != null)
|
|
1412
|
-
.map((entry) => {
|
|
1413
|
-
return se__Record(entry, context);
|
|
1414
|
-
});
|
|
1415
|
-
};
|
|
1416
|
-
const se_ReportConfiguration = (input, context) => {
|
|
1417
|
-
return {
|
|
1418
|
-
...(input.ReportS3Configuration != null && {
|
|
1419
|
-
ReportS3Configuration: se_ReportS3Configuration(input.ReportS3Configuration, context),
|
|
1420
|
-
}),
|
|
1421
|
-
};
|
|
1422
|
-
};
|
|
1423
|
-
const se_ReportS3Configuration = (input, context) => {
|
|
1424
|
-
return {
|
|
1425
|
-
...(input.BucketName != null && { BucketName: input.BucketName }),
|
|
1426
|
-
...(input.EncryptionOption != null && { EncryptionOption: input.EncryptionOption }),
|
|
1427
|
-
...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
|
|
1428
|
-
...(input.ObjectKeyPrefix != null && { ObjectKeyPrefix: input.ObjectKeyPrefix }),
|
|
1429
|
-
};
|
|
1430
|
-
};
|
|
1431
|
-
const se_ResumeBatchLoadTaskRequest = (input, context) => {
|
|
1432
|
-
return {
|
|
1433
|
-
...(input.TaskId != null && { TaskId: input.TaskId }),
|
|
1434
|
-
};
|
|
1435
|
-
};
|
|
1436
|
-
const se_RetentionProperties = (input, context) => {
|
|
1437
|
-
return {
|
|
1438
|
-
...(input.MagneticStoreRetentionPeriodInDays != null && {
|
|
1439
|
-
MagneticStoreRetentionPeriodInDays: input.MagneticStoreRetentionPeriodInDays,
|
|
1440
|
-
}),
|
|
1441
|
-
...(input.MemoryStoreRetentionPeriodInHours != null && {
|
|
1442
|
-
MemoryStoreRetentionPeriodInHours: input.MemoryStoreRetentionPeriodInHours,
|
|
1443
|
-
}),
|
|
1444
|
-
};
|
|
1445
|
-
};
|
|
1446
|
-
const se_S3Configuration = (input, context) => {
|
|
1447
|
-
return {
|
|
1448
|
-
...(input.BucketName != null && { BucketName: input.BucketName }),
|
|
1449
|
-
...(input.EncryptionOption != null && { EncryptionOption: input.EncryptionOption }),
|
|
1450
|
-
...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
|
|
1451
|
-
...(input.ObjectKeyPrefix != null && { ObjectKeyPrefix: input.ObjectKeyPrefix }),
|
|
1452
|
-
};
|
|
1453
|
-
};
|
|
1454
|
-
const se_Tag = (input, context) => {
|
|
1455
|
-
return {
|
|
1456
|
-
...(input.Key != null && { Key: input.Key }),
|
|
1457
|
-
...(input.Value != null && { Value: input.Value }),
|
|
1458
|
-
};
|
|
1459
|
-
};
|
|
1460
|
-
const se_TagKeyList = (input, context) => {
|
|
1461
|
-
return input
|
|
1462
|
-
.filter((e) => e != null)
|
|
1463
|
-
.map((entry) => {
|
|
1464
|
-
return entry;
|
|
1465
|
-
});
|
|
1466
|
-
};
|
|
1467
|
-
const se_TagList = (input, context) => {
|
|
1468
|
-
return input
|
|
1469
|
-
.filter((e) => e != null)
|
|
1470
|
-
.map((entry) => {
|
|
1471
|
-
return se_Tag(entry, context);
|
|
1472
|
-
});
|
|
1473
|
-
};
|
|
1474
|
-
const se_TagResourceRequest = (input, context) => {
|
|
1475
|
-
return {
|
|
1476
|
-
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
1477
|
-
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
1478
|
-
};
|
|
1479
|
-
};
|
|
1480
|
-
const se_UntagResourceRequest = (input, context) => {
|
|
1481
|
-
return {
|
|
1482
|
-
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
1483
|
-
...(input.TagKeys != null && { TagKeys: se_TagKeyList(input.TagKeys, context) }),
|
|
1484
|
-
};
|
|
1485
|
-
};
|
|
1486
|
-
const se_UpdateDatabaseRequest = (input, context) => {
|
|
1487
|
-
return {
|
|
1488
|
-
...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
|
|
1489
|
-
...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
|
|
1490
|
-
};
|
|
1491
|
-
};
|
|
1492
|
-
const se_UpdateTableRequest = (input, context) => {
|
|
1493
|
-
return {
|
|
1494
|
-
...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
|
|
1495
|
-
...(input.MagneticStoreWriteProperties != null && {
|
|
1496
|
-
MagneticStoreWriteProperties: se_MagneticStoreWriteProperties(input.MagneticStoreWriteProperties, context),
|
|
1497
|
-
}),
|
|
1498
|
-
...(input.RetentionProperties != null && {
|
|
1499
|
-
RetentionProperties: se_RetentionProperties(input.RetentionProperties, context),
|
|
1500
|
-
}),
|
|
1501
|
-
...(input.TableName != null && { TableName: input.TableName }),
|
|
1502
|
-
};
|
|
1503
|
-
};
|
|
1504
|
-
const se_WriteRecordsRequest = (input, context) => {
|
|
1505
|
-
return {
|
|
1506
|
-
...(input.CommonAttributes != null && { CommonAttributes: se__Record(input.CommonAttributes, context) }),
|
|
1507
|
-
...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
|
|
1508
|
-
...(input.Records != null && { Records: se_Records(input.Records, context) }),
|
|
1509
|
-
...(input.TableName != null && { TableName: input.TableName }),
|
|
1510
|
-
};
|
|
1511
|
-
};
|
|
1512
|
-
const de_AccessDeniedException = (output, context) => {
|
|
1513
|
-
return {
|
|
1514
|
-
Message: __expectString(output.Message),
|
|
1515
|
-
};
|
|
1516
|
-
};
|
|
1517
|
-
const de_BatchLoadProgressReport = (output, context) => {
|
|
1518
|
-
return {
|
|
1519
|
-
BytesMetered: __expectLong(output.BytesMetered),
|
|
1520
|
-
FileFailures: __expectLong(output.FileFailures),
|
|
1521
|
-
ParseFailures: __expectLong(output.ParseFailures),
|
|
1522
|
-
RecordIngestionFailures: __expectLong(output.RecordIngestionFailures),
|
|
1523
|
-
RecordsIngested: __expectLong(output.RecordsIngested),
|
|
1524
|
-
RecordsProcessed: __expectLong(output.RecordsProcessed),
|
|
1525
|
-
};
|
|
1526
|
-
};
|
|
1527
1090
|
const de_BatchLoadTask = (output, context) => {
|
|
1528
|
-
return {
|
|
1529
|
-
CreationTime:
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ResumableUntil)))
|
|
1538
|
-
: undefined,
|
|
1539
|
-
TableName: __expectString(output.TableName),
|
|
1540
|
-
TaskId: __expectString(output.TaskId),
|
|
1541
|
-
TaskStatus: __expectString(output.TaskStatus),
|
|
1542
|
-
};
|
|
1091
|
+
return take(output, {
|
|
1092
|
+
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1093
|
+
DatabaseName: __expectString,
|
|
1094
|
+
LastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1095
|
+
ResumableUntil: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1096
|
+
TableName: __expectString,
|
|
1097
|
+
TaskId: __expectString,
|
|
1098
|
+
TaskStatus: __expectString,
|
|
1099
|
+
});
|
|
1543
1100
|
};
|
|
1544
1101
|
const de_BatchLoadTaskDescription = (output, context) => {
|
|
1545
|
-
return {
|
|
1546
|
-
CreationTime:
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
RecordVersion: __expectLong(output.RecordVersion),
|
|
1561
|
-
ReportConfiguration: output.ReportConfiguration != null ? de_ReportConfiguration(output.ReportConfiguration, context) : undefined,
|
|
1562
|
-
ResumableUntil: output.ResumableUntil != null
|
|
1563
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ResumableUntil)))
|
|
1564
|
-
: undefined,
|
|
1565
|
-
TargetDatabaseName: __expectString(output.TargetDatabaseName),
|
|
1566
|
-
TargetTableName: __expectString(output.TargetTableName),
|
|
1567
|
-
TaskId: __expectString(output.TaskId),
|
|
1568
|
-
TaskStatus: __expectString(output.TaskStatus),
|
|
1569
|
-
};
|
|
1102
|
+
return take(output, {
|
|
1103
|
+
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1104
|
+
DataModelConfiguration: _json,
|
|
1105
|
+
DataSourceConfiguration: _json,
|
|
1106
|
+
ErrorMessage: __expectString,
|
|
1107
|
+
LastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1108
|
+
ProgressReport: _json,
|
|
1109
|
+
RecordVersion: __expectLong,
|
|
1110
|
+
ReportConfiguration: _json,
|
|
1111
|
+
ResumableUntil: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1112
|
+
TargetDatabaseName: __expectString,
|
|
1113
|
+
TargetTableName: __expectString,
|
|
1114
|
+
TaskId: __expectString,
|
|
1115
|
+
TaskStatus: __expectString,
|
|
1116
|
+
});
|
|
1570
1117
|
};
|
|
1571
1118
|
const de_BatchLoadTaskList = (output, context) => {
|
|
1572
1119
|
const retVal = (output || [])
|
|
1573
1120
|
.filter((e) => e != null)
|
|
1574
1121
|
.map((entry) => {
|
|
1575
|
-
if (entry === null) {
|
|
1576
|
-
return null;
|
|
1577
|
-
}
|
|
1578
1122
|
return de_BatchLoadTask(entry, context);
|
|
1579
1123
|
});
|
|
1580
1124
|
return retVal;
|
|
1581
1125
|
};
|
|
1582
|
-
const de_ConflictException = (output, context) => {
|
|
1583
|
-
return {
|
|
1584
|
-
Message: __expectString(output.Message),
|
|
1585
|
-
};
|
|
1586
|
-
};
|
|
1587
|
-
const de_CreateBatchLoadTaskResponse = (output, context) => {
|
|
1588
|
-
return {
|
|
1589
|
-
TaskId: __expectString(output.TaskId),
|
|
1590
|
-
};
|
|
1591
|
-
};
|
|
1592
1126
|
const de_CreateDatabaseResponse = (output, context) => {
|
|
1593
|
-
return {
|
|
1594
|
-
Database:
|
|
1595
|
-
};
|
|
1127
|
+
return take(output, {
|
|
1128
|
+
Database: (_) => de_Database(_, context),
|
|
1129
|
+
});
|
|
1596
1130
|
};
|
|
1597
1131
|
const de_CreateTableResponse = (output, context) => {
|
|
1598
|
-
return {
|
|
1599
|
-
Table:
|
|
1600
|
-
};
|
|
1601
|
-
};
|
|
1602
|
-
const de_CsvConfiguration = (output, context) => {
|
|
1603
|
-
return {
|
|
1604
|
-
ColumnSeparator: __expectString(output.ColumnSeparator),
|
|
1605
|
-
EscapeChar: __expectString(output.EscapeChar),
|
|
1606
|
-
NullValue: __expectString(output.NullValue),
|
|
1607
|
-
QuoteChar: __expectString(output.QuoteChar),
|
|
1608
|
-
TrimWhiteSpace: __expectBoolean(output.TrimWhiteSpace),
|
|
1609
|
-
};
|
|
1132
|
+
return take(output, {
|
|
1133
|
+
Table: (_) => de_Table(_, context),
|
|
1134
|
+
});
|
|
1610
1135
|
};
|
|
1611
1136
|
const de_Database = (output, context) => {
|
|
1612
|
-
return {
|
|
1613
|
-
Arn: __expectString
|
|
1614
|
-
CreationTime:
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedTime)))
|
|
1621
|
-
: undefined,
|
|
1622
|
-
TableCount: __expectLong(output.TableCount),
|
|
1623
|
-
};
|
|
1137
|
+
return take(output, {
|
|
1138
|
+
Arn: __expectString,
|
|
1139
|
+
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1140
|
+
DatabaseName: __expectString,
|
|
1141
|
+
KmsKeyId: __expectString,
|
|
1142
|
+
LastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1143
|
+
TableCount: __expectLong,
|
|
1144
|
+
});
|
|
1624
1145
|
};
|
|
1625
1146
|
const de_DatabaseList = (output, context) => {
|
|
1626
1147
|
const retVal = (output || [])
|
|
1627
1148
|
.filter((e) => e != null)
|
|
1628
1149
|
.map((entry) => {
|
|
1629
|
-
if (entry === null) {
|
|
1630
|
-
return null;
|
|
1631
|
-
}
|
|
1632
1150
|
return de_Database(entry, context);
|
|
1633
1151
|
});
|
|
1634
1152
|
return retVal;
|
|
1635
1153
|
};
|
|
1636
|
-
const de_DataModel = (output, context) => {
|
|
1637
|
-
return {
|
|
1638
|
-
DimensionMappings: output.DimensionMappings != null ? de_DimensionMappings(output.DimensionMappings, context) : undefined,
|
|
1639
|
-
MeasureNameColumn: __expectString(output.MeasureNameColumn),
|
|
1640
|
-
MixedMeasureMappings: output.MixedMeasureMappings != null
|
|
1641
|
-
? de_MixedMeasureMappingList(output.MixedMeasureMappings, context)
|
|
1642
|
-
: undefined,
|
|
1643
|
-
MultiMeasureMappings: output.MultiMeasureMappings != null ? de_MultiMeasureMappings(output.MultiMeasureMappings, context) : undefined,
|
|
1644
|
-
TimeColumn: __expectString(output.TimeColumn),
|
|
1645
|
-
TimeUnit: __expectString(output.TimeUnit),
|
|
1646
|
-
};
|
|
1647
|
-
};
|
|
1648
|
-
const de_DataModelConfiguration = (output, context) => {
|
|
1649
|
-
return {
|
|
1650
|
-
DataModel: output.DataModel != null ? de_DataModel(output.DataModel, context) : undefined,
|
|
1651
|
-
DataModelS3Configuration: output.DataModelS3Configuration != null
|
|
1652
|
-
? de_DataModelS3Configuration(output.DataModelS3Configuration, context)
|
|
1653
|
-
: undefined,
|
|
1654
|
-
};
|
|
1655
|
-
};
|
|
1656
|
-
const de_DataModelS3Configuration = (output, context) => {
|
|
1657
|
-
return {
|
|
1658
|
-
BucketName: __expectString(output.BucketName),
|
|
1659
|
-
ObjectKey: __expectString(output.ObjectKey),
|
|
1660
|
-
};
|
|
1661
|
-
};
|
|
1662
|
-
const de_DataSourceConfiguration = (output, context) => {
|
|
1663
|
-
return {
|
|
1664
|
-
CsvConfiguration: output.CsvConfiguration != null ? de_CsvConfiguration(output.CsvConfiguration, context) : undefined,
|
|
1665
|
-
DataFormat: __expectString(output.DataFormat),
|
|
1666
|
-
DataSourceS3Configuration: output.DataSourceS3Configuration != null
|
|
1667
|
-
? de_DataSourceS3Configuration(output.DataSourceS3Configuration, context)
|
|
1668
|
-
: undefined,
|
|
1669
|
-
};
|
|
1670
|
-
};
|
|
1671
|
-
const de_DataSourceS3Configuration = (output, context) => {
|
|
1672
|
-
return {
|
|
1673
|
-
BucketName: __expectString(output.BucketName),
|
|
1674
|
-
ObjectKeyPrefix: __expectString(output.ObjectKeyPrefix),
|
|
1675
|
-
};
|
|
1676
|
-
};
|
|
1677
1154
|
const de_DescribeBatchLoadTaskResponse = (output, context) => {
|
|
1678
|
-
return {
|
|
1679
|
-
BatchLoadTaskDescription:
|
|
1680
|
-
|
|
1681
|
-
: undefined,
|
|
1682
|
-
};
|
|
1155
|
+
return take(output, {
|
|
1156
|
+
BatchLoadTaskDescription: (_) => de_BatchLoadTaskDescription(_, context),
|
|
1157
|
+
});
|
|
1683
1158
|
};
|
|
1684
1159
|
const de_DescribeDatabaseResponse = (output, context) => {
|
|
1685
|
-
return {
|
|
1686
|
-
Database:
|
|
1687
|
-
};
|
|
1688
|
-
};
|
|
1689
|
-
const de_DescribeEndpointsResponse = (output, context) => {
|
|
1690
|
-
return {
|
|
1691
|
-
Endpoints: output.Endpoints != null ? de_Endpoints(output.Endpoints, context) : undefined,
|
|
1692
|
-
};
|
|
1693
|
-
};
|
|
1694
|
-
const de_DescribeTableResponse = (output, context) => {
|
|
1695
|
-
return {
|
|
1696
|
-
Table: output.Table != null ? de_Table(output.Table, context) : undefined,
|
|
1697
|
-
};
|
|
1698
|
-
};
|
|
1699
|
-
const de_DimensionMapping = (output, context) => {
|
|
1700
|
-
return {
|
|
1701
|
-
DestinationColumn: __expectString(output.DestinationColumn),
|
|
1702
|
-
SourceColumn: __expectString(output.SourceColumn),
|
|
1703
|
-
};
|
|
1704
|
-
};
|
|
1705
|
-
const de_DimensionMappings = (output, context) => {
|
|
1706
|
-
const retVal = (output || [])
|
|
1707
|
-
.filter((e) => e != null)
|
|
1708
|
-
.map((entry) => {
|
|
1709
|
-
if (entry === null) {
|
|
1710
|
-
return null;
|
|
1711
|
-
}
|
|
1712
|
-
return de_DimensionMapping(entry, context);
|
|
1160
|
+
return take(output, {
|
|
1161
|
+
Database: (_) => de_Database(_, context),
|
|
1713
1162
|
});
|
|
1714
|
-
return retVal;
|
|
1715
|
-
};
|
|
1716
|
-
const de_Endpoint = (output, context) => {
|
|
1717
|
-
return {
|
|
1718
|
-
Address: __expectString(output.Address),
|
|
1719
|
-
CachePeriodInMinutes: __expectLong(output.CachePeriodInMinutes),
|
|
1720
|
-
};
|
|
1721
1163
|
};
|
|
1722
|
-
const
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
.map((entry) => {
|
|
1726
|
-
if (entry === null) {
|
|
1727
|
-
return null;
|
|
1728
|
-
}
|
|
1729
|
-
return de_Endpoint(entry, context);
|
|
1164
|
+
const de_DescribeTableResponse = (output, context) => {
|
|
1165
|
+
return take(output, {
|
|
1166
|
+
Table: (_) => de_Table(_, context),
|
|
1730
1167
|
});
|
|
1731
|
-
return retVal;
|
|
1732
|
-
};
|
|
1733
|
-
const de_InternalServerException = (output, context) => {
|
|
1734
|
-
return {
|
|
1735
|
-
Message: __expectString(output.Message),
|
|
1736
|
-
};
|
|
1737
|
-
};
|
|
1738
|
-
const de_InvalidEndpointException = (output, context) => {
|
|
1739
|
-
return {
|
|
1740
|
-
Message: __expectString(output.Message),
|
|
1741
|
-
};
|
|
1742
1168
|
};
|
|
1743
1169
|
const de_ListBatchLoadTasksResponse = (output, context) => {
|
|
1744
|
-
return {
|
|
1745
|
-
BatchLoadTasks:
|
|
1746
|
-
NextToken: __expectString
|
|
1747
|
-
};
|
|
1748
|
-
};
|
|
1749
|
-
const de_ListDatabasesResponse = (output, context) => {
|
|
1750
|
-
return {
|
|
1751
|
-
Databases: output.Databases != null ? de_DatabaseList(output.Databases, context) : undefined,
|
|
1752
|
-
NextToken: __expectString(output.NextToken),
|
|
1753
|
-
};
|
|
1754
|
-
};
|
|
1755
|
-
const de_ListTablesResponse = (output, context) => {
|
|
1756
|
-
return {
|
|
1757
|
-
NextToken: __expectString(output.NextToken),
|
|
1758
|
-
Tables: output.Tables != null ? de_TableList(output.Tables, context) : undefined,
|
|
1759
|
-
};
|
|
1760
|
-
};
|
|
1761
|
-
const de_ListTagsForResourceResponse = (output, context) => {
|
|
1762
|
-
return {
|
|
1763
|
-
Tags: output.Tags != null ? de_TagList(output.Tags, context) : undefined,
|
|
1764
|
-
};
|
|
1765
|
-
};
|
|
1766
|
-
const de_MagneticStoreRejectedDataLocation = (output, context) => {
|
|
1767
|
-
return {
|
|
1768
|
-
S3Configuration: output.S3Configuration != null ? de_S3Configuration(output.S3Configuration, context) : undefined,
|
|
1769
|
-
};
|
|
1770
|
-
};
|
|
1771
|
-
const de_MagneticStoreWriteProperties = (output, context) => {
|
|
1772
|
-
return {
|
|
1773
|
-
EnableMagneticStoreWrites: __expectBoolean(output.EnableMagneticStoreWrites),
|
|
1774
|
-
MagneticStoreRejectedDataLocation: output.MagneticStoreRejectedDataLocation != null
|
|
1775
|
-
? de_MagneticStoreRejectedDataLocation(output.MagneticStoreRejectedDataLocation, context)
|
|
1776
|
-
: undefined,
|
|
1777
|
-
};
|
|
1778
|
-
};
|
|
1779
|
-
const de_MixedMeasureMapping = (output, context) => {
|
|
1780
|
-
return {
|
|
1781
|
-
MeasureName: __expectString(output.MeasureName),
|
|
1782
|
-
MeasureValueType: __expectString(output.MeasureValueType),
|
|
1783
|
-
MultiMeasureAttributeMappings: output.MultiMeasureAttributeMappings != null
|
|
1784
|
-
? de_MultiMeasureAttributeMappingList(output.MultiMeasureAttributeMappings, context)
|
|
1785
|
-
: undefined,
|
|
1786
|
-
SourceColumn: __expectString(output.SourceColumn),
|
|
1787
|
-
TargetMeasureName: __expectString(output.TargetMeasureName),
|
|
1788
|
-
};
|
|
1789
|
-
};
|
|
1790
|
-
const de_MixedMeasureMappingList = (output, context) => {
|
|
1791
|
-
const retVal = (output || [])
|
|
1792
|
-
.filter((e) => e != null)
|
|
1793
|
-
.map((entry) => {
|
|
1794
|
-
if (entry === null) {
|
|
1795
|
-
return null;
|
|
1796
|
-
}
|
|
1797
|
-
return de_MixedMeasureMapping(entry, context);
|
|
1170
|
+
return take(output, {
|
|
1171
|
+
BatchLoadTasks: (_) => de_BatchLoadTaskList(_, context),
|
|
1172
|
+
NextToken: __expectString,
|
|
1798
1173
|
});
|
|
1799
|
-
return retVal;
|
|
1800
|
-
};
|
|
1801
|
-
const de_MultiMeasureAttributeMapping = (output, context) => {
|
|
1802
|
-
return {
|
|
1803
|
-
MeasureValueType: __expectString(output.MeasureValueType),
|
|
1804
|
-
SourceColumn: __expectString(output.SourceColumn),
|
|
1805
|
-
TargetMultiMeasureAttributeName: __expectString(output.TargetMultiMeasureAttributeName),
|
|
1806
|
-
};
|
|
1807
1174
|
};
|
|
1808
|
-
const
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
if (entry === null) {
|
|
1813
|
-
return null;
|
|
1814
|
-
}
|
|
1815
|
-
return de_MultiMeasureAttributeMapping(entry, context);
|
|
1175
|
+
const de_ListDatabasesResponse = (output, context) => {
|
|
1176
|
+
return take(output, {
|
|
1177
|
+
Databases: (_) => de_DatabaseList(_, context),
|
|
1178
|
+
NextToken: __expectString,
|
|
1816
1179
|
});
|
|
1817
|
-
return retVal;
|
|
1818
|
-
};
|
|
1819
|
-
const de_MultiMeasureMappings = (output, context) => {
|
|
1820
|
-
return {
|
|
1821
|
-
MultiMeasureAttributeMappings: output.MultiMeasureAttributeMappings != null
|
|
1822
|
-
? de_MultiMeasureAttributeMappingList(output.MultiMeasureAttributeMappings, context)
|
|
1823
|
-
: undefined,
|
|
1824
|
-
TargetMultiMeasureName: __expectString(output.TargetMultiMeasureName),
|
|
1825
|
-
};
|
|
1826
1180
|
};
|
|
1827
|
-
const
|
|
1828
|
-
return {
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
Total: __expectInt32(output.Total),
|
|
1832
|
-
};
|
|
1833
|
-
};
|
|
1834
|
-
const de_RejectedRecord = (output, context) => {
|
|
1835
|
-
return {
|
|
1836
|
-
ExistingVersion: __expectLong(output.ExistingVersion),
|
|
1837
|
-
Reason: __expectString(output.Reason),
|
|
1838
|
-
RecordIndex: __expectInt32(output.RecordIndex),
|
|
1839
|
-
};
|
|
1840
|
-
};
|
|
1841
|
-
const de_RejectedRecords = (output, context) => {
|
|
1842
|
-
const retVal = (output || [])
|
|
1843
|
-
.filter((e) => e != null)
|
|
1844
|
-
.map((entry) => {
|
|
1845
|
-
if (entry === null) {
|
|
1846
|
-
return null;
|
|
1847
|
-
}
|
|
1848
|
-
return de_RejectedRecord(entry, context);
|
|
1181
|
+
const de_ListTablesResponse = (output, context) => {
|
|
1182
|
+
return take(output, {
|
|
1183
|
+
NextToken: __expectString,
|
|
1184
|
+
Tables: (_) => de_TableList(_, context),
|
|
1849
1185
|
});
|
|
1850
|
-
return retVal;
|
|
1851
|
-
};
|
|
1852
|
-
const de_RejectedRecordsException = (output, context) => {
|
|
1853
|
-
return {
|
|
1854
|
-
Message: __expectString(output.Message),
|
|
1855
|
-
RejectedRecords: output.RejectedRecords != null ? de_RejectedRecords(output.RejectedRecords, context) : undefined,
|
|
1856
|
-
};
|
|
1857
|
-
};
|
|
1858
|
-
const de_ReportConfiguration = (output, context) => {
|
|
1859
|
-
return {
|
|
1860
|
-
ReportS3Configuration: output.ReportS3Configuration != null
|
|
1861
|
-
? de_ReportS3Configuration(output.ReportS3Configuration, context)
|
|
1862
|
-
: undefined,
|
|
1863
|
-
};
|
|
1864
|
-
};
|
|
1865
|
-
const de_ReportS3Configuration = (output, context) => {
|
|
1866
|
-
return {
|
|
1867
|
-
BucketName: __expectString(output.BucketName),
|
|
1868
|
-
EncryptionOption: __expectString(output.EncryptionOption),
|
|
1869
|
-
KmsKeyId: __expectString(output.KmsKeyId),
|
|
1870
|
-
ObjectKeyPrefix: __expectString(output.ObjectKeyPrefix),
|
|
1871
|
-
};
|
|
1872
|
-
};
|
|
1873
|
-
const de_ResourceNotFoundException = (output, context) => {
|
|
1874
|
-
return {
|
|
1875
|
-
Message: __expectString(output.Message),
|
|
1876
|
-
};
|
|
1877
|
-
};
|
|
1878
|
-
const de_ResumeBatchLoadTaskResponse = (output, context) => {
|
|
1879
|
-
return {};
|
|
1880
|
-
};
|
|
1881
|
-
const de_RetentionProperties = (output, context) => {
|
|
1882
|
-
return {
|
|
1883
|
-
MagneticStoreRetentionPeriodInDays: __expectLong(output.MagneticStoreRetentionPeriodInDays),
|
|
1884
|
-
MemoryStoreRetentionPeriodInHours: __expectLong(output.MemoryStoreRetentionPeriodInHours),
|
|
1885
|
-
};
|
|
1886
|
-
};
|
|
1887
|
-
const de_S3Configuration = (output, context) => {
|
|
1888
|
-
return {
|
|
1889
|
-
BucketName: __expectString(output.BucketName),
|
|
1890
|
-
EncryptionOption: __expectString(output.EncryptionOption),
|
|
1891
|
-
KmsKeyId: __expectString(output.KmsKeyId),
|
|
1892
|
-
ObjectKeyPrefix: __expectString(output.ObjectKeyPrefix),
|
|
1893
|
-
};
|
|
1894
|
-
};
|
|
1895
|
-
const de_ServiceQuotaExceededException = (output, context) => {
|
|
1896
|
-
return {
|
|
1897
|
-
Message: __expectString(output.Message),
|
|
1898
|
-
};
|
|
1899
1186
|
};
|
|
1900
1187
|
const de_Table = (output, context) => {
|
|
1901
|
-
return {
|
|
1902
|
-
Arn: __expectString
|
|
1903
|
-
CreationTime:
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
? de_MagneticStoreWriteProperties(output.MagneticStoreWriteProperties, context)
|
|
1912
|
-
: undefined,
|
|
1913
|
-
RetentionProperties: output.RetentionProperties != null ? de_RetentionProperties(output.RetentionProperties, context) : undefined,
|
|
1914
|
-
TableName: __expectString(output.TableName),
|
|
1915
|
-
TableStatus: __expectString(output.TableStatus),
|
|
1916
|
-
};
|
|
1188
|
+
return take(output, {
|
|
1189
|
+
Arn: __expectString,
|
|
1190
|
+
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1191
|
+
DatabaseName: __expectString,
|
|
1192
|
+
LastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1193
|
+
MagneticStoreWriteProperties: _json,
|
|
1194
|
+
RetentionProperties: _json,
|
|
1195
|
+
TableName: __expectString,
|
|
1196
|
+
TableStatus: __expectString,
|
|
1197
|
+
});
|
|
1917
1198
|
};
|
|
1918
1199
|
const de_TableList = (output, context) => {
|
|
1919
1200
|
const retVal = (output || [])
|
|
1920
1201
|
.filter((e) => e != null)
|
|
1921
1202
|
.map((entry) => {
|
|
1922
|
-
if (entry === null) {
|
|
1923
|
-
return null;
|
|
1924
|
-
}
|
|
1925
1203
|
return de_Table(entry, context);
|
|
1926
1204
|
});
|
|
1927
1205
|
return retVal;
|
|
1928
1206
|
};
|
|
1929
|
-
const de_Tag = (output, context) => {
|
|
1930
|
-
return {
|
|
1931
|
-
Key: __expectString(output.Key),
|
|
1932
|
-
Value: __expectString(output.Value),
|
|
1933
|
-
};
|
|
1934
|
-
};
|
|
1935
|
-
const de_TagList = (output, context) => {
|
|
1936
|
-
const retVal = (output || [])
|
|
1937
|
-
.filter((e) => e != null)
|
|
1938
|
-
.map((entry) => {
|
|
1939
|
-
if (entry === null) {
|
|
1940
|
-
return null;
|
|
1941
|
-
}
|
|
1942
|
-
return de_Tag(entry, context);
|
|
1943
|
-
});
|
|
1944
|
-
return retVal;
|
|
1945
|
-
};
|
|
1946
|
-
const de_TagResourceResponse = (output, context) => {
|
|
1947
|
-
return {};
|
|
1948
|
-
};
|
|
1949
|
-
const de_ThrottlingException = (output, context) => {
|
|
1950
|
-
return {
|
|
1951
|
-
Message: __expectString(output.Message),
|
|
1952
|
-
};
|
|
1953
|
-
};
|
|
1954
|
-
const de_UntagResourceResponse = (output, context) => {
|
|
1955
|
-
return {};
|
|
1956
|
-
};
|
|
1957
1207
|
const de_UpdateDatabaseResponse = (output, context) => {
|
|
1958
|
-
return {
|
|
1959
|
-
Database:
|
|
1960
|
-
};
|
|
1208
|
+
return take(output, {
|
|
1209
|
+
Database: (_) => de_Database(_, context),
|
|
1210
|
+
});
|
|
1961
1211
|
};
|
|
1962
1212
|
const de_UpdateTableResponse = (output, context) => {
|
|
1963
|
-
return {
|
|
1964
|
-
Table:
|
|
1965
|
-
};
|
|
1966
|
-
};
|
|
1967
|
-
const de_ValidationException = (output, context) => {
|
|
1968
|
-
return {
|
|
1969
|
-
Message: __expectString(output.Message),
|
|
1970
|
-
};
|
|
1971
|
-
};
|
|
1972
|
-
const de_WriteRecordsResponse = (output, context) => {
|
|
1973
|
-
return {
|
|
1974
|
-
RecordsIngested: output.RecordsIngested != null ? de_RecordsIngested(output.RecordsIngested, context) : undefined,
|
|
1975
|
-
};
|
|
1213
|
+
return take(output, {
|
|
1214
|
+
Table: (_) => de_Table(_, context),
|
|
1215
|
+
});
|
|
1976
1216
|
};
|
|
1977
1217
|
const deserializeMetadata = (output) => ({
|
|
1978
1218
|
httpStatusCode: output.statusCode,
|
|
@@ -1987,6 +1227,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
|
1987
1227
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
1988
1228
|
};
|
|
1989
1229
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1230
|
+
const throwDefaultError = withBaseException(__BaseException);
|
|
1990
1231
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
1991
1232
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1992
1233
|
const contents = {
|
|
@@ -2005,6 +1246,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
|
|
|
2005
1246
|
}
|
|
2006
1247
|
return new __HttpRequest(contents);
|
|
2007
1248
|
};
|
|
1249
|
+
function sharedHeaders(operation) {
|
|
1250
|
+
return {
|
|
1251
|
+
"content-type": "application/x-amz-json-1.0",
|
|
1252
|
+
"x-amz-target": `Timestream_20181101.${operation}`,
|
|
1253
|
+
};
|
|
1254
|
+
}
|
|
2008
1255
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2009
1256
|
if (encoded.length) {
|
|
2010
1257
|
return JSON.parse(encoded);
|