@aws-sdk/client-dataexchange 3.312.0 → 3.316.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/DataExchange.js +33 -406
- package/dist-cjs/protocols/Aws_restJson1.js +473 -1417
- package/dist-es/DataExchange.js +33 -406
- package/dist-es/protocols/Aws_restJson1.js +430 -1374
- package/dist-types/DataExchange.d.ts +51 -78
- package/dist-types/ts3.4/DataExchange.d.ts +4 -1
- package/package.json +6 -6
|
@@ -30,12 +30,12 @@ const se_CreateDataSetCommand = async (input, context) => {
|
|
|
30
30
|
};
|
|
31
31
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/data-sets";
|
|
32
32
|
let body;
|
|
33
|
-
body = JSON.stringify({
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
});
|
|
33
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
34
|
+
AssetType: [],
|
|
35
|
+
Description: [],
|
|
36
|
+
Name: [],
|
|
37
|
+
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
38
|
+
}));
|
|
39
39
|
return new protocol_http_1.HttpRequest({
|
|
40
40
|
protocol,
|
|
41
41
|
hostname,
|
|
@@ -54,10 +54,10 @@ const se_CreateEventActionCommand = async (input, context) => {
|
|
|
54
54
|
};
|
|
55
55
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/event-actions";
|
|
56
56
|
let body;
|
|
57
|
-
body = JSON.stringify({
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
});
|
|
57
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
58
|
+
Action: (_) => (0, smithy_client_1._json)(_),
|
|
59
|
+
Event: (_) => (0, smithy_client_1._json)(_),
|
|
60
|
+
}));
|
|
61
61
|
return new protocol_http_1.HttpRequest({
|
|
62
62
|
protocol,
|
|
63
63
|
hostname,
|
|
@@ -76,10 +76,10 @@ const se_CreateJobCommand = async (input, context) => {
|
|
|
76
76
|
};
|
|
77
77
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/jobs";
|
|
78
78
|
let body;
|
|
79
|
-
body = JSON.stringify({
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
});
|
|
79
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
80
|
+
Details: (_) => (0, smithy_client_1._json)(_),
|
|
81
|
+
Type: [],
|
|
82
|
+
}));
|
|
83
83
|
return new protocol_http_1.HttpRequest({
|
|
84
84
|
protocol,
|
|
85
85
|
hostname,
|
|
@@ -99,10 +99,10 @@ const se_CreateRevisionCommand = async (input, context) => {
|
|
|
99
99
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/data-sets/{DataSetId}/revisions";
|
|
100
100
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DataSetId", () => input.DataSetId, "{DataSetId}", false);
|
|
101
101
|
let body;
|
|
102
|
-
body = JSON.stringify({
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
});
|
|
102
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
103
|
+
Comment: [],
|
|
104
|
+
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
105
|
+
}));
|
|
106
106
|
return new protocol_http_1.HttpRequest({
|
|
107
107
|
protocol,
|
|
108
108
|
hostname,
|
|
@@ -282,7 +282,7 @@ const se_ListDataSetRevisionsCommand = async (input, context) => {
|
|
|
282
282
|
const headers = {};
|
|
283
283
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/data-sets/{DataSetId}/revisions";
|
|
284
284
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DataSetId", () => input.DataSetId, "{DataSetId}", false);
|
|
285
|
-
const query = map({
|
|
285
|
+
const query = (0, smithy_client_1.map)({
|
|
286
286
|
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
287
287
|
nextToken: [, input.NextToken],
|
|
288
288
|
});
|
|
@@ -303,7 +303,7 @@ const se_ListDataSetsCommand = async (input, context) => {
|
|
|
303
303
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
304
304
|
const headers = {};
|
|
305
305
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/data-sets";
|
|
306
|
-
const query = map({
|
|
306
|
+
const query = (0, smithy_client_1.map)({
|
|
307
307
|
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
308
308
|
nextToken: [, input.NextToken],
|
|
309
309
|
origin: [, input.Origin],
|
|
@@ -325,7 +325,7 @@ const se_ListEventActionsCommand = async (input, context) => {
|
|
|
325
325
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
326
326
|
const headers = {};
|
|
327
327
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/event-actions";
|
|
328
|
-
const query = map({
|
|
328
|
+
const query = (0, smithy_client_1.map)({
|
|
329
329
|
eventSourceId: [, input.EventSourceId],
|
|
330
330
|
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
331
331
|
nextToken: [, input.NextToken],
|
|
@@ -347,7 +347,7 @@ const se_ListJobsCommand = async (input, context) => {
|
|
|
347
347
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
348
348
|
const headers = {};
|
|
349
349
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/jobs";
|
|
350
|
-
const query = map({
|
|
350
|
+
const query = (0, smithy_client_1.map)({
|
|
351
351
|
dataSetId: [, input.DataSetId],
|
|
352
352
|
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
353
353
|
nextToken: [, input.NextToken],
|
|
@@ -373,7 +373,7 @@ const se_ListRevisionAssetsCommand = async (input, context) => {
|
|
|
373
373
|
"/v1/data-sets/{DataSetId}/revisions/{RevisionId}/assets";
|
|
374
374
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DataSetId", () => input.DataSetId, "{DataSetId}", false);
|
|
375
375
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RevisionId", () => input.RevisionId, "{RevisionId}", false);
|
|
376
|
-
const query = map({
|
|
376
|
+
const query = (0, smithy_client_1.map)({
|
|
377
377
|
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
378
378
|
nextToken: [, input.NextToken],
|
|
379
379
|
});
|
|
@@ -417,9 +417,9 @@ const se_RevokeRevisionCommand = async (input, context) => {
|
|
|
417
417
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DataSetId", () => input.DataSetId, "{DataSetId}", false);
|
|
418
418
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RevisionId", () => input.RevisionId, "{RevisionId}", false);
|
|
419
419
|
let body;
|
|
420
|
-
body = JSON.stringify({
|
|
421
|
-
|
|
422
|
-
});
|
|
420
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
421
|
+
RevocationComment: [],
|
|
422
|
+
}));
|
|
423
423
|
return new protocol_http_1.HttpRequest({
|
|
424
424
|
protocol,
|
|
425
425
|
hostname,
|
|
@@ -433,7 +433,7 @@ const se_RevokeRevisionCommand = async (input, context) => {
|
|
|
433
433
|
exports.se_RevokeRevisionCommand = se_RevokeRevisionCommand;
|
|
434
434
|
const se_SendApiAssetCommand = async (input, context) => {
|
|
435
435
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
436
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
436
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
437
437
|
"content-type": "text/plain",
|
|
438
438
|
"x-amzn-dataexchange-asset-id": input.AssetId,
|
|
439
439
|
"x-amzn-dataexchange-data-set-id": input.DataSetId,
|
|
@@ -447,7 +447,7 @@ const se_SendApiAssetCommand = async (input, context) => {
|
|
|
447
447
|
}, {})),
|
|
448
448
|
});
|
|
449
449
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1";
|
|
450
|
-
const query = map({
|
|
450
|
+
const query = (0, smithy_client_1.map)({
|
|
451
451
|
...(0, smithy_client_1.convertMap)(input.QueryStringParameters),
|
|
452
452
|
});
|
|
453
453
|
let body;
|
|
@@ -498,9 +498,9 @@ const se_TagResourceCommand = async (input, context) => {
|
|
|
498
498
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
|
|
499
499
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
500
500
|
let body;
|
|
501
|
-
body = JSON.stringify({
|
|
502
|
-
|
|
503
|
-
});
|
|
501
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
502
|
+
tags: [, (_) => (0, smithy_client_1._json)(_), `Tags`],
|
|
503
|
+
}));
|
|
504
504
|
return new protocol_http_1.HttpRequest({
|
|
505
505
|
protocol,
|
|
506
506
|
hostname,
|
|
@@ -517,7 +517,7 @@ const se_UntagResourceCommand = async (input, context) => {
|
|
|
517
517
|
const headers = {};
|
|
518
518
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
|
|
519
519
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
520
|
-
const query = map({
|
|
520
|
+
const query = (0, smithy_client_1.map)({
|
|
521
521
|
tagKeys: [
|
|
522
522
|
(0, smithy_client_1.expectNonNull)(input.TagKeys, `TagKeys`) != null,
|
|
523
523
|
() => (input.TagKeys || []).map((_entry) => _entry),
|
|
@@ -547,9 +547,9 @@ const se_UpdateAssetCommand = async (input, context) => {
|
|
|
547
547
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DataSetId", () => input.DataSetId, "{DataSetId}", false);
|
|
548
548
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RevisionId", () => input.RevisionId, "{RevisionId}", false);
|
|
549
549
|
let body;
|
|
550
|
-
body = JSON.stringify({
|
|
551
|
-
|
|
552
|
-
});
|
|
550
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
551
|
+
Name: [],
|
|
552
|
+
}));
|
|
553
553
|
return new protocol_http_1.HttpRequest({
|
|
554
554
|
protocol,
|
|
555
555
|
hostname,
|
|
@@ -569,10 +569,10 @@ const se_UpdateDataSetCommand = async (input, context) => {
|
|
|
569
569
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/data-sets/{DataSetId}";
|
|
570
570
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DataSetId", () => input.DataSetId, "{DataSetId}", false);
|
|
571
571
|
let body;
|
|
572
|
-
body = JSON.stringify({
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
});
|
|
572
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
573
|
+
Description: [],
|
|
574
|
+
Name: [],
|
|
575
|
+
}));
|
|
576
576
|
return new protocol_http_1.HttpRequest({
|
|
577
577
|
protocol,
|
|
578
578
|
hostname,
|
|
@@ -592,9 +592,9 @@ const se_UpdateEventActionCommand = async (input, context) => {
|
|
|
592
592
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/event-actions/{EventActionId}";
|
|
593
593
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EventActionId", () => input.EventActionId, "{EventActionId}", false);
|
|
594
594
|
let body;
|
|
595
|
-
body = JSON.stringify({
|
|
596
|
-
|
|
597
|
-
});
|
|
595
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
596
|
+
Action: (_) => (0, smithy_client_1._json)(_),
|
|
597
|
+
}));
|
|
598
598
|
return new protocol_http_1.HttpRequest({
|
|
599
599
|
protocol,
|
|
600
600
|
hostname,
|
|
@@ -616,10 +616,10 @@ const se_UpdateRevisionCommand = async (input, context) => {
|
|
|
616
616
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DataSetId", () => input.DataSetId, "{DataSetId}", false);
|
|
617
617
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RevisionId", () => input.RevisionId, "{RevisionId}", false);
|
|
618
618
|
let body;
|
|
619
|
-
body = JSON.stringify({
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
});
|
|
619
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
620
|
+
Comment: [],
|
|
621
|
+
Finalized: [],
|
|
622
|
+
}));
|
|
623
623
|
return new protocol_http_1.HttpRequest({
|
|
624
624
|
protocol,
|
|
625
625
|
hostname,
|
|
@@ -635,7 +635,7 @@ const de_CancelJobCommand = async (output, context) => {
|
|
|
635
635
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
636
636
|
return de_CancelJobCommandError(output, context);
|
|
637
637
|
}
|
|
638
|
-
const contents = map({
|
|
638
|
+
const contents = (0, smithy_client_1.map)({
|
|
639
639
|
$metadata: deserializeMetadata(output),
|
|
640
640
|
});
|
|
641
641
|
await collectBody(output.body, context);
|
|
@@ -666,10 +666,9 @@ const de_CancelJobCommandError = async (output, context) => {
|
|
|
666
666
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
667
667
|
default:
|
|
668
668
|
const parsedBody = parsedOutput.body;
|
|
669
|
-
|
|
669
|
+
return throwDefaultError({
|
|
670
670
|
output,
|
|
671
671
|
parsedBody,
|
|
672
|
-
exceptionCtor: DataExchangeServiceException_1.DataExchangeServiceException,
|
|
673
672
|
errorCode,
|
|
674
673
|
});
|
|
675
674
|
}
|
|
@@ -678,43 +677,24 @@ const de_CreateDataSetCommand = async (output, context) => {
|
|
|
678
677
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
679
678
|
return de_CreateDataSetCommandError(output, context);
|
|
680
679
|
}
|
|
681
|
-
const contents = map({
|
|
680
|
+
const contents = (0, smithy_client_1.map)({
|
|
682
681
|
$metadata: deserializeMetadata(output),
|
|
683
682
|
});
|
|
684
683
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
}
|
|
700
|
-
if (data.Name != null) {
|
|
701
|
-
contents.Name = (0, smithy_client_1.expectString)(data.Name);
|
|
702
|
-
}
|
|
703
|
-
if (data.Origin != null) {
|
|
704
|
-
contents.Origin = (0, smithy_client_1.expectString)(data.Origin);
|
|
705
|
-
}
|
|
706
|
-
if (data.OriginDetails != null) {
|
|
707
|
-
contents.OriginDetails = de_OriginDetails(data.OriginDetails, context);
|
|
708
|
-
}
|
|
709
|
-
if (data.SourceId != null) {
|
|
710
|
-
contents.SourceId = (0, smithy_client_1.expectString)(data.SourceId);
|
|
711
|
-
}
|
|
712
|
-
if (data.Tags != null) {
|
|
713
|
-
contents.Tags = de_MapOf__string(data.Tags, context);
|
|
714
|
-
}
|
|
715
|
-
if (data.UpdatedAt != null) {
|
|
716
|
-
contents.UpdatedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.UpdatedAt));
|
|
717
|
-
}
|
|
684
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
685
|
+
Arn: smithy_client_1.expectString,
|
|
686
|
+
AssetType: smithy_client_1.expectString,
|
|
687
|
+
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
688
|
+
Description: smithy_client_1.expectString,
|
|
689
|
+
Id: smithy_client_1.expectString,
|
|
690
|
+
Name: smithy_client_1.expectString,
|
|
691
|
+
Origin: smithy_client_1.expectString,
|
|
692
|
+
OriginDetails: smithy_client_1._json,
|
|
693
|
+
SourceId: smithy_client_1.expectString,
|
|
694
|
+
Tags: smithy_client_1._json,
|
|
695
|
+
UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
696
|
+
});
|
|
697
|
+
Object.assign(contents, doc);
|
|
718
698
|
return contents;
|
|
719
699
|
};
|
|
720
700
|
exports.de_CreateDataSetCommand = de_CreateDataSetCommand;
|
|
@@ -742,10 +722,9 @@ const de_CreateDataSetCommandError = async (output, context) => {
|
|
|
742
722
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
743
723
|
default:
|
|
744
724
|
const parsedBody = parsedOutput.body;
|
|
745
|
-
|
|
725
|
+
return throwDefaultError({
|
|
746
726
|
output,
|
|
747
727
|
parsedBody,
|
|
748
|
-
exceptionCtor: DataExchangeServiceException_1.DataExchangeServiceException,
|
|
749
728
|
errorCode,
|
|
750
729
|
});
|
|
751
730
|
}
|
|
@@ -754,28 +733,19 @@ const de_CreateEventActionCommand = async (output, context) => {
|
|
|
754
733
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
755
734
|
return de_CreateEventActionCommandError(output, context);
|
|
756
735
|
}
|
|
757
|
-
const contents = map({
|
|
736
|
+
const contents = (0, smithy_client_1.map)({
|
|
758
737
|
$metadata: deserializeMetadata(output),
|
|
759
738
|
});
|
|
760
739
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
if (data.Event != null) {
|
|
771
|
-
contents.Event = de_Event(data.Event, context);
|
|
772
|
-
}
|
|
773
|
-
if (data.Id != null) {
|
|
774
|
-
contents.Id = (0, smithy_client_1.expectString)(data.Id);
|
|
775
|
-
}
|
|
776
|
-
if (data.UpdatedAt != null) {
|
|
777
|
-
contents.UpdatedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.UpdatedAt));
|
|
778
|
-
}
|
|
740
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
741
|
+
Action: smithy_client_1._json,
|
|
742
|
+
Arn: smithy_client_1.expectString,
|
|
743
|
+
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
744
|
+
Event: smithy_client_1._json,
|
|
745
|
+
Id: smithy_client_1.expectString,
|
|
746
|
+
UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
747
|
+
});
|
|
748
|
+
Object.assign(contents, doc);
|
|
779
749
|
return contents;
|
|
780
750
|
};
|
|
781
751
|
exports.de_CreateEventActionCommand = de_CreateEventActionCommand;
|
|
@@ -803,10 +773,9 @@ const de_CreateEventActionCommandError = async (output, context) => {
|
|
|
803
773
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
804
774
|
default:
|
|
805
775
|
const parsedBody = parsedOutput.body;
|
|
806
|
-
|
|
776
|
+
return throwDefaultError({
|
|
807
777
|
output,
|
|
808
778
|
parsedBody,
|
|
809
|
-
exceptionCtor: DataExchangeServiceException_1.DataExchangeServiceException,
|
|
810
779
|
errorCode,
|
|
811
780
|
});
|
|
812
781
|
}
|
|
@@ -815,34 +784,21 @@ const de_CreateJobCommand = async (output, context) => {
|
|
|
815
784
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
816
785
|
return de_CreateJobCommandError(output, context);
|
|
817
786
|
}
|
|
818
|
-
const contents = map({
|
|
787
|
+
const contents = (0, smithy_client_1.map)({
|
|
819
788
|
$metadata: deserializeMetadata(output),
|
|
820
789
|
});
|
|
821
790
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
}
|
|
834
|
-
if (data.Id != null) {
|
|
835
|
-
contents.Id = (0, smithy_client_1.expectString)(data.Id);
|
|
836
|
-
}
|
|
837
|
-
if (data.State != null) {
|
|
838
|
-
contents.State = (0, smithy_client_1.expectString)(data.State);
|
|
839
|
-
}
|
|
840
|
-
if (data.Type != null) {
|
|
841
|
-
contents.Type = (0, smithy_client_1.expectString)(data.Type);
|
|
842
|
-
}
|
|
843
|
-
if (data.UpdatedAt != null) {
|
|
844
|
-
contents.UpdatedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.UpdatedAt));
|
|
845
|
-
}
|
|
791
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
792
|
+
Arn: smithy_client_1.expectString,
|
|
793
|
+
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
794
|
+
Details: (_) => de_ResponseDetails(_, context),
|
|
795
|
+
Errors: (_) => de_ListOfJobError(_, context),
|
|
796
|
+
Id: smithy_client_1.expectString,
|
|
797
|
+
State: smithy_client_1.expectString,
|
|
798
|
+
Type: smithy_client_1.expectString,
|
|
799
|
+
UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
800
|
+
});
|
|
801
|
+
Object.assign(contents, doc);
|
|
846
802
|
return contents;
|
|
847
803
|
};
|
|
848
804
|
exports.de_CreateJobCommand = de_CreateJobCommand;
|
|
@@ -873,10 +829,9 @@ const de_CreateJobCommandError = async (output, context) => {
|
|
|
873
829
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
874
830
|
default:
|
|
875
831
|
const parsedBody = parsedOutput.body;
|
|
876
|
-
|
|
832
|
+
return throwDefaultError({
|
|
877
833
|
output,
|
|
878
834
|
parsedBody,
|
|
879
|
-
exceptionCtor: DataExchangeServiceException_1.DataExchangeServiceException,
|
|
880
835
|
errorCode,
|
|
881
836
|
});
|
|
882
837
|
}
|
|
@@ -885,46 +840,25 @@ const de_CreateRevisionCommand = async (output, context) => {
|
|
|
885
840
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
886
841
|
return de_CreateRevisionCommandError(output, context);
|
|
887
842
|
}
|
|
888
|
-
const contents = map({
|
|
843
|
+
const contents = (0, smithy_client_1.map)({
|
|
889
844
|
$metadata: deserializeMetadata(output),
|
|
890
845
|
});
|
|
891
846
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
if (data.Id != null) {
|
|
908
|
-
contents.Id = (0, smithy_client_1.expectString)(data.Id);
|
|
909
|
-
}
|
|
910
|
-
if (data.RevocationComment != null) {
|
|
911
|
-
contents.RevocationComment = (0, smithy_client_1.expectString)(data.RevocationComment);
|
|
912
|
-
}
|
|
913
|
-
if (data.Revoked != null) {
|
|
914
|
-
contents.Revoked = (0, smithy_client_1.expectBoolean)(data.Revoked);
|
|
915
|
-
}
|
|
916
|
-
if (data.RevokedAt != null) {
|
|
917
|
-
contents.RevokedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.RevokedAt));
|
|
918
|
-
}
|
|
919
|
-
if (data.SourceId != null) {
|
|
920
|
-
contents.SourceId = (0, smithy_client_1.expectString)(data.SourceId);
|
|
921
|
-
}
|
|
922
|
-
if (data.Tags != null) {
|
|
923
|
-
contents.Tags = de_MapOf__string(data.Tags, context);
|
|
924
|
-
}
|
|
925
|
-
if (data.UpdatedAt != null) {
|
|
926
|
-
contents.UpdatedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.UpdatedAt));
|
|
927
|
-
}
|
|
847
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
848
|
+
Arn: smithy_client_1.expectString,
|
|
849
|
+
Comment: smithy_client_1.expectString,
|
|
850
|
+
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
851
|
+
DataSetId: smithy_client_1.expectString,
|
|
852
|
+
Finalized: smithy_client_1.expectBoolean,
|
|
853
|
+
Id: smithy_client_1.expectString,
|
|
854
|
+
RevocationComment: smithy_client_1.expectString,
|
|
855
|
+
Revoked: smithy_client_1.expectBoolean,
|
|
856
|
+
RevokedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
857
|
+
SourceId: smithy_client_1.expectString,
|
|
858
|
+
Tags: smithy_client_1._json,
|
|
859
|
+
UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
860
|
+
});
|
|
861
|
+
Object.assign(contents, doc);
|
|
928
862
|
return contents;
|
|
929
863
|
};
|
|
930
864
|
exports.de_CreateRevisionCommand = de_CreateRevisionCommand;
|
|
@@ -952,10 +886,9 @@ const de_CreateRevisionCommandError = async (output, context) => {
|
|
|
952
886
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
953
887
|
default:
|
|
954
888
|
const parsedBody = parsedOutput.body;
|
|
955
|
-
|
|
889
|
+
return throwDefaultError({
|
|
956
890
|
output,
|
|
957
891
|
parsedBody,
|
|
958
|
-
exceptionCtor: DataExchangeServiceException_1.DataExchangeServiceException,
|
|
959
892
|
errorCode,
|
|
960
893
|
});
|
|
961
894
|
}
|
|
@@ -964,7 +897,7 @@ const de_DeleteAssetCommand = async (output, context) => {
|
|
|
964
897
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
965
898
|
return de_DeleteAssetCommandError(output, context);
|
|
966
899
|
}
|
|
967
|
-
const contents = map({
|
|
900
|
+
const contents = (0, smithy_client_1.map)({
|
|
968
901
|
$metadata: deserializeMetadata(output),
|
|
969
902
|
});
|
|
970
903
|
await collectBody(output.body, context);
|
|
@@ -998,10 +931,9 @@ const de_DeleteAssetCommandError = async (output, context) => {
|
|
|
998
931
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
999
932
|
default:
|
|
1000
933
|
const parsedBody = parsedOutput.body;
|
|
1001
|
-
|
|
934
|
+
return throwDefaultError({
|
|
1002
935
|
output,
|
|
1003
936
|
parsedBody,
|
|
1004
|
-
exceptionCtor: DataExchangeServiceException_1.DataExchangeServiceException,
|
|
1005
937
|
errorCode,
|
|
1006
938
|
});
|
|
1007
939
|
}
|
|
@@ -1010,7 +942,7 @@ const de_DeleteDataSetCommand = async (output, context) => {
|
|
|
1010
942
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1011
943
|
return de_DeleteDataSetCommandError(output, context);
|
|
1012
944
|
}
|
|
1013
|
-
const contents = map({
|
|
945
|
+
const contents = (0, smithy_client_1.map)({
|
|
1014
946
|
$metadata: deserializeMetadata(output),
|
|
1015
947
|
});
|
|
1016
948
|
await collectBody(output.body, context);
|
|
@@ -1044,10 +976,9 @@ const de_DeleteDataSetCommandError = async (output, context) => {
|
|
|
1044
976
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1045
977
|
default:
|
|
1046
978
|
const parsedBody = parsedOutput.body;
|
|
1047
|
-
|
|
979
|
+
return throwDefaultError({
|
|
1048
980
|
output,
|
|
1049
981
|
parsedBody,
|
|
1050
|
-
exceptionCtor: DataExchangeServiceException_1.DataExchangeServiceException,
|
|
1051
982
|
errorCode,
|
|
1052
983
|
});
|
|
1053
984
|
}
|
|
@@ -1056,7 +987,7 @@ const de_DeleteEventActionCommand = async (output, context) => {
|
|
|
1056
987
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1057
988
|
return de_DeleteEventActionCommandError(output, context);
|
|
1058
989
|
}
|
|
1059
|
-
const contents = map({
|
|
990
|
+
const contents = (0, smithy_client_1.map)({
|
|
1060
991
|
$metadata: deserializeMetadata(output),
|
|
1061
992
|
});
|
|
1062
993
|
await collectBody(output.body, context);
|
|
@@ -1084,10 +1015,9 @@ const de_DeleteEventActionCommandError = async (output, context) => {
|
|
|
1084
1015
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1085
1016
|
default:
|
|
1086
1017
|
const parsedBody = parsedOutput.body;
|
|
1087
|
-
|
|
1018
|
+
return throwDefaultError({
|
|
1088
1019
|
output,
|
|
1089
1020
|
parsedBody,
|
|
1090
|
-
exceptionCtor: DataExchangeServiceException_1.DataExchangeServiceException,
|
|
1091
1021
|
errorCode,
|
|
1092
1022
|
});
|
|
1093
1023
|
}
|
|
@@ -1096,7 +1026,7 @@ const de_DeleteRevisionCommand = async (output, context) => {
|
|
|
1096
1026
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1097
1027
|
return de_DeleteRevisionCommandError(output, context);
|
|
1098
1028
|
}
|
|
1099
|
-
const contents = map({
|
|
1029
|
+
const contents = (0, smithy_client_1.map)({
|
|
1100
1030
|
$metadata: deserializeMetadata(output),
|
|
1101
1031
|
});
|
|
1102
1032
|
await collectBody(output.body, context);
|
|
@@ -1130,10 +1060,9 @@ const de_DeleteRevisionCommandError = async (output, context) => {
|
|
|
1130
1060
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1131
1061
|
default:
|
|
1132
1062
|
const parsedBody = parsedOutput.body;
|
|
1133
|
-
|
|
1063
|
+
return throwDefaultError({
|
|
1134
1064
|
output,
|
|
1135
1065
|
parsedBody,
|
|
1136
|
-
exceptionCtor: DataExchangeServiceException_1.DataExchangeServiceException,
|
|
1137
1066
|
errorCode,
|
|
1138
1067
|
});
|
|
1139
1068
|
}
|
|
@@ -1142,40 +1071,23 @@ const de_GetAssetCommand = async (output, context) => {
|
|
|
1142
1071
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1143
1072
|
return de_GetAssetCommandError(output, context);
|
|
1144
1073
|
}
|
|
1145
|
-
const contents = map({
|
|
1074
|
+
const contents = (0, smithy_client_1.map)({
|
|
1146
1075
|
$metadata: deserializeMetadata(output),
|
|
1147
1076
|
});
|
|
1148
1077
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
}
|
|
1161
|
-
|
|
1162
|
-
contents.DataSetId = (0, smithy_client_1.expectString)(data.DataSetId);
|
|
1163
|
-
}
|
|
1164
|
-
if (data.Id != null) {
|
|
1165
|
-
contents.Id = (0, smithy_client_1.expectString)(data.Id);
|
|
1166
|
-
}
|
|
1167
|
-
if (data.Name != null) {
|
|
1168
|
-
contents.Name = (0, smithy_client_1.expectString)(data.Name);
|
|
1169
|
-
}
|
|
1170
|
-
if (data.RevisionId != null) {
|
|
1171
|
-
contents.RevisionId = (0, smithy_client_1.expectString)(data.RevisionId);
|
|
1172
|
-
}
|
|
1173
|
-
if (data.SourceId != null) {
|
|
1174
|
-
contents.SourceId = (0, smithy_client_1.expectString)(data.SourceId);
|
|
1175
|
-
}
|
|
1176
|
-
if (data.UpdatedAt != null) {
|
|
1177
|
-
contents.UpdatedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.UpdatedAt));
|
|
1178
|
-
}
|
|
1078
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1079
|
+
Arn: smithy_client_1.expectString,
|
|
1080
|
+
AssetDetails: (_) => de_AssetDetails(_, context),
|
|
1081
|
+
AssetType: smithy_client_1.expectString,
|
|
1082
|
+
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1083
|
+
DataSetId: smithy_client_1.expectString,
|
|
1084
|
+
Id: smithy_client_1.expectString,
|
|
1085
|
+
Name: smithy_client_1.expectString,
|
|
1086
|
+
RevisionId: smithy_client_1.expectString,
|
|
1087
|
+
SourceId: smithy_client_1.expectString,
|
|
1088
|
+
UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1089
|
+
});
|
|
1090
|
+
Object.assign(contents, doc);
|
|
1179
1091
|
return contents;
|
|
1180
1092
|
};
|
|
1181
1093
|
exports.de_GetAssetCommand = de_GetAssetCommand;
|
|
@@ -1200,10 +1112,9 @@ const de_GetAssetCommandError = async (output, context) => {
|
|
|
1200
1112
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1201
1113
|
default:
|
|
1202
1114
|
const parsedBody = parsedOutput.body;
|
|
1203
|
-
|
|
1115
|
+
return throwDefaultError({
|
|
1204
1116
|
output,
|
|
1205
1117
|
parsedBody,
|
|
1206
|
-
exceptionCtor: DataExchangeServiceException_1.DataExchangeServiceException,
|
|
1207
1118
|
errorCode,
|
|
1208
1119
|
});
|
|
1209
1120
|
}
|
|
@@ -1212,43 +1123,24 @@ const de_GetDataSetCommand = async (output, context) => {
|
|
|
1212
1123
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1213
1124
|
return de_GetDataSetCommandError(output, context);
|
|
1214
1125
|
}
|
|
1215
|
-
const contents = map({
|
|
1126
|
+
const contents = (0, smithy_client_1.map)({
|
|
1216
1127
|
$metadata: deserializeMetadata(output),
|
|
1217
1128
|
});
|
|
1218
1129
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
}
|
|
1234
|
-
if (data.Name != null) {
|
|
1235
|
-
contents.Name = (0, smithy_client_1.expectString)(data.Name);
|
|
1236
|
-
}
|
|
1237
|
-
if (data.Origin != null) {
|
|
1238
|
-
contents.Origin = (0, smithy_client_1.expectString)(data.Origin);
|
|
1239
|
-
}
|
|
1240
|
-
if (data.OriginDetails != null) {
|
|
1241
|
-
contents.OriginDetails = de_OriginDetails(data.OriginDetails, context);
|
|
1242
|
-
}
|
|
1243
|
-
if (data.SourceId != null) {
|
|
1244
|
-
contents.SourceId = (0, smithy_client_1.expectString)(data.SourceId);
|
|
1245
|
-
}
|
|
1246
|
-
if (data.Tags != null) {
|
|
1247
|
-
contents.Tags = de_MapOf__string(data.Tags, context);
|
|
1248
|
-
}
|
|
1249
|
-
if (data.UpdatedAt != null) {
|
|
1250
|
-
contents.UpdatedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.UpdatedAt));
|
|
1251
|
-
}
|
|
1130
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1131
|
+
Arn: smithy_client_1.expectString,
|
|
1132
|
+
AssetType: smithy_client_1.expectString,
|
|
1133
|
+
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1134
|
+
Description: smithy_client_1.expectString,
|
|
1135
|
+
Id: smithy_client_1.expectString,
|
|
1136
|
+
Name: smithy_client_1.expectString,
|
|
1137
|
+
Origin: smithy_client_1.expectString,
|
|
1138
|
+
OriginDetails: smithy_client_1._json,
|
|
1139
|
+
SourceId: smithy_client_1.expectString,
|
|
1140
|
+
Tags: smithy_client_1._json,
|
|
1141
|
+
UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1142
|
+
});
|
|
1143
|
+
Object.assign(contents, doc);
|
|
1252
1144
|
return contents;
|
|
1253
1145
|
};
|
|
1254
1146
|
exports.de_GetDataSetCommand = de_GetDataSetCommand;
|
|
@@ -1273,10 +1165,9 @@ const de_GetDataSetCommandError = async (output, context) => {
|
|
|
1273
1165
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1274
1166
|
default:
|
|
1275
1167
|
const parsedBody = parsedOutput.body;
|
|
1276
|
-
|
|
1168
|
+
return throwDefaultError({
|
|
1277
1169
|
output,
|
|
1278
1170
|
parsedBody,
|
|
1279
|
-
exceptionCtor: DataExchangeServiceException_1.DataExchangeServiceException,
|
|
1280
1171
|
errorCode,
|
|
1281
1172
|
});
|
|
1282
1173
|
}
|
|
@@ -1285,28 +1176,19 @@ const de_GetEventActionCommand = async (output, context) => {
|
|
|
1285
1176
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1286
1177
|
return de_GetEventActionCommandError(output, context);
|
|
1287
1178
|
}
|
|
1288
|
-
const contents = map({
|
|
1179
|
+
const contents = (0, smithy_client_1.map)({
|
|
1289
1180
|
$metadata: deserializeMetadata(output),
|
|
1290
1181
|
});
|
|
1291
1182
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
if (data.Event != null) {
|
|
1302
|
-
contents.Event = de_Event(data.Event, context);
|
|
1303
|
-
}
|
|
1304
|
-
if (data.Id != null) {
|
|
1305
|
-
contents.Id = (0, smithy_client_1.expectString)(data.Id);
|
|
1306
|
-
}
|
|
1307
|
-
if (data.UpdatedAt != null) {
|
|
1308
|
-
contents.UpdatedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.UpdatedAt));
|
|
1309
|
-
}
|
|
1183
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1184
|
+
Action: smithy_client_1._json,
|
|
1185
|
+
Arn: smithy_client_1.expectString,
|
|
1186
|
+
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1187
|
+
Event: smithy_client_1._json,
|
|
1188
|
+
Id: smithy_client_1.expectString,
|
|
1189
|
+
UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1190
|
+
});
|
|
1191
|
+
Object.assign(contents, doc);
|
|
1310
1192
|
return contents;
|
|
1311
1193
|
};
|
|
1312
1194
|
exports.de_GetEventActionCommand = de_GetEventActionCommand;
|
|
@@ -1331,10 +1213,9 @@ const de_GetEventActionCommandError = async (output, context) => {
|
|
|
1331
1213
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1332
1214
|
default:
|
|
1333
1215
|
const parsedBody = parsedOutput.body;
|
|
1334
|
-
|
|
1216
|
+
return throwDefaultError({
|
|
1335
1217
|
output,
|
|
1336
1218
|
parsedBody,
|
|
1337
|
-
exceptionCtor: DataExchangeServiceException_1.DataExchangeServiceException,
|
|
1338
1219
|
errorCode,
|
|
1339
1220
|
});
|
|
1340
1221
|
}
|
|
@@ -1343,34 +1224,21 @@ const de_GetJobCommand = async (output, context) => {
|
|
|
1343
1224
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1344
1225
|
return de_GetJobCommandError(output, context);
|
|
1345
1226
|
}
|
|
1346
|
-
const contents = map({
|
|
1227
|
+
const contents = (0, smithy_client_1.map)({
|
|
1347
1228
|
$metadata: deserializeMetadata(output),
|
|
1348
1229
|
});
|
|
1349
1230
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
}
|
|
1362
|
-
if (data.Id != null) {
|
|
1363
|
-
contents.Id = (0, smithy_client_1.expectString)(data.Id);
|
|
1364
|
-
}
|
|
1365
|
-
if (data.State != null) {
|
|
1366
|
-
contents.State = (0, smithy_client_1.expectString)(data.State);
|
|
1367
|
-
}
|
|
1368
|
-
if (data.Type != null) {
|
|
1369
|
-
contents.Type = (0, smithy_client_1.expectString)(data.Type);
|
|
1370
|
-
}
|
|
1371
|
-
if (data.UpdatedAt != null) {
|
|
1372
|
-
contents.UpdatedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.UpdatedAt));
|
|
1373
|
-
}
|
|
1231
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1232
|
+
Arn: smithy_client_1.expectString,
|
|
1233
|
+
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1234
|
+
Details: (_) => de_ResponseDetails(_, context),
|
|
1235
|
+
Errors: (_) => de_ListOfJobError(_, context),
|
|
1236
|
+
Id: smithy_client_1.expectString,
|
|
1237
|
+
State: smithy_client_1.expectString,
|
|
1238
|
+
Type: smithy_client_1.expectString,
|
|
1239
|
+
UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1240
|
+
});
|
|
1241
|
+
Object.assign(contents, doc);
|
|
1374
1242
|
return contents;
|
|
1375
1243
|
};
|
|
1376
1244
|
exports.de_GetJobCommand = de_GetJobCommand;
|
|
@@ -1395,10 +1263,9 @@ const de_GetJobCommandError = async (output, context) => {
|
|
|
1395
1263
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1396
1264
|
default:
|
|
1397
1265
|
const parsedBody = parsedOutput.body;
|
|
1398
|
-
|
|
1266
|
+
return throwDefaultError({
|
|
1399
1267
|
output,
|
|
1400
1268
|
parsedBody,
|
|
1401
|
-
exceptionCtor: DataExchangeServiceException_1.DataExchangeServiceException,
|
|
1402
1269
|
errorCode,
|
|
1403
1270
|
});
|
|
1404
1271
|
}
|
|
@@ -1407,46 +1274,25 @@ const de_GetRevisionCommand = async (output, context) => {
|
|
|
1407
1274
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1408
1275
|
return de_GetRevisionCommandError(output, context);
|
|
1409
1276
|
}
|
|
1410
|
-
const contents = map({
|
|
1277
|
+
const contents = (0, smithy_client_1.map)({
|
|
1411
1278
|
$metadata: deserializeMetadata(output),
|
|
1412
1279
|
});
|
|
1413
1280
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
if (data.Id != null) {
|
|
1430
|
-
contents.Id = (0, smithy_client_1.expectString)(data.Id);
|
|
1431
|
-
}
|
|
1432
|
-
if (data.RevocationComment != null) {
|
|
1433
|
-
contents.RevocationComment = (0, smithy_client_1.expectString)(data.RevocationComment);
|
|
1434
|
-
}
|
|
1435
|
-
if (data.Revoked != null) {
|
|
1436
|
-
contents.Revoked = (0, smithy_client_1.expectBoolean)(data.Revoked);
|
|
1437
|
-
}
|
|
1438
|
-
if (data.RevokedAt != null) {
|
|
1439
|
-
contents.RevokedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.RevokedAt));
|
|
1440
|
-
}
|
|
1441
|
-
if (data.SourceId != null) {
|
|
1442
|
-
contents.SourceId = (0, smithy_client_1.expectString)(data.SourceId);
|
|
1443
|
-
}
|
|
1444
|
-
if (data.Tags != null) {
|
|
1445
|
-
contents.Tags = de_MapOf__string(data.Tags, context);
|
|
1446
|
-
}
|
|
1447
|
-
if (data.UpdatedAt != null) {
|
|
1448
|
-
contents.UpdatedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.UpdatedAt));
|
|
1449
|
-
}
|
|
1281
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1282
|
+
Arn: smithy_client_1.expectString,
|
|
1283
|
+
Comment: smithy_client_1.expectString,
|
|
1284
|
+
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1285
|
+
DataSetId: smithy_client_1.expectString,
|
|
1286
|
+
Finalized: smithy_client_1.expectBoolean,
|
|
1287
|
+
Id: smithy_client_1.expectString,
|
|
1288
|
+
RevocationComment: smithy_client_1.expectString,
|
|
1289
|
+
Revoked: smithy_client_1.expectBoolean,
|
|
1290
|
+
RevokedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1291
|
+
SourceId: smithy_client_1.expectString,
|
|
1292
|
+
Tags: smithy_client_1._json,
|
|
1293
|
+
UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1294
|
+
});
|
|
1295
|
+
Object.assign(contents, doc);
|
|
1450
1296
|
return contents;
|
|
1451
1297
|
};
|
|
1452
1298
|
exports.de_GetRevisionCommand = de_GetRevisionCommand;
|
|
@@ -1471,10 +1317,9 @@ const de_GetRevisionCommandError = async (output, context) => {
|
|
|
1471
1317
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1472
1318
|
default:
|
|
1473
1319
|
const parsedBody = parsedOutput.body;
|
|
1474
|
-
|
|
1320
|
+
return throwDefaultError({
|
|
1475
1321
|
output,
|
|
1476
1322
|
parsedBody,
|
|
1477
|
-
exceptionCtor: DataExchangeServiceException_1.DataExchangeServiceException,
|
|
1478
1323
|
errorCode,
|
|
1479
1324
|
});
|
|
1480
1325
|
}
|
|
@@ -1483,16 +1328,15 @@ const de_ListDataSetRevisionsCommand = async (output, context) => {
|
|
|
1483
1328
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1484
1329
|
return de_ListDataSetRevisionsCommandError(output, context);
|
|
1485
1330
|
}
|
|
1486
|
-
const contents = map({
|
|
1331
|
+
const contents = (0, smithy_client_1.map)({
|
|
1487
1332
|
$metadata: deserializeMetadata(output),
|
|
1488
1333
|
});
|
|
1489
1334
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
}
|
|
1335
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1336
|
+
NextToken: smithy_client_1.expectString,
|
|
1337
|
+
Revisions: (_) => de_ListOfRevisionEntry(_, context),
|
|
1338
|
+
});
|
|
1339
|
+
Object.assign(contents, doc);
|
|
1496
1340
|
return contents;
|
|
1497
1341
|
};
|
|
1498
1342
|
exports.de_ListDataSetRevisionsCommand = de_ListDataSetRevisionsCommand;
|
|
@@ -1517,10 +1361,9 @@ const de_ListDataSetRevisionsCommandError = async (output, context) => {
|
|
|
1517
1361
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1518
1362
|
default:
|
|
1519
1363
|
const parsedBody = parsedOutput.body;
|
|
1520
|
-
|
|
1364
|
+
return throwDefaultError({
|
|
1521
1365
|
output,
|
|
1522
1366
|
parsedBody,
|
|
1523
|
-
exceptionCtor: DataExchangeServiceException_1.DataExchangeServiceException,
|
|
1524
1367
|
errorCode,
|
|
1525
1368
|
});
|
|
1526
1369
|
}
|
|
@@ -1529,16 +1372,15 @@ const de_ListDataSetsCommand = async (output, context) => {
|
|
|
1529
1372
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1530
1373
|
return de_ListDataSetsCommandError(output, context);
|
|
1531
1374
|
}
|
|
1532
|
-
const contents = map({
|
|
1375
|
+
const contents = (0, smithy_client_1.map)({
|
|
1533
1376
|
$metadata: deserializeMetadata(output),
|
|
1534
1377
|
});
|
|
1535
1378
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
}
|
|
1379
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1380
|
+
DataSets: (_) => de_ListOfDataSetEntry(_, context),
|
|
1381
|
+
NextToken: smithy_client_1.expectString,
|
|
1382
|
+
});
|
|
1383
|
+
Object.assign(contents, doc);
|
|
1542
1384
|
return contents;
|
|
1543
1385
|
};
|
|
1544
1386
|
exports.de_ListDataSetsCommand = de_ListDataSetsCommand;
|
|
@@ -1563,10 +1405,9 @@ const de_ListDataSetsCommandError = async (output, context) => {
|
|
|
1563
1405
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1564
1406
|
default:
|
|
1565
1407
|
const parsedBody = parsedOutput.body;
|
|
1566
|
-
|
|
1408
|
+
return throwDefaultError({
|
|
1567
1409
|
output,
|
|
1568
1410
|
parsedBody,
|
|
1569
|
-
exceptionCtor: DataExchangeServiceException_1.DataExchangeServiceException,
|
|
1570
1411
|
errorCode,
|
|
1571
1412
|
});
|
|
1572
1413
|
}
|
|
@@ -1575,16 +1416,15 @@ const de_ListEventActionsCommand = async (output, context) => {
|
|
|
1575
1416
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1576
1417
|
return de_ListEventActionsCommandError(output, context);
|
|
1577
1418
|
}
|
|
1578
|
-
const contents = map({
|
|
1419
|
+
const contents = (0, smithy_client_1.map)({
|
|
1579
1420
|
$metadata: deserializeMetadata(output),
|
|
1580
1421
|
});
|
|
1581
1422
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
}
|
|
1423
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1424
|
+
EventActions: (_) => de_ListOfEventActionEntry(_, context),
|
|
1425
|
+
NextToken: smithy_client_1.expectString,
|
|
1426
|
+
});
|
|
1427
|
+
Object.assign(contents, doc);
|
|
1588
1428
|
return contents;
|
|
1589
1429
|
};
|
|
1590
1430
|
exports.de_ListEventActionsCommand = de_ListEventActionsCommand;
|
|
@@ -1609,10 +1449,9 @@ const de_ListEventActionsCommandError = async (output, context) => {
|
|
|
1609
1449
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1610
1450
|
default:
|
|
1611
1451
|
const parsedBody = parsedOutput.body;
|
|
1612
|
-
|
|
1452
|
+
return throwDefaultError({
|
|
1613
1453
|
output,
|
|
1614
1454
|
parsedBody,
|
|
1615
|
-
exceptionCtor: DataExchangeServiceException_1.DataExchangeServiceException,
|
|
1616
1455
|
errorCode,
|
|
1617
1456
|
});
|
|
1618
1457
|
}
|
|
@@ -1621,16 +1460,15 @@ const de_ListJobsCommand = async (output, context) => {
|
|
|
1621
1460
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1622
1461
|
return de_ListJobsCommandError(output, context);
|
|
1623
1462
|
}
|
|
1624
|
-
const contents = map({
|
|
1463
|
+
const contents = (0, smithy_client_1.map)({
|
|
1625
1464
|
$metadata: deserializeMetadata(output),
|
|
1626
1465
|
});
|
|
1627
1466
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
}
|
|
1467
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1468
|
+
Jobs: (_) => de_ListOfJobEntry(_, context),
|
|
1469
|
+
NextToken: smithy_client_1.expectString,
|
|
1470
|
+
});
|
|
1471
|
+
Object.assign(contents, doc);
|
|
1634
1472
|
return contents;
|
|
1635
1473
|
};
|
|
1636
1474
|
exports.de_ListJobsCommand = de_ListJobsCommand;
|
|
@@ -1655,10 +1493,9 @@ const de_ListJobsCommandError = async (output, context) => {
|
|
|
1655
1493
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1656
1494
|
default:
|
|
1657
1495
|
const parsedBody = parsedOutput.body;
|
|
1658
|
-
|
|
1496
|
+
return throwDefaultError({
|
|
1659
1497
|
output,
|
|
1660
1498
|
parsedBody,
|
|
1661
|
-
exceptionCtor: DataExchangeServiceException_1.DataExchangeServiceException,
|
|
1662
1499
|
errorCode,
|
|
1663
1500
|
});
|
|
1664
1501
|
}
|
|
@@ -1667,16 +1504,15 @@ const de_ListRevisionAssetsCommand = async (output, context) => {
|
|
|
1667
1504
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1668
1505
|
return de_ListRevisionAssetsCommandError(output, context);
|
|
1669
1506
|
}
|
|
1670
|
-
const contents = map({
|
|
1507
|
+
const contents = (0, smithy_client_1.map)({
|
|
1671
1508
|
$metadata: deserializeMetadata(output),
|
|
1672
1509
|
});
|
|
1673
1510
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
}
|
|
1511
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1512
|
+
Assets: (_) => de_ListOfAssetEntry(_, context),
|
|
1513
|
+
NextToken: smithy_client_1.expectString,
|
|
1514
|
+
});
|
|
1515
|
+
Object.assign(contents, doc);
|
|
1680
1516
|
return contents;
|
|
1681
1517
|
};
|
|
1682
1518
|
exports.de_ListRevisionAssetsCommand = de_ListRevisionAssetsCommand;
|
|
@@ -1701,10 +1537,9 @@ const de_ListRevisionAssetsCommandError = async (output, context) => {
|
|
|
1701
1537
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1702
1538
|
default:
|
|
1703
1539
|
const parsedBody = parsedOutput.body;
|
|
1704
|
-
|
|
1540
|
+
return throwDefaultError({
|
|
1705
1541
|
output,
|
|
1706
1542
|
parsedBody,
|
|
1707
|
-
exceptionCtor: DataExchangeServiceException_1.DataExchangeServiceException,
|
|
1708
1543
|
errorCode,
|
|
1709
1544
|
});
|
|
1710
1545
|
}
|
|
@@ -1713,13 +1548,14 @@ const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
1713
1548
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1714
1549
|
return de_ListTagsForResourceCommandError(output, context);
|
|
1715
1550
|
}
|
|
1716
|
-
const contents = map({
|
|
1551
|
+
const contents = (0, smithy_client_1.map)({
|
|
1717
1552
|
$metadata: deserializeMetadata(output),
|
|
1718
1553
|
});
|
|
1719
1554
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
}
|
|
1555
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1556
|
+
Tags: [, smithy_client_1._json, `tags`],
|
|
1557
|
+
});
|
|
1558
|
+
Object.assign(contents, doc);
|
|
1723
1559
|
return contents;
|
|
1724
1560
|
};
|
|
1725
1561
|
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
@@ -1730,10 +1566,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
1730
1566
|
};
|
|
1731
1567
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1732
1568
|
const parsedBody = parsedOutput.body;
|
|
1733
|
-
|
|
1569
|
+
return throwDefaultError({
|
|
1734
1570
|
output,
|
|
1735
1571
|
parsedBody,
|
|
1736
|
-
exceptionCtor: DataExchangeServiceException_1.DataExchangeServiceException,
|
|
1737
1572
|
errorCode,
|
|
1738
1573
|
});
|
|
1739
1574
|
};
|
|
@@ -1741,43 +1576,24 @@ const de_RevokeRevisionCommand = async (output, context) => {
|
|
|
1741
1576
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1742
1577
|
return de_RevokeRevisionCommandError(output, context);
|
|
1743
1578
|
}
|
|
1744
|
-
const contents = map({
|
|
1579
|
+
const contents = (0, smithy_client_1.map)({
|
|
1745
1580
|
$metadata: deserializeMetadata(output),
|
|
1746
1581
|
});
|
|
1747
1582
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
}
|
|
1763
|
-
if (data.Id != null) {
|
|
1764
|
-
contents.Id = (0, smithy_client_1.expectString)(data.Id);
|
|
1765
|
-
}
|
|
1766
|
-
if (data.RevocationComment != null) {
|
|
1767
|
-
contents.RevocationComment = (0, smithy_client_1.expectString)(data.RevocationComment);
|
|
1768
|
-
}
|
|
1769
|
-
if (data.Revoked != null) {
|
|
1770
|
-
contents.Revoked = (0, smithy_client_1.expectBoolean)(data.Revoked);
|
|
1771
|
-
}
|
|
1772
|
-
if (data.RevokedAt != null) {
|
|
1773
|
-
contents.RevokedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.RevokedAt));
|
|
1774
|
-
}
|
|
1775
|
-
if (data.SourceId != null) {
|
|
1776
|
-
contents.SourceId = (0, smithy_client_1.expectString)(data.SourceId);
|
|
1777
|
-
}
|
|
1778
|
-
if (data.UpdatedAt != null) {
|
|
1779
|
-
contents.UpdatedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.UpdatedAt));
|
|
1780
|
-
}
|
|
1583
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1584
|
+
Arn: smithy_client_1.expectString,
|
|
1585
|
+
Comment: smithy_client_1.expectString,
|
|
1586
|
+
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1587
|
+
DataSetId: smithy_client_1.expectString,
|
|
1588
|
+
Finalized: smithy_client_1.expectBoolean,
|
|
1589
|
+
Id: smithy_client_1.expectString,
|
|
1590
|
+
RevocationComment: smithy_client_1.expectString,
|
|
1591
|
+
Revoked: smithy_client_1.expectBoolean,
|
|
1592
|
+
RevokedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1593
|
+
SourceId: smithy_client_1.expectString,
|
|
1594
|
+
UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1595
|
+
});
|
|
1596
|
+
Object.assign(contents, doc);
|
|
1781
1597
|
return contents;
|
|
1782
1598
|
};
|
|
1783
1599
|
exports.de_RevokeRevisionCommand = de_RevokeRevisionCommand;
|
|
@@ -1808,10 +1624,9 @@ const de_RevokeRevisionCommandError = async (output, context) => {
|
|
|
1808
1624
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1809
1625
|
default:
|
|
1810
1626
|
const parsedBody = parsedOutput.body;
|
|
1811
|
-
|
|
1627
|
+
return throwDefaultError({
|
|
1812
1628
|
output,
|
|
1813
1629
|
parsedBody,
|
|
1814
|
-
exceptionCtor: DataExchangeServiceException_1.DataExchangeServiceException,
|
|
1815
1630
|
errorCode,
|
|
1816
1631
|
});
|
|
1817
1632
|
}
|
|
@@ -1820,7 +1635,7 @@ const de_SendApiAssetCommand = async (output, context) => {
|
|
|
1820
1635
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1821
1636
|
return de_SendApiAssetCommandError(output, context);
|
|
1822
1637
|
}
|
|
1823
|
-
const contents = map({
|
|
1638
|
+
const contents = (0, smithy_client_1.map)({
|
|
1824
1639
|
$metadata: deserializeMetadata(output),
|
|
1825
1640
|
ResponseHeaders: [
|
|
1826
1641
|
,
|
|
@@ -1861,10 +1676,9 @@ const de_SendApiAssetCommandError = async (output, context) => {
|
|
|
1861
1676
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1862
1677
|
default:
|
|
1863
1678
|
const parsedBody = parsedOutput.body;
|
|
1864
|
-
|
|
1679
|
+
return throwDefaultError({
|
|
1865
1680
|
output,
|
|
1866
1681
|
parsedBody,
|
|
1867
|
-
exceptionCtor: DataExchangeServiceException_1.DataExchangeServiceException,
|
|
1868
1682
|
errorCode,
|
|
1869
1683
|
});
|
|
1870
1684
|
}
|
|
@@ -1873,7 +1687,7 @@ const de_StartJobCommand = async (output, context) => {
|
|
|
1873
1687
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1874
1688
|
return de_StartJobCommandError(output, context);
|
|
1875
1689
|
}
|
|
1876
|
-
const contents = map({
|
|
1690
|
+
const contents = (0, smithy_client_1.map)({
|
|
1877
1691
|
$metadata: deserializeMetadata(output),
|
|
1878
1692
|
});
|
|
1879
1693
|
await collectBody(output.body, context);
|
|
@@ -1907,10 +1721,9 @@ const de_StartJobCommandError = async (output, context) => {
|
|
|
1907
1721
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1908
1722
|
default:
|
|
1909
1723
|
const parsedBody = parsedOutput.body;
|
|
1910
|
-
|
|
1724
|
+
return throwDefaultError({
|
|
1911
1725
|
output,
|
|
1912
1726
|
parsedBody,
|
|
1913
|
-
exceptionCtor: DataExchangeServiceException_1.DataExchangeServiceException,
|
|
1914
1727
|
errorCode,
|
|
1915
1728
|
});
|
|
1916
1729
|
}
|
|
@@ -1919,7 +1732,7 @@ const de_TagResourceCommand = async (output, context) => {
|
|
|
1919
1732
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1920
1733
|
return de_TagResourceCommandError(output, context);
|
|
1921
1734
|
}
|
|
1922
|
-
const contents = map({
|
|
1735
|
+
const contents = (0, smithy_client_1.map)({
|
|
1923
1736
|
$metadata: deserializeMetadata(output),
|
|
1924
1737
|
});
|
|
1925
1738
|
await collectBody(output.body, context);
|
|
@@ -1933,10 +1746,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
1933
1746
|
};
|
|
1934
1747
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1935
1748
|
const parsedBody = parsedOutput.body;
|
|
1936
|
-
|
|
1749
|
+
return throwDefaultError({
|
|
1937
1750
|
output,
|
|
1938
1751
|
parsedBody,
|
|
1939
|
-
exceptionCtor: DataExchangeServiceException_1.DataExchangeServiceException,
|
|
1940
1752
|
errorCode,
|
|
1941
1753
|
});
|
|
1942
1754
|
};
|
|
@@ -1944,7 +1756,7 @@ const de_UntagResourceCommand = async (output, context) => {
|
|
|
1944
1756
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1945
1757
|
return de_UntagResourceCommandError(output, context);
|
|
1946
1758
|
}
|
|
1947
|
-
const contents = map({
|
|
1759
|
+
const contents = (0, smithy_client_1.map)({
|
|
1948
1760
|
$metadata: deserializeMetadata(output),
|
|
1949
1761
|
});
|
|
1950
1762
|
await collectBody(output.body, context);
|
|
@@ -1958,10 +1770,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
1958
1770
|
};
|
|
1959
1771
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1960
1772
|
const parsedBody = parsedOutput.body;
|
|
1961
|
-
|
|
1773
|
+
return throwDefaultError({
|
|
1962
1774
|
output,
|
|
1963
1775
|
parsedBody,
|
|
1964
|
-
exceptionCtor: DataExchangeServiceException_1.DataExchangeServiceException,
|
|
1965
1776
|
errorCode,
|
|
1966
1777
|
});
|
|
1967
1778
|
};
|
|
@@ -1969,40 +1780,23 @@ const de_UpdateAssetCommand = async (output, context) => {
|
|
|
1969
1780
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1970
1781
|
return de_UpdateAssetCommandError(output, context);
|
|
1971
1782
|
}
|
|
1972
|
-
const contents = map({
|
|
1783
|
+
const contents = (0, smithy_client_1.map)({
|
|
1973
1784
|
$metadata: deserializeMetadata(output),
|
|
1974
1785
|
});
|
|
1975
1786
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
}
|
|
1988
|
-
|
|
1989
|
-
contents.DataSetId = (0, smithy_client_1.expectString)(data.DataSetId);
|
|
1990
|
-
}
|
|
1991
|
-
if (data.Id != null) {
|
|
1992
|
-
contents.Id = (0, smithy_client_1.expectString)(data.Id);
|
|
1993
|
-
}
|
|
1994
|
-
if (data.Name != null) {
|
|
1995
|
-
contents.Name = (0, smithy_client_1.expectString)(data.Name);
|
|
1996
|
-
}
|
|
1997
|
-
if (data.RevisionId != null) {
|
|
1998
|
-
contents.RevisionId = (0, smithy_client_1.expectString)(data.RevisionId);
|
|
1999
|
-
}
|
|
2000
|
-
if (data.SourceId != null) {
|
|
2001
|
-
contents.SourceId = (0, smithy_client_1.expectString)(data.SourceId);
|
|
2002
|
-
}
|
|
2003
|
-
if (data.UpdatedAt != null) {
|
|
2004
|
-
contents.UpdatedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.UpdatedAt));
|
|
2005
|
-
}
|
|
1787
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1788
|
+
Arn: smithy_client_1.expectString,
|
|
1789
|
+
AssetDetails: (_) => de_AssetDetails(_, context),
|
|
1790
|
+
AssetType: smithy_client_1.expectString,
|
|
1791
|
+
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1792
|
+
DataSetId: smithy_client_1.expectString,
|
|
1793
|
+
Id: smithy_client_1.expectString,
|
|
1794
|
+
Name: smithy_client_1.expectString,
|
|
1795
|
+
RevisionId: smithy_client_1.expectString,
|
|
1796
|
+
SourceId: smithy_client_1.expectString,
|
|
1797
|
+
UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1798
|
+
});
|
|
1799
|
+
Object.assign(contents, doc);
|
|
2006
1800
|
return contents;
|
|
2007
1801
|
};
|
|
2008
1802
|
exports.de_UpdateAssetCommand = de_UpdateAssetCommand;
|
|
@@ -2033,10 +1827,9 @@ const de_UpdateAssetCommandError = async (output, context) => {
|
|
|
2033
1827
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2034
1828
|
default:
|
|
2035
1829
|
const parsedBody = parsedOutput.body;
|
|
2036
|
-
|
|
1830
|
+
return throwDefaultError({
|
|
2037
1831
|
output,
|
|
2038
1832
|
parsedBody,
|
|
2039
|
-
exceptionCtor: DataExchangeServiceException_1.DataExchangeServiceException,
|
|
2040
1833
|
errorCode,
|
|
2041
1834
|
});
|
|
2042
1835
|
}
|
|
@@ -2045,40 +1838,23 @@ const de_UpdateDataSetCommand = async (output, context) => {
|
|
|
2045
1838
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2046
1839
|
return de_UpdateDataSetCommandError(output, context);
|
|
2047
1840
|
}
|
|
2048
|
-
const contents = map({
|
|
1841
|
+
const contents = (0, smithy_client_1.map)({
|
|
2049
1842
|
$metadata: deserializeMetadata(output),
|
|
2050
1843
|
});
|
|
2051
1844
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
}
|
|
2064
|
-
|
|
2065
|
-
contents.Id = (0, smithy_client_1.expectString)(data.Id);
|
|
2066
|
-
}
|
|
2067
|
-
if (data.Name != null) {
|
|
2068
|
-
contents.Name = (0, smithy_client_1.expectString)(data.Name);
|
|
2069
|
-
}
|
|
2070
|
-
if (data.Origin != null) {
|
|
2071
|
-
contents.Origin = (0, smithy_client_1.expectString)(data.Origin);
|
|
2072
|
-
}
|
|
2073
|
-
if (data.OriginDetails != null) {
|
|
2074
|
-
contents.OriginDetails = de_OriginDetails(data.OriginDetails, context);
|
|
2075
|
-
}
|
|
2076
|
-
if (data.SourceId != null) {
|
|
2077
|
-
contents.SourceId = (0, smithy_client_1.expectString)(data.SourceId);
|
|
2078
|
-
}
|
|
2079
|
-
if (data.UpdatedAt != null) {
|
|
2080
|
-
contents.UpdatedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.UpdatedAt));
|
|
2081
|
-
}
|
|
1845
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1846
|
+
Arn: smithy_client_1.expectString,
|
|
1847
|
+
AssetType: smithy_client_1.expectString,
|
|
1848
|
+
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1849
|
+
Description: smithy_client_1.expectString,
|
|
1850
|
+
Id: smithy_client_1.expectString,
|
|
1851
|
+
Name: smithy_client_1.expectString,
|
|
1852
|
+
Origin: smithy_client_1.expectString,
|
|
1853
|
+
OriginDetails: smithy_client_1._json,
|
|
1854
|
+
SourceId: smithy_client_1.expectString,
|
|
1855
|
+
UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1856
|
+
});
|
|
1857
|
+
Object.assign(contents, doc);
|
|
2082
1858
|
return contents;
|
|
2083
1859
|
};
|
|
2084
1860
|
exports.de_UpdateDataSetCommand = de_UpdateDataSetCommand;
|
|
@@ -2106,10 +1882,9 @@ const de_UpdateDataSetCommandError = async (output, context) => {
|
|
|
2106
1882
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2107
1883
|
default:
|
|
2108
1884
|
const parsedBody = parsedOutput.body;
|
|
2109
|
-
|
|
1885
|
+
return throwDefaultError({
|
|
2110
1886
|
output,
|
|
2111
1887
|
parsedBody,
|
|
2112
|
-
exceptionCtor: DataExchangeServiceException_1.DataExchangeServiceException,
|
|
2113
1888
|
errorCode,
|
|
2114
1889
|
});
|
|
2115
1890
|
}
|
|
@@ -2118,28 +1893,19 @@ const de_UpdateEventActionCommand = async (output, context) => {
|
|
|
2118
1893
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2119
1894
|
return de_UpdateEventActionCommandError(output, context);
|
|
2120
1895
|
}
|
|
2121
|
-
const contents = map({
|
|
1896
|
+
const contents = (0, smithy_client_1.map)({
|
|
2122
1897
|
$metadata: deserializeMetadata(output),
|
|
2123
1898
|
});
|
|
2124
1899
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
if (data.Event != null) {
|
|
2135
|
-
contents.Event = de_Event(data.Event, context);
|
|
2136
|
-
}
|
|
2137
|
-
if (data.Id != null) {
|
|
2138
|
-
contents.Id = (0, smithy_client_1.expectString)(data.Id);
|
|
2139
|
-
}
|
|
2140
|
-
if (data.UpdatedAt != null) {
|
|
2141
|
-
contents.UpdatedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.UpdatedAt));
|
|
2142
|
-
}
|
|
1900
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1901
|
+
Action: smithy_client_1._json,
|
|
1902
|
+
Arn: smithy_client_1.expectString,
|
|
1903
|
+
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1904
|
+
Event: smithy_client_1._json,
|
|
1905
|
+
Id: smithy_client_1.expectString,
|
|
1906
|
+
UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1907
|
+
});
|
|
1908
|
+
Object.assign(contents, doc);
|
|
2143
1909
|
return contents;
|
|
2144
1910
|
};
|
|
2145
1911
|
exports.de_UpdateEventActionCommand = de_UpdateEventActionCommand;
|
|
@@ -2167,10 +1933,9 @@ const de_UpdateEventActionCommandError = async (output, context) => {
|
|
|
2167
1933
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2168
1934
|
default:
|
|
2169
1935
|
const parsedBody = parsedOutput.body;
|
|
2170
|
-
|
|
1936
|
+
return throwDefaultError({
|
|
2171
1937
|
output,
|
|
2172
1938
|
parsedBody,
|
|
2173
|
-
exceptionCtor: DataExchangeServiceException_1.DataExchangeServiceException,
|
|
2174
1939
|
errorCode,
|
|
2175
1940
|
});
|
|
2176
1941
|
}
|
|
@@ -2179,43 +1944,24 @@ const de_UpdateRevisionCommand = async (output, context) => {
|
|
|
2179
1944
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2180
1945
|
return de_UpdateRevisionCommandError(output, context);
|
|
2181
1946
|
}
|
|
2182
|
-
const contents = map({
|
|
1947
|
+
const contents = (0, smithy_client_1.map)({
|
|
2183
1948
|
$metadata: deserializeMetadata(output),
|
|
2184
1949
|
});
|
|
2185
1950
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
}
|
|
2201
|
-
if (data.Id != null) {
|
|
2202
|
-
contents.Id = (0, smithy_client_1.expectString)(data.Id);
|
|
2203
|
-
}
|
|
2204
|
-
if (data.RevocationComment != null) {
|
|
2205
|
-
contents.RevocationComment = (0, smithy_client_1.expectString)(data.RevocationComment);
|
|
2206
|
-
}
|
|
2207
|
-
if (data.Revoked != null) {
|
|
2208
|
-
contents.Revoked = (0, smithy_client_1.expectBoolean)(data.Revoked);
|
|
2209
|
-
}
|
|
2210
|
-
if (data.RevokedAt != null) {
|
|
2211
|
-
contents.RevokedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.RevokedAt));
|
|
2212
|
-
}
|
|
2213
|
-
if (data.SourceId != null) {
|
|
2214
|
-
contents.SourceId = (0, smithy_client_1.expectString)(data.SourceId);
|
|
2215
|
-
}
|
|
2216
|
-
if (data.UpdatedAt != null) {
|
|
2217
|
-
contents.UpdatedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.UpdatedAt));
|
|
2218
|
-
}
|
|
1951
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1952
|
+
Arn: smithy_client_1.expectString,
|
|
1953
|
+
Comment: smithy_client_1.expectString,
|
|
1954
|
+
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1955
|
+
DataSetId: smithy_client_1.expectString,
|
|
1956
|
+
Finalized: smithy_client_1.expectBoolean,
|
|
1957
|
+
Id: smithy_client_1.expectString,
|
|
1958
|
+
RevocationComment: smithy_client_1.expectString,
|
|
1959
|
+
Revoked: smithy_client_1.expectBoolean,
|
|
1960
|
+
RevokedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1961
|
+
SourceId: smithy_client_1.expectString,
|
|
1962
|
+
UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1963
|
+
});
|
|
1964
|
+
Object.assign(contents, doc);
|
|
2219
1965
|
return contents;
|
|
2220
1966
|
};
|
|
2221
1967
|
exports.de_UpdateRevisionCommand = de_UpdateRevisionCommand;
|
|
@@ -2246,21 +1992,21 @@ const de_UpdateRevisionCommandError = async (output, context) => {
|
|
|
2246
1992
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2247
1993
|
default:
|
|
2248
1994
|
const parsedBody = parsedOutput.body;
|
|
2249
|
-
|
|
1995
|
+
return throwDefaultError({
|
|
2250
1996
|
output,
|
|
2251
1997
|
parsedBody,
|
|
2252
|
-
exceptionCtor: DataExchangeServiceException_1.DataExchangeServiceException,
|
|
2253
1998
|
errorCode,
|
|
2254
1999
|
});
|
|
2255
2000
|
}
|
|
2256
2001
|
};
|
|
2257
|
-
const
|
|
2002
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(DataExchangeServiceException_1.DataExchangeServiceException);
|
|
2258
2003
|
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
2259
|
-
const contents = map({});
|
|
2004
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2260
2005
|
const data = parsedOutput.body;
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
}
|
|
2006
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2007
|
+
Message: smithy_client_1.expectString,
|
|
2008
|
+
});
|
|
2009
|
+
Object.assign(contents, doc);
|
|
2264
2010
|
const exception = new models_0_1.AccessDeniedException({
|
|
2265
2011
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2266
2012
|
...contents,
|
|
@@ -2268,17 +2014,14 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
|
2268
2014
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2269
2015
|
};
|
|
2270
2016
|
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
2271
|
-
const contents = map({});
|
|
2017
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2272
2018
|
const data = parsedOutput.body;
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
if (data.ResourceType != null) {
|
|
2280
|
-
contents.ResourceType = (0, smithy_client_1.expectString)(data.ResourceType);
|
|
2281
|
-
}
|
|
2019
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2020
|
+
Message: smithy_client_1.expectString,
|
|
2021
|
+
ResourceId: smithy_client_1.expectString,
|
|
2022
|
+
ResourceType: smithy_client_1.expectString,
|
|
2023
|
+
});
|
|
2024
|
+
Object.assign(contents, doc);
|
|
2282
2025
|
const exception = new models_0_1.ConflictException({
|
|
2283
2026
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2284
2027
|
...contents,
|
|
@@ -2286,11 +2029,12 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
2286
2029
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2287
2030
|
};
|
|
2288
2031
|
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
2289
|
-
const contents = map({});
|
|
2032
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2290
2033
|
const data = parsedOutput.body;
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
}
|
|
2034
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2035
|
+
Message: smithy_client_1.expectString,
|
|
2036
|
+
});
|
|
2037
|
+
Object.assign(contents, doc);
|
|
2294
2038
|
const exception = new models_0_1.InternalServerException({
|
|
2295
2039
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2296
2040
|
...contents,
|
|
@@ -2298,17 +2042,14 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
|
2298
2042
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2299
2043
|
};
|
|
2300
2044
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2301
|
-
const contents = map({});
|
|
2045
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2302
2046
|
const data = parsedOutput.body;
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
if (data.ResourceType != null) {
|
|
2310
|
-
contents.ResourceType = (0, smithy_client_1.expectString)(data.ResourceType);
|
|
2311
|
-
}
|
|
2047
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2048
|
+
Message: smithy_client_1.expectString,
|
|
2049
|
+
ResourceId: smithy_client_1.expectString,
|
|
2050
|
+
ResourceType: smithy_client_1.expectString,
|
|
2051
|
+
});
|
|
2052
|
+
Object.assign(contents, doc);
|
|
2312
2053
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
2313
2054
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2314
2055
|
...contents,
|
|
@@ -2316,17 +2057,14 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
2316
2057
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2317
2058
|
};
|
|
2318
2059
|
const de_ServiceLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
2319
|
-
const contents = map({});
|
|
2060
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2320
2061
|
const data = parsedOutput.body;
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
if (data.Message != null) {
|
|
2328
|
-
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
2329
|
-
}
|
|
2062
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2063
|
+
LimitName: smithy_client_1.expectString,
|
|
2064
|
+
LimitValue: smithy_client_1.limitedParseDouble,
|
|
2065
|
+
Message: smithy_client_1.expectString,
|
|
2066
|
+
});
|
|
2067
|
+
Object.assign(contents, doc);
|
|
2330
2068
|
const exception = new models_0_1.ServiceLimitExceededException({
|
|
2331
2069
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2332
2070
|
...contents,
|
|
@@ -2334,11 +2072,12 @@ const de_ServiceLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
2334
2072
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2335
2073
|
};
|
|
2336
2074
|
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
2337
|
-
const contents = map({});
|
|
2075
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2338
2076
|
const data = parsedOutput.body;
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
}
|
|
2077
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2078
|
+
Message: smithy_client_1.expectString,
|
|
2079
|
+
});
|
|
2080
|
+
Object.assign(contents, doc);
|
|
2342
2081
|
const exception = new models_0_1.ThrottlingException({
|
|
2343
2082
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2344
2083
|
...contents,
|
|
@@ -2346,659 +2085,148 @@ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
|
2346
2085
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2347
2086
|
};
|
|
2348
2087
|
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
2349
|
-
const contents = map({});
|
|
2088
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2350
2089
|
const data = parsedOutput.body;
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
}
|
|
2090
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2091
|
+
ExceptionCause: smithy_client_1.expectString,
|
|
2092
|
+
Message: smithy_client_1.expectString,
|
|
2093
|
+
});
|
|
2094
|
+
Object.assign(contents, doc);
|
|
2357
2095
|
const exception = new models_0_1.ValidationException({
|
|
2358
2096
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2359
2097
|
...contents,
|
|
2360
2098
|
});
|
|
2361
2099
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2362
2100
|
};
|
|
2363
|
-
const se_Action = (input, context) => {
|
|
2364
|
-
return {
|
|
2365
|
-
...(input.ExportRevisionToS3 != null && {
|
|
2366
|
-
ExportRevisionToS3: se_AutoExportRevisionToS3RequestDetails(input.ExportRevisionToS3, context),
|
|
2367
|
-
}),
|
|
2368
|
-
};
|
|
2369
|
-
};
|
|
2370
|
-
const se_AssetDestinationEntry = (input, context) => {
|
|
2371
|
-
return {
|
|
2372
|
-
...(input.AssetId != null && { AssetId: input.AssetId }),
|
|
2373
|
-
...(input.Bucket != null && { Bucket: input.Bucket }),
|
|
2374
|
-
...(input.Key != null && { Key: input.Key }),
|
|
2375
|
-
};
|
|
2376
|
-
};
|
|
2377
|
-
const se_AssetSourceEntry = (input, context) => {
|
|
2378
|
-
return {
|
|
2379
|
-
...(input.Bucket != null && { Bucket: input.Bucket }),
|
|
2380
|
-
...(input.Key != null && { Key: input.Key }),
|
|
2381
|
-
};
|
|
2382
|
-
};
|
|
2383
|
-
const se_AutoExportRevisionDestinationEntry = (input, context) => {
|
|
2384
|
-
return {
|
|
2385
|
-
...(input.Bucket != null && { Bucket: input.Bucket }),
|
|
2386
|
-
...(input.KeyPattern != null && { KeyPattern: input.KeyPattern }),
|
|
2387
|
-
};
|
|
2388
|
-
};
|
|
2389
|
-
const se_AutoExportRevisionToS3RequestDetails = (input, context) => {
|
|
2390
|
-
return {
|
|
2391
|
-
...(input.Encryption != null && { Encryption: se_ExportServerSideEncryption(input.Encryption, context) }),
|
|
2392
|
-
...(input.RevisionDestination != null && {
|
|
2393
|
-
RevisionDestination: se_AutoExportRevisionDestinationEntry(input.RevisionDestination, context),
|
|
2394
|
-
}),
|
|
2395
|
-
};
|
|
2396
|
-
};
|
|
2397
|
-
const se_CreateS3DataAccessFromS3BucketRequestDetails = (input, context) => {
|
|
2398
|
-
return {
|
|
2399
|
-
...(input.AssetSource != null && { AssetSource: se_S3DataAccessAssetSourceEntry(input.AssetSource, context) }),
|
|
2400
|
-
...(input.DataSetId != null && { DataSetId: input.DataSetId }),
|
|
2401
|
-
...(input.RevisionId != null && { RevisionId: input.RevisionId }),
|
|
2402
|
-
};
|
|
2403
|
-
};
|
|
2404
|
-
const se_DatabaseLFTagPolicyAndPermissions = (input, context) => {
|
|
2405
|
-
return {
|
|
2406
|
-
...(input.Expression != null && { Expression: se_ListOfLFTags(input.Expression, context) }),
|
|
2407
|
-
...(input.Permissions != null && {
|
|
2408
|
-
Permissions: se_ListOfDatabaseLFTagPolicyPermissions(input.Permissions, context),
|
|
2409
|
-
}),
|
|
2410
|
-
};
|
|
2411
|
-
};
|
|
2412
|
-
const se_Event = (input, context) => {
|
|
2413
|
-
return {
|
|
2414
|
-
...(input.RevisionPublished != null && {
|
|
2415
|
-
RevisionPublished: se_RevisionPublished(input.RevisionPublished, context),
|
|
2416
|
-
}),
|
|
2417
|
-
};
|
|
2418
|
-
};
|
|
2419
|
-
const se_ExportAssetsToS3RequestDetails = (input, context) => {
|
|
2420
|
-
return {
|
|
2421
|
-
...(input.AssetDestinations != null && {
|
|
2422
|
-
AssetDestinations: se_ListOfAssetDestinationEntry(input.AssetDestinations, context),
|
|
2423
|
-
}),
|
|
2424
|
-
...(input.DataSetId != null && { DataSetId: input.DataSetId }),
|
|
2425
|
-
...(input.Encryption != null && { Encryption: se_ExportServerSideEncryption(input.Encryption, context) }),
|
|
2426
|
-
...(input.RevisionId != null && { RevisionId: input.RevisionId }),
|
|
2427
|
-
};
|
|
2428
|
-
};
|
|
2429
|
-
const se_ExportAssetToSignedUrlRequestDetails = (input, context) => {
|
|
2430
|
-
return {
|
|
2431
|
-
...(input.AssetId != null && { AssetId: input.AssetId }),
|
|
2432
|
-
...(input.DataSetId != null && { DataSetId: input.DataSetId }),
|
|
2433
|
-
...(input.RevisionId != null && { RevisionId: input.RevisionId }),
|
|
2434
|
-
};
|
|
2435
|
-
};
|
|
2436
|
-
const se_ExportRevisionsToS3RequestDetails = (input, context) => {
|
|
2437
|
-
return {
|
|
2438
|
-
...(input.DataSetId != null && { DataSetId: input.DataSetId }),
|
|
2439
|
-
...(input.Encryption != null && { Encryption: se_ExportServerSideEncryption(input.Encryption, context) }),
|
|
2440
|
-
...(input.RevisionDestinations != null && {
|
|
2441
|
-
RevisionDestinations: se_ListOfRevisionDestinationEntry(input.RevisionDestinations, context),
|
|
2442
|
-
}),
|
|
2443
|
-
};
|
|
2444
|
-
};
|
|
2445
|
-
const se_ExportServerSideEncryption = (input, context) => {
|
|
2446
|
-
return {
|
|
2447
|
-
...(input.KmsKeyArn != null && { KmsKeyArn: input.KmsKeyArn }),
|
|
2448
|
-
...(input.Type != null && { Type: input.Type }),
|
|
2449
|
-
};
|
|
2450
|
-
};
|
|
2451
|
-
const se_ImportAssetFromApiGatewayApiRequestDetails = (input, context) => {
|
|
2452
|
-
return {
|
|
2453
|
-
...(input.ApiDescription != null && { ApiDescription: input.ApiDescription }),
|
|
2454
|
-
...(input.ApiId != null && { ApiId: input.ApiId }),
|
|
2455
|
-
...(input.ApiKey != null && { ApiKey: input.ApiKey }),
|
|
2456
|
-
...(input.ApiName != null && { ApiName: input.ApiName }),
|
|
2457
|
-
...(input.ApiSpecificationMd5Hash != null && { ApiSpecificationMd5Hash: input.ApiSpecificationMd5Hash }),
|
|
2458
|
-
...(input.DataSetId != null && { DataSetId: input.DataSetId }),
|
|
2459
|
-
...(input.ProtocolType != null && { ProtocolType: input.ProtocolType }),
|
|
2460
|
-
...(input.RevisionId != null && { RevisionId: input.RevisionId }),
|
|
2461
|
-
...(input.Stage != null && { Stage: input.Stage }),
|
|
2462
|
-
};
|
|
2463
|
-
};
|
|
2464
|
-
const se_ImportAssetFromSignedUrlRequestDetails = (input, context) => {
|
|
2465
|
-
return {
|
|
2466
|
-
...(input.AssetName != null && { AssetName: input.AssetName }),
|
|
2467
|
-
...(input.DataSetId != null && { DataSetId: input.DataSetId }),
|
|
2468
|
-
...(input.Md5Hash != null && { Md5Hash: input.Md5Hash }),
|
|
2469
|
-
...(input.RevisionId != null && { RevisionId: input.RevisionId }),
|
|
2470
|
-
};
|
|
2471
|
-
};
|
|
2472
|
-
const se_ImportAssetsFromLakeFormationTagPolicyRequestDetails = (input, context) => {
|
|
2473
|
-
return {
|
|
2474
|
-
...(input.CatalogId != null && { CatalogId: input.CatalogId }),
|
|
2475
|
-
...(input.DataSetId != null && { DataSetId: input.DataSetId }),
|
|
2476
|
-
...(input.Database != null && { Database: se_DatabaseLFTagPolicyAndPermissions(input.Database, context) }),
|
|
2477
|
-
...(input.RevisionId != null && { RevisionId: input.RevisionId }),
|
|
2478
|
-
...(input.RoleArn != null && { RoleArn: input.RoleArn }),
|
|
2479
|
-
...(input.Table != null && { Table: se_TableLFTagPolicyAndPermissions(input.Table, context) }),
|
|
2480
|
-
};
|
|
2481
|
-
};
|
|
2482
|
-
const se_ImportAssetsFromRedshiftDataSharesRequestDetails = (input, context) => {
|
|
2483
|
-
return {
|
|
2484
|
-
...(input.AssetSources != null && {
|
|
2485
|
-
AssetSources: se_ListOfRedshiftDataShareAssetSourceEntry(input.AssetSources, context),
|
|
2486
|
-
}),
|
|
2487
|
-
...(input.DataSetId != null && { DataSetId: input.DataSetId }),
|
|
2488
|
-
...(input.RevisionId != null && { RevisionId: input.RevisionId }),
|
|
2489
|
-
};
|
|
2490
|
-
};
|
|
2491
|
-
const se_ImportAssetsFromS3RequestDetails = (input, context) => {
|
|
2492
|
-
return {
|
|
2493
|
-
...(input.AssetSources != null && { AssetSources: se_ListOfAssetSourceEntry(input.AssetSources, context) }),
|
|
2494
|
-
...(input.DataSetId != null && { DataSetId: input.DataSetId }),
|
|
2495
|
-
...(input.RevisionId != null && { RevisionId: input.RevisionId }),
|
|
2496
|
-
};
|
|
2497
|
-
};
|
|
2498
|
-
const se_KmsKeyToGrant = (input, context) => {
|
|
2499
|
-
return {
|
|
2500
|
-
...(input.KmsKeyArn != null && { KmsKeyArn: input.KmsKeyArn }),
|
|
2501
|
-
};
|
|
2502
|
-
};
|
|
2503
|
-
const se_LFTag = (input, context) => {
|
|
2504
|
-
return {
|
|
2505
|
-
...(input.TagKey != null && { TagKey: input.TagKey }),
|
|
2506
|
-
...(input.TagValues != null && { TagValues: se_ListOfLFTagValues(input.TagValues, context) }),
|
|
2507
|
-
};
|
|
2508
|
-
};
|
|
2509
|
-
const se_ListOf__string = (input, context) => {
|
|
2510
|
-
return input
|
|
2511
|
-
.filter((e) => e != null)
|
|
2512
|
-
.map((entry) => {
|
|
2513
|
-
return entry;
|
|
2514
|
-
});
|
|
2515
|
-
};
|
|
2516
|
-
const se_ListOfAssetDestinationEntry = (input, context) => {
|
|
2517
|
-
return input
|
|
2518
|
-
.filter((e) => e != null)
|
|
2519
|
-
.map((entry) => {
|
|
2520
|
-
return se_AssetDestinationEntry(entry, context);
|
|
2521
|
-
});
|
|
2522
|
-
};
|
|
2523
|
-
const se_ListOfAssetSourceEntry = (input, context) => {
|
|
2524
|
-
return input
|
|
2525
|
-
.filter((e) => e != null)
|
|
2526
|
-
.map((entry) => {
|
|
2527
|
-
return se_AssetSourceEntry(entry, context);
|
|
2528
|
-
});
|
|
2529
|
-
};
|
|
2530
|
-
const se_ListOfDatabaseLFTagPolicyPermissions = (input, context) => {
|
|
2531
|
-
return input
|
|
2532
|
-
.filter((e) => e != null)
|
|
2533
|
-
.map((entry) => {
|
|
2534
|
-
return entry;
|
|
2535
|
-
});
|
|
2536
|
-
};
|
|
2537
|
-
const se_ListOfKmsKeysToGrant = (input, context) => {
|
|
2538
|
-
return input
|
|
2539
|
-
.filter((e) => e != null)
|
|
2540
|
-
.map((entry) => {
|
|
2541
|
-
return se_KmsKeyToGrant(entry, context);
|
|
2542
|
-
});
|
|
2543
|
-
};
|
|
2544
|
-
const se_ListOfLFTags = (input, context) => {
|
|
2545
|
-
return input
|
|
2546
|
-
.filter((e) => e != null)
|
|
2547
|
-
.map((entry) => {
|
|
2548
|
-
return se_LFTag(entry, context);
|
|
2549
|
-
});
|
|
2550
|
-
};
|
|
2551
|
-
const se_ListOfLFTagValues = (input, context) => {
|
|
2552
|
-
return input
|
|
2553
|
-
.filter((e) => e != null)
|
|
2554
|
-
.map((entry) => {
|
|
2555
|
-
return entry;
|
|
2556
|
-
});
|
|
2557
|
-
};
|
|
2558
|
-
const se_ListOfRedshiftDataShareAssetSourceEntry = (input, context) => {
|
|
2559
|
-
return input
|
|
2560
|
-
.filter((e) => e != null)
|
|
2561
|
-
.map((entry) => {
|
|
2562
|
-
return se_RedshiftDataShareAssetSourceEntry(entry, context);
|
|
2563
|
-
});
|
|
2564
|
-
};
|
|
2565
|
-
const se_ListOfRevisionDestinationEntry = (input, context) => {
|
|
2566
|
-
return input
|
|
2567
|
-
.filter((e) => e != null)
|
|
2568
|
-
.map((entry) => {
|
|
2569
|
-
return se_RevisionDestinationEntry(entry, context);
|
|
2570
|
-
});
|
|
2571
|
-
};
|
|
2572
|
-
const se_ListOfTableTagPolicyLFPermissions = (input, context) => {
|
|
2573
|
-
return input
|
|
2574
|
-
.filter((e) => e != null)
|
|
2575
|
-
.map((entry) => {
|
|
2576
|
-
return entry;
|
|
2577
|
-
});
|
|
2578
|
-
};
|
|
2579
|
-
const se_MapOf__string = (input, context) => {
|
|
2580
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2581
|
-
if (value === null) {
|
|
2582
|
-
return acc;
|
|
2583
|
-
}
|
|
2584
|
-
acc[key] = value;
|
|
2585
|
-
return acc;
|
|
2586
|
-
}, {});
|
|
2587
|
-
};
|
|
2588
|
-
const se_RedshiftDataShareAssetSourceEntry = (input, context) => {
|
|
2589
|
-
return {
|
|
2590
|
-
...(input.DataShareArn != null && { DataShareArn: input.DataShareArn }),
|
|
2591
|
-
};
|
|
2592
|
-
};
|
|
2593
|
-
const se_RequestDetails = (input, context) => {
|
|
2594
|
-
return {
|
|
2595
|
-
...(input.CreateS3DataAccessFromS3Bucket != null && {
|
|
2596
|
-
CreateS3DataAccessFromS3Bucket: se_CreateS3DataAccessFromS3BucketRequestDetails(input.CreateS3DataAccessFromS3Bucket, context),
|
|
2597
|
-
}),
|
|
2598
|
-
...(input.ExportAssetToSignedUrl != null && {
|
|
2599
|
-
ExportAssetToSignedUrl: se_ExportAssetToSignedUrlRequestDetails(input.ExportAssetToSignedUrl, context),
|
|
2600
|
-
}),
|
|
2601
|
-
...(input.ExportAssetsToS3 != null && {
|
|
2602
|
-
ExportAssetsToS3: se_ExportAssetsToS3RequestDetails(input.ExportAssetsToS3, context),
|
|
2603
|
-
}),
|
|
2604
|
-
...(input.ExportRevisionsToS3 != null && {
|
|
2605
|
-
ExportRevisionsToS3: se_ExportRevisionsToS3RequestDetails(input.ExportRevisionsToS3, context),
|
|
2606
|
-
}),
|
|
2607
|
-
...(input.ImportAssetFromApiGatewayApi != null && {
|
|
2608
|
-
ImportAssetFromApiGatewayApi: se_ImportAssetFromApiGatewayApiRequestDetails(input.ImportAssetFromApiGatewayApi, context),
|
|
2609
|
-
}),
|
|
2610
|
-
...(input.ImportAssetFromSignedUrl != null && {
|
|
2611
|
-
ImportAssetFromSignedUrl: se_ImportAssetFromSignedUrlRequestDetails(input.ImportAssetFromSignedUrl, context),
|
|
2612
|
-
}),
|
|
2613
|
-
...(input.ImportAssetsFromLakeFormationTagPolicy != null && {
|
|
2614
|
-
ImportAssetsFromLakeFormationTagPolicy: se_ImportAssetsFromLakeFormationTagPolicyRequestDetails(input.ImportAssetsFromLakeFormationTagPolicy, context),
|
|
2615
|
-
}),
|
|
2616
|
-
...(input.ImportAssetsFromRedshiftDataShares != null && {
|
|
2617
|
-
ImportAssetsFromRedshiftDataShares: se_ImportAssetsFromRedshiftDataSharesRequestDetails(input.ImportAssetsFromRedshiftDataShares, context),
|
|
2618
|
-
}),
|
|
2619
|
-
...(input.ImportAssetsFromS3 != null && {
|
|
2620
|
-
ImportAssetsFromS3: se_ImportAssetsFromS3RequestDetails(input.ImportAssetsFromS3, context),
|
|
2621
|
-
}),
|
|
2622
|
-
};
|
|
2623
|
-
};
|
|
2624
|
-
const se_RevisionDestinationEntry = (input, context) => {
|
|
2625
|
-
return {
|
|
2626
|
-
...(input.Bucket != null && { Bucket: input.Bucket }),
|
|
2627
|
-
...(input.KeyPattern != null && { KeyPattern: input.KeyPattern }),
|
|
2628
|
-
...(input.RevisionId != null && { RevisionId: input.RevisionId }),
|
|
2629
|
-
};
|
|
2630
|
-
};
|
|
2631
|
-
const se_RevisionPublished = (input, context) => {
|
|
2632
|
-
return {
|
|
2633
|
-
...(input.DataSetId != null && { DataSetId: input.DataSetId }),
|
|
2634
|
-
};
|
|
2635
|
-
};
|
|
2636
|
-
const se_S3DataAccessAssetSourceEntry = (input, context) => {
|
|
2637
|
-
return {
|
|
2638
|
-
...(input.Bucket != null && { Bucket: input.Bucket }),
|
|
2639
|
-
...(input.KeyPrefixes != null && { KeyPrefixes: se_ListOf__string(input.KeyPrefixes, context) }),
|
|
2640
|
-
...(input.Keys != null && { Keys: se_ListOf__string(input.Keys, context) }),
|
|
2641
|
-
...(input.KmsKeysToGrant != null && { KmsKeysToGrant: se_ListOfKmsKeysToGrant(input.KmsKeysToGrant, context) }),
|
|
2642
|
-
};
|
|
2643
|
-
};
|
|
2644
|
-
const se_TableLFTagPolicyAndPermissions = (input, context) => {
|
|
2645
|
-
return {
|
|
2646
|
-
...(input.Expression != null && { Expression: se_ListOfLFTags(input.Expression, context) }),
|
|
2647
|
-
...(input.Permissions != null && { Permissions: se_ListOfTableTagPolicyLFPermissions(input.Permissions, context) }),
|
|
2648
|
-
};
|
|
2649
|
-
};
|
|
2650
|
-
const de_Action = (output, context) => {
|
|
2651
|
-
return {
|
|
2652
|
-
ExportRevisionToS3: output.ExportRevisionToS3 != null
|
|
2653
|
-
? de_AutoExportRevisionToS3RequestDetails(output.ExportRevisionToS3, context)
|
|
2654
|
-
: undefined,
|
|
2655
|
-
};
|
|
2656
|
-
};
|
|
2657
2101
|
const de_ApiGatewayApiAsset = (output, context) => {
|
|
2658
|
-
return {
|
|
2659
|
-
ApiDescription:
|
|
2660
|
-
ApiEndpoint:
|
|
2661
|
-
ApiId:
|
|
2662
|
-
ApiKey:
|
|
2663
|
-
ApiName:
|
|
2664
|
-
ApiSpecificationDownloadUrl:
|
|
2665
|
-
ApiSpecificationDownloadUrlExpiresAt:
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
Stage: (0, smithy_client_1.expectString)(output.Stage),
|
|
2670
|
-
};
|
|
2671
|
-
};
|
|
2672
|
-
const de_AssetDestinationEntry = (output, context) => {
|
|
2673
|
-
return {
|
|
2674
|
-
AssetId: (0, smithy_client_1.expectString)(output.AssetId),
|
|
2675
|
-
Bucket: (0, smithy_client_1.expectString)(output.Bucket),
|
|
2676
|
-
Key: (0, smithy_client_1.expectString)(output.Key),
|
|
2677
|
-
};
|
|
2102
|
+
return (0, smithy_client_1.take)(output, {
|
|
2103
|
+
ApiDescription: smithy_client_1.expectString,
|
|
2104
|
+
ApiEndpoint: smithy_client_1.expectString,
|
|
2105
|
+
ApiId: smithy_client_1.expectString,
|
|
2106
|
+
ApiKey: smithy_client_1.expectString,
|
|
2107
|
+
ApiName: smithy_client_1.expectString,
|
|
2108
|
+
ApiSpecificationDownloadUrl: smithy_client_1.expectString,
|
|
2109
|
+
ApiSpecificationDownloadUrlExpiresAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
2110
|
+
ProtocolType: smithy_client_1.expectString,
|
|
2111
|
+
Stage: smithy_client_1.expectString,
|
|
2112
|
+
});
|
|
2678
2113
|
};
|
|
2679
2114
|
const de_AssetDetails = (output, context) => {
|
|
2680
|
-
return {
|
|
2681
|
-
ApiGatewayApiAsset:
|
|
2682
|
-
LakeFormationDataPermissionAsset:
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
: undefined,
|
|
2688
|
-
S3DataAccessAsset: output.S3DataAccessAsset != null ? de_S3DataAccessAsset(output.S3DataAccessAsset, context) : undefined,
|
|
2689
|
-
S3SnapshotAsset: output.S3SnapshotAsset != null ? de_S3SnapshotAsset(output.S3SnapshotAsset, context) : undefined,
|
|
2690
|
-
};
|
|
2115
|
+
return (0, smithy_client_1.take)(output, {
|
|
2116
|
+
ApiGatewayApiAsset: (_) => de_ApiGatewayApiAsset(_, context),
|
|
2117
|
+
LakeFormationDataPermissionAsset: smithy_client_1._json,
|
|
2118
|
+
RedshiftDataShareAsset: smithy_client_1._json,
|
|
2119
|
+
S3DataAccessAsset: smithy_client_1._json,
|
|
2120
|
+
S3SnapshotAsset: (_) => de_S3SnapshotAsset(_, context),
|
|
2121
|
+
});
|
|
2691
2122
|
};
|
|
2692
2123
|
const de_AssetEntry = (output, context) => {
|
|
2693
|
-
return {
|
|
2694
|
-
Arn:
|
|
2695
|
-
AssetDetails:
|
|
2696
|
-
AssetType:
|
|
2697
|
-
CreatedAt:
|
|
2698
|
-
DataSetId:
|
|
2699
|
-
Id:
|
|
2700
|
-
Name:
|
|
2701
|
-
RevisionId:
|
|
2702
|
-
SourceId:
|
|
2703
|
-
UpdatedAt:
|
|
2704
|
-
};
|
|
2705
|
-
};
|
|
2706
|
-
const de_AssetSourceEntry = (output, context) => {
|
|
2707
|
-
return {
|
|
2708
|
-
Bucket: (0, smithy_client_1.expectString)(output.Bucket),
|
|
2709
|
-
Key: (0, smithy_client_1.expectString)(output.Key),
|
|
2710
|
-
};
|
|
2711
|
-
};
|
|
2712
|
-
const de_AutoExportRevisionDestinationEntry = (output, context) => {
|
|
2713
|
-
return {
|
|
2714
|
-
Bucket: (0, smithy_client_1.expectString)(output.Bucket),
|
|
2715
|
-
KeyPattern: (0, smithy_client_1.expectString)(output.KeyPattern),
|
|
2716
|
-
};
|
|
2717
|
-
};
|
|
2718
|
-
const de_AutoExportRevisionToS3RequestDetails = (output, context) => {
|
|
2719
|
-
return {
|
|
2720
|
-
Encryption: output.Encryption != null ? de_ExportServerSideEncryption(output.Encryption, context) : undefined,
|
|
2721
|
-
RevisionDestination: output.RevisionDestination != null
|
|
2722
|
-
? de_AutoExportRevisionDestinationEntry(output.RevisionDestination, context)
|
|
2723
|
-
: undefined,
|
|
2724
|
-
};
|
|
2725
|
-
};
|
|
2726
|
-
const de_CreateS3DataAccessFromS3BucketResponseDetails = (output, context) => {
|
|
2727
|
-
return {
|
|
2728
|
-
AssetSource: output.AssetSource != null ? de_S3DataAccessAssetSourceEntry(output.AssetSource, context) : undefined,
|
|
2729
|
-
DataSetId: (0, smithy_client_1.expectString)(output.DataSetId),
|
|
2730
|
-
RevisionId: (0, smithy_client_1.expectString)(output.RevisionId),
|
|
2731
|
-
};
|
|
2732
|
-
};
|
|
2733
|
-
const de_DatabaseLFTagPolicy = (output, context) => {
|
|
2734
|
-
return {
|
|
2735
|
-
Expression: output.Expression != null ? de_ListOfLFTags(output.Expression, context) : undefined,
|
|
2736
|
-
};
|
|
2737
|
-
};
|
|
2738
|
-
const de_DatabaseLFTagPolicyAndPermissions = (output, context) => {
|
|
2739
|
-
return {
|
|
2740
|
-
Expression: output.Expression != null ? de_ListOfLFTags(output.Expression, context) : undefined,
|
|
2741
|
-
Permissions: output.Permissions != null ? de_ListOfDatabaseLFTagPolicyPermissions(output.Permissions, context) : undefined,
|
|
2742
|
-
};
|
|
2124
|
+
return (0, smithy_client_1.take)(output, {
|
|
2125
|
+
Arn: smithy_client_1.expectString,
|
|
2126
|
+
AssetDetails: (_) => de_AssetDetails(_, context),
|
|
2127
|
+
AssetType: smithy_client_1.expectString,
|
|
2128
|
+
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
2129
|
+
DataSetId: smithy_client_1.expectString,
|
|
2130
|
+
Id: smithy_client_1.expectString,
|
|
2131
|
+
Name: smithy_client_1.expectString,
|
|
2132
|
+
RevisionId: smithy_client_1.expectString,
|
|
2133
|
+
SourceId: smithy_client_1.expectString,
|
|
2134
|
+
UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
2135
|
+
});
|
|
2743
2136
|
};
|
|
2744
2137
|
const de_DataSetEntry = (output, context) => {
|
|
2745
|
-
return {
|
|
2746
|
-
Arn:
|
|
2747
|
-
AssetType:
|
|
2748
|
-
CreatedAt:
|
|
2749
|
-
Description:
|
|
2750
|
-
Id:
|
|
2751
|
-
Name:
|
|
2752
|
-
Origin:
|
|
2753
|
-
OriginDetails:
|
|
2754
|
-
SourceId:
|
|
2755
|
-
UpdatedAt:
|
|
2756
|
-
};
|
|
2757
|
-
};
|
|
2758
|
-
const de_Details = (output, context) => {
|
|
2759
|
-
return {
|
|
2760
|
-
ImportAssetFromSignedUrlJobErrorDetails: output.ImportAssetFromSignedUrlJobErrorDetails != null
|
|
2761
|
-
? de_ImportAssetFromSignedUrlJobErrorDetails(output.ImportAssetFromSignedUrlJobErrorDetails, context)
|
|
2762
|
-
: undefined,
|
|
2763
|
-
ImportAssetsFromS3JobErrorDetails: output.ImportAssetsFromS3JobErrorDetails != null
|
|
2764
|
-
? de_ListOfAssetSourceEntry(output.ImportAssetsFromS3JobErrorDetails, context)
|
|
2765
|
-
: undefined,
|
|
2766
|
-
};
|
|
2767
|
-
};
|
|
2768
|
-
const de_Event = (output, context) => {
|
|
2769
|
-
return {
|
|
2770
|
-
RevisionPublished: output.RevisionPublished != null ? de_RevisionPublished(output.RevisionPublished, context) : undefined,
|
|
2771
|
-
};
|
|
2138
|
+
return (0, smithy_client_1.take)(output, {
|
|
2139
|
+
Arn: smithy_client_1.expectString,
|
|
2140
|
+
AssetType: smithy_client_1.expectString,
|
|
2141
|
+
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
2142
|
+
Description: smithy_client_1.expectString,
|
|
2143
|
+
Id: smithy_client_1.expectString,
|
|
2144
|
+
Name: smithy_client_1.expectString,
|
|
2145
|
+
Origin: smithy_client_1.expectString,
|
|
2146
|
+
OriginDetails: smithy_client_1._json,
|
|
2147
|
+
SourceId: smithy_client_1.expectString,
|
|
2148
|
+
UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
2149
|
+
});
|
|
2772
2150
|
};
|
|
2773
2151
|
const de_EventActionEntry = (output, context) => {
|
|
2774
|
-
return {
|
|
2775
|
-
Action:
|
|
2776
|
-
Arn:
|
|
2777
|
-
CreatedAt:
|
|
2778
|
-
Event:
|
|
2779
|
-
Id:
|
|
2780
|
-
UpdatedAt:
|
|
2781
|
-
};
|
|
2782
|
-
};
|
|
2783
|
-
const de_ExportAssetsToS3ResponseDetails = (output, context) => {
|
|
2784
|
-
return {
|
|
2785
|
-
AssetDestinations: output.AssetDestinations != null ? de_ListOfAssetDestinationEntry(output.AssetDestinations, context) : undefined,
|
|
2786
|
-
DataSetId: (0, smithy_client_1.expectString)(output.DataSetId),
|
|
2787
|
-
Encryption: output.Encryption != null ? de_ExportServerSideEncryption(output.Encryption, context) : undefined,
|
|
2788
|
-
RevisionId: (0, smithy_client_1.expectString)(output.RevisionId),
|
|
2789
|
-
};
|
|
2152
|
+
return (0, smithy_client_1.take)(output, {
|
|
2153
|
+
Action: smithy_client_1._json,
|
|
2154
|
+
Arn: smithy_client_1.expectString,
|
|
2155
|
+
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
2156
|
+
Event: smithy_client_1._json,
|
|
2157
|
+
Id: smithy_client_1.expectString,
|
|
2158
|
+
UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
2159
|
+
});
|
|
2790
2160
|
};
|
|
2791
2161
|
const de_ExportAssetToSignedUrlResponseDetails = (output, context) => {
|
|
2792
|
-
return {
|
|
2793
|
-
AssetId:
|
|
2794
|
-
DataSetId:
|
|
2795
|
-
RevisionId:
|
|
2796
|
-
SignedUrl:
|
|
2797
|
-
SignedUrlExpiresAt:
|
|
2798
|
-
|
|
2799
|
-
: undefined,
|
|
2800
|
-
};
|
|
2801
|
-
};
|
|
2802
|
-
const de_ExportRevisionsToS3ResponseDetails = (output, context) => {
|
|
2803
|
-
return {
|
|
2804
|
-
DataSetId: (0, smithy_client_1.expectString)(output.DataSetId),
|
|
2805
|
-
Encryption: output.Encryption != null ? de_ExportServerSideEncryption(output.Encryption, context) : undefined,
|
|
2806
|
-
EventActionArn: (0, smithy_client_1.expectString)(output.EventActionArn),
|
|
2807
|
-
RevisionDestinations: output.RevisionDestinations != null
|
|
2808
|
-
? de_ListOfRevisionDestinationEntry(output.RevisionDestinations, context)
|
|
2809
|
-
: undefined,
|
|
2810
|
-
};
|
|
2811
|
-
};
|
|
2812
|
-
const de_ExportServerSideEncryption = (output, context) => {
|
|
2813
|
-
return {
|
|
2814
|
-
KmsKeyArn: (0, smithy_client_1.expectString)(output.KmsKeyArn),
|
|
2815
|
-
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
2816
|
-
};
|
|
2162
|
+
return (0, smithy_client_1.take)(output, {
|
|
2163
|
+
AssetId: smithy_client_1.expectString,
|
|
2164
|
+
DataSetId: smithy_client_1.expectString,
|
|
2165
|
+
RevisionId: smithy_client_1.expectString,
|
|
2166
|
+
SignedUrl: smithy_client_1.expectString,
|
|
2167
|
+
SignedUrlExpiresAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
2168
|
+
});
|
|
2817
2169
|
};
|
|
2818
2170
|
const de_ImportAssetFromApiGatewayApiResponseDetails = (output, context) => {
|
|
2819
|
-
return {
|
|
2820
|
-
ApiDescription:
|
|
2821
|
-
ApiId:
|
|
2822
|
-
ApiKey:
|
|
2823
|
-
ApiName:
|
|
2824
|
-
ApiSpecificationMd5Hash:
|
|
2825
|
-
ApiSpecificationUploadUrl:
|
|
2826
|
-
ApiSpecificationUploadUrlExpiresAt:
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
|
|
2831
|
-
|
|
2832
|
-
Stage: (0, smithy_client_1.expectString)(output.Stage),
|
|
2833
|
-
};
|
|
2834
|
-
};
|
|
2835
|
-
const de_ImportAssetFromSignedUrlJobErrorDetails = (output, context) => {
|
|
2836
|
-
return {
|
|
2837
|
-
AssetName: (0, smithy_client_1.expectString)(output.AssetName),
|
|
2838
|
-
};
|
|
2171
|
+
return (0, smithy_client_1.take)(output, {
|
|
2172
|
+
ApiDescription: smithy_client_1.expectString,
|
|
2173
|
+
ApiId: smithy_client_1.expectString,
|
|
2174
|
+
ApiKey: smithy_client_1.expectString,
|
|
2175
|
+
ApiName: smithy_client_1.expectString,
|
|
2176
|
+
ApiSpecificationMd5Hash: smithy_client_1.expectString,
|
|
2177
|
+
ApiSpecificationUploadUrl: smithy_client_1.expectString,
|
|
2178
|
+
ApiSpecificationUploadUrlExpiresAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
2179
|
+
DataSetId: smithy_client_1.expectString,
|
|
2180
|
+
ProtocolType: smithy_client_1.expectString,
|
|
2181
|
+
RevisionId: smithy_client_1.expectString,
|
|
2182
|
+
Stage: smithy_client_1.expectString,
|
|
2183
|
+
});
|
|
2839
2184
|
};
|
|
2840
2185
|
const de_ImportAssetFromSignedUrlResponseDetails = (output, context) => {
|
|
2841
|
-
return {
|
|
2842
|
-
AssetName:
|
|
2843
|
-
DataSetId:
|
|
2844
|
-
Md5Hash:
|
|
2845
|
-
RevisionId:
|
|
2846
|
-
SignedUrl:
|
|
2847
|
-
SignedUrlExpiresAt:
|
|
2848
|
-
|
|
2849
|
-
: undefined,
|
|
2850
|
-
};
|
|
2851
|
-
};
|
|
2852
|
-
const de_ImportAssetsFromLakeFormationTagPolicyResponseDetails = (output, context) => {
|
|
2853
|
-
return {
|
|
2854
|
-
CatalogId: (0, smithy_client_1.expectString)(output.CatalogId),
|
|
2855
|
-
DataSetId: (0, smithy_client_1.expectString)(output.DataSetId),
|
|
2856
|
-
Database: output.Database != null ? de_DatabaseLFTagPolicyAndPermissions(output.Database, context) : undefined,
|
|
2857
|
-
RevisionId: (0, smithy_client_1.expectString)(output.RevisionId),
|
|
2858
|
-
RoleArn: (0, smithy_client_1.expectString)(output.RoleArn),
|
|
2859
|
-
Table: output.Table != null ? de_TableLFTagPolicyAndPermissions(output.Table, context) : undefined,
|
|
2860
|
-
};
|
|
2861
|
-
};
|
|
2862
|
-
const de_ImportAssetsFromRedshiftDataSharesResponseDetails = (output, context) => {
|
|
2863
|
-
return {
|
|
2864
|
-
AssetSources: output.AssetSources != null
|
|
2865
|
-
? de_ListOfRedshiftDataShareAssetSourceEntry(output.AssetSources, context)
|
|
2866
|
-
: undefined,
|
|
2867
|
-
DataSetId: (0, smithy_client_1.expectString)(output.DataSetId),
|
|
2868
|
-
RevisionId: (0, smithy_client_1.expectString)(output.RevisionId),
|
|
2869
|
-
};
|
|
2870
|
-
};
|
|
2871
|
-
const de_ImportAssetsFromS3ResponseDetails = (output, context) => {
|
|
2872
|
-
return {
|
|
2873
|
-
AssetSources: output.AssetSources != null ? de_ListOfAssetSourceEntry(output.AssetSources, context) : undefined,
|
|
2874
|
-
DataSetId: (0, smithy_client_1.expectString)(output.DataSetId),
|
|
2875
|
-
RevisionId: (0, smithy_client_1.expectString)(output.RevisionId),
|
|
2876
|
-
};
|
|
2186
|
+
return (0, smithy_client_1.take)(output, {
|
|
2187
|
+
AssetName: smithy_client_1.expectString,
|
|
2188
|
+
DataSetId: smithy_client_1.expectString,
|
|
2189
|
+
Md5Hash: smithy_client_1.expectString,
|
|
2190
|
+
RevisionId: smithy_client_1.expectString,
|
|
2191
|
+
SignedUrl: smithy_client_1.expectString,
|
|
2192
|
+
SignedUrlExpiresAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
2193
|
+
});
|
|
2877
2194
|
};
|
|
2878
2195
|
const de_JobEntry = (output, context) => {
|
|
2879
|
-
return {
|
|
2880
|
-
Arn:
|
|
2881
|
-
CreatedAt:
|
|
2882
|
-
Details:
|
|
2883
|
-
Errors:
|
|
2884
|
-
Id:
|
|
2885
|
-
State:
|
|
2886
|
-
Type:
|
|
2887
|
-
UpdatedAt:
|
|
2888
|
-
};
|
|
2889
|
-
};
|
|
2890
|
-
const de_JobError = (output, context) => {
|
|
2891
|
-
return {
|
|
2892
|
-
Code: (0, smithy_client_1.expectString)(output.Code),
|
|
2893
|
-
Details: output.Details != null ? de_Details(output.Details, context) : undefined,
|
|
2894
|
-
LimitName: (0, smithy_client_1.expectString)(output.LimitName),
|
|
2895
|
-
LimitValue: (0, smithy_client_1.limitedParseDouble)(output.LimitValue),
|
|
2896
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
2897
|
-
ResourceId: (0, smithy_client_1.expectString)(output.ResourceId),
|
|
2898
|
-
ResourceType: (0, smithy_client_1.expectString)(output.ResourceType),
|
|
2899
|
-
};
|
|
2900
|
-
};
|
|
2901
|
-
const de_KmsKeyToGrant = (output, context) => {
|
|
2902
|
-
return {
|
|
2903
|
-
KmsKeyArn: (0, smithy_client_1.expectString)(output.KmsKeyArn),
|
|
2904
|
-
};
|
|
2905
|
-
};
|
|
2906
|
-
const de_LakeFormationDataPermissionAsset = (output, context) => {
|
|
2907
|
-
return {
|
|
2908
|
-
LakeFormationDataPermissionDetails: output.LakeFormationDataPermissionDetails != null
|
|
2909
|
-
? de_LakeFormationDataPermissionDetails(output.LakeFormationDataPermissionDetails, context)
|
|
2910
|
-
: undefined,
|
|
2911
|
-
LakeFormationDataPermissionType: (0, smithy_client_1.expectString)(output.LakeFormationDataPermissionType),
|
|
2912
|
-
Permissions: output.Permissions != null ? de_ListOfLFPermissions(output.Permissions, context) : undefined,
|
|
2913
|
-
RoleArn: (0, smithy_client_1.expectString)(output.RoleArn),
|
|
2914
|
-
};
|
|
2915
|
-
};
|
|
2916
|
-
const de_LakeFormationDataPermissionDetails = (output, context) => {
|
|
2917
|
-
return {
|
|
2918
|
-
LFTagPolicy: output.LFTagPolicy != null ? de_LFTagPolicyDetails(output.LFTagPolicy, context) : undefined,
|
|
2919
|
-
};
|
|
2920
|
-
};
|
|
2921
|
-
const de_LFResourceDetails = (output, context) => {
|
|
2922
|
-
return {
|
|
2923
|
-
Database: output.Database != null ? de_DatabaseLFTagPolicy(output.Database, context) : undefined,
|
|
2924
|
-
Table: output.Table != null ? de_TableLFTagPolicy(output.Table, context) : undefined,
|
|
2925
|
-
};
|
|
2926
|
-
};
|
|
2927
|
-
const de_LFTag = (output, context) => {
|
|
2928
|
-
return {
|
|
2929
|
-
TagKey: (0, smithy_client_1.expectString)(output.TagKey),
|
|
2930
|
-
TagValues: output.TagValues != null ? de_ListOfLFTagValues(output.TagValues, context) : undefined,
|
|
2931
|
-
};
|
|
2932
|
-
};
|
|
2933
|
-
const de_LFTagPolicyDetails = (output, context) => {
|
|
2934
|
-
return {
|
|
2935
|
-
CatalogId: (0, smithy_client_1.expectString)(output.CatalogId),
|
|
2936
|
-
ResourceDetails: output.ResourceDetails != null ? de_LFResourceDetails(output.ResourceDetails, context) : undefined,
|
|
2937
|
-
ResourceType: (0, smithy_client_1.expectString)(output.ResourceType),
|
|
2938
|
-
};
|
|
2939
|
-
};
|
|
2940
|
-
const de_ListOf__string = (output, context) => {
|
|
2941
|
-
const retVal = (output || [])
|
|
2942
|
-
.filter((e) => e != null)
|
|
2943
|
-
.map((entry) => {
|
|
2944
|
-
if (entry === null) {
|
|
2945
|
-
return null;
|
|
2946
|
-
}
|
|
2947
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
2196
|
+
return (0, smithy_client_1.take)(output, {
|
|
2197
|
+
Arn: smithy_client_1.expectString,
|
|
2198
|
+
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
2199
|
+
Details: (_) => de_ResponseDetails(_, context),
|
|
2200
|
+
Errors: (_) => de_ListOfJobError(_, context),
|
|
2201
|
+
Id: smithy_client_1.expectString,
|
|
2202
|
+
State: smithy_client_1.expectString,
|
|
2203
|
+
Type: smithy_client_1.expectString,
|
|
2204
|
+
UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
2948
2205
|
});
|
|
2949
|
-
return retVal;
|
|
2950
2206
|
};
|
|
2951
|
-
const
|
|
2952
|
-
|
|
2953
|
-
.
|
|
2954
|
-
.
|
|
2955
|
-
|
|
2956
|
-
|
|
2957
|
-
|
|
2958
|
-
|
|
2207
|
+
const de_JobError = (output, context) => {
|
|
2208
|
+
return (0, smithy_client_1.take)(output, {
|
|
2209
|
+
Code: smithy_client_1.expectString,
|
|
2210
|
+
Details: smithy_client_1._json,
|
|
2211
|
+
LimitName: smithy_client_1.expectString,
|
|
2212
|
+
LimitValue: smithy_client_1.limitedParseDouble,
|
|
2213
|
+
Message: smithy_client_1.expectString,
|
|
2214
|
+
ResourceId: smithy_client_1.expectString,
|
|
2215
|
+
ResourceType: smithy_client_1.expectString,
|
|
2959
2216
|
});
|
|
2960
|
-
return retVal;
|
|
2961
2217
|
};
|
|
2962
2218
|
const de_ListOfAssetEntry = (output, context) => {
|
|
2963
2219
|
const retVal = (output || [])
|
|
2964
2220
|
.filter((e) => e != null)
|
|
2965
2221
|
.map((entry) => {
|
|
2966
|
-
if (entry === null) {
|
|
2967
|
-
return null;
|
|
2968
|
-
}
|
|
2969
2222
|
return de_AssetEntry(entry, context);
|
|
2970
2223
|
});
|
|
2971
2224
|
return retVal;
|
|
2972
2225
|
};
|
|
2973
|
-
const de_ListOfAssetSourceEntry = (output, context) => {
|
|
2974
|
-
const retVal = (output || [])
|
|
2975
|
-
.filter((e) => e != null)
|
|
2976
|
-
.map((entry) => {
|
|
2977
|
-
if (entry === null) {
|
|
2978
|
-
return null;
|
|
2979
|
-
}
|
|
2980
|
-
return de_AssetSourceEntry(entry, context);
|
|
2981
|
-
});
|
|
2982
|
-
return retVal;
|
|
2983
|
-
};
|
|
2984
|
-
const de_ListOfDatabaseLFTagPolicyPermissions = (output, context) => {
|
|
2985
|
-
const retVal = (output || [])
|
|
2986
|
-
.filter((e) => e != null)
|
|
2987
|
-
.map((entry) => {
|
|
2988
|
-
if (entry === null) {
|
|
2989
|
-
return null;
|
|
2990
|
-
}
|
|
2991
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
2992
|
-
});
|
|
2993
|
-
return retVal;
|
|
2994
|
-
};
|
|
2995
2226
|
const de_ListOfDataSetEntry = (output, context) => {
|
|
2996
2227
|
const retVal = (output || [])
|
|
2997
2228
|
.filter((e) => e != null)
|
|
2998
2229
|
.map((entry) => {
|
|
2999
|
-
if (entry === null) {
|
|
3000
|
-
return null;
|
|
3001
|
-
}
|
|
3002
2230
|
return de_DataSetEntry(entry, context);
|
|
3003
2231
|
});
|
|
3004
2232
|
return retVal;
|
|
@@ -3007,9 +2235,6 @@ const de_ListOfEventActionEntry = (output, context) => {
|
|
|
3007
2235
|
const retVal = (output || [])
|
|
3008
2236
|
.filter((e) => e != null)
|
|
3009
2237
|
.map((entry) => {
|
|
3010
|
-
if (entry === null) {
|
|
3011
|
-
return null;
|
|
3012
|
-
}
|
|
3013
2238
|
return de_EventActionEntry(entry, context);
|
|
3014
2239
|
});
|
|
3015
2240
|
return retVal;
|
|
@@ -3018,9 +2243,6 @@ const de_ListOfJobEntry = (output, context) => {
|
|
|
3018
2243
|
const retVal = (output || [])
|
|
3019
2244
|
.filter((e) => e != null)
|
|
3020
2245
|
.map((entry) => {
|
|
3021
|
-
if (entry === null) {
|
|
3022
|
-
return null;
|
|
3023
|
-
}
|
|
3024
2246
|
return de_JobEntry(entry, context);
|
|
3025
2247
|
});
|
|
3026
2248
|
return retVal;
|
|
@@ -3029,216 +2251,50 @@ const de_ListOfJobError = (output, context) => {
|
|
|
3029
2251
|
const retVal = (output || [])
|
|
3030
2252
|
.filter((e) => e != null)
|
|
3031
2253
|
.map((entry) => {
|
|
3032
|
-
if (entry === null) {
|
|
3033
|
-
return null;
|
|
3034
|
-
}
|
|
3035
2254
|
return de_JobError(entry, context);
|
|
3036
2255
|
});
|
|
3037
2256
|
return retVal;
|
|
3038
2257
|
};
|
|
3039
|
-
const de_ListOfKmsKeysToGrant = (output, context) => {
|
|
3040
|
-
const retVal = (output || [])
|
|
3041
|
-
.filter((e) => e != null)
|
|
3042
|
-
.map((entry) => {
|
|
3043
|
-
if (entry === null) {
|
|
3044
|
-
return null;
|
|
3045
|
-
}
|
|
3046
|
-
return de_KmsKeyToGrant(entry, context);
|
|
3047
|
-
});
|
|
3048
|
-
return retVal;
|
|
3049
|
-
};
|
|
3050
|
-
const de_ListOfLFPermissions = (output, context) => {
|
|
3051
|
-
const retVal = (output || [])
|
|
3052
|
-
.filter((e) => e != null)
|
|
3053
|
-
.map((entry) => {
|
|
3054
|
-
if (entry === null) {
|
|
3055
|
-
return null;
|
|
3056
|
-
}
|
|
3057
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
3058
|
-
});
|
|
3059
|
-
return retVal;
|
|
3060
|
-
};
|
|
3061
|
-
const de_ListOfLFTags = (output, context) => {
|
|
3062
|
-
const retVal = (output || [])
|
|
3063
|
-
.filter((e) => e != null)
|
|
3064
|
-
.map((entry) => {
|
|
3065
|
-
if (entry === null) {
|
|
3066
|
-
return null;
|
|
3067
|
-
}
|
|
3068
|
-
return de_LFTag(entry, context);
|
|
3069
|
-
});
|
|
3070
|
-
return retVal;
|
|
3071
|
-
};
|
|
3072
|
-
const de_ListOfLFTagValues = (output, context) => {
|
|
3073
|
-
const retVal = (output || [])
|
|
3074
|
-
.filter((e) => e != null)
|
|
3075
|
-
.map((entry) => {
|
|
3076
|
-
if (entry === null) {
|
|
3077
|
-
return null;
|
|
3078
|
-
}
|
|
3079
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
3080
|
-
});
|
|
3081
|
-
return retVal;
|
|
3082
|
-
};
|
|
3083
|
-
const de_ListOfRedshiftDataShareAssetSourceEntry = (output, context) => {
|
|
3084
|
-
const retVal = (output || [])
|
|
3085
|
-
.filter((e) => e != null)
|
|
3086
|
-
.map((entry) => {
|
|
3087
|
-
if (entry === null) {
|
|
3088
|
-
return null;
|
|
3089
|
-
}
|
|
3090
|
-
return de_RedshiftDataShareAssetSourceEntry(entry, context);
|
|
3091
|
-
});
|
|
3092
|
-
return retVal;
|
|
3093
|
-
};
|
|
3094
|
-
const de_ListOfRevisionDestinationEntry = (output, context) => {
|
|
3095
|
-
const retVal = (output || [])
|
|
3096
|
-
.filter((e) => e != null)
|
|
3097
|
-
.map((entry) => {
|
|
3098
|
-
if (entry === null) {
|
|
3099
|
-
return null;
|
|
3100
|
-
}
|
|
3101
|
-
return de_RevisionDestinationEntry(entry, context);
|
|
3102
|
-
});
|
|
3103
|
-
return retVal;
|
|
3104
|
-
};
|
|
3105
2258
|
const de_ListOfRevisionEntry = (output, context) => {
|
|
3106
2259
|
const retVal = (output || [])
|
|
3107
2260
|
.filter((e) => e != null)
|
|
3108
2261
|
.map((entry) => {
|
|
3109
|
-
if (entry === null) {
|
|
3110
|
-
return null;
|
|
3111
|
-
}
|
|
3112
2262
|
return de_RevisionEntry(entry, context);
|
|
3113
2263
|
});
|
|
3114
2264
|
return retVal;
|
|
3115
2265
|
};
|
|
3116
|
-
const de_ListOfTableTagPolicyLFPermissions = (output, context) => {
|
|
3117
|
-
const retVal = (output || [])
|
|
3118
|
-
.filter((e) => e != null)
|
|
3119
|
-
.map((entry) => {
|
|
3120
|
-
if (entry === null) {
|
|
3121
|
-
return null;
|
|
3122
|
-
}
|
|
3123
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
3124
|
-
});
|
|
3125
|
-
return retVal;
|
|
3126
|
-
};
|
|
3127
|
-
const de_MapOf__string = (output, context) => {
|
|
3128
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3129
|
-
if (value === null) {
|
|
3130
|
-
return acc;
|
|
3131
|
-
}
|
|
3132
|
-
acc[key] = (0, smithy_client_1.expectString)(value);
|
|
3133
|
-
return acc;
|
|
3134
|
-
}, {});
|
|
3135
|
-
};
|
|
3136
|
-
const de_OriginDetails = (output, context) => {
|
|
3137
|
-
return {
|
|
3138
|
-
ProductId: (0, smithy_client_1.expectString)(output.ProductId),
|
|
3139
|
-
};
|
|
3140
|
-
};
|
|
3141
|
-
const de_RedshiftDataShareAsset = (output, context) => {
|
|
3142
|
-
return {
|
|
3143
|
-
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
3144
|
-
};
|
|
3145
|
-
};
|
|
3146
|
-
const de_RedshiftDataShareAssetSourceEntry = (output, context) => {
|
|
3147
|
-
return {
|
|
3148
|
-
DataShareArn: (0, smithy_client_1.expectString)(output.DataShareArn),
|
|
3149
|
-
};
|
|
3150
|
-
};
|
|
3151
2266
|
const de_ResponseDetails = (output, context) => {
|
|
3152
|
-
return {
|
|
3153
|
-
CreateS3DataAccessFromS3Bucket:
|
|
3154
|
-
|
|
3155
|
-
|
|
3156
|
-
|
|
3157
|
-
|
|
3158
|
-
|
|
3159
|
-
|
|
3160
|
-
|
|
3161
|
-
|
|
3162
|
-
|
|
3163
|
-
? de_ExportRevisionsToS3ResponseDetails(output.ExportRevisionsToS3, context)
|
|
3164
|
-
: undefined,
|
|
3165
|
-
ImportAssetFromApiGatewayApi: output.ImportAssetFromApiGatewayApi != null
|
|
3166
|
-
? de_ImportAssetFromApiGatewayApiResponseDetails(output.ImportAssetFromApiGatewayApi, context)
|
|
3167
|
-
: undefined,
|
|
3168
|
-
ImportAssetFromSignedUrl: output.ImportAssetFromSignedUrl != null
|
|
3169
|
-
? de_ImportAssetFromSignedUrlResponseDetails(output.ImportAssetFromSignedUrl, context)
|
|
3170
|
-
: undefined,
|
|
3171
|
-
ImportAssetsFromLakeFormationTagPolicy: output.ImportAssetsFromLakeFormationTagPolicy != null
|
|
3172
|
-
? de_ImportAssetsFromLakeFormationTagPolicyResponseDetails(output.ImportAssetsFromLakeFormationTagPolicy, context)
|
|
3173
|
-
: undefined,
|
|
3174
|
-
ImportAssetsFromRedshiftDataShares: output.ImportAssetsFromRedshiftDataShares != null
|
|
3175
|
-
? de_ImportAssetsFromRedshiftDataSharesResponseDetails(output.ImportAssetsFromRedshiftDataShares, context)
|
|
3176
|
-
: undefined,
|
|
3177
|
-
ImportAssetsFromS3: output.ImportAssetsFromS3 != null
|
|
3178
|
-
? de_ImportAssetsFromS3ResponseDetails(output.ImportAssetsFromS3, context)
|
|
3179
|
-
: undefined,
|
|
3180
|
-
};
|
|
3181
|
-
};
|
|
3182
|
-
const de_RevisionDestinationEntry = (output, context) => {
|
|
3183
|
-
return {
|
|
3184
|
-
Bucket: (0, smithy_client_1.expectString)(output.Bucket),
|
|
3185
|
-
KeyPattern: (0, smithy_client_1.expectString)(output.KeyPattern),
|
|
3186
|
-
RevisionId: (0, smithy_client_1.expectString)(output.RevisionId),
|
|
3187
|
-
};
|
|
2267
|
+
return (0, smithy_client_1.take)(output, {
|
|
2268
|
+
CreateS3DataAccessFromS3Bucket: smithy_client_1._json,
|
|
2269
|
+
ExportAssetToSignedUrl: (_) => de_ExportAssetToSignedUrlResponseDetails(_, context),
|
|
2270
|
+
ExportAssetsToS3: smithy_client_1._json,
|
|
2271
|
+
ExportRevisionsToS3: smithy_client_1._json,
|
|
2272
|
+
ImportAssetFromApiGatewayApi: (_) => de_ImportAssetFromApiGatewayApiResponseDetails(_, context),
|
|
2273
|
+
ImportAssetFromSignedUrl: (_) => de_ImportAssetFromSignedUrlResponseDetails(_, context),
|
|
2274
|
+
ImportAssetsFromLakeFormationTagPolicy: smithy_client_1._json,
|
|
2275
|
+
ImportAssetsFromRedshiftDataShares: smithy_client_1._json,
|
|
2276
|
+
ImportAssetsFromS3: smithy_client_1._json,
|
|
2277
|
+
});
|
|
3188
2278
|
};
|
|
3189
2279
|
const de_RevisionEntry = (output, context) => {
|
|
3190
|
-
return {
|
|
3191
|
-
Arn:
|
|
3192
|
-
Comment:
|
|
3193
|
-
CreatedAt:
|
|
3194
|
-
DataSetId:
|
|
3195
|
-
Finalized:
|
|
3196
|
-
Id:
|
|
3197
|
-
RevocationComment:
|
|
3198
|
-
Revoked:
|
|
3199
|
-
RevokedAt:
|
|
3200
|
-
SourceId:
|
|
3201
|
-
UpdatedAt:
|
|
3202
|
-
};
|
|
3203
|
-
};
|
|
3204
|
-
const de_RevisionPublished = (output, context) => {
|
|
3205
|
-
return {
|
|
3206
|
-
DataSetId: (0, smithy_client_1.expectString)(output.DataSetId),
|
|
3207
|
-
};
|
|
3208
|
-
};
|
|
3209
|
-
const de_S3DataAccessAsset = (output, context) => {
|
|
3210
|
-
return {
|
|
3211
|
-
Bucket: (0, smithy_client_1.expectString)(output.Bucket),
|
|
3212
|
-
KeyPrefixes: output.KeyPrefixes != null ? de_ListOf__string(output.KeyPrefixes, context) : undefined,
|
|
3213
|
-
Keys: output.Keys != null ? de_ListOf__string(output.Keys, context) : undefined,
|
|
3214
|
-
KmsKeysToGrant: output.KmsKeysToGrant != null ? de_ListOfKmsKeysToGrant(output.KmsKeysToGrant, context) : undefined,
|
|
3215
|
-
S3AccessPointAlias: (0, smithy_client_1.expectString)(output.S3AccessPointAlias),
|
|
3216
|
-
S3AccessPointArn: (0, smithy_client_1.expectString)(output.S3AccessPointArn),
|
|
3217
|
-
};
|
|
3218
|
-
};
|
|
3219
|
-
const de_S3DataAccessAssetSourceEntry = (output, context) => {
|
|
3220
|
-
return {
|
|
3221
|
-
Bucket: (0, smithy_client_1.expectString)(output.Bucket),
|
|
3222
|
-
KeyPrefixes: output.KeyPrefixes != null ? de_ListOf__string(output.KeyPrefixes, context) : undefined,
|
|
3223
|
-
Keys: output.Keys != null ? de_ListOf__string(output.Keys, context) : undefined,
|
|
3224
|
-
KmsKeysToGrant: output.KmsKeysToGrant != null ? de_ListOfKmsKeysToGrant(output.KmsKeysToGrant, context) : undefined,
|
|
3225
|
-
};
|
|
2280
|
+
return (0, smithy_client_1.take)(output, {
|
|
2281
|
+
Arn: smithy_client_1.expectString,
|
|
2282
|
+
Comment: smithy_client_1.expectString,
|
|
2283
|
+
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
2284
|
+
DataSetId: smithy_client_1.expectString,
|
|
2285
|
+
Finalized: smithy_client_1.expectBoolean,
|
|
2286
|
+
Id: smithy_client_1.expectString,
|
|
2287
|
+
RevocationComment: smithy_client_1.expectString,
|
|
2288
|
+
Revoked: smithy_client_1.expectBoolean,
|
|
2289
|
+
RevokedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
2290
|
+
SourceId: smithy_client_1.expectString,
|
|
2291
|
+
UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
2292
|
+
});
|
|
3226
2293
|
};
|
|
3227
2294
|
const de_S3SnapshotAsset = (output, context) => {
|
|
3228
|
-
return {
|
|
3229
|
-
Size:
|
|
3230
|
-
};
|
|
3231
|
-
};
|
|
3232
|
-
const de_TableLFTagPolicy = (output, context) => {
|
|
3233
|
-
return {
|
|
3234
|
-
Expression: output.Expression != null ? de_ListOfLFTags(output.Expression, context) : undefined,
|
|
3235
|
-
};
|
|
3236
|
-
};
|
|
3237
|
-
const de_TableLFTagPolicyAndPermissions = (output, context) => {
|
|
3238
|
-
return {
|
|
3239
|
-
Expression: output.Expression != null ? de_ListOfLFTags(output.Expression, context) : undefined,
|
|
3240
|
-
Permissions: output.Permissions != null ? de_ListOfTableTagPolicyLFPermissions(output.Permissions, context) : undefined,
|
|
3241
|
-
};
|
|
2295
|
+
return (0, smithy_client_1.take)(output, {
|
|
2296
|
+
Size: smithy_client_1.limitedParseDouble,
|
|
2297
|
+
});
|
|
3242
2298
|
};
|
|
3243
2299
|
const deserializeMetadata = (output) => ({
|
|
3244
2300
|
httpStatusCode: output.statusCode,
|