@aws-sdk/client-schemas 3.310.0 → 3.315.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/protocols/Aws_restJson1.js +368 -581
- package/dist-es/protocols/Aws_restJson1.js +314 -527
- package/package.json +6 -6
|
@@ -14,12 +14,12 @@ const se_CreateDiscovererCommand = async (input, context) => {
|
|
|
14
14
|
};
|
|
15
15
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/discoverers";
|
|
16
16
|
let body;
|
|
17
|
-
body = JSON.stringify({
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
});
|
|
17
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
18
|
+
CrossAccount: [],
|
|
19
|
+
Description: [],
|
|
20
|
+
SourceArn: [],
|
|
21
|
+
tags: [, (_) => (0, smithy_client_1._json)(_), `Tags`],
|
|
22
|
+
}));
|
|
23
23
|
return new protocol_http_1.HttpRequest({
|
|
24
24
|
protocol,
|
|
25
25
|
hostname,
|
|
@@ -39,10 +39,10 @@ const se_CreateRegistryCommand = async (input, context) => {
|
|
|
39
39
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/registries/name/{RegistryName}";
|
|
40
40
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RegistryName", () => input.RegistryName, "{RegistryName}", false);
|
|
41
41
|
let body;
|
|
42
|
-
body = JSON.stringify({
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
});
|
|
42
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
43
|
+
Description: [],
|
|
44
|
+
tags: [, (_) => (0, smithy_client_1._json)(_), `Tags`],
|
|
45
|
+
}));
|
|
46
46
|
return new protocol_http_1.HttpRequest({
|
|
47
47
|
protocol,
|
|
48
48
|
hostname,
|
|
@@ -64,12 +64,12 @@ const se_CreateSchemaCommand = async (input, context) => {
|
|
|
64
64
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RegistryName", () => input.RegistryName, "{RegistryName}", false);
|
|
65
65
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SchemaName", () => input.SchemaName, "{SchemaName}", false);
|
|
66
66
|
let body;
|
|
67
|
-
body = JSON.stringify({
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
});
|
|
67
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
68
|
+
Content: [],
|
|
69
|
+
Description: [],
|
|
70
|
+
tags: [, (_) => (0, smithy_client_1._json)(_), `Tags`],
|
|
71
|
+
Type: [],
|
|
72
|
+
}));
|
|
73
73
|
return new protocol_http_1.HttpRequest({
|
|
74
74
|
protocol,
|
|
75
75
|
hostname,
|
|
@@ -119,7 +119,7 @@ const se_DeleteResourcePolicyCommand = async (input, context) => {
|
|
|
119
119
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
120
120
|
const headers = {};
|
|
121
121
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/policy";
|
|
122
|
-
const query = map({
|
|
122
|
+
const query = (0, smithy_client_1.map)({
|
|
123
123
|
registryName: [, input.RegistryName],
|
|
124
124
|
});
|
|
125
125
|
let body;
|
|
@@ -182,7 +182,7 @@ const se_DescribeCodeBindingCommand = async (input, context) => {
|
|
|
182
182
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Language", () => input.Language, "{Language}", false);
|
|
183
183
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RegistryName", () => input.RegistryName, "{RegistryName}", false);
|
|
184
184
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SchemaName", () => input.SchemaName, "{SchemaName}", false);
|
|
185
|
-
const query = map({
|
|
185
|
+
const query = (0, smithy_client_1.map)({
|
|
186
186
|
schemaVersion: [, input.SchemaVersion],
|
|
187
187
|
});
|
|
188
188
|
let body;
|
|
@@ -239,7 +239,7 @@ const se_DescribeSchemaCommand = async (input, context) => {
|
|
|
239
239
|
"/v1/registries/name/{RegistryName}/schemas/name/{SchemaName}";
|
|
240
240
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RegistryName", () => input.RegistryName, "{RegistryName}", false);
|
|
241
241
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SchemaName", () => input.SchemaName, "{SchemaName}", false);
|
|
242
|
-
const query = map({
|
|
242
|
+
const query = (0, smithy_client_1.map)({
|
|
243
243
|
schemaVersion: [, input.SchemaVersion],
|
|
244
244
|
});
|
|
245
245
|
let body;
|
|
@@ -262,7 +262,7 @@ const se_ExportSchemaCommand = async (input, context) => {
|
|
|
262
262
|
"/v1/registries/name/{RegistryName}/schemas/name/{SchemaName}/export";
|
|
263
263
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RegistryName", () => input.RegistryName, "{RegistryName}", false);
|
|
264
264
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SchemaName", () => input.SchemaName, "{SchemaName}", false);
|
|
265
|
-
const query = map({
|
|
265
|
+
const query = (0, smithy_client_1.map)({
|
|
266
266
|
schemaVersion: [, input.SchemaVersion],
|
|
267
267
|
type: [, (0, smithy_client_1.expectNonNull)(input.Type, `Type`)],
|
|
268
268
|
});
|
|
@@ -287,7 +287,7 @@ const se_GetCodeBindingSourceCommand = async (input, context) => {
|
|
|
287
287
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Language", () => input.Language, "{Language}", false);
|
|
288
288
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RegistryName", () => input.RegistryName, "{RegistryName}", false);
|
|
289
289
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SchemaName", () => input.SchemaName, "{SchemaName}", false);
|
|
290
|
-
const query = map({
|
|
290
|
+
const query = (0, smithy_client_1.map)({
|
|
291
291
|
schemaVersion: [, input.SchemaVersion],
|
|
292
292
|
});
|
|
293
293
|
let body;
|
|
@@ -310,10 +310,10 @@ const se_GetDiscoveredSchemaCommand = async (input, context) => {
|
|
|
310
310
|
};
|
|
311
311
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/discover";
|
|
312
312
|
let body;
|
|
313
|
-
body = JSON.stringify({
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
});
|
|
313
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
314
|
+
Events: (_) => (0, smithy_client_1._json)(_),
|
|
315
|
+
Type: [],
|
|
316
|
+
}));
|
|
317
317
|
return new protocol_http_1.HttpRequest({
|
|
318
318
|
protocol,
|
|
319
319
|
hostname,
|
|
@@ -329,7 +329,7 @@ const se_GetResourcePolicyCommand = async (input, context) => {
|
|
|
329
329
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
330
330
|
const headers = {};
|
|
331
331
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/policy";
|
|
332
|
-
const query = map({
|
|
332
|
+
const query = (0, smithy_client_1.map)({
|
|
333
333
|
registryName: [, input.RegistryName],
|
|
334
334
|
});
|
|
335
335
|
let body;
|
|
@@ -349,7 +349,7 @@ const se_ListDiscoverersCommand = async (input, context) => {
|
|
|
349
349
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
350
350
|
const headers = {};
|
|
351
351
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/discoverers";
|
|
352
|
-
const query = map({
|
|
352
|
+
const query = (0, smithy_client_1.map)({
|
|
353
353
|
discovererIdPrefix: [, input.DiscovererIdPrefix],
|
|
354
354
|
limit: [() => input.Limit !== void 0, () => input.Limit.toString()],
|
|
355
355
|
nextToken: [, input.NextToken],
|
|
@@ -372,7 +372,7 @@ const se_ListRegistriesCommand = async (input, context) => {
|
|
|
372
372
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
373
373
|
const headers = {};
|
|
374
374
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/registries";
|
|
375
|
-
const query = map({
|
|
375
|
+
const query = (0, smithy_client_1.map)({
|
|
376
376
|
limit: [() => input.Limit !== void 0, () => input.Limit.toString()],
|
|
377
377
|
nextToken: [, input.NextToken],
|
|
378
378
|
registryNamePrefix: [, input.RegistryNamePrefix],
|
|
@@ -397,7 +397,7 @@ const se_ListSchemasCommand = async (input, context) => {
|
|
|
397
397
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
398
398
|
"/v1/registries/name/{RegistryName}/schemas";
|
|
399
399
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RegistryName", () => input.RegistryName, "{RegistryName}", false);
|
|
400
|
-
const query = map({
|
|
400
|
+
const query = (0, smithy_client_1.map)({
|
|
401
401
|
limit: [() => input.Limit !== void 0, () => input.Limit.toString()],
|
|
402
402
|
nextToken: [, input.NextToken],
|
|
403
403
|
schemaNamePrefix: [, input.SchemaNamePrefix],
|
|
@@ -422,7 +422,7 @@ const se_ListSchemaVersionsCommand = async (input, context) => {
|
|
|
422
422
|
"/v1/registries/name/{RegistryName}/schemas/name/{SchemaName}/versions";
|
|
423
423
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RegistryName", () => input.RegistryName, "{RegistryName}", false);
|
|
424
424
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SchemaName", () => input.SchemaName, "{SchemaName}", false);
|
|
425
|
-
const query = map({
|
|
425
|
+
const query = (0, smithy_client_1.map)({
|
|
426
426
|
limit: [() => input.Limit !== void 0, () => input.Limit.toString()],
|
|
427
427
|
nextToken: [, input.NextToken],
|
|
428
428
|
});
|
|
@@ -464,7 +464,7 @@ const se_PutCodeBindingCommand = async (input, context) => {
|
|
|
464
464
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Language", () => input.Language, "{Language}", false);
|
|
465
465
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RegistryName", () => input.RegistryName, "{RegistryName}", false);
|
|
466
466
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SchemaName", () => input.SchemaName, "{SchemaName}", false);
|
|
467
|
-
const query = map({
|
|
467
|
+
const query = (0, smithy_client_1.map)({
|
|
468
468
|
schemaVersion: [, input.SchemaVersion],
|
|
469
469
|
});
|
|
470
470
|
let body;
|
|
@@ -486,14 +486,14 @@ const se_PutResourcePolicyCommand = async (input, context) => {
|
|
|
486
486
|
"content-type": "application/json",
|
|
487
487
|
};
|
|
488
488
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/policy";
|
|
489
|
-
const query = map({
|
|
489
|
+
const query = (0, smithy_client_1.map)({
|
|
490
490
|
registryName: [, input.RegistryName],
|
|
491
491
|
});
|
|
492
492
|
let body;
|
|
493
|
-
body = JSON.stringify({
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
});
|
|
493
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
494
|
+
Policy: (_) => smithy_client_1.LazyJsonString.fromObject(_),
|
|
495
|
+
RevisionId: [],
|
|
496
|
+
}));
|
|
497
497
|
return new protocol_http_1.HttpRequest({
|
|
498
498
|
protocol,
|
|
499
499
|
hostname,
|
|
@@ -512,7 +512,7 @@ const se_SearchSchemasCommand = async (input, context) => {
|
|
|
512
512
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
513
513
|
"/v1/registries/name/{RegistryName}/schemas/search";
|
|
514
514
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RegistryName", () => input.RegistryName, "{RegistryName}", false);
|
|
515
|
-
const query = map({
|
|
515
|
+
const query = (0, smithy_client_1.map)({
|
|
516
516
|
keywords: [, (0, smithy_client_1.expectNonNull)(input.Keywords, `Keywords`)],
|
|
517
517
|
limit: [() => input.Limit !== void 0, () => input.Limit.toString()],
|
|
518
518
|
nextToken: [, input.NextToken],
|
|
@@ -572,9 +572,9 @@ const se_TagResourceCommand = async (input, context) => {
|
|
|
572
572
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
|
|
573
573
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
574
574
|
let body;
|
|
575
|
-
body = JSON.stringify({
|
|
576
|
-
|
|
577
|
-
});
|
|
575
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
576
|
+
tags: [, (_) => (0, smithy_client_1._json)(_), `Tags`],
|
|
577
|
+
}));
|
|
578
578
|
return new protocol_http_1.HttpRequest({
|
|
579
579
|
protocol,
|
|
580
580
|
hostname,
|
|
@@ -591,7 +591,7 @@ const se_UntagResourceCommand = async (input, context) => {
|
|
|
591
591
|
const headers = {};
|
|
592
592
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
|
|
593
593
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
594
|
-
const query = map({
|
|
594
|
+
const query = (0, smithy_client_1.map)({
|
|
595
595
|
tagKeys: [
|
|
596
596
|
(0, smithy_client_1.expectNonNull)(input.TagKeys, `TagKeys`) != null,
|
|
597
597
|
() => (input.TagKeys || []).map((_entry) => _entry),
|
|
@@ -618,10 +618,10 @@ const se_UpdateDiscovererCommand = async (input, context) => {
|
|
|
618
618
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/discoverers/id/{DiscovererId}";
|
|
619
619
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DiscovererId", () => input.DiscovererId, "{DiscovererId}", false);
|
|
620
620
|
let body;
|
|
621
|
-
body = JSON.stringify({
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
});
|
|
621
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
622
|
+
CrossAccount: [],
|
|
623
|
+
Description: [],
|
|
624
|
+
}));
|
|
625
625
|
return new protocol_http_1.HttpRequest({
|
|
626
626
|
protocol,
|
|
627
627
|
hostname,
|
|
@@ -641,9 +641,9 @@ const se_UpdateRegistryCommand = async (input, context) => {
|
|
|
641
641
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/registries/name/{RegistryName}";
|
|
642
642
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RegistryName", () => input.RegistryName, "{RegistryName}", false);
|
|
643
643
|
let body;
|
|
644
|
-
body = JSON.stringify({
|
|
645
|
-
|
|
646
|
-
});
|
|
644
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
645
|
+
Description: [],
|
|
646
|
+
}));
|
|
647
647
|
return new protocol_http_1.HttpRequest({
|
|
648
648
|
protocol,
|
|
649
649
|
hostname,
|
|
@@ -665,12 +665,12 @@ const se_UpdateSchemaCommand = async (input, context) => {
|
|
|
665
665
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RegistryName", () => input.RegistryName, "{RegistryName}", false);
|
|
666
666
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SchemaName", () => input.SchemaName, "{SchemaName}", false);
|
|
667
667
|
let body;
|
|
668
|
-
body = JSON.stringify({
|
|
669
|
-
ClientTokenId:
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
});
|
|
668
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
669
|
+
ClientTokenId: (_) => _ ?? (0, uuid_1.v4)(),
|
|
670
|
+
Content: [],
|
|
671
|
+
Description: [],
|
|
672
|
+
Type: [],
|
|
673
|
+
}));
|
|
674
674
|
return new protocol_http_1.HttpRequest({
|
|
675
675
|
protocol,
|
|
676
676
|
hostname,
|
|
@@ -686,31 +686,20 @@ const de_CreateDiscovererCommand = async (output, context) => {
|
|
|
686
686
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
687
687
|
return de_CreateDiscovererCommandError(output, context);
|
|
688
688
|
}
|
|
689
|
-
const contents = map({
|
|
689
|
+
const contents = (0, smithy_client_1.map)({
|
|
690
690
|
$metadata: deserializeMetadata(output),
|
|
691
691
|
});
|
|
692
692
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
}
|
|
702
|
-
|
|
703
|
-
contents.DiscovererId = (0, smithy_client_1.expectString)(data.DiscovererId);
|
|
704
|
-
}
|
|
705
|
-
if (data.SourceArn != null) {
|
|
706
|
-
contents.SourceArn = (0, smithy_client_1.expectString)(data.SourceArn);
|
|
707
|
-
}
|
|
708
|
-
if (data.State != null) {
|
|
709
|
-
contents.State = (0, smithy_client_1.expectString)(data.State);
|
|
710
|
-
}
|
|
711
|
-
if (data.tags != null) {
|
|
712
|
-
contents.Tags = de_Tags(data.tags, context);
|
|
713
|
-
}
|
|
693
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
694
|
+
CrossAccount: smithy_client_1.expectBoolean,
|
|
695
|
+
Description: smithy_client_1.expectString,
|
|
696
|
+
DiscovererArn: smithy_client_1.expectString,
|
|
697
|
+
DiscovererId: smithy_client_1.expectString,
|
|
698
|
+
SourceArn: smithy_client_1.expectString,
|
|
699
|
+
State: smithy_client_1.expectString,
|
|
700
|
+
Tags: [, smithy_client_1._json, `tags`],
|
|
701
|
+
});
|
|
702
|
+
Object.assign(contents, doc);
|
|
714
703
|
return contents;
|
|
715
704
|
};
|
|
716
705
|
exports.de_CreateDiscovererCommand = de_CreateDiscovererCommand;
|
|
@@ -741,10 +730,9 @@ const de_CreateDiscovererCommandError = async (output, context) => {
|
|
|
741
730
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
742
731
|
default:
|
|
743
732
|
const parsedBody = parsedOutput.body;
|
|
744
|
-
|
|
733
|
+
return throwDefaultError({
|
|
745
734
|
output,
|
|
746
735
|
parsedBody,
|
|
747
|
-
exceptionCtor: SchemasServiceException_1.SchemasServiceException,
|
|
748
736
|
errorCode,
|
|
749
737
|
});
|
|
750
738
|
}
|
|
@@ -753,22 +741,17 @@ const de_CreateRegistryCommand = async (output, context) => {
|
|
|
753
741
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
754
742
|
return de_CreateRegistryCommandError(output, context);
|
|
755
743
|
}
|
|
756
|
-
const contents = map({
|
|
744
|
+
const contents = (0, smithy_client_1.map)({
|
|
757
745
|
$metadata: deserializeMetadata(output),
|
|
758
746
|
});
|
|
759
747
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
}
|
|
766
|
-
|
|
767
|
-
contents.RegistryName = (0, smithy_client_1.expectString)(data.RegistryName);
|
|
768
|
-
}
|
|
769
|
-
if (data.tags != null) {
|
|
770
|
-
contents.Tags = de_Tags(data.tags, context);
|
|
771
|
-
}
|
|
748
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
749
|
+
Description: smithy_client_1.expectString,
|
|
750
|
+
RegistryArn: smithy_client_1.expectString,
|
|
751
|
+
RegistryName: smithy_client_1.expectString,
|
|
752
|
+
Tags: [, smithy_client_1._json, `tags`],
|
|
753
|
+
});
|
|
754
|
+
Object.assign(contents, doc);
|
|
772
755
|
return contents;
|
|
773
756
|
};
|
|
774
757
|
exports.de_CreateRegistryCommand = de_CreateRegistryCommand;
|
|
@@ -799,10 +782,9 @@ const de_CreateRegistryCommandError = async (output, context) => {
|
|
|
799
782
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
800
783
|
default:
|
|
801
784
|
const parsedBody = parsedOutput.body;
|
|
802
|
-
|
|
785
|
+
return throwDefaultError({
|
|
803
786
|
output,
|
|
804
787
|
parsedBody,
|
|
805
|
-
exceptionCtor: SchemasServiceException_1.SchemasServiceException,
|
|
806
788
|
errorCode,
|
|
807
789
|
});
|
|
808
790
|
}
|
|
@@ -811,34 +793,21 @@ const de_CreateSchemaCommand = async (output, context) => {
|
|
|
811
793
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
812
794
|
return de_CreateSchemaCommandError(output, context);
|
|
813
795
|
}
|
|
814
|
-
const contents = map({
|
|
796
|
+
const contents = (0, smithy_client_1.map)({
|
|
815
797
|
$metadata: deserializeMetadata(output),
|
|
816
798
|
});
|
|
817
799
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
}
|
|
830
|
-
if (data.SchemaVersion != null) {
|
|
831
|
-
contents.SchemaVersion = (0, smithy_client_1.expectString)(data.SchemaVersion);
|
|
832
|
-
}
|
|
833
|
-
if (data.tags != null) {
|
|
834
|
-
contents.Tags = de_Tags(data.tags, context);
|
|
835
|
-
}
|
|
836
|
-
if (data.Type != null) {
|
|
837
|
-
contents.Type = (0, smithy_client_1.expectString)(data.Type);
|
|
838
|
-
}
|
|
839
|
-
if (data.VersionCreatedDate != null) {
|
|
840
|
-
contents.VersionCreatedDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.VersionCreatedDate));
|
|
841
|
-
}
|
|
800
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
801
|
+
Description: smithy_client_1.expectString,
|
|
802
|
+
LastModified: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
803
|
+
SchemaArn: smithy_client_1.expectString,
|
|
804
|
+
SchemaName: smithy_client_1.expectString,
|
|
805
|
+
SchemaVersion: smithy_client_1.expectString,
|
|
806
|
+
Tags: [, smithy_client_1._json, `tags`],
|
|
807
|
+
Type: smithy_client_1.expectString,
|
|
808
|
+
VersionCreatedDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
809
|
+
});
|
|
810
|
+
Object.assign(contents, doc);
|
|
842
811
|
return contents;
|
|
843
812
|
};
|
|
844
813
|
exports.de_CreateSchemaCommand = de_CreateSchemaCommand;
|
|
@@ -863,10 +832,9 @@ const de_CreateSchemaCommandError = async (output, context) => {
|
|
|
863
832
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
864
833
|
default:
|
|
865
834
|
const parsedBody = parsedOutput.body;
|
|
866
|
-
|
|
835
|
+
return throwDefaultError({
|
|
867
836
|
output,
|
|
868
837
|
parsedBody,
|
|
869
|
-
exceptionCtor: SchemasServiceException_1.SchemasServiceException,
|
|
870
838
|
errorCode,
|
|
871
839
|
});
|
|
872
840
|
}
|
|
@@ -875,7 +843,7 @@ const de_DeleteDiscovererCommand = async (output, context) => {
|
|
|
875
843
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
876
844
|
return de_DeleteDiscovererCommandError(output, context);
|
|
877
845
|
}
|
|
878
|
-
const contents = map({
|
|
846
|
+
const contents = (0, smithy_client_1.map)({
|
|
879
847
|
$metadata: deserializeMetadata(output),
|
|
880
848
|
});
|
|
881
849
|
await collectBody(output.body, context);
|
|
@@ -909,10 +877,9 @@ const de_DeleteDiscovererCommandError = async (output, context) => {
|
|
|
909
877
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
910
878
|
default:
|
|
911
879
|
const parsedBody = parsedOutput.body;
|
|
912
|
-
|
|
880
|
+
return throwDefaultError({
|
|
913
881
|
output,
|
|
914
882
|
parsedBody,
|
|
915
|
-
exceptionCtor: SchemasServiceException_1.SchemasServiceException,
|
|
916
883
|
errorCode,
|
|
917
884
|
});
|
|
918
885
|
}
|
|
@@ -921,7 +888,7 @@ const de_DeleteRegistryCommand = async (output, context) => {
|
|
|
921
888
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
922
889
|
return de_DeleteRegistryCommandError(output, context);
|
|
923
890
|
}
|
|
924
|
-
const contents = map({
|
|
891
|
+
const contents = (0, smithy_client_1.map)({
|
|
925
892
|
$metadata: deserializeMetadata(output),
|
|
926
893
|
});
|
|
927
894
|
await collectBody(output.body, context);
|
|
@@ -955,10 +922,9 @@ const de_DeleteRegistryCommandError = async (output, context) => {
|
|
|
955
922
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
956
923
|
default:
|
|
957
924
|
const parsedBody = parsedOutput.body;
|
|
958
|
-
|
|
925
|
+
return throwDefaultError({
|
|
959
926
|
output,
|
|
960
927
|
parsedBody,
|
|
961
|
-
exceptionCtor: SchemasServiceException_1.SchemasServiceException,
|
|
962
928
|
errorCode,
|
|
963
929
|
});
|
|
964
930
|
}
|
|
@@ -967,7 +933,7 @@ const de_DeleteResourcePolicyCommand = async (output, context) => {
|
|
|
967
933
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
968
934
|
return de_DeleteResourcePolicyCommandError(output, context);
|
|
969
935
|
}
|
|
970
|
-
const contents = map({
|
|
936
|
+
const contents = (0, smithy_client_1.map)({
|
|
971
937
|
$metadata: deserializeMetadata(output),
|
|
972
938
|
});
|
|
973
939
|
await collectBody(output.body, context);
|
|
@@ -1001,10 +967,9 @@ const de_DeleteResourcePolicyCommandError = async (output, context) => {
|
|
|
1001
967
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1002
968
|
default:
|
|
1003
969
|
const parsedBody = parsedOutput.body;
|
|
1004
|
-
|
|
970
|
+
return throwDefaultError({
|
|
1005
971
|
output,
|
|
1006
972
|
parsedBody,
|
|
1007
|
-
exceptionCtor: SchemasServiceException_1.SchemasServiceException,
|
|
1008
973
|
errorCode,
|
|
1009
974
|
});
|
|
1010
975
|
}
|
|
@@ -1013,7 +978,7 @@ const de_DeleteSchemaCommand = async (output, context) => {
|
|
|
1013
978
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1014
979
|
return de_DeleteSchemaCommandError(output, context);
|
|
1015
980
|
}
|
|
1016
|
-
const contents = map({
|
|
981
|
+
const contents = (0, smithy_client_1.map)({
|
|
1017
982
|
$metadata: deserializeMetadata(output),
|
|
1018
983
|
});
|
|
1019
984
|
await collectBody(output.body, context);
|
|
@@ -1047,10 +1012,9 @@ const de_DeleteSchemaCommandError = async (output, context) => {
|
|
|
1047
1012
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1048
1013
|
default:
|
|
1049
1014
|
const parsedBody = parsedOutput.body;
|
|
1050
|
-
|
|
1015
|
+
return throwDefaultError({
|
|
1051
1016
|
output,
|
|
1052
1017
|
parsedBody,
|
|
1053
|
-
exceptionCtor: SchemasServiceException_1.SchemasServiceException,
|
|
1054
1018
|
errorCode,
|
|
1055
1019
|
});
|
|
1056
1020
|
}
|
|
@@ -1059,7 +1023,7 @@ const de_DeleteSchemaVersionCommand = async (output, context) => {
|
|
|
1059
1023
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1060
1024
|
return de_DeleteSchemaVersionCommandError(output, context);
|
|
1061
1025
|
}
|
|
1062
|
-
const contents = map({
|
|
1026
|
+
const contents = (0, smithy_client_1.map)({
|
|
1063
1027
|
$metadata: deserializeMetadata(output),
|
|
1064
1028
|
});
|
|
1065
1029
|
await collectBody(output.body, context);
|
|
@@ -1093,10 +1057,9 @@ const de_DeleteSchemaVersionCommandError = async (output, context) => {
|
|
|
1093
1057
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1094
1058
|
default:
|
|
1095
1059
|
const parsedBody = parsedOutput.body;
|
|
1096
|
-
|
|
1060
|
+
return throwDefaultError({
|
|
1097
1061
|
output,
|
|
1098
1062
|
parsedBody,
|
|
1099
|
-
exceptionCtor: SchemasServiceException_1.SchemasServiceException,
|
|
1100
1063
|
errorCode,
|
|
1101
1064
|
});
|
|
1102
1065
|
}
|
|
@@ -1105,22 +1068,17 @@ const de_DescribeCodeBindingCommand = async (output, context) => {
|
|
|
1105
1068
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1106
1069
|
return de_DescribeCodeBindingCommandError(output, context);
|
|
1107
1070
|
}
|
|
1108
|
-
const contents = map({
|
|
1071
|
+
const contents = (0, smithy_client_1.map)({
|
|
1109
1072
|
$metadata: deserializeMetadata(output),
|
|
1110
1073
|
});
|
|
1111
1074
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
}
|
|
1118
|
-
|
|
1119
|
-
contents.SchemaVersion = (0, smithy_client_1.expectString)(data.SchemaVersion);
|
|
1120
|
-
}
|
|
1121
|
-
if (data.Status != null) {
|
|
1122
|
-
contents.Status = (0, smithy_client_1.expectString)(data.Status);
|
|
1123
|
-
}
|
|
1075
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1076
|
+
CreationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1077
|
+
LastModified: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1078
|
+
SchemaVersion: smithy_client_1.expectString,
|
|
1079
|
+
Status: smithy_client_1.expectString,
|
|
1080
|
+
});
|
|
1081
|
+
Object.assign(contents, doc);
|
|
1124
1082
|
return contents;
|
|
1125
1083
|
};
|
|
1126
1084
|
exports.de_DescribeCodeBindingCommand = de_DescribeCodeBindingCommand;
|
|
@@ -1151,10 +1109,9 @@ const de_DescribeCodeBindingCommandError = async (output, context) => {
|
|
|
1151
1109
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1152
1110
|
default:
|
|
1153
1111
|
const parsedBody = parsedOutput.body;
|
|
1154
|
-
|
|
1112
|
+
return throwDefaultError({
|
|
1155
1113
|
output,
|
|
1156
1114
|
parsedBody,
|
|
1157
|
-
exceptionCtor: SchemasServiceException_1.SchemasServiceException,
|
|
1158
1115
|
errorCode,
|
|
1159
1116
|
});
|
|
1160
1117
|
}
|
|
@@ -1163,31 +1120,20 @@ const de_DescribeDiscovererCommand = async (output, context) => {
|
|
|
1163
1120
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1164
1121
|
return de_DescribeDiscovererCommandError(output, context);
|
|
1165
1122
|
}
|
|
1166
|
-
const contents = map({
|
|
1123
|
+
const contents = (0, smithy_client_1.map)({
|
|
1167
1124
|
$metadata: deserializeMetadata(output),
|
|
1168
1125
|
});
|
|
1169
1126
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
}
|
|
1179
|
-
|
|
1180
|
-
contents.DiscovererId = (0, smithy_client_1.expectString)(data.DiscovererId);
|
|
1181
|
-
}
|
|
1182
|
-
if (data.SourceArn != null) {
|
|
1183
|
-
contents.SourceArn = (0, smithy_client_1.expectString)(data.SourceArn);
|
|
1184
|
-
}
|
|
1185
|
-
if (data.State != null) {
|
|
1186
|
-
contents.State = (0, smithy_client_1.expectString)(data.State);
|
|
1187
|
-
}
|
|
1188
|
-
if (data.tags != null) {
|
|
1189
|
-
contents.Tags = de_Tags(data.tags, context);
|
|
1190
|
-
}
|
|
1127
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1128
|
+
CrossAccount: smithy_client_1.expectBoolean,
|
|
1129
|
+
Description: smithy_client_1.expectString,
|
|
1130
|
+
DiscovererArn: smithy_client_1.expectString,
|
|
1131
|
+
DiscovererId: smithy_client_1.expectString,
|
|
1132
|
+
SourceArn: smithy_client_1.expectString,
|
|
1133
|
+
State: smithy_client_1.expectString,
|
|
1134
|
+
Tags: [, smithy_client_1._json, `tags`],
|
|
1135
|
+
});
|
|
1136
|
+
Object.assign(contents, doc);
|
|
1191
1137
|
return contents;
|
|
1192
1138
|
};
|
|
1193
1139
|
exports.de_DescribeDiscovererCommand = de_DescribeDiscovererCommand;
|
|
@@ -1218,10 +1164,9 @@ const de_DescribeDiscovererCommandError = async (output, context) => {
|
|
|
1218
1164
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1219
1165
|
default:
|
|
1220
1166
|
const parsedBody = parsedOutput.body;
|
|
1221
|
-
|
|
1167
|
+
return throwDefaultError({
|
|
1222
1168
|
output,
|
|
1223
1169
|
parsedBody,
|
|
1224
|
-
exceptionCtor: SchemasServiceException_1.SchemasServiceException,
|
|
1225
1170
|
errorCode,
|
|
1226
1171
|
});
|
|
1227
1172
|
}
|
|
@@ -1230,22 +1175,17 @@ const de_DescribeRegistryCommand = async (output, context) => {
|
|
|
1230
1175
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1231
1176
|
return de_DescribeRegistryCommandError(output, context);
|
|
1232
1177
|
}
|
|
1233
|
-
const contents = map({
|
|
1178
|
+
const contents = (0, smithy_client_1.map)({
|
|
1234
1179
|
$metadata: deserializeMetadata(output),
|
|
1235
1180
|
});
|
|
1236
1181
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
}
|
|
1243
|
-
|
|
1244
|
-
contents.RegistryName = (0, smithy_client_1.expectString)(data.RegistryName);
|
|
1245
|
-
}
|
|
1246
|
-
if (data.tags != null) {
|
|
1247
|
-
contents.Tags = de_Tags(data.tags, context);
|
|
1248
|
-
}
|
|
1182
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1183
|
+
Description: smithy_client_1.expectString,
|
|
1184
|
+
RegistryArn: smithy_client_1.expectString,
|
|
1185
|
+
RegistryName: smithy_client_1.expectString,
|
|
1186
|
+
Tags: [, smithy_client_1._json, `tags`],
|
|
1187
|
+
});
|
|
1188
|
+
Object.assign(contents, doc);
|
|
1249
1189
|
return contents;
|
|
1250
1190
|
};
|
|
1251
1191
|
exports.de_DescribeRegistryCommand = de_DescribeRegistryCommand;
|
|
@@ -1276,10 +1216,9 @@ const de_DescribeRegistryCommandError = async (output, context) => {
|
|
|
1276
1216
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1277
1217
|
default:
|
|
1278
1218
|
const parsedBody = parsedOutput.body;
|
|
1279
|
-
|
|
1219
|
+
return throwDefaultError({
|
|
1280
1220
|
output,
|
|
1281
1221
|
parsedBody,
|
|
1282
|
-
exceptionCtor: SchemasServiceException_1.SchemasServiceException,
|
|
1283
1222
|
errorCode,
|
|
1284
1223
|
});
|
|
1285
1224
|
}
|
|
@@ -1288,37 +1227,22 @@ const de_DescribeSchemaCommand = async (output, context) => {
|
|
|
1288
1227
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1289
1228
|
return de_DescribeSchemaCommandError(output, context);
|
|
1290
1229
|
}
|
|
1291
|
-
const contents = map({
|
|
1230
|
+
const contents = (0, smithy_client_1.map)({
|
|
1292
1231
|
$metadata: deserializeMetadata(output),
|
|
1293
1232
|
});
|
|
1294
1233
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
if (data.SchemaName != null) {
|
|
1308
|
-
contents.SchemaName = (0, smithy_client_1.expectString)(data.SchemaName);
|
|
1309
|
-
}
|
|
1310
|
-
if (data.SchemaVersion != null) {
|
|
1311
|
-
contents.SchemaVersion = (0, smithy_client_1.expectString)(data.SchemaVersion);
|
|
1312
|
-
}
|
|
1313
|
-
if (data.tags != null) {
|
|
1314
|
-
contents.Tags = de_Tags(data.tags, context);
|
|
1315
|
-
}
|
|
1316
|
-
if (data.Type != null) {
|
|
1317
|
-
contents.Type = (0, smithy_client_1.expectString)(data.Type);
|
|
1318
|
-
}
|
|
1319
|
-
if (data.VersionCreatedDate != null) {
|
|
1320
|
-
contents.VersionCreatedDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.VersionCreatedDate));
|
|
1321
|
-
}
|
|
1234
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1235
|
+
Content: smithy_client_1.expectString,
|
|
1236
|
+
Description: smithy_client_1.expectString,
|
|
1237
|
+
LastModified: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1238
|
+
SchemaArn: smithy_client_1.expectString,
|
|
1239
|
+
SchemaName: smithy_client_1.expectString,
|
|
1240
|
+
SchemaVersion: smithy_client_1.expectString,
|
|
1241
|
+
Tags: [, smithy_client_1._json, `tags`],
|
|
1242
|
+
Type: smithy_client_1.expectString,
|
|
1243
|
+
VersionCreatedDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1244
|
+
});
|
|
1245
|
+
Object.assign(contents, doc);
|
|
1322
1246
|
return contents;
|
|
1323
1247
|
};
|
|
1324
1248
|
exports.de_DescribeSchemaCommand = de_DescribeSchemaCommand;
|
|
@@ -1349,10 +1273,9 @@ const de_DescribeSchemaCommandError = async (output, context) => {
|
|
|
1349
1273
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1350
1274
|
default:
|
|
1351
1275
|
const parsedBody = parsedOutput.body;
|
|
1352
|
-
|
|
1276
|
+
return throwDefaultError({
|
|
1353
1277
|
output,
|
|
1354
1278
|
parsedBody,
|
|
1355
|
-
exceptionCtor: SchemasServiceException_1.SchemasServiceException,
|
|
1356
1279
|
errorCode,
|
|
1357
1280
|
});
|
|
1358
1281
|
}
|
|
@@ -1361,25 +1284,18 @@ const de_ExportSchemaCommand = async (output, context) => {
|
|
|
1361
1284
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1362
1285
|
return de_ExportSchemaCommandError(output, context);
|
|
1363
1286
|
}
|
|
1364
|
-
const contents = map({
|
|
1287
|
+
const contents = (0, smithy_client_1.map)({
|
|
1365
1288
|
$metadata: deserializeMetadata(output),
|
|
1366
1289
|
});
|
|
1367
1290
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
}
|
|
1377
|
-
if (data.SchemaVersion != null) {
|
|
1378
|
-
contents.SchemaVersion = (0, smithy_client_1.expectString)(data.SchemaVersion);
|
|
1379
|
-
}
|
|
1380
|
-
if (data.Type != null) {
|
|
1381
|
-
contents.Type = (0, smithy_client_1.expectString)(data.Type);
|
|
1382
|
-
}
|
|
1291
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1292
|
+
Content: smithy_client_1.expectString,
|
|
1293
|
+
SchemaArn: smithy_client_1.expectString,
|
|
1294
|
+
SchemaName: smithy_client_1.expectString,
|
|
1295
|
+
SchemaVersion: smithy_client_1.expectString,
|
|
1296
|
+
Type: smithy_client_1.expectString,
|
|
1297
|
+
});
|
|
1298
|
+
Object.assign(contents, doc);
|
|
1383
1299
|
return contents;
|
|
1384
1300
|
};
|
|
1385
1301
|
exports.de_ExportSchemaCommand = de_ExportSchemaCommand;
|
|
@@ -1413,10 +1329,9 @@ const de_ExportSchemaCommandError = async (output, context) => {
|
|
|
1413
1329
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1414
1330
|
default:
|
|
1415
1331
|
const parsedBody = parsedOutput.body;
|
|
1416
|
-
|
|
1332
|
+
return throwDefaultError({
|
|
1417
1333
|
output,
|
|
1418
1334
|
parsedBody,
|
|
1419
|
-
exceptionCtor: SchemasServiceException_1.SchemasServiceException,
|
|
1420
1335
|
errorCode,
|
|
1421
1336
|
});
|
|
1422
1337
|
}
|
|
@@ -1425,7 +1340,7 @@ const de_GetCodeBindingSourceCommand = async (output, context) => {
|
|
|
1425
1340
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1426
1341
|
return de_GetCodeBindingSourceCommandError(output, context);
|
|
1427
1342
|
}
|
|
1428
|
-
const contents = map({
|
|
1343
|
+
const contents = (0, smithy_client_1.map)({
|
|
1429
1344
|
$metadata: deserializeMetadata(output),
|
|
1430
1345
|
});
|
|
1431
1346
|
const data = await collectBody(output.body, context);
|
|
@@ -1460,10 +1375,9 @@ const de_GetCodeBindingSourceCommandError = async (output, context) => {
|
|
|
1460
1375
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1461
1376
|
default:
|
|
1462
1377
|
const parsedBody = parsedOutput.body;
|
|
1463
|
-
|
|
1378
|
+
return throwDefaultError({
|
|
1464
1379
|
output,
|
|
1465
1380
|
parsedBody,
|
|
1466
|
-
exceptionCtor: SchemasServiceException_1.SchemasServiceException,
|
|
1467
1381
|
errorCode,
|
|
1468
1382
|
});
|
|
1469
1383
|
}
|
|
@@ -1472,13 +1386,14 @@ const de_GetDiscoveredSchemaCommand = async (output, context) => {
|
|
|
1472
1386
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1473
1387
|
return de_GetDiscoveredSchemaCommandError(output, context);
|
|
1474
1388
|
}
|
|
1475
|
-
const contents = map({
|
|
1389
|
+
const contents = (0, smithy_client_1.map)({
|
|
1476
1390
|
$metadata: deserializeMetadata(output),
|
|
1477
1391
|
});
|
|
1478
1392
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
}
|
|
1393
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1394
|
+
Content: smithy_client_1.expectString,
|
|
1395
|
+
});
|
|
1396
|
+
Object.assign(contents, doc);
|
|
1482
1397
|
return contents;
|
|
1483
1398
|
};
|
|
1484
1399
|
exports.de_GetDiscoveredSchemaCommand = de_GetDiscoveredSchemaCommand;
|
|
@@ -1506,10 +1421,9 @@ const de_GetDiscoveredSchemaCommandError = async (output, context) => {
|
|
|
1506
1421
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1507
1422
|
default:
|
|
1508
1423
|
const parsedBody = parsedOutput.body;
|
|
1509
|
-
|
|
1424
|
+
return throwDefaultError({
|
|
1510
1425
|
output,
|
|
1511
1426
|
parsedBody,
|
|
1512
|
-
exceptionCtor: SchemasServiceException_1.SchemasServiceException,
|
|
1513
1427
|
errorCode,
|
|
1514
1428
|
});
|
|
1515
1429
|
}
|
|
@@ -1518,16 +1432,15 @@ const de_GetResourcePolicyCommand = async (output, context) => {
|
|
|
1518
1432
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1519
1433
|
return de_GetResourcePolicyCommandError(output, context);
|
|
1520
1434
|
}
|
|
1521
|
-
const contents = map({
|
|
1435
|
+
const contents = (0, smithy_client_1.map)({
|
|
1522
1436
|
$metadata: deserializeMetadata(output),
|
|
1523
1437
|
});
|
|
1524
1438
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
}
|
|
1439
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1440
|
+
Policy: (_) => new smithy_client_1.LazyJsonString(_),
|
|
1441
|
+
RevisionId: smithy_client_1.expectString,
|
|
1442
|
+
});
|
|
1443
|
+
Object.assign(contents, doc);
|
|
1531
1444
|
return contents;
|
|
1532
1445
|
};
|
|
1533
1446
|
exports.de_GetResourcePolicyCommand = de_GetResourcePolicyCommand;
|
|
@@ -1558,10 +1471,9 @@ const de_GetResourcePolicyCommandError = async (output, context) => {
|
|
|
1558
1471
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1559
1472
|
default:
|
|
1560
1473
|
const parsedBody = parsedOutput.body;
|
|
1561
|
-
|
|
1474
|
+
return throwDefaultError({
|
|
1562
1475
|
output,
|
|
1563
1476
|
parsedBody,
|
|
1564
|
-
exceptionCtor: SchemasServiceException_1.SchemasServiceException,
|
|
1565
1477
|
errorCode,
|
|
1566
1478
|
});
|
|
1567
1479
|
}
|
|
@@ -1570,16 +1482,15 @@ const de_ListDiscoverersCommand = async (output, context) => {
|
|
|
1570
1482
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1571
1483
|
return de_ListDiscoverersCommandError(output, context);
|
|
1572
1484
|
}
|
|
1573
|
-
const contents = map({
|
|
1485
|
+
const contents = (0, smithy_client_1.map)({
|
|
1574
1486
|
$metadata: deserializeMetadata(output),
|
|
1575
1487
|
});
|
|
1576
1488
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
}
|
|
1489
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1490
|
+
Discoverers: (_) => de___listOfDiscovererSummary(_, context),
|
|
1491
|
+
NextToken: smithy_client_1.expectString,
|
|
1492
|
+
});
|
|
1493
|
+
Object.assign(contents, doc);
|
|
1583
1494
|
return contents;
|
|
1584
1495
|
};
|
|
1585
1496
|
exports.de_ListDiscoverersCommand = de_ListDiscoverersCommand;
|
|
@@ -1607,10 +1518,9 @@ const de_ListDiscoverersCommandError = async (output, context) => {
|
|
|
1607
1518
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1608
1519
|
default:
|
|
1609
1520
|
const parsedBody = parsedOutput.body;
|
|
1610
|
-
|
|
1521
|
+
return throwDefaultError({
|
|
1611
1522
|
output,
|
|
1612
1523
|
parsedBody,
|
|
1613
|
-
exceptionCtor: SchemasServiceException_1.SchemasServiceException,
|
|
1614
1524
|
errorCode,
|
|
1615
1525
|
});
|
|
1616
1526
|
}
|
|
@@ -1619,16 +1529,15 @@ const de_ListRegistriesCommand = async (output, context) => {
|
|
|
1619
1529
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1620
1530
|
return de_ListRegistriesCommandError(output, context);
|
|
1621
1531
|
}
|
|
1622
|
-
const contents = map({
|
|
1532
|
+
const contents = (0, smithy_client_1.map)({
|
|
1623
1533
|
$metadata: deserializeMetadata(output),
|
|
1624
1534
|
});
|
|
1625
1535
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
}
|
|
1536
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1537
|
+
NextToken: smithy_client_1.expectString,
|
|
1538
|
+
Registries: (_) => de___listOfRegistrySummary(_, context),
|
|
1539
|
+
});
|
|
1540
|
+
Object.assign(contents, doc);
|
|
1632
1541
|
return contents;
|
|
1633
1542
|
};
|
|
1634
1543
|
exports.de_ListRegistriesCommand = de_ListRegistriesCommand;
|
|
@@ -1656,10 +1565,9 @@ const de_ListRegistriesCommandError = async (output, context) => {
|
|
|
1656
1565
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1657
1566
|
default:
|
|
1658
1567
|
const parsedBody = parsedOutput.body;
|
|
1659
|
-
|
|
1568
|
+
return throwDefaultError({
|
|
1660
1569
|
output,
|
|
1661
1570
|
parsedBody,
|
|
1662
|
-
exceptionCtor: SchemasServiceException_1.SchemasServiceException,
|
|
1663
1571
|
errorCode,
|
|
1664
1572
|
});
|
|
1665
1573
|
}
|
|
@@ -1668,16 +1576,15 @@ const de_ListSchemasCommand = async (output, context) => {
|
|
|
1668
1576
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1669
1577
|
return de_ListSchemasCommandError(output, context);
|
|
1670
1578
|
}
|
|
1671
|
-
const contents = map({
|
|
1579
|
+
const contents = (0, smithy_client_1.map)({
|
|
1672
1580
|
$metadata: deserializeMetadata(output),
|
|
1673
1581
|
});
|
|
1674
1582
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
}
|
|
1583
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1584
|
+
NextToken: smithy_client_1.expectString,
|
|
1585
|
+
Schemas: (_) => de___listOfSchemaSummary(_, context),
|
|
1586
|
+
});
|
|
1587
|
+
Object.assign(contents, doc);
|
|
1681
1588
|
return contents;
|
|
1682
1589
|
};
|
|
1683
1590
|
exports.de_ListSchemasCommand = de_ListSchemasCommand;
|
|
@@ -1705,10 +1612,9 @@ const de_ListSchemasCommandError = async (output, context) => {
|
|
|
1705
1612
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1706
1613
|
default:
|
|
1707
1614
|
const parsedBody = parsedOutput.body;
|
|
1708
|
-
|
|
1615
|
+
return throwDefaultError({
|
|
1709
1616
|
output,
|
|
1710
1617
|
parsedBody,
|
|
1711
|
-
exceptionCtor: SchemasServiceException_1.SchemasServiceException,
|
|
1712
1618
|
errorCode,
|
|
1713
1619
|
});
|
|
1714
1620
|
}
|
|
@@ -1717,16 +1623,15 @@ const de_ListSchemaVersionsCommand = async (output, context) => {
|
|
|
1717
1623
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1718
1624
|
return de_ListSchemaVersionsCommandError(output, context);
|
|
1719
1625
|
}
|
|
1720
|
-
const contents = map({
|
|
1626
|
+
const contents = (0, smithy_client_1.map)({
|
|
1721
1627
|
$metadata: deserializeMetadata(output),
|
|
1722
1628
|
});
|
|
1723
1629
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
}
|
|
1630
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1631
|
+
NextToken: smithy_client_1.expectString,
|
|
1632
|
+
SchemaVersions: smithy_client_1._json,
|
|
1633
|
+
});
|
|
1634
|
+
Object.assign(contents, doc);
|
|
1730
1635
|
return contents;
|
|
1731
1636
|
};
|
|
1732
1637
|
exports.de_ListSchemaVersionsCommand = de_ListSchemaVersionsCommand;
|
|
@@ -1757,10 +1662,9 @@ const de_ListSchemaVersionsCommandError = async (output, context) => {
|
|
|
1757
1662
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1758
1663
|
default:
|
|
1759
1664
|
const parsedBody = parsedOutput.body;
|
|
1760
|
-
|
|
1665
|
+
return throwDefaultError({
|
|
1761
1666
|
output,
|
|
1762
1667
|
parsedBody,
|
|
1763
|
-
exceptionCtor: SchemasServiceException_1.SchemasServiceException,
|
|
1764
1668
|
errorCode,
|
|
1765
1669
|
});
|
|
1766
1670
|
}
|
|
@@ -1769,13 +1673,14 @@ const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
1769
1673
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1770
1674
|
return de_ListTagsForResourceCommandError(output, context);
|
|
1771
1675
|
}
|
|
1772
|
-
const contents = map({
|
|
1676
|
+
const contents = (0, smithy_client_1.map)({
|
|
1773
1677
|
$metadata: deserializeMetadata(output),
|
|
1774
1678
|
});
|
|
1775
1679
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
}
|
|
1680
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1681
|
+
Tags: [, smithy_client_1._json, `tags`],
|
|
1682
|
+
});
|
|
1683
|
+
Object.assign(contents, doc);
|
|
1779
1684
|
return contents;
|
|
1780
1685
|
};
|
|
1781
1686
|
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
@@ -1800,10 +1705,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
1800
1705
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1801
1706
|
default:
|
|
1802
1707
|
const parsedBody = parsedOutput.body;
|
|
1803
|
-
|
|
1708
|
+
return throwDefaultError({
|
|
1804
1709
|
output,
|
|
1805
1710
|
parsedBody,
|
|
1806
|
-
exceptionCtor: SchemasServiceException_1.SchemasServiceException,
|
|
1807
1711
|
errorCode,
|
|
1808
1712
|
});
|
|
1809
1713
|
}
|
|
@@ -1812,22 +1716,17 @@ const de_PutCodeBindingCommand = async (output, context) => {
|
|
|
1812
1716
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1813
1717
|
return de_PutCodeBindingCommandError(output, context);
|
|
1814
1718
|
}
|
|
1815
|
-
const contents = map({
|
|
1719
|
+
const contents = (0, smithy_client_1.map)({
|
|
1816
1720
|
$metadata: deserializeMetadata(output),
|
|
1817
1721
|
});
|
|
1818
1722
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
}
|
|
1825
|
-
|
|
1826
|
-
contents.SchemaVersion = (0, smithy_client_1.expectString)(data.SchemaVersion);
|
|
1827
|
-
}
|
|
1828
|
-
if (data.Status != null) {
|
|
1829
|
-
contents.Status = (0, smithy_client_1.expectString)(data.Status);
|
|
1830
|
-
}
|
|
1723
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1724
|
+
CreationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1725
|
+
LastModified: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1726
|
+
SchemaVersion: smithy_client_1.expectString,
|
|
1727
|
+
Status: smithy_client_1.expectString,
|
|
1728
|
+
});
|
|
1729
|
+
Object.assign(contents, doc);
|
|
1831
1730
|
return contents;
|
|
1832
1731
|
};
|
|
1833
1732
|
exports.de_PutCodeBindingCommand = de_PutCodeBindingCommand;
|
|
@@ -1861,10 +1760,9 @@ const de_PutCodeBindingCommandError = async (output, context) => {
|
|
|
1861
1760
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1862
1761
|
default:
|
|
1863
1762
|
const parsedBody = parsedOutput.body;
|
|
1864
|
-
|
|
1763
|
+
return throwDefaultError({
|
|
1865
1764
|
output,
|
|
1866
1765
|
parsedBody,
|
|
1867
|
-
exceptionCtor: SchemasServiceException_1.SchemasServiceException,
|
|
1868
1766
|
errorCode,
|
|
1869
1767
|
});
|
|
1870
1768
|
}
|
|
@@ -1873,16 +1771,15 @@ const de_PutResourcePolicyCommand = async (output, context) => {
|
|
|
1873
1771
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1874
1772
|
return de_PutResourcePolicyCommandError(output, context);
|
|
1875
1773
|
}
|
|
1876
|
-
const contents = map({
|
|
1774
|
+
const contents = (0, smithy_client_1.map)({
|
|
1877
1775
|
$metadata: deserializeMetadata(output),
|
|
1878
1776
|
});
|
|
1879
1777
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
}
|
|
1778
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1779
|
+
Policy: (_) => new smithy_client_1.LazyJsonString(_),
|
|
1780
|
+
RevisionId: smithy_client_1.expectString,
|
|
1781
|
+
});
|
|
1782
|
+
Object.assign(contents, doc);
|
|
1886
1783
|
return contents;
|
|
1887
1784
|
};
|
|
1888
1785
|
exports.de_PutResourcePolicyCommand = de_PutResourcePolicyCommand;
|
|
@@ -1916,10 +1813,9 @@ const de_PutResourcePolicyCommandError = async (output, context) => {
|
|
|
1916
1813
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1917
1814
|
default:
|
|
1918
1815
|
const parsedBody = parsedOutput.body;
|
|
1919
|
-
|
|
1816
|
+
return throwDefaultError({
|
|
1920
1817
|
output,
|
|
1921
1818
|
parsedBody,
|
|
1922
|
-
exceptionCtor: SchemasServiceException_1.SchemasServiceException,
|
|
1923
1819
|
errorCode,
|
|
1924
1820
|
});
|
|
1925
1821
|
}
|
|
@@ -1928,16 +1824,15 @@ const de_SearchSchemasCommand = async (output, context) => {
|
|
|
1928
1824
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1929
1825
|
return de_SearchSchemasCommandError(output, context);
|
|
1930
1826
|
}
|
|
1931
|
-
const contents = map({
|
|
1827
|
+
const contents = (0, smithy_client_1.map)({
|
|
1932
1828
|
$metadata: deserializeMetadata(output),
|
|
1933
1829
|
});
|
|
1934
1830
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
}
|
|
1831
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1832
|
+
NextToken: smithy_client_1.expectString,
|
|
1833
|
+
Schemas: (_) => de___listOfSearchSchemaSummary(_, context),
|
|
1834
|
+
});
|
|
1835
|
+
Object.assign(contents, doc);
|
|
1941
1836
|
return contents;
|
|
1942
1837
|
};
|
|
1943
1838
|
exports.de_SearchSchemasCommand = de_SearchSchemasCommand;
|
|
@@ -1965,10 +1860,9 @@ const de_SearchSchemasCommandError = async (output, context) => {
|
|
|
1965
1860
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1966
1861
|
default:
|
|
1967
1862
|
const parsedBody = parsedOutput.body;
|
|
1968
|
-
|
|
1863
|
+
return throwDefaultError({
|
|
1969
1864
|
output,
|
|
1970
1865
|
parsedBody,
|
|
1971
|
-
exceptionCtor: SchemasServiceException_1.SchemasServiceException,
|
|
1972
1866
|
errorCode,
|
|
1973
1867
|
});
|
|
1974
1868
|
}
|
|
@@ -1977,16 +1871,15 @@ const de_StartDiscovererCommand = async (output, context) => {
|
|
|
1977
1871
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1978
1872
|
return de_StartDiscovererCommandError(output, context);
|
|
1979
1873
|
}
|
|
1980
|
-
const contents = map({
|
|
1874
|
+
const contents = (0, smithy_client_1.map)({
|
|
1981
1875
|
$metadata: deserializeMetadata(output),
|
|
1982
1876
|
});
|
|
1983
1877
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
}
|
|
1878
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1879
|
+
DiscovererId: smithy_client_1.expectString,
|
|
1880
|
+
State: smithy_client_1.expectString,
|
|
1881
|
+
});
|
|
1882
|
+
Object.assign(contents, doc);
|
|
1990
1883
|
return contents;
|
|
1991
1884
|
};
|
|
1992
1885
|
exports.de_StartDiscovererCommand = de_StartDiscovererCommand;
|
|
@@ -2017,10 +1910,9 @@ const de_StartDiscovererCommandError = async (output, context) => {
|
|
|
2017
1910
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2018
1911
|
default:
|
|
2019
1912
|
const parsedBody = parsedOutput.body;
|
|
2020
|
-
|
|
1913
|
+
return throwDefaultError({
|
|
2021
1914
|
output,
|
|
2022
1915
|
parsedBody,
|
|
2023
|
-
exceptionCtor: SchemasServiceException_1.SchemasServiceException,
|
|
2024
1916
|
errorCode,
|
|
2025
1917
|
});
|
|
2026
1918
|
}
|
|
@@ -2029,16 +1921,15 @@ const de_StopDiscovererCommand = async (output, context) => {
|
|
|
2029
1921
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2030
1922
|
return de_StopDiscovererCommandError(output, context);
|
|
2031
1923
|
}
|
|
2032
|
-
const contents = map({
|
|
1924
|
+
const contents = (0, smithy_client_1.map)({
|
|
2033
1925
|
$metadata: deserializeMetadata(output),
|
|
2034
1926
|
});
|
|
2035
1927
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
}
|
|
1928
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1929
|
+
DiscovererId: smithy_client_1.expectString,
|
|
1930
|
+
State: smithy_client_1.expectString,
|
|
1931
|
+
});
|
|
1932
|
+
Object.assign(contents, doc);
|
|
2042
1933
|
return contents;
|
|
2043
1934
|
};
|
|
2044
1935
|
exports.de_StopDiscovererCommand = de_StopDiscovererCommand;
|
|
@@ -2069,10 +1960,9 @@ const de_StopDiscovererCommandError = async (output, context) => {
|
|
|
2069
1960
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2070
1961
|
default:
|
|
2071
1962
|
const parsedBody = parsedOutput.body;
|
|
2072
|
-
|
|
1963
|
+
return throwDefaultError({
|
|
2073
1964
|
output,
|
|
2074
1965
|
parsedBody,
|
|
2075
|
-
exceptionCtor: SchemasServiceException_1.SchemasServiceException,
|
|
2076
1966
|
errorCode,
|
|
2077
1967
|
});
|
|
2078
1968
|
}
|
|
@@ -2081,7 +1971,7 @@ const de_TagResourceCommand = async (output, context) => {
|
|
|
2081
1971
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2082
1972
|
return de_TagResourceCommandError(output, context);
|
|
2083
1973
|
}
|
|
2084
|
-
const contents = map({
|
|
1974
|
+
const contents = (0, smithy_client_1.map)({
|
|
2085
1975
|
$metadata: deserializeMetadata(output),
|
|
2086
1976
|
});
|
|
2087
1977
|
await collectBody(output.body, context);
|
|
@@ -2109,10 +1999,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
2109
1999
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2110
2000
|
default:
|
|
2111
2001
|
const parsedBody = parsedOutput.body;
|
|
2112
|
-
|
|
2002
|
+
return throwDefaultError({
|
|
2113
2003
|
output,
|
|
2114
2004
|
parsedBody,
|
|
2115
|
-
exceptionCtor: SchemasServiceException_1.SchemasServiceException,
|
|
2116
2005
|
errorCode,
|
|
2117
2006
|
});
|
|
2118
2007
|
}
|
|
@@ -2121,7 +2010,7 @@ const de_UntagResourceCommand = async (output, context) => {
|
|
|
2121
2010
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2122
2011
|
return de_UntagResourceCommandError(output, context);
|
|
2123
2012
|
}
|
|
2124
|
-
const contents = map({
|
|
2013
|
+
const contents = (0, smithy_client_1.map)({
|
|
2125
2014
|
$metadata: deserializeMetadata(output),
|
|
2126
2015
|
});
|
|
2127
2016
|
await collectBody(output.body, context);
|
|
@@ -2149,10 +2038,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
2149
2038
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2150
2039
|
default:
|
|
2151
2040
|
const parsedBody = parsedOutput.body;
|
|
2152
|
-
|
|
2041
|
+
return throwDefaultError({
|
|
2153
2042
|
output,
|
|
2154
2043
|
parsedBody,
|
|
2155
|
-
exceptionCtor: SchemasServiceException_1.SchemasServiceException,
|
|
2156
2044
|
errorCode,
|
|
2157
2045
|
});
|
|
2158
2046
|
}
|
|
@@ -2161,31 +2049,20 @@ const de_UpdateDiscovererCommand = async (output, context) => {
|
|
|
2161
2049
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2162
2050
|
return de_UpdateDiscovererCommandError(output, context);
|
|
2163
2051
|
}
|
|
2164
|
-
const contents = map({
|
|
2052
|
+
const contents = (0, smithy_client_1.map)({
|
|
2165
2053
|
$metadata: deserializeMetadata(output),
|
|
2166
2054
|
});
|
|
2167
2055
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
}
|
|
2177
|
-
|
|
2178
|
-
contents.DiscovererId = (0, smithy_client_1.expectString)(data.DiscovererId);
|
|
2179
|
-
}
|
|
2180
|
-
if (data.SourceArn != null) {
|
|
2181
|
-
contents.SourceArn = (0, smithy_client_1.expectString)(data.SourceArn);
|
|
2182
|
-
}
|
|
2183
|
-
if (data.State != null) {
|
|
2184
|
-
contents.State = (0, smithy_client_1.expectString)(data.State);
|
|
2185
|
-
}
|
|
2186
|
-
if (data.tags != null) {
|
|
2187
|
-
contents.Tags = de_Tags(data.tags, context);
|
|
2188
|
-
}
|
|
2056
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2057
|
+
CrossAccount: smithy_client_1.expectBoolean,
|
|
2058
|
+
Description: smithy_client_1.expectString,
|
|
2059
|
+
DiscovererArn: smithy_client_1.expectString,
|
|
2060
|
+
DiscovererId: smithy_client_1.expectString,
|
|
2061
|
+
SourceArn: smithy_client_1.expectString,
|
|
2062
|
+
State: smithy_client_1.expectString,
|
|
2063
|
+
Tags: [, smithy_client_1._json, `tags`],
|
|
2064
|
+
});
|
|
2065
|
+
Object.assign(contents, doc);
|
|
2189
2066
|
return contents;
|
|
2190
2067
|
};
|
|
2191
2068
|
exports.de_UpdateDiscovererCommand = de_UpdateDiscovererCommand;
|
|
@@ -2216,10 +2093,9 @@ const de_UpdateDiscovererCommandError = async (output, context) => {
|
|
|
2216
2093
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2217
2094
|
default:
|
|
2218
2095
|
const parsedBody = parsedOutput.body;
|
|
2219
|
-
|
|
2096
|
+
return throwDefaultError({
|
|
2220
2097
|
output,
|
|
2221
2098
|
parsedBody,
|
|
2222
|
-
exceptionCtor: SchemasServiceException_1.SchemasServiceException,
|
|
2223
2099
|
errorCode,
|
|
2224
2100
|
});
|
|
2225
2101
|
}
|
|
@@ -2228,22 +2104,17 @@ const de_UpdateRegistryCommand = async (output, context) => {
|
|
|
2228
2104
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2229
2105
|
return de_UpdateRegistryCommandError(output, context);
|
|
2230
2106
|
}
|
|
2231
|
-
const contents = map({
|
|
2107
|
+
const contents = (0, smithy_client_1.map)({
|
|
2232
2108
|
$metadata: deserializeMetadata(output),
|
|
2233
2109
|
});
|
|
2234
2110
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
}
|
|
2241
|
-
|
|
2242
|
-
contents.RegistryName = (0, smithy_client_1.expectString)(data.RegistryName);
|
|
2243
|
-
}
|
|
2244
|
-
if (data.tags != null) {
|
|
2245
|
-
contents.Tags = de_Tags(data.tags, context);
|
|
2246
|
-
}
|
|
2111
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2112
|
+
Description: smithy_client_1.expectString,
|
|
2113
|
+
RegistryArn: smithy_client_1.expectString,
|
|
2114
|
+
RegistryName: smithy_client_1.expectString,
|
|
2115
|
+
Tags: [, smithy_client_1._json, `tags`],
|
|
2116
|
+
});
|
|
2117
|
+
Object.assign(contents, doc);
|
|
2247
2118
|
return contents;
|
|
2248
2119
|
};
|
|
2249
2120
|
exports.de_UpdateRegistryCommand = de_UpdateRegistryCommand;
|
|
@@ -2274,10 +2145,9 @@ const de_UpdateRegistryCommandError = async (output, context) => {
|
|
|
2274
2145
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2275
2146
|
default:
|
|
2276
2147
|
const parsedBody = parsedOutput.body;
|
|
2277
|
-
|
|
2148
|
+
return throwDefaultError({
|
|
2278
2149
|
output,
|
|
2279
2150
|
parsedBody,
|
|
2280
|
-
exceptionCtor: SchemasServiceException_1.SchemasServiceException,
|
|
2281
2151
|
errorCode,
|
|
2282
2152
|
});
|
|
2283
2153
|
}
|
|
@@ -2286,34 +2156,21 @@ const de_UpdateSchemaCommand = async (output, context) => {
|
|
|
2286
2156
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2287
2157
|
return de_UpdateSchemaCommandError(output, context);
|
|
2288
2158
|
}
|
|
2289
|
-
const contents = map({
|
|
2159
|
+
const contents = (0, smithy_client_1.map)({
|
|
2290
2160
|
$metadata: deserializeMetadata(output),
|
|
2291
2161
|
});
|
|
2292
2162
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
}
|
|
2305
|
-
if (data.SchemaVersion != null) {
|
|
2306
|
-
contents.SchemaVersion = (0, smithy_client_1.expectString)(data.SchemaVersion);
|
|
2307
|
-
}
|
|
2308
|
-
if (data.tags != null) {
|
|
2309
|
-
contents.Tags = de_Tags(data.tags, context);
|
|
2310
|
-
}
|
|
2311
|
-
if (data.Type != null) {
|
|
2312
|
-
contents.Type = (0, smithy_client_1.expectString)(data.Type);
|
|
2313
|
-
}
|
|
2314
|
-
if (data.VersionCreatedDate != null) {
|
|
2315
|
-
contents.VersionCreatedDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.VersionCreatedDate));
|
|
2316
|
-
}
|
|
2163
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2164
|
+
Description: smithy_client_1.expectString,
|
|
2165
|
+
LastModified: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
2166
|
+
SchemaArn: smithy_client_1.expectString,
|
|
2167
|
+
SchemaName: smithy_client_1.expectString,
|
|
2168
|
+
SchemaVersion: smithy_client_1.expectString,
|
|
2169
|
+
Tags: [, smithy_client_1._json, `tags`],
|
|
2170
|
+
Type: smithy_client_1.expectString,
|
|
2171
|
+
VersionCreatedDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
2172
|
+
});
|
|
2173
|
+
Object.assign(contents, doc);
|
|
2317
2174
|
return contents;
|
|
2318
2175
|
};
|
|
2319
2176
|
exports.de_UpdateSchemaCommand = de_UpdateSchemaCommand;
|
|
@@ -2341,24 +2198,22 @@ const de_UpdateSchemaCommandError = async (output, context) => {
|
|
|
2341
2198
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2342
2199
|
default:
|
|
2343
2200
|
const parsedBody = parsedOutput.body;
|
|
2344
|
-
|
|
2201
|
+
return throwDefaultError({
|
|
2345
2202
|
output,
|
|
2346
2203
|
parsedBody,
|
|
2347
|
-
exceptionCtor: SchemasServiceException_1.SchemasServiceException,
|
|
2348
2204
|
errorCode,
|
|
2349
2205
|
});
|
|
2350
2206
|
}
|
|
2351
2207
|
};
|
|
2352
|
-
const
|
|
2208
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(SchemasServiceException_1.SchemasServiceException);
|
|
2353
2209
|
const de_BadRequestExceptionRes = async (parsedOutput, context) => {
|
|
2354
|
-
const contents = map({});
|
|
2210
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2355
2211
|
const data = parsedOutput.body;
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
}
|
|
2212
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2213
|
+
Code: smithy_client_1.expectString,
|
|
2214
|
+
Message: smithy_client_1.expectString,
|
|
2215
|
+
});
|
|
2216
|
+
Object.assign(contents, doc);
|
|
2362
2217
|
const exception = new models_0_1.BadRequestException({
|
|
2363
2218
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2364
2219
|
...contents,
|
|
@@ -2366,14 +2221,13 @@ const de_BadRequestExceptionRes = async (parsedOutput, context) => {
|
|
|
2366
2221
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2367
2222
|
};
|
|
2368
2223
|
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
2369
|
-
const contents = map({});
|
|
2224
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2370
2225
|
const data = parsedOutput.body;
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
}
|
|
2226
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2227
|
+
Code: smithy_client_1.expectString,
|
|
2228
|
+
Message: smithy_client_1.expectString,
|
|
2229
|
+
});
|
|
2230
|
+
Object.assign(contents, doc);
|
|
2377
2231
|
const exception = new models_0_1.ConflictException({
|
|
2378
2232
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2379
2233
|
...contents,
|
|
@@ -2381,14 +2235,13 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
2381
2235
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2382
2236
|
};
|
|
2383
2237
|
const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
|
|
2384
|
-
const contents = map({});
|
|
2238
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2385
2239
|
const data = parsedOutput.body;
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
}
|
|
2240
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2241
|
+
Code: smithy_client_1.expectString,
|
|
2242
|
+
Message: smithy_client_1.expectString,
|
|
2243
|
+
});
|
|
2244
|
+
Object.assign(contents, doc);
|
|
2392
2245
|
const exception = new models_0_1.ForbiddenException({
|
|
2393
2246
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2394
2247
|
...contents,
|
|
@@ -2396,14 +2249,13 @@ const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
|
|
|
2396
2249
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2397
2250
|
};
|
|
2398
2251
|
const de_GoneExceptionRes = async (parsedOutput, context) => {
|
|
2399
|
-
const contents = map({});
|
|
2252
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2400
2253
|
const data = parsedOutput.body;
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
}
|
|
2254
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2255
|
+
Code: smithy_client_1.expectString,
|
|
2256
|
+
Message: smithy_client_1.expectString,
|
|
2257
|
+
});
|
|
2258
|
+
Object.assign(contents, doc);
|
|
2407
2259
|
const exception = new models_0_1.GoneException({
|
|
2408
2260
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2409
2261
|
...contents,
|
|
@@ -2411,14 +2263,13 @@ const de_GoneExceptionRes = async (parsedOutput, context) => {
|
|
|
2411
2263
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2412
2264
|
};
|
|
2413
2265
|
const de_InternalServerErrorExceptionRes = async (parsedOutput, context) => {
|
|
2414
|
-
const contents = map({});
|
|
2266
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2415
2267
|
const data = parsedOutput.body;
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
}
|
|
2268
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2269
|
+
Code: smithy_client_1.expectString,
|
|
2270
|
+
Message: smithy_client_1.expectString,
|
|
2271
|
+
});
|
|
2272
|
+
Object.assign(contents, doc);
|
|
2422
2273
|
const exception = new models_0_1.InternalServerErrorException({
|
|
2423
2274
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2424
2275
|
...contents,
|
|
@@ -2426,14 +2277,13 @@ const de_InternalServerErrorExceptionRes = async (parsedOutput, context) => {
|
|
|
2426
2277
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2427
2278
|
};
|
|
2428
2279
|
const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2429
|
-
const contents = map({});
|
|
2280
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2430
2281
|
const data = parsedOutput.body;
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
}
|
|
2282
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2283
|
+
Code: smithy_client_1.expectString,
|
|
2284
|
+
Message: smithy_client_1.expectString,
|
|
2285
|
+
});
|
|
2286
|
+
Object.assign(contents, doc);
|
|
2437
2287
|
const exception = new models_0_1.NotFoundException({
|
|
2438
2288
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2439
2289
|
...contents,
|
|
@@ -2441,14 +2291,13 @@ const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
2441
2291
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2442
2292
|
};
|
|
2443
2293
|
const de_PreconditionFailedExceptionRes = async (parsedOutput, context) => {
|
|
2444
|
-
const contents = map({});
|
|
2294
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2445
2295
|
const data = parsedOutput.body;
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
}
|
|
2296
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2297
|
+
Code: smithy_client_1.expectString,
|
|
2298
|
+
Message: smithy_client_1.expectString,
|
|
2299
|
+
});
|
|
2300
|
+
Object.assign(contents, doc);
|
|
2452
2301
|
const exception = new models_0_1.PreconditionFailedException({
|
|
2453
2302
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2454
2303
|
...contents,
|
|
@@ -2456,14 +2305,13 @@ const de_PreconditionFailedExceptionRes = async (parsedOutput, context) => {
|
|
|
2456
2305
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2457
2306
|
};
|
|
2458
2307
|
const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
2459
|
-
const contents = map({});
|
|
2308
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2460
2309
|
const data = parsedOutput.body;
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
}
|
|
2310
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2311
|
+
Code: smithy_client_1.expectString,
|
|
2312
|
+
Message: smithy_client_1.expectString,
|
|
2313
|
+
});
|
|
2314
|
+
Object.assign(contents, doc);
|
|
2467
2315
|
const exception = new models_0_1.ServiceUnavailableException({
|
|
2468
2316
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2469
2317
|
...contents,
|
|
@@ -2471,14 +2319,13 @@ const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
|
2471
2319
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2472
2320
|
};
|
|
2473
2321
|
const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
|
|
2474
|
-
const contents = map({});
|
|
2322
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2475
2323
|
const data = parsedOutput.body;
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
}
|
|
2324
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2325
|
+
Code: smithy_client_1.expectString,
|
|
2326
|
+
Message: smithy_client_1.expectString,
|
|
2327
|
+
});
|
|
2328
|
+
Object.assign(contents, doc);
|
|
2482
2329
|
const exception = new models_0_1.TooManyRequestsException({
|
|
2483
2330
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2484
2331
|
...contents,
|
|
@@ -2486,43 +2333,23 @@ const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
|
|
|
2486
2333
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2487
2334
|
};
|
|
2488
2335
|
const de_UnauthorizedExceptionRes = async (parsedOutput, context) => {
|
|
2489
|
-
const contents = map({});
|
|
2336
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2490
2337
|
const data = parsedOutput.body;
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
}
|
|
2338
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2339
|
+
Code: smithy_client_1.expectString,
|
|
2340
|
+
Message: smithy_client_1.expectString,
|
|
2341
|
+
});
|
|
2342
|
+
Object.assign(contents, doc);
|
|
2497
2343
|
const exception = new models_0_1.UnauthorizedException({
|
|
2498
2344
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2499
2345
|
...contents,
|
|
2500
2346
|
});
|
|
2501
2347
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2502
2348
|
};
|
|
2503
|
-
const se___listOfGetDiscoveredSchemaVersionItemInput = (input, context) => {
|
|
2504
|
-
return input
|
|
2505
|
-
.filter((e) => e != null)
|
|
2506
|
-
.map((entry) => {
|
|
2507
|
-
return entry;
|
|
2508
|
-
});
|
|
2509
|
-
};
|
|
2510
|
-
const se_Tags = (input, context) => {
|
|
2511
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2512
|
-
if (value === null) {
|
|
2513
|
-
return acc;
|
|
2514
|
-
}
|
|
2515
|
-
acc[key] = value;
|
|
2516
|
-
return acc;
|
|
2517
|
-
}, {});
|
|
2518
|
-
};
|
|
2519
2349
|
const de___listOfDiscovererSummary = (output, context) => {
|
|
2520
2350
|
const retVal = (output || [])
|
|
2521
2351
|
.filter((e) => e != null)
|
|
2522
2352
|
.map((entry) => {
|
|
2523
|
-
if (entry === null) {
|
|
2524
|
-
return null;
|
|
2525
|
-
}
|
|
2526
2353
|
return de_DiscovererSummary(entry, context);
|
|
2527
2354
|
});
|
|
2528
2355
|
return retVal;
|
|
@@ -2531,9 +2358,6 @@ const de___listOfRegistrySummary = (output, context) => {
|
|
|
2531
2358
|
const retVal = (output || [])
|
|
2532
2359
|
.filter((e) => e != null)
|
|
2533
2360
|
.map((entry) => {
|
|
2534
|
-
if (entry === null) {
|
|
2535
|
-
return null;
|
|
2536
|
-
}
|
|
2537
2361
|
return de_RegistrySummary(entry, context);
|
|
2538
2362
|
});
|
|
2539
2363
|
return retVal;
|
|
@@ -2542,31 +2366,14 @@ const de___listOfSchemaSummary = (output, context) => {
|
|
|
2542
2366
|
const retVal = (output || [])
|
|
2543
2367
|
.filter((e) => e != null)
|
|
2544
2368
|
.map((entry) => {
|
|
2545
|
-
if (entry === null) {
|
|
2546
|
-
return null;
|
|
2547
|
-
}
|
|
2548
2369
|
return de_SchemaSummary(entry, context);
|
|
2549
2370
|
});
|
|
2550
2371
|
return retVal;
|
|
2551
2372
|
};
|
|
2552
|
-
const de___listOfSchemaVersionSummary = (output, context) => {
|
|
2553
|
-
const retVal = (output || [])
|
|
2554
|
-
.filter((e) => e != null)
|
|
2555
|
-
.map((entry) => {
|
|
2556
|
-
if (entry === null) {
|
|
2557
|
-
return null;
|
|
2558
|
-
}
|
|
2559
|
-
return de_SchemaVersionSummary(entry, context);
|
|
2560
|
-
});
|
|
2561
|
-
return retVal;
|
|
2562
|
-
};
|
|
2563
2373
|
const de___listOfSearchSchemaSummary = (output, context) => {
|
|
2564
2374
|
const retVal = (output || [])
|
|
2565
2375
|
.filter((e) => e != null)
|
|
2566
2376
|
.map((entry) => {
|
|
2567
|
-
if (entry === null) {
|
|
2568
|
-
return null;
|
|
2569
|
-
}
|
|
2570
2377
|
return de_SearchSchemaSummary(entry, context);
|
|
2571
2378
|
});
|
|
2572
2379
|
return retVal;
|
|
@@ -2575,70 +2382,50 @@ const de___listOfSearchSchemaVersionSummary = (output, context) => {
|
|
|
2575
2382
|
const retVal = (output || [])
|
|
2576
2383
|
.filter((e) => e != null)
|
|
2577
2384
|
.map((entry) => {
|
|
2578
|
-
if (entry === null) {
|
|
2579
|
-
return null;
|
|
2580
|
-
}
|
|
2581
2385
|
return de_SearchSchemaVersionSummary(entry, context);
|
|
2582
2386
|
});
|
|
2583
2387
|
return retVal;
|
|
2584
2388
|
};
|
|
2585
2389
|
const de_DiscovererSummary = (output, context) => {
|
|
2586
|
-
return {
|
|
2587
|
-
CrossAccount:
|
|
2588
|
-
DiscovererArn:
|
|
2589
|
-
DiscovererId:
|
|
2590
|
-
SourceArn:
|
|
2591
|
-
State:
|
|
2592
|
-
Tags:
|
|
2593
|
-
};
|
|
2390
|
+
return (0, smithy_client_1.take)(output, {
|
|
2391
|
+
CrossAccount: smithy_client_1.expectBoolean,
|
|
2392
|
+
DiscovererArn: smithy_client_1.expectString,
|
|
2393
|
+
DiscovererId: smithy_client_1.expectString,
|
|
2394
|
+
SourceArn: smithy_client_1.expectString,
|
|
2395
|
+
State: smithy_client_1.expectString,
|
|
2396
|
+
Tags: [, smithy_client_1._json, `tags`],
|
|
2397
|
+
});
|
|
2594
2398
|
};
|
|
2595
2399
|
const de_RegistrySummary = (output, context) => {
|
|
2596
|
-
return {
|
|
2597
|
-
RegistryArn:
|
|
2598
|
-
RegistryName:
|
|
2599
|
-
Tags:
|
|
2600
|
-
};
|
|
2400
|
+
return (0, smithy_client_1.take)(output, {
|
|
2401
|
+
RegistryArn: smithy_client_1.expectString,
|
|
2402
|
+
RegistryName: smithy_client_1.expectString,
|
|
2403
|
+
Tags: [, smithy_client_1._json, `tags`],
|
|
2404
|
+
});
|
|
2601
2405
|
};
|
|
2602
2406
|
const de_SchemaSummary = (output, context) => {
|
|
2603
|
-
return {
|
|
2604
|
-
LastModified:
|
|
2605
|
-
SchemaArn:
|
|
2606
|
-
SchemaName:
|
|
2607
|
-
Tags:
|
|
2608
|
-
VersionCount:
|
|
2609
|
-
};
|
|
2610
|
-
};
|
|
2611
|
-
const de_SchemaVersionSummary = (output, context) => {
|
|
2612
|
-
return {
|
|
2613
|
-
SchemaArn: (0, smithy_client_1.expectString)(output.SchemaArn),
|
|
2614
|
-
SchemaName: (0, smithy_client_1.expectString)(output.SchemaName),
|
|
2615
|
-
SchemaVersion: (0, smithy_client_1.expectString)(output.SchemaVersion),
|
|
2616
|
-
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
2617
|
-
};
|
|
2407
|
+
return (0, smithy_client_1.take)(output, {
|
|
2408
|
+
LastModified: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
2409
|
+
SchemaArn: smithy_client_1.expectString,
|
|
2410
|
+
SchemaName: smithy_client_1.expectString,
|
|
2411
|
+
Tags: [, smithy_client_1._json, `tags`],
|
|
2412
|
+
VersionCount: smithy_client_1.expectLong,
|
|
2413
|
+
});
|
|
2618
2414
|
};
|
|
2619
2415
|
const de_SearchSchemaSummary = (output, context) => {
|
|
2620
|
-
return {
|
|
2621
|
-
RegistryName:
|
|
2622
|
-
SchemaArn:
|
|
2623
|
-
SchemaName:
|
|
2624
|
-
SchemaVersions:
|
|
2625
|
-
};
|
|
2416
|
+
return (0, smithy_client_1.take)(output, {
|
|
2417
|
+
RegistryName: smithy_client_1.expectString,
|
|
2418
|
+
SchemaArn: smithy_client_1.expectString,
|
|
2419
|
+
SchemaName: smithy_client_1.expectString,
|
|
2420
|
+
SchemaVersions: (_) => de___listOfSearchSchemaVersionSummary(_, context),
|
|
2421
|
+
});
|
|
2626
2422
|
};
|
|
2627
2423
|
const de_SearchSchemaVersionSummary = (output, context) => {
|
|
2628
|
-
return {
|
|
2629
|
-
CreatedDate:
|
|
2630
|
-
SchemaVersion:
|
|
2631
|
-
Type:
|
|
2632
|
-
};
|
|
2633
|
-
};
|
|
2634
|
-
const de_Tags = (output, context) => {
|
|
2635
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2636
|
-
if (value === null) {
|
|
2637
|
-
return acc;
|
|
2638
|
-
}
|
|
2639
|
-
acc[key] = (0, smithy_client_1.expectString)(value);
|
|
2640
|
-
return acc;
|
|
2641
|
-
}, {});
|
|
2424
|
+
return (0, smithy_client_1.take)(output, {
|
|
2425
|
+
CreatedDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
2426
|
+
SchemaVersion: smithy_client_1.expectString,
|
|
2427
|
+
Type: smithy_client_1.expectString,
|
|
2428
|
+
});
|
|
2642
2429
|
};
|
|
2643
2430
|
const deserializeMetadata = (output) => ({
|
|
2644
2431
|
httpStatusCode: output.statusCode,
|