@aws-sdk/client-timestream-write 3.278.0 → 3.280.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/README.md +19 -13
- package/dist-cjs/TimestreamWrite.js +60 -0
- package/dist-cjs/commands/CreateBatchLoadTaskCommand.js +48 -0
- package/dist-cjs/commands/DescribeBatchLoadTaskCommand.js +48 -0
- package/dist-cjs/commands/ListBatchLoadTasksCommand.js +48 -0
- package/dist-cjs/commands/ResumeBatchLoadTaskCommand.js +48 -0
- package/dist-cjs/commands/index.js +4 -0
- package/dist-cjs/endpoint/ruleset.js +3 -3
- package/dist-cjs/models/models_0.js +153 -37
- package/dist-cjs/pagination/ListBatchLoadTasksPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_json1_0.js +626 -1
- package/dist-es/TimestreamWrite.js +60 -0
- package/dist-es/commands/CreateBatchLoadTaskCommand.js +44 -0
- package/dist-es/commands/DescribeBatchLoadTaskCommand.js +44 -0
- package/dist-es/commands/ListBatchLoadTasksCommand.js +44 -0
- package/dist-es/commands/ResumeBatchLoadTaskCommand.js +44 -0
- package/dist-es/commands/index.js +4 -0
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-es/models/models_0.js +127 -34
- package/dist-es/pagination/ListBatchLoadTasksPaginator.js +32 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_json1_0.js +617 -0
- package/dist-types/TimestreamWrite.d.ts +154 -131
- package/dist-types/TimestreamWriteClient.d.ts +18 -8
- package/dist-types/commands/CreateBatchLoadTaskCommand.d.ts +45 -0
- package/dist-types/commands/CreateDatabaseCommand.d.ts +3 -6
- package/dist-types/commands/CreateTableCommand.d.ts +6 -9
- package/dist-types/commands/DeleteDatabaseCommand.d.ts +9 -11
- package/dist-types/commands/DeleteTableCommand.d.ts +7 -8
- package/dist-types/commands/DescribeBatchLoadTaskCommand.d.ts +40 -0
- package/dist-types/commands/DescribeDatabaseCommand.d.ts +4 -4
- package/dist-types/commands/DescribeEndpointsCommand.d.ts +10 -8
- package/dist-types/commands/DescribeTableCommand.d.ts +4 -5
- package/dist-types/commands/ListBatchLoadTasksCommand.d.ts +39 -0
- package/dist-types/commands/ListDatabasesCommand.d.ts +3 -4
- package/dist-types/commands/ListTablesCommand.d.ts +3 -4
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -3
- package/dist-types/commands/ResumeBatchLoadTaskCommand.d.ts +38 -0
- package/dist-types/commands/TagResourceCommand.d.ts +3 -5
- package/dist-types/commands/UntagResourceCommand.d.ts +1 -3
- package/dist-types/commands/UpdateDatabaseCommand.d.ts +5 -7
- package/dist-types/commands/UpdateTableCommand.d.ts +6 -8
- package/dist-types/commands/WriteRecordsCommand.d.ts +36 -41
- package/dist-types/commands/index.d.ts +4 -0
- package/dist-types/models/models_0.d.ts +786 -274
- package/dist-types/pagination/ListBatchLoadTasksPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_json1_0.d.ts +12 -0
- package/dist-types/ts3.4/TimestreamWrite.d.ts +68 -0
- package/dist-types/ts3.4/TimestreamWriteClient.d.ts +24 -0
- package/dist-types/ts3.4/commands/CreateBatchLoadTaskCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DescribeBatchLoadTaskCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListBatchLoadTasksCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ResumeBatchLoadTaskCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/index.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +253 -43
- package/dist-types/ts3.4/pagination/ListBatchLoadTasksPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +48 -0
- package/package.json +9 -7
|
@@ -1,10 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.deserializeAws_json1_0WriteRecordsCommand = exports.deserializeAws_json1_0UpdateTableCommand = exports.deserializeAws_json1_0UpdateDatabaseCommand = exports.deserializeAws_json1_0UntagResourceCommand = exports.deserializeAws_json1_0TagResourceCommand = exports.deserializeAws_json1_0ListTagsForResourceCommand = exports.deserializeAws_json1_0ListTablesCommand = exports.deserializeAws_json1_0ListDatabasesCommand = exports.deserializeAws_json1_0DescribeTableCommand = exports.deserializeAws_json1_0DescribeEndpointsCommand = exports.deserializeAws_json1_0DescribeDatabaseCommand = exports.deserializeAws_json1_0DeleteTableCommand = exports.deserializeAws_json1_0DeleteDatabaseCommand = exports.deserializeAws_json1_0CreateTableCommand = exports.deserializeAws_json1_0CreateDatabaseCommand = exports.serializeAws_json1_0WriteRecordsCommand = exports.serializeAws_json1_0UpdateTableCommand = exports.serializeAws_json1_0UpdateDatabaseCommand = exports.serializeAws_json1_0UntagResourceCommand = exports.serializeAws_json1_0TagResourceCommand = exports.serializeAws_json1_0ListTagsForResourceCommand = exports.serializeAws_json1_0ListTablesCommand = exports.serializeAws_json1_0ListDatabasesCommand = exports.serializeAws_json1_0DescribeTableCommand = exports.serializeAws_json1_0DescribeEndpointsCommand = exports.serializeAws_json1_0DescribeDatabaseCommand = exports.serializeAws_json1_0DeleteTableCommand = exports.serializeAws_json1_0DeleteDatabaseCommand = exports.serializeAws_json1_0CreateTableCommand = exports.serializeAws_json1_0CreateDatabaseCommand = void 0;
|
|
3
|
+
exports.deserializeAws_json1_0WriteRecordsCommand = exports.deserializeAws_json1_0UpdateTableCommand = exports.deserializeAws_json1_0UpdateDatabaseCommand = exports.deserializeAws_json1_0UntagResourceCommand = exports.deserializeAws_json1_0TagResourceCommand = exports.deserializeAws_json1_0ResumeBatchLoadTaskCommand = exports.deserializeAws_json1_0ListTagsForResourceCommand = exports.deserializeAws_json1_0ListTablesCommand = exports.deserializeAws_json1_0ListDatabasesCommand = exports.deserializeAws_json1_0ListBatchLoadTasksCommand = exports.deserializeAws_json1_0DescribeTableCommand = exports.deserializeAws_json1_0DescribeEndpointsCommand = exports.deserializeAws_json1_0DescribeDatabaseCommand = exports.deserializeAws_json1_0DescribeBatchLoadTaskCommand = exports.deserializeAws_json1_0DeleteTableCommand = exports.deserializeAws_json1_0DeleteDatabaseCommand = exports.deserializeAws_json1_0CreateTableCommand = exports.deserializeAws_json1_0CreateDatabaseCommand = exports.deserializeAws_json1_0CreateBatchLoadTaskCommand = exports.serializeAws_json1_0WriteRecordsCommand = exports.serializeAws_json1_0UpdateTableCommand = exports.serializeAws_json1_0UpdateDatabaseCommand = exports.serializeAws_json1_0UntagResourceCommand = exports.serializeAws_json1_0TagResourceCommand = exports.serializeAws_json1_0ResumeBatchLoadTaskCommand = exports.serializeAws_json1_0ListTagsForResourceCommand = exports.serializeAws_json1_0ListTablesCommand = exports.serializeAws_json1_0ListDatabasesCommand = exports.serializeAws_json1_0ListBatchLoadTasksCommand = exports.serializeAws_json1_0DescribeTableCommand = exports.serializeAws_json1_0DescribeEndpointsCommand = exports.serializeAws_json1_0DescribeDatabaseCommand = exports.serializeAws_json1_0DescribeBatchLoadTaskCommand = exports.serializeAws_json1_0DeleteTableCommand = exports.serializeAws_json1_0DeleteDatabaseCommand = exports.serializeAws_json1_0CreateTableCommand = exports.serializeAws_json1_0CreateDatabaseCommand = exports.serializeAws_json1_0CreateBatchLoadTaskCommand = void 0;
|
|
4
4
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const uuid_1 = require("uuid");
|
|
6
7
|
const models_0_1 = require("../models/models_0");
|
|
7
8
|
const TimestreamWriteServiceException_1 = require("../models/TimestreamWriteServiceException");
|
|
9
|
+
const serializeAws_json1_0CreateBatchLoadTaskCommand = async (input, context) => {
|
|
10
|
+
const headers = {
|
|
11
|
+
"content-type": "application/x-amz-json-1.0",
|
|
12
|
+
"x-amz-target": "Timestream_20181101.CreateBatchLoadTask",
|
|
13
|
+
};
|
|
14
|
+
let body;
|
|
15
|
+
body = JSON.stringify(serializeAws_json1_0CreateBatchLoadTaskRequest(input, context));
|
|
16
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
17
|
+
};
|
|
18
|
+
exports.serializeAws_json1_0CreateBatchLoadTaskCommand = serializeAws_json1_0CreateBatchLoadTaskCommand;
|
|
8
19
|
const serializeAws_json1_0CreateDatabaseCommand = async (input, context) => {
|
|
9
20
|
const headers = {
|
|
10
21
|
"content-type": "application/x-amz-json-1.0",
|
|
@@ -45,6 +56,16 @@ const serializeAws_json1_0DeleteTableCommand = async (input, context) => {
|
|
|
45
56
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
46
57
|
};
|
|
47
58
|
exports.serializeAws_json1_0DeleteTableCommand = serializeAws_json1_0DeleteTableCommand;
|
|
59
|
+
const serializeAws_json1_0DescribeBatchLoadTaskCommand = async (input, context) => {
|
|
60
|
+
const headers = {
|
|
61
|
+
"content-type": "application/x-amz-json-1.0",
|
|
62
|
+
"x-amz-target": "Timestream_20181101.DescribeBatchLoadTask",
|
|
63
|
+
};
|
|
64
|
+
let body;
|
|
65
|
+
body = JSON.stringify(serializeAws_json1_0DescribeBatchLoadTaskRequest(input, context));
|
|
66
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
67
|
+
};
|
|
68
|
+
exports.serializeAws_json1_0DescribeBatchLoadTaskCommand = serializeAws_json1_0DescribeBatchLoadTaskCommand;
|
|
48
69
|
const serializeAws_json1_0DescribeDatabaseCommand = async (input, context) => {
|
|
49
70
|
const headers = {
|
|
50
71
|
"content-type": "application/x-amz-json-1.0",
|
|
@@ -75,6 +96,16 @@ const serializeAws_json1_0DescribeTableCommand = async (input, context) => {
|
|
|
75
96
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
76
97
|
};
|
|
77
98
|
exports.serializeAws_json1_0DescribeTableCommand = serializeAws_json1_0DescribeTableCommand;
|
|
99
|
+
const serializeAws_json1_0ListBatchLoadTasksCommand = async (input, context) => {
|
|
100
|
+
const headers = {
|
|
101
|
+
"content-type": "application/x-amz-json-1.0",
|
|
102
|
+
"x-amz-target": "Timestream_20181101.ListBatchLoadTasks",
|
|
103
|
+
};
|
|
104
|
+
let body;
|
|
105
|
+
body = JSON.stringify(serializeAws_json1_0ListBatchLoadTasksRequest(input, context));
|
|
106
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
107
|
+
};
|
|
108
|
+
exports.serializeAws_json1_0ListBatchLoadTasksCommand = serializeAws_json1_0ListBatchLoadTasksCommand;
|
|
78
109
|
const serializeAws_json1_0ListDatabasesCommand = async (input, context) => {
|
|
79
110
|
const headers = {
|
|
80
111
|
"content-type": "application/x-amz-json-1.0",
|
|
@@ -105,6 +136,16 @@ const serializeAws_json1_0ListTagsForResourceCommand = async (input, context) =>
|
|
|
105
136
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
106
137
|
};
|
|
107
138
|
exports.serializeAws_json1_0ListTagsForResourceCommand = serializeAws_json1_0ListTagsForResourceCommand;
|
|
139
|
+
const serializeAws_json1_0ResumeBatchLoadTaskCommand = async (input, context) => {
|
|
140
|
+
const headers = {
|
|
141
|
+
"content-type": "application/x-amz-json-1.0",
|
|
142
|
+
"x-amz-target": "Timestream_20181101.ResumeBatchLoadTask",
|
|
143
|
+
};
|
|
144
|
+
let body;
|
|
145
|
+
body = JSON.stringify(serializeAws_json1_0ResumeBatchLoadTaskRequest(input, context));
|
|
146
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
147
|
+
};
|
|
148
|
+
exports.serializeAws_json1_0ResumeBatchLoadTaskCommand = serializeAws_json1_0ResumeBatchLoadTaskCommand;
|
|
108
149
|
const serializeAws_json1_0TagResourceCommand = async (input, context) => {
|
|
109
150
|
const headers = {
|
|
110
151
|
"content-type": "application/x-amz-json-1.0",
|
|
@@ -155,6 +196,61 @@ const serializeAws_json1_0WriteRecordsCommand = async (input, context) => {
|
|
|
155
196
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
156
197
|
};
|
|
157
198
|
exports.serializeAws_json1_0WriteRecordsCommand = serializeAws_json1_0WriteRecordsCommand;
|
|
199
|
+
const deserializeAws_json1_0CreateBatchLoadTaskCommand = async (output, context) => {
|
|
200
|
+
if (output.statusCode >= 300) {
|
|
201
|
+
return deserializeAws_json1_0CreateBatchLoadTaskCommandError(output, context);
|
|
202
|
+
}
|
|
203
|
+
const data = await parseBody(output.body, context);
|
|
204
|
+
let contents = {};
|
|
205
|
+
contents = deserializeAws_json1_0CreateBatchLoadTaskResponse(data, context);
|
|
206
|
+
const response = {
|
|
207
|
+
$metadata: deserializeMetadata(output),
|
|
208
|
+
...contents,
|
|
209
|
+
};
|
|
210
|
+
return Promise.resolve(response);
|
|
211
|
+
};
|
|
212
|
+
exports.deserializeAws_json1_0CreateBatchLoadTaskCommand = deserializeAws_json1_0CreateBatchLoadTaskCommand;
|
|
213
|
+
const deserializeAws_json1_0CreateBatchLoadTaskCommandError = async (output, context) => {
|
|
214
|
+
const parsedOutput = {
|
|
215
|
+
...output,
|
|
216
|
+
body: await parseErrorBody(output.body, context),
|
|
217
|
+
};
|
|
218
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
219
|
+
switch (errorCode) {
|
|
220
|
+
case "AccessDeniedException":
|
|
221
|
+
case "com.amazonaws.timestreamwrite#AccessDeniedException":
|
|
222
|
+
throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
|
|
223
|
+
case "ConflictException":
|
|
224
|
+
case "com.amazonaws.timestreamwrite#ConflictException":
|
|
225
|
+
throw await deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context);
|
|
226
|
+
case "InternalServerException":
|
|
227
|
+
case "com.amazonaws.timestreamwrite#InternalServerException":
|
|
228
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
229
|
+
case "InvalidEndpointException":
|
|
230
|
+
case "com.amazonaws.timestreamwrite#InvalidEndpointException":
|
|
231
|
+
throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context);
|
|
232
|
+
case "ResourceNotFoundException":
|
|
233
|
+
case "com.amazonaws.timestreamwrite#ResourceNotFoundException":
|
|
234
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
235
|
+
case "ServiceQuotaExceededException":
|
|
236
|
+
case "com.amazonaws.timestreamwrite#ServiceQuotaExceededException":
|
|
237
|
+
throw await deserializeAws_json1_0ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
238
|
+
case "ThrottlingException":
|
|
239
|
+
case "com.amazonaws.timestreamwrite#ThrottlingException":
|
|
240
|
+
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
241
|
+
case "ValidationException":
|
|
242
|
+
case "com.amazonaws.timestreamwrite#ValidationException":
|
|
243
|
+
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
244
|
+
default:
|
|
245
|
+
const parsedBody = parsedOutput.body;
|
|
246
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
247
|
+
output,
|
|
248
|
+
parsedBody,
|
|
249
|
+
exceptionCtor: TimestreamWriteServiceException_1.TimestreamWriteServiceException,
|
|
250
|
+
errorCode,
|
|
251
|
+
});
|
|
252
|
+
}
|
|
253
|
+
};
|
|
158
254
|
const deserializeAws_json1_0CreateDatabaseCommand = async (output, context) => {
|
|
159
255
|
if (output.statusCode >= 300) {
|
|
160
256
|
return deserializeAws_json1_0CreateDatabaseCommandError(output, context);
|
|
@@ -354,6 +450,52 @@ const deserializeAws_json1_0DeleteTableCommandError = async (output, context) =>
|
|
|
354
450
|
});
|
|
355
451
|
}
|
|
356
452
|
};
|
|
453
|
+
const deserializeAws_json1_0DescribeBatchLoadTaskCommand = async (output, context) => {
|
|
454
|
+
if (output.statusCode >= 300) {
|
|
455
|
+
return deserializeAws_json1_0DescribeBatchLoadTaskCommandError(output, context);
|
|
456
|
+
}
|
|
457
|
+
const data = await parseBody(output.body, context);
|
|
458
|
+
let contents = {};
|
|
459
|
+
contents = deserializeAws_json1_0DescribeBatchLoadTaskResponse(data, context);
|
|
460
|
+
const response = {
|
|
461
|
+
$metadata: deserializeMetadata(output),
|
|
462
|
+
...contents,
|
|
463
|
+
};
|
|
464
|
+
return Promise.resolve(response);
|
|
465
|
+
};
|
|
466
|
+
exports.deserializeAws_json1_0DescribeBatchLoadTaskCommand = deserializeAws_json1_0DescribeBatchLoadTaskCommand;
|
|
467
|
+
const deserializeAws_json1_0DescribeBatchLoadTaskCommandError = async (output, context) => {
|
|
468
|
+
const parsedOutput = {
|
|
469
|
+
...output,
|
|
470
|
+
body: await parseErrorBody(output.body, context),
|
|
471
|
+
};
|
|
472
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
473
|
+
switch (errorCode) {
|
|
474
|
+
case "AccessDeniedException":
|
|
475
|
+
case "com.amazonaws.timestreamwrite#AccessDeniedException":
|
|
476
|
+
throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
|
|
477
|
+
case "InternalServerException":
|
|
478
|
+
case "com.amazonaws.timestreamwrite#InternalServerException":
|
|
479
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
480
|
+
case "InvalidEndpointException":
|
|
481
|
+
case "com.amazonaws.timestreamwrite#InvalidEndpointException":
|
|
482
|
+
throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context);
|
|
483
|
+
case "ResourceNotFoundException":
|
|
484
|
+
case "com.amazonaws.timestreamwrite#ResourceNotFoundException":
|
|
485
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
486
|
+
case "ThrottlingException":
|
|
487
|
+
case "com.amazonaws.timestreamwrite#ThrottlingException":
|
|
488
|
+
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
489
|
+
default:
|
|
490
|
+
const parsedBody = parsedOutput.body;
|
|
491
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
492
|
+
output,
|
|
493
|
+
parsedBody,
|
|
494
|
+
exceptionCtor: TimestreamWriteServiceException_1.TimestreamWriteServiceException,
|
|
495
|
+
errorCode,
|
|
496
|
+
});
|
|
497
|
+
}
|
|
498
|
+
};
|
|
357
499
|
const deserializeAws_json1_0DescribeDatabaseCommand = async (output, context) => {
|
|
358
500
|
if (output.statusCode >= 300) {
|
|
359
501
|
return deserializeAws_json1_0DescribeDatabaseCommandError(output, context);
|
|
@@ -492,6 +634,52 @@ const deserializeAws_json1_0DescribeTableCommandError = async (output, context)
|
|
|
492
634
|
});
|
|
493
635
|
}
|
|
494
636
|
};
|
|
637
|
+
const deserializeAws_json1_0ListBatchLoadTasksCommand = async (output, context) => {
|
|
638
|
+
if (output.statusCode >= 300) {
|
|
639
|
+
return deserializeAws_json1_0ListBatchLoadTasksCommandError(output, context);
|
|
640
|
+
}
|
|
641
|
+
const data = await parseBody(output.body, context);
|
|
642
|
+
let contents = {};
|
|
643
|
+
contents = deserializeAws_json1_0ListBatchLoadTasksResponse(data, context);
|
|
644
|
+
const response = {
|
|
645
|
+
$metadata: deserializeMetadata(output),
|
|
646
|
+
...contents,
|
|
647
|
+
};
|
|
648
|
+
return Promise.resolve(response);
|
|
649
|
+
};
|
|
650
|
+
exports.deserializeAws_json1_0ListBatchLoadTasksCommand = deserializeAws_json1_0ListBatchLoadTasksCommand;
|
|
651
|
+
const deserializeAws_json1_0ListBatchLoadTasksCommandError = async (output, context) => {
|
|
652
|
+
const parsedOutput = {
|
|
653
|
+
...output,
|
|
654
|
+
body: await parseErrorBody(output.body, context),
|
|
655
|
+
};
|
|
656
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
657
|
+
switch (errorCode) {
|
|
658
|
+
case "AccessDeniedException":
|
|
659
|
+
case "com.amazonaws.timestreamwrite#AccessDeniedException":
|
|
660
|
+
throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
|
|
661
|
+
case "InternalServerException":
|
|
662
|
+
case "com.amazonaws.timestreamwrite#InternalServerException":
|
|
663
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
664
|
+
case "InvalidEndpointException":
|
|
665
|
+
case "com.amazonaws.timestreamwrite#InvalidEndpointException":
|
|
666
|
+
throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context);
|
|
667
|
+
case "ThrottlingException":
|
|
668
|
+
case "com.amazonaws.timestreamwrite#ThrottlingException":
|
|
669
|
+
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
670
|
+
case "ValidationException":
|
|
671
|
+
case "com.amazonaws.timestreamwrite#ValidationException":
|
|
672
|
+
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
673
|
+
default:
|
|
674
|
+
const parsedBody = parsedOutput.body;
|
|
675
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
676
|
+
output,
|
|
677
|
+
parsedBody,
|
|
678
|
+
exceptionCtor: TimestreamWriteServiceException_1.TimestreamWriteServiceException,
|
|
679
|
+
errorCode,
|
|
680
|
+
});
|
|
681
|
+
}
|
|
682
|
+
};
|
|
495
683
|
const deserializeAws_json1_0ListDatabasesCommand = async (output, context) => {
|
|
496
684
|
if (output.statusCode >= 300) {
|
|
497
685
|
return deserializeAws_json1_0ListDatabasesCommandError(output, context);
|
|
@@ -630,6 +818,55 @@ const deserializeAws_json1_0ListTagsForResourceCommandError = async (output, con
|
|
|
630
818
|
});
|
|
631
819
|
}
|
|
632
820
|
};
|
|
821
|
+
const deserializeAws_json1_0ResumeBatchLoadTaskCommand = async (output, context) => {
|
|
822
|
+
if (output.statusCode >= 300) {
|
|
823
|
+
return deserializeAws_json1_0ResumeBatchLoadTaskCommandError(output, context);
|
|
824
|
+
}
|
|
825
|
+
const data = await parseBody(output.body, context);
|
|
826
|
+
let contents = {};
|
|
827
|
+
contents = deserializeAws_json1_0ResumeBatchLoadTaskResponse(data, context);
|
|
828
|
+
const response = {
|
|
829
|
+
$metadata: deserializeMetadata(output),
|
|
830
|
+
...contents,
|
|
831
|
+
};
|
|
832
|
+
return Promise.resolve(response);
|
|
833
|
+
};
|
|
834
|
+
exports.deserializeAws_json1_0ResumeBatchLoadTaskCommand = deserializeAws_json1_0ResumeBatchLoadTaskCommand;
|
|
835
|
+
const deserializeAws_json1_0ResumeBatchLoadTaskCommandError = async (output, context) => {
|
|
836
|
+
const parsedOutput = {
|
|
837
|
+
...output,
|
|
838
|
+
body: await parseErrorBody(output.body, context),
|
|
839
|
+
};
|
|
840
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
841
|
+
switch (errorCode) {
|
|
842
|
+
case "AccessDeniedException":
|
|
843
|
+
case "com.amazonaws.timestreamwrite#AccessDeniedException":
|
|
844
|
+
throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
|
|
845
|
+
case "InternalServerException":
|
|
846
|
+
case "com.amazonaws.timestreamwrite#InternalServerException":
|
|
847
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
848
|
+
case "InvalidEndpointException":
|
|
849
|
+
case "com.amazonaws.timestreamwrite#InvalidEndpointException":
|
|
850
|
+
throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context);
|
|
851
|
+
case "ResourceNotFoundException":
|
|
852
|
+
case "com.amazonaws.timestreamwrite#ResourceNotFoundException":
|
|
853
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
854
|
+
case "ThrottlingException":
|
|
855
|
+
case "com.amazonaws.timestreamwrite#ThrottlingException":
|
|
856
|
+
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
857
|
+
case "ValidationException":
|
|
858
|
+
case "com.amazonaws.timestreamwrite#ValidationException":
|
|
859
|
+
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
860
|
+
default:
|
|
861
|
+
const parsedBody = parsedOutput.body;
|
|
862
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
863
|
+
output,
|
|
864
|
+
parsedBody,
|
|
865
|
+
exceptionCtor: TimestreamWriteServiceException_1.TimestreamWriteServiceException,
|
|
866
|
+
errorCode,
|
|
867
|
+
});
|
|
868
|
+
}
|
|
869
|
+
};
|
|
633
870
|
const deserializeAws_json1_0TagResourceCommand = async (output, context) => {
|
|
634
871
|
if (output.statusCode >= 300) {
|
|
635
872
|
return deserializeAws_json1_0TagResourceCommandError(output, context);
|
|
@@ -956,6 +1193,23 @@ const deserializeAws_json1_0ValidationExceptionResponse = async (parsedOutput, c
|
|
|
956
1193
|
});
|
|
957
1194
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
958
1195
|
};
|
|
1196
|
+
const serializeAws_json1_0CreateBatchLoadTaskRequest = (input, context) => {
|
|
1197
|
+
return {
|
|
1198
|
+
ClientToken: input.ClientToken ?? (0, uuid_1.v4)(),
|
|
1199
|
+
...(input.DataModelConfiguration != null && {
|
|
1200
|
+
DataModelConfiguration: serializeAws_json1_0DataModelConfiguration(input.DataModelConfiguration, context),
|
|
1201
|
+
}),
|
|
1202
|
+
...(input.DataSourceConfiguration != null && {
|
|
1203
|
+
DataSourceConfiguration: serializeAws_json1_0DataSourceConfiguration(input.DataSourceConfiguration, context),
|
|
1204
|
+
}),
|
|
1205
|
+
...(input.RecordVersion != null && { RecordVersion: input.RecordVersion }),
|
|
1206
|
+
...(input.ReportConfiguration != null && {
|
|
1207
|
+
ReportConfiguration: serializeAws_json1_0ReportConfiguration(input.ReportConfiguration, context),
|
|
1208
|
+
}),
|
|
1209
|
+
...(input.TargetDatabaseName != null && { TargetDatabaseName: input.TargetDatabaseName }),
|
|
1210
|
+
...(input.TargetTableName != null && { TargetTableName: input.TargetTableName }),
|
|
1211
|
+
};
|
|
1212
|
+
};
|
|
959
1213
|
const serializeAws_json1_0CreateDatabaseRequest = (input, context) => {
|
|
960
1214
|
return {
|
|
961
1215
|
...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
|
|
@@ -976,6 +1230,62 @@ const serializeAws_json1_0CreateTableRequest = (input, context) => {
|
|
|
976
1230
|
...(input.Tags != null && { Tags: serializeAws_json1_0TagList(input.Tags, context) }),
|
|
977
1231
|
};
|
|
978
1232
|
};
|
|
1233
|
+
const serializeAws_json1_0CsvConfiguration = (input, context) => {
|
|
1234
|
+
return {
|
|
1235
|
+
...(input.ColumnSeparator != null && { ColumnSeparator: input.ColumnSeparator }),
|
|
1236
|
+
...(input.EscapeChar != null && { EscapeChar: input.EscapeChar }),
|
|
1237
|
+
...(input.NullValue != null && { NullValue: input.NullValue }),
|
|
1238
|
+
...(input.QuoteChar != null && { QuoteChar: input.QuoteChar }),
|
|
1239
|
+
...(input.TrimWhiteSpace != null && { TrimWhiteSpace: input.TrimWhiteSpace }),
|
|
1240
|
+
};
|
|
1241
|
+
};
|
|
1242
|
+
const serializeAws_json1_0DataModel = (input, context) => {
|
|
1243
|
+
return {
|
|
1244
|
+
...(input.DimensionMappings != null && {
|
|
1245
|
+
DimensionMappings: serializeAws_json1_0DimensionMappings(input.DimensionMappings, context),
|
|
1246
|
+
}),
|
|
1247
|
+
...(input.MeasureNameColumn != null && { MeasureNameColumn: input.MeasureNameColumn }),
|
|
1248
|
+
...(input.MixedMeasureMappings != null && {
|
|
1249
|
+
MixedMeasureMappings: serializeAws_json1_0MixedMeasureMappingList(input.MixedMeasureMappings, context),
|
|
1250
|
+
}),
|
|
1251
|
+
...(input.MultiMeasureMappings != null && {
|
|
1252
|
+
MultiMeasureMappings: serializeAws_json1_0MultiMeasureMappings(input.MultiMeasureMappings, context),
|
|
1253
|
+
}),
|
|
1254
|
+
...(input.TimeColumn != null && { TimeColumn: input.TimeColumn }),
|
|
1255
|
+
...(input.TimeUnit != null && { TimeUnit: input.TimeUnit }),
|
|
1256
|
+
};
|
|
1257
|
+
};
|
|
1258
|
+
const serializeAws_json1_0DataModelConfiguration = (input, context) => {
|
|
1259
|
+
return {
|
|
1260
|
+
...(input.DataModel != null && { DataModel: serializeAws_json1_0DataModel(input.DataModel, context) }),
|
|
1261
|
+
...(input.DataModelS3Configuration != null && {
|
|
1262
|
+
DataModelS3Configuration: serializeAws_json1_0DataModelS3Configuration(input.DataModelS3Configuration, context),
|
|
1263
|
+
}),
|
|
1264
|
+
};
|
|
1265
|
+
};
|
|
1266
|
+
const serializeAws_json1_0DataModelS3Configuration = (input, context) => {
|
|
1267
|
+
return {
|
|
1268
|
+
...(input.BucketName != null && { BucketName: input.BucketName }),
|
|
1269
|
+
...(input.ObjectKey != null && { ObjectKey: input.ObjectKey }),
|
|
1270
|
+
};
|
|
1271
|
+
};
|
|
1272
|
+
const serializeAws_json1_0DataSourceConfiguration = (input, context) => {
|
|
1273
|
+
return {
|
|
1274
|
+
...(input.CsvConfiguration != null && {
|
|
1275
|
+
CsvConfiguration: serializeAws_json1_0CsvConfiguration(input.CsvConfiguration, context),
|
|
1276
|
+
}),
|
|
1277
|
+
...(input.DataFormat != null && { DataFormat: input.DataFormat }),
|
|
1278
|
+
...(input.DataSourceS3Configuration != null && {
|
|
1279
|
+
DataSourceS3Configuration: serializeAws_json1_0DataSourceS3Configuration(input.DataSourceS3Configuration, context),
|
|
1280
|
+
}),
|
|
1281
|
+
};
|
|
1282
|
+
};
|
|
1283
|
+
const serializeAws_json1_0DataSourceS3Configuration = (input, context) => {
|
|
1284
|
+
return {
|
|
1285
|
+
...(input.BucketName != null && { BucketName: input.BucketName }),
|
|
1286
|
+
...(input.ObjectKeyPrefix != null && { ObjectKeyPrefix: input.ObjectKeyPrefix }),
|
|
1287
|
+
};
|
|
1288
|
+
};
|
|
979
1289
|
const serializeAws_json1_0DeleteDatabaseRequest = (input, context) => {
|
|
980
1290
|
return {
|
|
981
1291
|
...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
|
|
@@ -987,6 +1297,11 @@ const serializeAws_json1_0DeleteTableRequest = (input, context) => {
|
|
|
987
1297
|
...(input.TableName != null && { TableName: input.TableName }),
|
|
988
1298
|
};
|
|
989
1299
|
};
|
|
1300
|
+
const serializeAws_json1_0DescribeBatchLoadTaskRequest = (input, context) => {
|
|
1301
|
+
return {
|
|
1302
|
+
...(input.TaskId != null && { TaskId: input.TaskId }),
|
|
1303
|
+
};
|
|
1304
|
+
};
|
|
990
1305
|
const serializeAws_json1_0DescribeDatabaseRequest = (input, context) => {
|
|
991
1306
|
return {
|
|
992
1307
|
...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
|
|
@@ -1008,6 +1323,19 @@ const serializeAws_json1_0Dimension = (input, context) => {
|
|
|
1008
1323
|
...(input.Value != null && { Value: input.Value }),
|
|
1009
1324
|
};
|
|
1010
1325
|
};
|
|
1326
|
+
const serializeAws_json1_0DimensionMapping = (input, context) => {
|
|
1327
|
+
return {
|
|
1328
|
+
...(input.DestinationColumn != null && { DestinationColumn: input.DestinationColumn }),
|
|
1329
|
+
...(input.SourceColumn != null && { SourceColumn: input.SourceColumn }),
|
|
1330
|
+
};
|
|
1331
|
+
};
|
|
1332
|
+
const serializeAws_json1_0DimensionMappings = (input, context) => {
|
|
1333
|
+
return input
|
|
1334
|
+
.filter((e) => e != null)
|
|
1335
|
+
.map((entry) => {
|
|
1336
|
+
return serializeAws_json1_0DimensionMapping(entry, context);
|
|
1337
|
+
});
|
|
1338
|
+
};
|
|
1011
1339
|
const serializeAws_json1_0Dimensions = (input, context) => {
|
|
1012
1340
|
return input
|
|
1013
1341
|
.filter((e) => e != null)
|
|
@@ -1015,6 +1343,13 @@ const serializeAws_json1_0Dimensions = (input, context) => {
|
|
|
1015
1343
|
return serializeAws_json1_0Dimension(entry, context);
|
|
1016
1344
|
});
|
|
1017
1345
|
};
|
|
1346
|
+
const serializeAws_json1_0ListBatchLoadTasksRequest = (input, context) => {
|
|
1347
|
+
return {
|
|
1348
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1349
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1350
|
+
...(input.TaskStatus != null && { TaskStatus: input.TaskStatus }),
|
|
1351
|
+
};
|
|
1352
|
+
};
|
|
1018
1353
|
const serializeAws_json1_0ListDatabasesRequest = (input, context) => {
|
|
1019
1354
|
return {
|
|
1020
1355
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
@@ -1062,6 +1397,48 @@ const serializeAws_json1_0MeasureValues = (input, context) => {
|
|
|
1062
1397
|
return serializeAws_json1_0MeasureValue(entry, context);
|
|
1063
1398
|
});
|
|
1064
1399
|
};
|
|
1400
|
+
const serializeAws_json1_0MixedMeasureMapping = (input, context) => {
|
|
1401
|
+
return {
|
|
1402
|
+
...(input.MeasureName != null && { MeasureName: input.MeasureName }),
|
|
1403
|
+
...(input.MeasureValueType != null && { MeasureValueType: input.MeasureValueType }),
|
|
1404
|
+
...(input.MultiMeasureAttributeMappings != null && {
|
|
1405
|
+
MultiMeasureAttributeMappings: serializeAws_json1_0MultiMeasureAttributeMappingList(input.MultiMeasureAttributeMappings, context),
|
|
1406
|
+
}),
|
|
1407
|
+
...(input.SourceColumn != null && { SourceColumn: input.SourceColumn }),
|
|
1408
|
+
...(input.TargetMeasureName != null && { TargetMeasureName: input.TargetMeasureName }),
|
|
1409
|
+
};
|
|
1410
|
+
};
|
|
1411
|
+
const serializeAws_json1_0MixedMeasureMappingList = (input, context) => {
|
|
1412
|
+
return input
|
|
1413
|
+
.filter((e) => e != null)
|
|
1414
|
+
.map((entry) => {
|
|
1415
|
+
return serializeAws_json1_0MixedMeasureMapping(entry, context);
|
|
1416
|
+
});
|
|
1417
|
+
};
|
|
1418
|
+
const serializeAws_json1_0MultiMeasureAttributeMapping = (input, context) => {
|
|
1419
|
+
return {
|
|
1420
|
+
...(input.MeasureValueType != null && { MeasureValueType: input.MeasureValueType }),
|
|
1421
|
+
...(input.SourceColumn != null && { SourceColumn: input.SourceColumn }),
|
|
1422
|
+
...(input.TargetMultiMeasureAttributeName != null && {
|
|
1423
|
+
TargetMultiMeasureAttributeName: input.TargetMultiMeasureAttributeName,
|
|
1424
|
+
}),
|
|
1425
|
+
};
|
|
1426
|
+
};
|
|
1427
|
+
const serializeAws_json1_0MultiMeasureAttributeMappingList = (input, context) => {
|
|
1428
|
+
return input
|
|
1429
|
+
.filter((e) => e != null)
|
|
1430
|
+
.map((entry) => {
|
|
1431
|
+
return serializeAws_json1_0MultiMeasureAttributeMapping(entry, context);
|
|
1432
|
+
});
|
|
1433
|
+
};
|
|
1434
|
+
const serializeAws_json1_0MultiMeasureMappings = (input, context) => {
|
|
1435
|
+
return {
|
|
1436
|
+
...(input.MultiMeasureAttributeMappings != null && {
|
|
1437
|
+
MultiMeasureAttributeMappings: serializeAws_json1_0MultiMeasureAttributeMappingList(input.MultiMeasureAttributeMappings, context),
|
|
1438
|
+
}),
|
|
1439
|
+
...(input.TargetMultiMeasureName != null && { TargetMultiMeasureName: input.TargetMultiMeasureName }),
|
|
1440
|
+
};
|
|
1441
|
+
};
|
|
1065
1442
|
const serializeAws_json1_0_Record = (input, context) => {
|
|
1066
1443
|
return {
|
|
1067
1444
|
...(input.Dimensions != null && { Dimensions: serializeAws_json1_0Dimensions(input.Dimensions, context) }),
|
|
@@ -1083,6 +1460,26 @@ const serializeAws_json1_0Records = (input, context) => {
|
|
|
1083
1460
|
return serializeAws_json1_0_Record(entry, context);
|
|
1084
1461
|
});
|
|
1085
1462
|
};
|
|
1463
|
+
const serializeAws_json1_0ReportConfiguration = (input, context) => {
|
|
1464
|
+
return {
|
|
1465
|
+
...(input.ReportS3Configuration != null && {
|
|
1466
|
+
ReportS3Configuration: serializeAws_json1_0ReportS3Configuration(input.ReportS3Configuration, context),
|
|
1467
|
+
}),
|
|
1468
|
+
};
|
|
1469
|
+
};
|
|
1470
|
+
const serializeAws_json1_0ReportS3Configuration = (input, context) => {
|
|
1471
|
+
return {
|
|
1472
|
+
...(input.BucketName != null && { BucketName: input.BucketName }),
|
|
1473
|
+
...(input.EncryptionOption != null && { EncryptionOption: input.EncryptionOption }),
|
|
1474
|
+
...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
|
|
1475
|
+
...(input.ObjectKeyPrefix != null && { ObjectKeyPrefix: input.ObjectKeyPrefix }),
|
|
1476
|
+
};
|
|
1477
|
+
};
|
|
1478
|
+
const serializeAws_json1_0ResumeBatchLoadTaskRequest = (input, context) => {
|
|
1479
|
+
return {
|
|
1480
|
+
...(input.TaskId != null && { TaskId: input.TaskId }),
|
|
1481
|
+
};
|
|
1482
|
+
};
|
|
1086
1483
|
const serializeAws_json1_0RetentionProperties = (input, context) => {
|
|
1087
1484
|
return {
|
|
1088
1485
|
...(input.MagneticStoreRetentionPeriodInDays != null && {
|
|
@@ -1166,11 +1563,85 @@ const deserializeAws_json1_0AccessDeniedException = (output, context) => {
|
|
|
1166
1563
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1167
1564
|
};
|
|
1168
1565
|
};
|
|
1566
|
+
const deserializeAws_json1_0BatchLoadProgressReport = (output, context) => {
|
|
1567
|
+
return {
|
|
1568
|
+
BytesMetered: (0, smithy_client_1.expectLong)(output.BytesMetered),
|
|
1569
|
+
FileFailures: (0, smithy_client_1.expectLong)(output.FileFailures),
|
|
1570
|
+
ParseFailures: (0, smithy_client_1.expectLong)(output.ParseFailures),
|
|
1571
|
+
RecordIngestionFailures: (0, smithy_client_1.expectLong)(output.RecordIngestionFailures),
|
|
1572
|
+
RecordsIngested: (0, smithy_client_1.expectLong)(output.RecordsIngested),
|
|
1573
|
+
RecordsProcessed: (0, smithy_client_1.expectLong)(output.RecordsProcessed),
|
|
1574
|
+
};
|
|
1575
|
+
};
|
|
1576
|
+
const deserializeAws_json1_0BatchLoadTask = (output, context) => {
|
|
1577
|
+
return {
|
|
1578
|
+
CreationTime: output.CreationTime != null
|
|
1579
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
|
|
1580
|
+
: undefined,
|
|
1581
|
+
DatabaseName: (0, smithy_client_1.expectString)(output.DatabaseName),
|
|
1582
|
+
LastUpdatedTime: output.LastUpdatedTime != null
|
|
1583
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedTime)))
|
|
1584
|
+
: undefined,
|
|
1585
|
+
ResumableUntil: output.ResumableUntil != null
|
|
1586
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ResumableUntil)))
|
|
1587
|
+
: undefined,
|
|
1588
|
+
TableName: (0, smithy_client_1.expectString)(output.TableName),
|
|
1589
|
+
TaskId: (0, smithy_client_1.expectString)(output.TaskId),
|
|
1590
|
+
TaskStatus: (0, smithy_client_1.expectString)(output.TaskStatus),
|
|
1591
|
+
};
|
|
1592
|
+
};
|
|
1593
|
+
const deserializeAws_json1_0BatchLoadTaskDescription = (output, context) => {
|
|
1594
|
+
return {
|
|
1595
|
+
CreationTime: output.CreationTime != null
|
|
1596
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
|
|
1597
|
+
: undefined,
|
|
1598
|
+
DataModelConfiguration: output.DataModelConfiguration != null
|
|
1599
|
+
? deserializeAws_json1_0DataModelConfiguration(output.DataModelConfiguration, context)
|
|
1600
|
+
: undefined,
|
|
1601
|
+
DataSourceConfiguration: output.DataSourceConfiguration != null
|
|
1602
|
+
? deserializeAws_json1_0DataSourceConfiguration(output.DataSourceConfiguration, context)
|
|
1603
|
+
: undefined,
|
|
1604
|
+
ErrorMessage: (0, smithy_client_1.expectString)(output.ErrorMessage),
|
|
1605
|
+
LastUpdatedTime: output.LastUpdatedTime != null
|
|
1606
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedTime)))
|
|
1607
|
+
: undefined,
|
|
1608
|
+
ProgressReport: output.ProgressReport != null
|
|
1609
|
+
? deserializeAws_json1_0BatchLoadProgressReport(output.ProgressReport, context)
|
|
1610
|
+
: undefined,
|
|
1611
|
+
RecordVersion: (0, smithy_client_1.expectLong)(output.RecordVersion),
|
|
1612
|
+
ReportConfiguration: output.ReportConfiguration != null
|
|
1613
|
+
? deserializeAws_json1_0ReportConfiguration(output.ReportConfiguration, context)
|
|
1614
|
+
: undefined,
|
|
1615
|
+
ResumableUntil: output.ResumableUntil != null
|
|
1616
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ResumableUntil)))
|
|
1617
|
+
: undefined,
|
|
1618
|
+
TargetDatabaseName: (0, smithy_client_1.expectString)(output.TargetDatabaseName),
|
|
1619
|
+
TargetTableName: (0, smithy_client_1.expectString)(output.TargetTableName),
|
|
1620
|
+
TaskId: (0, smithy_client_1.expectString)(output.TaskId),
|
|
1621
|
+
TaskStatus: (0, smithy_client_1.expectString)(output.TaskStatus),
|
|
1622
|
+
};
|
|
1623
|
+
};
|
|
1624
|
+
const deserializeAws_json1_0BatchLoadTaskList = (output, context) => {
|
|
1625
|
+
const retVal = (output || [])
|
|
1626
|
+
.filter((e) => e != null)
|
|
1627
|
+
.map((entry) => {
|
|
1628
|
+
if (entry === null) {
|
|
1629
|
+
return null;
|
|
1630
|
+
}
|
|
1631
|
+
return deserializeAws_json1_0BatchLoadTask(entry, context);
|
|
1632
|
+
});
|
|
1633
|
+
return retVal;
|
|
1634
|
+
};
|
|
1169
1635
|
const deserializeAws_json1_0ConflictException = (output, context) => {
|
|
1170
1636
|
return {
|
|
1171
1637
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1172
1638
|
};
|
|
1173
1639
|
};
|
|
1640
|
+
const deserializeAws_json1_0CreateBatchLoadTaskResponse = (output, context) => {
|
|
1641
|
+
return {
|
|
1642
|
+
TaskId: (0, smithy_client_1.expectString)(output.TaskId),
|
|
1643
|
+
};
|
|
1644
|
+
};
|
|
1174
1645
|
const deserializeAws_json1_0CreateDatabaseResponse = (output, context) => {
|
|
1175
1646
|
return {
|
|
1176
1647
|
Database: output.Database != null ? deserializeAws_json1_0Database(output.Database, context) : undefined,
|
|
@@ -1181,6 +1652,15 @@ const deserializeAws_json1_0CreateTableResponse = (output, context) => {
|
|
|
1181
1652
|
Table: output.Table != null ? deserializeAws_json1_0Table(output.Table, context) : undefined,
|
|
1182
1653
|
};
|
|
1183
1654
|
};
|
|
1655
|
+
const deserializeAws_json1_0CsvConfiguration = (output, context) => {
|
|
1656
|
+
return {
|
|
1657
|
+
ColumnSeparator: (0, smithy_client_1.expectString)(output.ColumnSeparator),
|
|
1658
|
+
EscapeChar: (0, smithy_client_1.expectString)(output.EscapeChar),
|
|
1659
|
+
NullValue: (0, smithy_client_1.expectString)(output.NullValue),
|
|
1660
|
+
QuoteChar: (0, smithy_client_1.expectString)(output.QuoteChar),
|
|
1661
|
+
TrimWhiteSpace: (0, smithy_client_1.expectBoolean)(output.TrimWhiteSpace),
|
|
1662
|
+
};
|
|
1663
|
+
};
|
|
1184
1664
|
const deserializeAws_json1_0Database = (output, context) => {
|
|
1185
1665
|
return {
|
|
1186
1666
|
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
@@ -1206,6 +1686,60 @@ const deserializeAws_json1_0DatabaseList = (output, context) => {
|
|
|
1206
1686
|
});
|
|
1207
1687
|
return retVal;
|
|
1208
1688
|
};
|
|
1689
|
+
const deserializeAws_json1_0DataModel = (output, context) => {
|
|
1690
|
+
return {
|
|
1691
|
+
DimensionMappings: output.DimensionMappings != null
|
|
1692
|
+
? deserializeAws_json1_0DimensionMappings(output.DimensionMappings, context)
|
|
1693
|
+
: undefined,
|
|
1694
|
+
MeasureNameColumn: (0, smithy_client_1.expectString)(output.MeasureNameColumn),
|
|
1695
|
+
MixedMeasureMappings: output.MixedMeasureMappings != null
|
|
1696
|
+
? deserializeAws_json1_0MixedMeasureMappingList(output.MixedMeasureMappings, context)
|
|
1697
|
+
: undefined,
|
|
1698
|
+
MultiMeasureMappings: output.MultiMeasureMappings != null
|
|
1699
|
+
? deserializeAws_json1_0MultiMeasureMappings(output.MultiMeasureMappings, context)
|
|
1700
|
+
: undefined,
|
|
1701
|
+
TimeColumn: (0, smithy_client_1.expectString)(output.TimeColumn),
|
|
1702
|
+
TimeUnit: (0, smithy_client_1.expectString)(output.TimeUnit),
|
|
1703
|
+
};
|
|
1704
|
+
};
|
|
1705
|
+
const deserializeAws_json1_0DataModelConfiguration = (output, context) => {
|
|
1706
|
+
return {
|
|
1707
|
+
DataModel: output.DataModel != null ? deserializeAws_json1_0DataModel(output.DataModel, context) : undefined,
|
|
1708
|
+
DataModelS3Configuration: output.DataModelS3Configuration != null
|
|
1709
|
+
? deserializeAws_json1_0DataModelS3Configuration(output.DataModelS3Configuration, context)
|
|
1710
|
+
: undefined,
|
|
1711
|
+
};
|
|
1712
|
+
};
|
|
1713
|
+
const deserializeAws_json1_0DataModelS3Configuration = (output, context) => {
|
|
1714
|
+
return {
|
|
1715
|
+
BucketName: (0, smithy_client_1.expectString)(output.BucketName),
|
|
1716
|
+
ObjectKey: (0, smithy_client_1.expectString)(output.ObjectKey),
|
|
1717
|
+
};
|
|
1718
|
+
};
|
|
1719
|
+
const deserializeAws_json1_0DataSourceConfiguration = (output, context) => {
|
|
1720
|
+
return {
|
|
1721
|
+
CsvConfiguration: output.CsvConfiguration != null
|
|
1722
|
+
? deserializeAws_json1_0CsvConfiguration(output.CsvConfiguration, context)
|
|
1723
|
+
: undefined,
|
|
1724
|
+
DataFormat: (0, smithy_client_1.expectString)(output.DataFormat),
|
|
1725
|
+
DataSourceS3Configuration: output.DataSourceS3Configuration != null
|
|
1726
|
+
? deserializeAws_json1_0DataSourceS3Configuration(output.DataSourceS3Configuration, context)
|
|
1727
|
+
: undefined,
|
|
1728
|
+
};
|
|
1729
|
+
};
|
|
1730
|
+
const deserializeAws_json1_0DataSourceS3Configuration = (output, context) => {
|
|
1731
|
+
return {
|
|
1732
|
+
BucketName: (0, smithy_client_1.expectString)(output.BucketName),
|
|
1733
|
+
ObjectKeyPrefix: (0, smithy_client_1.expectString)(output.ObjectKeyPrefix),
|
|
1734
|
+
};
|
|
1735
|
+
};
|
|
1736
|
+
const deserializeAws_json1_0DescribeBatchLoadTaskResponse = (output, context) => {
|
|
1737
|
+
return {
|
|
1738
|
+
BatchLoadTaskDescription: output.BatchLoadTaskDescription != null
|
|
1739
|
+
? deserializeAws_json1_0BatchLoadTaskDescription(output.BatchLoadTaskDescription, context)
|
|
1740
|
+
: undefined,
|
|
1741
|
+
};
|
|
1742
|
+
};
|
|
1209
1743
|
const deserializeAws_json1_0DescribeDatabaseResponse = (output, context) => {
|
|
1210
1744
|
return {
|
|
1211
1745
|
Database: output.Database != null ? deserializeAws_json1_0Database(output.Database, context) : undefined,
|
|
@@ -1221,6 +1755,23 @@ const deserializeAws_json1_0DescribeTableResponse = (output, context) => {
|
|
|
1221
1755
|
Table: output.Table != null ? deserializeAws_json1_0Table(output.Table, context) : undefined,
|
|
1222
1756
|
};
|
|
1223
1757
|
};
|
|
1758
|
+
const deserializeAws_json1_0DimensionMapping = (output, context) => {
|
|
1759
|
+
return {
|
|
1760
|
+
DestinationColumn: (0, smithy_client_1.expectString)(output.DestinationColumn),
|
|
1761
|
+
SourceColumn: (0, smithy_client_1.expectString)(output.SourceColumn),
|
|
1762
|
+
};
|
|
1763
|
+
};
|
|
1764
|
+
const deserializeAws_json1_0DimensionMappings = (output, context) => {
|
|
1765
|
+
const retVal = (output || [])
|
|
1766
|
+
.filter((e) => e != null)
|
|
1767
|
+
.map((entry) => {
|
|
1768
|
+
if (entry === null) {
|
|
1769
|
+
return null;
|
|
1770
|
+
}
|
|
1771
|
+
return deserializeAws_json1_0DimensionMapping(entry, context);
|
|
1772
|
+
});
|
|
1773
|
+
return retVal;
|
|
1774
|
+
};
|
|
1224
1775
|
const deserializeAws_json1_0Endpoint = (output, context) => {
|
|
1225
1776
|
return {
|
|
1226
1777
|
Address: (0, smithy_client_1.expectString)(output.Address),
|
|
@@ -1248,6 +1799,14 @@ const deserializeAws_json1_0InvalidEndpointException = (output, context) => {
|
|
|
1248
1799
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1249
1800
|
};
|
|
1250
1801
|
};
|
|
1802
|
+
const deserializeAws_json1_0ListBatchLoadTasksResponse = (output, context) => {
|
|
1803
|
+
return {
|
|
1804
|
+
BatchLoadTasks: output.BatchLoadTasks != null
|
|
1805
|
+
? deserializeAws_json1_0BatchLoadTaskList(output.BatchLoadTasks, context)
|
|
1806
|
+
: undefined,
|
|
1807
|
+
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
1808
|
+
};
|
|
1809
|
+
};
|
|
1251
1810
|
const deserializeAws_json1_0ListDatabasesResponse = (output, context) => {
|
|
1252
1811
|
return {
|
|
1253
1812
|
Databases: output.Databases != null ? deserializeAws_json1_0DatabaseList(output.Databases, context) : undefined,
|
|
@@ -1280,6 +1839,54 @@ const deserializeAws_json1_0MagneticStoreWriteProperties = (output, context) =>
|
|
|
1280
1839
|
: undefined,
|
|
1281
1840
|
};
|
|
1282
1841
|
};
|
|
1842
|
+
const deserializeAws_json1_0MixedMeasureMapping = (output, context) => {
|
|
1843
|
+
return {
|
|
1844
|
+
MeasureName: (0, smithy_client_1.expectString)(output.MeasureName),
|
|
1845
|
+
MeasureValueType: (0, smithy_client_1.expectString)(output.MeasureValueType),
|
|
1846
|
+
MultiMeasureAttributeMappings: output.MultiMeasureAttributeMappings != null
|
|
1847
|
+
? deserializeAws_json1_0MultiMeasureAttributeMappingList(output.MultiMeasureAttributeMappings, context)
|
|
1848
|
+
: undefined,
|
|
1849
|
+
SourceColumn: (0, smithy_client_1.expectString)(output.SourceColumn),
|
|
1850
|
+
TargetMeasureName: (0, smithy_client_1.expectString)(output.TargetMeasureName),
|
|
1851
|
+
};
|
|
1852
|
+
};
|
|
1853
|
+
const deserializeAws_json1_0MixedMeasureMappingList = (output, context) => {
|
|
1854
|
+
const retVal = (output || [])
|
|
1855
|
+
.filter((e) => e != null)
|
|
1856
|
+
.map((entry) => {
|
|
1857
|
+
if (entry === null) {
|
|
1858
|
+
return null;
|
|
1859
|
+
}
|
|
1860
|
+
return deserializeAws_json1_0MixedMeasureMapping(entry, context);
|
|
1861
|
+
});
|
|
1862
|
+
return retVal;
|
|
1863
|
+
};
|
|
1864
|
+
const deserializeAws_json1_0MultiMeasureAttributeMapping = (output, context) => {
|
|
1865
|
+
return {
|
|
1866
|
+
MeasureValueType: (0, smithy_client_1.expectString)(output.MeasureValueType),
|
|
1867
|
+
SourceColumn: (0, smithy_client_1.expectString)(output.SourceColumn),
|
|
1868
|
+
TargetMultiMeasureAttributeName: (0, smithy_client_1.expectString)(output.TargetMultiMeasureAttributeName),
|
|
1869
|
+
};
|
|
1870
|
+
};
|
|
1871
|
+
const deserializeAws_json1_0MultiMeasureAttributeMappingList = (output, context) => {
|
|
1872
|
+
const retVal = (output || [])
|
|
1873
|
+
.filter((e) => e != null)
|
|
1874
|
+
.map((entry) => {
|
|
1875
|
+
if (entry === null) {
|
|
1876
|
+
return null;
|
|
1877
|
+
}
|
|
1878
|
+
return deserializeAws_json1_0MultiMeasureAttributeMapping(entry, context);
|
|
1879
|
+
});
|
|
1880
|
+
return retVal;
|
|
1881
|
+
};
|
|
1882
|
+
const deserializeAws_json1_0MultiMeasureMappings = (output, context) => {
|
|
1883
|
+
return {
|
|
1884
|
+
MultiMeasureAttributeMappings: output.MultiMeasureAttributeMappings != null
|
|
1885
|
+
? deserializeAws_json1_0MultiMeasureAttributeMappingList(output.MultiMeasureAttributeMappings, context)
|
|
1886
|
+
: undefined,
|
|
1887
|
+
TargetMultiMeasureName: (0, smithy_client_1.expectString)(output.TargetMultiMeasureName),
|
|
1888
|
+
};
|
|
1889
|
+
};
|
|
1283
1890
|
const deserializeAws_json1_0RecordsIngested = (output, context) => {
|
|
1284
1891
|
return {
|
|
1285
1892
|
MagneticStore: (0, smithy_client_1.expectInt32)(output.MagneticStore),
|
|
@@ -1313,11 +1920,29 @@ const deserializeAws_json1_0RejectedRecordsException = (output, context) => {
|
|
|
1313
1920
|
: undefined,
|
|
1314
1921
|
};
|
|
1315
1922
|
};
|
|
1923
|
+
const deserializeAws_json1_0ReportConfiguration = (output, context) => {
|
|
1924
|
+
return {
|
|
1925
|
+
ReportS3Configuration: output.ReportS3Configuration != null
|
|
1926
|
+
? deserializeAws_json1_0ReportS3Configuration(output.ReportS3Configuration, context)
|
|
1927
|
+
: undefined,
|
|
1928
|
+
};
|
|
1929
|
+
};
|
|
1930
|
+
const deserializeAws_json1_0ReportS3Configuration = (output, context) => {
|
|
1931
|
+
return {
|
|
1932
|
+
BucketName: (0, smithy_client_1.expectString)(output.BucketName),
|
|
1933
|
+
EncryptionOption: (0, smithy_client_1.expectString)(output.EncryptionOption),
|
|
1934
|
+
KmsKeyId: (0, smithy_client_1.expectString)(output.KmsKeyId),
|
|
1935
|
+
ObjectKeyPrefix: (0, smithy_client_1.expectString)(output.ObjectKeyPrefix),
|
|
1936
|
+
};
|
|
1937
|
+
};
|
|
1316
1938
|
const deserializeAws_json1_0ResourceNotFoundException = (output, context) => {
|
|
1317
1939
|
return {
|
|
1318
1940
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1319
1941
|
};
|
|
1320
1942
|
};
|
|
1943
|
+
const deserializeAws_json1_0ResumeBatchLoadTaskResponse = (output, context) => {
|
|
1944
|
+
return {};
|
|
1945
|
+
};
|
|
1321
1946
|
const deserializeAws_json1_0RetentionProperties = (output, context) => {
|
|
1322
1947
|
return {
|
|
1323
1948
|
MagneticStoreRetentionPeriodInDays: (0, smithy_client_1.expectLong)(output.MagneticStoreRetentionPeriodInDays),
|