@aws-sdk/client-appsync 3.312.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 +486 -1188
- package/dist-es/protocols/Aws_restJson1.js +414 -1116
- package/package.json +6 -6
|
@@ -16,9 +16,9 @@ const se_AssociateApiCommand = async (input, context) => {
|
|
|
16
16
|
"/v1/domainnames/{domainName}/apiassociation";
|
|
17
17
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainName", () => input.domainName, "{domainName}", false);
|
|
18
18
|
let body;
|
|
19
|
-
body = JSON.stringify({
|
|
20
|
-
|
|
21
|
-
});
|
|
19
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
20
|
+
apiId: [],
|
|
21
|
+
}));
|
|
22
22
|
return new protocol_http_1.HttpRequest({
|
|
23
23
|
protocol,
|
|
24
24
|
hostname,
|
|
@@ -38,13 +38,13 @@ const se_CreateApiCacheCommand = async (input, context) => {
|
|
|
38
38
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/ApiCaches";
|
|
39
39
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "apiId", () => input.apiId, "{apiId}", false);
|
|
40
40
|
let body;
|
|
41
|
-
body = JSON.stringify({
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
});
|
|
41
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
42
|
+
apiCachingBehavior: [],
|
|
43
|
+
atRestEncryptionEnabled: [],
|
|
44
|
+
transitEncryptionEnabled: [],
|
|
45
|
+
ttl: [],
|
|
46
|
+
type: [],
|
|
47
|
+
}));
|
|
48
48
|
return new protocol_http_1.HttpRequest({
|
|
49
49
|
protocol,
|
|
50
50
|
hostname,
|
|
@@ -64,10 +64,10 @@ const se_CreateApiKeyCommand = async (input, context) => {
|
|
|
64
64
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/apikeys";
|
|
65
65
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "apiId", () => input.apiId, "{apiId}", false);
|
|
66
66
|
let body;
|
|
67
|
-
body = JSON.stringify({
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
});
|
|
67
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
68
|
+
description: [],
|
|
69
|
+
expires: [],
|
|
70
|
+
}));
|
|
71
71
|
return new protocol_http_1.HttpRequest({
|
|
72
72
|
protocol,
|
|
73
73
|
hostname,
|
|
@@ -87,27 +87,19 @@ const se_CreateDataSourceCommand = async (input, context) => {
|
|
|
87
87
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/datasources";
|
|
88
88
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "apiId", () => input.apiId, "{apiId}", false);
|
|
89
89
|
let body;
|
|
90
|
-
body = JSON.stringify({
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
openSearchServiceConfig: se_OpenSearchServiceDataSourceConfig(input.openSearchServiceConfig, context),
|
|
104
|
-
}),
|
|
105
|
-
...(input.relationalDatabaseConfig != null && {
|
|
106
|
-
relationalDatabaseConfig: se_RelationalDatabaseDataSourceConfig(input.relationalDatabaseConfig, context),
|
|
107
|
-
}),
|
|
108
|
-
...(input.serviceRoleArn != null && { serviceRoleArn: input.serviceRoleArn }),
|
|
109
|
-
...(input.type != null && { type: input.type }),
|
|
110
|
-
});
|
|
90
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
91
|
+
description: [],
|
|
92
|
+
dynamodbConfig: (_) => (0, smithy_client_1._json)(_),
|
|
93
|
+
elasticsearchConfig: (_) => (0, smithy_client_1._json)(_),
|
|
94
|
+
eventBridgeConfig: (_) => (0, smithy_client_1._json)(_),
|
|
95
|
+
httpConfig: (_) => (0, smithy_client_1._json)(_),
|
|
96
|
+
lambdaConfig: (_) => (0, smithy_client_1._json)(_),
|
|
97
|
+
name: [],
|
|
98
|
+
openSearchServiceConfig: (_) => (0, smithy_client_1._json)(_),
|
|
99
|
+
relationalDatabaseConfig: (_) => (0, smithy_client_1._json)(_),
|
|
100
|
+
serviceRoleArn: [],
|
|
101
|
+
type: [],
|
|
102
|
+
}));
|
|
111
103
|
return new protocol_http_1.HttpRequest({
|
|
112
104
|
protocol,
|
|
113
105
|
hostname,
|
|
@@ -126,11 +118,11 @@ const se_CreateDomainNameCommand = async (input, context) => {
|
|
|
126
118
|
};
|
|
127
119
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/domainnames";
|
|
128
120
|
let body;
|
|
129
|
-
body = JSON.stringify({
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
});
|
|
121
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
122
|
+
certificateArn: [],
|
|
123
|
+
description: [],
|
|
124
|
+
domainName: [],
|
|
125
|
+
}));
|
|
134
126
|
return new protocol_http_1.HttpRequest({
|
|
135
127
|
protocol,
|
|
136
128
|
hostname,
|
|
@@ -150,18 +142,18 @@ const se_CreateFunctionCommand = async (input, context) => {
|
|
|
150
142
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/functions";
|
|
151
143
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "apiId", () => input.apiId, "{apiId}", false);
|
|
152
144
|
let body;
|
|
153
|
-
body = JSON.stringify({
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
});
|
|
145
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
146
|
+
code: [],
|
|
147
|
+
dataSourceName: [],
|
|
148
|
+
description: [],
|
|
149
|
+
functionVersion: [],
|
|
150
|
+
maxBatchSize: [],
|
|
151
|
+
name: [],
|
|
152
|
+
requestMappingTemplate: [],
|
|
153
|
+
responseMappingTemplate: [],
|
|
154
|
+
runtime: (_) => (0, smithy_client_1._json)(_),
|
|
155
|
+
syncConfig: (_) => (0, smithy_client_1._json)(_),
|
|
156
|
+
}));
|
|
165
157
|
return new protocol_http_1.HttpRequest({
|
|
166
158
|
protocol,
|
|
167
159
|
hostname,
|
|
@@ -180,23 +172,17 @@ const se_CreateGraphqlApiCommand = async (input, context) => {
|
|
|
180
172
|
};
|
|
181
173
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis";
|
|
182
174
|
let body;
|
|
183
|
-
body = JSON.stringify({
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
openIDConnectConfig: se_OpenIDConnectConfig(input.openIDConnectConfig, context),
|
|
195
|
-
}),
|
|
196
|
-
...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
|
|
197
|
-
...(input.userPoolConfig != null && { userPoolConfig: se_UserPoolConfig(input.userPoolConfig, context) }),
|
|
198
|
-
...(input.xrayEnabled != null && { xrayEnabled: input.xrayEnabled }),
|
|
199
|
-
});
|
|
175
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
176
|
+
additionalAuthenticationProviders: (_) => (0, smithy_client_1._json)(_),
|
|
177
|
+
authenticationType: [],
|
|
178
|
+
lambdaAuthorizerConfig: (_) => (0, smithy_client_1._json)(_),
|
|
179
|
+
logConfig: (_) => (0, smithy_client_1._json)(_),
|
|
180
|
+
name: [],
|
|
181
|
+
openIDConnectConfig: (_) => (0, smithy_client_1._json)(_),
|
|
182
|
+
tags: (_) => (0, smithy_client_1._json)(_),
|
|
183
|
+
userPoolConfig: (_) => (0, smithy_client_1._json)(_),
|
|
184
|
+
xrayEnabled: [],
|
|
185
|
+
}));
|
|
200
186
|
return new protocol_http_1.HttpRequest({
|
|
201
187
|
protocol,
|
|
202
188
|
hostname,
|
|
@@ -218,19 +204,19 @@ const se_CreateResolverCommand = async (input, context) => {
|
|
|
218
204
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "apiId", () => input.apiId, "{apiId}", false);
|
|
219
205
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "typeName", () => input.typeName, "{typeName}", false);
|
|
220
206
|
let body;
|
|
221
|
-
body = JSON.stringify({
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
});
|
|
207
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
208
|
+
cachingConfig: (_) => (0, smithy_client_1._json)(_),
|
|
209
|
+
code: [],
|
|
210
|
+
dataSourceName: [],
|
|
211
|
+
fieldName: [],
|
|
212
|
+
kind: [],
|
|
213
|
+
maxBatchSize: [],
|
|
214
|
+
pipelineConfig: (_) => (0, smithy_client_1._json)(_),
|
|
215
|
+
requestMappingTemplate: [],
|
|
216
|
+
responseMappingTemplate: [],
|
|
217
|
+
runtime: (_) => (0, smithy_client_1._json)(_),
|
|
218
|
+
syncConfig: (_) => (0, smithy_client_1._json)(_),
|
|
219
|
+
}));
|
|
234
220
|
return new protocol_http_1.HttpRequest({
|
|
235
221
|
protocol,
|
|
236
222
|
hostname,
|
|
@@ -250,10 +236,10 @@ const se_CreateTypeCommand = async (input, context) => {
|
|
|
250
236
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/types";
|
|
251
237
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "apiId", () => input.apiId, "{apiId}", false);
|
|
252
238
|
let body;
|
|
253
|
-
body = JSON.stringify({
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
});
|
|
239
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
240
|
+
definition: [],
|
|
241
|
+
format: [],
|
|
242
|
+
}));
|
|
257
243
|
return new protocol_http_1.HttpRequest({
|
|
258
244
|
protocol,
|
|
259
245
|
hostname,
|
|
@@ -433,12 +419,12 @@ const se_EvaluateCodeCommand = async (input, context) => {
|
|
|
433
419
|
};
|
|
434
420
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/dataplane-evaluatecode";
|
|
435
421
|
let body;
|
|
436
|
-
body = JSON.stringify({
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
});
|
|
422
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
423
|
+
code: [],
|
|
424
|
+
context: [],
|
|
425
|
+
function: [],
|
|
426
|
+
runtime: (_) => (0, smithy_client_1._json)(_),
|
|
427
|
+
}));
|
|
442
428
|
return new protocol_http_1.HttpRequest({
|
|
443
429
|
protocol,
|
|
444
430
|
hostname,
|
|
@@ -457,10 +443,10 @@ const se_EvaluateMappingTemplateCommand = async (input, context) => {
|
|
|
457
443
|
};
|
|
458
444
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/dataplane-evaluatetemplate";
|
|
459
445
|
let body;
|
|
460
|
-
body = JSON.stringify({
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
});
|
|
446
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
447
|
+
context: [],
|
|
448
|
+
template: [],
|
|
449
|
+
}));
|
|
464
450
|
return new protocol_http_1.HttpRequest({
|
|
465
451
|
protocol,
|
|
466
452
|
hostname,
|
|
@@ -599,7 +585,7 @@ const se_GetIntrospectionSchemaCommand = async (input, context) => {
|
|
|
599
585
|
const headers = {};
|
|
600
586
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/schema";
|
|
601
587
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "apiId", () => input.apiId, "{apiId}", false);
|
|
602
|
-
const query = map({
|
|
588
|
+
const query = (0, smithy_client_1.map)({
|
|
603
589
|
format: [, (0, smithy_client_1.expectNonNull)(input.format, `format`)],
|
|
604
590
|
includeDirectives: [() => input.includeDirectives !== void 0, () => input.includeDirectives.toString()],
|
|
605
591
|
});
|
|
@@ -659,7 +645,7 @@ const se_GetTypeCommand = async (input, context) => {
|
|
|
659
645
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/types/{typeName}";
|
|
660
646
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "apiId", () => input.apiId, "{apiId}", false);
|
|
661
647
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "typeName", () => input.typeName, "{typeName}", false);
|
|
662
|
-
const query = map({
|
|
648
|
+
const query = (0, smithy_client_1.map)({
|
|
663
649
|
format: [, (0, smithy_client_1.expectNonNull)(input.format, `format`)],
|
|
664
650
|
});
|
|
665
651
|
let body;
|
|
@@ -680,7 +666,7 @@ const se_ListApiKeysCommand = async (input, context) => {
|
|
|
680
666
|
const headers = {};
|
|
681
667
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/apikeys";
|
|
682
668
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "apiId", () => input.apiId, "{apiId}", false);
|
|
683
|
-
const query = map({
|
|
669
|
+
const query = (0, smithy_client_1.map)({
|
|
684
670
|
nextToken: [, input.nextToken],
|
|
685
671
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
686
672
|
});
|
|
@@ -702,7 +688,7 @@ const se_ListDataSourcesCommand = async (input, context) => {
|
|
|
702
688
|
const headers = {};
|
|
703
689
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/datasources";
|
|
704
690
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "apiId", () => input.apiId, "{apiId}", false);
|
|
705
|
-
const query = map({
|
|
691
|
+
const query = (0, smithy_client_1.map)({
|
|
706
692
|
nextToken: [, input.nextToken],
|
|
707
693
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
708
694
|
});
|
|
@@ -723,7 +709,7 @@ const se_ListDomainNamesCommand = async (input, context) => {
|
|
|
723
709
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
724
710
|
const headers = {};
|
|
725
711
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/domainnames";
|
|
726
|
-
const query = map({
|
|
712
|
+
const query = (0, smithy_client_1.map)({
|
|
727
713
|
nextToken: [, input.nextToken],
|
|
728
714
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
729
715
|
});
|
|
@@ -745,7 +731,7 @@ const se_ListFunctionsCommand = async (input, context) => {
|
|
|
745
731
|
const headers = {};
|
|
746
732
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/functions";
|
|
747
733
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "apiId", () => input.apiId, "{apiId}", false);
|
|
748
|
-
const query = map({
|
|
734
|
+
const query = (0, smithy_client_1.map)({
|
|
749
735
|
nextToken: [, input.nextToken],
|
|
750
736
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
751
737
|
});
|
|
@@ -766,7 +752,7 @@ const se_ListGraphqlApisCommand = async (input, context) => {
|
|
|
766
752
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
767
753
|
const headers = {};
|
|
768
754
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis";
|
|
769
|
-
const query = map({
|
|
755
|
+
const query = (0, smithy_client_1.map)({
|
|
770
756
|
nextToken: [, input.nextToken],
|
|
771
757
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
772
758
|
});
|
|
@@ -790,7 +776,7 @@ const se_ListResolversCommand = async (input, context) => {
|
|
|
790
776
|
"/v1/apis/{apiId}/types/{typeName}/resolvers";
|
|
791
777
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "apiId", () => input.apiId, "{apiId}", false);
|
|
792
778
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "typeName", () => input.typeName, "{typeName}", false);
|
|
793
|
-
const query = map({
|
|
779
|
+
const query = (0, smithy_client_1.map)({
|
|
794
780
|
nextToken: [, input.nextToken],
|
|
795
781
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
796
782
|
});
|
|
@@ -814,7 +800,7 @@ const se_ListResolversByFunctionCommand = async (input, context) => {
|
|
|
814
800
|
"/v1/apis/{apiId}/functions/{functionId}/resolvers";
|
|
815
801
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "apiId", () => input.apiId, "{apiId}", false);
|
|
816
802
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "functionId", () => input.functionId, "{functionId}", false);
|
|
817
|
-
const query = map({
|
|
803
|
+
const query = (0, smithy_client_1.map)({
|
|
818
804
|
nextToken: [, input.nextToken],
|
|
819
805
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
820
806
|
});
|
|
@@ -853,7 +839,7 @@ const se_ListTypesCommand = async (input, context) => {
|
|
|
853
839
|
const headers = {};
|
|
854
840
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/types";
|
|
855
841
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "apiId", () => input.apiId, "{apiId}", false);
|
|
856
|
-
const query = map({
|
|
842
|
+
const query = (0, smithy_client_1.map)({
|
|
857
843
|
format: [, (0, smithy_client_1.expectNonNull)(input.format, `format`)],
|
|
858
844
|
nextToken: [, input.nextToken],
|
|
859
845
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
@@ -879,9 +865,9 @@ const se_StartSchemaCreationCommand = async (input, context) => {
|
|
|
879
865
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/schemacreation";
|
|
880
866
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "apiId", () => input.apiId, "{apiId}", false);
|
|
881
867
|
let body;
|
|
882
|
-
body = JSON.stringify({
|
|
883
|
-
|
|
884
|
-
});
|
|
868
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
869
|
+
definition: (_) => context.base64Encoder(_),
|
|
870
|
+
}));
|
|
885
871
|
return new protocol_http_1.HttpRequest({
|
|
886
872
|
protocol,
|
|
887
873
|
hostname,
|
|
@@ -901,9 +887,9 @@ const se_TagResourceCommand = async (input, context) => {
|
|
|
901
887
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/tags/{resourceArn}";
|
|
902
888
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
903
889
|
let body;
|
|
904
|
-
body = JSON.stringify({
|
|
905
|
-
|
|
906
|
-
});
|
|
890
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
891
|
+
tags: (_) => (0, smithy_client_1._json)(_),
|
|
892
|
+
}));
|
|
907
893
|
return new protocol_http_1.HttpRequest({
|
|
908
894
|
protocol,
|
|
909
895
|
hostname,
|
|
@@ -920,7 +906,7 @@ const se_UntagResourceCommand = async (input, context) => {
|
|
|
920
906
|
const headers = {};
|
|
921
907
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/tags/{resourceArn}";
|
|
922
908
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
923
|
-
const query = map({
|
|
909
|
+
const query = (0, smithy_client_1.map)({
|
|
924
910
|
tagKeys: [
|
|
925
911
|
(0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
|
|
926
912
|
() => (input.tagKeys || []).map((_entry) => _entry),
|
|
@@ -947,11 +933,11 @@ const se_UpdateApiCacheCommand = async (input, context) => {
|
|
|
947
933
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/ApiCaches/update";
|
|
948
934
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "apiId", () => input.apiId, "{apiId}", false);
|
|
949
935
|
let body;
|
|
950
|
-
body = JSON.stringify({
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
});
|
|
936
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
937
|
+
apiCachingBehavior: [],
|
|
938
|
+
ttl: [],
|
|
939
|
+
type: [],
|
|
940
|
+
}));
|
|
955
941
|
return new protocol_http_1.HttpRequest({
|
|
956
942
|
protocol,
|
|
957
943
|
hostname,
|
|
@@ -972,10 +958,10 @@ const se_UpdateApiKeyCommand = async (input, context) => {
|
|
|
972
958
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "apiId", () => input.apiId, "{apiId}", false);
|
|
973
959
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "id", () => input.id, "{id}", false);
|
|
974
960
|
let body;
|
|
975
|
-
body = JSON.stringify({
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
});
|
|
961
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
962
|
+
description: [],
|
|
963
|
+
expires: [],
|
|
964
|
+
}));
|
|
979
965
|
return new protocol_http_1.HttpRequest({
|
|
980
966
|
protocol,
|
|
981
967
|
hostname,
|
|
@@ -996,26 +982,18 @@ const se_UpdateDataSourceCommand = async (input, context) => {
|
|
|
996
982
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "apiId", () => input.apiId, "{apiId}", false);
|
|
997
983
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "name", () => input.name, "{name}", false);
|
|
998
984
|
let body;
|
|
999
|
-
body = JSON.stringify({
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
openSearchServiceConfig: se_OpenSearchServiceDataSourceConfig(input.openSearchServiceConfig, context),
|
|
1012
|
-
}),
|
|
1013
|
-
...(input.relationalDatabaseConfig != null && {
|
|
1014
|
-
relationalDatabaseConfig: se_RelationalDatabaseDataSourceConfig(input.relationalDatabaseConfig, context),
|
|
1015
|
-
}),
|
|
1016
|
-
...(input.serviceRoleArn != null && { serviceRoleArn: input.serviceRoleArn }),
|
|
1017
|
-
...(input.type != null && { type: input.type }),
|
|
1018
|
-
});
|
|
985
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
986
|
+
description: [],
|
|
987
|
+
dynamodbConfig: (_) => (0, smithy_client_1._json)(_),
|
|
988
|
+
elasticsearchConfig: (_) => (0, smithy_client_1._json)(_),
|
|
989
|
+
eventBridgeConfig: (_) => (0, smithy_client_1._json)(_),
|
|
990
|
+
httpConfig: (_) => (0, smithy_client_1._json)(_),
|
|
991
|
+
lambdaConfig: (_) => (0, smithy_client_1._json)(_),
|
|
992
|
+
openSearchServiceConfig: (_) => (0, smithy_client_1._json)(_),
|
|
993
|
+
relationalDatabaseConfig: (_) => (0, smithy_client_1._json)(_),
|
|
994
|
+
serviceRoleArn: [],
|
|
995
|
+
type: [],
|
|
996
|
+
}));
|
|
1019
997
|
return new protocol_http_1.HttpRequest({
|
|
1020
998
|
protocol,
|
|
1021
999
|
hostname,
|
|
@@ -1035,9 +1013,9 @@ const se_UpdateDomainNameCommand = async (input, context) => {
|
|
|
1035
1013
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/domainnames/{domainName}";
|
|
1036
1014
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainName", () => input.domainName, "{domainName}", false);
|
|
1037
1015
|
let body;
|
|
1038
|
-
body = JSON.stringify({
|
|
1039
|
-
|
|
1040
|
-
});
|
|
1016
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1017
|
+
description: [],
|
|
1018
|
+
}));
|
|
1041
1019
|
return new protocol_http_1.HttpRequest({
|
|
1042
1020
|
protocol,
|
|
1043
1021
|
hostname,
|
|
@@ -1058,18 +1036,18 @@ const se_UpdateFunctionCommand = async (input, context) => {
|
|
|
1058
1036
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "apiId", () => input.apiId, "{apiId}", false);
|
|
1059
1037
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "functionId", () => input.functionId, "{functionId}", false);
|
|
1060
1038
|
let body;
|
|
1061
|
-
body = JSON.stringify({
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
});
|
|
1039
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1040
|
+
code: [],
|
|
1041
|
+
dataSourceName: [],
|
|
1042
|
+
description: [],
|
|
1043
|
+
functionVersion: [],
|
|
1044
|
+
maxBatchSize: [],
|
|
1045
|
+
name: [],
|
|
1046
|
+
requestMappingTemplate: [],
|
|
1047
|
+
responseMappingTemplate: [],
|
|
1048
|
+
runtime: (_) => (0, smithy_client_1._json)(_),
|
|
1049
|
+
syncConfig: (_) => (0, smithy_client_1._json)(_),
|
|
1050
|
+
}));
|
|
1073
1051
|
return new protocol_http_1.HttpRequest({
|
|
1074
1052
|
protocol,
|
|
1075
1053
|
hostname,
|
|
@@ -1089,22 +1067,16 @@ const se_UpdateGraphqlApiCommand = async (input, context) => {
|
|
|
1089
1067
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}";
|
|
1090
1068
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "apiId", () => input.apiId, "{apiId}", false);
|
|
1091
1069
|
let body;
|
|
1092
|
-
body = JSON.stringify({
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
...(input.openIDConnectConfig != null && {
|
|
1103
|
-
openIDConnectConfig: se_OpenIDConnectConfig(input.openIDConnectConfig, context),
|
|
1104
|
-
}),
|
|
1105
|
-
...(input.userPoolConfig != null && { userPoolConfig: se_UserPoolConfig(input.userPoolConfig, context) }),
|
|
1106
|
-
...(input.xrayEnabled != null && { xrayEnabled: input.xrayEnabled }),
|
|
1107
|
-
});
|
|
1070
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1071
|
+
additionalAuthenticationProviders: (_) => (0, smithy_client_1._json)(_),
|
|
1072
|
+
authenticationType: [],
|
|
1073
|
+
lambdaAuthorizerConfig: (_) => (0, smithy_client_1._json)(_),
|
|
1074
|
+
logConfig: (_) => (0, smithy_client_1._json)(_),
|
|
1075
|
+
name: [],
|
|
1076
|
+
openIDConnectConfig: (_) => (0, smithy_client_1._json)(_),
|
|
1077
|
+
userPoolConfig: (_) => (0, smithy_client_1._json)(_),
|
|
1078
|
+
xrayEnabled: [],
|
|
1079
|
+
}));
|
|
1108
1080
|
return new protocol_http_1.HttpRequest({
|
|
1109
1081
|
protocol,
|
|
1110
1082
|
hostname,
|
|
@@ -1127,18 +1099,18 @@ const se_UpdateResolverCommand = async (input, context) => {
|
|
|
1127
1099
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "typeName", () => input.typeName, "{typeName}", false);
|
|
1128
1100
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "fieldName", () => input.fieldName, "{fieldName}", false);
|
|
1129
1101
|
let body;
|
|
1130
|
-
body = JSON.stringify({
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
});
|
|
1102
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1103
|
+
cachingConfig: (_) => (0, smithy_client_1._json)(_),
|
|
1104
|
+
code: [],
|
|
1105
|
+
dataSourceName: [],
|
|
1106
|
+
kind: [],
|
|
1107
|
+
maxBatchSize: [],
|
|
1108
|
+
pipelineConfig: (_) => (0, smithy_client_1._json)(_),
|
|
1109
|
+
requestMappingTemplate: [],
|
|
1110
|
+
responseMappingTemplate: [],
|
|
1111
|
+
runtime: (_) => (0, smithy_client_1._json)(_),
|
|
1112
|
+
syncConfig: (_) => (0, smithy_client_1._json)(_),
|
|
1113
|
+
}));
|
|
1142
1114
|
return new protocol_http_1.HttpRequest({
|
|
1143
1115
|
protocol,
|
|
1144
1116
|
hostname,
|
|
@@ -1159,10 +1131,10 @@ const se_UpdateTypeCommand = async (input, context) => {
|
|
|
1159
1131
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "apiId", () => input.apiId, "{apiId}", false);
|
|
1160
1132
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "typeName", () => input.typeName, "{typeName}", false);
|
|
1161
1133
|
let body;
|
|
1162
|
-
body = JSON.stringify({
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
});
|
|
1134
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1135
|
+
definition: [],
|
|
1136
|
+
format: [],
|
|
1137
|
+
}));
|
|
1166
1138
|
return new protocol_http_1.HttpRequest({
|
|
1167
1139
|
protocol,
|
|
1168
1140
|
hostname,
|
|
@@ -1178,13 +1150,14 @@ const de_AssociateApiCommand = async (output, context) => {
|
|
|
1178
1150
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1179
1151
|
return de_AssociateApiCommandError(output, context);
|
|
1180
1152
|
}
|
|
1181
|
-
const contents = map({
|
|
1153
|
+
const contents = (0, smithy_client_1.map)({
|
|
1182
1154
|
$metadata: deserializeMetadata(output),
|
|
1183
1155
|
});
|
|
1184
1156
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
}
|
|
1157
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1158
|
+
apiAssociation: smithy_client_1._json,
|
|
1159
|
+
});
|
|
1160
|
+
Object.assign(contents, doc);
|
|
1188
1161
|
return contents;
|
|
1189
1162
|
};
|
|
1190
1163
|
exports.de_AssociateApiCommand = de_AssociateApiCommand;
|
|
@@ -1209,10 +1182,9 @@ const de_AssociateApiCommandError = async (output, context) => {
|
|
|
1209
1182
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1210
1183
|
default:
|
|
1211
1184
|
const parsedBody = parsedOutput.body;
|
|
1212
|
-
|
|
1185
|
+
return throwDefaultError({
|
|
1213
1186
|
output,
|
|
1214
1187
|
parsedBody,
|
|
1215
|
-
exceptionCtor: AppSyncServiceException_1.AppSyncServiceException,
|
|
1216
1188
|
errorCode,
|
|
1217
1189
|
});
|
|
1218
1190
|
}
|
|
@@ -1221,13 +1193,14 @@ const de_CreateApiCacheCommand = async (output, context) => {
|
|
|
1221
1193
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1222
1194
|
return de_CreateApiCacheCommandError(output, context);
|
|
1223
1195
|
}
|
|
1224
|
-
const contents = map({
|
|
1196
|
+
const contents = (0, smithy_client_1.map)({
|
|
1225
1197
|
$metadata: deserializeMetadata(output),
|
|
1226
1198
|
});
|
|
1227
1199
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
}
|
|
1200
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1201
|
+
apiCache: smithy_client_1._json,
|
|
1202
|
+
});
|
|
1203
|
+
Object.assign(contents, doc);
|
|
1231
1204
|
return contents;
|
|
1232
1205
|
};
|
|
1233
1206
|
exports.de_CreateApiCacheCommand = de_CreateApiCacheCommand;
|
|
@@ -1255,10 +1228,9 @@ const de_CreateApiCacheCommandError = async (output, context) => {
|
|
|
1255
1228
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1256
1229
|
default:
|
|
1257
1230
|
const parsedBody = parsedOutput.body;
|
|
1258
|
-
|
|
1231
|
+
return throwDefaultError({
|
|
1259
1232
|
output,
|
|
1260
1233
|
parsedBody,
|
|
1261
|
-
exceptionCtor: AppSyncServiceException_1.AppSyncServiceException,
|
|
1262
1234
|
errorCode,
|
|
1263
1235
|
});
|
|
1264
1236
|
}
|
|
@@ -1267,13 +1239,14 @@ const de_CreateApiKeyCommand = async (output, context) => {
|
|
|
1267
1239
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1268
1240
|
return de_CreateApiKeyCommandError(output, context);
|
|
1269
1241
|
}
|
|
1270
|
-
const contents = map({
|
|
1242
|
+
const contents = (0, smithy_client_1.map)({
|
|
1271
1243
|
$metadata: deserializeMetadata(output),
|
|
1272
1244
|
});
|
|
1273
1245
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
}
|
|
1246
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1247
|
+
apiKey: smithy_client_1._json,
|
|
1248
|
+
});
|
|
1249
|
+
Object.assign(contents, doc);
|
|
1277
1250
|
return contents;
|
|
1278
1251
|
};
|
|
1279
1252
|
exports.de_CreateApiKeyCommand = de_CreateApiKeyCommand;
|
|
@@ -1307,10 +1280,9 @@ const de_CreateApiKeyCommandError = async (output, context) => {
|
|
|
1307
1280
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1308
1281
|
default:
|
|
1309
1282
|
const parsedBody = parsedOutput.body;
|
|
1310
|
-
|
|
1283
|
+
return throwDefaultError({
|
|
1311
1284
|
output,
|
|
1312
1285
|
parsedBody,
|
|
1313
|
-
exceptionCtor: AppSyncServiceException_1.AppSyncServiceException,
|
|
1314
1286
|
errorCode,
|
|
1315
1287
|
});
|
|
1316
1288
|
}
|
|
@@ -1319,13 +1291,14 @@ const de_CreateDataSourceCommand = async (output, context) => {
|
|
|
1319
1291
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1320
1292
|
return de_CreateDataSourceCommandError(output, context);
|
|
1321
1293
|
}
|
|
1322
|
-
const contents = map({
|
|
1294
|
+
const contents = (0, smithy_client_1.map)({
|
|
1323
1295
|
$metadata: deserializeMetadata(output),
|
|
1324
1296
|
});
|
|
1325
1297
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
}
|
|
1298
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1299
|
+
dataSource: smithy_client_1._json,
|
|
1300
|
+
});
|
|
1301
|
+
Object.assign(contents, doc);
|
|
1329
1302
|
return contents;
|
|
1330
1303
|
};
|
|
1331
1304
|
exports.de_CreateDataSourceCommand = de_CreateDataSourceCommand;
|
|
@@ -1353,10 +1326,9 @@ const de_CreateDataSourceCommandError = async (output, context) => {
|
|
|
1353
1326
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1354
1327
|
default:
|
|
1355
1328
|
const parsedBody = parsedOutput.body;
|
|
1356
|
-
|
|
1329
|
+
return throwDefaultError({
|
|
1357
1330
|
output,
|
|
1358
1331
|
parsedBody,
|
|
1359
|
-
exceptionCtor: AppSyncServiceException_1.AppSyncServiceException,
|
|
1360
1332
|
errorCode,
|
|
1361
1333
|
});
|
|
1362
1334
|
}
|
|
@@ -1365,13 +1337,14 @@ const de_CreateDomainNameCommand = async (output, context) => {
|
|
|
1365
1337
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1366
1338
|
return de_CreateDomainNameCommandError(output, context);
|
|
1367
1339
|
}
|
|
1368
|
-
const contents = map({
|
|
1340
|
+
const contents = (0, smithy_client_1.map)({
|
|
1369
1341
|
$metadata: deserializeMetadata(output),
|
|
1370
1342
|
});
|
|
1371
1343
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
}
|
|
1344
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1345
|
+
domainNameConfig: smithy_client_1._json,
|
|
1346
|
+
});
|
|
1347
|
+
Object.assign(contents, doc);
|
|
1375
1348
|
return contents;
|
|
1376
1349
|
};
|
|
1377
1350
|
exports.de_CreateDomainNameCommand = de_CreateDomainNameCommand;
|
|
@@ -1393,10 +1366,9 @@ const de_CreateDomainNameCommandError = async (output, context) => {
|
|
|
1393
1366
|
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1394
1367
|
default:
|
|
1395
1368
|
const parsedBody = parsedOutput.body;
|
|
1396
|
-
|
|
1369
|
+
return throwDefaultError({
|
|
1397
1370
|
output,
|
|
1398
1371
|
parsedBody,
|
|
1399
|
-
exceptionCtor: AppSyncServiceException_1.AppSyncServiceException,
|
|
1400
1372
|
errorCode,
|
|
1401
1373
|
});
|
|
1402
1374
|
}
|
|
@@ -1405,13 +1377,14 @@ const de_CreateFunctionCommand = async (output, context) => {
|
|
|
1405
1377
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1406
1378
|
return de_CreateFunctionCommandError(output, context);
|
|
1407
1379
|
}
|
|
1408
|
-
const contents = map({
|
|
1380
|
+
const contents = (0, smithy_client_1.map)({
|
|
1409
1381
|
$metadata: deserializeMetadata(output),
|
|
1410
1382
|
});
|
|
1411
1383
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
}
|
|
1384
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1385
|
+
functionConfiguration: smithy_client_1._json,
|
|
1386
|
+
});
|
|
1387
|
+
Object.assign(contents, doc);
|
|
1415
1388
|
return contents;
|
|
1416
1389
|
};
|
|
1417
1390
|
exports.de_CreateFunctionCommand = de_CreateFunctionCommand;
|
|
@@ -1436,10 +1409,9 @@ const de_CreateFunctionCommandError = async (output, context) => {
|
|
|
1436
1409
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1437
1410
|
default:
|
|
1438
1411
|
const parsedBody = parsedOutput.body;
|
|
1439
|
-
|
|
1412
|
+
return throwDefaultError({
|
|
1440
1413
|
output,
|
|
1441
1414
|
parsedBody,
|
|
1442
|
-
exceptionCtor: AppSyncServiceException_1.AppSyncServiceException,
|
|
1443
1415
|
errorCode,
|
|
1444
1416
|
});
|
|
1445
1417
|
}
|
|
@@ -1448,13 +1420,14 @@ const de_CreateGraphqlApiCommand = async (output, context) => {
|
|
|
1448
1420
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1449
1421
|
return de_CreateGraphqlApiCommandError(output, context);
|
|
1450
1422
|
}
|
|
1451
|
-
const contents = map({
|
|
1423
|
+
const contents = (0, smithy_client_1.map)({
|
|
1452
1424
|
$metadata: deserializeMetadata(output),
|
|
1453
1425
|
});
|
|
1454
1426
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
}
|
|
1427
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1428
|
+
graphqlApi: smithy_client_1._json,
|
|
1429
|
+
});
|
|
1430
|
+
Object.assign(contents, doc);
|
|
1458
1431
|
return contents;
|
|
1459
1432
|
};
|
|
1460
1433
|
exports.de_CreateGraphqlApiCommand = de_CreateGraphqlApiCommand;
|
|
@@ -1485,10 +1458,9 @@ const de_CreateGraphqlApiCommandError = async (output, context) => {
|
|
|
1485
1458
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1486
1459
|
default:
|
|
1487
1460
|
const parsedBody = parsedOutput.body;
|
|
1488
|
-
|
|
1461
|
+
return throwDefaultError({
|
|
1489
1462
|
output,
|
|
1490
1463
|
parsedBody,
|
|
1491
|
-
exceptionCtor: AppSyncServiceException_1.AppSyncServiceException,
|
|
1492
1464
|
errorCode,
|
|
1493
1465
|
});
|
|
1494
1466
|
}
|
|
@@ -1497,13 +1469,14 @@ const de_CreateResolverCommand = async (output, context) => {
|
|
|
1497
1469
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1498
1470
|
return de_CreateResolverCommandError(output, context);
|
|
1499
1471
|
}
|
|
1500
|
-
const contents = map({
|
|
1472
|
+
const contents = (0, smithy_client_1.map)({
|
|
1501
1473
|
$metadata: deserializeMetadata(output),
|
|
1502
1474
|
});
|
|
1503
1475
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
}
|
|
1476
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1477
|
+
resolver: smithy_client_1._json,
|
|
1478
|
+
});
|
|
1479
|
+
Object.assign(contents, doc);
|
|
1507
1480
|
return contents;
|
|
1508
1481
|
};
|
|
1509
1482
|
exports.de_CreateResolverCommand = de_CreateResolverCommand;
|
|
@@ -1531,10 +1504,9 @@ const de_CreateResolverCommandError = async (output, context) => {
|
|
|
1531
1504
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1532
1505
|
default:
|
|
1533
1506
|
const parsedBody = parsedOutput.body;
|
|
1534
|
-
|
|
1507
|
+
return throwDefaultError({
|
|
1535
1508
|
output,
|
|
1536
1509
|
parsedBody,
|
|
1537
|
-
exceptionCtor: AppSyncServiceException_1.AppSyncServiceException,
|
|
1538
1510
|
errorCode,
|
|
1539
1511
|
});
|
|
1540
1512
|
}
|
|
@@ -1543,13 +1515,14 @@ const de_CreateTypeCommand = async (output, context) => {
|
|
|
1543
1515
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1544
1516
|
return de_CreateTypeCommandError(output, context);
|
|
1545
1517
|
}
|
|
1546
|
-
const contents = map({
|
|
1518
|
+
const contents = (0, smithy_client_1.map)({
|
|
1547
1519
|
$metadata: deserializeMetadata(output),
|
|
1548
1520
|
});
|
|
1549
1521
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
}
|
|
1522
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1523
|
+
type: smithy_client_1._json,
|
|
1524
|
+
});
|
|
1525
|
+
Object.assign(contents, doc);
|
|
1553
1526
|
return contents;
|
|
1554
1527
|
};
|
|
1555
1528
|
exports.de_CreateTypeCommand = de_CreateTypeCommand;
|
|
@@ -1577,10 +1550,9 @@ const de_CreateTypeCommandError = async (output, context) => {
|
|
|
1577
1550
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1578
1551
|
default:
|
|
1579
1552
|
const parsedBody = parsedOutput.body;
|
|
1580
|
-
|
|
1553
|
+
return throwDefaultError({
|
|
1581
1554
|
output,
|
|
1582
1555
|
parsedBody,
|
|
1583
|
-
exceptionCtor: AppSyncServiceException_1.AppSyncServiceException,
|
|
1584
1556
|
errorCode,
|
|
1585
1557
|
});
|
|
1586
1558
|
}
|
|
@@ -1589,7 +1561,7 @@ const de_DeleteApiCacheCommand = async (output, context) => {
|
|
|
1589
1561
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1590
1562
|
return de_DeleteApiCacheCommandError(output, context);
|
|
1591
1563
|
}
|
|
1592
|
-
const contents = map({
|
|
1564
|
+
const contents = (0, smithy_client_1.map)({
|
|
1593
1565
|
$metadata: deserializeMetadata(output),
|
|
1594
1566
|
});
|
|
1595
1567
|
await collectBody(output.body, context);
|
|
@@ -1620,10 +1592,9 @@ const de_DeleteApiCacheCommandError = async (output, context) => {
|
|
|
1620
1592
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1621
1593
|
default:
|
|
1622
1594
|
const parsedBody = parsedOutput.body;
|
|
1623
|
-
|
|
1595
|
+
return throwDefaultError({
|
|
1624
1596
|
output,
|
|
1625
1597
|
parsedBody,
|
|
1626
|
-
exceptionCtor: AppSyncServiceException_1.AppSyncServiceException,
|
|
1627
1598
|
errorCode,
|
|
1628
1599
|
});
|
|
1629
1600
|
}
|
|
@@ -1632,7 +1603,7 @@ const de_DeleteApiKeyCommand = async (output, context) => {
|
|
|
1632
1603
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1633
1604
|
return de_DeleteApiKeyCommandError(output, context);
|
|
1634
1605
|
}
|
|
1635
|
-
const contents = map({
|
|
1606
|
+
const contents = (0, smithy_client_1.map)({
|
|
1636
1607
|
$metadata: deserializeMetadata(output),
|
|
1637
1608
|
});
|
|
1638
1609
|
await collectBody(output.body, context);
|
|
@@ -1660,10 +1631,9 @@ const de_DeleteApiKeyCommandError = async (output, context) => {
|
|
|
1660
1631
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1661
1632
|
default:
|
|
1662
1633
|
const parsedBody = parsedOutput.body;
|
|
1663
|
-
|
|
1634
|
+
return throwDefaultError({
|
|
1664
1635
|
output,
|
|
1665
1636
|
parsedBody,
|
|
1666
|
-
exceptionCtor: AppSyncServiceException_1.AppSyncServiceException,
|
|
1667
1637
|
errorCode,
|
|
1668
1638
|
});
|
|
1669
1639
|
}
|
|
@@ -1672,7 +1642,7 @@ const de_DeleteDataSourceCommand = async (output, context) => {
|
|
|
1672
1642
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1673
1643
|
return de_DeleteDataSourceCommandError(output, context);
|
|
1674
1644
|
}
|
|
1675
|
-
const contents = map({
|
|
1645
|
+
const contents = (0, smithy_client_1.map)({
|
|
1676
1646
|
$metadata: deserializeMetadata(output),
|
|
1677
1647
|
});
|
|
1678
1648
|
await collectBody(output.body, context);
|
|
@@ -1703,10 +1673,9 @@ const de_DeleteDataSourceCommandError = async (output, context) => {
|
|
|
1703
1673
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1704
1674
|
default:
|
|
1705
1675
|
const parsedBody = parsedOutput.body;
|
|
1706
|
-
|
|
1676
|
+
return throwDefaultError({
|
|
1707
1677
|
output,
|
|
1708
1678
|
parsedBody,
|
|
1709
|
-
exceptionCtor: AppSyncServiceException_1.AppSyncServiceException,
|
|
1710
1679
|
errorCode,
|
|
1711
1680
|
});
|
|
1712
1681
|
}
|
|
@@ -1715,7 +1684,7 @@ const de_DeleteDomainNameCommand = async (output, context) => {
|
|
|
1715
1684
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1716
1685
|
return de_DeleteDomainNameCommandError(output, context);
|
|
1717
1686
|
}
|
|
1718
|
-
const contents = map({
|
|
1687
|
+
const contents = (0, smithy_client_1.map)({
|
|
1719
1688
|
$metadata: deserializeMetadata(output),
|
|
1720
1689
|
});
|
|
1721
1690
|
await collectBody(output.body, context);
|
|
@@ -1746,10 +1715,9 @@ const de_DeleteDomainNameCommandError = async (output, context) => {
|
|
|
1746
1715
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1747
1716
|
default:
|
|
1748
1717
|
const parsedBody = parsedOutput.body;
|
|
1749
|
-
|
|
1718
|
+
return throwDefaultError({
|
|
1750
1719
|
output,
|
|
1751
1720
|
parsedBody,
|
|
1752
|
-
exceptionCtor: AppSyncServiceException_1.AppSyncServiceException,
|
|
1753
1721
|
errorCode,
|
|
1754
1722
|
});
|
|
1755
1723
|
}
|
|
@@ -1758,7 +1726,7 @@ const de_DeleteFunctionCommand = async (output, context) => {
|
|
|
1758
1726
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1759
1727
|
return de_DeleteFunctionCommandError(output, context);
|
|
1760
1728
|
}
|
|
1761
|
-
const contents = map({
|
|
1729
|
+
const contents = (0, smithy_client_1.map)({
|
|
1762
1730
|
$metadata: deserializeMetadata(output),
|
|
1763
1731
|
});
|
|
1764
1732
|
await collectBody(output.body, context);
|
|
@@ -1786,10 +1754,9 @@ const de_DeleteFunctionCommandError = async (output, context) => {
|
|
|
1786
1754
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1787
1755
|
default:
|
|
1788
1756
|
const parsedBody = parsedOutput.body;
|
|
1789
|
-
|
|
1757
|
+
return throwDefaultError({
|
|
1790
1758
|
output,
|
|
1791
1759
|
parsedBody,
|
|
1792
|
-
exceptionCtor: AppSyncServiceException_1.AppSyncServiceException,
|
|
1793
1760
|
errorCode,
|
|
1794
1761
|
});
|
|
1795
1762
|
}
|
|
@@ -1798,7 +1765,7 @@ const de_DeleteGraphqlApiCommand = async (output, context) => {
|
|
|
1798
1765
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1799
1766
|
return de_DeleteGraphqlApiCommandError(output, context);
|
|
1800
1767
|
}
|
|
1801
|
-
const contents = map({
|
|
1768
|
+
const contents = (0, smithy_client_1.map)({
|
|
1802
1769
|
$metadata: deserializeMetadata(output),
|
|
1803
1770
|
});
|
|
1804
1771
|
await collectBody(output.body, context);
|
|
@@ -1832,10 +1799,9 @@ const de_DeleteGraphqlApiCommandError = async (output, context) => {
|
|
|
1832
1799
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1833
1800
|
default:
|
|
1834
1801
|
const parsedBody = parsedOutput.body;
|
|
1835
|
-
|
|
1802
|
+
return throwDefaultError({
|
|
1836
1803
|
output,
|
|
1837
1804
|
parsedBody,
|
|
1838
|
-
exceptionCtor: AppSyncServiceException_1.AppSyncServiceException,
|
|
1839
1805
|
errorCode,
|
|
1840
1806
|
});
|
|
1841
1807
|
}
|
|
@@ -1844,7 +1810,7 @@ const de_DeleteResolverCommand = async (output, context) => {
|
|
|
1844
1810
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1845
1811
|
return de_DeleteResolverCommandError(output, context);
|
|
1846
1812
|
}
|
|
1847
|
-
const contents = map({
|
|
1813
|
+
const contents = (0, smithy_client_1.map)({
|
|
1848
1814
|
$metadata: deserializeMetadata(output),
|
|
1849
1815
|
});
|
|
1850
1816
|
await collectBody(output.body, context);
|
|
@@ -1875,10 +1841,9 @@ const de_DeleteResolverCommandError = async (output, context) => {
|
|
|
1875
1841
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1876
1842
|
default:
|
|
1877
1843
|
const parsedBody = parsedOutput.body;
|
|
1878
|
-
|
|
1844
|
+
return throwDefaultError({
|
|
1879
1845
|
output,
|
|
1880
1846
|
parsedBody,
|
|
1881
|
-
exceptionCtor: AppSyncServiceException_1.AppSyncServiceException,
|
|
1882
1847
|
errorCode,
|
|
1883
1848
|
});
|
|
1884
1849
|
}
|
|
@@ -1887,7 +1852,7 @@ const de_DeleteTypeCommand = async (output, context) => {
|
|
|
1887
1852
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1888
1853
|
return de_DeleteTypeCommandError(output, context);
|
|
1889
1854
|
}
|
|
1890
|
-
const contents = map({
|
|
1855
|
+
const contents = (0, smithy_client_1.map)({
|
|
1891
1856
|
$metadata: deserializeMetadata(output),
|
|
1892
1857
|
});
|
|
1893
1858
|
await collectBody(output.body, context);
|
|
@@ -1918,10 +1883,9 @@ const de_DeleteTypeCommandError = async (output, context) => {
|
|
|
1918
1883
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1919
1884
|
default:
|
|
1920
1885
|
const parsedBody = parsedOutput.body;
|
|
1921
|
-
|
|
1886
|
+
return throwDefaultError({
|
|
1922
1887
|
output,
|
|
1923
1888
|
parsedBody,
|
|
1924
|
-
exceptionCtor: AppSyncServiceException_1.AppSyncServiceException,
|
|
1925
1889
|
errorCode,
|
|
1926
1890
|
});
|
|
1927
1891
|
}
|
|
@@ -1930,7 +1894,7 @@ const de_DisassociateApiCommand = async (output, context) => {
|
|
|
1930
1894
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1931
1895
|
return de_DisassociateApiCommandError(output, context);
|
|
1932
1896
|
}
|
|
1933
|
-
const contents = map({
|
|
1897
|
+
const contents = (0, smithy_client_1.map)({
|
|
1934
1898
|
$metadata: deserializeMetadata(output),
|
|
1935
1899
|
});
|
|
1936
1900
|
await collectBody(output.body, context);
|
|
@@ -1961,10 +1925,9 @@ const de_DisassociateApiCommandError = async (output, context) => {
|
|
|
1961
1925
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1962
1926
|
default:
|
|
1963
1927
|
const parsedBody = parsedOutput.body;
|
|
1964
|
-
|
|
1928
|
+
return throwDefaultError({
|
|
1965
1929
|
output,
|
|
1966
1930
|
parsedBody,
|
|
1967
|
-
exceptionCtor: AppSyncServiceException_1.AppSyncServiceException,
|
|
1968
1931
|
errorCode,
|
|
1969
1932
|
});
|
|
1970
1933
|
}
|
|
@@ -1973,19 +1936,16 @@ const de_EvaluateCodeCommand = async (output, context) => {
|
|
|
1973
1936
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1974
1937
|
return de_EvaluateCodeCommandError(output, context);
|
|
1975
1938
|
}
|
|
1976
|
-
const contents = map({
|
|
1939
|
+
const contents = (0, smithy_client_1.map)({
|
|
1977
1940
|
$metadata: deserializeMetadata(output),
|
|
1978
1941
|
});
|
|
1979
1942
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
if (data.logs != null) {
|
|
1987
|
-
contents.logs = de_Logs(data.logs, context);
|
|
1988
|
-
}
|
|
1943
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1944
|
+
error: smithy_client_1._json,
|
|
1945
|
+
evaluationResult: smithy_client_1.expectString,
|
|
1946
|
+
logs: smithy_client_1._json,
|
|
1947
|
+
});
|
|
1948
|
+
Object.assign(contents, doc);
|
|
1989
1949
|
return contents;
|
|
1990
1950
|
};
|
|
1991
1951
|
exports.de_EvaluateCodeCommand = de_EvaluateCodeCommand;
|
|
@@ -2007,10 +1967,9 @@ const de_EvaluateCodeCommandError = async (output, context) => {
|
|
|
2007
1967
|
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2008
1968
|
default:
|
|
2009
1969
|
const parsedBody = parsedOutput.body;
|
|
2010
|
-
|
|
1970
|
+
return throwDefaultError({
|
|
2011
1971
|
output,
|
|
2012
1972
|
parsedBody,
|
|
2013
|
-
exceptionCtor: AppSyncServiceException_1.AppSyncServiceException,
|
|
2014
1973
|
errorCode,
|
|
2015
1974
|
});
|
|
2016
1975
|
}
|
|
@@ -2019,19 +1978,16 @@ const de_EvaluateMappingTemplateCommand = async (output, context) => {
|
|
|
2019
1978
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2020
1979
|
return de_EvaluateMappingTemplateCommandError(output, context);
|
|
2021
1980
|
}
|
|
2022
|
-
const contents = map({
|
|
1981
|
+
const contents = (0, smithy_client_1.map)({
|
|
2023
1982
|
$metadata: deserializeMetadata(output),
|
|
2024
1983
|
});
|
|
2025
1984
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
if (data.logs != null) {
|
|
2033
|
-
contents.logs = de_Logs(data.logs, context);
|
|
2034
|
-
}
|
|
1985
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1986
|
+
error: smithy_client_1._json,
|
|
1987
|
+
evaluationResult: smithy_client_1.expectString,
|
|
1988
|
+
logs: smithy_client_1._json,
|
|
1989
|
+
});
|
|
1990
|
+
Object.assign(contents, doc);
|
|
2035
1991
|
return contents;
|
|
2036
1992
|
};
|
|
2037
1993
|
exports.de_EvaluateMappingTemplateCommand = de_EvaluateMappingTemplateCommand;
|
|
@@ -2053,10 +2009,9 @@ const de_EvaluateMappingTemplateCommandError = async (output, context) => {
|
|
|
2053
2009
|
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2054
2010
|
default:
|
|
2055
2011
|
const parsedBody = parsedOutput.body;
|
|
2056
|
-
|
|
2012
|
+
return throwDefaultError({
|
|
2057
2013
|
output,
|
|
2058
2014
|
parsedBody,
|
|
2059
|
-
exceptionCtor: AppSyncServiceException_1.AppSyncServiceException,
|
|
2060
2015
|
errorCode,
|
|
2061
2016
|
});
|
|
2062
2017
|
}
|
|
@@ -2065,7 +2020,7 @@ const de_FlushApiCacheCommand = async (output, context) => {
|
|
|
2065
2020
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2066
2021
|
return de_FlushApiCacheCommandError(output, context);
|
|
2067
2022
|
}
|
|
2068
|
-
const contents = map({
|
|
2023
|
+
const contents = (0, smithy_client_1.map)({
|
|
2069
2024
|
$metadata: deserializeMetadata(output),
|
|
2070
2025
|
});
|
|
2071
2026
|
await collectBody(output.body, context);
|
|
@@ -2096,10 +2051,9 @@ const de_FlushApiCacheCommandError = async (output, context) => {
|
|
|
2096
2051
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2097
2052
|
default:
|
|
2098
2053
|
const parsedBody = parsedOutput.body;
|
|
2099
|
-
|
|
2054
|
+
return throwDefaultError({
|
|
2100
2055
|
output,
|
|
2101
2056
|
parsedBody,
|
|
2102
|
-
exceptionCtor: AppSyncServiceException_1.AppSyncServiceException,
|
|
2103
2057
|
errorCode,
|
|
2104
2058
|
});
|
|
2105
2059
|
}
|
|
@@ -2108,13 +2062,14 @@ const de_GetApiAssociationCommand = async (output, context) => {
|
|
|
2108
2062
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2109
2063
|
return de_GetApiAssociationCommandError(output, context);
|
|
2110
2064
|
}
|
|
2111
|
-
const contents = map({
|
|
2065
|
+
const contents = (0, smithy_client_1.map)({
|
|
2112
2066
|
$metadata: deserializeMetadata(output),
|
|
2113
2067
|
});
|
|
2114
2068
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
}
|
|
2069
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2070
|
+
apiAssociation: smithy_client_1._json,
|
|
2071
|
+
});
|
|
2072
|
+
Object.assign(contents, doc);
|
|
2118
2073
|
return contents;
|
|
2119
2074
|
};
|
|
2120
2075
|
exports.de_GetApiAssociationCommand = de_GetApiAssociationCommand;
|
|
@@ -2139,10 +2094,9 @@ const de_GetApiAssociationCommandError = async (output, context) => {
|
|
|
2139
2094
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2140
2095
|
default:
|
|
2141
2096
|
const parsedBody = parsedOutput.body;
|
|
2142
|
-
|
|
2097
|
+
return throwDefaultError({
|
|
2143
2098
|
output,
|
|
2144
2099
|
parsedBody,
|
|
2145
|
-
exceptionCtor: AppSyncServiceException_1.AppSyncServiceException,
|
|
2146
2100
|
errorCode,
|
|
2147
2101
|
});
|
|
2148
2102
|
}
|
|
@@ -2151,13 +2105,14 @@ const de_GetApiCacheCommand = async (output, context) => {
|
|
|
2151
2105
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2152
2106
|
return de_GetApiCacheCommandError(output, context);
|
|
2153
2107
|
}
|
|
2154
|
-
const contents = map({
|
|
2108
|
+
const contents = (0, smithy_client_1.map)({
|
|
2155
2109
|
$metadata: deserializeMetadata(output),
|
|
2156
2110
|
});
|
|
2157
2111
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
}
|
|
2112
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2113
|
+
apiCache: smithy_client_1._json,
|
|
2114
|
+
});
|
|
2115
|
+
Object.assign(contents, doc);
|
|
2161
2116
|
return contents;
|
|
2162
2117
|
};
|
|
2163
2118
|
exports.de_GetApiCacheCommand = de_GetApiCacheCommand;
|
|
@@ -2185,10 +2140,9 @@ const de_GetApiCacheCommandError = async (output, context) => {
|
|
|
2185
2140
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2186
2141
|
default:
|
|
2187
2142
|
const parsedBody = parsedOutput.body;
|
|
2188
|
-
|
|
2143
|
+
return throwDefaultError({
|
|
2189
2144
|
output,
|
|
2190
2145
|
parsedBody,
|
|
2191
|
-
exceptionCtor: AppSyncServiceException_1.AppSyncServiceException,
|
|
2192
2146
|
errorCode,
|
|
2193
2147
|
});
|
|
2194
2148
|
}
|
|
@@ -2197,13 +2151,14 @@ const de_GetDataSourceCommand = async (output, context) => {
|
|
|
2197
2151
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2198
2152
|
return de_GetDataSourceCommandError(output, context);
|
|
2199
2153
|
}
|
|
2200
|
-
const contents = map({
|
|
2154
|
+
const contents = (0, smithy_client_1.map)({
|
|
2201
2155
|
$metadata: deserializeMetadata(output),
|
|
2202
2156
|
});
|
|
2203
2157
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
}
|
|
2158
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2159
|
+
dataSource: smithy_client_1._json,
|
|
2160
|
+
});
|
|
2161
|
+
Object.assign(contents, doc);
|
|
2207
2162
|
return contents;
|
|
2208
2163
|
};
|
|
2209
2164
|
exports.de_GetDataSourceCommand = de_GetDataSourceCommand;
|
|
@@ -2231,10 +2186,9 @@ const de_GetDataSourceCommandError = async (output, context) => {
|
|
|
2231
2186
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2232
2187
|
default:
|
|
2233
2188
|
const parsedBody = parsedOutput.body;
|
|
2234
|
-
|
|
2189
|
+
return throwDefaultError({
|
|
2235
2190
|
output,
|
|
2236
2191
|
parsedBody,
|
|
2237
|
-
exceptionCtor: AppSyncServiceException_1.AppSyncServiceException,
|
|
2238
2192
|
errorCode,
|
|
2239
2193
|
});
|
|
2240
2194
|
}
|
|
@@ -2243,13 +2197,14 @@ const de_GetDomainNameCommand = async (output, context) => {
|
|
|
2243
2197
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2244
2198
|
return de_GetDomainNameCommandError(output, context);
|
|
2245
2199
|
}
|
|
2246
|
-
const contents = map({
|
|
2200
|
+
const contents = (0, smithy_client_1.map)({
|
|
2247
2201
|
$metadata: deserializeMetadata(output),
|
|
2248
2202
|
});
|
|
2249
2203
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
}
|
|
2204
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2205
|
+
domainNameConfig: smithy_client_1._json,
|
|
2206
|
+
});
|
|
2207
|
+
Object.assign(contents, doc);
|
|
2253
2208
|
return contents;
|
|
2254
2209
|
};
|
|
2255
2210
|
exports.de_GetDomainNameCommand = de_GetDomainNameCommand;
|
|
@@ -2274,10 +2229,9 @@ const de_GetDomainNameCommandError = async (output, context) => {
|
|
|
2274
2229
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2275
2230
|
default:
|
|
2276
2231
|
const parsedBody = parsedOutput.body;
|
|
2277
|
-
|
|
2232
|
+
return throwDefaultError({
|
|
2278
2233
|
output,
|
|
2279
2234
|
parsedBody,
|
|
2280
|
-
exceptionCtor: AppSyncServiceException_1.AppSyncServiceException,
|
|
2281
2235
|
errorCode,
|
|
2282
2236
|
});
|
|
2283
2237
|
}
|
|
@@ -2286,13 +2240,14 @@ const de_GetFunctionCommand = async (output, context) => {
|
|
|
2286
2240
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2287
2241
|
return de_GetFunctionCommandError(output, context);
|
|
2288
2242
|
}
|
|
2289
|
-
const contents = map({
|
|
2243
|
+
const contents = (0, smithy_client_1.map)({
|
|
2290
2244
|
$metadata: deserializeMetadata(output),
|
|
2291
2245
|
});
|
|
2292
2246
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
}
|
|
2247
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2248
|
+
functionConfiguration: smithy_client_1._json,
|
|
2249
|
+
});
|
|
2250
|
+
Object.assign(contents, doc);
|
|
2296
2251
|
return contents;
|
|
2297
2252
|
};
|
|
2298
2253
|
exports.de_GetFunctionCommand = de_GetFunctionCommand;
|
|
@@ -2314,10 +2269,9 @@ const de_GetFunctionCommandError = async (output, context) => {
|
|
|
2314
2269
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2315
2270
|
default:
|
|
2316
2271
|
const parsedBody = parsedOutput.body;
|
|
2317
|
-
|
|
2272
|
+
return throwDefaultError({
|
|
2318
2273
|
output,
|
|
2319
2274
|
parsedBody,
|
|
2320
|
-
exceptionCtor: AppSyncServiceException_1.AppSyncServiceException,
|
|
2321
2275
|
errorCode,
|
|
2322
2276
|
});
|
|
2323
2277
|
}
|
|
@@ -2326,13 +2280,14 @@ const de_GetGraphqlApiCommand = async (output, context) => {
|
|
|
2326
2280
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2327
2281
|
return de_GetGraphqlApiCommandError(output, context);
|
|
2328
2282
|
}
|
|
2329
|
-
const contents = map({
|
|
2283
|
+
const contents = (0, smithy_client_1.map)({
|
|
2330
2284
|
$metadata: deserializeMetadata(output),
|
|
2331
2285
|
});
|
|
2332
2286
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
}
|
|
2287
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2288
|
+
graphqlApi: smithy_client_1._json,
|
|
2289
|
+
});
|
|
2290
|
+
Object.assign(contents, doc);
|
|
2336
2291
|
return contents;
|
|
2337
2292
|
};
|
|
2338
2293
|
exports.de_GetGraphqlApiCommand = de_GetGraphqlApiCommand;
|
|
@@ -2360,10 +2315,9 @@ const de_GetGraphqlApiCommandError = async (output, context) => {
|
|
|
2360
2315
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2361
2316
|
default:
|
|
2362
2317
|
const parsedBody = parsedOutput.body;
|
|
2363
|
-
|
|
2318
|
+
return throwDefaultError({
|
|
2364
2319
|
output,
|
|
2365
2320
|
parsedBody,
|
|
2366
|
-
exceptionCtor: AppSyncServiceException_1.AppSyncServiceException,
|
|
2367
2321
|
errorCode,
|
|
2368
2322
|
});
|
|
2369
2323
|
}
|
|
@@ -2372,7 +2326,7 @@ const de_GetIntrospectionSchemaCommand = async (output, context) => {
|
|
|
2372
2326
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2373
2327
|
return de_GetIntrospectionSchemaCommandError(output, context);
|
|
2374
2328
|
}
|
|
2375
|
-
const contents = map({
|
|
2329
|
+
const contents = (0, smithy_client_1.map)({
|
|
2376
2330
|
$metadata: deserializeMetadata(output),
|
|
2377
2331
|
});
|
|
2378
2332
|
const data = await collectBody(output.body, context);
|
|
@@ -2401,10 +2355,9 @@ const de_GetIntrospectionSchemaCommandError = async (output, context) => {
|
|
|
2401
2355
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2402
2356
|
default:
|
|
2403
2357
|
const parsedBody = parsedOutput.body;
|
|
2404
|
-
|
|
2358
|
+
return throwDefaultError({
|
|
2405
2359
|
output,
|
|
2406
2360
|
parsedBody,
|
|
2407
|
-
exceptionCtor: AppSyncServiceException_1.AppSyncServiceException,
|
|
2408
2361
|
errorCode,
|
|
2409
2362
|
});
|
|
2410
2363
|
}
|
|
@@ -2413,13 +2366,14 @@ const de_GetResolverCommand = async (output, context) => {
|
|
|
2413
2366
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2414
2367
|
return de_GetResolverCommandError(output, context);
|
|
2415
2368
|
}
|
|
2416
|
-
const contents = map({
|
|
2369
|
+
const contents = (0, smithy_client_1.map)({
|
|
2417
2370
|
$metadata: deserializeMetadata(output),
|
|
2418
2371
|
});
|
|
2419
2372
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
}
|
|
2373
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2374
|
+
resolver: smithy_client_1._json,
|
|
2375
|
+
});
|
|
2376
|
+
Object.assign(contents, doc);
|
|
2423
2377
|
return contents;
|
|
2424
2378
|
};
|
|
2425
2379
|
exports.de_GetResolverCommand = de_GetResolverCommand;
|
|
@@ -2441,10 +2395,9 @@ const de_GetResolverCommandError = async (output, context) => {
|
|
|
2441
2395
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2442
2396
|
default:
|
|
2443
2397
|
const parsedBody = parsedOutput.body;
|
|
2444
|
-
|
|
2398
|
+
return throwDefaultError({
|
|
2445
2399
|
output,
|
|
2446
2400
|
parsedBody,
|
|
2447
|
-
exceptionCtor: AppSyncServiceException_1.AppSyncServiceException,
|
|
2448
2401
|
errorCode,
|
|
2449
2402
|
});
|
|
2450
2403
|
}
|
|
@@ -2453,16 +2406,15 @@ const de_GetSchemaCreationStatusCommand = async (output, context) => {
|
|
|
2453
2406
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2454
2407
|
return de_GetSchemaCreationStatusCommandError(output, context);
|
|
2455
2408
|
}
|
|
2456
|
-
const contents = map({
|
|
2409
|
+
const contents = (0, smithy_client_1.map)({
|
|
2457
2410
|
$metadata: deserializeMetadata(output),
|
|
2458
2411
|
});
|
|
2459
2412
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
}
|
|
2413
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2414
|
+
details: smithy_client_1.expectString,
|
|
2415
|
+
status: smithy_client_1.expectString,
|
|
2416
|
+
});
|
|
2417
|
+
Object.assign(contents, doc);
|
|
2466
2418
|
return contents;
|
|
2467
2419
|
};
|
|
2468
2420
|
exports.de_GetSchemaCreationStatusCommand = de_GetSchemaCreationStatusCommand;
|
|
@@ -2487,10 +2439,9 @@ const de_GetSchemaCreationStatusCommandError = async (output, context) => {
|
|
|
2487
2439
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2488
2440
|
default:
|
|
2489
2441
|
const parsedBody = parsedOutput.body;
|
|
2490
|
-
|
|
2442
|
+
return throwDefaultError({
|
|
2491
2443
|
output,
|
|
2492
2444
|
parsedBody,
|
|
2493
|
-
exceptionCtor: AppSyncServiceException_1.AppSyncServiceException,
|
|
2494
2445
|
errorCode,
|
|
2495
2446
|
});
|
|
2496
2447
|
}
|
|
@@ -2499,13 +2450,14 @@ const de_GetTypeCommand = async (output, context) => {
|
|
|
2499
2450
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2500
2451
|
return de_GetTypeCommandError(output, context);
|
|
2501
2452
|
}
|
|
2502
|
-
const contents = map({
|
|
2453
|
+
const contents = (0, smithy_client_1.map)({
|
|
2503
2454
|
$metadata: deserializeMetadata(output),
|
|
2504
2455
|
});
|
|
2505
2456
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
}
|
|
2457
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2458
|
+
type: smithy_client_1._json,
|
|
2459
|
+
});
|
|
2460
|
+
Object.assign(contents, doc);
|
|
2509
2461
|
return contents;
|
|
2510
2462
|
};
|
|
2511
2463
|
exports.de_GetTypeCommand = de_GetTypeCommand;
|
|
@@ -2533,10 +2485,9 @@ const de_GetTypeCommandError = async (output, context) => {
|
|
|
2533
2485
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2534
2486
|
default:
|
|
2535
2487
|
const parsedBody = parsedOutput.body;
|
|
2536
|
-
|
|
2488
|
+
return throwDefaultError({
|
|
2537
2489
|
output,
|
|
2538
2490
|
parsedBody,
|
|
2539
|
-
exceptionCtor: AppSyncServiceException_1.AppSyncServiceException,
|
|
2540
2491
|
errorCode,
|
|
2541
2492
|
});
|
|
2542
2493
|
}
|
|
@@ -2545,16 +2496,15 @@ const de_ListApiKeysCommand = async (output, context) => {
|
|
|
2545
2496
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2546
2497
|
return de_ListApiKeysCommandError(output, context);
|
|
2547
2498
|
}
|
|
2548
|
-
const contents = map({
|
|
2499
|
+
const contents = (0, smithy_client_1.map)({
|
|
2549
2500
|
$metadata: deserializeMetadata(output),
|
|
2550
2501
|
});
|
|
2551
2502
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
}
|
|
2503
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2504
|
+
apiKeys: smithy_client_1._json,
|
|
2505
|
+
nextToken: smithy_client_1.expectString,
|
|
2506
|
+
});
|
|
2507
|
+
Object.assign(contents, doc);
|
|
2558
2508
|
return contents;
|
|
2559
2509
|
};
|
|
2560
2510
|
exports.de_ListApiKeysCommand = de_ListApiKeysCommand;
|
|
@@ -2579,10 +2529,9 @@ const de_ListApiKeysCommandError = async (output, context) => {
|
|
|
2579
2529
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2580
2530
|
default:
|
|
2581
2531
|
const parsedBody = parsedOutput.body;
|
|
2582
|
-
|
|
2532
|
+
return throwDefaultError({
|
|
2583
2533
|
output,
|
|
2584
2534
|
parsedBody,
|
|
2585
|
-
exceptionCtor: AppSyncServiceException_1.AppSyncServiceException,
|
|
2586
2535
|
errorCode,
|
|
2587
2536
|
});
|
|
2588
2537
|
}
|
|
@@ -2591,16 +2540,15 @@ const de_ListDataSourcesCommand = async (output, context) => {
|
|
|
2591
2540
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2592
2541
|
return de_ListDataSourcesCommandError(output, context);
|
|
2593
2542
|
}
|
|
2594
|
-
const contents = map({
|
|
2543
|
+
const contents = (0, smithy_client_1.map)({
|
|
2595
2544
|
$metadata: deserializeMetadata(output),
|
|
2596
2545
|
});
|
|
2597
2546
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
}
|
|
2547
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2548
|
+
dataSources: smithy_client_1._json,
|
|
2549
|
+
nextToken: smithy_client_1.expectString,
|
|
2550
|
+
});
|
|
2551
|
+
Object.assign(contents, doc);
|
|
2604
2552
|
return contents;
|
|
2605
2553
|
};
|
|
2606
2554
|
exports.de_ListDataSourcesCommand = de_ListDataSourcesCommand;
|
|
@@ -2625,10 +2573,9 @@ const de_ListDataSourcesCommandError = async (output, context) => {
|
|
|
2625
2573
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2626
2574
|
default:
|
|
2627
2575
|
const parsedBody = parsedOutput.body;
|
|
2628
|
-
|
|
2576
|
+
return throwDefaultError({
|
|
2629
2577
|
output,
|
|
2630
2578
|
parsedBody,
|
|
2631
|
-
exceptionCtor: AppSyncServiceException_1.AppSyncServiceException,
|
|
2632
2579
|
errorCode,
|
|
2633
2580
|
});
|
|
2634
2581
|
}
|
|
@@ -2637,16 +2584,15 @@ const de_ListDomainNamesCommand = async (output, context) => {
|
|
|
2637
2584
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2638
2585
|
return de_ListDomainNamesCommandError(output, context);
|
|
2639
2586
|
}
|
|
2640
|
-
const contents = map({
|
|
2587
|
+
const contents = (0, smithy_client_1.map)({
|
|
2641
2588
|
$metadata: deserializeMetadata(output),
|
|
2642
2589
|
});
|
|
2643
2590
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
|
|
2649
|
-
}
|
|
2591
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2592
|
+
domainNameConfigs: smithy_client_1._json,
|
|
2593
|
+
nextToken: smithy_client_1.expectString,
|
|
2594
|
+
});
|
|
2595
|
+
Object.assign(contents, doc);
|
|
2650
2596
|
return contents;
|
|
2651
2597
|
};
|
|
2652
2598
|
exports.de_ListDomainNamesCommand = de_ListDomainNamesCommand;
|
|
@@ -2668,10 +2614,9 @@ const de_ListDomainNamesCommandError = async (output, context) => {
|
|
|
2668
2614
|
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2669
2615
|
default:
|
|
2670
2616
|
const parsedBody = parsedOutput.body;
|
|
2671
|
-
|
|
2617
|
+
return throwDefaultError({
|
|
2672
2618
|
output,
|
|
2673
2619
|
parsedBody,
|
|
2674
|
-
exceptionCtor: AppSyncServiceException_1.AppSyncServiceException,
|
|
2675
2620
|
errorCode,
|
|
2676
2621
|
});
|
|
2677
2622
|
}
|
|
@@ -2680,16 +2625,15 @@ const de_ListFunctionsCommand = async (output, context) => {
|
|
|
2680
2625
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2681
2626
|
return de_ListFunctionsCommandError(output, context);
|
|
2682
2627
|
}
|
|
2683
|
-
const contents = map({
|
|
2628
|
+
const contents = (0, smithy_client_1.map)({
|
|
2684
2629
|
$metadata: deserializeMetadata(output),
|
|
2685
2630
|
});
|
|
2686
2631
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
}
|
|
2632
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2633
|
+
functions: smithy_client_1._json,
|
|
2634
|
+
nextToken: smithy_client_1.expectString,
|
|
2635
|
+
});
|
|
2636
|
+
Object.assign(contents, doc);
|
|
2693
2637
|
return contents;
|
|
2694
2638
|
};
|
|
2695
2639
|
exports.de_ListFunctionsCommand = de_ListFunctionsCommand;
|
|
@@ -2714,10 +2658,9 @@ const de_ListFunctionsCommandError = async (output, context) => {
|
|
|
2714
2658
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2715
2659
|
default:
|
|
2716
2660
|
const parsedBody = parsedOutput.body;
|
|
2717
|
-
|
|
2661
|
+
return throwDefaultError({
|
|
2718
2662
|
output,
|
|
2719
2663
|
parsedBody,
|
|
2720
|
-
exceptionCtor: AppSyncServiceException_1.AppSyncServiceException,
|
|
2721
2664
|
errorCode,
|
|
2722
2665
|
});
|
|
2723
2666
|
}
|
|
@@ -2726,16 +2669,15 @@ const de_ListGraphqlApisCommand = async (output, context) => {
|
|
|
2726
2669
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2727
2670
|
return de_ListGraphqlApisCommandError(output, context);
|
|
2728
2671
|
}
|
|
2729
|
-
const contents = map({
|
|
2672
|
+
const contents = (0, smithy_client_1.map)({
|
|
2730
2673
|
$metadata: deserializeMetadata(output),
|
|
2731
2674
|
});
|
|
2732
2675
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
}
|
|
2676
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2677
|
+
graphqlApis: smithy_client_1._json,
|
|
2678
|
+
nextToken: smithy_client_1.expectString,
|
|
2679
|
+
});
|
|
2680
|
+
Object.assign(contents, doc);
|
|
2739
2681
|
return contents;
|
|
2740
2682
|
};
|
|
2741
2683
|
exports.de_ListGraphqlApisCommand = de_ListGraphqlApisCommand;
|
|
@@ -2757,10 +2699,9 @@ const de_ListGraphqlApisCommandError = async (output, context) => {
|
|
|
2757
2699
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2758
2700
|
default:
|
|
2759
2701
|
const parsedBody = parsedOutput.body;
|
|
2760
|
-
|
|
2702
|
+
return throwDefaultError({
|
|
2761
2703
|
output,
|
|
2762
2704
|
parsedBody,
|
|
2763
|
-
exceptionCtor: AppSyncServiceException_1.AppSyncServiceException,
|
|
2764
2705
|
errorCode,
|
|
2765
2706
|
});
|
|
2766
2707
|
}
|
|
@@ -2769,16 +2710,15 @@ const de_ListResolversCommand = async (output, context) => {
|
|
|
2769
2710
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2770
2711
|
return de_ListResolversCommandError(output, context);
|
|
2771
2712
|
}
|
|
2772
|
-
const contents = map({
|
|
2713
|
+
const contents = (0, smithy_client_1.map)({
|
|
2773
2714
|
$metadata: deserializeMetadata(output),
|
|
2774
2715
|
});
|
|
2775
2716
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
}
|
|
2717
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2718
|
+
nextToken: smithy_client_1.expectString,
|
|
2719
|
+
resolvers: smithy_client_1._json,
|
|
2720
|
+
});
|
|
2721
|
+
Object.assign(contents, doc);
|
|
2782
2722
|
return contents;
|
|
2783
2723
|
};
|
|
2784
2724
|
exports.de_ListResolversCommand = de_ListResolversCommand;
|
|
@@ -2803,10 +2743,9 @@ const de_ListResolversCommandError = async (output, context) => {
|
|
|
2803
2743
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2804
2744
|
default:
|
|
2805
2745
|
const parsedBody = parsedOutput.body;
|
|
2806
|
-
|
|
2746
|
+
return throwDefaultError({
|
|
2807
2747
|
output,
|
|
2808
2748
|
parsedBody,
|
|
2809
|
-
exceptionCtor: AppSyncServiceException_1.AppSyncServiceException,
|
|
2810
2749
|
errorCode,
|
|
2811
2750
|
});
|
|
2812
2751
|
}
|
|
@@ -2815,16 +2754,15 @@ const de_ListResolversByFunctionCommand = async (output, context) => {
|
|
|
2815
2754
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2816
2755
|
return de_ListResolversByFunctionCommandError(output, context);
|
|
2817
2756
|
}
|
|
2818
|
-
const contents = map({
|
|
2757
|
+
const contents = (0, smithy_client_1.map)({
|
|
2819
2758
|
$metadata: deserializeMetadata(output),
|
|
2820
2759
|
});
|
|
2821
2760
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
}
|
|
2761
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2762
|
+
nextToken: smithy_client_1.expectString,
|
|
2763
|
+
resolvers: smithy_client_1._json,
|
|
2764
|
+
});
|
|
2765
|
+
Object.assign(contents, doc);
|
|
2828
2766
|
return contents;
|
|
2829
2767
|
};
|
|
2830
2768
|
exports.de_ListResolversByFunctionCommand = de_ListResolversByFunctionCommand;
|
|
@@ -2849,10 +2787,9 @@ const de_ListResolversByFunctionCommandError = async (output, context) => {
|
|
|
2849
2787
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2850
2788
|
default:
|
|
2851
2789
|
const parsedBody = parsedOutput.body;
|
|
2852
|
-
|
|
2790
|
+
return throwDefaultError({
|
|
2853
2791
|
output,
|
|
2854
2792
|
parsedBody,
|
|
2855
|
-
exceptionCtor: AppSyncServiceException_1.AppSyncServiceException,
|
|
2856
2793
|
errorCode,
|
|
2857
2794
|
});
|
|
2858
2795
|
}
|
|
@@ -2861,13 +2798,14 @@ const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
2861
2798
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2862
2799
|
return de_ListTagsForResourceCommandError(output, context);
|
|
2863
2800
|
}
|
|
2864
|
-
const contents = map({
|
|
2801
|
+
const contents = (0, smithy_client_1.map)({
|
|
2865
2802
|
$metadata: deserializeMetadata(output),
|
|
2866
2803
|
});
|
|
2867
2804
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
}
|
|
2805
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2806
|
+
tags: smithy_client_1._json,
|
|
2807
|
+
});
|
|
2808
|
+
Object.assign(contents, doc);
|
|
2871
2809
|
return contents;
|
|
2872
2810
|
};
|
|
2873
2811
|
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
@@ -2898,10 +2836,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
2898
2836
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2899
2837
|
default:
|
|
2900
2838
|
const parsedBody = parsedOutput.body;
|
|
2901
|
-
|
|
2839
|
+
return throwDefaultError({
|
|
2902
2840
|
output,
|
|
2903
2841
|
parsedBody,
|
|
2904
|
-
exceptionCtor: AppSyncServiceException_1.AppSyncServiceException,
|
|
2905
2842
|
errorCode,
|
|
2906
2843
|
});
|
|
2907
2844
|
}
|
|
@@ -2910,16 +2847,15 @@ const de_ListTypesCommand = async (output, context) => {
|
|
|
2910
2847
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2911
2848
|
return de_ListTypesCommandError(output, context);
|
|
2912
2849
|
}
|
|
2913
|
-
const contents = map({
|
|
2850
|
+
const contents = (0, smithy_client_1.map)({
|
|
2914
2851
|
$metadata: deserializeMetadata(output),
|
|
2915
2852
|
});
|
|
2916
2853
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2917
|
-
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
|
|
2921
|
-
|
|
2922
|
-
}
|
|
2854
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2855
|
+
nextToken: smithy_client_1.expectString,
|
|
2856
|
+
types: smithy_client_1._json,
|
|
2857
|
+
});
|
|
2858
|
+
Object.assign(contents, doc);
|
|
2923
2859
|
return contents;
|
|
2924
2860
|
};
|
|
2925
2861
|
exports.de_ListTypesCommand = de_ListTypesCommand;
|
|
@@ -2947,10 +2883,9 @@ const de_ListTypesCommandError = async (output, context) => {
|
|
|
2947
2883
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2948
2884
|
default:
|
|
2949
2885
|
const parsedBody = parsedOutput.body;
|
|
2950
|
-
|
|
2886
|
+
return throwDefaultError({
|
|
2951
2887
|
output,
|
|
2952
2888
|
parsedBody,
|
|
2953
|
-
exceptionCtor: AppSyncServiceException_1.AppSyncServiceException,
|
|
2954
2889
|
errorCode,
|
|
2955
2890
|
});
|
|
2956
2891
|
}
|
|
@@ -2959,13 +2894,14 @@ const de_StartSchemaCreationCommand = async (output, context) => {
|
|
|
2959
2894
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2960
2895
|
return de_StartSchemaCreationCommandError(output, context);
|
|
2961
2896
|
}
|
|
2962
|
-
const contents = map({
|
|
2897
|
+
const contents = (0, smithy_client_1.map)({
|
|
2963
2898
|
$metadata: deserializeMetadata(output),
|
|
2964
2899
|
});
|
|
2965
2900
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2966
|
-
|
|
2967
|
-
|
|
2968
|
-
}
|
|
2901
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2902
|
+
status: smithy_client_1.expectString,
|
|
2903
|
+
});
|
|
2904
|
+
Object.assign(contents, doc);
|
|
2969
2905
|
return contents;
|
|
2970
2906
|
};
|
|
2971
2907
|
exports.de_StartSchemaCreationCommand = de_StartSchemaCreationCommand;
|
|
@@ -2993,10 +2929,9 @@ const de_StartSchemaCreationCommandError = async (output, context) => {
|
|
|
2993
2929
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2994
2930
|
default:
|
|
2995
2931
|
const parsedBody = parsedOutput.body;
|
|
2996
|
-
|
|
2932
|
+
return throwDefaultError({
|
|
2997
2933
|
output,
|
|
2998
2934
|
parsedBody,
|
|
2999
|
-
exceptionCtor: AppSyncServiceException_1.AppSyncServiceException,
|
|
3000
2935
|
errorCode,
|
|
3001
2936
|
});
|
|
3002
2937
|
}
|
|
@@ -3005,7 +2940,7 @@ const de_TagResourceCommand = async (output, context) => {
|
|
|
3005
2940
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3006
2941
|
return de_TagResourceCommandError(output, context);
|
|
3007
2942
|
}
|
|
3008
|
-
const contents = map({
|
|
2943
|
+
const contents = (0, smithy_client_1.map)({
|
|
3009
2944
|
$metadata: deserializeMetadata(output),
|
|
3010
2945
|
});
|
|
3011
2946
|
await collectBody(output.body, context);
|
|
@@ -3039,10 +2974,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
3039
2974
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
3040
2975
|
default:
|
|
3041
2976
|
const parsedBody = parsedOutput.body;
|
|
3042
|
-
|
|
2977
|
+
return throwDefaultError({
|
|
3043
2978
|
output,
|
|
3044
2979
|
parsedBody,
|
|
3045
|
-
exceptionCtor: AppSyncServiceException_1.AppSyncServiceException,
|
|
3046
2980
|
errorCode,
|
|
3047
2981
|
});
|
|
3048
2982
|
}
|
|
@@ -3051,7 +2985,7 @@ const de_UntagResourceCommand = async (output, context) => {
|
|
|
3051
2985
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3052
2986
|
return de_UntagResourceCommandError(output, context);
|
|
3053
2987
|
}
|
|
3054
|
-
const contents = map({
|
|
2988
|
+
const contents = (0, smithy_client_1.map)({
|
|
3055
2989
|
$metadata: deserializeMetadata(output),
|
|
3056
2990
|
});
|
|
3057
2991
|
await collectBody(output.body, context);
|
|
@@ -3085,10 +3019,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
3085
3019
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
3086
3020
|
default:
|
|
3087
3021
|
const parsedBody = parsedOutput.body;
|
|
3088
|
-
|
|
3022
|
+
return throwDefaultError({
|
|
3089
3023
|
output,
|
|
3090
3024
|
parsedBody,
|
|
3091
|
-
exceptionCtor: AppSyncServiceException_1.AppSyncServiceException,
|
|
3092
3025
|
errorCode,
|
|
3093
3026
|
});
|
|
3094
3027
|
}
|
|
@@ -3097,13 +3030,14 @@ const de_UpdateApiCacheCommand = async (output, context) => {
|
|
|
3097
3030
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3098
3031
|
return de_UpdateApiCacheCommandError(output, context);
|
|
3099
3032
|
}
|
|
3100
|
-
const contents = map({
|
|
3033
|
+
const contents = (0, smithy_client_1.map)({
|
|
3101
3034
|
$metadata: deserializeMetadata(output),
|
|
3102
3035
|
});
|
|
3103
3036
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3104
|
-
|
|
3105
|
-
|
|
3106
|
-
}
|
|
3037
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3038
|
+
apiCache: smithy_client_1._json,
|
|
3039
|
+
});
|
|
3040
|
+
Object.assign(contents, doc);
|
|
3107
3041
|
return contents;
|
|
3108
3042
|
};
|
|
3109
3043
|
exports.de_UpdateApiCacheCommand = de_UpdateApiCacheCommand;
|
|
@@ -3131,10 +3065,9 @@ const de_UpdateApiCacheCommandError = async (output, context) => {
|
|
|
3131
3065
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
3132
3066
|
default:
|
|
3133
3067
|
const parsedBody = parsedOutput.body;
|
|
3134
|
-
|
|
3068
|
+
return throwDefaultError({
|
|
3135
3069
|
output,
|
|
3136
3070
|
parsedBody,
|
|
3137
|
-
exceptionCtor: AppSyncServiceException_1.AppSyncServiceException,
|
|
3138
3071
|
errorCode,
|
|
3139
3072
|
});
|
|
3140
3073
|
}
|
|
@@ -3143,13 +3076,14 @@ const de_UpdateApiKeyCommand = async (output, context) => {
|
|
|
3143
3076
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3144
3077
|
return de_UpdateApiKeyCommandError(output, context);
|
|
3145
3078
|
}
|
|
3146
|
-
const contents = map({
|
|
3079
|
+
const contents = (0, smithy_client_1.map)({
|
|
3147
3080
|
$metadata: deserializeMetadata(output),
|
|
3148
3081
|
});
|
|
3149
3082
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3150
|
-
|
|
3151
|
-
|
|
3152
|
-
}
|
|
3083
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3084
|
+
apiKey: smithy_client_1._json,
|
|
3085
|
+
});
|
|
3086
|
+
Object.assign(contents, doc);
|
|
3153
3087
|
return contents;
|
|
3154
3088
|
};
|
|
3155
3089
|
exports.de_UpdateApiKeyCommand = de_UpdateApiKeyCommand;
|
|
@@ -3180,10 +3114,9 @@ const de_UpdateApiKeyCommandError = async (output, context) => {
|
|
|
3180
3114
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
3181
3115
|
default:
|
|
3182
3116
|
const parsedBody = parsedOutput.body;
|
|
3183
|
-
|
|
3117
|
+
return throwDefaultError({
|
|
3184
3118
|
output,
|
|
3185
3119
|
parsedBody,
|
|
3186
|
-
exceptionCtor: AppSyncServiceException_1.AppSyncServiceException,
|
|
3187
3120
|
errorCode,
|
|
3188
3121
|
});
|
|
3189
3122
|
}
|
|
@@ -3192,13 +3125,14 @@ const de_UpdateDataSourceCommand = async (output, context) => {
|
|
|
3192
3125
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3193
3126
|
return de_UpdateDataSourceCommandError(output, context);
|
|
3194
3127
|
}
|
|
3195
|
-
const contents = map({
|
|
3128
|
+
const contents = (0, smithy_client_1.map)({
|
|
3196
3129
|
$metadata: deserializeMetadata(output),
|
|
3197
3130
|
});
|
|
3198
3131
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3199
|
-
|
|
3200
|
-
|
|
3201
|
-
}
|
|
3132
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3133
|
+
dataSource: smithy_client_1._json,
|
|
3134
|
+
});
|
|
3135
|
+
Object.assign(contents, doc);
|
|
3202
3136
|
return contents;
|
|
3203
3137
|
};
|
|
3204
3138
|
exports.de_UpdateDataSourceCommand = de_UpdateDataSourceCommand;
|
|
@@ -3226,10 +3160,9 @@ const de_UpdateDataSourceCommandError = async (output, context) => {
|
|
|
3226
3160
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
3227
3161
|
default:
|
|
3228
3162
|
const parsedBody = parsedOutput.body;
|
|
3229
|
-
|
|
3163
|
+
return throwDefaultError({
|
|
3230
3164
|
output,
|
|
3231
3165
|
parsedBody,
|
|
3232
|
-
exceptionCtor: AppSyncServiceException_1.AppSyncServiceException,
|
|
3233
3166
|
errorCode,
|
|
3234
3167
|
});
|
|
3235
3168
|
}
|
|
@@ -3238,13 +3171,14 @@ const de_UpdateDomainNameCommand = async (output, context) => {
|
|
|
3238
3171
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3239
3172
|
return de_UpdateDomainNameCommandError(output, context);
|
|
3240
3173
|
}
|
|
3241
|
-
const contents = map({
|
|
3174
|
+
const contents = (0, smithy_client_1.map)({
|
|
3242
3175
|
$metadata: deserializeMetadata(output),
|
|
3243
3176
|
});
|
|
3244
3177
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3245
|
-
|
|
3246
|
-
|
|
3247
|
-
}
|
|
3178
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3179
|
+
domainNameConfig: smithy_client_1._json,
|
|
3180
|
+
});
|
|
3181
|
+
Object.assign(contents, doc);
|
|
3248
3182
|
return contents;
|
|
3249
3183
|
};
|
|
3250
3184
|
exports.de_UpdateDomainNameCommand = de_UpdateDomainNameCommand;
|
|
@@ -3272,10 +3206,9 @@ const de_UpdateDomainNameCommandError = async (output, context) => {
|
|
|
3272
3206
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3273
3207
|
default:
|
|
3274
3208
|
const parsedBody = parsedOutput.body;
|
|
3275
|
-
|
|
3209
|
+
return throwDefaultError({
|
|
3276
3210
|
output,
|
|
3277
3211
|
parsedBody,
|
|
3278
|
-
exceptionCtor: AppSyncServiceException_1.AppSyncServiceException,
|
|
3279
3212
|
errorCode,
|
|
3280
3213
|
});
|
|
3281
3214
|
}
|
|
@@ -3284,13 +3217,14 @@ const de_UpdateFunctionCommand = async (output, context) => {
|
|
|
3284
3217
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3285
3218
|
return de_UpdateFunctionCommandError(output, context);
|
|
3286
3219
|
}
|
|
3287
|
-
const contents = map({
|
|
3220
|
+
const contents = (0, smithy_client_1.map)({
|
|
3288
3221
|
$metadata: deserializeMetadata(output),
|
|
3289
3222
|
});
|
|
3290
3223
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3291
|
-
|
|
3292
|
-
|
|
3293
|
-
}
|
|
3224
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3225
|
+
functionConfiguration: smithy_client_1._json,
|
|
3226
|
+
});
|
|
3227
|
+
Object.assign(contents, doc);
|
|
3294
3228
|
return contents;
|
|
3295
3229
|
};
|
|
3296
3230
|
exports.de_UpdateFunctionCommand = de_UpdateFunctionCommand;
|
|
@@ -3315,10 +3249,9 @@ const de_UpdateFunctionCommandError = async (output, context) => {
|
|
|
3315
3249
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
3316
3250
|
default:
|
|
3317
3251
|
const parsedBody = parsedOutput.body;
|
|
3318
|
-
|
|
3252
|
+
return throwDefaultError({
|
|
3319
3253
|
output,
|
|
3320
3254
|
parsedBody,
|
|
3321
|
-
exceptionCtor: AppSyncServiceException_1.AppSyncServiceException,
|
|
3322
3255
|
errorCode,
|
|
3323
3256
|
});
|
|
3324
3257
|
}
|
|
@@ -3327,13 +3260,14 @@ const de_UpdateGraphqlApiCommand = async (output, context) => {
|
|
|
3327
3260
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3328
3261
|
return de_UpdateGraphqlApiCommandError(output, context);
|
|
3329
3262
|
}
|
|
3330
|
-
const contents = map({
|
|
3263
|
+
const contents = (0, smithy_client_1.map)({
|
|
3331
3264
|
$metadata: deserializeMetadata(output),
|
|
3332
3265
|
});
|
|
3333
3266
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3334
|
-
|
|
3335
|
-
|
|
3336
|
-
}
|
|
3267
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3268
|
+
graphqlApi: smithy_client_1._json,
|
|
3269
|
+
});
|
|
3270
|
+
Object.assign(contents, doc);
|
|
3337
3271
|
return contents;
|
|
3338
3272
|
};
|
|
3339
3273
|
exports.de_UpdateGraphqlApiCommand = de_UpdateGraphqlApiCommand;
|
|
@@ -3364,10 +3298,9 @@ const de_UpdateGraphqlApiCommandError = async (output, context) => {
|
|
|
3364
3298
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
3365
3299
|
default:
|
|
3366
3300
|
const parsedBody = parsedOutput.body;
|
|
3367
|
-
|
|
3301
|
+
return throwDefaultError({
|
|
3368
3302
|
output,
|
|
3369
3303
|
parsedBody,
|
|
3370
|
-
exceptionCtor: AppSyncServiceException_1.AppSyncServiceException,
|
|
3371
3304
|
errorCode,
|
|
3372
3305
|
});
|
|
3373
3306
|
}
|
|
@@ -3376,13 +3309,14 @@ const de_UpdateResolverCommand = async (output, context) => {
|
|
|
3376
3309
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3377
3310
|
return de_UpdateResolverCommandError(output, context);
|
|
3378
3311
|
}
|
|
3379
|
-
const contents = map({
|
|
3312
|
+
const contents = (0, smithy_client_1.map)({
|
|
3380
3313
|
$metadata: deserializeMetadata(output),
|
|
3381
3314
|
});
|
|
3382
3315
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3383
|
-
|
|
3384
|
-
|
|
3385
|
-
}
|
|
3316
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3317
|
+
resolver: smithy_client_1._json,
|
|
3318
|
+
});
|
|
3319
|
+
Object.assign(contents, doc);
|
|
3386
3320
|
return contents;
|
|
3387
3321
|
};
|
|
3388
3322
|
exports.de_UpdateResolverCommand = de_UpdateResolverCommand;
|
|
@@ -3410,10 +3344,9 @@ const de_UpdateResolverCommandError = async (output, context) => {
|
|
|
3410
3344
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
3411
3345
|
default:
|
|
3412
3346
|
const parsedBody = parsedOutput.body;
|
|
3413
|
-
|
|
3347
|
+
return throwDefaultError({
|
|
3414
3348
|
output,
|
|
3415
3349
|
parsedBody,
|
|
3416
|
-
exceptionCtor: AppSyncServiceException_1.AppSyncServiceException,
|
|
3417
3350
|
errorCode,
|
|
3418
3351
|
});
|
|
3419
3352
|
}
|
|
@@ -3422,13 +3355,14 @@ const de_UpdateTypeCommand = async (output, context) => {
|
|
|
3422
3355
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3423
3356
|
return de_UpdateTypeCommandError(output, context);
|
|
3424
3357
|
}
|
|
3425
|
-
const contents = map({
|
|
3358
|
+
const contents = (0, smithy_client_1.map)({
|
|
3426
3359
|
$metadata: deserializeMetadata(output),
|
|
3427
3360
|
});
|
|
3428
3361
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3429
|
-
|
|
3430
|
-
|
|
3431
|
-
}
|
|
3362
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3363
|
+
type: smithy_client_1._json,
|
|
3364
|
+
});
|
|
3365
|
+
Object.assign(contents, doc);
|
|
3432
3366
|
return contents;
|
|
3433
3367
|
};
|
|
3434
3368
|
exports.de_UpdateTypeCommand = de_UpdateTypeCommand;
|
|
@@ -3456,21 +3390,21 @@ const de_UpdateTypeCommandError = async (output, context) => {
|
|
|
3456
3390
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
3457
3391
|
default:
|
|
3458
3392
|
const parsedBody = parsedOutput.body;
|
|
3459
|
-
|
|
3393
|
+
return throwDefaultError({
|
|
3460
3394
|
output,
|
|
3461
3395
|
parsedBody,
|
|
3462
|
-
exceptionCtor: AppSyncServiceException_1.AppSyncServiceException,
|
|
3463
3396
|
errorCode,
|
|
3464
3397
|
});
|
|
3465
3398
|
}
|
|
3466
3399
|
};
|
|
3467
|
-
const
|
|
3400
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(AppSyncServiceException_1.AppSyncServiceException);
|
|
3468
3401
|
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
3469
|
-
const contents = map({});
|
|
3402
|
+
const contents = (0, smithy_client_1.map)({});
|
|
3470
3403
|
const data = parsedOutput.body;
|
|
3471
|
-
|
|
3472
|
-
|
|
3473
|
-
}
|
|
3404
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3405
|
+
message: smithy_client_1.expectString,
|
|
3406
|
+
});
|
|
3407
|
+
Object.assign(contents, doc);
|
|
3474
3408
|
const exception = new models_0_1.AccessDeniedException({
|
|
3475
3409
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3476
3410
|
...contents,
|
|
@@ -3478,11 +3412,12 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
|
3478
3412
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3479
3413
|
};
|
|
3480
3414
|
const de_ApiKeyLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
3481
|
-
const contents = map({});
|
|
3415
|
+
const contents = (0, smithy_client_1.map)({});
|
|
3482
3416
|
const data = parsedOutput.body;
|
|
3483
|
-
|
|
3484
|
-
|
|
3485
|
-
}
|
|
3417
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3418
|
+
message: smithy_client_1.expectString,
|
|
3419
|
+
});
|
|
3420
|
+
Object.assign(contents, doc);
|
|
3486
3421
|
const exception = new models_0_1.ApiKeyLimitExceededException({
|
|
3487
3422
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3488
3423
|
...contents,
|
|
@@ -3490,11 +3425,12 @@ const de_ApiKeyLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
3490
3425
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3491
3426
|
};
|
|
3492
3427
|
const de_ApiKeyValidityOutOfBoundsExceptionRes = async (parsedOutput, context) => {
|
|
3493
|
-
const contents = map({});
|
|
3428
|
+
const contents = (0, smithy_client_1.map)({});
|
|
3494
3429
|
const data = parsedOutput.body;
|
|
3495
|
-
|
|
3496
|
-
|
|
3497
|
-
}
|
|
3430
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3431
|
+
message: smithy_client_1.expectString,
|
|
3432
|
+
});
|
|
3433
|
+
Object.assign(contents, doc);
|
|
3498
3434
|
const exception = new models_0_1.ApiKeyValidityOutOfBoundsException({
|
|
3499
3435
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3500
3436
|
...contents,
|
|
@@ -3502,11 +3438,12 @@ const de_ApiKeyValidityOutOfBoundsExceptionRes = async (parsedOutput, context) =
|
|
|
3502
3438
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3503
3439
|
};
|
|
3504
3440
|
const de_ApiLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
3505
|
-
const contents = map({});
|
|
3441
|
+
const contents = (0, smithy_client_1.map)({});
|
|
3506
3442
|
const data = parsedOutput.body;
|
|
3507
|
-
|
|
3508
|
-
|
|
3509
|
-
}
|
|
3443
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3444
|
+
message: smithy_client_1.expectString,
|
|
3445
|
+
});
|
|
3446
|
+
Object.assign(contents, doc);
|
|
3510
3447
|
const exception = new models_0_1.ApiLimitExceededException({
|
|
3511
3448
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3512
3449
|
...contents,
|
|
@@ -3514,17 +3451,14 @@ const de_ApiLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
3514
3451
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3515
3452
|
};
|
|
3516
3453
|
const de_BadRequestExceptionRes = async (parsedOutput, context) => {
|
|
3517
|
-
const contents = map({});
|
|
3454
|
+
const contents = (0, smithy_client_1.map)({});
|
|
3518
3455
|
const data = parsedOutput.body;
|
|
3519
|
-
|
|
3520
|
-
|
|
3521
|
-
|
|
3522
|
-
|
|
3523
|
-
|
|
3524
|
-
|
|
3525
|
-
if (data.reason != null) {
|
|
3526
|
-
contents.reason = (0, smithy_client_1.expectString)(data.reason);
|
|
3527
|
-
}
|
|
3456
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3457
|
+
detail: smithy_client_1._json,
|
|
3458
|
+
message: smithy_client_1.expectString,
|
|
3459
|
+
reason: smithy_client_1.expectString,
|
|
3460
|
+
});
|
|
3461
|
+
Object.assign(contents, doc);
|
|
3528
3462
|
const exception = new models_0_1.BadRequestException({
|
|
3529
3463
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3530
3464
|
...contents,
|
|
@@ -3532,11 +3466,12 @@ const de_BadRequestExceptionRes = async (parsedOutput, context) => {
|
|
|
3532
3466
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3533
3467
|
};
|
|
3534
3468
|
const de_ConcurrentModificationExceptionRes = async (parsedOutput, context) => {
|
|
3535
|
-
const contents = map({});
|
|
3469
|
+
const contents = (0, smithy_client_1.map)({});
|
|
3536
3470
|
const data = parsedOutput.body;
|
|
3537
|
-
|
|
3538
|
-
|
|
3539
|
-
}
|
|
3471
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3472
|
+
message: smithy_client_1.expectString,
|
|
3473
|
+
});
|
|
3474
|
+
Object.assign(contents, doc);
|
|
3540
3475
|
const exception = new models_0_1.ConcurrentModificationException({
|
|
3541
3476
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3542
3477
|
...contents,
|
|
@@ -3544,11 +3479,12 @@ const de_ConcurrentModificationExceptionRes = async (parsedOutput, context) => {
|
|
|
3544
3479
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3545
3480
|
};
|
|
3546
3481
|
const de_GraphQLSchemaExceptionRes = async (parsedOutput, context) => {
|
|
3547
|
-
const contents = map({});
|
|
3482
|
+
const contents = (0, smithy_client_1.map)({});
|
|
3548
3483
|
const data = parsedOutput.body;
|
|
3549
|
-
|
|
3550
|
-
|
|
3551
|
-
}
|
|
3484
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3485
|
+
message: smithy_client_1.expectString,
|
|
3486
|
+
});
|
|
3487
|
+
Object.assign(contents, doc);
|
|
3552
3488
|
const exception = new models_0_1.GraphQLSchemaException({
|
|
3553
3489
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3554
3490
|
...contents,
|
|
@@ -3556,11 +3492,12 @@ const de_GraphQLSchemaExceptionRes = async (parsedOutput, context) => {
|
|
|
3556
3492
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3557
3493
|
};
|
|
3558
3494
|
const de_InternalFailureExceptionRes = async (parsedOutput, context) => {
|
|
3559
|
-
const contents = map({});
|
|
3495
|
+
const contents = (0, smithy_client_1.map)({});
|
|
3560
3496
|
const data = parsedOutput.body;
|
|
3561
|
-
|
|
3562
|
-
|
|
3563
|
-
}
|
|
3497
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3498
|
+
message: smithy_client_1.expectString,
|
|
3499
|
+
});
|
|
3500
|
+
Object.assign(contents, doc);
|
|
3564
3501
|
const exception = new models_0_1.InternalFailureException({
|
|
3565
3502
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3566
3503
|
...contents,
|
|
@@ -3568,11 +3505,12 @@ const de_InternalFailureExceptionRes = async (parsedOutput, context) => {
|
|
|
3568
3505
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3569
3506
|
};
|
|
3570
3507
|
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
3571
|
-
const contents = map({});
|
|
3508
|
+
const contents = (0, smithy_client_1.map)({});
|
|
3572
3509
|
const data = parsedOutput.body;
|
|
3573
|
-
|
|
3574
|
-
|
|
3575
|
-
}
|
|
3510
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3511
|
+
message: smithy_client_1.expectString,
|
|
3512
|
+
});
|
|
3513
|
+
Object.assign(contents, doc);
|
|
3576
3514
|
const exception = new models_0_1.LimitExceededException({
|
|
3577
3515
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3578
3516
|
...contents,
|
|
@@ -3580,11 +3518,12 @@ const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
3580
3518
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3581
3519
|
};
|
|
3582
3520
|
const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
3583
|
-
const contents = map({});
|
|
3521
|
+
const contents = (0, smithy_client_1.map)({});
|
|
3584
3522
|
const data = parsedOutput.body;
|
|
3585
|
-
|
|
3586
|
-
|
|
3587
|
-
}
|
|
3523
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3524
|
+
message: smithy_client_1.expectString,
|
|
3525
|
+
});
|
|
3526
|
+
Object.assign(contents, doc);
|
|
3588
3527
|
const exception = new models_0_1.NotFoundException({
|
|
3589
3528
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3590
3529
|
...contents,
|
|
@@ -3592,659 +3531,18 @@ const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
3592
3531
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3593
3532
|
};
|
|
3594
3533
|
const de_UnauthorizedExceptionRes = async (parsedOutput, context) => {
|
|
3595
|
-
const contents = map({});
|
|
3534
|
+
const contents = (0, smithy_client_1.map)({});
|
|
3596
3535
|
const data = parsedOutput.body;
|
|
3597
|
-
|
|
3598
|
-
|
|
3599
|
-
}
|
|
3536
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3537
|
+
message: smithy_client_1.expectString,
|
|
3538
|
+
});
|
|
3539
|
+
Object.assign(contents, doc);
|
|
3600
3540
|
const exception = new models_0_1.UnauthorizedException({
|
|
3601
3541
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3602
3542
|
...contents,
|
|
3603
3543
|
});
|
|
3604
3544
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3605
3545
|
};
|
|
3606
|
-
const se_AdditionalAuthenticationProvider = (input, context) => {
|
|
3607
|
-
return {
|
|
3608
|
-
...(input.authenticationType != null && { authenticationType: input.authenticationType }),
|
|
3609
|
-
...(input.lambdaAuthorizerConfig != null && {
|
|
3610
|
-
lambdaAuthorizerConfig: se_LambdaAuthorizerConfig(input.lambdaAuthorizerConfig, context),
|
|
3611
|
-
}),
|
|
3612
|
-
...(input.openIDConnectConfig != null && {
|
|
3613
|
-
openIDConnectConfig: se_OpenIDConnectConfig(input.openIDConnectConfig, context),
|
|
3614
|
-
}),
|
|
3615
|
-
...(input.userPoolConfig != null && { userPoolConfig: se_CognitoUserPoolConfig(input.userPoolConfig, context) }),
|
|
3616
|
-
};
|
|
3617
|
-
};
|
|
3618
|
-
const se_AdditionalAuthenticationProviders = (input, context) => {
|
|
3619
|
-
return input
|
|
3620
|
-
.filter((e) => e != null)
|
|
3621
|
-
.map((entry) => {
|
|
3622
|
-
return se_AdditionalAuthenticationProvider(entry, context);
|
|
3623
|
-
});
|
|
3624
|
-
};
|
|
3625
|
-
const se_AppSyncRuntime = (input, context) => {
|
|
3626
|
-
return {
|
|
3627
|
-
...(input.name != null && { name: input.name }),
|
|
3628
|
-
...(input.runtimeVersion != null && { runtimeVersion: input.runtimeVersion }),
|
|
3629
|
-
};
|
|
3630
|
-
};
|
|
3631
|
-
const se_AuthorizationConfig = (input, context) => {
|
|
3632
|
-
return {
|
|
3633
|
-
...(input.authorizationType != null && { authorizationType: input.authorizationType }),
|
|
3634
|
-
...(input.awsIamConfig != null && { awsIamConfig: se_AwsIamConfig(input.awsIamConfig, context) }),
|
|
3635
|
-
};
|
|
3636
|
-
};
|
|
3637
|
-
const se_AwsIamConfig = (input, context) => {
|
|
3638
|
-
return {
|
|
3639
|
-
...(input.signingRegion != null && { signingRegion: input.signingRegion }),
|
|
3640
|
-
...(input.signingServiceName != null && { signingServiceName: input.signingServiceName }),
|
|
3641
|
-
};
|
|
3642
|
-
};
|
|
3643
|
-
const se_CachingConfig = (input, context) => {
|
|
3644
|
-
return {
|
|
3645
|
-
...(input.cachingKeys != null && { cachingKeys: se_CachingKeys(input.cachingKeys, context) }),
|
|
3646
|
-
...(input.ttl != null && { ttl: input.ttl }),
|
|
3647
|
-
};
|
|
3648
|
-
};
|
|
3649
|
-
const se_CachingKeys = (input, context) => {
|
|
3650
|
-
return input
|
|
3651
|
-
.filter((e) => e != null)
|
|
3652
|
-
.map((entry) => {
|
|
3653
|
-
return entry;
|
|
3654
|
-
});
|
|
3655
|
-
};
|
|
3656
|
-
const se_CognitoUserPoolConfig = (input, context) => {
|
|
3657
|
-
return {
|
|
3658
|
-
...(input.appIdClientRegex != null && { appIdClientRegex: input.appIdClientRegex }),
|
|
3659
|
-
...(input.awsRegion != null && { awsRegion: input.awsRegion }),
|
|
3660
|
-
...(input.userPoolId != null && { userPoolId: input.userPoolId }),
|
|
3661
|
-
};
|
|
3662
|
-
};
|
|
3663
|
-
const se_DeltaSyncConfig = (input, context) => {
|
|
3664
|
-
return {
|
|
3665
|
-
...(input.baseTableTTL != null && { baseTableTTL: input.baseTableTTL }),
|
|
3666
|
-
...(input.deltaSyncTableName != null && { deltaSyncTableName: input.deltaSyncTableName }),
|
|
3667
|
-
...(input.deltaSyncTableTTL != null && { deltaSyncTableTTL: input.deltaSyncTableTTL }),
|
|
3668
|
-
};
|
|
3669
|
-
};
|
|
3670
|
-
const se_DynamodbDataSourceConfig = (input, context) => {
|
|
3671
|
-
return {
|
|
3672
|
-
...(input.awsRegion != null && { awsRegion: input.awsRegion }),
|
|
3673
|
-
...(input.deltaSyncConfig != null && { deltaSyncConfig: se_DeltaSyncConfig(input.deltaSyncConfig, context) }),
|
|
3674
|
-
...(input.tableName != null && { tableName: input.tableName }),
|
|
3675
|
-
...(input.useCallerCredentials != null && { useCallerCredentials: input.useCallerCredentials }),
|
|
3676
|
-
...(input.versioned != null && { versioned: input.versioned }),
|
|
3677
|
-
};
|
|
3678
|
-
};
|
|
3679
|
-
const se_ElasticsearchDataSourceConfig = (input, context) => {
|
|
3680
|
-
return {
|
|
3681
|
-
...(input.awsRegion != null && { awsRegion: input.awsRegion }),
|
|
3682
|
-
...(input.endpoint != null && { endpoint: input.endpoint }),
|
|
3683
|
-
};
|
|
3684
|
-
};
|
|
3685
|
-
const se_EventBridgeDataSourceConfig = (input, context) => {
|
|
3686
|
-
return {
|
|
3687
|
-
...(input.eventBusArn != null && { eventBusArn: input.eventBusArn }),
|
|
3688
|
-
};
|
|
3689
|
-
};
|
|
3690
|
-
const se_FunctionsIds = (input, context) => {
|
|
3691
|
-
return input
|
|
3692
|
-
.filter((e) => e != null)
|
|
3693
|
-
.map((entry) => {
|
|
3694
|
-
return entry;
|
|
3695
|
-
});
|
|
3696
|
-
};
|
|
3697
|
-
const se_HttpDataSourceConfig = (input, context) => {
|
|
3698
|
-
return {
|
|
3699
|
-
...(input.authorizationConfig != null && {
|
|
3700
|
-
authorizationConfig: se_AuthorizationConfig(input.authorizationConfig, context),
|
|
3701
|
-
}),
|
|
3702
|
-
...(input.endpoint != null && { endpoint: input.endpoint }),
|
|
3703
|
-
};
|
|
3704
|
-
};
|
|
3705
|
-
const se_LambdaAuthorizerConfig = (input, context) => {
|
|
3706
|
-
return {
|
|
3707
|
-
...(input.authorizerResultTtlInSeconds != null && {
|
|
3708
|
-
authorizerResultTtlInSeconds: input.authorizerResultTtlInSeconds,
|
|
3709
|
-
}),
|
|
3710
|
-
...(input.authorizerUri != null && { authorizerUri: input.authorizerUri }),
|
|
3711
|
-
...(input.identityValidationExpression != null && {
|
|
3712
|
-
identityValidationExpression: input.identityValidationExpression,
|
|
3713
|
-
}),
|
|
3714
|
-
};
|
|
3715
|
-
};
|
|
3716
|
-
const se_LambdaConflictHandlerConfig = (input, context) => {
|
|
3717
|
-
return {
|
|
3718
|
-
...(input.lambdaConflictHandlerArn != null && { lambdaConflictHandlerArn: input.lambdaConflictHandlerArn }),
|
|
3719
|
-
};
|
|
3720
|
-
};
|
|
3721
|
-
const se_LambdaDataSourceConfig = (input, context) => {
|
|
3722
|
-
return {
|
|
3723
|
-
...(input.lambdaFunctionArn != null && { lambdaFunctionArn: input.lambdaFunctionArn }),
|
|
3724
|
-
};
|
|
3725
|
-
};
|
|
3726
|
-
const se_LogConfig = (input, context) => {
|
|
3727
|
-
return {
|
|
3728
|
-
...(input.cloudWatchLogsRoleArn != null && { cloudWatchLogsRoleArn: input.cloudWatchLogsRoleArn }),
|
|
3729
|
-
...(input.excludeVerboseContent != null && { excludeVerboseContent: input.excludeVerboseContent }),
|
|
3730
|
-
...(input.fieldLogLevel != null && { fieldLogLevel: input.fieldLogLevel }),
|
|
3731
|
-
};
|
|
3732
|
-
};
|
|
3733
|
-
const se_OpenIDConnectConfig = (input, context) => {
|
|
3734
|
-
return {
|
|
3735
|
-
...(input.authTTL != null && { authTTL: input.authTTL }),
|
|
3736
|
-
...(input.clientId != null && { clientId: input.clientId }),
|
|
3737
|
-
...(input.iatTTL != null && { iatTTL: input.iatTTL }),
|
|
3738
|
-
...(input.issuer != null && { issuer: input.issuer }),
|
|
3739
|
-
};
|
|
3740
|
-
};
|
|
3741
|
-
const se_OpenSearchServiceDataSourceConfig = (input, context) => {
|
|
3742
|
-
return {
|
|
3743
|
-
...(input.awsRegion != null && { awsRegion: input.awsRegion }),
|
|
3744
|
-
...(input.endpoint != null && { endpoint: input.endpoint }),
|
|
3745
|
-
};
|
|
3746
|
-
};
|
|
3747
|
-
const se_PipelineConfig = (input, context) => {
|
|
3748
|
-
return {
|
|
3749
|
-
...(input.functions != null && { functions: se_FunctionsIds(input.functions, context) }),
|
|
3750
|
-
};
|
|
3751
|
-
};
|
|
3752
|
-
const se_RdsHttpEndpointConfig = (input, context) => {
|
|
3753
|
-
return {
|
|
3754
|
-
...(input.awsRegion != null && { awsRegion: input.awsRegion }),
|
|
3755
|
-
...(input.awsSecretStoreArn != null && { awsSecretStoreArn: input.awsSecretStoreArn }),
|
|
3756
|
-
...(input.databaseName != null && { databaseName: input.databaseName }),
|
|
3757
|
-
...(input.dbClusterIdentifier != null && { dbClusterIdentifier: input.dbClusterIdentifier }),
|
|
3758
|
-
...(input.schema != null && { schema: input.schema }),
|
|
3759
|
-
};
|
|
3760
|
-
};
|
|
3761
|
-
const se_RelationalDatabaseDataSourceConfig = (input, context) => {
|
|
3762
|
-
return {
|
|
3763
|
-
...(input.rdsHttpEndpointConfig != null && {
|
|
3764
|
-
rdsHttpEndpointConfig: se_RdsHttpEndpointConfig(input.rdsHttpEndpointConfig, context),
|
|
3765
|
-
}),
|
|
3766
|
-
...(input.relationalDatabaseSourceType != null && {
|
|
3767
|
-
relationalDatabaseSourceType: input.relationalDatabaseSourceType,
|
|
3768
|
-
}),
|
|
3769
|
-
};
|
|
3770
|
-
};
|
|
3771
|
-
const se_SyncConfig = (input, context) => {
|
|
3772
|
-
return {
|
|
3773
|
-
...(input.conflictDetection != null && { conflictDetection: input.conflictDetection }),
|
|
3774
|
-
...(input.conflictHandler != null && { conflictHandler: input.conflictHandler }),
|
|
3775
|
-
...(input.lambdaConflictHandlerConfig != null && {
|
|
3776
|
-
lambdaConflictHandlerConfig: se_LambdaConflictHandlerConfig(input.lambdaConflictHandlerConfig, context),
|
|
3777
|
-
}),
|
|
3778
|
-
};
|
|
3779
|
-
};
|
|
3780
|
-
const se_TagMap = (input, context) => {
|
|
3781
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
3782
|
-
if (value === null) {
|
|
3783
|
-
return acc;
|
|
3784
|
-
}
|
|
3785
|
-
acc[key] = value;
|
|
3786
|
-
return acc;
|
|
3787
|
-
}, {});
|
|
3788
|
-
};
|
|
3789
|
-
const se_UserPoolConfig = (input, context) => {
|
|
3790
|
-
return {
|
|
3791
|
-
...(input.appIdClientRegex != null && { appIdClientRegex: input.appIdClientRegex }),
|
|
3792
|
-
...(input.awsRegion != null && { awsRegion: input.awsRegion }),
|
|
3793
|
-
...(input.defaultAction != null && { defaultAction: input.defaultAction }),
|
|
3794
|
-
...(input.userPoolId != null && { userPoolId: input.userPoolId }),
|
|
3795
|
-
};
|
|
3796
|
-
};
|
|
3797
|
-
const de_AdditionalAuthenticationProvider = (output, context) => {
|
|
3798
|
-
return {
|
|
3799
|
-
authenticationType: (0, smithy_client_1.expectString)(output.authenticationType),
|
|
3800
|
-
lambdaAuthorizerConfig: output.lambdaAuthorizerConfig != null
|
|
3801
|
-
? de_LambdaAuthorizerConfig(output.lambdaAuthorizerConfig, context)
|
|
3802
|
-
: undefined,
|
|
3803
|
-
openIDConnectConfig: output.openIDConnectConfig != null ? de_OpenIDConnectConfig(output.openIDConnectConfig, context) : undefined,
|
|
3804
|
-
userPoolConfig: output.userPoolConfig != null ? de_CognitoUserPoolConfig(output.userPoolConfig, context) : undefined,
|
|
3805
|
-
};
|
|
3806
|
-
};
|
|
3807
|
-
const de_AdditionalAuthenticationProviders = (output, context) => {
|
|
3808
|
-
const retVal = (output || [])
|
|
3809
|
-
.filter((e) => e != null)
|
|
3810
|
-
.map((entry) => {
|
|
3811
|
-
if (entry === null) {
|
|
3812
|
-
return null;
|
|
3813
|
-
}
|
|
3814
|
-
return de_AdditionalAuthenticationProvider(entry, context);
|
|
3815
|
-
});
|
|
3816
|
-
return retVal;
|
|
3817
|
-
};
|
|
3818
|
-
const de_ApiAssociation = (output, context) => {
|
|
3819
|
-
return {
|
|
3820
|
-
apiId: (0, smithy_client_1.expectString)(output.apiId),
|
|
3821
|
-
associationStatus: (0, smithy_client_1.expectString)(output.associationStatus),
|
|
3822
|
-
deploymentDetail: (0, smithy_client_1.expectString)(output.deploymentDetail),
|
|
3823
|
-
domainName: (0, smithy_client_1.expectString)(output.domainName),
|
|
3824
|
-
};
|
|
3825
|
-
};
|
|
3826
|
-
const de_ApiCache = (output, context) => {
|
|
3827
|
-
return {
|
|
3828
|
-
apiCachingBehavior: (0, smithy_client_1.expectString)(output.apiCachingBehavior),
|
|
3829
|
-
atRestEncryptionEnabled: (0, smithy_client_1.expectBoolean)(output.atRestEncryptionEnabled),
|
|
3830
|
-
status: (0, smithy_client_1.expectString)(output.status),
|
|
3831
|
-
transitEncryptionEnabled: (0, smithy_client_1.expectBoolean)(output.transitEncryptionEnabled),
|
|
3832
|
-
ttl: (0, smithy_client_1.expectLong)(output.ttl),
|
|
3833
|
-
type: (0, smithy_client_1.expectString)(output.type),
|
|
3834
|
-
};
|
|
3835
|
-
};
|
|
3836
|
-
const de_ApiKey = (output, context) => {
|
|
3837
|
-
return {
|
|
3838
|
-
deletes: (0, smithy_client_1.expectLong)(output.deletes),
|
|
3839
|
-
description: (0, smithy_client_1.expectString)(output.description),
|
|
3840
|
-
expires: (0, smithy_client_1.expectLong)(output.expires),
|
|
3841
|
-
id: (0, smithy_client_1.expectString)(output.id),
|
|
3842
|
-
};
|
|
3843
|
-
};
|
|
3844
|
-
const de_ApiKeys = (output, context) => {
|
|
3845
|
-
const retVal = (output || [])
|
|
3846
|
-
.filter((e) => e != null)
|
|
3847
|
-
.map((entry) => {
|
|
3848
|
-
if (entry === null) {
|
|
3849
|
-
return null;
|
|
3850
|
-
}
|
|
3851
|
-
return de_ApiKey(entry, context);
|
|
3852
|
-
});
|
|
3853
|
-
return retVal;
|
|
3854
|
-
};
|
|
3855
|
-
const de_AppSyncRuntime = (output, context) => {
|
|
3856
|
-
return {
|
|
3857
|
-
name: (0, smithy_client_1.expectString)(output.name),
|
|
3858
|
-
runtimeVersion: (0, smithy_client_1.expectString)(output.runtimeVersion),
|
|
3859
|
-
};
|
|
3860
|
-
};
|
|
3861
|
-
const de_AuthorizationConfig = (output, context) => {
|
|
3862
|
-
return {
|
|
3863
|
-
authorizationType: (0, smithy_client_1.expectString)(output.authorizationType),
|
|
3864
|
-
awsIamConfig: output.awsIamConfig != null ? de_AwsIamConfig(output.awsIamConfig, context) : undefined,
|
|
3865
|
-
};
|
|
3866
|
-
};
|
|
3867
|
-
const de_AwsIamConfig = (output, context) => {
|
|
3868
|
-
return {
|
|
3869
|
-
signingRegion: (0, smithy_client_1.expectString)(output.signingRegion),
|
|
3870
|
-
signingServiceName: (0, smithy_client_1.expectString)(output.signingServiceName),
|
|
3871
|
-
};
|
|
3872
|
-
};
|
|
3873
|
-
const de_BadRequestDetail = (output, context) => {
|
|
3874
|
-
return {
|
|
3875
|
-
codeErrors: output.codeErrors != null ? de_CodeErrors(output.codeErrors, context) : undefined,
|
|
3876
|
-
};
|
|
3877
|
-
};
|
|
3878
|
-
const de_CachingConfig = (output, context) => {
|
|
3879
|
-
return {
|
|
3880
|
-
cachingKeys: output.cachingKeys != null ? de_CachingKeys(output.cachingKeys, context) : undefined,
|
|
3881
|
-
ttl: (0, smithy_client_1.expectLong)(output.ttl),
|
|
3882
|
-
};
|
|
3883
|
-
};
|
|
3884
|
-
const de_CachingKeys = (output, context) => {
|
|
3885
|
-
const retVal = (output || [])
|
|
3886
|
-
.filter((e) => e != null)
|
|
3887
|
-
.map((entry) => {
|
|
3888
|
-
if (entry === null) {
|
|
3889
|
-
return null;
|
|
3890
|
-
}
|
|
3891
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
3892
|
-
});
|
|
3893
|
-
return retVal;
|
|
3894
|
-
};
|
|
3895
|
-
const de_CodeError = (output, context) => {
|
|
3896
|
-
return {
|
|
3897
|
-
errorType: (0, smithy_client_1.expectString)(output.errorType),
|
|
3898
|
-
location: output.location != null ? de_CodeErrorLocation(output.location, context) : undefined,
|
|
3899
|
-
value: (0, smithy_client_1.expectString)(output.value),
|
|
3900
|
-
};
|
|
3901
|
-
};
|
|
3902
|
-
const de_CodeErrorLocation = (output, context) => {
|
|
3903
|
-
return {
|
|
3904
|
-
column: (0, smithy_client_1.expectInt32)(output.column),
|
|
3905
|
-
line: (0, smithy_client_1.expectInt32)(output.line),
|
|
3906
|
-
span: (0, smithy_client_1.expectInt32)(output.span),
|
|
3907
|
-
};
|
|
3908
|
-
};
|
|
3909
|
-
const de_CodeErrors = (output, context) => {
|
|
3910
|
-
const retVal = (output || [])
|
|
3911
|
-
.filter((e) => e != null)
|
|
3912
|
-
.map((entry) => {
|
|
3913
|
-
if (entry === null) {
|
|
3914
|
-
return null;
|
|
3915
|
-
}
|
|
3916
|
-
return de_CodeError(entry, context);
|
|
3917
|
-
});
|
|
3918
|
-
return retVal;
|
|
3919
|
-
};
|
|
3920
|
-
const de_CognitoUserPoolConfig = (output, context) => {
|
|
3921
|
-
return {
|
|
3922
|
-
appIdClientRegex: (0, smithy_client_1.expectString)(output.appIdClientRegex),
|
|
3923
|
-
awsRegion: (0, smithy_client_1.expectString)(output.awsRegion),
|
|
3924
|
-
userPoolId: (0, smithy_client_1.expectString)(output.userPoolId),
|
|
3925
|
-
};
|
|
3926
|
-
};
|
|
3927
|
-
const de_DataSource = (output, context) => {
|
|
3928
|
-
return {
|
|
3929
|
-
dataSourceArn: (0, smithy_client_1.expectString)(output.dataSourceArn),
|
|
3930
|
-
description: (0, smithy_client_1.expectString)(output.description),
|
|
3931
|
-
dynamodbConfig: output.dynamodbConfig != null ? de_DynamodbDataSourceConfig(output.dynamodbConfig, context) : undefined,
|
|
3932
|
-
elasticsearchConfig: output.elasticsearchConfig != null
|
|
3933
|
-
? de_ElasticsearchDataSourceConfig(output.elasticsearchConfig, context)
|
|
3934
|
-
: undefined,
|
|
3935
|
-
eventBridgeConfig: output.eventBridgeConfig != null ? de_EventBridgeDataSourceConfig(output.eventBridgeConfig, context) : undefined,
|
|
3936
|
-
httpConfig: output.httpConfig != null ? de_HttpDataSourceConfig(output.httpConfig, context) : undefined,
|
|
3937
|
-
lambdaConfig: output.lambdaConfig != null ? de_LambdaDataSourceConfig(output.lambdaConfig, context) : undefined,
|
|
3938
|
-
name: (0, smithy_client_1.expectString)(output.name),
|
|
3939
|
-
openSearchServiceConfig: output.openSearchServiceConfig != null
|
|
3940
|
-
? de_OpenSearchServiceDataSourceConfig(output.openSearchServiceConfig, context)
|
|
3941
|
-
: undefined,
|
|
3942
|
-
relationalDatabaseConfig: output.relationalDatabaseConfig != null
|
|
3943
|
-
? de_RelationalDatabaseDataSourceConfig(output.relationalDatabaseConfig, context)
|
|
3944
|
-
: undefined,
|
|
3945
|
-
serviceRoleArn: (0, smithy_client_1.expectString)(output.serviceRoleArn),
|
|
3946
|
-
type: (0, smithy_client_1.expectString)(output.type),
|
|
3947
|
-
};
|
|
3948
|
-
};
|
|
3949
|
-
const de_DataSources = (output, context) => {
|
|
3950
|
-
const retVal = (output || [])
|
|
3951
|
-
.filter((e) => e != null)
|
|
3952
|
-
.map((entry) => {
|
|
3953
|
-
if (entry === null) {
|
|
3954
|
-
return null;
|
|
3955
|
-
}
|
|
3956
|
-
return de_DataSource(entry, context);
|
|
3957
|
-
});
|
|
3958
|
-
return retVal;
|
|
3959
|
-
};
|
|
3960
|
-
const de_DeltaSyncConfig = (output, context) => {
|
|
3961
|
-
return {
|
|
3962
|
-
baseTableTTL: (0, smithy_client_1.expectLong)(output.baseTableTTL),
|
|
3963
|
-
deltaSyncTableName: (0, smithy_client_1.expectString)(output.deltaSyncTableName),
|
|
3964
|
-
deltaSyncTableTTL: (0, smithy_client_1.expectLong)(output.deltaSyncTableTTL),
|
|
3965
|
-
};
|
|
3966
|
-
};
|
|
3967
|
-
const de_DomainNameConfig = (output, context) => {
|
|
3968
|
-
return {
|
|
3969
|
-
appsyncDomainName: (0, smithy_client_1.expectString)(output.appsyncDomainName),
|
|
3970
|
-
certificateArn: (0, smithy_client_1.expectString)(output.certificateArn),
|
|
3971
|
-
description: (0, smithy_client_1.expectString)(output.description),
|
|
3972
|
-
domainName: (0, smithy_client_1.expectString)(output.domainName),
|
|
3973
|
-
hostedZoneId: (0, smithy_client_1.expectString)(output.hostedZoneId),
|
|
3974
|
-
};
|
|
3975
|
-
};
|
|
3976
|
-
const de_DomainNameConfigs = (output, context) => {
|
|
3977
|
-
const retVal = (output || [])
|
|
3978
|
-
.filter((e) => e != null)
|
|
3979
|
-
.map((entry) => {
|
|
3980
|
-
if (entry === null) {
|
|
3981
|
-
return null;
|
|
3982
|
-
}
|
|
3983
|
-
return de_DomainNameConfig(entry, context);
|
|
3984
|
-
});
|
|
3985
|
-
return retVal;
|
|
3986
|
-
};
|
|
3987
|
-
const de_DynamodbDataSourceConfig = (output, context) => {
|
|
3988
|
-
return {
|
|
3989
|
-
awsRegion: (0, smithy_client_1.expectString)(output.awsRegion),
|
|
3990
|
-
deltaSyncConfig: output.deltaSyncConfig != null ? de_DeltaSyncConfig(output.deltaSyncConfig, context) : undefined,
|
|
3991
|
-
tableName: (0, smithy_client_1.expectString)(output.tableName),
|
|
3992
|
-
useCallerCredentials: (0, smithy_client_1.expectBoolean)(output.useCallerCredentials),
|
|
3993
|
-
versioned: (0, smithy_client_1.expectBoolean)(output.versioned),
|
|
3994
|
-
};
|
|
3995
|
-
};
|
|
3996
|
-
const de_ElasticsearchDataSourceConfig = (output, context) => {
|
|
3997
|
-
return {
|
|
3998
|
-
awsRegion: (0, smithy_client_1.expectString)(output.awsRegion),
|
|
3999
|
-
endpoint: (0, smithy_client_1.expectString)(output.endpoint),
|
|
4000
|
-
};
|
|
4001
|
-
};
|
|
4002
|
-
const de_ErrorDetail = (output, context) => {
|
|
4003
|
-
return {
|
|
4004
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
4005
|
-
};
|
|
4006
|
-
};
|
|
4007
|
-
const de_EvaluateCodeErrorDetail = (output, context) => {
|
|
4008
|
-
return {
|
|
4009
|
-
codeErrors: output.codeErrors != null ? de_CodeErrors(output.codeErrors, context) : undefined,
|
|
4010
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
4011
|
-
};
|
|
4012
|
-
};
|
|
4013
|
-
const de_EventBridgeDataSourceConfig = (output, context) => {
|
|
4014
|
-
return {
|
|
4015
|
-
eventBusArn: (0, smithy_client_1.expectString)(output.eventBusArn),
|
|
4016
|
-
};
|
|
4017
|
-
};
|
|
4018
|
-
const de_FunctionConfiguration = (output, context) => {
|
|
4019
|
-
return {
|
|
4020
|
-
code: (0, smithy_client_1.expectString)(output.code),
|
|
4021
|
-
dataSourceName: (0, smithy_client_1.expectString)(output.dataSourceName),
|
|
4022
|
-
description: (0, smithy_client_1.expectString)(output.description),
|
|
4023
|
-
functionArn: (0, smithy_client_1.expectString)(output.functionArn),
|
|
4024
|
-
functionId: (0, smithy_client_1.expectString)(output.functionId),
|
|
4025
|
-
functionVersion: (0, smithy_client_1.expectString)(output.functionVersion),
|
|
4026
|
-
maxBatchSize: (0, smithy_client_1.expectInt32)(output.maxBatchSize),
|
|
4027
|
-
name: (0, smithy_client_1.expectString)(output.name),
|
|
4028
|
-
requestMappingTemplate: (0, smithy_client_1.expectString)(output.requestMappingTemplate),
|
|
4029
|
-
responseMappingTemplate: (0, smithy_client_1.expectString)(output.responseMappingTemplate),
|
|
4030
|
-
runtime: output.runtime != null ? de_AppSyncRuntime(output.runtime, context) : undefined,
|
|
4031
|
-
syncConfig: output.syncConfig != null ? de_SyncConfig(output.syncConfig, context) : undefined,
|
|
4032
|
-
};
|
|
4033
|
-
};
|
|
4034
|
-
const de_Functions = (output, context) => {
|
|
4035
|
-
const retVal = (output || [])
|
|
4036
|
-
.filter((e) => e != null)
|
|
4037
|
-
.map((entry) => {
|
|
4038
|
-
if (entry === null) {
|
|
4039
|
-
return null;
|
|
4040
|
-
}
|
|
4041
|
-
return de_FunctionConfiguration(entry, context);
|
|
4042
|
-
});
|
|
4043
|
-
return retVal;
|
|
4044
|
-
};
|
|
4045
|
-
const de_FunctionsIds = (output, context) => {
|
|
4046
|
-
const retVal = (output || [])
|
|
4047
|
-
.filter((e) => e != null)
|
|
4048
|
-
.map((entry) => {
|
|
4049
|
-
if (entry === null) {
|
|
4050
|
-
return null;
|
|
4051
|
-
}
|
|
4052
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
4053
|
-
});
|
|
4054
|
-
return retVal;
|
|
4055
|
-
};
|
|
4056
|
-
const de_GraphqlApi = (output, context) => {
|
|
4057
|
-
return {
|
|
4058
|
-
additionalAuthenticationProviders: output.additionalAuthenticationProviders != null
|
|
4059
|
-
? de_AdditionalAuthenticationProviders(output.additionalAuthenticationProviders, context)
|
|
4060
|
-
: undefined,
|
|
4061
|
-
apiId: (0, smithy_client_1.expectString)(output.apiId),
|
|
4062
|
-
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
4063
|
-
authenticationType: (0, smithy_client_1.expectString)(output.authenticationType),
|
|
4064
|
-
lambdaAuthorizerConfig: output.lambdaAuthorizerConfig != null
|
|
4065
|
-
? de_LambdaAuthorizerConfig(output.lambdaAuthorizerConfig, context)
|
|
4066
|
-
: undefined,
|
|
4067
|
-
logConfig: output.logConfig != null ? de_LogConfig(output.logConfig, context) : undefined,
|
|
4068
|
-
name: (0, smithy_client_1.expectString)(output.name),
|
|
4069
|
-
openIDConnectConfig: output.openIDConnectConfig != null ? de_OpenIDConnectConfig(output.openIDConnectConfig, context) : undefined,
|
|
4070
|
-
tags: output.tags != null ? de_TagMap(output.tags, context) : undefined,
|
|
4071
|
-
uris: output.uris != null ? de_MapOfStringToString(output.uris, context) : undefined,
|
|
4072
|
-
userPoolConfig: output.userPoolConfig != null ? de_UserPoolConfig(output.userPoolConfig, context) : undefined,
|
|
4073
|
-
wafWebAclArn: (0, smithy_client_1.expectString)(output.wafWebAclArn),
|
|
4074
|
-
xrayEnabled: (0, smithy_client_1.expectBoolean)(output.xrayEnabled),
|
|
4075
|
-
};
|
|
4076
|
-
};
|
|
4077
|
-
const de_GraphqlApis = (output, context) => {
|
|
4078
|
-
const retVal = (output || [])
|
|
4079
|
-
.filter((e) => e != null)
|
|
4080
|
-
.map((entry) => {
|
|
4081
|
-
if (entry === null) {
|
|
4082
|
-
return null;
|
|
4083
|
-
}
|
|
4084
|
-
return de_GraphqlApi(entry, context);
|
|
4085
|
-
});
|
|
4086
|
-
return retVal;
|
|
4087
|
-
};
|
|
4088
|
-
const de_HttpDataSourceConfig = (output, context) => {
|
|
4089
|
-
return {
|
|
4090
|
-
authorizationConfig: output.authorizationConfig != null ? de_AuthorizationConfig(output.authorizationConfig, context) : undefined,
|
|
4091
|
-
endpoint: (0, smithy_client_1.expectString)(output.endpoint),
|
|
4092
|
-
};
|
|
4093
|
-
};
|
|
4094
|
-
const de_LambdaAuthorizerConfig = (output, context) => {
|
|
4095
|
-
return {
|
|
4096
|
-
authorizerResultTtlInSeconds: (0, smithy_client_1.expectInt32)(output.authorizerResultTtlInSeconds),
|
|
4097
|
-
authorizerUri: (0, smithy_client_1.expectString)(output.authorizerUri),
|
|
4098
|
-
identityValidationExpression: (0, smithy_client_1.expectString)(output.identityValidationExpression),
|
|
4099
|
-
};
|
|
4100
|
-
};
|
|
4101
|
-
const de_LambdaConflictHandlerConfig = (output, context) => {
|
|
4102
|
-
return {
|
|
4103
|
-
lambdaConflictHandlerArn: (0, smithy_client_1.expectString)(output.lambdaConflictHandlerArn),
|
|
4104
|
-
};
|
|
4105
|
-
};
|
|
4106
|
-
const de_LambdaDataSourceConfig = (output, context) => {
|
|
4107
|
-
return {
|
|
4108
|
-
lambdaFunctionArn: (0, smithy_client_1.expectString)(output.lambdaFunctionArn),
|
|
4109
|
-
};
|
|
4110
|
-
};
|
|
4111
|
-
const de_LogConfig = (output, context) => {
|
|
4112
|
-
return {
|
|
4113
|
-
cloudWatchLogsRoleArn: (0, smithy_client_1.expectString)(output.cloudWatchLogsRoleArn),
|
|
4114
|
-
excludeVerboseContent: (0, smithy_client_1.expectBoolean)(output.excludeVerboseContent),
|
|
4115
|
-
fieldLogLevel: (0, smithy_client_1.expectString)(output.fieldLogLevel),
|
|
4116
|
-
};
|
|
4117
|
-
};
|
|
4118
|
-
const de_Logs = (output, context) => {
|
|
4119
|
-
const retVal = (output || [])
|
|
4120
|
-
.filter((e) => e != null)
|
|
4121
|
-
.map((entry) => {
|
|
4122
|
-
if (entry === null) {
|
|
4123
|
-
return null;
|
|
4124
|
-
}
|
|
4125
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
4126
|
-
});
|
|
4127
|
-
return retVal;
|
|
4128
|
-
};
|
|
4129
|
-
const de_MapOfStringToString = (output, context) => {
|
|
4130
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
4131
|
-
if (value === null) {
|
|
4132
|
-
return acc;
|
|
4133
|
-
}
|
|
4134
|
-
acc[key] = (0, smithy_client_1.expectString)(value);
|
|
4135
|
-
return acc;
|
|
4136
|
-
}, {});
|
|
4137
|
-
};
|
|
4138
|
-
const de_OpenIDConnectConfig = (output, context) => {
|
|
4139
|
-
return {
|
|
4140
|
-
authTTL: (0, smithy_client_1.expectLong)(output.authTTL),
|
|
4141
|
-
clientId: (0, smithy_client_1.expectString)(output.clientId),
|
|
4142
|
-
iatTTL: (0, smithy_client_1.expectLong)(output.iatTTL),
|
|
4143
|
-
issuer: (0, smithy_client_1.expectString)(output.issuer),
|
|
4144
|
-
};
|
|
4145
|
-
};
|
|
4146
|
-
const de_OpenSearchServiceDataSourceConfig = (output, context) => {
|
|
4147
|
-
return {
|
|
4148
|
-
awsRegion: (0, smithy_client_1.expectString)(output.awsRegion),
|
|
4149
|
-
endpoint: (0, smithy_client_1.expectString)(output.endpoint),
|
|
4150
|
-
};
|
|
4151
|
-
};
|
|
4152
|
-
const de_PipelineConfig = (output, context) => {
|
|
4153
|
-
return {
|
|
4154
|
-
functions: output.functions != null ? de_FunctionsIds(output.functions, context) : undefined,
|
|
4155
|
-
};
|
|
4156
|
-
};
|
|
4157
|
-
const de_RdsHttpEndpointConfig = (output, context) => {
|
|
4158
|
-
return {
|
|
4159
|
-
awsRegion: (0, smithy_client_1.expectString)(output.awsRegion),
|
|
4160
|
-
awsSecretStoreArn: (0, smithy_client_1.expectString)(output.awsSecretStoreArn),
|
|
4161
|
-
databaseName: (0, smithy_client_1.expectString)(output.databaseName),
|
|
4162
|
-
dbClusterIdentifier: (0, smithy_client_1.expectString)(output.dbClusterIdentifier),
|
|
4163
|
-
schema: (0, smithy_client_1.expectString)(output.schema),
|
|
4164
|
-
};
|
|
4165
|
-
};
|
|
4166
|
-
const de_RelationalDatabaseDataSourceConfig = (output, context) => {
|
|
4167
|
-
return {
|
|
4168
|
-
rdsHttpEndpointConfig: output.rdsHttpEndpointConfig != null
|
|
4169
|
-
? de_RdsHttpEndpointConfig(output.rdsHttpEndpointConfig, context)
|
|
4170
|
-
: undefined,
|
|
4171
|
-
relationalDatabaseSourceType: (0, smithy_client_1.expectString)(output.relationalDatabaseSourceType),
|
|
4172
|
-
};
|
|
4173
|
-
};
|
|
4174
|
-
const de_Resolver = (output, context) => {
|
|
4175
|
-
return {
|
|
4176
|
-
cachingConfig: output.cachingConfig != null ? de_CachingConfig(output.cachingConfig, context) : undefined,
|
|
4177
|
-
code: (0, smithy_client_1.expectString)(output.code),
|
|
4178
|
-
dataSourceName: (0, smithy_client_1.expectString)(output.dataSourceName),
|
|
4179
|
-
fieldName: (0, smithy_client_1.expectString)(output.fieldName),
|
|
4180
|
-
kind: (0, smithy_client_1.expectString)(output.kind),
|
|
4181
|
-
maxBatchSize: (0, smithy_client_1.expectInt32)(output.maxBatchSize),
|
|
4182
|
-
pipelineConfig: output.pipelineConfig != null ? de_PipelineConfig(output.pipelineConfig, context) : undefined,
|
|
4183
|
-
requestMappingTemplate: (0, smithy_client_1.expectString)(output.requestMappingTemplate),
|
|
4184
|
-
resolverArn: (0, smithy_client_1.expectString)(output.resolverArn),
|
|
4185
|
-
responseMappingTemplate: (0, smithy_client_1.expectString)(output.responseMappingTemplate),
|
|
4186
|
-
runtime: output.runtime != null ? de_AppSyncRuntime(output.runtime, context) : undefined,
|
|
4187
|
-
syncConfig: output.syncConfig != null ? de_SyncConfig(output.syncConfig, context) : undefined,
|
|
4188
|
-
typeName: (0, smithy_client_1.expectString)(output.typeName),
|
|
4189
|
-
};
|
|
4190
|
-
};
|
|
4191
|
-
const de_Resolvers = (output, context) => {
|
|
4192
|
-
const retVal = (output || [])
|
|
4193
|
-
.filter((e) => e != null)
|
|
4194
|
-
.map((entry) => {
|
|
4195
|
-
if (entry === null) {
|
|
4196
|
-
return null;
|
|
4197
|
-
}
|
|
4198
|
-
return de_Resolver(entry, context);
|
|
4199
|
-
});
|
|
4200
|
-
return retVal;
|
|
4201
|
-
};
|
|
4202
|
-
const de_SyncConfig = (output, context) => {
|
|
4203
|
-
return {
|
|
4204
|
-
conflictDetection: (0, smithy_client_1.expectString)(output.conflictDetection),
|
|
4205
|
-
conflictHandler: (0, smithy_client_1.expectString)(output.conflictHandler),
|
|
4206
|
-
lambdaConflictHandlerConfig: output.lambdaConflictHandlerConfig != null
|
|
4207
|
-
? de_LambdaConflictHandlerConfig(output.lambdaConflictHandlerConfig, context)
|
|
4208
|
-
: undefined,
|
|
4209
|
-
};
|
|
4210
|
-
};
|
|
4211
|
-
const de_TagMap = (output, context) => {
|
|
4212
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
4213
|
-
if (value === null) {
|
|
4214
|
-
return acc;
|
|
4215
|
-
}
|
|
4216
|
-
acc[key] = (0, smithy_client_1.expectString)(value);
|
|
4217
|
-
return acc;
|
|
4218
|
-
}, {});
|
|
4219
|
-
};
|
|
4220
|
-
const de_Type = (output, context) => {
|
|
4221
|
-
return {
|
|
4222
|
-
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
4223
|
-
definition: (0, smithy_client_1.expectString)(output.definition),
|
|
4224
|
-
description: (0, smithy_client_1.expectString)(output.description),
|
|
4225
|
-
format: (0, smithy_client_1.expectString)(output.format),
|
|
4226
|
-
name: (0, smithy_client_1.expectString)(output.name),
|
|
4227
|
-
};
|
|
4228
|
-
};
|
|
4229
|
-
const de_TypeList = (output, context) => {
|
|
4230
|
-
const retVal = (output || [])
|
|
4231
|
-
.filter((e) => e != null)
|
|
4232
|
-
.map((entry) => {
|
|
4233
|
-
if (entry === null) {
|
|
4234
|
-
return null;
|
|
4235
|
-
}
|
|
4236
|
-
return de_Type(entry, context);
|
|
4237
|
-
});
|
|
4238
|
-
return retVal;
|
|
4239
|
-
};
|
|
4240
|
-
const de_UserPoolConfig = (output, context) => {
|
|
4241
|
-
return {
|
|
4242
|
-
appIdClientRegex: (0, smithy_client_1.expectString)(output.appIdClientRegex),
|
|
4243
|
-
awsRegion: (0, smithy_client_1.expectString)(output.awsRegion),
|
|
4244
|
-
defaultAction: (0, smithy_client_1.expectString)(output.defaultAction),
|
|
4245
|
-
userPoolId: (0, smithy_client_1.expectString)(output.userPoolId),
|
|
4246
|
-
};
|
|
4247
|
-
};
|
|
4248
3546
|
const deserializeMetadata = (output) => ({
|
|
4249
3547
|
httpStatusCode: output.statusCode,
|
|
4250
3548
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|