@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,7 +1,17 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
2
|
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { v4 as generateIdempotencyToken } from "uuid";
|
|
3
4
|
import { AccessDeniedException, ConflictException, InternalServerException, InvalidEndpointException, RejectedRecordsException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
4
5
|
import { TimestreamWriteServiceException as __BaseException } from "../models/TimestreamWriteServiceException";
|
|
6
|
+
export const serializeAws_json1_0CreateBatchLoadTaskCommand = async (input, context) => {
|
|
7
|
+
const headers = {
|
|
8
|
+
"content-type": "application/x-amz-json-1.0",
|
|
9
|
+
"x-amz-target": "Timestream_20181101.CreateBatchLoadTask",
|
|
10
|
+
};
|
|
11
|
+
let body;
|
|
12
|
+
body = JSON.stringify(serializeAws_json1_0CreateBatchLoadTaskRequest(input, context));
|
|
13
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
14
|
+
};
|
|
5
15
|
export const serializeAws_json1_0CreateDatabaseCommand = async (input, context) => {
|
|
6
16
|
const headers = {
|
|
7
17
|
"content-type": "application/x-amz-json-1.0",
|
|
@@ -38,6 +48,15 @@ export const serializeAws_json1_0DeleteTableCommand = async (input, context) =>
|
|
|
38
48
|
body = JSON.stringify(serializeAws_json1_0DeleteTableRequest(input, context));
|
|
39
49
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
40
50
|
};
|
|
51
|
+
export const serializeAws_json1_0DescribeBatchLoadTaskCommand = async (input, context) => {
|
|
52
|
+
const headers = {
|
|
53
|
+
"content-type": "application/x-amz-json-1.0",
|
|
54
|
+
"x-amz-target": "Timestream_20181101.DescribeBatchLoadTask",
|
|
55
|
+
};
|
|
56
|
+
let body;
|
|
57
|
+
body = JSON.stringify(serializeAws_json1_0DescribeBatchLoadTaskRequest(input, context));
|
|
58
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
59
|
+
};
|
|
41
60
|
export const serializeAws_json1_0DescribeDatabaseCommand = async (input, context) => {
|
|
42
61
|
const headers = {
|
|
43
62
|
"content-type": "application/x-amz-json-1.0",
|
|
@@ -65,6 +84,15 @@ export const serializeAws_json1_0DescribeTableCommand = async (input, context) =
|
|
|
65
84
|
body = JSON.stringify(serializeAws_json1_0DescribeTableRequest(input, context));
|
|
66
85
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
67
86
|
};
|
|
87
|
+
export const serializeAws_json1_0ListBatchLoadTasksCommand = async (input, context) => {
|
|
88
|
+
const headers = {
|
|
89
|
+
"content-type": "application/x-amz-json-1.0",
|
|
90
|
+
"x-amz-target": "Timestream_20181101.ListBatchLoadTasks",
|
|
91
|
+
};
|
|
92
|
+
let body;
|
|
93
|
+
body = JSON.stringify(serializeAws_json1_0ListBatchLoadTasksRequest(input, context));
|
|
94
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
95
|
+
};
|
|
68
96
|
export const serializeAws_json1_0ListDatabasesCommand = async (input, context) => {
|
|
69
97
|
const headers = {
|
|
70
98
|
"content-type": "application/x-amz-json-1.0",
|
|
@@ -92,6 +120,15 @@ export const serializeAws_json1_0ListTagsForResourceCommand = async (input, cont
|
|
|
92
120
|
body = JSON.stringify(serializeAws_json1_0ListTagsForResourceRequest(input, context));
|
|
93
121
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
94
122
|
};
|
|
123
|
+
export const serializeAws_json1_0ResumeBatchLoadTaskCommand = async (input, context) => {
|
|
124
|
+
const headers = {
|
|
125
|
+
"content-type": "application/x-amz-json-1.0",
|
|
126
|
+
"x-amz-target": "Timestream_20181101.ResumeBatchLoadTask",
|
|
127
|
+
};
|
|
128
|
+
let body;
|
|
129
|
+
body = JSON.stringify(serializeAws_json1_0ResumeBatchLoadTaskRequest(input, context));
|
|
130
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
131
|
+
};
|
|
95
132
|
export const serializeAws_json1_0TagResourceCommand = async (input, context) => {
|
|
96
133
|
const headers = {
|
|
97
134
|
"content-type": "application/x-amz-json-1.0",
|
|
@@ -137,6 +174,60 @@ export const serializeAws_json1_0WriteRecordsCommand = async (input, context) =>
|
|
|
137
174
|
body = JSON.stringify(serializeAws_json1_0WriteRecordsRequest(input, context));
|
|
138
175
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
139
176
|
};
|
|
177
|
+
export const deserializeAws_json1_0CreateBatchLoadTaskCommand = async (output, context) => {
|
|
178
|
+
if (output.statusCode >= 300) {
|
|
179
|
+
return deserializeAws_json1_0CreateBatchLoadTaskCommandError(output, context);
|
|
180
|
+
}
|
|
181
|
+
const data = await parseBody(output.body, context);
|
|
182
|
+
let contents = {};
|
|
183
|
+
contents = deserializeAws_json1_0CreateBatchLoadTaskResponse(data, context);
|
|
184
|
+
const response = {
|
|
185
|
+
$metadata: deserializeMetadata(output),
|
|
186
|
+
...contents,
|
|
187
|
+
};
|
|
188
|
+
return Promise.resolve(response);
|
|
189
|
+
};
|
|
190
|
+
const deserializeAws_json1_0CreateBatchLoadTaskCommandError = async (output, context) => {
|
|
191
|
+
const parsedOutput = {
|
|
192
|
+
...output,
|
|
193
|
+
body: await parseErrorBody(output.body, context),
|
|
194
|
+
};
|
|
195
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
196
|
+
switch (errorCode) {
|
|
197
|
+
case "AccessDeniedException":
|
|
198
|
+
case "com.amazonaws.timestreamwrite#AccessDeniedException":
|
|
199
|
+
throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
|
|
200
|
+
case "ConflictException":
|
|
201
|
+
case "com.amazonaws.timestreamwrite#ConflictException":
|
|
202
|
+
throw await deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context);
|
|
203
|
+
case "InternalServerException":
|
|
204
|
+
case "com.amazonaws.timestreamwrite#InternalServerException":
|
|
205
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
206
|
+
case "InvalidEndpointException":
|
|
207
|
+
case "com.amazonaws.timestreamwrite#InvalidEndpointException":
|
|
208
|
+
throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context);
|
|
209
|
+
case "ResourceNotFoundException":
|
|
210
|
+
case "com.amazonaws.timestreamwrite#ResourceNotFoundException":
|
|
211
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
212
|
+
case "ServiceQuotaExceededException":
|
|
213
|
+
case "com.amazonaws.timestreamwrite#ServiceQuotaExceededException":
|
|
214
|
+
throw await deserializeAws_json1_0ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
215
|
+
case "ThrottlingException":
|
|
216
|
+
case "com.amazonaws.timestreamwrite#ThrottlingException":
|
|
217
|
+
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
218
|
+
case "ValidationException":
|
|
219
|
+
case "com.amazonaws.timestreamwrite#ValidationException":
|
|
220
|
+
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
221
|
+
default:
|
|
222
|
+
const parsedBody = parsedOutput.body;
|
|
223
|
+
throwDefaultError({
|
|
224
|
+
output,
|
|
225
|
+
parsedBody,
|
|
226
|
+
exceptionCtor: __BaseException,
|
|
227
|
+
errorCode,
|
|
228
|
+
});
|
|
229
|
+
}
|
|
230
|
+
};
|
|
140
231
|
export const deserializeAws_json1_0CreateDatabaseCommand = async (output, context) => {
|
|
141
232
|
if (output.statusCode >= 300) {
|
|
142
233
|
return deserializeAws_json1_0CreateDatabaseCommandError(output, context);
|
|
@@ -332,6 +423,51 @@ const deserializeAws_json1_0DeleteTableCommandError = async (output, context) =>
|
|
|
332
423
|
});
|
|
333
424
|
}
|
|
334
425
|
};
|
|
426
|
+
export const deserializeAws_json1_0DescribeBatchLoadTaskCommand = async (output, context) => {
|
|
427
|
+
if (output.statusCode >= 300) {
|
|
428
|
+
return deserializeAws_json1_0DescribeBatchLoadTaskCommandError(output, context);
|
|
429
|
+
}
|
|
430
|
+
const data = await parseBody(output.body, context);
|
|
431
|
+
let contents = {};
|
|
432
|
+
contents = deserializeAws_json1_0DescribeBatchLoadTaskResponse(data, context);
|
|
433
|
+
const response = {
|
|
434
|
+
$metadata: deserializeMetadata(output),
|
|
435
|
+
...contents,
|
|
436
|
+
};
|
|
437
|
+
return Promise.resolve(response);
|
|
438
|
+
};
|
|
439
|
+
const deserializeAws_json1_0DescribeBatchLoadTaskCommandError = async (output, context) => {
|
|
440
|
+
const parsedOutput = {
|
|
441
|
+
...output,
|
|
442
|
+
body: await parseErrorBody(output.body, context),
|
|
443
|
+
};
|
|
444
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
445
|
+
switch (errorCode) {
|
|
446
|
+
case "AccessDeniedException":
|
|
447
|
+
case "com.amazonaws.timestreamwrite#AccessDeniedException":
|
|
448
|
+
throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
|
|
449
|
+
case "InternalServerException":
|
|
450
|
+
case "com.amazonaws.timestreamwrite#InternalServerException":
|
|
451
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
452
|
+
case "InvalidEndpointException":
|
|
453
|
+
case "com.amazonaws.timestreamwrite#InvalidEndpointException":
|
|
454
|
+
throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context);
|
|
455
|
+
case "ResourceNotFoundException":
|
|
456
|
+
case "com.amazonaws.timestreamwrite#ResourceNotFoundException":
|
|
457
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
458
|
+
case "ThrottlingException":
|
|
459
|
+
case "com.amazonaws.timestreamwrite#ThrottlingException":
|
|
460
|
+
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
461
|
+
default:
|
|
462
|
+
const parsedBody = parsedOutput.body;
|
|
463
|
+
throwDefaultError({
|
|
464
|
+
output,
|
|
465
|
+
parsedBody,
|
|
466
|
+
exceptionCtor: __BaseException,
|
|
467
|
+
errorCode,
|
|
468
|
+
});
|
|
469
|
+
}
|
|
470
|
+
};
|
|
335
471
|
export const deserializeAws_json1_0DescribeDatabaseCommand = async (output, context) => {
|
|
336
472
|
if (output.statusCode >= 300) {
|
|
337
473
|
return deserializeAws_json1_0DescribeDatabaseCommandError(output, context);
|
|
@@ -467,6 +603,51 @@ const deserializeAws_json1_0DescribeTableCommandError = async (output, context)
|
|
|
467
603
|
});
|
|
468
604
|
}
|
|
469
605
|
};
|
|
606
|
+
export const deserializeAws_json1_0ListBatchLoadTasksCommand = async (output, context) => {
|
|
607
|
+
if (output.statusCode >= 300) {
|
|
608
|
+
return deserializeAws_json1_0ListBatchLoadTasksCommandError(output, context);
|
|
609
|
+
}
|
|
610
|
+
const data = await parseBody(output.body, context);
|
|
611
|
+
let contents = {};
|
|
612
|
+
contents = deserializeAws_json1_0ListBatchLoadTasksResponse(data, context);
|
|
613
|
+
const response = {
|
|
614
|
+
$metadata: deserializeMetadata(output),
|
|
615
|
+
...contents,
|
|
616
|
+
};
|
|
617
|
+
return Promise.resolve(response);
|
|
618
|
+
};
|
|
619
|
+
const deserializeAws_json1_0ListBatchLoadTasksCommandError = async (output, context) => {
|
|
620
|
+
const parsedOutput = {
|
|
621
|
+
...output,
|
|
622
|
+
body: await parseErrorBody(output.body, context),
|
|
623
|
+
};
|
|
624
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
625
|
+
switch (errorCode) {
|
|
626
|
+
case "AccessDeniedException":
|
|
627
|
+
case "com.amazonaws.timestreamwrite#AccessDeniedException":
|
|
628
|
+
throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
|
|
629
|
+
case "InternalServerException":
|
|
630
|
+
case "com.amazonaws.timestreamwrite#InternalServerException":
|
|
631
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
632
|
+
case "InvalidEndpointException":
|
|
633
|
+
case "com.amazonaws.timestreamwrite#InvalidEndpointException":
|
|
634
|
+
throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context);
|
|
635
|
+
case "ThrottlingException":
|
|
636
|
+
case "com.amazonaws.timestreamwrite#ThrottlingException":
|
|
637
|
+
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
638
|
+
case "ValidationException":
|
|
639
|
+
case "com.amazonaws.timestreamwrite#ValidationException":
|
|
640
|
+
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
641
|
+
default:
|
|
642
|
+
const parsedBody = parsedOutput.body;
|
|
643
|
+
throwDefaultError({
|
|
644
|
+
output,
|
|
645
|
+
parsedBody,
|
|
646
|
+
exceptionCtor: __BaseException,
|
|
647
|
+
errorCode,
|
|
648
|
+
});
|
|
649
|
+
}
|
|
650
|
+
};
|
|
470
651
|
export const deserializeAws_json1_0ListDatabasesCommand = async (output, context) => {
|
|
471
652
|
if (output.statusCode >= 300) {
|
|
472
653
|
return deserializeAws_json1_0ListDatabasesCommandError(output, context);
|
|
@@ -602,6 +783,54 @@ const deserializeAws_json1_0ListTagsForResourceCommandError = async (output, con
|
|
|
602
783
|
});
|
|
603
784
|
}
|
|
604
785
|
};
|
|
786
|
+
export const deserializeAws_json1_0ResumeBatchLoadTaskCommand = async (output, context) => {
|
|
787
|
+
if (output.statusCode >= 300) {
|
|
788
|
+
return deserializeAws_json1_0ResumeBatchLoadTaskCommandError(output, context);
|
|
789
|
+
}
|
|
790
|
+
const data = await parseBody(output.body, context);
|
|
791
|
+
let contents = {};
|
|
792
|
+
contents = deserializeAws_json1_0ResumeBatchLoadTaskResponse(data, context);
|
|
793
|
+
const response = {
|
|
794
|
+
$metadata: deserializeMetadata(output),
|
|
795
|
+
...contents,
|
|
796
|
+
};
|
|
797
|
+
return Promise.resolve(response);
|
|
798
|
+
};
|
|
799
|
+
const deserializeAws_json1_0ResumeBatchLoadTaskCommandError = async (output, context) => {
|
|
800
|
+
const parsedOutput = {
|
|
801
|
+
...output,
|
|
802
|
+
body: await parseErrorBody(output.body, context),
|
|
803
|
+
};
|
|
804
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
805
|
+
switch (errorCode) {
|
|
806
|
+
case "AccessDeniedException":
|
|
807
|
+
case "com.amazonaws.timestreamwrite#AccessDeniedException":
|
|
808
|
+
throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
|
|
809
|
+
case "InternalServerException":
|
|
810
|
+
case "com.amazonaws.timestreamwrite#InternalServerException":
|
|
811
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
812
|
+
case "InvalidEndpointException":
|
|
813
|
+
case "com.amazonaws.timestreamwrite#InvalidEndpointException":
|
|
814
|
+
throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context);
|
|
815
|
+
case "ResourceNotFoundException":
|
|
816
|
+
case "com.amazonaws.timestreamwrite#ResourceNotFoundException":
|
|
817
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
818
|
+
case "ThrottlingException":
|
|
819
|
+
case "com.amazonaws.timestreamwrite#ThrottlingException":
|
|
820
|
+
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
821
|
+
case "ValidationException":
|
|
822
|
+
case "com.amazonaws.timestreamwrite#ValidationException":
|
|
823
|
+
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
824
|
+
default:
|
|
825
|
+
const parsedBody = parsedOutput.body;
|
|
826
|
+
throwDefaultError({
|
|
827
|
+
output,
|
|
828
|
+
parsedBody,
|
|
829
|
+
exceptionCtor: __BaseException,
|
|
830
|
+
errorCode,
|
|
831
|
+
});
|
|
832
|
+
}
|
|
833
|
+
};
|
|
605
834
|
export const deserializeAws_json1_0TagResourceCommand = async (output, context) => {
|
|
606
835
|
if (output.statusCode >= 300) {
|
|
607
836
|
return deserializeAws_json1_0TagResourceCommandError(output, context);
|
|
@@ -923,6 +1152,23 @@ const deserializeAws_json1_0ValidationExceptionResponse = async (parsedOutput, c
|
|
|
923
1152
|
});
|
|
924
1153
|
return __decorateServiceException(exception, body);
|
|
925
1154
|
};
|
|
1155
|
+
const serializeAws_json1_0CreateBatchLoadTaskRequest = (input, context) => {
|
|
1156
|
+
return {
|
|
1157
|
+
ClientToken: input.ClientToken ?? generateIdempotencyToken(),
|
|
1158
|
+
...(input.DataModelConfiguration != null && {
|
|
1159
|
+
DataModelConfiguration: serializeAws_json1_0DataModelConfiguration(input.DataModelConfiguration, context),
|
|
1160
|
+
}),
|
|
1161
|
+
...(input.DataSourceConfiguration != null && {
|
|
1162
|
+
DataSourceConfiguration: serializeAws_json1_0DataSourceConfiguration(input.DataSourceConfiguration, context),
|
|
1163
|
+
}),
|
|
1164
|
+
...(input.RecordVersion != null && { RecordVersion: input.RecordVersion }),
|
|
1165
|
+
...(input.ReportConfiguration != null && {
|
|
1166
|
+
ReportConfiguration: serializeAws_json1_0ReportConfiguration(input.ReportConfiguration, context),
|
|
1167
|
+
}),
|
|
1168
|
+
...(input.TargetDatabaseName != null && { TargetDatabaseName: input.TargetDatabaseName }),
|
|
1169
|
+
...(input.TargetTableName != null && { TargetTableName: input.TargetTableName }),
|
|
1170
|
+
};
|
|
1171
|
+
};
|
|
926
1172
|
const serializeAws_json1_0CreateDatabaseRequest = (input, context) => {
|
|
927
1173
|
return {
|
|
928
1174
|
...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
|
|
@@ -943,6 +1189,62 @@ const serializeAws_json1_0CreateTableRequest = (input, context) => {
|
|
|
943
1189
|
...(input.Tags != null && { Tags: serializeAws_json1_0TagList(input.Tags, context) }),
|
|
944
1190
|
};
|
|
945
1191
|
};
|
|
1192
|
+
const serializeAws_json1_0CsvConfiguration = (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 serializeAws_json1_0DataModel = (input, context) => {
|
|
1202
|
+
return {
|
|
1203
|
+
...(input.DimensionMappings != null && {
|
|
1204
|
+
DimensionMappings: serializeAws_json1_0DimensionMappings(input.DimensionMappings, context),
|
|
1205
|
+
}),
|
|
1206
|
+
...(input.MeasureNameColumn != null && { MeasureNameColumn: input.MeasureNameColumn }),
|
|
1207
|
+
...(input.MixedMeasureMappings != null && {
|
|
1208
|
+
MixedMeasureMappings: serializeAws_json1_0MixedMeasureMappingList(input.MixedMeasureMappings, context),
|
|
1209
|
+
}),
|
|
1210
|
+
...(input.MultiMeasureMappings != null && {
|
|
1211
|
+
MultiMeasureMappings: serializeAws_json1_0MultiMeasureMappings(input.MultiMeasureMappings, context),
|
|
1212
|
+
}),
|
|
1213
|
+
...(input.TimeColumn != null && { TimeColumn: input.TimeColumn }),
|
|
1214
|
+
...(input.TimeUnit != null && { TimeUnit: input.TimeUnit }),
|
|
1215
|
+
};
|
|
1216
|
+
};
|
|
1217
|
+
const serializeAws_json1_0DataModelConfiguration = (input, context) => {
|
|
1218
|
+
return {
|
|
1219
|
+
...(input.DataModel != null && { DataModel: serializeAws_json1_0DataModel(input.DataModel, context) }),
|
|
1220
|
+
...(input.DataModelS3Configuration != null && {
|
|
1221
|
+
DataModelS3Configuration: serializeAws_json1_0DataModelS3Configuration(input.DataModelS3Configuration, context),
|
|
1222
|
+
}),
|
|
1223
|
+
};
|
|
1224
|
+
};
|
|
1225
|
+
const serializeAws_json1_0DataModelS3Configuration = (input, context) => {
|
|
1226
|
+
return {
|
|
1227
|
+
...(input.BucketName != null && { BucketName: input.BucketName }),
|
|
1228
|
+
...(input.ObjectKey != null && { ObjectKey: input.ObjectKey }),
|
|
1229
|
+
};
|
|
1230
|
+
};
|
|
1231
|
+
const serializeAws_json1_0DataSourceConfiguration = (input, context) => {
|
|
1232
|
+
return {
|
|
1233
|
+
...(input.CsvConfiguration != null && {
|
|
1234
|
+
CsvConfiguration: serializeAws_json1_0CsvConfiguration(input.CsvConfiguration, context),
|
|
1235
|
+
}),
|
|
1236
|
+
...(input.DataFormat != null && { DataFormat: input.DataFormat }),
|
|
1237
|
+
...(input.DataSourceS3Configuration != null && {
|
|
1238
|
+
DataSourceS3Configuration: serializeAws_json1_0DataSourceS3Configuration(input.DataSourceS3Configuration, context),
|
|
1239
|
+
}),
|
|
1240
|
+
};
|
|
1241
|
+
};
|
|
1242
|
+
const serializeAws_json1_0DataSourceS3Configuration = (input, context) => {
|
|
1243
|
+
return {
|
|
1244
|
+
...(input.BucketName != null && { BucketName: input.BucketName }),
|
|
1245
|
+
...(input.ObjectKeyPrefix != null && { ObjectKeyPrefix: input.ObjectKeyPrefix }),
|
|
1246
|
+
};
|
|
1247
|
+
};
|
|
946
1248
|
const serializeAws_json1_0DeleteDatabaseRequest = (input, context) => {
|
|
947
1249
|
return {
|
|
948
1250
|
...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
|
|
@@ -954,6 +1256,11 @@ const serializeAws_json1_0DeleteTableRequest = (input, context) => {
|
|
|
954
1256
|
...(input.TableName != null && { TableName: input.TableName }),
|
|
955
1257
|
};
|
|
956
1258
|
};
|
|
1259
|
+
const serializeAws_json1_0DescribeBatchLoadTaskRequest = (input, context) => {
|
|
1260
|
+
return {
|
|
1261
|
+
...(input.TaskId != null && { TaskId: input.TaskId }),
|
|
1262
|
+
};
|
|
1263
|
+
};
|
|
957
1264
|
const serializeAws_json1_0DescribeDatabaseRequest = (input, context) => {
|
|
958
1265
|
return {
|
|
959
1266
|
...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
|
|
@@ -975,6 +1282,19 @@ const serializeAws_json1_0Dimension = (input, context) => {
|
|
|
975
1282
|
...(input.Value != null && { Value: input.Value }),
|
|
976
1283
|
};
|
|
977
1284
|
};
|
|
1285
|
+
const serializeAws_json1_0DimensionMapping = (input, context) => {
|
|
1286
|
+
return {
|
|
1287
|
+
...(input.DestinationColumn != null && { DestinationColumn: input.DestinationColumn }),
|
|
1288
|
+
...(input.SourceColumn != null && { SourceColumn: input.SourceColumn }),
|
|
1289
|
+
};
|
|
1290
|
+
};
|
|
1291
|
+
const serializeAws_json1_0DimensionMappings = (input, context) => {
|
|
1292
|
+
return input
|
|
1293
|
+
.filter((e) => e != null)
|
|
1294
|
+
.map((entry) => {
|
|
1295
|
+
return serializeAws_json1_0DimensionMapping(entry, context);
|
|
1296
|
+
});
|
|
1297
|
+
};
|
|
978
1298
|
const serializeAws_json1_0Dimensions = (input, context) => {
|
|
979
1299
|
return input
|
|
980
1300
|
.filter((e) => e != null)
|
|
@@ -982,6 +1302,13 @@ const serializeAws_json1_0Dimensions = (input, context) => {
|
|
|
982
1302
|
return serializeAws_json1_0Dimension(entry, context);
|
|
983
1303
|
});
|
|
984
1304
|
};
|
|
1305
|
+
const serializeAws_json1_0ListBatchLoadTasksRequest = (input, context) => {
|
|
1306
|
+
return {
|
|
1307
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1308
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1309
|
+
...(input.TaskStatus != null && { TaskStatus: input.TaskStatus }),
|
|
1310
|
+
};
|
|
1311
|
+
};
|
|
985
1312
|
const serializeAws_json1_0ListDatabasesRequest = (input, context) => {
|
|
986
1313
|
return {
|
|
987
1314
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
@@ -1029,6 +1356,48 @@ const serializeAws_json1_0MeasureValues = (input, context) => {
|
|
|
1029
1356
|
return serializeAws_json1_0MeasureValue(entry, context);
|
|
1030
1357
|
});
|
|
1031
1358
|
};
|
|
1359
|
+
const serializeAws_json1_0MixedMeasureMapping = (input, context) => {
|
|
1360
|
+
return {
|
|
1361
|
+
...(input.MeasureName != null && { MeasureName: input.MeasureName }),
|
|
1362
|
+
...(input.MeasureValueType != null && { MeasureValueType: input.MeasureValueType }),
|
|
1363
|
+
...(input.MultiMeasureAttributeMappings != null && {
|
|
1364
|
+
MultiMeasureAttributeMappings: serializeAws_json1_0MultiMeasureAttributeMappingList(input.MultiMeasureAttributeMappings, context),
|
|
1365
|
+
}),
|
|
1366
|
+
...(input.SourceColumn != null && { SourceColumn: input.SourceColumn }),
|
|
1367
|
+
...(input.TargetMeasureName != null && { TargetMeasureName: input.TargetMeasureName }),
|
|
1368
|
+
};
|
|
1369
|
+
};
|
|
1370
|
+
const serializeAws_json1_0MixedMeasureMappingList = (input, context) => {
|
|
1371
|
+
return input
|
|
1372
|
+
.filter((e) => e != null)
|
|
1373
|
+
.map((entry) => {
|
|
1374
|
+
return serializeAws_json1_0MixedMeasureMapping(entry, context);
|
|
1375
|
+
});
|
|
1376
|
+
};
|
|
1377
|
+
const serializeAws_json1_0MultiMeasureAttributeMapping = (input, context) => {
|
|
1378
|
+
return {
|
|
1379
|
+
...(input.MeasureValueType != null && { MeasureValueType: input.MeasureValueType }),
|
|
1380
|
+
...(input.SourceColumn != null && { SourceColumn: input.SourceColumn }),
|
|
1381
|
+
...(input.TargetMultiMeasureAttributeName != null && {
|
|
1382
|
+
TargetMultiMeasureAttributeName: input.TargetMultiMeasureAttributeName,
|
|
1383
|
+
}),
|
|
1384
|
+
};
|
|
1385
|
+
};
|
|
1386
|
+
const serializeAws_json1_0MultiMeasureAttributeMappingList = (input, context) => {
|
|
1387
|
+
return input
|
|
1388
|
+
.filter((e) => e != null)
|
|
1389
|
+
.map((entry) => {
|
|
1390
|
+
return serializeAws_json1_0MultiMeasureAttributeMapping(entry, context);
|
|
1391
|
+
});
|
|
1392
|
+
};
|
|
1393
|
+
const serializeAws_json1_0MultiMeasureMappings = (input, context) => {
|
|
1394
|
+
return {
|
|
1395
|
+
...(input.MultiMeasureAttributeMappings != null && {
|
|
1396
|
+
MultiMeasureAttributeMappings: serializeAws_json1_0MultiMeasureAttributeMappingList(input.MultiMeasureAttributeMappings, context),
|
|
1397
|
+
}),
|
|
1398
|
+
...(input.TargetMultiMeasureName != null && { TargetMultiMeasureName: input.TargetMultiMeasureName }),
|
|
1399
|
+
};
|
|
1400
|
+
};
|
|
1032
1401
|
const serializeAws_json1_0_Record = (input, context) => {
|
|
1033
1402
|
return {
|
|
1034
1403
|
...(input.Dimensions != null && { Dimensions: serializeAws_json1_0Dimensions(input.Dimensions, context) }),
|
|
@@ -1050,6 +1419,26 @@ const serializeAws_json1_0Records = (input, context) => {
|
|
|
1050
1419
|
return serializeAws_json1_0_Record(entry, context);
|
|
1051
1420
|
});
|
|
1052
1421
|
};
|
|
1422
|
+
const serializeAws_json1_0ReportConfiguration = (input, context) => {
|
|
1423
|
+
return {
|
|
1424
|
+
...(input.ReportS3Configuration != null && {
|
|
1425
|
+
ReportS3Configuration: serializeAws_json1_0ReportS3Configuration(input.ReportS3Configuration, context),
|
|
1426
|
+
}),
|
|
1427
|
+
};
|
|
1428
|
+
};
|
|
1429
|
+
const serializeAws_json1_0ReportS3Configuration = (input, context) => {
|
|
1430
|
+
return {
|
|
1431
|
+
...(input.BucketName != null && { BucketName: input.BucketName }),
|
|
1432
|
+
...(input.EncryptionOption != null && { EncryptionOption: input.EncryptionOption }),
|
|
1433
|
+
...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
|
|
1434
|
+
...(input.ObjectKeyPrefix != null && { ObjectKeyPrefix: input.ObjectKeyPrefix }),
|
|
1435
|
+
};
|
|
1436
|
+
};
|
|
1437
|
+
const serializeAws_json1_0ResumeBatchLoadTaskRequest = (input, context) => {
|
|
1438
|
+
return {
|
|
1439
|
+
...(input.TaskId != null && { TaskId: input.TaskId }),
|
|
1440
|
+
};
|
|
1441
|
+
};
|
|
1053
1442
|
const serializeAws_json1_0RetentionProperties = (input, context) => {
|
|
1054
1443
|
return {
|
|
1055
1444
|
...(input.MagneticStoreRetentionPeriodInDays != null && {
|
|
@@ -1133,11 +1522,85 @@ const deserializeAws_json1_0AccessDeniedException = (output, context) => {
|
|
|
1133
1522
|
Message: __expectString(output.Message),
|
|
1134
1523
|
};
|
|
1135
1524
|
};
|
|
1525
|
+
const deserializeAws_json1_0BatchLoadProgressReport = (output, context) => {
|
|
1526
|
+
return {
|
|
1527
|
+
BytesMetered: __expectLong(output.BytesMetered),
|
|
1528
|
+
FileFailures: __expectLong(output.FileFailures),
|
|
1529
|
+
ParseFailures: __expectLong(output.ParseFailures),
|
|
1530
|
+
RecordIngestionFailures: __expectLong(output.RecordIngestionFailures),
|
|
1531
|
+
RecordsIngested: __expectLong(output.RecordsIngested),
|
|
1532
|
+
RecordsProcessed: __expectLong(output.RecordsProcessed),
|
|
1533
|
+
};
|
|
1534
|
+
};
|
|
1535
|
+
const deserializeAws_json1_0BatchLoadTask = (output, context) => {
|
|
1536
|
+
return {
|
|
1537
|
+
CreationTime: output.CreationTime != null
|
|
1538
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
|
|
1539
|
+
: undefined,
|
|
1540
|
+
DatabaseName: __expectString(output.DatabaseName),
|
|
1541
|
+
LastUpdatedTime: output.LastUpdatedTime != null
|
|
1542
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedTime)))
|
|
1543
|
+
: undefined,
|
|
1544
|
+
ResumableUntil: output.ResumableUntil != null
|
|
1545
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ResumableUntil)))
|
|
1546
|
+
: undefined,
|
|
1547
|
+
TableName: __expectString(output.TableName),
|
|
1548
|
+
TaskId: __expectString(output.TaskId),
|
|
1549
|
+
TaskStatus: __expectString(output.TaskStatus),
|
|
1550
|
+
};
|
|
1551
|
+
};
|
|
1552
|
+
const deserializeAws_json1_0BatchLoadTaskDescription = (output, context) => {
|
|
1553
|
+
return {
|
|
1554
|
+
CreationTime: output.CreationTime != null
|
|
1555
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
|
|
1556
|
+
: undefined,
|
|
1557
|
+
DataModelConfiguration: output.DataModelConfiguration != null
|
|
1558
|
+
? deserializeAws_json1_0DataModelConfiguration(output.DataModelConfiguration, context)
|
|
1559
|
+
: undefined,
|
|
1560
|
+
DataSourceConfiguration: output.DataSourceConfiguration != null
|
|
1561
|
+
? deserializeAws_json1_0DataSourceConfiguration(output.DataSourceConfiguration, context)
|
|
1562
|
+
: undefined,
|
|
1563
|
+
ErrorMessage: __expectString(output.ErrorMessage),
|
|
1564
|
+
LastUpdatedTime: output.LastUpdatedTime != null
|
|
1565
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedTime)))
|
|
1566
|
+
: undefined,
|
|
1567
|
+
ProgressReport: output.ProgressReport != null
|
|
1568
|
+
? deserializeAws_json1_0BatchLoadProgressReport(output.ProgressReport, context)
|
|
1569
|
+
: undefined,
|
|
1570
|
+
RecordVersion: __expectLong(output.RecordVersion),
|
|
1571
|
+
ReportConfiguration: output.ReportConfiguration != null
|
|
1572
|
+
? deserializeAws_json1_0ReportConfiguration(output.ReportConfiguration, context)
|
|
1573
|
+
: undefined,
|
|
1574
|
+
ResumableUntil: output.ResumableUntil != null
|
|
1575
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ResumableUntil)))
|
|
1576
|
+
: undefined,
|
|
1577
|
+
TargetDatabaseName: __expectString(output.TargetDatabaseName),
|
|
1578
|
+
TargetTableName: __expectString(output.TargetTableName),
|
|
1579
|
+
TaskId: __expectString(output.TaskId),
|
|
1580
|
+
TaskStatus: __expectString(output.TaskStatus),
|
|
1581
|
+
};
|
|
1582
|
+
};
|
|
1583
|
+
const deserializeAws_json1_0BatchLoadTaskList = (output, context) => {
|
|
1584
|
+
const retVal = (output || [])
|
|
1585
|
+
.filter((e) => e != null)
|
|
1586
|
+
.map((entry) => {
|
|
1587
|
+
if (entry === null) {
|
|
1588
|
+
return null;
|
|
1589
|
+
}
|
|
1590
|
+
return deserializeAws_json1_0BatchLoadTask(entry, context);
|
|
1591
|
+
});
|
|
1592
|
+
return retVal;
|
|
1593
|
+
};
|
|
1136
1594
|
const deserializeAws_json1_0ConflictException = (output, context) => {
|
|
1137
1595
|
return {
|
|
1138
1596
|
Message: __expectString(output.Message),
|
|
1139
1597
|
};
|
|
1140
1598
|
};
|
|
1599
|
+
const deserializeAws_json1_0CreateBatchLoadTaskResponse = (output, context) => {
|
|
1600
|
+
return {
|
|
1601
|
+
TaskId: __expectString(output.TaskId),
|
|
1602
|
+
};
|
|
1603
|
+
};
|
|
1141
1604
|
const deserializeAws_json1_0CreateDatabaseResponse = (output, context) => {
|
|
1142
1605
|
return {
|
|
1143
1606
|
Database: output.Database != null ? deserializeAws_json1_0Database(output.Database, context) : undefined,
|
|
@@ -1148,6 +1611,15 @@ const deserializeAws_json1_0CreateTableResponse = (output, context) => {
|
|
|
1148
1611
|
Table: output.Table != null ? deserializeAws_json1_0Table(output.Table, context) : undefined,
|
|
1149
1612
|
};
|
|
1150
1613
|
};
|
|
1614
|
+
const deserializeAws_json1_0CsvConfiguration = (output, context) => {
|
|
1615
|
+
return {
|
|
1616
|
+
ColumnSeparator: __expectString(output.ColumnSeparator),
|
|
1617
|
+
EscapeChar: __expectString(output.EscapeChar),
|
|
1618
|
+
NullValue: __expectString(output.NullValue),
|
|
1619
|
+
QuoteChar: __expectString(output.QuoteChar),
|
|
1620
|
+
TrimWhiteSpace: __expectBoolean(output.TrimWhiteSpace),
|
|
1621
|
+
};
|
|
1622
|
+
};
|
|
1151
1623
|
const deserializeAws_json1_0Database = (output, context) => {
|
|
1152
1624
|
return {
|
|
1153
1625
|
Arn: __expectString(output.Arn),
|
|
@@ -1173,6 +1645,60 @@ const deserializeAws_json1_0DatabaseList = (output, context) => {
|
|
|
1173
1645
|
});
|
|
1174
1646
|
return retVal;
|
|
1175
1647
|
};
|
|
1648
|
+
const deserializeAws_json1_0DataModel = (output, context) => {
|
|
1649
|
+
return {
|
|
1650
|
+
DimensionMappings: output.DimensionMappings != null
|
|
1651
|
+
? deserializeAws_json1_0DimensionMappings(output.DimensionMappings, context)
|
|
1652
|
+
: undefined,
|
|
1653
|
+
MeasureNameColumn: __expectString(output.MeasureNameColumn),
|
|
1654
|
+
MixedMeasureMappings: output.MixedMeasureMappings != null
|
|
1655
|
+
? deserializeAws_json1_0MixedMeasureMappingList(output.MixedMeasureMappings, context)
|
|
1656
|
+
: undefined,
|
|
1657
|
+
MultiMeasureMappings: output.MultiMeasureMappings != null
|
|
1658
|
+
? deserializeAws_json1_0MultiMeasureMappings(output.MultiMeasureMappings, context)
|
|
1659
|
+
: undefined,
|
|
1660
|
+
TimeColumn: __expectString(output.TimeColumn),
|
|
1661
|
+
TimeUnit: __expectString(output.TimeUnit),
|
|
1662
|
+
};
|
|
1663
|
+
};
|
|
1664
|
+
const deserializeAws_json1_0DataModelConfiguration = (output, context) => {
|
|
1665
|
+
return {
|
|
1666
|
+
DataModel: output.DataModel != null ? deserializeAws_json1_0DataModel(output.DataModel, context) : undefined,
|
|
1667
|
+
DataModelS3Configuration: output.DataModelS3Configuration != null
|
|
1668
|
+
? deserializeAws_json1_0DataModelS3Configuration(output.DataModelS3Configuration, context)
|
|
1669
|
+
: undefined,
|
|
1670
|
+
};
|
|
1671
|
+
};
|
|
1672
|
+
const deserializeAws_json1_0DataModelS3Configuration = (output, context) => {
|
|
1673
|
+
return {
|
|
1674
|
+
BucketName: __expectString(output.BucketName),
|
|
1675
|
+
ObjectKey: __expectString(output.ObjectKey),
|
|
1676
|
+
};
|
|
1677
|
+
};
|
|
1678
|
+
const deserializeAws_json1_0DataSourceConfiguration = (output, context) => {
|
|
1679
|
+
return {
|
|
1680
|
+
CsvConfiguration: output.CsvConfiguration != null
|
|
1681
|
+
? deserializeAws_json1_0CsvConfiguration(output.CsvConfiguration, context)
|
|
1682
|
+
: undefined,
|
|
1683
|
+
DataFormat: __expectString(output.DataFormat),
|
|
1684
|
+
DataSourceS3Configuration: output.DataSourceS3Configuration != null
|
|
1685
|
+
? deserializeAws_json1_0DataSourceS3Configuration(output.DataSourceS3Configuration, context)
|
|
1686
|
+
: undefined,
|
|
1687
|
+
};
|
|
1688
|
+
};
|
|
1689
|
+
const deserializeAws_json1_0DataSourceS3Configuration = (output, context) => {
|
|
1690
|
+
return {
|
|
1691
|
+
BucketName: __expectString(output.BucketName),
|
|
1692
|
+
ObjectKeyPrefix: __expectString(output.ObjectKeyPrefix),
|
|
1693
|
+
};
|
|
1694
|
+
};
|
|
1695
|
+
const deserializeAws_json1_0DescribeBatchLoadTaskResponse = (output, context) => {
|
|
1696
|
+
return {
|
|
1697
|
+
BatchLoadTaskDescription: output.BatchLoadTaskDescription != null
|
|
1698
|
+
? deserializeAws_json1_0BatchLoadTaskDescription(output.BatchLoadTaskDescription, context)
|
|
1699
|
+
: undefined,
|
|
1700
|
+
};
|
|
1701
|
+
};
|
|
1176
1702
|
const deserializeAws_json1_0DescribeDatabaseResponse = (output, context) => {
|
|
1177
1703
|
return {
|
|
1178
1704
|
Database: output.Database != null ? deserializeAws_json1_0Database(output.Database, context) : undefined,
|
|
@@ -1188,6 +1714,23 @@ const deserializeAws_json1_0DescribeTableResponse = (output, context) => {
|
|
|
1188
1714
|
Table: output.Table != null ? deserializeAws_json1_0Table(output.Table, context) : undefined,
|
|
1189
1715
|
};
|
|
1190
1716
|
};
|
|
1717
|
+
const deserializeAws_json1_0DimensionMapping = (output, context) => {
|
|
1718
|
+
return {
|
|
1719
|
+
DestinationColumn: __expectString(output.DestinationColumn),
|
|
1720
|
+
SourceColumn: __expectString(output.SourceColumn),
|
|
1721
|
+
};
|
|
1722
|
+
};
|
|
1723
|
+
const deserializeAws_json1_0DimensionMappings = (output, context) => {
|
|
1724
|
+
const retVal = (output || [])
|
|
1725
|
+
.filter((e) => e != null)
|
|
1726
|
+
.map((entry) => {
|
|
1727
|
+
if (entry === null) {
|
|
1728
|
+
return null;
|
|
1729
|
+
}
|
|
1730
|
+
return deserializeAws_json1_0DimensionMapping(entry, context);
|
|
1731
|
+
});
|
|
1732
|
+
return retVal;
|
|
1733
|
+
};
|
|
1191
1734
|
const deserializeAws_json1_0Endpoint = (output, context) => {
|
|
1192
1735
|
return {
|
|
1193
1736
|
Address: __expectString(output.Address),
|
|
@@ -1215,6 +1758,14 @@ const deserializeAws_json1_0InvalidEndpointException = (output, context) => {
|
|
|
1215
1758
|
Message: __expectString(output.Message),
|
|
1216
1759
|
};
|
|
1217
1760
|
};
|
|
1761
|
+
const deserializeAws_json1_0ListBatchLoadTasksResponse = (output, context) => {
|
|
1762
|
+
return {
|
|
1763
|
+
BatchLoadTasks: output.BatchLoadTasks != null
|
|
1764
|
+
? deserializeAws_json1_0BatchLoadTaskList(output.BatchLoadTasks, context)
|
|
1765
|
+
: undefined,
|
|
1766
|
+
NextToken: __expectString(output.NextToken),
|
|
1767
|
+
};
|
|
1768
|
+
};
|
|
1218
1769
|
const deserializeAws_json1_0ListDatabasesResponse = (output, context) => {
|
|
1219
1770
|
return {
|
|
1220
1771
|
Databases: output.Databases != null ? deserializeAws_json1_0DatabaseList(output.Databases, context) : undefined,
|
|
@@ -1247,6 +1798,54 @@ const deserializeAws_json1_0MagneticStoreWriteProperties = (output, context) =>
|
|
|
1247
1798
|
: undefined,
|
|
1248
1799
|
};
|
|
1249
1800
|
};
|
|
1801
|
+
const deserializeAws_json1_0MixedMeasureMapping = (output, context) => {
|
|
1802
|
+
return {
|
|
1803
|
+
MeasureName: __expectString(output.MeasureName),
|
|
1804
|
+
MeasureValueType: __expectString(output.MeasureValueType),
|
|
1805
|
+
MultiMeasureAttributeMappings: output.MultiMeasureAttributeMappings != null
|
|
1806
|
+
? deserializeAws_json1_0MultiMeasureAttributeMappingList(output.MultiMeasureAttributeMappings, context)
|
|
1807
|
+
: undefined,
|
|
1808
|
+
SourceColumn: __expectString(output.SourceColumn),
|
|
1809
|
+
TargetMeasureName: __expectString(output.TargetMeasureName),
|
|
1810
|
+
};
|
|
1811
|
+
};
|
|
1812
|
+
const deserializeAws_json1_0MixedMeasureMappingList = (output, context) => {
|
|
1813
|
+
const retVal = (output || [])
|
|
1814
|
+
.filter((e) => e != null)
|
|
1815
|
+
.map((entry) => {
|
|
1816
|
+
if (entry === null) {
|
|
1817
|
+
return null;
|
|
1818
|
+
}
|
|
1819
|
+
return deserializeAws_json1_0MixedMeasureMapping(entry, context);
|
|
1820
|
+
});
|
|
1821
|
+
return retVal;
|
|
1822
|
+
};
|
|
1823
|
+
const deserializeAws_json1_0MultiMeasureAttributeMapping = (output, context) => {
|
|
1824
|
+
return {
|
|
1825
|
+
MeasureValueType: __expectString(output.MeasureValueType),
|
|
1826
|
+
SourceColumn: __expectString(output.SourceColumn),
|
|
1827
|
+
TargetMultiMeasureAttributeName: __expectString(output.TargetMultiMeasureAttributeName),
|
|
1828
|
+
};
|
|
1829
|
+
};
|
|
1830
|
+
const deserializeAws_json1_0MultiMeasureAttributeMappingList = (output, context) => {
|
|
1831
|
+
const retVal = (output || [])
|
|
1832
|
+
.filter((e) => e != null)
|
|
1833
|
+
.map((entry) => {
|
|
1834
|
+
if (entry === null) {
|
|
1835
|
+
return null;
|
|
1836
|
+
}
|
|
1837
|
+
return deserializeAws_json1_0MultiMeasureAttributeMapping(entry, context);
|
|
1838
|
+
});
|
|
1839
|
+
return retVal;
|
|
1840
|
+
};
|
|
1841
|
+
const deserializeAws_json1_0MultiMeasureMappings = (output, context) => {
|
|
1842
|
+
return {
|
|
1843
|
+
MultiMeasureAttributeMappings: output.MultiMeasureAttributeMappings != null
|
|
1844
|
+
? deserializeAws_json1_0MultiMeasureAttributeMappingList(output.MultiMeasureAttributeMappings, context)
|
|
1845
|
+
: undefined,
|
|
1846
|
+
TargetMultiMeasureName: __expectString(output.TargetMultiMeasureName),
|
|
1847
|
+
};
|
|
1848
|
+
};
|
|
1250
1849
|
const deserializeAws_json1_0RecordsIngested = (output, context) => {
|
|
1251
1850
|
return {
|
|
1252
1851
|
MagneticStore: __expectInt32(output.MagneticStore),
|
|
@@ -1280,11 +1879,29 @@ const deserializeAws_json1_0RejectedRecordsException = (output, context) => {
|
|
|
1280
1879
|
: undefined,
|
|
1281
1880
|
};
|
|
1282
1881
|
};
|
|
1882
|
+
const deserializeAws_json1_0ReportConfiguration = (output, context) => {
|
|
1883
|
+
return {
|
|
1884
|
+
ReportS3Configuration: output.ReportS3Configuration != null
|
|
1885
|
+
? deserializeAws_json1_0ReportS3Configuration(output.ReportS3Configuration, context)
|
|
1886
|
+
: undefined,
|
|
1887
|
+
};
|
|
1888
|
+
};
|
|
1889
|
+
const deserializeAws_json1_0ReportS3Configuration = (output, context) => {
|
|
1890
|
+
return {
|
|
1891
|
+
BucketName: __expectString(output.BucketName),
|
|
1892
|
+
EncryptionOption: __expectString(output.EncryptionOption),
|
|
1893
|
+
KmsKeyId: __expectString(output.KmsKeyId),
|
|
1894
|
+
ObjectKeyPrefix: __expectString(output.ObjectKeyPrefix),
|
|
1895
|
+
};
|
|
1896
|
+
};
|
|
1283
1897
|
const deserializeAws_json1_0ResourceNotFoundException = (output, context) => {
|
|
1284
1898
|
return {
|
|
1285
1899
|
Message: __expectString(output.Message),
|
|
1286
1900
|
};
|
|
1287
1901
|
};
|
|
1902
|
+
const deserializeAws_json1_0ResumeBatchLoadTaskResponse = (output, context) => {
|
|
1903
|
+
return {};
|
|
1904
|
+
};
|
|
1288
1905
|
const deserializeAws_json1_0RetentionProperties = (output, context) => {
|
|
1289
1906
|
return {
|
|
1290
1907
|
MagneticStoreRetentionPeriodInDays: __expectLong(output.MagneticStoreRetentionPeriodInDays),
|