@aws-sdk/client-appsync 3.303.0 → 3.309.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/commands/AssociateApiCommand.js +2 -2
- package/dist-cjs/commands/CreateApiCacheCommand.js +2 -2
- package/dist-cjs/commands/CreateApiKeyCommand.js +2 -2
- package/dist-cjs/commands/CreateDataSourceCommand.js +2 -2
- package/dist-cjs/commands/CreateDomainNameCommand.js +2 -2
- package/dist-cjs/commands/CreateFunctionCommand.js +2 -2
- package/dist-cjs/commands/CreateGraphqlApiCommand.js +2 -2
- package/dist-cjs/commands/CreateResolverCommand.js +2 -2
- package/dist-cjs/commands/CreateTypeCommand.js +2 -2
- package/dist-cjs/commands/DeleteApiCacheCommand.js +2 -2
- package/dist-cjs/commands/DeleteApiKeyCommand.js +2 -2
- package/dist-cjs/commands/DeleteDataSourceCommand.js +2 -2
- package/dist-cjs/commands/DeleteDomainNameCommand.js +2 -2
- package/dist-cjs/commands/DeleteFunctionCommand.js +2 -2
- package/dist-cjs/commands/DeleteGraphqlApiCommand.js +2 -2
- package/dist-cjs/commands/DeleteResolverCommand.js +2 -2
- package/dist-cjs/commands/DeleteTypeCommand.js +2 -2
- package/dist-cjs/commands/DisassociateApiCommand.js +2 -2
- package/dist-cjs/commands/EvaluateCodeCommand.js +2 -2
- package/dist-cjs/commands/EvaluateMappingTemplateCommand.js +2 -2
- package/dist-cjs/commands/FlushApiCacheCommand.js +2 -2
- package/dist-cjs/commands/GetApiAssociationCommand.js +2 -2
- package/dist-cjs/commands/GetApiCacheCommand.js +2 -2
- package/dist-cjs/commands/GetDataSourceCommand.js +2 -2
- package/dist-cjs/commands/GetDomainNameCommand.js +2 -2
- package/dist-cjs/commands/GetFunctionCommand.js +2 -2
- package/dist-cjs/commands/GetGraphqlApiCommand.js +2 -2
- package/dist-cjs/commands/GetIntrospectionSchemaCommand.js +2 -2
- package/dist-cjs/commands/GetResolverCommand.js +2 -2
- package/dist-cjs/commands/GetSchemaCreationStatusCommand.js +2 -2
- package/dist-cjs/commands/GetTypeCommand.js +2 -2
- package/dist-cjs/commands/ListApiKeysCommand.js +2 -2
- package/dist-cjs/commands/ListDataSourcesCommand.js +2 -2
- package/dist-cjs/commands/ListDomainNamesCommand.js +2 -2
- package/dist-cjs/commands/ListFunctionsCommand.js +2 -2
- package/dist-cjs/commands/ListGraphqlApisCommand.js +2 -2
- package/dist-cjs/commands/ListResolversByFunctionCommand.js +2 -2
- package/dist-cjs/commands/ListResolversCommand.js +2 -2
- package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-cjs/commands/ListTypesCommand.js +2 -2
- package/dist-cjs/commands/StartSchemaCreationCommand.js +2 -2
- package/dist-cjs/commands/TagResourceCommand.js +2 -2
- package/dist-cjs/commands/UntagResourceCommand.js +2 -2
- package/dist-cjs/commands/UpdateApiCacheCommand.js +2 -2
- package/dist-cjs/commands/UpdateApiKeyCommand.js +2 -2
- package/dist-cjs/commands/UpdateDataSourceCommand.js +2 -2
- package/dist-cjs/commands/UpdateDomainNameCommand.js +2 -2
- package/dist-cjs/commands/UpdateFunctionCommand.js +2 -2
- package/dist-cjs/commands/UpdateGraphqlApiCommand.js +2 -2
- package/dist-cjs/commands/UpdateResolverCommand.js +2 -2
- package/dist-cjs/commands/UpdateTypeCommand.js +2 -2
- package/dist-cjs/protocols/Aws_restJson1.js +763 -813
- package/dist-es/commands/AssociateApiCommand.js +3 -3
- package/dist-es/commands/CreateApiCacheCommand.js +3 -3
- package/dist-es/commands/CreateApiKeyCommand.js +3 -3
- package/dist-es/commands/CreateDataSourceCommand.js +3 -3
- package/dist-es/commands/CreateDomainNameCommand.js +3 -3
- package/dist-es/commands/CreateFunctionCommand.js +3 -3
- package/dist-es/commands/CreateGraphqlApiCommand.js +3 -3
- package/dist-es/commands/CreateResolverCommand.js +3 -3
- package/dist-es/commands/CreateTypeCommand.js +3 -3
- package/dist-es/commands/DeleteApiCacheCommand.js +3 -3
- package/dist-es/commands/DeleteApiKeyCommand.js +3 -3
- package/dist-es/commands/DeleteDataSourceCommand.js +3 -3
- package/dist-es/commands/DeleteDomainNameCommand.js +3 -3
- package/dist-es/commands/DeleteFunctionCommand.js +3 -3
- package/dist-es/commands/DeleteGraphqlApiCommand.js +3 -3
- package/dist-es/commands/DeleteResolverCommand.js +3 -3
- package/dist-es/commands/DeleteTypeCommand.js +3 -3
- package/dist-es/commands/DisassociateApiCommand.js +3 -3
- package/dist-es/commands/EvaluateCodeCommand.js +3 -3
- package/dist-es/commands/EvaluateMappingTemplateCommand.js +3 -3
- package/dist-es/commands/FlushApiCacheCommand.js +3 -3
- package/dist-es/commands/GetApiAssociationCommand.js +3 -3
- package/dist-es/commands/GetApiCacheCommand.js +3 -3
- package/dist-es/commands/GetDataSourceCommand.js +3 -3
- package/dist-es/commands/GetDomainNameCommand.js +3 -3
- package/dist-es/commands/GetFunctionCommand.js +3 -3
- package/dist-es/commands/GetGraphqlApiCommand.js +3 -3
- package/dist-es/commands/GetIntrospectionSchemaCommand.js +3 -3
- package/dist-es/commands/GetResolverCommand.js +3 -3
- package/dist-es/commands/GetSchemaCreationStatusCommand.js +3 -3
- package/dist-es/commands/GetTypeCommand.js +3 -3
- package/dist-es/commands/ListApiKeysCommand.js +3 -3
- package/dist-es/commands/ListDataSourcesCommand.js +3 -3
- package/dist-es/commands/ListDomainNamesCommand.js +3 -3
- package/dist-es/commands/ListFunctionsCommand.js +3 -3
- package/dist-es/commands/ListGraphqlApisCommand.js +3 -3
- package/dist-es/commands/ListResolversByFunctionCommand.js +3 -3
- package/dist-es/commands/ListResolversCommand.js +3 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-es/commands/ListTypesCommand.js +3 -3
- package/dist-es/commands/StartSchemaCreationCommand.js +3 -3
- package/dist-es/commands/TagResourceCommand.js +3 -3
- package/dist-es/commands/UntagResourceCommand.js +3 -3
- package/dist-es/commands/UpdateApiCacheCommand.js +3 -3
- package/dist-es/commands/UpdateApiKeyCommand.js +3 -3
- package/dist-es/commands/UpdateDataSourceCommand.js +3 -3
- package/dist-es/commands/UpdateDomainNameCommand.js +3 -3
- package/dist-es/commands/UpdateFunctionCommand.js +3 -3
- package/dist-es/commands/UpdateGraphqlApiCommand.js +3 -3
- package/dist-es/commands/UpdateResolverCommand.js +3 -3
- package/dist-es/commands/UpdateTypeCommand.js +3 -3
- package/dist-es/protocols/Aws_restJson1.js +658 -708
- package/dist-types/protocols/Aws_restJson1.d.ts +408 -102
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +102 -102
- package/package.json +29 -29
|
@@ -2,7 +2,7 @@ import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
|
2
2
|
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map as __map, resolvedPath as __resolvedPath, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { AppSyncServiceException as __BaseException } from "../models/AppSyncServiceException";
|
|
4
4
|
import { AccessDeniedException, ApiKeyLimitExceededException, ApiKeyValidityOutOfBoundsException, ApiLimitExceededException, BadRequestException, ConcurrentModificationException, GraphQLSchemaException, InternalFailureException, LimitExceededException, NotFoundException, UnauthorizedException, } from "../models/models_0";
|
|
5
|
-
export const
|
|
5
|
+
export const se_AssociateApiCommand = async (input, context) => {
|
|
6
6
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
7
7
|
const headers = {
|
|
8
8
|
"content-type": "application/json",
|
|
@@ -24,7 +24,7 @@ export const serializeAws_restJson1AssociateApiCommand = async (input, context)
|
|
|
24
24
|
body,
|
|
25
25
|
});
|
|
26
26
|
};
|
|
27
|
-
export const
|
|
27
|
+
export const se_CreateApiCacheCommand = async (input, context) => {
|
|
28
28
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
29
29
|
const headers = {
|
|
30
30
|
"content-type": "application/json",
|
|
@@ -49,7 +49,7 @@ export const serializeAws_restJson1CreateApiCacheCommand = async (input, context
|
|
|
49
49
|
body,
|
|
50
50
|
});
|
|
51
51
|
};
|
|
52
|
-
export const
|
|
52
|
+
export const se_CreateApiKeyCommand = async (input, context) => {
|
|
53
53
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
54
54
|
const headers = {
|
|
55
55
|
"content-type": "application/json",
|
|
@@ -71,7 +71,7 @@ export const serializeAws_restJson1CreateApiKeyCommand = async (input, context)
|
|
|
71
71
|
body,
|
|
72
72
|
});
|
|
73
73
|
};
|
|
74
|
-
export const
|
|
74
|
+
export const se_CreateDataSourceCommand = async (input, context) => {
|
|
75
75
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
76
76
|
const headers = {
|
|
77
77
|
"content-type": "application/json",
|
|
@@ -81,27 +81,21 @@ export const serializeAws_restJson1CreateDataSourceCommand = async (input, conte
|
|
|
81
81
|
let body;
|
|
82
82
|
body = JSON.stringify({
|
|
83
83
|
...(input.description != null && { description: input.description }),
|
|
84
|
-
...(input.dynamodbConfig != null && {
|
|
85
|
-
dynamodbConfig: serializeAws_restJson1DynamodbDataSourceConfig(input.dynamodbConfig, context),
|
|
86
|
-
}),
|
|
84
|
+
...(input.dynamodbConfig != null && { dynamodbConfig: se_DynamodbDataSourceConfig(input.dynamodbConfig, context) }),
|
|
87
85
|
...(input.elasticsearchConfig != null && {
|
|
88
|
-
elasticsearchConfig:
|
|
86
|
+
elasticsearchConfig: se_ElasticsearchDataSourceConfig(input.elasticsearchConfig, context),
|
|
89
87
|
}),
|
|
90
88
|
...(input.eventBridgeConfig != null && {
|
|
91
|
-
eventBridgeConfig:
|
|
92
|
-
}),
|
|
93
|
-
...(input.httpConfig != null && {
|
|
94
|
-
httpConfig: serializeAws_restJson1HttpDataSourceConfig(input.httpConfig, context),
|
|
95
|
-
}),
|
|
96
|
-
...(input.lambdaConfig != null && {
|
|
97
|
-
lambdaConfig: serializeAws_restJson1LambdaDataSourceConfig(input.lambdaConfig, context),
|
|
89
|
+
eventBridgeConfig: se_EventBridgeDataSourceConfig(input.eventBridgeConfig, context),
|
|
98
90
|
}),
|
|
91
|
+
...(input.httpConfig != null && { httpConfig: se_HttpDataSourceConfig(input.httpConfig, context) }),
|
|
92
|
+
...(input.lambdaConfig != null && { lambdaConfig: se_LambdaDataSourceConfig(input.lambdaConfig, context) }),
|
|
99
93
|
...(input.name != null && { name: input.name }),
|
|
100
94
|
...(input.openSearchServiceConfig != null && {
|
|
101
|
-
openSearchServiceConfig:
|
|
95
|
+
openSearchServiceConfig: se_OpenSearchServiceDataSourceConfig(input.openSearchServiceConfig, context),
|
|
102
96
|
}),
|
|
103
97
|
...(input.relationalDatabaseConfig != null && {
|
|
104
|
-
relationalDatabaseConfig:
|
|
98
|
+
relationalDatabaseConfig: se_RelationalDatabaseDataSourceConfig(input.relationalDatabaseConfig, context),
|
|
105
99
|
}),
|
|
106
100
|
...(input.serviceRoleArn != null && { serviceRoleArn: input.serviceRoleArn }),
|
|
107
101
|
...(input.type != null && { type: input.type }),
|
|
@@ -116,7 +110,7 @@ export const serializeAws_restJson1CreateDataSourceCommand = async (input, conte
|
|
|
116
110
|
body,
|
|
117
111
|
});
|
|
118
112
|
};
|
|
119
|
-
export const
|
|
113
|
+
export const se_CreateDomainNameCommand = async (input, context) => {
|
|
120
114
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
121
115
|
const headers = {
|
|
122
116
|
"content-type": "application/json",
|
|
@@ -138,7 +132,7 @@ export const serializeAws_restJson1CreateDomainNameCommand = async (input, conte
|
|
|
138
132
|
body,
|
|
139
133
|
});
|
|
140
134
|
};
|
|
141
|
-
export const
|
|
135
|
+
export const se_CreateFunctionCommand = async (input, context) => {
|
|
142
136
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
143
137
|
const headers = {
|
|
144
138
|
"content-type": "application/json",
|
|
@@ -155,8 +149,8 @@ export const serializeAws_restJson1CreateFunctionCommand = async (input, context
|
|
|
155
149
|
...(input.name != null && { name: input.name }),
|
|
156
150
|
...(input.requestMappingTemplate != null && { requestMappingTemplate: input.requestMappingTemplate }),
|
|
157
151
|
...(input.responseMappingTemplate != null && { responseMappingTemplate: input.responseMappingTemplate }),
|
|
158
|
-
...(input.runtime != null && { runtime:
|
|
159
|
-
...(input.syncConfig != null && { syncConfig:
|
|
152
|
+
...(input.runtime != null && { runtime: se_AppSyncRuntime(input.runtime, context) }),
|
|
153
|
+
...(input.syncConfig != null && { syncConfig: se_SyncConfig(input.syncConfig, context) }),
|
|
160
154
|
});
|
|
161
155
|
return new __HttpRequest({
|
|
162
156
|
protocol,
|
|
@@ -168,7 +162,7 @@ export const serializeAws_restJson1CreateFunctionCommand = async (input, context
|
|
|
168
162
|
body,
|
|
169
163
|
});
|
|
170
164
|
};
|
|
171
|
-
export const
|
|
165
|
+
export const se_CreateGraphqlApiCommand = async (input, context) => {
|
|
172
166
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
173
167
|
const headers = {
|
|
174
168
|
"content-type": "application/json",
|
|
@@ -177,21 +171,19 @@ export const serializeAws_restJson1CreateGraphqlApiCommand = async (input, conte
|
|
|
177
171
|
let body;
|
|
178
172
|
body = JSON.stringify({
|
|
179
173
|
...(input.additionalAuthenticationProviders != null && {
|
|
180
|
-
additionalAuthenticationProviders:
|
|
174
|
+
additionalAuthenticationProviders: se_AdditionalAuthenticationProviders(input.additionalAuthenticationProviders, context),
|
|
181
175
|
}),
|
|
182
176
|
...(input.authenticationType != null && { authenticationType: input.authenticationType }),
|
|
183
177
|
...(input.lambdaAuthorizerConfig != null && {
|
|
184
|
-
lambdaAuthorizerConfig:
|
|
178
|
+
lambdaAuthorizerConfig: se_LambdaAuthorizerConfig(input.lambdaAuthorizerConfig, context),
|
|
185
179
|
}),
|
|
186
|
-
...(input.logConfig != null && { logConfig:
|
|
180
|
+
...(input.logConfig != null && { logConfig: se_LogConfig(input.logConfig, context) }),
|
|
187
181
|
...(input.name != null && { name: input.name }),
|
|
188
182
|
...(input.openIDConnectConfig != null && {
|
|
189
|
-
openIDConnectConfig:
|
|
190
|
-
}),
|
|
191
|
-
...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
|
|
192
|
-
...(input.userPoolConfig != null && {
|
|
193
|
-
userPoolConfig: serializeAws_restJson1UserPoolConfig(input.userPoolConfig, context),
|
|
183
|
+
openIDConnectConfig: se_OpenIDConnectConfig(input.openIDConnectConfig, context),
|
|
194
184
|
}),
|
|
185
|
+
...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
|
|
186
|
+
...(input.userPoolConfig != null && { userPoolConfig: se_UserPoolConfig(input.userPoolConfig, context) }),
|
|
195
187
|
...(input.xrayEnabled != null && { xrayEnabled: input.xrayEnabled }),
|
|
196
188
|
});
|
|
197
189
|
return new __HttpRequest({
|
|
@@ -204,7 +196,7 @@ export const serializeAws_restJson1CreateGraphqlApiCommand = async (input, conte
|
|
|
204
196
|
body,
|
|
205
197
|
});
|
|
206
198
|
};
|
|
207
|
-
export const
|
|
199
|
+
export const se_CreateResolverCommand = async (input, context) => {
|
|
208
200
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
209
201
|
const headers = {
|
|
210
202
|
"content-type": "application/json",
|
|
@@ -215,21 +207,17 @@ export const serializeAws_restJson1CreateResolverCommand = async (input, context
|
|
|
215
207
|
resolvedPath = __resolvedPath(resolvedPath, input, "typeName", () => input.typeName, "{typeName}", false);
|
|
216
208
|
let body;
|
|
217
209
|
body = JSON.stringify({
|
|
218
|
-
...(input.cachingConfig != null && {
|
|
219
|
-
cachingConfig: serializeAws_restJson1CachingConfig(input.cachingConfig, context),
|
|
220
|
-
}),
|
|
210
|
+
...(input.cachingConfig != null && { cachingConfig: se_CachingConfig(input.cachingConfig, context) }),
|
|
221
211
|
...(input.code != null && { code: input.code }),
|
|
222
212
|
...(input.dataSourceName != null && { dataSourceName: input.dataSourceName }),
|
|
223
213
|
...(input.fieldName != null && { fieldName: input.fieldName }),
|
|
224
214
|
...(input.kind != null && { kind: input.kind }),
|
|
225
215
|
...(input.maxBatchSize != null && { maxBatchSize: input.maxBatchSize }),
|
|
226
|
-
...(input.pipelineConfig != null && {
|
|
227
|
-
pipelineConfig: serializeAws_restJson1PipelineConfig(input.pipelineConfig, context),
|
|
228
|
-
}),
|
|
216
|
+
...(input.pipelineConfig != null && { pipelineConfig: se_PipelineConfig(input.pipelineConfig, context) }),
|
|
229
217
|
...(input.requestMappingTemplate != null && { requestMappingTemplate: input.requestMappingTemplate }),
|
|
230
218
|
...(input.responseMappingTemplate != null && { responseMappingTemplate: input.responseMappingTemplate }),
|
|
231
|
-
...(input.runtime != null && { runtime:
|
|
232
|
-
...(input.syncConfig != null && { syncConfig:
|
|
219
|
+
...(input.runtime != null && { runtime: se_AppSyncRuntime(input.runtime, context) }),
|
|
220
|
+
...(input.syncConfig != null && { syncConfig: se_SyncConfig(input.syncConfig, context) }),
|
|
233
221
|
});
|
|
234
222
|
return new __HttpRequest({
|
|
235
223
|
protocol,
|
|
@@ -241,7 +229,7 @@ export const serializeAws_restJson1CreateResolverCommand = async (input, context
|
|
|
241
229
|
body,
|
|
242
230
|
});
|
|
243
231
|
};
|
|
244
|
-
export const
|
|
232
|
+
export const se_CreateTypeCommand = async (input, context) => {
|
|
245
233
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
246
234
|
const headers = {
|
|
247
235
|
"content-type": "application/json",
|
|
@@ -263,7 +251,7 @@ export const serializeAws_restJson1CreateTypeCommand = async (input, context) =>
|
|
|
263
251
|
body,
|
|
264
252
|
});
|
|
265
253
|
};
|
|
266
|
-
export const
|
|
254
|
+
export const se_DeleteApiCacheCommand = async (input, context) => {
|
|
267
255
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
268
256
|
const headers = {};
|
|
269
257
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/ApiCaches";
|
|
@@ -279,7 +267,7 @@ export const serializeAws_restJson1DeleteApiCacheCommand = async (input, context
|
|
|
279
267
|
body,
|
|
280
268
|
});
|
|
281
269
|
};
|
|
282
|
-
export const
|
|
270
|
+
export const se_DeleteApiKeyCommand = async (input, context) => {
|
|
283
271
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
284
272
|
const headers = {};
|
|
285
273
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/apikeys/{id}";
|
|
@@ -296,7 +284,7 @@ export const serializeAws_restJson1DeleteApiKeyCommand = async (input, context)
|
|
|
296
284
|
body,
|
|
297
285
|
});
|
|
298
286
|
};
|
|
299
|
-
export const
|
|
287
|
+
export const se_DeleteDataSourceCommand = async (input, context) => {
|
|
300
288
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
301
289
|
const headers = {};
|
|
302
290
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/datasources/{name}";
|
|
@@ -313,7 +301,7 @@ export const serializeAws_restJson1DeleteDataSourceCommand = async (input, conte
|
|
|
313
301
|
body,
|
|
314
302
|
});
|
|
315
303
|
};
|
|
316
|
-
export const
|
|
304
|
+
export const se_DeleteDomainNameCommand = async (input, context) => {
|
|
317
305
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
318
306
|
const headers = {};
|
|
319
307
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/domainnames/{domainName}";
|
|
@@ -329,7 +317,7 @@ export const serializeAws_restJson1DeleteDomainNameCommand = async (input, conte
|
|
|
329
317
|
body,
|
|
330
318
|
});
|
|
331
319
|
};
|
|
332
|
-
export const
|
|
320
|
+
export const se_DeleteFunctionCommand = async (input, context) => {
|
|
333
321
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
334
322
|
const headers = {};
|
|
335
323
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/functions/{functionId}";
|
|
@@ -346,7 +334,7 @@ export const serializeAws_restJson1DeleteFunctionCommand = async (input, context
|
|
|
346
334
|
body,
|
|
347
335
|
});
|
|
348
336
|
};
|
|
349
|
-
export const
|
|
337
|
+
export const se_DeleteGraphqlApiCommand = async (input, context) => {
|
|
350
338
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
351
339
|
const headers = {};
|
|
352
340
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}";
|
|
@@ -362,7 +350,7 @@ export const serializeAws_restJson1DeleteGraphqlApiCommand = async (input, conte
|
|
|
362
350
|
body,
|
|
363
351
|
});
|
|
364
352
|
};
|
|
365
|
-
export const
|
|
353
|
+
export const se_DeleteResolverCommand = async (input, context) => {
|
|
366
354
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
367
355
|
const headers = {};
|
|
368
356
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -381,7 +369,7 @@ export const serializeAws_restJson1DeleteResolverCommand = async (input, context
|
|
|
381
369
|
body,
|
|
382
370
|
});
|
|
383
371
|
};
|
|
384
|
-
export const
|
|
372
|
+
export const se_DeleteTypeCommand = async (input, context) => {
|
|
385
373
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
386
374
|
const headers = {};
|
|
387
375
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/types/{typeName}";
|
|
@@ -398,7 +386,7 @@ export const serializeAws_restJson1DeleteTypeCommand = async (input, context) =>
|
|
|
398
386
|
body,
|
|
399
387
|
});
|
|
400
388
|
};
|
|
401
|
-
export const
|
|
389
|
+
export const se_DisassociateApiCommand = async (input, context) => {
|
|
402
390
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
403
391
|
const headers = {};
|
|
404
392
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -415,7 +403,7 @@ export const serializeAws_restJson1DisassociateApiCommand = async (input, contex
|
|
|
415
403
|
body,
|
|
416
404
|
});
|
|
417
405
|
};
|
|
418
|
-
export const
|
|
406
|
+
export const se_EvaluateCodeCommand = async (input, context) => {
|
|
419
407
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
420
408
|
const headers = {
|
|
421
409
|
"content-type": "application/json",
|
|
@@ -426,7 +414,7 @@ export const serializeAws_restJson1EvaluateCodeCommand = async (input, context)
|
|
|
426
414
|
...(input.code != null && { code: input.code }),
|
|
427
415
|
...(input.context != null && { context: input.context }),
|
|
428
416
|
...(input.function != null && { function: input.function }),
|
|
429
|
-
...(input.runtime != null && { runtime:
|
|
417
|
+
...(input.runtime != null && { runtime: se_AppSyncRuntime(input.runtime, context) }),
|
|
430
418
|
});
|
|
431
419
|
return new __HttpRequest({
|
|
432
420
|
protocol,
|
|
@@ -438,7 +426,7 @@ export const serializeAws_restJson1EvaluateCodeCommand = async (input, context)
|
|
|
438
426
|
body,
|
|
439
427
|
});
|
|
440
428
|
};
|
|
441
|
-
export const
|
|
429
|
+
export const se_EvaluateMappingTemplateCommand = async (input, context) => {
|
|
442
430
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
443
431
|
const headers = {
|
|
444
432
|
"content-type": "application/json",
|
|
@@ -459,7 +447,7 @@ export const serializeAws_restJson1EvaluateMappingTemplateCommand = async (input
|
|
|
459
447
|
body,
|
|
460
448
|
});
|
|
461
449
|
};
|
|
462
|
-
export const
|
|
450
|
+
export const se_FlushApiCacheCommand = async (input, context) => {
|
|
463
451
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
464
452
|
const headers = {};
|
|
465
453
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/FlushCache";
|
|
@@ -475,7 +463,7 @@ export const serializeAws_restJson1FlushApiCacheCommand = async (input, context)
|
|
|
475
463
|
body,
|
|
476
464
|
});
|
|
477
465
|
};
|
|
478
|
-
export const
|
|
466
|
+
export const se_GetApiAssociationCommand = async (input, context) => {
|
|
479
467
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
480
468
|
const headers = {};
|
|
481
469
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -492,7 +480,7 @@ export const serializeAws_restJson1GetApiAssociationCommand = async (input, cont
|
|
|
492
480
|
body,
|
|
493
481
|
});
|
|
494
482
|
};
|
|
495
|
-
export const
|
|
483
|
+
export const se_GetApiCacheCommand = async (input, context) => {
|
|
496
484
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
497
485
|
const headers = {};
|
|
498
486
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/ApiCaches";
|
|
@@ -508,7 +496,7 @@ export const serializeAws_restJson1GetApiCacheCommand = async (input, context) =
|
|
|
508
496
|
body,
|
|
509
497
|
});
|
|
510
498
|
};
|
|
511
|
-
export const
|
|
499
|
+
export const se_GetDataSourceCommand = async (input, context) => {
|
|
512
500
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
513
501
|
const headers = {};
|
|
514
502
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/datasources/{name}";
|
|
@@ -525,7 +513,7 @@ export const serializeAws_restJson1GetDataSourceCommand = async (input, context)
|
|
|
525
513
|
body,
|
|
526
514
|
});
|
|
527
515
|
};
|
|
528
|
-
export const
|
|
516
|
+
export const se_GetDomainNameCommand = async (input, context) => {
|
|
529
517
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
530
518
|
const headers = {};
|
|
531
519
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/domainnames/{domainName}";
|
|
@@ -541,7 +529,7 @@ export const serializeAws_restJson1GetDomainNameCommand = async (input, context)
|
|
|
541
529
|
body,
|
|
542
530
|
});
|
|
543
531
|
};
|
|
544
|
-
export const
|
|
532
|
+
export const se_GetFunctionCommand = async (input, context) => {
|
|
545
533
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
546
534
|
const headers = {};
|
|
547
535
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/functions/{functionId}";
|
|
@@ -558,7 +546,7 @@ export const serializeAws_restJson1GetFunctionCommand = async (input, context) =
|
|
|
558
546
|
body,
|
|
559
547
|
});
|
|
560
548
|
};
|
|
561
|
-
export const
|
|
549
|
+
export const se_GetGraphqlApiCommand = async (input, context) => {
|
|
562
550
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
563
551
|
const headers = {};
|
|
564
552
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}";
|
|
@@ -574,7 +562,7 @@ export const serializeAws_restJson1GetGraphqlApiCommand = async (input, context)
|
|
|
574
562
|
body,
|
|
575
563
|
});
|
|
576
564
|
};
|
|
577
|
-
export const
|
|
565
|
+
export const se_GetIntrospectionSchemaCommand = async (input, context) => {
|
|
578
566
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
579
567
|
const headers = {};
|
|
580
568
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/schema";
|
|
@@ -595,7 +583,7 @@ export const serializeAws_restJson1GetIntrospectionSchemaCommand = async (input,
|
|
|
595
583
|
body,
|
|
596
584
|
});
|
|
597
585
|
};
|
|
598
|
-
export const
|
|
586
|
+
export const se_GetResolverCommand = async (input, context) => {
|
|
599
587
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
600
588
|
const headers = {};
|
|
601
589
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -614,7 +602,7 @@ export const serializeAws_restJson1GetResolverCommand = async (input, context) =
|
|
|
614
602
|
body,
|
|
615
603
|
});
|
|
616
604
|
};
|
|
617
|
-
export const
|
|
605
|
+
export const se_GetSchemaCreationStatusCommand = async (input, context) => {
|
|
618
606
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
619
607
|
const headers = {};
|
|
620
608
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/schemacreation";
|
|
@@ -630,7 +618,7 @@ export const serializeAws_restJson1GetSchemaCreationStatusCommand = async (input
|
|
|
630
618
|
body,
|
|
631
619
|
});
|
|
632
620
|
};
|
|
633
|
-
export const
|
|
621
|
+
export const se_GetTypeCommand = async (input, context) => {
|
|
634
622
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
635
623
|
const headers = {};
|
|
636
624
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/types/{typeName}";
|
|
@@ -651,7 +639,7 @@ export const serializeAws_restJson1GetTypeCommand = async (input, context) => {
|
|
|
651
639
|
body,
|
|
652
640
|
});
|
|
653
641
|
};
|
|
654
|
-
export const
|
|
642
|
+
export const se_ListApiKeysCommand = async (input, context) => {
|
|
655
643
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
656
644
|
const headers = {};
|
|
657
645
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/apikeys";
|
|
@@ -672,7 +660,7 @@ export const serializeAws_restJson1ListApiKeysCommand = async (input, context) =
|
|
|
672
660
|
body,
|
|
673
661
|
});
|
|
674
662
|
};
|
|
675
|
-
export const
|
|
663
|
+
export const se_ListDataSourcesCommand = async (input, context) => {
|
|
676
664
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
677
665
|
const headers = {};
|
|
678
666
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/datasources";
|
|
@@ -693,7 +681,7 @@ export const serializeAws_restJson1ListDataSourcesCommand = async (input, contex
|
|
|
693
681
|
body,
|
|
694
682
|
});
|
|
695
683
|
};
|
|
696
|
-
export const
|
|
684
|
+
export const se_ListDomainNamesCommand = async (input, context) => {
|
|
697
685
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
698
686
|
const headers = {};
|
|
699
687
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/domainnames";
|
|
@@ -713,7 +701,7 @@ export const serializeAws_restJson1ListDomainNamesCommand = async (input, contex
|
|
|
713
701
|
body,
|
|
714
702
|
});
|
|
715
703
|
};
|
|
716
|
-
export const
|
|
704
|
+
export const se_ListFunctionsCommand = async (input, context) => {
|
|
717
705
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
718
706
|
const headers = {};
|
|
719
707
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/functions";
|
|
@@ -734,7 +722,7 @@ export const serializeAws_restJson1ListFunctionsCommand = async (input, context)
|
|
|
734
722
|
body,
|
|
735
723
|
});
|
|
736
724
|
};
|
|
737
|
-
export const
|
|
725
|
+
export const se_ListGraphqlApisCommand = async (input, context) => {
|
|
738
726
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
739
727
|
const headers = {};
|
|
740
728
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis";
|
|
@@ -754,7 +742,7 @@ export const serializeAws_restJson1ListGraphqlApisCommand = async (input, contex
|
|
|
754
742
|
body,
|
|
755
743
|
});
|
|
756
744
|
};
|
|
757
|
-
export const
|
|
745
|
+
export const se_ListResolversCommand = async (input, context) => {
|
|
758
746
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
759
747
|
const headers = {};
|
|
760
748
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -777,7 +765,7 @@ export const serializeAws_restJson1ListResolversCommand = async (input, context)
|
|
|
777
765
|
body,
|
|
778
766
|
});
|
|
779
767
|
};
|
|
780
|
-
export const
|
|
768
|
+
export const se_ListResolversByFunctionCommand = async (input, context) => {
|
|
781
769
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
782
770
|
const headers = {};
|
|
783
771
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -800,7 +788,7 @@ export const serializeAws_restJson1ListResolversByFunctionCommand = async (input
|
|
|
800
788
|
body,
|
|
801
789
|
});
|
|
802
790
|
};
|
|
803
|
-
export const
|
|
791
|
+
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
804
792
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
805
793
|
const headers = {};
|
|
806
794
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/tags/{resourceArn}";
|
|
@@ -816,7 +804,7 @@ export const serializeAws_restJson1ListTagsForResourceCommand = async (input, co
|
|
|
816
804
|
body,
|
|
817
805
|
});
|
|
818
806
|
};
|
|
819
|
-
export const
|
|
807
|
+
export const se_ListTypesCommand = async (input, context) => {
|
|
820
808
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
821
809
|
const headers = {};
|
|
822
810
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/types";
|
|
@@ -838,7 +826,7 @@ export const serializeAws_restJson1ListTypesCommand = async (input, context) =>
|
|
|
838
826
|
body,
|
|
839
827
|
});
|
|
840
828
|
};
|
|
841
|
-
export const
|
|
829
|
+
export const se_StartSchemaCreationCommand = async (input, context) => {
|
|
842
830
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
843
831
|
const headers = {
|
|
844
832
|
"content-type": "application/json",
|
|
@@ -859,7 +847,7 @@ export const serializeAws_restJson1StartSchemaCreationCommand = async (input, co
|
|
|
859
847
|
body,
|
|
860
848
|
});
|
|
861
849
|
};
|
|
862
|
-
export const
|
|
850
|
+
export const se_TagResourceCommand = async (input, context) => {
|
|
863
851
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
864
852
|
const headers = {
|
|
865
853
|
"content-type": "application/json",
|
|
@@ -868,7 +856,7 @@ export const serializeAws_restJson1TagResourceCommand = async (input, context) =
|
|
|
868
856
|
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
869
857
|
let body;
|
|
870
858
|
body = JSON.stringify({
|
|
871
|
-
...(input.tags != null && { tags:
|
|
859
|
+
...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
|
|
872
860
|
});
|
|
873
861
|
return new __HttpRequest({
|
|
874
862
|
protocol,
|
|
@@ -880,7 +868,7 @@ export const serializeAws_restJson1TagResourceCommand = async (input, context) =
|
|
|
880
868
|
body,
|
|
881
869
|
});
|
|
882
870
|
};
|
|
883
|
-
export const
|
|
871
|
+
export const se_UntagResourceCommand = async (input, context) => {
|
|
884
872
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
885
873
|
const headers = {};
|
|
886
874
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/tags/{resourceArn}";
|
|
@@ -903,7 +891,7 @@ export const serializeAws_restJson1UntagResourceCommand = async (input, context)
|
|
|
903
891
|
body,
|
|
904
892
|
});
|
|
905
893
|
};
|
|
906
|
-
export const
|
|
894
|
+
export const se_UpdateApiCacheCommand = async (input, context) => {
|
|
907
895
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
908
896
|
const headers = {
|
|
909
897
|
"content-type": "application/json",
|
|
@@ -926,7 +914,7 @@ export const serializeAws_restJson1UpdateApiCacheCommand = async (input, context
|
|
|
926
914
|
body,
|
|
927
915
|
});
|
|
928
916
|
};
|
|
929
|
-
export const
|
|
917
|
+
export const se_UpdateApiKeyCommand = async (input, context) => {
|
|
930
918
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
931
919
|
const headers = {
|
|
932
920
|
"content-type": "application/json",
|
|
@@ -949,7 +937,7 @@ export const serializeAws_restJson1UpdateApiKeyCommand = async (input, context)
|
|
|
949
937
|
body,
|
|
950
938
|
});
|
|
951
939
|
};
|
|
952
|
-
export const
|
|
940
|
+
export const se_UpdateDataSourceCommand = async (input, context) => {
|
|
953
941
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
954
942
|
const headers = {
|
|
955
943
|
"content-type": "application/json",
|
|
@@ -960,26 +948,20 @@ export const serializeAws_restJson1UpdateDataSourceCommand = async (input, conte
|
|
|
960
948
|
let body;
|
|
961
949
|
body = JSON.stringify({
|
|
962
950
|
...(input.description != null && { description: input.description }),
|
|
963
|
-
...(input.dynamodbConfig != null && {
|
|
964
|
-
dynamodbConfig: serializeAws_restJson1DynamodbDataSourceConfig(input.dynamodbConfig, context),
|
|
965
|
-
}),
|
|
951
|
+
...(input.dynamodbConfig != null && { dynamodbConfig: se_DynamodbDataSourceConfig(input.dynamodbConfig, context) }),
|
|
966
952
|
...(input.elasticsearchConfig != null && {
|
|
967
|
-
elasticsearchConfig:
|
|
953
|
+
elasticsearchConfig: se_ElasticsearchDataSourceConfig(input.elasticsearchConfig, context),
|
|
968
954
|
}),
|
|
969
955
|
...(input.eventBridgeConfig != null && {
|
|
970
|
-
eventBridgeConfig:
|
|
971
|
-
}),
|
|
972
|
-
...(input.httpConfig != null && {
|
|
973
|
-
httpConfig: serializeAws_restJson1HttpDataSourceConfig(input.httpConfig, context),
|
|
974
|
-
}),
|
|
975
|
-
...(input.lambdaConfig != null && {
|
|
976
|
-
lambdaConfig: serializeAws_restJson1LambdaDataSourceConfig(input.lambdaConfig, context),
|
|
956
|
+
eventBridgeConfig: se_EventBridgeDataSourceConfig(input.eventBridgeConfig, context),
|
|
977
957
|
}),
|
|
958
|
+
...(input.httpConfig != null && { httpConfig: se_HttpDataSourceConfig(input.httpConfig, context) }),
|
|
959
|
+
...(input.lambdaConfig != null && { lambdaConfig: se_LambdaDataSourceConfig(input.lambdaConfig, context) }),
|
|
978
960
|
...(input.openSearchServiceConfig != null && {
|
|
979
|
-
openSearchServiceConfig:
|
|
961
|
+
openSearchServiceConfig: se_OpenSearchServiceDataSourceConfig(input.openSearchServiceConfig, context),
|
|
980
962
|
}),
|
|
981
963
|
...(input.relationalDatabaseConfig != null && {
|
|
982
|
-
relationalDatabaseConfig:
|
|
964
|
+
relationalDatabaseConfig: se_RelationalDatabaseDataSourceConfig(input.relationalDatabaseConfig, context),
|
|
983
965
|
}),
|
|
984
966
|
...(input.serviceRoleArn != null && { serviceRoleArn: input.serviceRoleArn }),
|
|
985
967
|
...(input.type != null && { type: input.type }),
|
|
@@ -994,7 +976,7 @@ export const serializeAws_restJson1UpdateDataSourceCommand = async (input, conte
|
|
|
994
976
|
body,
|
|
995
977
|
});
|
|
996
978
|
};
|
|
997
|
-
export const
|
|
979
|
+
export const se_UpdateDomainNameCommand = async (input, context) => {
|
|
998
980
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
999
981
|
const headers = {
|
|
1000
982
|
"content-type": "application/json",
|
|
@@ -1015,7 +997,7 @@ export const serializeAws_restJson1UpdateDomainNameCommand = async (input, conte
|
|
|
1015
997
|
body,
|
|
1016
998
|
});
|
|
1017
999
|
};
|
|
1018
|
-
export const
|
|
1000
|
+
export const se_UpdateFunctionCommand = async (input, context) => {
|
|
1019
1001
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1020
1002
|
const headers = {
|
|
1021
1003
|
"content-type": "application/json",
|
|
@@ -1033,8 +1015,8 @@ export const serializeAws_restJson1UpdateFunctionCommand = async (input, context
|
|
|
1033
1015
|
...(input.name != null && { name: input.name }),
|
|
1034
1016
|
...(input.requestMappingTemplate != null && { requestMappingTemplate: input.requestMappingTemplate }),
|
|
1035
1017
|
...(input.responseMappingTemplate != null && { responseMappingTemplate: input.responseMappingTemplate }),
|
|
1036
|
-
...(input.runtime != null && { runtime:
|
|
1037
|
-
...(input.syncConfig != null && { syncConfig:
|
|
1018
|
+
...(input.runtime != null && { runtime: se_AppSyncRuntime(input.runtime, context) }),
|
|
1019
|
+
...(input.syncConfig != null && { syncConfig: se_SyncConfig(input.syncConfig, context) }),
|
|
1038
1020
|
});
|
|
1039
1021
|
return new __HttpRequest({
|
|
1040
1022
|
protocol,
|
|
@@ -1046,7 +1028,7 @@ export const serializeAws_restJson1UpdateFunctionCommand = async (input, context
|
|
|
1046
1028
|
body,
|
|
1047
1029
|
});
|
|
1048
1030
|
};
|
|
1049
|
-
export const
|
|
1031
|
+
export const se_UpdateGraphqlApiCommand = async (input, context) => {
|
|
1050
1032
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1051
1033
|
const headers = {
|
|
1052
1034
|
"content-type": "application/json",
|
|
@@ -1056,20 +1038,18 @@ export const serializeAws_restJson1UpdateGraphqlApiCommand = async (input, conte
|
|
|
1056
1038
|
let body;
|
|
1057
1039
|
body = JSON.stringify({
|
|
1058
1040
|
...(input.additionalAuthenticationProviders != null && {
|
|
1059
|
-
additionalAuthenticationProviders:
|
|
1041
|
+
additionalAuthenticationProviders: se_AdditionalAuthenticationProviders(input.additionalAuthenticationProviders, context),
|
|
1060
1042
|
}),
|
|
1061
1043
|
...(input.authenticationType != null && { authenticationType: input.authenticationType }),
|
|
1062
1044
|
...(input.lambdaAuthorizerConfig != null && {
|
|
1063
|
-
lambdaAuthorizerConfig:
|
|
1045
|
+
lambdaAuthorizerConfig: se_LambdaAuthorizerConfig(input.lambdaAuthorizerConfig, context),
|
|
1064
1046
|
}),
|
|
1065
|
-
...(input.logConfig != null && { logConfig:
|
|
1047
|
+
...(input.logConfig != null && { logConfig: se_LogConfig(input.logConfig, context) }),
|
|
1066
1048
|
...(input.name != null && { name: input.name }),
|
|
1067
1049
|
...(input.openIDConnectConfig != null && {
|
|
1068
|
-
openIDConnectConfig:
|
|
1069
|
-
}),
|
|
1070
|
-
...(input.userPoolConfig != null && {
|
|
1071
|
-
userPoolConfig: serializeAws_restJson1UserPoolConfig(input.userPoolConfig, context),
|
|
1050
|
+
openIDConnectConfig: se_OpenIDConnectConfig(input.openIDConnectConfig, context),
|
|
1072
1051
|
}),
|
|
1052
|
+
...(input.userPoolConfig != null && { userPoolConfig: se_UserPoolConfig(input.userPoolConfig, context) }),
|
|
1073
1053
|
...(input.xrayEnabled != null && { xrayEnabled: input.xrayEnabled }),
|
|
1074
1054
|
});
|
|
1075
1055
|
return new __HttpRequest({
|
|
@@ -1082,7 +1062,7 @@ export const serializeAws_restJson1UpdateGraphqlApiCommand = async (input, conte
|
|
|
1082
1062
|
body,
|
|
1083
1063
|
});
|
|
1084
1064
|
};
|
|
1085
|
-
export const
|
|
1065
|
+
export const se_UpdateResolverCommand = async (input, context) => {
|
|
1086
1066
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1087
1067
|
const headers = {
|
|
1088
1068
|
"content-type": "application/json",
|
|
@@ -1094,20 +1074,16 @@ export const serializeAws_restJson1UpdateResolverCommand = async (input, context
|
|
|
1094
1074
|
resolvedPath = __resolvedPath(resolvedPath, input, "fieldName", () => input.fieldName, "{fieldName}", false);
|
|
1095
1075
|
let body;
|
|
1096
1076
|
body = JSON.stringify({
|
|
1097
|
-
...(input.cachingConfig != null && {
|
|
1098
|
-
cachingConfig: serializeAws_restJson1CachingConfig(input.cachingConfig, context),
|
|
1099
|
-
}),
|
|
1077
|
+
...(input.cachingConfig != null && { cachingConfig: se_CachingConfig(input.cachingConfig, context) }),
|
|
1100
1078
|
...(input.code != null && { code: input.code }),
|
|
1101
1079
|
...(input.dataSourceName != null && { dataSourceName: input.dataSourceName }),
|
|
1102
1080
|
...(input.kind != null && { kind: input.kind }),
|
|
1103
1081
|
...(input.maxBatchSize != null && { maxBatchSize: input.maxBatchSize }),
|
|
1104
|
-
...(input.pipelineConfig != null && {
|
|
1105
|
-
pipelineConfig: serializeAws_restJson1PipelineConfig(input.pipelineConfig, context),
|
|
1106
|
-
}),
|
|
1082
|
+
...(input.pipelineConfig != null && { pipelineConfig: se_PipelineConfig(input.pipelineConfig, context) }),
|
|
1107
1083
|
...(input.requestMappingTemplate != null && { requestMappingTemplate: input.requestMappingTemplate }),
|
|
1108
1084
|
...(input.responseMappingTemplate != null && { responseMappingTemplate: input.responseMappingTemplate }),
|
|
1109
|
-
...(input.runtime != null && { runtime:
|
|
1110
|
-
...(input.syncConfig != null && { syncConfig:
|
|
1085
|
+
...(input.runtime != null && { runtime: se_AppSyncRuntime(input.runtime, context) }),
|
|
1086
|
+
...(input.syncConfig != null && { syncConfig: se_SyncConfig(input.syncConfig, context) }),
|
|
1111
1087
|
});
|
|
1112
1088
|
return new __HttpRequest({
|
|
1113
1089
|
protocol,
|
|
@@ -1119,7 +1095,7 @@ export const serializeAws_restJson1UpdateResolverCommand = async (input, context
|
|
|
1119
1095
|
body,
|
|
1120
1096
|
});
|
|
1121
1097
|
};
|
|
1122
|
-
export const
|
|
1098
|
+
export const se_UpdateTypeCommand = async (input, context) => {
|
|
1123
1099
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1124
1100
|
const headers = {
|
|
1125
1101
|
"content-type": "application/json",
|
|
@@ -1142,20 +1118,20 @@ export const serializeAws_restJson1UpdateTypeCommand = async (input, context) =>
|
|
|
1142
1118
|
body,
|
|
1143
1119
|
});
|
|
1144
1120
|
};
|
|
1145
|
-
export const
|
|
1121
|
+
export const de_AssociateApiCommand = async (output, context) => {
|
|
1146
1122
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1147
|
-
return
|
|
1123
|
+
return de_AssociateApiCommandError(output, context);
|
|
1148
1124
|
}
|
|
1149
1125
|
const contents = map({
|
|
1150
1126
|
$metadata: deserializeMetadata(output),
|
|
1151
1127
|
});
|
|
1152
1128
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1153
1129
|
if (data.apiAssociation != null) {
|
|
1154
|
-
contents.apiAssociation =
|
|
1130
|
+
contents.apiAssociation = de_ApiAssociation(data.apiAssociation, context);
|
|
1155
1131
|
}
|
|
1156
1132
|
return contents;
|
|
1157
1133
|
};
|
|
1158
|
-
const
|
|
1134
|
+
const de_AssociateApiCommandError = async (output, context) => {
|
|
1159
1135
|
const parsedOutput = {
|
|
1160
1136
|
...output,
|
|
1161
1137
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1164,16 +1140,16 @@ const deserializeAws_restJson1AssociateApiCommandError = async (output, context)
|
|
|
1164
1140
|
switch (errorCode) {
|
|
1165
1141
|
case "AccessDeniedException":
|
|
1166
1142
|
case "com.amazonaws.appsync#AccessDeniedException":
|
|
1167
|
-
throw await
|
|
1143
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1168
1144
|
case "BadRequestException":
|
|
1169
1145
|
case "com.amazonaws.appsync#BadRequestException":
|
|
1170
|
-
throw await
|
|
1146
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1171
1147
|
case "InternalFailureException":
|
|
1172
1148
|
case "com.amazonaws.appsync#InternalFailureException":
|
|
1173
|
-
throw await
|
|
1149
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1174
1150
|
case "NotFoundException":
|
|
1175
1151
|
case "com.amazonaws.appsync#NotFoundException":
|
|
1176
|
-
throw await
|
|
1152
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1177
1153
|
default:
|
|
1178
1154
|
const parsedBody = parsedOutput.body;
|
|
1179
1155
|
throwDefaultError({
|
|
@@ -1184,20 +1160,20 @@ const deserializeAws_restJson1AssociateApiCommandError = async (output, context)
|
|
|
1184
1160
|
});
|
|
1185
1161
|
}
|
|
1186
1162
|
};
|
|
1187
|
-
export const
|
|
1163
|
+
export const de_CreateApiCacheCommand = async (output, context) => {
|
|
1188
1164
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1189
|
-
return
|
|
1165
|
+
return de_CreateApiCacheCommandError(output, context);
|
|
1190
1166
|
}
|
|
1191
1167
|
const contents = map({
|
|
1192
1168
|
$metadata: deserializeMetadata(output),
|
|
1193
1169
|
});
|
|
1194
1170
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1195
1171
|
if (data.apiCache != null) {
|
|
1196
|
-
contents.apiCache =
|
|
1172
|
+
contents.apiCache = de_ApiCache(data.apiCache, context);
|
|
1197
1173
|
}
|
|
1198
1174
|
return contents;
|
|
1199
1175
|
};
|
|
1200
|
-
const
|
|
1176
|
+
const de_CreateApiCacheCommandError = async (output, context) => {
|
|
1201
1177
|
const parsedOutput = {
|
|
1202
1178
|
...output,
|
|
1203
1179
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1206,19 +1182,19 @@ const deserializeAws_restJson1CreateApiCacheCommandError = async (output, contex
|
|
|
1206
1182
|
switch (errorCode) {
|
|
1207
1183
|
case "BadRequestException":
|
|
1208
1184
|
case "com.amazonaws.appsync#BadRequestException":
|
|
1209
|
-
throw await
|
|
1185
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1210
1186
|
case "ConcurrentModificationException":
|
|
1211
1187
|
case "com.amazonaws.appsync#ConcurrentModificationException":
|
|
1212
|
-
throw await
|
|
1188
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1213
1189
|
case "InternalFailureException":
|
|
1214
1190
|
case "com.amazonaws.appsync#InternalFailureException":
|
|
1215
|
-
throw await
|
|
1191
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1216
1192
|
case "NotFoundException":
|
|
1217
1193
|
case "com.amazonaws.appsync#NotFoundException":
|
|
1218
|
-
throw await
|
|
1194
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1219
1195
|
case "UnauthorizedException":
|
|
1220
1196
|
case "com.amazonaws.appsync#UnauthorizedException":
|
|
1221
|
-
throw await
|
|
1197
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1222
1198
|
default:
|
|
1223
1199
|
const parsedBody = parsedOutput.body;
|
|
1224
1200
|
throwDefaultError({
|
|
@@ -1229,20 +1205,20 @@ const deserializeAws_restJson1CreateApiCacheCommandError = async (output, contex
|
|
|
1229
1205
|
});
|
|
1230
1206
|
}
|
|
1231
1207
|
};
|
|
1232
|
-
export const
|
|
1208
|
+
export const de_CreateApiKeyCommand = async (output, context) => {
|
|
1233
1209
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1234
|
-
return
|
|
1210
|
+
return de_CreateApiKeyCommandError(output, context);
|
|
1235
1211
|
}
|
|
1236
1212
|
const contents = map({
|
|
1237
1213
|
$metadata: deserializeMetadata(output),
|
|
1238
1214
|
});
|
|
1239
1215
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1240
1216
|
if (data.apiKey != null) {
|
|
1241
|
-
contents.apiKey =
|
|
1217
|
+
contents.apiKey = de_ApiKey(data.apiKey, context);
|
|
1242
1218
|
}
|
|
1243
1219
|
return contents;
|
|
1244
1220
|
};
|
|
1245
|
-
const
|
|
1221
|
+
const de_CreateApiKeyCommandError = async (output, context) => {
|
|
1246
1222
|
const parsedOutput = {
|
|
1247
1223
|
...output,
|
|
1248
1224
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1251,25 +1227,25 @@ const deserializeAws_restJson1CreateApiKeyCommandError = async (output, context)
|
|
|
1251
1227
|
switch (errorCode) {
|
|
1252
1228
|
case "ApiKeyLimitExceededException":
|
|
1253
1229
|
case "com.amazonaws.appsync#ApiKeyLimitExceededException":
|
|
1254
|
-
throw await
|
|
1230
|
+
throw await de_ApiKeyLimitExceededExceptionRes(parsedOutput, context);
|
|
1255
1231
|
case "ApiKeyValidityOutOfBoundsException":
|
|
1256
1232
|
case "com.amazonaws.appsync#ApiKeyValidityOutOfBoundsException":
|
|
1257
|
-
throw await
|
|
1233
|
+
throw await de_ApiKeyValidityOutOfBoundsExceptionRes(parsedOutput, context);
|
|
1258
1234
|
case "BadRequestException":
|
|
1259
1235
|
case "com.amazonaws.appsync#BadRequestException":
|
|
1260
|
-
throw await
|
|
1236
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1261
1237
|
case "InternalFailureException":
|
|
1262
1238
|
case "com.amazonaws.appsync#InternalFailureException":
|
|
1263
|
-
throw await
|
|
1239
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1264
1240
|
case "LimitExceededException":
|
|
1265
1241
|
case "com.amazonaws.appsync#LimitExceededException":
|
|
1266
|
-
throw await
|
|
1242
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1267
1243
|
case "NotFoundException":
|
|
1268
1244
|
case "com.amazonaws.appsync#NotFoundException":
|
|
1269
|
-
throw await
|
|
1245
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1270
1246
|
case "UnauthorizedException":
|
|
1271
1247
|
case "com.amazonaws.appsync#UnauthorizedException":
|
|
1272
|
-
throw await
|
|
1248
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1273
1249
|
default:
|
|
1274
1250
|
const parsedBody = parsedOutput.body;
|
|
1275
1251
|
throwDefaultError({
|
|
@@ -1280,20 +1256,20 @@ const deserializeAws_restJson1CreateApiKeyCommandError = async (output, context)
|
|
|
1280
1256
|
});
|
|
1281
1257
|
}
|
|
1282
1258
|
};
|
|
1283
|
-
export const
|
|
1259
|
+
export const de_CreateDataSourceCommand = async (output, context) => {
|
|
1284
1260
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1285
|
-
return
|
|
1261
|
+
return de_CreateDataSourceCommandError(output, context);
|
|
1286
1262
|
}
|
|
1287
1263
|
const contents = map({
|
|
1288
1264
|
$metadata: deserializeMetadata(output),
|
|
1289
1265
|
});
|
|
1290
1266
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1291
1267
|
if (data.dataSource != null) {
|
|
1292
|
-
contents.dataSource =
|
|
1268
|
+
contents.dataSource = de_DataSource(data.dataSource, context);
|
|
1293
1269
|
}
|
|
1294
1270
|
return contents;
|
|
1295
1271
|
};
|
|
1296
|
-
const
|
|
1272
|
+
const de_CreateDataSourceCommandError = async (output, context) => {
|
|
1297
1273
|
const parsedOutput = {
|
|
1298
1274
|
...output,
|
|
1299
1275
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1302,19 +1278,19 @@ const deserializeAws_restJson1CreateDataSourceCommandError = async (output, cont
|
|
|
1302
1278
|
switch (errorCode) {
|
|
1303
1279
|
case "BadRequestException":
|
|
1304
1280
|
case "com.amazonaws.appsync#BadRequestException":
|
|
1305
|
-
throw await
|
|
1281
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1306
1282
|
case "ConcurrentModificationException":
|
|
1307
1283
|
case "com.amazonaws.appsync#ConcurrentModificationException":
|
|
1308
|
-
throw await
|
|
1284
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1309
1285
|
case "InternalFailureException":
|
|
1310
1286
|
case "com.amazonaws.appsync#InternalFailureException":
|
|
1311
|
-
throw await
|
|
1287
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1312
1288
|
case "NotFoundException":
|
|
1313
1289
|
case "com.amazonaws.appsync#NotFoundException":
|
|
1314
|
-
throw await
|
|
1290
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1315
1291
|
case "UnauthorizedException":
|
|
1316
1292
|
case "com.amazonaws.appsync#UnauthorizedException":
|
|
1317
|
-
throw await
|
|
1293
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1318
1294
|
default:
|
|
1319
1295
|
const parsedBody = parsedOutput.body;
|
|
1320
1296
|
throwDefaultError({
|
|
@@ -1325,20 +1301,20 @@ const deserializeAws_restJson1CreateDataSourceCommandError = async (output, cont
|
|
|
1325
1301
|
});
|
|
1326
1302
|
}
|
|
1327
1303
|
};
|
|
1328
|
-
export const
|
|
1304
|
+
export const de_CreateDomainNameCommand = async (output, context) => {
|
|
1329
1305
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1330
|
-
return
|
|
1306
|
+
return de_CreateDomainNameCommandError(output, context);
|
|
1331
1307
|
}
|
|
1332
1308
|
const contents = map({
|
|
1333
1309
|
$metadata: deserializeMetadata(output),
|
|
1334
1310
|
});
|
|
1335
1311
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1336
1312
|
if (data.domainNameConfig != null) {
|
|
1337
|
-
contents.domainNameConfig =
|
|
1313
|
+
contents.domainNameConfig = de_DomainNameConfig(data.domainNameConfig, context);
|
|
1338
1314
|
}
|
|
1339
1315
|
return contents;
|
|
1340
1316
|
};
|
|
1341
|
-
const
|
|
1317
|
+
const de_CreateDomainNameCommandError = async (output, context) => {
|
|
1342
1318
|
const parsedOutput = {
|
|
1343
1319
|
...output,
|
|
1344
1320
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1347,13 +1323,13 @@ const deserializeAws_restJson1CreateDomainNameCommandError = async (output, cont
|
|
|
1347
1323
|
switch (errorCode) {
|
|
1348
1324
|
case "AccessDeniedException":
|
|
1349
1325
|
case "com.amazonaws.appsync#AccessDeniedException":
|
|
1350
|
-
throw await
|
|
1326
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1351
1327
|
case "BadRequestException":
|
|
1352
1328
|
case "com.amazonaws.appsync#BadRequestException":
|
|
1353
|
-
throw await
|
|
1329
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1354
1330
|
case "InternalFailureException":
|
|
1355
1331
|
case "com.amazonaws.appsync#InternalFailureException":
|
|
1356
|
-
throw await
|
|
1332
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1357
1333
|
default:
|
|
1358
1334
|
const parsedBody = parsedOutput.body;
|
|
1359
1335
|
throwDefaultError({
|
|
@@ -1364,20 +1340,20 @@ const deserializeAws_restJson1CreateDomainNameCommandError = async (output, cont
|
|
|
1364
1340
|
});
|
|
1365
1341
|
}
|
|
1366
1342
|
};
|
|
1367
|
-
export const
|
|
1343
|
+
export const de_CreateFunctionCommand = async (output, context) => {
|
|
1368
1344
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1369
|
-
return
|
|
1345
|
+
return de_CreateFunctionCommandError(output, context);
|
|
1370
1346
|
}
|
|
1371
1347
|
const contents = map({
|
|
1372
1348
|
$metadata: deserializeMetadata(output),
|
|
1373
1349
|
});
|
|
1374
1350
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1375
1351
|
if (data.functionConfiguration != null) {
|
|
1376
|
-
contents.functionConfiguration =
|
|
1352
|
+
contents.functionConfiguration = de_FunctionConfiguration(data.functionConfiguration, context);
|
|
1377
1353
|
}
|
|
1378
1354
|
return contents;
|
|
1379
1355
|
};
|
|
1380
|
-
const
|
|
1356
|
+
const de_CreateFunctionCommandError = async (output, context) => {
|
|
1381
1357
|
const parsedOutput = {
|
|
1382
1358
|
...output,
|
|
1383
1359
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1386,16 +1362,16 @@ const deserializeAws_restJson1CreateFunctionCommandError = async (output, contex
|
|
|
1386
1362
|
switch (errorCode) {
|
|
1387
1363
|
case "ConcurrentModificationException":
|
|
1388
1364
|
case "com.amazonaws.appsync#ConcurrentModificationException":
|
|
1389
|
-
throw await
|
|
1365
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1390
1366
|
case "InternalFailureException":
|
|
1391
1367
|
case "com.amazonaws.appsync#InternalFailureException":
|
|
1392
|
-
throw await
|
|
1368
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1393
1369
|
case "NotFoundException":
|
|
1394
1370
|
case "com.amazonaws.appsync#NotFoundException":
|
|
1395
|
-
throw await
|
|
1371
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1396
1372
|
case "UnauthorizedException":
|
|
1397
1373
|
case "com.amazonaws.appsync#UnauthorizedException":
|
|
1398
|
-
throw await
|
|
1374
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1399
1375
|
default:
|
|
1400
1376
|
const parsedBody = parsedOutput.body;
|
|
1401
1377
|
throwDefaultError({
|
|
@@ -1406,20 +1382,20 @@ const deserializeAws_restJson1CreateFunctionCommandError = async (output, contex
|
|
|
1406
1382
|
});
|
|
1407
1383
|
}
|
|
1408
1384
|
};
|
|
1409
|
-
export const
|
|
1385
|
+
export const de_CreateGraphqlApiCommand = async (output, context) => {
|
|
1410
1386
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1411
|
-
return
|
|
1387
|
+
return de_CreateGraphqlApiCommandError(output, context);
|
|
1412
1388
|
}
|
|
1413
1389
|
const contents = map({
|
|
1414
1390
|
$metadata: deserializeMetadata(output),
|
|
1415
1391
|
});
|
|
1416
1392
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1417
1393
|
if (data.graphqlApi != null) {
|
|
1418
|
-
contents.graphqlApi =
|
|
1394
|
+
contents.graphqlApi = de_GraphqlApi(data.graphqlApi, context);
|
|
1419
1395
|
}
|
|
1420
1396
|
return contents;
|
|
1421
1397
|
};
|
|
1422
|
-
const
|
|
1398
|
+
const de_CreateGraphqlApiCommandError = async (output, context) => {
|
|
1423
1399
|
const parsedOutput = {
|
|
1424
1400
|
...output,
|
|
1425
1401
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1428,22 +1404,22 @@ const deserializeAws_restJson1CreateGraphqlApiCommandError = async (output, cont
|
|
|
1428
1404
|
switch (errorCode) {
|
|
1429
1405
|
case "ApiLimitExceededException":
|
|
1430
1406
|
case "com.amazonaws.appsync#ApiLimitExceededException":
|
|
1431
|
-
throw await
|
|
1407
|
+
throw await de_ApiLimitExceededExceptionRes(parsedOutput, context);
|
|
1432
1408
|
case "BadRequestException":
|
|
1433
1409
|
case "com.amazonaws.appsync#BadRequestException":
|
|
1434
|
-
throw await
|
|
1410
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1435
1411
|
case "ConcurrentModificationException":
|
|
1436
1412
|
case "com.amazonaws.appsync#ConcurrentModificationException":
|
|
1437
|
-
throw await
|
|
1413
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1438
1414
|
case "InternalFailureException":
|
|
1439
1415
|
case "com.amazonaws.appsync#InternalFailureException":
|
|
1440
|
-
throw await
|
|
1416
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1441
1417
|
case "LimitExceededException":
|
|
1442
1418
|
case "com.amazonaws.appsync#LimitExceededException":
|
|
1443
|
-
throw await
|
|
1419
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1444
1420
|
case "UnauthorizedException":
|
|
1445
1421
|
case "com.amazonaws.appsync#UnauthorizedException":
|
|
1446
|
-
throw await
|
|
1422
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1447
1423
|
default:
|
|
1448
1424
|
const parsedBody = parsedOutput.body;
|
|
1449
1425
|
throwDefaultError({
|
|
@@ -1454,20 +1430,20 @@ const deserializeAws_restJson1CreateGraphqlApiCommandError = async (output, cont
|
|
|
1454
1430
|
});
|
|
1455
1431
|
}
|
|
1456
1432
|
};
|
|
1457
|
-
export const
|
|
1433
|
+
export const de_CreateResolverCommand = async (output, context) => {
|
|
1458
1434
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1459
|
-
return
|
|
1435
|
+
return de_CreateResolverCommandError(output, context);
|
|
1460
1436
|
}
|
|
1461
1437
|
const contents = map({
|
|
1462
1438
|
$metadata: deserializeMetadata(output),
|
|
1463
1439
|
});
|
|
1464
1440
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1465
1441
|
if (data.resolver != null) {
|
|
1466
|
-
contents.resolver =
|
|
1442
|
+
contents.resolver = de_Resolver(data.resolver, context);
|
|
1467
1443
|
}
|
|
1468
1444
|
return contents;
|
|
1469
1445
|
};
|
|
1470
|
-
const
|
|
1446
|
+
const de_CreateResolverCommandError = async (output, context) => {
|
|
1471
1447
|
const parsedOutput = {
|
|
1472
1448
|
...output,
|
|
1473
1449
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1476,19 +1452,19 @@ const deserializeAws_restJson1CreateResolverCommandError = async (output, contex
|
|
|
1476
1452
|
switch (errorCode) {
|
|
1477
1453
|
case "BadRequestException":
|
|
1478
1454
|
case "com.amazonaws.appsync#BadRequestException":
|
|
1479
|
-
throw await
|
|
1455
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1480
1456
|
case "ConcurrentModificationException":
|
|
1481
1457
|
case "com.amazonaws.appsync#ConcurrentModificationException":
|
|
1482
|
-
throw await
|
|
1458
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1483
1459
|
case "InternalFailureException":
|
|
1484
1460
|
case "com.amazonaws.appsync#InternalFailureException":
|
|
1485
|
-
throw await
|
|
1461
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1486
1462
|
case "NotFoundException":
|
|
1487
1463
|
case "com.amazonaws.appsync#NotFoundException":
|
|
1488
|
-
throw await
|
|
1464
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1489
1465
|
case "UnauthorizedException":
|
|
1490
1466
|
case "com.amazonaws.appsync#UnauthorizedException":
|
|
1491
|
-
throw await
|
|
1467
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1492
1468
|
default:
|
|
1493
1469
|
const parsedBody = parsedOutput.body;
|
|
1494
1470
|
throwDefaultError({
|
|
@@ -1499,20 +1475,20 @@ const deserializeAws_restJson1CreateResolverCommandError = async (output, contex
|
|
|
1499
1475
|
});
|
|
1500
1476
|
}
|
|
1501
1477
|
};
|
|
1502
|
-
export const
|
|
1478
|
+
export const de_CreateTypeCommand = async (output, context) => {
|
|
1503
1479
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1504
|
-
return
|
|
1480
|
+
return de_CreateTypeCommandError(output, context);
|
|
1505
1481
|
}
|
|
1506
1482
|
const contents = map({
|
|
1507
1483
|
$metadata: deserializeMetadata(output),
|
|
1508
1484
|
});
|
|
1509
1485
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1510
1486
|
if (data.type != null) {
|
|
1511
|
-
contents.type =
|
|
1487
|
+
contents.type = de_Type(data.type, context);
|
|
1512
1488
|
}
|
|
1513
1489
|
return contents;
|
|
1514
1490
|
};
|
|
1515
|
-
const
|
|
1491
|
+
const de_CreateTypeCommandError = async (output, context) => {
|
|
1516
1492
|
const parsedOutput = {
|
|
1517
1493
|
...output,
|
|
1518
1494
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1521,19 +1497,19 @@ const deserializeAws_restJson1CreateTypeCommandError = async (output, context) =
|
|
|
1521
1497
|
switch (errorCode) {
|
|
1522
1498
|
case "BadRequestException":
|
|
1523
1499
|
case "com.amazonaws.appsync#BadRequestException":
|
|
1524
|
-
throw await
|
|
1500
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1525
1501
|
case "ConcurrentModificationException":
|
|
1526
1502
|
case "com.amazonaws.appsync#ConcurrentModificationException":
|
|
1527
|
-
throw await
|
|
1503
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1528
1504
|
case "InternalFailureException":
|
|
1529
1505
|
case "com.amazonaws.appsync#InternalFailureException":
|
|
1530
|
-
throw await
|
|
1506
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1531
1507
|
case "NotFoundException":
|
|
1532
1508
|
case "com.amazonaws.appsync#NotFoundException":
|
|
1533
|
-
throw await
|
|
1509
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1534
1510
|
case "UnauthorizedException":
|
|
1535
1511
|
case "com.amazonaws.appsync#UnauthorizedException":
|
|
1536
|
-
throw await
|
|
1512
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1537
1513
|
default:
|
|
1538
1514
|
const parsedBody = parsedOutput.body;
|
|
1539
1515
|
throwDefaultError({
|
|
@@ -1544,9 +1520,9 @@ const deserializeAws_restJson1CreateTypeCommandError = async (output, context) =
|
|
|
1544
1520
|
});
|
|
1545
1521
|
}
|
|
1546
1522
|
};
|
|
1547
|
-
export const
|
|
1523
|
+
export const de_DeleteApiCacheCommand = async (output, context) => {
|
|
1548
1524
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1549
|
-
return
|
|
1525
|
+
return de_DeleteApiCacheCommandError(output, context);
|
|
1550
1526
|
}
|
|
1551
1527
|
const contents = map({
|
|
1552
1528
|
$metadata: deserializeMetadata(output),
|
|
@@ -1554,7 +1530,7 @@ export const deserializeAws_restJson1DeleteApiCacheCommand = async (output, cont
|
|
|
1554
1530
|
await collectBody(output.body, context);
|
|
1555
1531
|
return contents;
|
|
1556
1532
|
};
|
|
1557
|
-
const
|
|
1533
|
+
const de_DeleteApiCacheCommandError = async (output, context) => {
|
|
1558
1534
|
const parsedOutput = {
|
|
1559
1535
|
...output,
|
|
1560
1536
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1563,19 +1539,19 @@ const deserializeAws_restJson1DeleteApiCacheCommandError = async (output, contex
|
|
|
1563
1539
|
switch (errorCode) {
|
|
1564
1540
|
case "BadRequestException":
|
|
1565
1541
|
case "com.amazonaws.appsync#BadRequestException":
|
|
1566
|
-
throw await
|
|
1542
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1567
1543
|
case "ConcurrentModificationException":
|
|
1568
1544
|
case "com.amazonaws.appsync#ConcurrentModificationException":
|
|
1569
|
-
throw await
|
|
1545
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1570
1546
|
case "InternalFailureException":
|
|
1571
1547
|
case "com.amazonaws.appsync#InternalFailureException":
|
|
1572
|
-
throw await
|
|
1548
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1573
1549
|
case "NotFoundException":
|
|
1574
1550
|
case "com.amazonaws.appsync#NotFoundException":
|
|
1575
|
-
throw await
|
|
1551
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1576
1552
|
case "UnauthorizedException":
|
|
1577
1553
|
case "com.amazonaws.appsync#UnauthorizedException":
|
|
1578
|
-
throw await
|
|
1554
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1579
1555
|
default:
|
|
1580
1556
|
const parsedBody = parsedOutput.body;
|
|
1581
1557
|
throwDefaultError({
|
|
@@ -1586,9 +1562,9 @@ const deserializeAws_restJson1DeleteApiCacheCommandError = async (output, contex
|
|
|
1586
1562
|
});
|
|
1587
1563
|
}
|
|
1588
1564
|
};
|
|
1589
|
-
export const
|
|
1565
|
+
export const de_DeleteApiKeyCommand = async (output, context) => {
|
|
1590
1566
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1591
|
-
return
|
|
1567
|
+
return de_DeleteApiKeyCommandError(output, context);
|
|
1592
1568
|
}
|
|
1593
1569
|
const contents = map({
|
|
1594
1570
|
$metadata: deserializeMetadata(output),
|
|
@@ -1596,7 +1572,7 @@ export const deserializeAws_restJson1DeleteApiKeyCommand = async (output, contex
|
|
|
1596
1572
|
await collectBody(output.body, context);
|
|
1597
1573
|
return contents;
|
|
1598
1574
|
};
|
|
1599
|
-
const
|
|
1575
|
+
const de_DeleteApiKeyCommandError = async (output, context) => {
|
|
1600
1576
|
const parsedOutput = {
|
|
1601
1577
|
...output,
|
|
1602
1578
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1605,16 +1581,16 @@ const deserializeAws_restJson1DeleteApiKeyCommandError = async (output, context)
|
|
|
1605
1581
|
switch (errorCode) {
|
|
1606
1582
|
case "BadRequestException":
|
|
1607
1583
|
case "com.amazonaws.appsync#BadRequestException":
|
|
1608
|
-
throw await
|
|
1584
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1609
1585
|
case "InternalFailureException":
|
|
1610
1586
|
case "com.amazonaws.appsync#InternalFailureException":
|
|
1611
|
-
throw await
|
|
1587
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1612
1588
|
case "NotFoundException":
|
|
1613
1589
|
case "com.amazonaws.appsync#NotFoundException":
|
|
1614
|
-
throw await
|
|
1590
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1615
1591
|
case "UnauthorizedException":
|
|
1616
1592
|
case "com.amazonaws.appsync#UnauthorizedException":
|
|
1617
|
-
throw await
|
|
1593
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1618
1594
|
default:
|
|
1619
1595
|
const parsedBody = parsedOutput.body;
|
|
1620
1596
|
throwDefaultError({
|
|
@@ -1625,9 +1601,9 @@ const deserializeAws_restJson1DeleteApiKeyCommandError = async (output, context)
|
|
|
1625
1601
|
});
|
|
1626
1602
|
}
|
|
1627
1603
|
};
|
|
1628
|
-
export const
|
|
1604
|
+
export const de_DeleteDataSourceCommand = async (output, context) => {
|
|
1629
1605
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1630
|
-
return
|
|
1606
|
+
return de_DeleteDataSourceCommandError(output, context);
|
|
1631
1607
|
}
|
|
1632
1608
|
const contents = map({
|
|
1633
1609
|
$metadata: deserializeMetadata(output),
|
|
@@ -1635,7 +1611,7 @@ export const deserializeAws_restJson1DeleteDataSourceCommand = async (output, co
|
|
|
1635
1611
|
await collectBody(output.body, context);
|
|
1636
1612
|
return contents;
|
|
1637
1613
|
};
|
|
1638
|
-
const
|
|
1614
|
+
const de_DeleteDataSourceCommandError = async (output, context) => {
|
|
1639
1615
|
const parsedOutput = {
|
|
1640
1616
|
...output,
|
|
1641
1617
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1644,19 +1620,19 @@ const deserializeAws_restJson1DeleteDataSourceCommandError = async (output, cont
|
|
|
1644
1620
|
switch (errorCode) {
|
|
1645
1621
|
case "BadRequestException":
|
|
1646
1622
|
case "com.amazonaws.appsync#BadRequestException":
|
|
1647
|
-
throw await
|
|
1623
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1648
1624
|
case "ConcurrentModificationException":
|
|
1649
1625
|
case "com.amazonaws.appsync#ConcurrentModificationException":
|
|
1650
|
-
throw await
|
|
1626
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1651
1627
|
case "InternalFailureException":
|
|
1652
1628
|
case "com.amazonaws.appsync#InternalFailureException":
|
|
1653
|
-
throw await
|
|
1629
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1654
1630
|
case "NotFoundException":
|
|
1655
1631
|
case "com.amazonaws.appsync#NotFoundException":
|
|
1656
|
-
throw await
|
|
1632
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1657
1633
|
case "UnauthorizedException":
|
|
1658
1634
|
case "com.amazonaws.appsync#UnauthorizedException":
|
|
1659
|
-
throw await
|
|
1635
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1660
1636
|
default:
|
|
1661
1637
|
const parsedBody = parsedOutput.body;
|
|
1662
1638
|
throwDefaultError({
|
|
@@ -1667,9 +1643,9 @@ const deserializeAws_restJson1DeleteDataSourceCommandError = async (output, cont
|
|
|
1667
1643
|
});
|
|
1668
1644
|
}
|
|
1669
1645
|
};
|
|
1670
|
-
export const
|
|
1646
|
+
export const de_DeleteDomainNameCommand = async (output, context) => {
|
|
1671
1647
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1672
|
-
return
|
|
1648
|
+
return de_DeleteDomainNameCommandError(output, context);
|
|
1673
1649
|
}
|
|
1674
1650
|
const contents = map({
|
|
1675
1651
|
$metadata: deserializeMetadata(output),
|
|
@@ -1677,7 +1653,7 @@ export const deserializeAws_restJson1DeleteDomainNameCommand = async (output, co
|
|
|
1677
1653
|
await collectBody(output.body, context);
|
|
1678
1654
|
return contents;
|
|
1679
1655
|
};
|
|
1680
|
-
const
|
|
1656
|
+
const de_DeleteDomainNameCommandError = async (output, context) => {
|
|
1681
1657
|
const parsedOutput = {
|
|
1682
1658
|
...output,
|
|
1683
1659
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1686,19 +1662,19 @@ const deserializeAws_restJson1DeleteDomainNameCommandError = async (output, cont
|
|
|
1686
1662
|
switch (errorCode) {
|
|
1687
1663
|
case "AccessDeniedException":
|
|
1688
1664
|
case "com.amazonaws.appsync#AccessDeniedException":
|
|
1689
|
-
throw await
|
|
1665
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1690
1666
|
case "BadRequestException":
|
|
1691
1667
|
case "com.amazonaws.appsync#BadRequestException":
|
|
1692
|
-
throw await
|
|
1668
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1693
1669
|
case "ConcurrentModificationException":
|
|
1694
1670
|
case "com.amazonaws.appsync#ConcurrentModificationException":
|
|
1695
|
-
throw await
|
|
1671
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1696
1672
|
case "InternalFailureException":
|
|
1697
1673
|
case "com.amazonaws.appsync#InternalFailureException":
|
|
1698
|
-
throw await
|
|
1674
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1699
1675
|
case "NotFoundException":
|
|
1700
1676
|
case "com.amazonaws.appsync#NotFoundException":
|
|
1701
|
-
throw await
|
|
1677
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1702
1678
|
default:
|
|
1703
1679
|
const parsedBody = parsedOutput.body;
|
|
1704
1680
|
throwDefaultError({
|
|
@@ -1709,9 +1685,9 @@ const deserializeAws_restJson1DeleteDomainNameCommandError = async (output, cont
|
|
|
1709
1685
|
});
|
|
1710
1686
|
}
|
|
1711
1687
|
};
|
|
1712
|
-
export const
|
|
1688
|
+
export const de_DeleteFunctionCommand = async (output, context) => {
|
|
1713
1689
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1714
|
-
return
|
|
1690
|
+
return de_DeleteFunctionCommandError(output, context);
|
|
1715
1691
|
}
|
|
1716
1692
|
const contents = map({
|
|
1717
1693
|
$metadata: deserializeMetadata(output),
|
|
@@ -1719,7 +1695,7 @@ export const deserializeAws_restJson1DeleteFunctionCommand = async (output, cont
|
|
|
1719
1695
|
await collectBody(output.body, context);
|
|
1720
1696
|
return contents;
|
|
1721
1697
|
};
|
|
1722
|
-
const
|
|
1698
|
+
const de_DeleteFunctionCommandError = async (output, context) => {
|
|
1723
1699
|
const parsedOutput = {
|
|
1724
1700
|
...output,
|
|
1725
1701
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1728,16 +1704,16 @@ const deserializeAws_restJson1DeleteFunctionCommandError = async (output, contex
|
|
|
1728
1704
|
switch (errorCode) {
|
|
1729
1705
|
case "ConcurrentModificationException":
|
|
1730
1706
|
case "com.amazonaws.appsync#ConcurrentModificationException":
|
|
1731
|
-
throw await
|
|
1707
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1732
1708
|
case "InternalFailureException":
|
|
1733
1709
|
case "com.amazonaws.appsync#InternalFailureException":
|
|
1734
|
-
throw await
|
|
1710
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1735
1711
|
case "NotFoundException":
|
|
1736
1712
|
case "com.amazonaws.appsync#NotFoundException":
|
|
1737
|
-
throw await
|
|
1713
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1738
1714
|
case "UnauthorizedException":
|
|
1739
1715
|
case "com.amazonaws.appsync#UnauthorizedException":
|
|
1740
|
-
throw await
|
|
1716
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1741
1717
|
default:
|
|
1742
1718
|
const parsedBody = parsedOutput.body;
|
|
1743
1719
|
throwDefaultError({
|
|
@@ -1748,9 +1724,9 @@ const deserializeAws_restJson1DeleteFunctionCommandError = async (output, contex
|
|
|
1748
1724
|
});
|
|
1749
1725
|
}
|
|
1750
1726
|
};
|
|
1751
|
-
export const
|
|
1727
|
+
export const de_DeleteGraphqlApiCommand = async (output, context) => {
|
|
1752
1728
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1753
|
-
return
|
|
1729
|
+
return de_DeleteGraphqlApiCommandError(output, context);
|
|
1754
1730
|
}
|
|
1755
1731
|
const contents = map({
|
|
1756
1732
|
$metadata: deserializeMetadata(output),
|
|
@@ -1758,7 +1734,7 @@ export const deserializeAws_restJson1DeleteGraphqlApiCommand = async (output, co
|
|
|
1758
1734
|
await collectBody(output.body, context);
|
|
1759
1735
|
return contents;
|
|
1760
1736
|
};
|
|
1761
|
-
const
|
|
1737
|
+
const de_DeleteGraphqlApiCommandError = async (output, context) => {
|
|
1762
1738
|
const parsedOutput = {
|
|
1763
1739
|
...output,
|
|
1764
1740
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1767,22 +1743,22 @@ const deserializeAws_restJson1DeleteGraphqlApiCommandError = async (output, cont
|
|
|
1767
1743
|
switch (errorCode) {
|
|
1768
1744
|
case "AccessDeniedException":
|
|
1769
1745
|
case "com.amazonaws.appsync#AccessDeniedException":
|
|
1770
|
-
throw await
|
|
1746
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1771
1747
|
case "BadRequestException":
|
|
1772
1748
|
case "com.amazonaws.appsync#BadRequestException":
|
|
1773
|
-
throw await
|
|
1749
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1774
1750
|
case "ConcurrentModificationException":
|
|
1775
1751
|
case "com.amazonaws.appsync#ConcurrentModificationException":
|
|
1776
|
-
throw await
|
|
1752
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1777
1753
|
case "InternalFailureException":
|
|
1778
1754
|
case "com.amazonaws.appsync#InternalFailureException":
|
|
1779
|
-
throw await
|
|
1755
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1780
1756
|
case "NotFoundException":
|
|
1781
1757
|
case "com.amazonaws.appsync#NotFoundException":
|
|
1782
|
-
throw await
|
|
1758
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1783
1759
|
case "UnauthorizedException":
|
|
1784
1760
|
case "com.amazonaws.appsync#UnauthorizedException":
|
|
1785
|
-
throw await
|
|
1761
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1786
1762
|
default:
|
|
1787
1763
|
const parsedBody = parsedOutput.body;
|
|
1788
1764
|
throwDefaultError({
|
|
@@ -1793,9 +1769,9 @@ const deserializeAws_restJson1DeleteGraphqlApiCommandError = async (output, cont
|
|
|
1793
1769
|
});
|
|
1794
1770
|
}
|
|
1795
1771
|
};
|
|
1796
|
-
export const
|
|
1772
|
+
export const de_DeleteResolverCommand = async (output, context) => {
|
|
1797
1773
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1798
|
-
return
|
|
1774
|
+
return de_DeleteResolverCommandError(output, context);
|
|
1799
1775
|
}
|
|
1800
1776
|
const contents = map({
|
|
1801
1777
|
$metadata: deserializeMetadata(output),
|
|
@@ -1803,7 +1779,7 @@ export const deserializeAws_restJson1DeleteResolverCommand = async (output, cont
|
|
|
1803
1779
|
await collectBody(output.body, context);
|
|
1804
1780
|
return contents;
|
|
1805
1781
|
};
|
|
1806
|
-
const
|
|
1782
|
+
const de_DeleteResolverCommandError = async (output, context) => {
|
|
1807
1783
|
const parsedOutput = {
|
|
1808
1784
|
...output,
|
|
1809
1785
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1812,19 +1788,19 @@ const deserializeAws_restJson1DeleteResolverCommandError = async (output, contex
|
|
|
1812
1788
|
switch (errorCode) {
|
|
1813
1789
|
case "BadRequestException":
|
|
1814
1790
|
case "com.amazonaws.appsync#BadRequestException":
|
|
1815
|
-
throw await
|
|
1791
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1816
1792
|
case "ConcurrentModificationException":
|
|
1817
1793
|
case "com.amazonaws.appsync#ConcurrentModificationException":
|
|
1818
|
-
throw await
|
|
1794
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1819
1795
|
case "InternalFailureException":
|
|
1820
1796
|
case "com.amazonaws.appsync#InternalFailureException":
|
|
1821
|
-
throw await
|
|
1797
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1822
1798
|
case "NotFoundException":
|
|
1823
1799
|
case "com.amazonaws.appsync#NotFoundException":
|
|
1824
|
-
throw await
|
|
1800
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1825
1801
|
case "UnauthorizedException":
|
|
1826
1802
|
case "com.amazonaws.appsync#UnauthorizedException":
|
|
1827
|
-
throw await
|
|
1803
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1828
1804
|
default:
|
|
1829
1805
|
const parsedBody = parsedOutput.body;
|
|
1830
1806
|
throwDefaultError({
|
|
@@ -1835,9 +1811,9 @@ const deserializeAws_restJson1DeleteResolverCommandError = async (output, contex
|
|
|
1835
1811
|
});
|
|
1836
1812
|
}
|
|
1837
1813
|
};
|
|
1838
|
-
export const
|
|
1814
|
+
export const de_DeleteTypeCommand = async (output, context) => {
|
|
1839
1815
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1840
|
-
return
|
|
1816
|
+
return de_DeleteTypeCommandError(output, context);
|
|
1841
1817
|
}
|
|
1842
1818
|
const contents = map({
|
|
1843
1819
|
$metadata: deserializeMetadata(output),
|
|
@@ -1845,7 +1821,7 @@ export const deserializeAws_restJson1DeleteTypeCommand = async (output, context)
|
|
|
1845
1821
|
await collectBody(output.body, context);
|
|
1846
1822
|
return contents;
|
|
1847
1823
|
};
|
|
1848
|
-
const
|
|
1824
|
+
const de_DeleteTypeCommandError = async (output, context) => {
|
|
1849
1825
|
const parsedOutput = {
|
|
1850
1826
|
...output,
|
|
1851
1827
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1854,19 +1830,19 @@ const deserializeAws_restJson1DeleteTypeCommandError = async (output, context) =
|
|
|
1854
1830
|
switch (errorCode) {
|
|
1855
1831
|
case "BadRequestException":
|
|
1856
1832
|
case "com.amazonaws.appsync#BadRequestException":
|
|
1857
|
-
throw await
|
|
1833
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1858
1834
|
case "ConcurrentModificationException":
|
|
1859
1835
|
case "com.amazonaws.appsync#ConcurrentModificationException":
|
|
1860
|
-
throw await
|
|
1836
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1861
1837
|
case "InternalFailureException":
|
|
1862
1838
|
case "com.amazonaws.appsync#InternalFailureException":
|
|
1863
|
-
throw await
|
|
1839
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1864
1840
|
case "NotFoundException":
|
|
1865
1841
|
case "com.amazonaws.appsync#NotFoundException":
|
|
1866
|
-
throw await
|
|
1842
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1867
1843
|
case "UnauthorizedException":
|
|
1868
1844
|
case "com.amazonaws.appsync#UnauthorizedException":
|
|
1869
|
-
throw await
|
|
1845
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1870
1846
|
default:
|
|
1871
1847
|
const parsedBody = parsedOutput.body;
|
|
1872
1848
|
throwDefaultError({
|
|
@@ -1877,9 +1853,9 @@ const deserializeAws_restJson1DeleteTypeCommandError = async (output, context) =
|
|
|
1877
1853
|
});
|
|
1878
1854
|
}
|
|
1879
1855
|
};
|
|
1880
|
-
export const
|
|
1856
|
+
export const de_DisassociateApiCommand = async (output, context) => {
|
|
1881
1857
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1882
|
-
return
|
|
1858
|
+
return de_DisassociateApiCommandError(output, context);
|
|
1883
1859
|
}
|
|
1884
1860
|
const contents = map({
|
|
1885
1861
|
$metadata: deserializeMetadata(output),
|
|
@@ -1887,7 +1863,7 @@ export const deserializeAws_restJson1DisassociateApiCommand = async (output, con
|
|
|
1887
1863
|
await collectBody(output.body, context);
|
|
1888
1864
|
return contents;
|
|
1889
1865
|
};
|
|
1890
|
-
const
|
|
1866
|
+
const de_DisassociateApiCommandError = async (output, context) => {
|
|
1891
1867
|
const parsedOutput = {
|
|
1892
1868
|
...output,
|
|
1893
1869
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1896,19 +1872,19 @@ const deserializeAws_restJson1DisassociateApiCommandError = async (output, conte
|
|
|
1896
1872
|
switch (errorCode) {
|
|
1897
1873
|
case "AccessDeniedException":
|
|
1898
1874
|
case "com.amazonaws.appsync#AccessDeniedException":
|
|
1899
|
-
throw await
|
|
1875
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1900
1876
|
case "BadRequestException":
|
|
1901
1877
|
case "com.amazonaws.appsync#BadRequestException":
|
|
1902
|
-
throw await
|
|
1878
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1903
1879
|
case "ConcurrentModificationException":
|
|
1904
1880
|
case "com.amazonaws.appsync#ConcurrentModificationException":
|
|
1905
|
-
throw await
|
|
1881
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1906
1882
|
case "InternalFailureException":
|
|
1907
1883
|
case "com.amazonaws.appsync#InternalFailureException":
|
|
1908
|
-
throw await
|
|
1884
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1909
1885
|
case "NotFoundException":
|
|
1910
1886
|
case "com.amazonaws.appsync#NotFoundException":
|
|
1911
|
-
throw await
|
|
1887
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1912
1888
|
default:
|
|
1913
1889
|
const parsedBody = parsedOutput.body;
|
|
1914
1890
|
throwDefaultError({
|
|
@@ -1919,26 +1895,26 @@ const deserializeAws_restJson1DisassociateApiCommandError = async (output, conte
|
|
|
1919
1895
|
});
|
|
1920
1896
|
}
|
|
1921
1897
|
};
|
|
1922
|
-
export const
|
|
1898
|
+
export const de_EvaluateCodeCommand = async (output, context) => {
|
|
1923
1899
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1924
|
-
return
|
|
1900
|
+
return de_EvaluateCodeCommandError(output, context);
|
|
1925
1901
|
}
|
|
1926
1902
|
const contents = map({
|
|
1927
1903
|
$metadata: deserializeMetadata(output),
|
|
1928
1904
|
});
|
|
1929
1905
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1930
1906
|
if (data.error != null) {
|
|
1931
|
-
contents.error =
|
|
1907
|
+
contents.error = de_EvaluateCodeErrorDetail(data.error, context);
|
|
1932
1908
|
}
|
|
1933
1909
|
if (data.evaluationResult != null) {
|
|
1934
1910
|
contents.evaluationResult = __expectString(data.evaluationResult);
|
|
1935
1911
|
}
|
|
1936
1912
|
if (data.logs != null) {
|
|
1937
|
-
contents.logs =
|
|
1913
|
+
contents.logs = de_Logs(data.logs, context);
|
|
1938
1914
|
}
|
|
1939
1915
|
return contents;
|
|
1940
1916
|
};
|
|
1941
|
-
const
|
|
1917
|
+
const de_EvaluateCodeCommandError = async (output, context) => {
|
|
1942
1918
|
const parsedOutput = {
|
|
1943
1919
|
...output,
|
|
1944
1920
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1947,13 +1923,13 @@ const deserializeAws_restJson1EvaluateCodeCommandError = async (output, context)
|
|
|
1947
1923
|
switch (errorCode) {
|
|
1948
1924
|
case "AccessDeniedException":
|
|
1949
1925
|
case "com.amazonaws.appsync#AccessDeniedException":
|
|
1950
|
-
throw await
|
|
1926
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1951
1927
|
case "BadRequestException":
|
|
1952
1928
|
case "com.amazonaws.appsync#BadRequestException":
|
|
1953
|
-
throw await
|
|
1929
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1954
1930
|
case "InternalFailureException":
|
|
1955
1931
|
case "com.amazonaws.appsync#InternalFailureException":
|
|
1956
|
-
throw await
|
|
1932
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1957
1933
|
default:
|
|
1958
1934
|
const parsedBody = parsedOutput.body;
|
|
1959
1935
|
throwDefaultError({
|
|
@@ -1964,26 +1940,26 @@ const deserializeAws_restJson1EvaluateCodeCommandError = async (output, context)
|
|
|
1964
1940
|
});
|
|
1965
1941
|
}
|
|
1966
1942
|
};
|
|
1967
|
-
export const
|
|
1943
|
+
export const de_EvaluateMappingTemplateCommand = async (output, context) => {
|
|
1968
1944
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1969
|
-
return
|
|
1945
|
+
return de_EvaluateMappingTemplateCommandError(output, context);
|
|
1970
1946
|
}
|
|
1971
1947
|
const contents = map({
|
|
1972
1948
|
$metadata: deserializeMetadata(output),
|
|
1973
1949
|
});
|
|
1974
1950
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1975
1951
|
if (data.error != null) {
|
|
1976
|
-
contents.error =
|
|
1952
|
+
contents.error = de_ErrorDetail(data.error, context);
|
|
1977
1953
|
}
|
|
1978
1954
|
if (data.evaluationResult != null) {
|
|
1979
1955
|
contents.evaluationResult = __expectString(data.evaluationResult);
|
|
1980
1956
|
}
|
|
1981
1957
|
if (data.logs != null) {
|
|
1982
|
-
contents.logs =
|
|
1958
|
+
contents.logs = de_Logs(data.logs, context);
|
|
1983
1959
|
}
|
|
1984
1960
|
return contents;
|
|
1985
1961
|
};
|
|
1986
|
-
const
|
|
1962
|
+
const de_EvaluateMappingTemplateCommandError = async (output, context) => {
|
|
1987
1963
|
const parsedOutput = {
|
|
1988
1964
|
...output,
|
|
1989
1965
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1992,13 +1968,13 @@ const deserializeAws_restJson1EvaluateMappingTemplateCommandError = async (outpu
|
|
|
1992
1968
|
switch (errorCode) {
|
|
1993
1969
|
case "AccessDeniedException":
|
|
1994
1970
|
case "com.amazonaws.appsync#AccessDeniedException":
|
|
1995
|
-
throw await
|
|
1971
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1996
1972
|
case "BadRequestException":
|
|
1997
1973
|
case "com.amazonaws.appsync#BadRequestException":
|
|
1998
|
-
throw await
|
|
1974
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1999
1975
|
case "InternalFailureException":
|
|
2000
1976
|
case "com.amazonaws.appsync#InternalFailureException":
|
|
2001
|
-
throw await
|
|
1977
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2002
1978
|
default:
|
|
2003
1979
|
const parsedBody = parsedOutput.body;
|
|
2004
1980
|
throwDefaultError({
|
|
@@ -2009,9 +1985,9 @@ const deserializeAws_restJson1EvaluateMappingTemplateCommandError = async (outpu
|
|
|
2009
1985
|
});
|
|
2010
1986
|
}
|
|
2011
1987
|
};
|
|
2012
|
-
export const
|
|
1988
|
+
export const de_FlushApiCacheCommand = async (output, context) => {
|
|
2013
1989
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2014
|
-
return
|
|
1990
|
+
return de_FlushApiCacheCommandError(output, context);
|
|
2015
1991
|
}
|
|
2016
1992
|
const contents = map({
|
|
2017
1993
|
$metadata: deserializeMetadata(output),
|
|
@@ -2019,7 +1995,7 @@ export const deserializeAws_restJson1FlushApiCacheCommand = async (output, conte
|
|
|
2019
1995
|
await collectBody(output.body, context);
|
|
2020
1996
|
return contents;
|
|
2021
1997
|
};
|
|
2022
|
-
const
|
|
1998
|
+
const de_FlushApiCacheCommandError = async (output, context) => {
|
|
2023
1999
|
const parsedOutput = {
|
|
2024
2000
|
...output,
|
|
2025
2001
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2028,19 +2004,19 @@ const deserializeAws_restJson1FlushApiCacheCommandError = async (output, context
|
|
|
2028
2004
|
switch (errorCode) {
|
|
2029
2005
|
case "BadRequestException":
|
|
2030
2006
|
case "com.amazonaws.appsync#BadRequestException":
|
|
2031
|
-
throw await
|
|
2007
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2032
2008
|
case "ConcurrentModificationException":
|
|
2033
2009
|
case "com.amazonaws.appsync#ConcurrentModificationException":
|
|
2034
|
-
throw await
|
|
2010
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
2035
2011
|
case "InternalFailureException":
|
|
2036
2012
|
case "com.amazonaws.appsync#InternalFailureException":
|
|
2037
|
-
throw await
|
|
2013
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2038
2014
|
case "NotFoundException":
|
|
2039
2015
|
case "com.amazonaws.appsync#NotFoundException":
|
|
2040
|
-
throw await
|
|
2016
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2041
2017
|
case "UnauthorizedException":
|
|
2042
2018
|
case "com.amazonaws.appsync#UnauthorizedException":
|
|
2043
|
-
throw await
|
|
2019
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2044
2020
|
default:
|
|
2045
2021
|
const parsedBody = parsedOutput.body;
|
|
2046
2022
|
throwDefaultError({
|
|
@@ -2051,20 +2027,20 @@ const deserializeAws_restJson1FlushApiCacheCommandError = async (output, context
|
|
|
2051
2027
|
});
|
|
2052
2028
|
}
|
|
2053
2029
|
};
|
|
2054
|
-
export const
|
|
2030
|
+
export const de_GetApiAssociationCommand = async (output, context) => {
|
|
2055
2031
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2056
|
-
return
|
|
2032
|
+
return de_GetApiAssociationCommandError(output, context);
|
|
2057
2033
|
}
|
|
2058
2034
|
const contents = map({
|
|
2059
2035
|
$metadata: deserializeMetadata(output),
|
|
2060
2036
|
});
|
|
2061
2037
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2062
2038
|
if (data.apiAssociation != null) {
|
|
2063
|
-
contents.apiAssociation =
|
|
2039
|
+
contents.apiAssociation = de_ApiAssociation(data.apiAssociation, context);
|
|
2064
2040
|
}
|
|
2065
2041
|
return contents;
|
|
2066
2042
|
};
|
|
2067
|
-
const
|
|
2043
|
+
const de_GetApiAssociationCommandError = async (output, context) => {
|
|
2068
2044
|
const parsedOutput = {
|
|
2069
2045
|
...output,
|
|
2070
2046
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2073,16 +2049,16 @@ const deserializeAws_restJson1GetApiAssociationCommandError = async (output, con
|
|
|
2073
2049
|
switch (errorCode) {
|
|
2074
2050
|
case "AccessDeniedException":
|
|
2075
2051
|
case "com.amazonaws.appsync#AccessDeniedException":
|
|
2076
|
-
throw await
|
|
2052
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2077
2053
|
case "BadRequestException":
|
|
2078
2054
|
case "com.amazonaws.appsync#BadRequestException":
|
|
2079
|
-
throw await
|
|
2055
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2080
2056
|
case "InternalFailureException":
|
|
2081
2057
|
case "com.amazonaws.appsync#InternalFailureException":
|
|
2082
|
-
throw await
|
|
2058
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2083
2059
|
case "NotFoundException":
|
|
2084
2060
|
case "com.amazonaws.appsync#NotFoundException":
|
|
2085
|
-
throw await
|
|
2061
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2086
2062
|
default:
|
|
2087
2063
|
const parsedBody = parsedOutput.body;
|
|
2088
2064
|
throwDefaultError({
|
|
@@ -2093,20 +2069,20 @@ const deserializeAws_restJson1GetApiAssociationCommandError = async (output, con
|
|
|
2093
2069
|
});
|
|
2094
2070
|
}
|
|
2095
2071
|
};
|
|
2096
|
-
export const
|
|
2072
|
+
export const de_GetApiCacheCommand = async (output, context) => {
|
|
2097
2073
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2098
|
-
return
|
|
2074
|
+
return de_GetApiCacheCommandError(output, context);
|
|
2099
2075
|
}
|
|
2100
2076
|
const contents = map({
|
|
2101
2077
|
$metadata: deserializeMetadata(output),
|
|
2102
2078
|
});
|
|
2103
2079
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2104
2080
|
if (data.apiCache != null) {
|
|
2105
|
-
contents.apiCache =
|
|
2081
|
+
contents.apiCache = de_ApiCache(data.apiCache, context);
|
|
2106
2082
|
}
|
|
2107
2083
|
return contents;
|
|
2108
2084
|
};
|
|
2109
|
-
const
|
|
2085
|
+
const de_GetApiCacheCommandError = async (output, context) => {
|
|
2110
2086
|
const parsedOutput = {
|
|
2111
2087
|
...output,
|
|
2112
2088
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2115,19 +2091,19 @@ const deserializeAws_restJson1GetApiCacheCommandError = async (output, context)
|
|
|
2115
2091
|
switch (errorCode) {
|
|
2116
2092
|
case "BadRequestException":
|
|
2117
2093
|
case "com.amazonaws.appsync#BadRequestException":
|
|
2118
|
-
throw await
|
|
2094
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2119
2095
|
case "ConcurrentModificationException":
|
|
2120
2096
|
case "com.amazonaws.appsync#ConcurrentModificationException":
|
|
2121
|
-
throw await
|
|
2097
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
2122
2098
|
case "InternalFailureException":
|
|
2123
2099
|
case "com.amazonaws.appsync#InternalFailureException":
|
|
2124
|
-
throw await
|
|
2100
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2125
2101
|
case "NotFoundException":
|
|
2126
2102
|
case "com.amazonaws.appsync#NotFoundException":
|
|
2127
|
-
throw await
|
|
2103
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2128
2104
|
case "UnauthorizedException":
|
|
2129
2105
|
case "com.amazonaws.appsync#UnauthorizedException":
|
|
2130
|
-
throw await
|
|
2106
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2131
2107
|
default:
|
|
2132
2108
|
const parsedBody = parsedOutput.body;
|
|
2133
2109
|
throwDefaultError({
|
|
@@ -2138,20 +2114,20 @@ const deserializeAws_restJson1GetApiCacheCommandError = async (output, context)
|
|
|
2138
2114
|
});
|
|
2139
2115
|
}
|
|
2140
2116
|
};
|
|
2141
|
-
export const
|
|
2117
|
+
export const de_GetDataSourceCommand = async (output, context) => {
|
|
2142
2118
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2143
|
-
return
|
|
2119
|
+
return de_GetDataSourceCommandError(output, context);
|
|
2144
2120
|
}
|
|
2145
2121
|
const contents = map({
|
|
2146
2122
|
$metadata: deserializeMetadata(output),
|
|
2147
2123
|
});
|
|
2148
2124
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2149
2125
|
if (data.dataSource != null) {
|
|
2150
|
-
contents.dataSource =
|
|
2126
|
+
contents.dataSource = de_DataSource(data.dataSource, context);
|
|
2151
2127
|
}
|
|
2152
2128
|
return contents;
|
|
2153
2129
|
};
|
|
2154
|
-
const
|
|
2130
|
+
const de_GetDataSourceCommandError = async (output, context) => {
|
|
2155
2131
|
const parsedOutput = {
|
|
2156
2132
|
...output,
|
|
2157
2133
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2160,19 +2136,19 @@ const deserializeAws_restJson1GetDataSourceCommandError = async (output, context
|
|
|
2160
2136
|
switch (errorCode) {
|
|
2161
2137
|
case "BadRequestException":
|
|
2162
2138
|
case "com.amazonaws.appsync#BadRequestException":
|
|
2163
|
-
throw await
|
|
2139
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2164
2140
|
case "ConcurrentModificationException":
|
|
2165
2141
|
case "com.amazonaws.appsync#ConcurrentModificationException":
|
|
2166
|
-
throw await
|
|
2142
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
2167
2143
|
case "InternalFailureException":
|
|
2168
2144
|
case "com.amazonaws.appsync#InternalFailureException":
|
|
2169
|
-
throw await
|
|
2145
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2170
2146
|
case "NotFoundException":
|
|
2171
2147
|
case "com.amazonaws.appsync#NotFoundException":
|
|
2172
|
-
throw await
|
|
2148
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2173
2149
|
case "UnauthorizedException":
|
|
2174
2150
|
case "com.amazonaws.appsync#UnauthorizedException":
|
|
2175
|
-
throw await
|
|
2151
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2176
2152
|
default:
|
|
2177
2153
|
const parsedBody = parsedOutput.body;
|
|
2178
2154
|
throwDefaultError({
|
|
@@ -2183,20 +2159,20 @@ const deserializeAws_restJson1GetDataSourceCommandError = async (output, context
|
|
|
2183
2159
|
});
|
|
2184
2160
|
}
|
|
2185
2161
|
};
|
|
2186
|
-
export const
|
|
2162
|
+
export const de_GetDomainNameCommand = async (output, context) => {
|
|
2187
2163
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2188
|
-
return
|
|
2164
|
+
return de_GetDomainNameCommandError(output, context);
|
|
2189
2165
|
}
|
|
2190
2166
|
const contents = map({
|
|
2191
2167
|
$metadata: deserializeMetadata(output),
|
|
2192
2168
|
});
|
|
2193
2169
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2194
2170
|
if (data.domainNameConfig != null) {
|
|
2195
|
-
contents.domainNameConfig =
|
|
2171
|
+
contents.domainNameConfig = de_DomainNameConfig(data.domainNameConfig, context);
|
|
2196
2172
|
}
|
|
2197
2173
|
return contents;
|
|
2198
2174
|
};
|
|
2199
|
-
const
|
|
2175
|
+
const de_GetDomainNameCommandError = async (output, context) => {
|
|
2200
2176
|
const parsedOutput = {
|
|
2201
2177
|
...output,
|
|
2202
2178
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2205,16 +2181,16 @@ const deserializeAws_restJson1GetDomainNameCommandError = async (output, context
|
|
|
2205
2181
|
switch (errorCode) {
|
|
2206
2182
|
case "AccessDeniedException":
|
|
2207
2183
|
case "com.amazonaws.appsync#AccessDeniedException":
|
|
2208
|
-
throw await
|
|
2184
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2209
2185
|
case "BadRequestException":
|
|
2210
2186
|
case "com.amazonaws.appsync#BadRequestException":
|
|
2211
|
-
throw await
|
|
2187
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2212
2188
|
case "InternalFailureException":
|
|
2213
2189
|
case "com.amazonaws.appsync#InternalFailureException":
|
|
2214
|
-
throw await
|
|
2190
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2215
2191
|
case "NotFoundException":
|
|
2216
2192
|
case "com.amazonaws.appsync#NotFoundException":
|
|
2217
|
-
throw await
|
|
2193
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2218
2194
|
default:
|
|
2219
2195
|
const parsedBody = parsedOutput.body;
|
|
2220
2196
|
throwDefaultError({
|
|
@@ -2225,20 +2201,20 @@ const deserializeAws_restJson1GetDomainNameCommandError = async (output, context
|
|
|
2225
2201
|
});
|
|
2226
2202
|
}
|
|
2227
2203
|
};
|
|
2228
|
-
export const
|
|
2204
|
+
export const de_GetFunctionCommand = async (output, context) => {
|
|
2229
2205
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2230
|
-
return
|
|
2206
|
+
return de_GetFunctionCommandError(output, context);
|
|
2231
2207
|
}
|
|
2232
2208
|
const contents = map({
|
|
2233
2209
|
$metadata: deserializeMetadata(output),
|
|
2234
2210
|
});
|
|
2235
2211
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2236
2212
|
if (data.functionConfiguration != null) {
|
|
2237
|
-
contents.functionConfiguration =
|
|
2213
|
+
contents.functionConfiguration = de_FunctionConfiguration(data.functionConfiguration, context);
|
|
2238
2214
|
}
|
|
2239
2215
|
return contents;
|
|
2240
2216
|
};
|
|
2241
|
-
const
|
|
2217
|
+
const de_GetFunctionCommandError = async (output, context) => {
|
|
2242
2218
|
const parsedOutput = {
|
|
2243
2219
|
...output,
|
|
2244
2220
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2247,13 +2223,13 @@ const deserializeAws_restJson1GetFunctionCommandError = async (output, context)
|
|
|
2247
2223
|
switch (errorCode) {
|
|
2248
2224
|
case "ConcurrentModificationException":
|
|
2249
2225
|
case "com.amazonaws.appsync#ConcurrentModificationException":
|
|
2250
|
-
throw await
|
|
2226
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
2251
2227
|
case "NotFoundException":
|
|
2252
2228
|
case "com.amazonaws.appsync#NotFoundException":
|
|
2253
|
-
throw await
|
|
2229
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2254
2230
|
case "UnauthorizedException":
|
|
2255
2231
|
case "com.amazonaws.appsync#UnauthorizedException":
|
|
2256
|
-
throw await
|
|
2232
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2257
2233
|
default:
|
|
2258
2234
|
const parsedBody = parsedOutput.body;
|
|
2259
2235
|
throwDefaultError({
|
|
@@ -2264,20 +2240,20 @@ const deserializeAws_restJson1GetFunctionCommandError = async (output, context)
|
|
|
2264
2240
|
});
|
|
2265
2241
|
}
|
|
2266
2242
|
};
|
|
2267
|
-
export const
|
|
2243
|
+
export const de_GetGraphqlApiCommand = async (output, context) => {
|
|
2268
2244
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2269
|
-
return
|
|
2245
|
+
return de_GetGraphqlApiCommandError(output, context);
|
|
2270
2246
|
}
|
|
2271
2247
|
const contents = map({
|
|
2272
2248
|
$metadata: deserializeMetadata(output),
|
|
2273
2249
|
});
|
|
2274
2250
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2275
2251
|
if (data.graphqlApi != null) {
|
|
2276
|
-
contents.graphqlApi =
|
|
2252
|
+
contents.graphqlApi = de_GraphqlApi(data.graphqlApi, context);
|
|
2277
2253
|
}
|
|
2278
2254
|
return contents;
|
|
2279
2255
|
};
|
|
2280
|
-
const
|
|
2256
|
+
const de_GetGraphqlApiCommandError = async (output, context) => {
|
|
2281
2257
|
const parsedOutput = {
|
|
2282
2258
|
...output,
|
|
2283
2259
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2286,19 +2262,19 @@ const deserializeAws_restJson1GetGraphqlApiCommandError = async (output, context
|
|
|
2286
2262
|
switch (errorCode) {
|
|
2287
2263
|
case "AccessDeniedException":
|
|
2288
2264
|
case "com.amazonaws.appsync#AccessDeniedException":
|
|
2289
|
-
throw await
|
|
2265
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2290
2266
|
case "BadRequestException":
|
|
2291
2267
|
case "com.amazonaws.appsync#BadRequestException":
|
|
2292
|
-
throw await
|
|
2268
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2293
2269
|
case "InternalFailureException":
|
|
2294
2270
|
case "com.amazonaws.appsync#InternalFailureException":
|
|
2295
|
-
throw await
|
|
2271
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2296
2272
|
case "NotFoundException":
|
|
2297
2273
|
case "com.amazonaws.appsync#NotFoundException":
|
|
2298
|
-
throw await
|
|
2274
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2299
2275
|
case "UnauthorizedException":
|
|
2300
2276
|
case "com.amazonaws.appsync#UnauthorizedException":
|
|
2301
|
-
throw await
|
|
2277
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2302
2278
|
default:
|
|
2303
2279
|
const parsedBody = parsedOutput.body;
|
|
2304
2280
|
throwDefaultError({
|
|
@@ -2309,9 +2285,9 @@ const deserializeAws_restJson1GetGraphqlApiCommandError = async (output, context
|
|
|
2309
2285
|
});
|
|
2310
2286
|
}
|
|
2311
2287
|
};
|
|
2312
|
-
export const
|
|
2288
|
+
export const de_GetIntrospectionSchemaCommand = async (output, context) => {
|
|
2313
2289
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2314
|
-
return
|
|
2290
|
+
return de_GetIntrospectionSchemaCommandError(output, context);
|
|
2315
2291
|
}
|
|
2316
2292
|
const contents = map({
|
|
2317
2293
|
$metadata: deserializeMetadata(output),
|
|
@@ -2320,7 +2296,7 @@ export const deserializeAws_restJson1GetIntrospectionSchemaCommand = async (outp
|
|
|
2320
2296
|
contents.schema = data;
|
|
2321
2297
|
return contents;
|
|
2322
2298
|
};
|
|
2323
|
-
const
|
|
2299
|
+
const de_GetIntrospectionSchemaCommandError = async (output, context) => {
|
|
2324
2300
|
const parsedOutput = {
|
|
2325
2301
|
...output,
|
|
2326
2302
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2329,16 +2305,16 @@ const deserializeAws_restJson1GetIntrospectionSchemaCommandError = async (output
|
|
|
2329
2305
|
switch (errorCode) {
|
|
2330
2306
|
case "GraphQLSchemaException":
|
|
2331
2307
|
case "com.amazonaws.appsync#GraphQLSchemaException":
|
|
2332
|
-
throw await
|
|
2308
|
+
throw await de_GraphQLSchemaExceptionRes(parsedOutput, context);
|
|
2333
2309
|
case "InternalFailureException":
|
|
2334
2310
|
case "com.amazonaws.appsync#InternalFailureException":
|
|
2335
|
-
throw await
|
|
2311
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2336
2312
|
case "NotFoundException":
|
|
2337
2313
|
case "com.amazonaws.appsync#NotFoundException":
|
|
2338
|
-
throw await
|
|
2314
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2339
2315
|
case "UnauthorizedException":
|
|
2340
2316
|
case "com.amazonaws.appsync#UnauthorizedException":
|
|
2341
|
-
throw await
|
|
2317
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2342
2318
|
default:
|
|
2343
2319
|
const parsedBody = parsedOutput.body;
|
|
2344
2320
|
throwDefaultError({
|
|
@@ -2349,20 +2325,20 @@ const deserializeAws_restJson1GetIntrospectionSchemaCommandError = async (output
|
|
|
2349
2325
|
});
|
|
2350
2326
|
}
|
|
2351
2327
|
};
|
|
2352
|
-
export const
|
|
2328
|
+
export const de_GetResolverCommand = async (output, context) => {
|
|
2353
2329
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2354
|
-
return
|
|
2330
|
+
return de_GetResolverCommandError(output, context);
|
|
2355
2331
|
}
|
|
2356
2332
|
const contents = map({
|
|
2357
2333
|
$metadata: deserializeMetadata(output),
|
|
2358
2334
|
});
|
|
2359
2335
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2360
2336
|
if (data.resolver != null) {
|
|
2361
|
-
contents.resolver =
|
|
2337
|
+
contents.resolver = de_Resolver(data.resolver, context);
|
|
2362
2338
|
}
|
|
2363
2339
|
return contents;
|
|
2364
2340
|
};
|
|
2365
|
-
const
|
|
2341
|
+
const de_GetResolverCommandError = async (output, context) => {
|
|
2366
2342
|
const parsedOutput = {
|
|
2367
2343
|
...output,
|
|
2368
2344
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2371,13 +2347,13 @@ const deserializeAws_restJson1GetResolverCommandError = async (output, context)
|
|
|
2371
2347
|
switch (errorCode) {
|
|
2372
2348
|
case "ConcurrentModificationException":
|
|
2373
2349
|
case "com.amazonaws.appsync#ConcurrentModificationException":
|
|
2374
|
-
throw await
|
|
2350
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
2375
2351
|
case "NotFoundException":
|
|
2376
2352
|
case "com.amazonaws.appsync#NotFoundException":
|
|
2377
|
-
throw await
|
|
2353
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2378
2354
|
case "UnauthorizedException":
|
|
2379
2355
|
case "com.amazonaws.appsync#UnauthorizedException":
|
|
2380
|
-
throw await
|
|
2356
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2381
2357
|
default:
|
|
2382
2358
|
const parsedBody = parsedOutput.body;
|
|
2383
2359
|
throwDefaultError({
|
|
@@ -2388,9 +2364,9 @@ const deserializeAws_restJson1GetResolverCommandError = async (output, context)
|
|
|
2388
2364
|
});
|
|
2389
2365
|
}
|
|
2390
2366
|
};
|
|
2391
|
-
export const
|
|
2367
|
+
export const de_GetSchemaCreationStatusCommand = async (output, context) => {
|
|
2392
2368
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2393
|
-
return
|
|
2369
|
+
return de_GetSchemaCreationStatusCommandError(output, context);
|
|
2394
2370
|
}
|
|
2395
2371
|
const contents = map({
|
|
2396
2372
|
$metadata: deserializeMetadata(output),
|
|
@@ -2404,7 +2380,7 @@ export const deserializeAws_restJson1GetSchemaCreationStatusCommand = async (out
|
|
|
2404
2380
|
}
|
|
2405
2381
|
return contents;
|
|
2406
2382
|
};
|
|
2407
|
-
const
|
|
2383
|
+
const de_GetSchemaCreationStatusCommandError = async (output, context) => {
|
|
2408
2384
|
const parsedOutput = {
|
|
2409
2385
|
...output,
|
|
2410
2386
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2413,16 +2389,16 @@ const deserializeAws_restJson1GetSchemaCreationStatusCommandError = async (outpu
|
|
|
2413
2389
|
switch (errorCode) {
|
|
2414
2390
|
case "BadRequestException":
|
|
2415
2391
|
case "com.amazonaws.appsync#BadRequestException":
|
|
2416
|
-
throw await
|
|
2392
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2417
2393
|
case "InternalFailureException":
|
|
2418
2394
|
case "com.amazonaws.appsync#InternalFailureException":
|
|
2419
|
-
throw await
|
|
2395
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2420
2396
|
case "NotFoundException":
|
|
2421
2397
|
case "com.amazonaws.appsync#NotFoundException":
|
|
2422
|
-
throw await
|
|
2398
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2423
2399
|
case "UnauthorizedException":
|
|
2424
2400
|
case "com.amazonaws.appsync#UnauthorizedException":
|
|
2425
|
-
throw await
|
|
2401
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2426
2402
|
default:
|
|
2427
2403
|
const parsedBody = parsedOutput.body;
|
|
2428
2404
|
throwDefaultError({
|
|
@@ -2433,20 +2409,20 @@ const deserializeAws_restJson1GetSchemaCreationStatusCommandError = async (outpu
|
|
|
2433
2409
|
});
|
|
2434
2410
|
}
|
|
2435
2411
|
};
|
|
2436
|
-
export const
|
|
2412
|
+
export const de_GetTypeCommand = async (output, context) => {
|
|
2437
2413
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2438
|
-
return
|
|
2414
|
+
return de_GetTypeCommandError(output, context);
|
|
2439
2415
|
}
|
|
2440
2416
|
const contents = map({
|
|
2441
2417
|
$metadata: deserializeMetadata(output),
|
|
2442
2418
|
});
|
|
2443
2419
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2444
2420
|
if (data.type != null) {
|
|
2445
|
-
contents.type =
|
|
2421
|
+
contents.type = de_Type(data.type, context);
|
|
2446
2422
|
}
|
|
2447
2423
|
return contents;
|
|
2448
2424
|
};
|
|
2449
|
-
const
|
|
2425
|
+
const de_GetTypeCommandError = async (output, context) => {
|
|
2450
2426
|
const parsedOutput = {
|
|
2451
2427
|
...output,
|
|
2452
2428
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2455,19 +2431,19 @@ const deserializeAws_restJson1GetTypeCommandError = async (output, context) => {
|
|
|
2455
2431
|
switch (errorCode) {
|
|
2456
2432
|
case "BadRequestException":
|
|
2457
2433
|
case "com.amazonaws.appsync#BadRequestException":
|
|
2458
|
-
throw await
|
|
2434
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2459
2435
|
case "ConcurrentModificationException":
|
|
2460
2436
|
case "com.amazonaws.appsync#ConcurrentModificationException":
|
|
2461
|
-
throw await
|
|
2437
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
2462
2438
|
case "InternalFailureException":
|
|
2463
2439
|
case "com.amazonaws.appsync#InternalFailureException":
|
|
2464
|
-
throw await
|
|
2440
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2465
2441
|
case "NotFoundException":
|
|
2466
2442
|
case "com.amazonaws.appsync#NotFoundException":
|
|
2467
|
-
throw await
|
|
2443
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2468
2444
|
case "UnauthorizedException":
|
|
2469
2445
|
case "com.amazonaws.appsync#UnauthorizedException":
|
|
2470
|
-
throw await
|
|
2446
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2471
2447
|
default:
|
|
2472
2448
|
const parsedBody = parsedOutput.body;
|
|
2473
2449
|
throwDefaultError({
|
|
@@ -2478,23 +2454,23 @@ const deserializeAws_restJson1GetTypeCommandError = async (output, context) => {
|
|
|
2478
2454
|
});
|
|
2479
2455
|
}
|
|
2480
2456
|
};
|
|
2481
|
-
export const
|
|
2457
|
+
export const de_ListApiKeysCommand = async (output, context) => {
|
|
2482
2458
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2483
|
-
return
|
|
2459
|
+
return de_ListApiKeysCommandError(output, context);
|
|
2484
2460
|
}
|
|
2485
2461
|
const contents = map({
|
|
2486
2462
|
$metadata: deserializeMetadata(output),
|
|
2487
2463
|
});
|
|
2488
2464
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2489
2465
|
if (data.apiKeys != null) {
|
|
2490
|
-
contents.apiKeys =
|
|
2466
|
+
contents.apiKeys = de_ApiKeys(data.apiKeys, context);
|
|
2491
2467
|
}
|
|
2492
2468
|
if (data.nextToken != null) {
|
|
2493
2469
|
contents.nextToken = __expectString(data.nextToken);
|
|
2494
2470
|
}
|
|
2495
2471
|
return contents;
|
|
2496
2472
|
};
|
|
2497
|
-
const
|
|
2473
|
+
const de_ListApiKeysCommandError = async (output, context) => {
|
|
2498
2474
|
const parsedOutput = {
|
|
2499
2475
|
...output,
|
|
2500
2476
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2503,16 +2479,16 @@ const deserializeAws_restJson1ListApiKeysCommandError = async (output, context)
|
|
|
2503
2479
|
switch (errorCode) {
|
|
2504
2480
|
case "BadRequestException":
|
|
2505
2481
|
case "com.amazonaws.appsync#BadRequestException":
|
|
2506
|
-
throw await
|
|
2482
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2507
2483
|
case "InternalFailureException":
|
|
2508
2484
|
case "com.amazonaws.appsync#InternalFailureException":
|
|
2509
|
-
throw await
|
|
2485
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2510
2486
|
case "NotFoundException":
|
|
2511
2487
|
case "com.amazonaws.appsync#NotFoundException":
|
|
2512
|
-
throw await
|
|
2488
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2513
2489
|
case "UnauthorizedException":
|
|
2514
2490
|
case "com.amazonaws.appsync#UnauthorizedException":
|
|
2515
|
-
throw await
|
|
2491
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2516
2492
|
default:
|
|
2517
2493
|
const parsedBody = parsedOutput.body;
|
|
2518
2494
|
throwDefaultError({
|
|
@@ -2523,23 +2499,23 @@ const deserializeAws_restJson1ListApiKeysCommandError = async (output, context)
|
|
|
2523
2499
|
});
|
|
2524
2500
|
}
|
|
2525
2501
|
};
|
|
2526
|
-
export const
|
|
2502
|
+
export const de_ListDataSourcesCommand = async (output, context) => {
|
|
2527
2503
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2528
|
-
return
|
|
2504
|
+
return de_ListDataSourcesCommandError(output, context);
|
|
2529
2505
|
}
|
|
2530
2506
|
const contents = map({
|
|
2531
2507
|
$metadata: deserializeMetadata(output),
|
|
2532
2508
|
});
|
|
2533
2509
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2534
2510
|
if (data.dataSources != null) {
|
|
2535
|
-
contents.dataSources =
|
|
2511
|
+
contents.dataSources = de_DataSources(data.dataSources, context);
|
|
2536
2512
|
}
|
|
2537
2513
|
if (data.nextToken != null) {
|
|
2538
2514
|
contents.nextToken = __expectString(data.nextToken);
|
|
2539
2515
|
}
|
|
2540
2516
|
return contents;
|
|
2541
2517
|
};
|
|
2542
|
-
const
|
|
2518
|
+
const de_ListDataSourcesCommandError = async (output, context) => {
|
|
2543
2519
|
const parsedOutput = {
|
|
2544
2520
|
...output,
|
|
2545
2521
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2548,16 +2524,16 @@ const deserializeAws_restJson1ListDataSourcesCommandError = async (output, conte
|
|
|
2548
2524
|
switch (errorCode) {
|
|
2549
2525
|
case "BadRequestException":
|
|
2550
2526
|
case "com.amazonaws.appsync#BadRequestException":
|
|
2551
|
-
throw await
|
|
2527
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2552
2528
|
case "InternalFailureException":
|
|
2553
2529
|
case "com.amazonaws.appsync#InternalFailureException":
|
|
2554
|
-
throw await
|
|
2530
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2555
2531
|
case "NotFoundException":
|
|
2556
2532
|
case "com.amazonaws.appsync#NotFoundException":
|
|
2557
|
-
throw await
|
|
2533
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2558
2534
|
case "UnauthorizedException":
|
|
2559
2535
|
case "com.amazonaws.appsync#UnauthorizedException":
|
|
2560
|
-
throw await
|
|
2536
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2561
2537
|
default:
|
|
2562
2538
|
const parsedBody = parsedOutput.body;
|
|
2563
2539
|
throwDefaultError({
|
|
@@ -2568,23 +2544,23 @@ const deserializeAws_restJson1ListDataSourcesCommandError = async (output, conte
|
|
|
2568
2544
|
});
|
|
2569
2545
|
}
|
|
2570
2546
|
};
|
|
2571
|
-
export const
|
|
2547
|
+
export const de_ListDomainNamesCommand = async (output, context) => {
|
|
2572
2548
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2573
|
-
return
|
|
2549
|
+
return de_ListDomainNamesCommandError(output, context);
|
|
2574
2550
|
}
|
|
2575
2551
|
const contents = map({
|
|
2576
2552
|
$metadata: deserializeMetadata(output),
|
|
2577
2553
|
});
|
|
2578
2554
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2579
2555
|
if (data.domainNameConfigs != null) {
|
|
2580
|
-
contents.domainNameConfigs =
|
|
2556
|
+
contents.domainNameConfigs = de_DomainNameConfigs(data.domainNameConfigs, context);
|
|
2581
2557
|
}
|
|
2582
2558
|
if (data.nextToken != null) {
|
|
2583
2559
|
contents.nextToken = __expectString(data.nextToken);
|
|
2584
2560
|
}
|
|
2585
2561
|
return contents;
|
|
2586
2562
|
};
|
|
2587
|
-
const
|
|
2563
|
+
const de_ListDomainNamesCommandError = async (output, context) => {
|
|
2588
2564
|
const parsedOutput = {
|
|
2589
2565
|
...output,
|
|
2590
2566
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2593,13 +2569,13 @@ const deserializeAws_restJson1ListDomainNamesCommandError = async (output, conte
|
|
|
2593
2569
|
switch (errorCode) {
|
|
2594
2570
|
case "AccessDeniedException":
|
|
2595
2571
|
case "com.amazonaws.appsync#AccessDeniedException":
|
|
2596
|
-
throw await
|
|
2572
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2597
2573
|
case "BadRequestException":
|
|
2598
2574
|
case "com.amazonaws.appsync#BadRequestException":
|
|
2599
|
-
throw await
|
|
2575
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2600
2576
|
case "InternalFailureException":
|
|
2601
2577
|
case "com.amazonaws.appsync#InternalFailureException":
|
|
2602
|
-
throw await
|
|
2578
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2603
2579
|
default:
|
|
2604
2580
|
const parsedBody = parsedOutput.body;
|
|
2605
2581
|
throwDefaultError({
|
|
@@ -2610,23 +2586,23 @@ const deserializeAws_restJson1ListDomainNamesCommandError = async (output, conte
|
|
|
2610
2586
|
});
|
|
2611
2587
|
}
|
|
2612
2588
|
};
|
|
2613
|
-
export const
|
|
2589
|
+
export const de_ListFunctionsCommand = async (output, context) => {
|
|
2614
2590
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2615
|
-
return
|
|
2591
|
+
return de_ListFunctionsCommandError(output, context);
|
|
2616
2592
|
}
|
|
2617
2593
|
const contents = map({
|
|
2618
2594
|
$metadata: deserializeMetadata(output),
|
|
2619
2595
|
});
|
|
2620
2596
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2621
2597
|
if (data.functions != null) {
|
|
2622
|
-
contents.functions =
|
|
2598
|
+
contents.functions = de_Functions(data.functions, context);
|
|
2623
2599
|
}
|
|
2624
2600
|
if (data.nextToken != null) {
|
|
2625
2601
|
contents.nextToken = __expectString(data.nextToken);
|
|
2626
2602
|
}
|
|
2627
2603
|
return contents;
|
|
2628
2604
|
};
|
|
2629
|
-
const
|
|
2605
|
+
const de_ListFunctionsCommandError = async (output, context) => {
|
|
2630
2606
|
const parsedOutput = {
|
|
2631
2607
|
...output,
|
|
2632
2608
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2635,16 +2611,16 @@ const deserializeAws_restJson1ListFunctionsCommandError = async (output, context
|
|
|
2635
2611
|
switch (errorCode) {
|
|
2636
2612
|
case "BadRequestException":
|
|
2637
2613
|
case "com.amazonaws.appsync#BadRequestException":
|
|
2638
|
-
throw await
|
|
2614
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2639
2615
|
case "InternalFailureException":
|
|
2640
2616
|
case "com.amazonaws.appsync#InternalFailureException":
|
|
2641
|
-
throw await
|
|
2617
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2642
2618
|
case "NotFoundException":
|
|
2643
2619
|
case "com.amazonaws.appsync#NotFoundException":
|
|
2644
|
-
throw await
|
|
2620
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2645
2621
|
case "UnauthorizedException":
|
|
2646
2622
|
case "com.amazonaws.appsync#UnauthorizedException":
|
|
2647
|
-
throw await
|
|
2623
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2648
2624
|
default:
|
|
2649
2625
|
const parsedBody = parsedOutput.body;
|
|
2650
2626
|
throwDefaultError({
|
|
@@ -2655,23 +2631,23 @@ const deserializeAws_restJson1ListFunctionsCommandError = async (output, context
|
|
|
2655
2631
|
});
|
|
2656
2632
|
}
|
|
2657
2633
|
};
|
|
2658
|
-
export const
|
|
2634
|
+
export const de_ListGraphqlApisCommand = async (output, context) => {
|
|
2659
2635
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2660
|
-
return
|
|
2636
|
+
return de_ListGraphqlApisCommandError(output, context);
|
|
2661
2637
|
}
|
|
2662
2638
|
const contents = map({
|
|
2663
2639
|
$metadata: deserializeMetadata(output),
|
|
2664
2640
|
});
|
|
2665
2641
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2666
2642
|
if (data.graphqlApis != null) {
|
|
2667
|
-
contents.graphqlApis =
|
|
2643
|
+
contents.graphqlApis = de_GraphqlApis(data.graphqlApis, context);
|
|
2668
2644
|
}
|
|
2669
2645
|
if (data.nextToken != null) {
|
|
2670
2646
|
contents.nextToken = __expectString(data.nextToken);
|
|
2671
2647
|
}
|
|
2672
2648
|
return contents;
|
|
2673
2649
|
};
|
|
2674
|
-
const
|
|
2650
|
+
const de_ListGraphqlApisCommandError = async (output, context) => {
|
|
2675
2651
|
const parsedOutput = {
|
|
2676
2652
|
...output,
|
|
2677
2653
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2680,13 +2656,13 @@ const deserializeAws_restJson1ListGraphqlApisCommandError = async (output, conte
|
|
|
2680
2656
|
switch (errorCode) {
|
|
2681
2657
|
case "BadRequestException":
|
|
2682
2658
|
case "com.amazonaws.appsync#BadRequestException":
|
|
2683
|
-
throw await
|
|
2659
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2684
2660
|
case "InternalFailureException":
|
|
2685
2661
|
case "com.amazonaws.appsync#InternalFailureException":
|
|
2686
|
-
throw await
|
|
2662
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2687
2663
|
case "UnauthorizedException":
|
|
2688
2664
|
case "com.amazonaws.appsync#UnauthorizedException":
|
|
2689
|
-
throw await
|
|
2665
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2690
2666
|
default:
|
|
2691
2667
|
const parsedBody = parsedOutput.body;
|
|
2692
2668
|
throwDefaultError({
|
|
@@ -2697,9 +2673,9 @@ const deserializeAws_restJson1ListGraphqlApisCommandError = async (output, conte
|
|
|
2697
2673
|
});
|
|
2698
2674
|
}
|
|
2699
2675
|
};
|
|
2700
|
-
export const
|
|
2676
|
+
export const de_ListResolversCommand = async (output, context) => {
|
|
2701
2677
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2702
|
-
return
|
|
2678
|
+
return de_ListResolversCommandError(output, context);
|
|
2703
2679
|
}
|
|
2704
2680
|
const contents = map({
|
|
2705
2681
|
$metadata: deserializeMetadata(output),
|
|
@@ -2709,11 +2685,11 @@ export const deserializeAws_restJson1ListResolversCommand = async (output, conte
|
|
|
2709
2685
|
contents.nextToken = __expectString(data.nextToken);
|
|
2710
2686
|
}
|
|
2711
2687
|
if (data.resolvers != null) {
|
|
2712
|
-
contents.resolvers =
|
|
2688
|
+
contents.resolvers = de_Resolvers(data.resolvers, context);
|
|
2713
2689
|
}
|
|
2714
2690
|
return contents;
|
|
2715
2691
|
};
|
|
2716
|
-
const
|
|
2692
|
+
const de_ListResolversCommandError = async (output, context) => {
|
|
2717
2693
|
const parsedOutput = {
|
|
2718
2694
|
...output,
|
|
2719
2695
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2722,16 +2698,16 @@ const deserializeAws_restJson1ListResolversCommandError = async (output, context
|
|
|
2722
2698
|
switch (errorCode) {
|
|
2723
2699
|
case "BadRequestException":
|
|
2724
2700
|
case "com.amazonaws.appsync#BadRequestException":
|
|
2725
|
-
throw await
|
|
2701
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2726
2702
|
case "InternalFailureException":
|
|
2727
2703
|
case "com.amazonaws.appsync#InternalFailureException":
|
|
2728
|
-
throw await
|
|
2704
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2729
2705
|
case "NotFoundException":
|
|
2730
2706
|
case "com.amazonaws.appsync#NotFoundException":
|
|
2731
|
-
throw await
|
|
2707
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2732
2708
|
case "UnauthorizedException":
|
|
2733
2709
|
case "com.amazonaws.appsync#UnauthorizedException":
|
|
2734
|
-
throw await
|
|
2710
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2735
2711
|
default:
|
|
2736
2712
|
const parsedBody = parsedOutput.body;
|
|
2737
2713
|
throwDefaultError({
|
|
@@ -2742,9 +2718,9 @@ const deserializeAws_restJson1ListResolversCommandError = async (output, context
|
|
|
2742
2718
|
});
|
|
2743
2719
|
}
|
|
2744
2720
|
};
|
|
2745
|
-
export const
|
|
2721
|
+
export const de_ListResolversByFunctionCommand = async (output, context) => {
|
|
2746
2722
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2747
|
-
return
|
|
2723
|
+
return de_ListResolversByFunctionCommandError(output, context);
|
|
2748
2724
|
}
|
|
2749
2725
|
const contents = map({
|
|
2750
2726
|
$metadata: deserializeMetadata(output),
|
|
@@ -2754,11 +2730,11 @@ export const deserializeAws_restJson1ListResolversByFunctionCommand = async (out
|
|
|
2754
2730
|
contents.nextToken = __expectString(data.nextToken);
|
|
2755
2731
|
}
|
|
2756
2732
|
if (data.resolvers != null) {
|
|
2757
|
-
contents.resolvers =
|
|
2733
|
+
contents.resolvers = de_Resolvers(data.resolvers, context);
|
|
2758
2734
|
}
|
|
2759
2735
|
return contents;
|
|
2760
2736
|
};
|
|
2761
|
-
const
|
|
2737
|
+
const de_ListResolversByFunctionCommandError = async (output, context) => {
|
|
2762
2738
|
const parsedOutput = {
|
|
2763
2739
|
...output,
|
|
2764
2740
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2767,16 +2743,16 @@ const deserializeAws_restJson1ListResolversByFunctionCommandError = async (outpu
|
|
|
2767
2743
|
switch (errorCode) {
|
|
2768
2744
|
case "BadRequestException":
|
|
2769
2745
|
case "com.amazonaws.appsync#BadRequestException":
|
|
2770
|
-
throw await
|
|
2746
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2771
2747
|
case "InternalFailureException":
|
|
2772
2748
|
case "com.amazonaws.appsync#InternalFailureException":
|
|
2773
|
-
throw await
|
|
2749
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2774
2750
|
case "NotFoundException":
|
|
2775
2751
|
case "com.amazonaws.appsync#NotFoundException":
|
|
2776
|
-
throw await
|
|
2752
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2777
2753
|
case "UnauthorizedException":
|
|
2778
2754
|
case "com.amazonaws.appsync#UnauthorizedException":
|
|
2779
|
-
throw await
|
|
2755
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2780
2756
|
default:
|
|
2781
2757
|
const parsedBody = parsedOutput.body;
|
|
2782
2758
|
throwDefaultError({
|
|
@@ -2787,20 +2763,20 @@ const deserializeAws_restJson1ListResolversByFunctionCommandError = async (outpu
|
|
|
2787
2763
|
});
|
|
2788
2764
|
}
|
|
2789
2765
|
};
|
|
2790
|
-
export const
|
|
2766
|
+
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
2791
2767
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2792
|
-
return
|
|
2768
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
2793
2769
|
}
|
|
2794
2770
|
const contents = map({
|
|
2795
2771
|
$metadata: deserializeMetadata(output),
|
|
2796
2772
|
});
|
|
2797
2773
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2798
2774
|
if (data.tags != null) {
|
|
2799
|
-
contents.tags =
|
|
2775
|
+
contents.tags = de_TagMap(data.tags, context);
|
|
2800
2776
|
}
|
|
2801
2777
|
return contents;
|
|
2802
2778
|
};
|
|
2803
|
-
const
|
|
2779
|
+
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
2804
2780
|
const parsedOutput = {
|
|
2805
2781
|
...output,
|
|
2806
2782
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2809,22 +2785,22 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
2809
2785
|
switch (errorCode) {
|
|
2810
2786
|
case "AccessDeniedException":
|
|
2811
2787
|
case "com.amazonaws.appsync#AccessDeniedException":
|
|
2812
|
-
throw await
|
|
2788
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2813
2789
|
case "BadRequestException":
|
|
2814
2790
|
case "com.amazonaws.appsync#BadRequestException":
|
|
2815
|
-
throw await
|
|
2791
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2816
2792
|
case "InternalFailureException":
|
|
2817
2793
|
case "com.amazonaws.appsync#InternalFailureException":
|
|
2818
|
-
throw await
|
|
2794
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2819
2795
|
case "LimitExceededException":
|
|
2820
2796
|
case "com.amazonaws.appsync#LimitExceededException":
|
|
2821
|
-
throw await
|
|
2797
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2822
2798
|
case "NotFoundException":
|
|
2823
2799
|
case "com.amazonaws.appsync#NotFoundException":
|
|
2824
|
-
throw await
|
|
2800
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2825
2801
|
case "UnauthorizedException":
|
|
2826
2802
|
case "com.amazonaws.appsync#UnauthorizedException":
|
|
2827
|
-
throw await
|
|
2803
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2828
2804
|
default:
|
|
2829
2805
|
const parsedBody = parsedOutput.body;
|
|
2830
2806
|
throwDefaultError({
|
|
@@ -2835,9 +2811,9 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
2835
2811
|
});
|
|
2836
2812
|
}
|
|
2837
2813
|
};
|
|
2838
|
-
export const
|
|
2814
|
+
export const de_ListTypesCommand = async (output, context) => {
|
|
2839
2815
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2840
|
-
return
|
|
2816
|
+
return de_ListTypesCommandError(output, context);
|
|
2841
2817
|
}
|
|
2842
2818
|
const contents = map({
|
|
2843
2819
|
$metadata: deserializeMetadata(output),
|
|
@@ -2847,11 +2823,11 @@ export const deserializeAws_restJson1ListTypesCommand = async (output, context)
|
|
|
2847
2823
|
contents.nextToken = __expectString(data.nextToken);
|
|
2848
2824
|
}
|
|
2849
2825
|
if (data.types != null) {
|
|
2850
|
-
contents.types =
|
|
2826
|
+
contents.types = de_TypeList(data.types, context);
|
|
2851
2827
|
}
|
|
2852
2828
|
return contents;
|
|
2853
2829
|
};
|
|
2854
|
-
const
|
|
2830
|
+
const de_ListTypesCommandError = async (output, context) => {
|
|
2855
2831
|
const parsedOutput = {
|
|
2856
2832
|
...output,
|
|
2857
2833
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2860,19 +2836,19 @@ const deserializeAws_restJson1ListTypesCommandError = async (output, context) =>
|
|
|
2860
2836
|
switch (errorCode) {
|
|
2861
2837
|
case "BadRequestException":
|
|
2862
2838
|
case "com.amazonaws.appsync#BadRequestException":
|
|
2863
|
-
throw await
|
|
2839
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2864
2840
|
case "ConcurrentModificationException":
|
|
2865
2841
|
case "com.amazonaws.appsync#ConcurrentModificationException":
|
|
2866
|
-
throw await
|
|
2842
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
2867
2843
|
case "InternalFailureException":
|
|
2868
2844
|
case "com.amazonaws.appsync#InternalFailureException":
|
|
2869
|
-
throw await
|
|
2845
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2870
2846
|
case "NotFoundException":
|
|
2871
2847
|
case "com.amazonaws.appsync#NotFoundException":
|
|
2872
|
-
throw await
|
|
2848
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2873
2849
|
case "UnauthorizedException":
|
|
2874
2850
|
case "com.amazonaws.appsync#UnauthorizedException":
|
|
2875
|
-
throw await
|
|
2851
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2876
2852
|
default:
|
|
2877
2853
|
const parsedBody = parsedOutput.body;
|
|
2878
2854
|
throwDefaultError({
|
|
@@ -2883,9 +2859,9 @@ const deserializeAws_restJson1ListTypesCommandError = async (output, context) =>
|
|
|
2883
2859
|
});
|
|
2884
2860
|
}
|
|
2885
2861
|
};
|
|
2886
|
-
export const
|
|
2862
|
+
export const de_StartSchemaCreationCommand = async (output, context) => {
|
|
2887
2863
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2888
|
-
return
|
|
2864
|
+
return de_StartSchemaCreationCommandError(output, context);
|
|
2889
2865
|
}
|
|
2890
2866
|
const contents = map({
|
|
2891
2867
|
$metadata: deserializeMetadata(output),
|
|
@@ -2896,7 +2872,7 @@ export const deserializeAws_restJson1StartSchemaCreationCommand = async (output,
|
|
|
2896
2872
|
}
|
|
2897
2873
|
return contents;
|
|
2898
2874
|
};
|
|
2899
|
-
const
|
|
2875
|
+
const de_StartSchemaCreationCommandError = async (output, context) => {
|
|
2900
2876
|
const parsedOutput = {
|
|
2901
2877
|
...output,
|
|
2902
2878
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2905,19 +2881,19 @@ const deserializeAws_restJson1StartSchemaCreationCommandError = async (output, c
|
|
|
2905
2881
|
switch (errorCode) {
|
|
2906
2882
|
case "BadRequestException":
|
|
2907
2883
|
case "com.amazonaws.appsync#BadRequestException":
|
|
2908
|
-
throw await
|
|
2884
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2909
2885
|
case "ConcurrentModificationException":
|
|
2910
2886
|
case "com.amazonaws.appsync#ConcurrentModificationException":
|
|
2911
|
-
throw await
|
|
2887
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
2912
2888
|
case "InternalFailureException":
|
|
2913
2889
|
case "com.amazonaws.appsync#InternalFailureException":
|
|
2914
|
-
throw await
|
|
2890
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2915
2891
|
case "NotFoundException":
|
|
2916
2892
|
case "com.amazonaws.appsync#NotFoundException":
|
|
2917
|
-
throw await
|
|
2893
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2918
2894
|
case "UnauthorizedException":
|
|
2919
2895
|
case "com.amazonaws.appsync#UnauthorizedException":
|
|
2920
|
-
throw await
|
|
2896
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2921
2897
|
default:
|
|
2922
2898
|
const parsedBody = parsedOutput.body;
|
|
2923
2899
|
throwDefaultError({
|
|
@@ -2928,9 +2904,9 @@ const deserializeAws_restJson1StartSchemaCreationCommandError = async (output, c
|
|
|
2928
2904
|
});
|
|
2929
2905
|
}
|
|
2930
2906
|
};
|
|
2931
|
-
export const
|
|
2907
|
+
export const de_TagResourceCommand = async (output, context) => {
|
|
2932
2908
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2933
|
-
return
|
|
2909
|
+
return de_TagResourceCommandError(output, context);
|
|
2934
2910
|
}
|
|
2935
2911
|
const contents = map({
|
|
2936
2912
|
$metadata: deserializeMetadata(output),
|
|
@@ -2938,7 +2914,7 @@ export const deserializeAws_restJson1TagResourceCommand = async (output, context
|
|
|
2938
2914
|
await collectBody(output.body, context);
|
|
2939
2915
|
return contents;
|
|
2940
2916
|
};
|
|
2941
|
-
const
|
|
2917
|
+
const de_TagResourceCommandError = async (output, context) => {
|
|
2942
2918
|
const parsedOutput = {
|
|
2943
2919
|
...output,
|
|
2944
2920
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2947,22 +2923,22 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
2947
2923
|
switch (errorCode) {
|
|
2948
2924
|
case "AccessDeniedException":
|
|
2949
2925
|
case "com.amazonaws.appsync#AccessDeniedException":
|
|
2950
|
-
throw await
|
|
2926
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2951
2927
|
case "BadRequestException":
|
|
2952
2928
|
case "com.amazonaws.appsync#BadRequestException":
|
|
2953
|
-
throw await
|
|
2929
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2954
2930
|
case "InternalFailureException":
|
|
2955
2931
|
case "com.amazonaws.appsync#InternalFailureException":
|
|
2956
|
-
throw await
|
|
2932
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2957
2933
|
case "LimitExceededException":
|
|
2958
2934
|
case "com.amazonaws.appsync#LimitExceededException":
|
|
2959
|
-
throw await
|
|
2935
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2960
2936
|
case "NotFoundException":
|
|
2961
2937
|
case "com.amazonaws.appsync#NotFoundException":
|
|
2962
|
-
throw await
|
|
2938
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2963
2939
|
case "UnauthorizedException":
|
|
2964
2940
|
case "com.amazonaws.appsync#UnauthorizedException":
|
|
2965
|
-
throw await
|
|
2941
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2966
2942
|
default:
|
|
2967
2943
|
const parsedBody = parsedOutput.body;
|
|
2968
2944
|
throwDefaultError({
|
|
@@ -2973,9 +2949,9 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
2973
2949
|
});
|
|
2974
2950
|
}
|
|
2975
2951
|
};
|
|
2976
|
-
export const
|
|
2952
|
+
export const de_UntagResourceCommand = async (output, context) => {
|
|
2977
2953
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2978
|
-
return
|
|
2954
|
+
return de_UntagResourceCommandError(output, context);
|
|
2979
2955
|
}
|
|
2980
2956
|
const contents = map({
|
|
2981
2957
|
$metadata: deserializeMetadata(output),
|
|
@@ -2983,7 +2959,7 @@ export const deserializeAws_restJson1UntagResourceCommand = async (output, conte
|
|
|
2983
2959
|
await collectBody(output.body, context);
|
|
2984
2960
|
return contents;
|
|
2985
2961
|
};
|
|
2986
|
-
const
|
|
2962
|
+
const de_UntagResourceCommandError = async (output, context) => {
|
|
2987
2963
|
const parsedOutput = {
|
|
2988
2964
|
...output,
|
|
2989
2965
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2992,22 +2968,22 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
2992
2968
|
switch (errorCode) {
|
|
2993
2969
|
case "AccessDeniedException":
|
|
2994
2970
|
case "com.amazonaws.appsync#AccessDeniedException":
|
|
2995
|
-
throw await
|
|
2971
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2996
2972
|
case "BadRequestException":
|
|
2997
2973
|
case "com.amazonaws.appsync#BadRequestException":
|
|
2998
|
-
throw await
|
|
2974
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2999
2975
|
case "InternalFailureException":
|
|
3000
2976
|
case "com.amazonaws.appsync#InternalFailureException":
|
|
3001
|
-
throw await
|
|
2977
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
3002
2978
|
case "LimitExceededException":
|
|
3003
2979
|
case "com.amazonaws.appsync#LimitExceededException":
|
|
3004
|
-
throw await
|
|
2980
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3005
2981
|
case "NotFoundException":
|
|
3006
2982
|
case "com.amazonaws.appsync#NotFoundException":
|
|
3007
|
-
throw await
|
|
2983
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3008
2984
|
case "UnauthorizedException":
|
|
3009
2985
|
case "com.amazonaws.appsync#UnauthorizedException":
|
|
3010
|
-
throw await
|
|
2986
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
3011
2987
|
default:
|
|
3012
2988
|
const parsedBody = parsedOutput.body;
|
|
3013
2989
|
throwDefaultError({
|
|
@@ -3018,20 +2994,20 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
3018
2994
|
});
|
|
3019
2995
|
}
|
|
3020
2996
|
};
|
|
3021
|
-
export const
|
|
2997
|
+
export const de_UpdateApiCacheCommand = async (output, context) => {
|
|
3022
2998
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3023
|
-
return
|
|
2999
|
+
return de_UpdateApiCacheCommandError(output, context);
|
|
3024
3000
|
}
|
|
3025
3001
|
const contents = map({
|
|
3026
3002
|
$metadata: deserializeMetadata(output),
|
|
3027
3003
|
});
|
|
3028
3004
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3029
3005
|
if (data.apiCache != null) {
|
|
3030
|
-
contents.apiCache =
|
|
3006
|
+
contents.apiCache = de_ApiCache(data.apiCache, context);
|
|
3031
3007
|
}
|
|
3032
3008
|
return contents;
|
|
3033
3009
|
};
|
|
3034
|
-
const
|
|
3010
|
+
const de_UpdateApiCacheCommandError = async (output, context) => {
|
|
3035
3011
|
const parsedOutput = {
|
|
3036
3012
|
...output,
|
|
3037
3013
|
body: await parseErrorBody(output.body, context),
|
|
@@ -3040,19 +3016,19 @@ const deserializeAws_restJson1UpdateApiCacheCommandError = async (output, contex
|
|
|
3040
3016
|
switch (errorCode) {
|
|
3041
3017
|
case "BadRequestException":
|
|
3042
3018
|
case "com.amazonaws.appsync#BadRequestException":
|
|
3043
|
-
throw await
|
|
3019
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3044
3020
|
case "ConcurrentModificationException":
|
|
3045
3021
|
case "com.amazonaws.appsync#ConcurrentModificationException":
|
|
3046
|
-
throw await
|
|
3022
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
3047
3023
|
case "InternalFailureException":
|
|
3048
3024
|
case "com.amazonaws.appsync#InternalFailureException":
|
|
3049
|
-
throw await
|
|
3025
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
3050
3026
|
case "NotFoundException":
|
|
3051
3027
|
case "com.amazonaws.appsync#NotFoundException":
|
|
3052
|
-
throw await
|
|
3028
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3053
3029
|
case "UnauthorizedException":
|
|
3054
3030
|
case "com.amazonaws.appsync#UnauthorizedException":
|
|
3055
|
-
throw await
|
|
3031
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
3056
3032
|
default:
|
|
3057
3033
|
const parsedBody = parsedOutput.body;
|
|
3058
3034
|
throwDefaultError({
|
|
@@ -3063,20 +3039,20 @@ const deserializeAws_restJson1UpdateApiCacheCommandError = async (output, contex
|
|
|
3063
3039
|
});
|
|
3064
3040
|
}
|
|
3065
3041
|
};
|
|
3066
|
-
export const
|
|
3042
|
+
export const de_UpdateApiKeyCommand = async (output, context) => {
|
|
3067
3043
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3068
|
-
return
|
|
3044
|
+
return de_UpdateApiKeyCommandError(output, context);
|
|
3069
3045
|
}
|
|
3070
3046
|
const contents = map({
|
|
3071
3047
|
$metadata: deserializeMetadata(output),
|
|
3072
3048
|
});
|
|
3073
3049
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3074
3050
|
if (data.apiKey != null) {
|
|
3075
|
-
contents.apiKey =
|
|
3051
|
+
contents.apiKey = de_ApiKey(data.apiKey, context);
|
|
3076
3052
|
}
|
|
3077
3053
|
return contents;
|
|
3078
3054
|
};
|
|
3079
|
-
const
|
|
3055
|
+
const de_UpdateApiKeyCommandError = async (output, context) => {
|
|
3080
3056
|
const parsedOutput = {
|
|
3081
3057
|
...output,
|
|
3082
3058
|
body: await parseErrorBody(output.body, context),
|
|
@@ -3085,22 +3061,22 @@ const deserializeAws_restJson1UpdateApiKeyCommandError = async (output, context)
|
|
|
3085
3061
|
switch (errorCode) {
|
|
3086
3062
|
case "ApiKeyValidityOutOfBoundsException":
|
|
3087
3063
|
case "com.amazonaws.appsync#ApiKeyValidityOutOfBoundsException":
|
|
3088
|
-
throw await
|
|
3064
|
+
throw await de_ApiKeyValidityOutOfBoundsExceptionRes(parsedOutput, context);
|
|
3089
3065
|
case "BadRequestException":
|
|
3090
3066
|
case "com.amazonaws.appsync#BadRequestException":
|
|
3091
|
-
throw await
|
|
3067
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3092
3068
|
case "InternalFailureException":
|
|
3093
3069
|
case "com.amazonaws.appsync#InternalFailureException":
|
|
3094
|
-
throw await
|
|
3070
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
3095
3071
|
case "LimitExceededException":
|
|
3096
3072
|
case "com.amazonaws.appsync#LimitExceededException":
|
|
3097
|
-
throw await
|
|
3073
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3098
3074
|
case "NotFoundException":
|
|
3099
3075
|
case "com.amazonaws.appsync#NotFoundException":
|
|
3100
|
-
throw await
|
|
3076
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3101
3077
|
case "UnauthorizedException":
|
|
3102
3078
|
case "com.amazonaws.appsync#UnauthorizedException":
|
|
3103
|
-
throw await
|
|
3079
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
3104
3080
|
default:
|
|
3105
3081
|
const parsedBody = parsedOutput.body;
|
|
3106
3082
|
throwDefaultError({
|
|
@@ -3111,20 +3087,20 @@ const deserializeAws_restJson1UpdateApiKeyCommandError = async (output, context)
|
|
|
3111
3087
|
});
|
|
3112
3088
|
}
|
|
3113
3089
|
};
|
|
3114
|
-
export const
|
|
3090
|
+
export const de_UpdateDataSourceCommand = async (output, context) => {
|
|
3115
3091
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3116
|
-
return
|
|
3092
|
+
return de_UpdateDataSourceCommandError(output, context);
|
|
3117
3093
|
}
|
|
3118
3094
|
const contents = map({
|
|
3119
3095
|
$metadata: deserializeMetadata(output),
|
|
3120
3096
|
});
|
|
3121
3097
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3122
3098
|
if (data.dataSource != null) {
|
|
3123
|
-
contents.dataSource =
|
|
3099
|
+
contents.dataSource = de_DataSource(data.dataSource, context);
|
|
3124
3100
|
}
|
|
3125
3101
|
return contents;
|
|
3126
3102
|
};
|
|
3127
|
-
const
|
|
3103
|
+
const de_UpdateDataSourceCommandError = async (output, context) => {
|
|
3128
3104
|
const parsedOutput = {
|
|
3129
3105
|
...output,
|
|
3130
3106
|
body: await parseErrorBody(output.body, context),
|
|
@@ -3133,19 +3109,19 @@ const deserializeAws_restJson1UpdateDataSourceCommandError = async (output, cont
|
|
|
3133
3109
|
switch (errorCode) {
|
|
3134
3110
|
case "BadRequestException":
|
|
3135
3111
|
case "com.amazonaws.appsync#BadRequestException":
|
|
3136
|
-
throw await
|
|
3112
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3137
3113
|
case "ConcurrentModificationException":
|
|
3138
3114
|
case "com.amazonaws.appsync#ConcurrentModificationException":
|
|
3139
|
-
throw await
|
|
3115
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
3140
3116
|
case "InternalFailureException":
|
|
3141
3117
|
case "com.amazonaws.appsync#InternalFailureException":
|
|
3142
|
-
throw await
|
|
3118
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
3143
3119
|
case "NotFoundException":
|
|
3144
3120
|
case "com.amazonaws.appsync#NotFoundException":
|
|
3145
|
-
throw await
|
|
3121
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3146
3122
|
case "UnauthorizedException":
|
|
3147
3123
|
case "com.amazonaws.appsync#UnauthorizedException":
|
|
3148
|
-
throw await
|
|
3124
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
3149
3125
|
default:
|
|
3150
3126
|
const parsedBody = parsedOutput.body;
|
|
3151
3127
|
throwDefaultError({
|
|
@@ -3156,20 +3132,20 @@ const deserializeAws_restJson1UpdateDataSourceCommandError = async (output, cont
|
|
|
3156
3132
|
});
|
|
3157
3133
|
}
|
|
3158
3134
|
};
|
|
3159
|
-
export const
|
|
3135
|
+
export const de_UpdateDomainNameCommand = async (output, context) => {
|
|
3160
3136
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3161
|
-
return
|
|
3137
|
+
return de_UpdateDomainNameCommandError(output, context);
|
|
3162
3138
|
}
|
|
3163
3139
|
const contents = map({
|
|
3164
3140
|
$metadata: deserializeMetadata(output),
|
|
3165
3141
|
});
|
|
3166
3142
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3167
3143
|
if (data.domainNameConfig != null) {
|
|
3168
|
-
contents.domainNameConfig =
|
|
3144
|
+
contents.domainNameConfig = de_DomainNameConfig(data.domainNameConfig, context);
|
|
3169
3145
|
}
|
|
3170
3146
|
return contents;
|
|
3171
3147
|
};
|
|
3172
|
-
const
|
|
3148
|
+
const de_UpdateDomainNameCommandError = async (output, context) => {
|
|
3173
3149
|
const parsedOutput = {
|
|
3174
3150
|
...output,
|
|
3175
3151
|
body: await parseErrorBody(output.body, context),
|
|
@@ -3178,19 +3154,19 @@ const deserializeAws_restJson1UpdateDomainNameCommandError = async (output, cont
|
|
|
3178
3154
|
switch (errorCode) {
|
|
3179
3155
|
case "AccessDeniedException":
|
|
3180
3156
|
case "com.amazonaws.appsync#AccessDeniedException":
|
|
3181
|
-
throw await
|
|
3157
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3182
3158
|
case "BadRequestException":
|
|
3183
3159
|
case "com.amazonaws.appsync#BadRequestException":
|
|
3184
|
-
throw await
|
|
3160
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3185
3161
|
case "ConcurrentModificationException":
|
|
3186
3162
|
case "com.amazonaws.appsync#ConcurrentModificationException":
|
|
3187
|
-
throw await
|
|
3163
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
3188
3164
|
case "InternalFailureException":
|
|
3189
3165
|
case "com.amazonaws.appsync#InternalFailureException":
|
|
3190
|
-
throw await
|
|
3166
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
3191
3167
|
case "NotFoundException":
|
|
3192
3168
|
case "com.amazonaws.appsync#NotFoundException":
|
|
3193
|
-
throw await
|
|
3169
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3194
3170
|
default:
|
|
3195
3171
|
const parsedBody = parsedOutput.body;
|
|
3196
3172
|
throwDefaultError({
|
|
@@ -3201,20 +3177,20 @@ const deserializeAws_restJson1UpdateDomainNameCommandError = async (output, cont
|
|
|
3201
3177
|
});
|
|
3202
3178
|
}
|
|
3203
3179
|
};
|
|
3204
|
-
export const
|
|
3180
|
+
export const de_UpdateFunctionCommand = async (output, context) => {
|
|
3205
3181
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3206
|
-
return
|
|
3182
|
+
return de_UpdateFunctionCommandError(output, context);
|
|
3207
3183
|
}
|
|
3208
3184
|
const contents = map({
|
|
3209
3185
|
$metadata: deserializeMetadata(output),
|
|
3210
3186
|
});
|
|
3211
3187
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3212
3188
|
if (data.functionConfiguration != null) {
|
|
3213
|
-
contents.functionConfiguration =
|
|
3189
|
+
contents.functionConfiguration = de_FunctionConfiguration(data.functionConfiguration, context);
|
|
3214
3190
|
}
|
|
3215
3191
|
return contents;
|
|
3216
3192
|
};
|
|
3217
|
-
const
|
|
3193
|
+
const de_UpdateFunctionCommandError = async (output, context) => {
|
|
3218
3194
|
const parsedOutput = {
|
|
3219
3195
|
...output,
|
|
3220
3196
|
body: await parseErrorBody(output.body, context),
|
|
@@ -3223,16 +3199,16 @@ const deserializeAws_restJson1UpdateFunctionCommandError = async (output, contex
|
|
|
3223
3199
|
switch (errorCode) {
|
|
3224
3200
|
case "ConcurrentModificationException":
|
|
3225
3201
|
case "com.amazonaws.appsync#ConcurrentModificationException":
|
|
3226
|
-
throw await
|
|
3202
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
3227
3203
|
case "InternalFailureException":
|
|
3228
3204
|
case "com.amazonaws.appsync#InternalFailureException":
|
|
3229
|
-
throw await
|
|
3205
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
3230
3206
|
case "NotFoundException":
|
|
3231
3207
|
case "com.amazonaws.appsync#NotFoundException":
|
|
3232
|
-
throw await
|
|
3208
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3233
3209
|
case "UnauthorizedException":
|
|
3234
3210
|
case "com.amazonaws.appsync#UnauthorizedException":
|
|
3235
|
-
throw await
|
|
3211
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
3236
3212
|
default:
|
|
3237
3213
|
const parsedBody = parsedOutput.body;
|
|
3238
3214
|
throwDefaultError({
|
|
@@ -3243,20 +3219,20 @@ const deserializeAws_restJson1UpdateFunctionCommandError = async (output, contex
|
|
|
3243
3219
|
});
|
|
3244
3220
|
}
|
|
3245
3221
|
};
|
|
3246
|
-
export const
|
|
3222
|
+
export const de_UpdateGraphqlApiCommand = async (output, context) => {
|
|
3247
3223
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3248
|
-
return
|
|
3224
|
+
return de_UpdateGraphqlApiCommandError(output, context);
|
|
3249
3225
|
}
|
|
3250
3226
|
const contents = map({
|
|
3251
3227
|
$metadata: deserializeMetadata(output),
|
|
3252
3228
|
});
|
|
3253
3229
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3254
3230
|
if (data.graphqlApi != null) {
|
|
3255
|
-
contents.graphqlApi =
|
|
3231
|
+
contents.graphqlApi = de_GraphqlApi(data.graphqlApi, context);
|
|
3256
3232
|
}
|
|
3257
3233
|
return contents;
|
|
3258
3234
|
};
|
|
3259
|
-
const
|
|
3235
|
+
const de_UpdateGraphqlApiCommandError = async (output, context) => {
|
|
3260
3236
|
const parsedOutput = {
|
|
3261
3237
|
...output,
|
|
3262
3238
|
body: await parseErrorBody(output.body, context),
|
|
@@ -3265,22 +3241,22 @@ const deserializeAws_restJson1UpdateGraphqlApiCommandError = async (output, cont
|
|
|
3265
3241
|
switch (errorCode) {
|
|
3266
3242
|
case "AccessDeniedException":
|
|
3267
3243
|
case "com.amazonaws.appsync#AccessDeniedException":
|
|
3268
|
-
throw await
|
|
3244
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3269
3245
|
case "BadRequestException":
|
|
3270
3246
|
case "com.amazonaws.appsync#BadRequestException":
|
|
3271
|
-
throw await
|
|
3247
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3272
3248
|
case "ConcurrentModificationException":
|
|
3273
3249
|
case "com.amazonaws.appsync#ConcurrentModificationException":
|
|
3274
|
-
throw await
|
|
3250
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
3275
3251
|
case "InternalFailureException":
|
|
3276
3252
|
case "com.amazonaws.appsync#InternalFailureException":
|
|
3277
|
-
throw await
|
|
3253
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
3278
3254
|
case "NotFoundException":
|
|
3279
3255
|
case "com.amazonaws.appsync#NotFoundException":
|
|
3280
|
-
throw await
|
|
3256
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3281
3257
|
case "UnauthorizedException":
|
|
3282
3258
|
case "com.amazonaws.appsync#UnauthorizedException":
|
|
3283
|
-
throw await
|
|
3259
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
3284
3260
|
default:
|
|
3285
3261
|
const parsedBody = parsedOutput.body;
|
|
3286
3262
|
throwDefaultError({
|
|
@@ -3291,20 +3267,20 @@ const deserializeAws_restJson1UpdateGraphqlApiCommandError = async (output, cont
|
|
|
3291
3267
|
});
|
|
3292
3268
|
}
|
|
3293
3269
|
};
|
|
3294
|
-
export const
|
|
3270
|
+
export const de_UpdateResolverCommand = async (output, context) => {
|
|
3295
3271
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3296
|
-
return
|
|
3272
|
+
return de_UpdateResolverCommandError(output, context);
|
|
3297
3273
|
}
|
|
3298
3274
|
const contents = map({
|
|
3299
3275
|
$metadata: deserializeMetadata(output),
|
|
3300
3276
|
});
|
|
3301
3277
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3302
3278
|
if (data.resolver != null) {
|
|
3303
|
-
contents.resolver =
|
|
3279
|
+
contents.resolver = de_Resolver(data.resolver, context);
|
|
3304
3280
|
}
|
|
3305
3281
|
return contents;
|
|
3306
3282
|
};
|
|
3307
|
-
const
|
|
3283
|
+
const de_UpdateResolverCommandError = async (output, context) => {
|
|
3308
3284
|
const parsedOutput = {
|
|
3309
3285
|
...output,
|
|
3310
3286
|
body: await parseErrorBody(output.body, context),
|
|
@@ -3313,19 +3289,19 @@ const deserializeAws_restJson1UpdateResolverCommandError = async (output, contex
|
|
|
3313
3289
|
switch (errorCode) {
|
|
3314
3290
|
case "BadRequestException":
|
|
3315
3291
|
case "com.amazonaws.appsync#BadRequestException":
|
|
3316
|
-
throw await
|
|
3292
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3317
3293
|
case "ConcurrentModificationException":
|
|
3318
3294
|
case "com.amazonaws.appsync#ConcurrentModificationException":
|
|
3319
|
-
throw await
|
|
3295
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
3320
3296
|
case "InternalFailureException":
|
|
3321
3297
|
case "com.amazonaws.appsync#InternalFailureException":
|
|
3322
|
-
throw await
|
|
3298
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
3323
3299
|
case "NotFoundException":
|
|
3324
3300
|
case "com.amazonaws.appsync#NotFoundException":
|
|
3325
|
-
throw await
|
|
3301
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3326
3302
|
case "UnauthorizedException":
|
|
3327
3303
|
case "com.amazonaws.appsync#UnauthorizedException":
|
|
3328
|
-
throw await
|
|
3304
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
3329
3305
|
default:
|
|
3330
3306
|
const parsedBody = parsedOutput.body;
|
|
3331
3307
|
throwDefaultError({
|
|
@@ -3336,20 +3312,20 @@ const deserializeAws_restJson1UpdateResolverCommandError = async (output, contex
|
|
|
3336
3312
|
});
|
|
3337
3313
|
}
|
|
3338
3314
|
};
|
|
3339
|
-
export const
|
|
3315
|
+
export const de_UpdateTypeCommand = async (output, context) => {
|
|
3340
3316
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3341
|
-
return
|
|
3317
|
+
return de_UpdateTypeCommandError(output, context);
|
|
3342
3318
|
}
|
|
3343
3319
|
const contents = map({
|
|
3344
3320
|
$metadata: deserializeMetadata(output),
|
|
3345
3321
|
});
|
|
3346
3322
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3347
3323
|
if (data.type != null) {
|
|
3348
|
-
contents.type =
|
|
3324
|
+
contents.type = de_Type(data.type, context);
|
|
3349
3325
|
}
|
|
3350
3326
|
return contents;
|
|
3351
3327
|
};
|
|
3352
|
-
const
|
|
3328
|
+
const de_UpdateTypeCommandError = async (output, context) => {
|
|
3353
3329
|
const parsedOutput = {
|
|
3354
3330
|
...output,
|
|
3355
3331
|
body: await parseErrorBody(output.body, context),
|
|
@@ -3358,19 +3334,19 @@ const deserializeAws_restJson1UpdateTypeCommandError = async (output, context) =
|
|
|
3358
3334
|
switch (errorCode) {
|
|
3359
3335
|
case "BadRequestException":
|
|
3360
3336
|
case "com.amazonaws.appsync#BadRequestException":
|
|
3361
|
-
throw await
|
|
3337
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3362
3338
|
case "ConcurrentModificationException":
|
|
3363
3339
|
case "com.amazonaws.appsync#ConcurrentModificationException":
|
|
3364
|
-
throw await
|
|
3340
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
3365
3341
|
case "InternalFailureException":
|
|
3366
3342
|
case "com.amazonaws.appsync#InternalFailureException":
|
|
3367
|
-
throw await
|
|
3343
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
3368
3344
|
case "NotFoundException":
|
|
3369
3345
|
case "com.amazonaws.appsync#NotFoundException":
|
|
3370
|
-
throw await
|
|
3346
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3371
3347
|
case "UnauthorizedException":
|
|
3372
3348
|
case "com.amazonaws.appsync#UnauthorizedException":
|
|
3373
|
-
throw await
|
|
3349
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
3374
3350
|
default:
|
|
3375
3351
|
const parsedBody = parsedOutput.body;
|
|
3376
3352
|
throwDefaultError({
|
|
@@ -3382,7 +3358,7 @@ const deserializeAws_restJson1UpdateTypeCommandError = async (output, context) =
|
|
|
3382
3358
|
}
|
|
3383
3359
|
};
|
|
3384
3360
|
const map = __map;
|
|
3385
|
-
const
|
|
3361
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
3386
3362
|
const contents = map({});
|
|
3387
3363
|
const data = parsedOutput.body;
|
|
3388
3364
|
if (data.message != null) {
|
|
@@ -3394,7 +3370,7 @@ const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutpu
|
|
|
3394
3370
|
});
|
|
3395
3371
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
3396
3372
|
};
|
|
3397
|
-
const
|
|
3373
|
+
const de_ApiKeyLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
3398
3374
|
const contents = map({});
|
|
3399
3375
|
const data = parsedOutput.body;
|
|
3400
3376
|
if (data.message != null) {
|
|
@@ -3406,7 +3382,7 @@ const deserializeAws_restJson1ApiKeyLimitExceededExceptionResponse = async (pars
|
|
|
3406
3382
|
});
|
|
3407
3383
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
3408
3384
|
};
|
|
3409
|
-
const
|
|
3385
|
+
const de_ApiKeyValidityOutOfBoundsExceptionRes = async (parsedOutput, context) => {
|
|
3410
3386
|
const contents = map({});
|
|
3411
3387
|
const data = parsedOutput.body;
|
|
3412
3388
|
if (data.message != null) {
|
|
@@ -3418,7 +3394,7 @@ const deserializeAws_restJson1ApiKeyValidityOutOfBoundsExceptionResponse = async
|
|
|
3418
3394
|
});
|
|
3419
3395
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
3420
3396
|
};
|
|
3421
|
-
const
|
|
3397
|
+
const de_ApiLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
3422
3398
|
const contents = map({});
|
|
3423
3399
|
const data = parsedOutput.body;
|
|
3424
3400
|
if (data.message != null) {
|
|
@@ -3430,11 +3406,11 @@ const deserializeAws_restJson1ApiLimitExceededExceptionResponse = async (parsedO
|
|
|
3430
3406
|
});
|
|
3431
3407
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
3432
3408
|
};
|
|
3433
|
-
const
|
|
3409
|
+
const de_BadRequestExceptionRes = async (parsedOutput, context) => {
|
|
3434
3410
|
const contents = map({});
|
|
3435
3411
|
const data = parsedOutput.body;
|
|
3436
3412
|
if (data.detail != null) {
|
|
3437
|
-
contents.detail =
|
|
3413
|
+
contents.detail = de_BadRequestDetail(data.detail, context);
|
|
3438
3414
|
}
|
|
3439
3415
|
if (data.message != null) {
|
|
3440
3416
|
contents.message = __expectString(data.message);
|
|
@@ -3448,7 +3424,7 @@ const deserializeAws_restJson1BadRequestExceptionResponse = async (parsedOutput,
|
|
|
3448
3424
|
});
|
|
3449
3425
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
3450
3426
|
};
|
|
3451
|
-
const
|
|
3427
|
+
const de_ConcurrentModificationExceptionRes = async (parsedOutput, context) => {
|
|
3452
3428
|
const contents = map({});
|
|
3453
3429
|
const data = parsedOutput.body;
|
|
3454
3430
|
if (data.message != null) {
|
|
@@ -3460,7 +3436,7 @@ const deserializeAws_restJson1ConcurrentModificationExceptionResponse = async (p
|
|
|
3460
3436
|
});
|
|
3461
3437
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
3462
3438
|
};
|
|
3463
|
-
const
|
|
3439
|
+
const de_GraphQLSchemaExceptionRes = async (parsedOutput, context) => {
|
|
3464
3440
|
const contents = map({});
|
|
3465
3441
|
const data = parsedOutput.body;
|
|
3466
3442
|
if (data.message != null) {
|
|
@@ -3472,7 +3448,7 @@ const deserializeAws_restJson1GraphQLSchemaExceptionResponse = async (parsedOutp
|
|
|
3472
3448
|
});
|
|
3473
3449
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
3474
3450
|
};
|
|
3475
|
-
const
|
|
3451
|
+
const de_InternalFailureExceptionRes = async (parsedOutput, context) => {
|
|
3476
3452
|
const contents = map({});
|
|
3477
3453
|
const data = parsedOutput.body;
|
|
3478
3454
|
if (data.message != null) {
|
|
@@ -3484,7 +3460,7 @@ const deserializeAws_restJson1InternalFailureExceptionResponse = async (parsedOu
|
|
|
3484
3460
|
});
|
|
3485
3461
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
3486
3462
|
};
|
|
3487
|
-
const
|
|
3463
|
+
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
3488
3464
|
const contents = map({});
|
|
3489
3465
|
const data = parsedOutput.body;
|
|
3490
3466
|
if (data.message != null) {
|
|
@@ -3496,7 +3472,7 @@ const deserializeAws_restJson1LimitExceededExceptionResponse = async (parsedOutp
|
|
|
3496
3472
|
});
|
|
3497
3473
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
3498
3474
|
};
|
|
3499
|
-
const
|
|
3475
|
+
const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
3500
3476
|
const contents = map({});
|
|
3501
3477
|
const data = parsedOutput.body;
|
|
3502
3478
|
if (data.message != null) {
|
|
@@ -3508,7 +3484,7 @@ const deserializeAws_restJson1NotFoundExceptionResponse = async (parsedOutput, c
|
|
|
3508
3484
|
});
|
|
3509
3485
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
3510
3486
|
};
|
|
3511
|
-
const
|
|
3487
|
+
const de_UnauthorizedExceptionRes = async (parsedOutput, context) => {
|
|
3512
3488
|
const contents = map({});
|
|
3513
3489
|
const data = parsedOutput.body;
|
|
3514
3490
|
if (data.message != null) {
|
|
@@ -3520,112 +3496,106 @@ const deserializeAws_restJson1UnauthorizedExceptionResponse = async (parsedOutpu
|
|
|
3520
3496
|
});
|
|
3521
3497
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
3522
3498
|
};
|
|
3523
|
-
const
|
|
3499
|
+
const se_AdditionalAuthenticationProvider = (input, context) => {
|
|
3524
3500
|
return {
|
|
3525
3501
|
...(input.authenticationType != null && { authenticationType: input.authenticationType }),
|
|
3526
3502
|
...(input.lambdaAuthorizerConfig != null && {
|
|
3527
|
-
lambdaAuthorizerConfig:
|
|
3503
|
+
lambdaAuthorizerConfig: se_LambdaAuthorizerConfig(input.lambdaAuthorizerConfig, context),
|
|
3528
3504
|
}),
|
|
3529
3505
|
...(input.openIDConnectConfig != null && {
|
|
3530
|
-
openIDConnectConfig:
|
|
3531
|
-
}),
|
|
3532
|
-
...(input.userPoolConfig != null && {
|
|
3533
|
-
userPoolConfig: serializeAws_restJson1CognitoUserPoolConfig(input.userPoolConfig, context),
|
|
3506
|
+
openIDConnectConfig: se_OpenIDConnectConfig(input.openIDConnectConfig, context),
|
|
3534
3507
|
}),
|
|
3508
|
+
...(input.userPoolConfig != null && { userPoolConfig: se_CognitoUserPoolConfig(input.userPoolConfig, context) }),
|
|
3535
3509
|
};
|
|
3536
3510
|
};
|
|
3537
|
-
const
|
|
3511
|
+
const se_AdditionalAuthenticationProviders = (input, context) => {
|
|
3538
3512
|
return input
|
|
3539
3513
|
.filter((e) => e != null)
|
|
3540
3514
|
.map((entry) => {
|
|
3541
|
-
return
|
|
3515
|
+
return se_AdditionalAuthenticationProvider(entry, context);
|
|
3542
3516
|
});
|
|
3543
3517
|
};
|
|
3544
|
-
const
|
|
3518
|
+
const se_AppSyncRuntime = (input, context) => {
|
|
3545
3519
|
return {
|
|
3546
3520
|
...(input.name != null && { name: input.name }),
|
|
3547
3521
|
...(input.runtimeVersion != null && { runtimeVersion: input.runtimeVersion }),
|
|
3548
3522
|
};
|
|
3549
3523
|
};
|
|
3550
|
-
const
|
|
3524
|
+
const se_AuthorizationConfig = (input, context) => {
|
|
3551
3525
|
return {
|
|
3552
3526
|
...(input.authorizationType != null && { authorizationType: input.authorizationType }),
|
|
3553
|
-
...(input.awsIamConfig != null && {
|
|
3554
|
-
awsIamConfig: serializeAws_restJson1AwsIamConfig(input.awsIamConfig, context),
|
|
3555
|
-
}),
|
|
3527
|
+
...(input.awsIamConfig != null && { awsIamConfig: se_AwsIamConfig(input.awsIamConfig, context) }),
|
|
3556
3528
|
};
|
|
3557
3529
|
};
|
|
3558
|
-
const
|
|
3530
|
+
const se_AwsIamConfig = (input, context) => {
|
|
3559
3531
|
return {
|
|
3560
3532
|
...(input.signingRegion != null && { signingRegion: input.signingRegion }),
|
|
3561
3533
|
...(input.signingServiceName != null && { signingServiceName: input.signingServiceName }),
|
|
3562
3534
|
};
|
|
3563
3535
|
};
|
|
3564
|
-
const
|
|
3536
|
+
const se_CachingConfig = (input, context) => {
|
|
3565
3537
|
return {
|
|
3566
|
-
...(input.cachingKeys != null && { cachingKeys:
|
|
3538
|
+
...(input.cachingKeys != null && { cachingKeys: se_CachingKeys(input.cachingKeys, context) }),
|
|
3567
3539
|
...(input.ttl != null && { ttl: input.ttl }),
|
|
3568
3540
|
};
|
|
3569
3541
|
};
|
|
3570
|
-
const
|
|
3542
|
+
const se_CachingKeys = (input, context) => {
|
|
3571
3543
|
return input
|
|
3572
3544
|
.filter((e) => e != null)
|
|
3573
3545
|
.map((entry) => {
|
|
3574
3546
|
return entry;
|
|
3575
3547
|
});
|
|
3576
3548
|
};
|
|
3577
|
-
const
|
|
3549
|
+
const se_CognitoUserPoolConfig = (input, context) => {
|
|
3578
3550
|
return {
|
|
3579
3551
|
...(input.appIdClientRegex != null && { appIdClientRegex: input.appIdClientRegex }),
|
|
3580
3552
|
...(input.awsRegion != null && { awsRegion: input.awsRegion }),
|
|
3581
3553
|
...(input.userPoolId != null && { userPoolId: input.userPoolId }),
|
|
3582
3554
|
};
|
|
3583
3555
|
};
|
|
3584
|
-
const
|
|
3556
|
+
const se_DeltaSyncConfig = (input, context) => {
|
|
3585
3557
|
return {
|
|
3586
3558
|
...(input.baseTableTTL != null && { baseTableTTL: input.baseTableTTL }),
|
|
3587
3559
|
...(input.deltaSyncTableName != null && { deltaSyncTableName: input.deltaSyncTableName }),
|
|
3588
3560
|
...(input.deltaSyncTableTTL != null && { deltaSyncTableTTL: input.deltaSyncTableTTL }),
|
|
3589
3561
|
};
|
|
3590
3562
|
};
|
|
3591
|
-
const
|
|
3563
|
+
const se_DynamodbDataSourceConfig = (input, context) => {
|
|
3592
3564
|
return {
|
|
3593
3565
|
...(input.awsRegion != null && { awsRegion: input.awsRegion }),
|
|
3594
|
-
...(input.deltaSyncConfig != null && {
|
|
3595
|
-
deltaSyncConfig: serializeAws_restJson1DeltaSyncConfig(input.deltaSyncConfig, context),
|
|
3596
|
-
}),
|
|
3566
|
+
...(input.deltaSyncConfig != null && { deltaSyncConfig: se_DeltaSyncConfig(input.deltaSyncConfig, context) }),
|
|
3597
3567
|
...(input.tableName != null && { tableName: input.tableName }),
|
|
3598
3568
|
...(input.useCallerCredentials != null && { useCallerCredentials: input.useCallerCredentials }),
|
|
3599
3569
|
...(input.versioned != null && { versioned: input.versioned }),
|
|
3600
3570
|
};
|
|
3601
3571
|
};
|
|
3602
|
-
const
|
|
3572
|
+
const se_ElasticsearchDataSourceConfig = (input, context) => {
|
|
3603
3573
|
return {
|
|
3604
3574
|
...(input.awsRegion != null && { awsRegion: input.awsRegion }),
|
|
3605
3575
|
...(input.endpoint != null && { endpoint: input.endpoint }),
|
|
3606
3576
|
};
|
|
3607
3577
|
};
|
|
3608
|
-
const
|
|
3578
|
+
const se_EventBridgeDataSourceConfig = (input, context) => {
|
|
3609
3579
|
return {
|
|
3610
3580
|
...(input.eventBusArn != null && { eventBusArn: input.eventBusArn }),
|
|
3611
3581
|
};
|
|
3612
3582
|
};
|
|
3613
|
-
const
|
|
3583
|
+
const se_FunctionsIds = (input, context) => {
|
|
3614
3584
|
return input
|
|
3615
3585
|
.filter((e) => e != null)
|
|
3616
3586
|
.map((entry) => {
|
|
3617
3587
|
return entry;
|
|
3618
3588
|
});
|
|
3619
3589
|
};
|
|
3620
|
-
const
|
|
3590
|
+
const se_HttpDataSourceConfig = (input, context) => {
|
|
3621
3591
|
return {
|
|
3622
3592
|
...(input.authorizationConfig != null && {
|
|
3623
|
-
authorizationConfig:
|
|
3593
|
+
authorizationConfig: se_AuthorizationConfig(input.authorizationConfig, context),
|
|
3624
3594
|
}),
|
|
3625
3595
|
...(input.endpoint != null && { endpoint: input.endpoint }),
|
|
3626
3596
|
};
|
|
3627
3597
|
};
|
|
3628
|
-
const
|
|
3598
|
+
const se_LambdaAuthorizerConfig = (input, context) => {
|
|
3629
3599
|
return {
|
|
3630
3600
|
...(input.authorizerResultTtlInSeconds != null && {
|
|
3631
3601
|
authorizerResultTtlInSeconds: input.authorizerResultTtlInSeconds,
|
|
@@ -3636,24 +3606,24 @@ const serializeAws_restJson1LambdaAuthorizerConfig = (input, context) => {
|
|
|
3636
3606
|
}),
|
|
3637
3607
|
};
|
|
3638
3608
|
};
|
|
3639
|
-
const
|
|
3609
|
+
const se_LambdaConflictHandlerConfig = (input, context) => {
|
|
3640
3610
|
return {
|
|
3641
3611
|
...(input.lambdaConflictHandlerArn != null && { lambdaConflictHandlerArn: input.lambdaConflictHandlerArn }),
|
|
3642
3612
|
};
|
|
3643
3613
|
};
|
|
3644
|
-
const
|
|
3614
|
+
const se_LambdaDataSourceConfig = (input, context) => {
|
|
3645
3615
|
return {
|
|
3646
3616
|
...(input.lambdaFunctionArn != null && { lambdaFunctionArn: input.lambdaFunctionArn }),
|
|
3647
3617
|
};
|
|
3648
3618
|
};
|
|
3649
|
-
const
|
|
3619
|
+
const se_LogConfig = (input, context) => {
|
|
3650
3620
|
return {
|
|
3651
3621
|
...(input.cloudWatchLogsRoleArn != null && { cloudWatchLogsRoleArn: input.cloudWatchLogsRoleArn }),
|
|
3652
3622
|
...(input.excludeVerboseContent != null && { excludeVerboseContent: input.excludeVerboseContent }),
|
|
3653
3623
|
...(input.fieldLogLevel != null && { fieldLogLevel: input.fieldLogLevel }),
|
|
3654
3624
|
};
|
|
3655
3625
|
};
|
|
3656
|
-
const
|
|
3626
|
+
const se_OpenIDConnectConfig = (input, context) => {
|
|
3657
3627
|
return {
|
|
3658
3628
|
...(input.authTTL != null && { authTTL: input.authTTL }),
|
|
3659
3629
|
...(input.clientId != null && { clientId: input.clientId }),
|
|
@@ -3661,18 +3631,18 @@ const serializeAws_restJson1OpenIDConnectConfig = (input, context) => {
|
|
|
3661
3631
|
...(input.issuer != null && { issuer: input.issuer }),
|
|
3662
3632
|
};
|
|
3663
3633
|
};
|
|
3664
|
-
const
|
|
3634
|
+
const se_OpenSearchServiceDataSourceConfig = (input, context) => {
|
|
3665
3635
|
return {
|
|
3666
3636
|
...(input.awsRegion != null && { awsRegion: input.awsRegion }),
|
|
3667
3637
|
...(input.endpoint != null && { endpoint: input.endpoint }),
|
|
3668
3638
|
};
|
|
3669
3639
|
};
|
|
3670
|
-
const
|
|
3640
|
+
const se_PipelineConfig = (input, context) => {
|
|
3671
3641
|
return {
|
|
3672
|
-
...(input.functions != null && { functions:
|
|
3642
|
+
...(input.functions != null && { functions: se_FunctionsIds(input.functions, context) }),
|
|
3673
3643
|
};
|
|
3674
3644
|
};
|
|
3675
|
-
const
|
|
3645
|
+
const se_RdsHttpEndpointConfig = (input, context) => {
|
|
3676
3646
|
return {
|
|
3677
3647
|
...(input.awsRegion != null && { awsRegion: input.awsRegion }),
|
|
3678
3648
|
...(input.awsSecretStoreArn != null && { awsSecretStoreArn: input.awsSecretStoreArn }),
|
|
@@ -3681,26 +3651,26 @@ const serializeAws_restJson1RdsHttpEndpointConfig = (input, context) => {
|
|
|
3681
3651
|
...(input.schema != null && { schema: input.schema }),
|
|
3682
3652
|
};
|
|
3683
3653
|
};
|
|
3684
|
-
const
|
|
3654
|
+
const se_RelationalDatabaseDataSourceConfig = (input, context) => {
|
|
3685
3655
|
return {
|
|
3686
3656
|
...(input.rdsHttpEndpointConfig != null && {
|
|
3687
|
-
rdsHttpEndpointConfig:
|
|
3657
|
+
rdsHttpEndpointConfig: se_RdsHttpEndpointConfig(input.rdsHttpEndpointConfig, context),
|
|
3688
3658
|
}),
|
|
3689
3659
|
...(input.relationalDatabaseSourceType != null && {
|
|
3690
3660
|
relationalDatabaseSourceType: input.relationalDatabaseSourceType,
|
|
3691
3661
|
}),
|
|
3692
3662
|
};
|
|
3693
3663
|
};
|
|
3694
|
-
const
|
|
3664
|
+
const se_SyncConfig = (input, context) => {
|
|
3695
3665
|
return {
|
|
3696
3666
|
...(input.conflictDetection != null && { conflictDetection: input.conflictDetection }),
|
|
3697
3667
|
...(input.conflictHandler != null && { conflictHandler: input.conflictHandler }),
|
|
3698
3668
|
...(input.lambdaConflictHandlerConfig != null && {
|
|
3699
|
-
lambdaConflictHandlerConfig:
|
|
3669
|
+
lambdaConflictHandlerConfig: se_LambdaConflictHandlerConfig(input.lambdaConflictHandlerConfig, context),
|
|
3700
3670
|
}),
|
|
3701
3671
|
};
|
|
3702
3672
|
};
|
|
3703
|
-
const
|
|
3673
|
+
const se_TagMap = (input, context) => {
|
|
3704
3674
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
3705
3675
|
if (value === null) {
|
|
3706
3676
|
return acc;
|
|
@@ -3709,7 +3679,7 @@ const serializeAws_restJson1TagMap = (input, context) => {
|
|
|
3709
3679
|
return acc;
|
|
3710
3680
|
}, {});
|
|
3711
3681
|
};
|
|
3712
|
-
const
|
|
3682
|
+
const se_UserPoolConfig = (input, context) => {
|
|
3713
3683
|
return {
|
|
3714
3684
|
...(input.appIdClientRegex != null && { appIdClientRegex: input.appIdClientRegex }),
|
|
3715
3685
|
...(input.awsRegion != null && { awsRegion: input.awsRegion }),
|
|
@@ -3717,32 +3687,28 @@ const serializeAws_restJson1UserPoolConfig = (input, context) => {
|
|
|
3717
3687
|
...(input.userPoolId != null && { userPoolId: input.userPoolId }),
|
|
3718
3688
|
};
|
|
3719
3689
|
};
|
|
3720
|
-
const
|
|
3690
|
+
const de_AdditionalAuthenticationProvider = (output, context) => {
|
|
3721
3691
|
return {
|
|
3722
3692
|
authenticationType: __expectString(output.authenticationType),
|
|
3723
3693
|
lambdaAuthorizerConfig: output.lambdaAuthorizerConfig != null
|
|
3724
|
-
?
|
|
3725
|
-
: undefined,
|
|
3726
|
-
openIDConnectConfig: output.openIDConnectConfig != null
|
|
3727
|
-
? deserializeAws_restJson1OpenIDConnectConfig(output.openIDConnectConfig, context)
|
|
3728
|
-
: undefined,
|
|
3729
|
-
userPoolConfig: output.userPoolConfig != null
|
|
3730
|
-
? deserializeAws_restJson1CognitoUserPoolConfig(output.userPoolConfig, context)
|
|
3694
|
+
? de_LambdaAuthorizerConfig(output.lambdaAuthorizerConfig, context)
|
|
3731
3695
|
: undefined,
|
|
3696
|
+
openIDConnectConfig: output.openIDConnectConfig != null ? de_OpenIDConnectConfig(output.openIDConnectConfig, context) : undefined,
|
|
3697
|
+
userPoolConfig: output.userPoolConfig != null ? de_CognitoUserPoolConfig(output.userPoolConfig, context) : undefined,
|
|
3732
3698
|
};
|
|
3733
3699
|
};
|
|
3734
|
-
const
|
|
3700
|
+
const de_AdditionalAuthenticationProviders = (output, context) => {
|
|
3735
3701
|
const retVal = (output || [])
|
|
3736
3702
|
.filter((e) => e != null)
|
|
3737
3703
|
.map((entry) => {
|
|
3738
3704
|
if (entry === null) {
|
|
3739
3705
|
return null;
|
|
3740
3706
|
}
|
|
3741
|
-
return
|
|
3707
|
+
return de_AdditionalAuthenticationProvider(entry, context);
|
|
3742
3708
|
});
|
|
3743
3709
|
return retVal;
|
|
3744
3710
|
};
|
|
3745
|
-
const
|
|
3711
|
+
const de_ApiAssociation = (output, context) => {
|
|
3746
3712
|
return {
|
|
3747
3713
|
apiId: __expectString(output.apiId),
|
|
3748
3714
|
associationStatus: __expectString(output.associationStatus),
|
|
@@ -3750,7 +3716,7 @@ const deserializeAws_restJson1ApiAssociation = (output, context) => {
|
|
|
3750
3716
|
domainName: __expectString(output.domainName),
|
|
3751
3717
|
};
|
|
3752
3718
|
};
|
|
3753
|
-
const
|
|
3719
|
+
const de_ApiCache = (output, context) => {
|
|
3754
3720
|
return {
|
|
3755
3721
|
apiCachingBehavior: __expectString(output.apiCachingBehavior),
|
|
3756
3722
|
atRestEncryptionEnabled: __expectBoolean(output.atRestEncryptionEnabled),
|
|
@@ -3760,7 +3726,7 @@ const deserializeAws_restJson1ApiCache = (output, context) => {
|
|
|
3760
3726
|
type: __expectString(output.type),
|
|
3761
3727
|
};
|
|
3762
3728
|
};
|
|
3763
|
-
const
|
|
3729
|
+
const de_ApiKey = (output, context) => {
|
|
3764
3730
|
return {
|
|
3765
3731
|
deletes: __expectLong(output.deletes),
|
|
3766
3732
|
description: __expectString(output.description),
|
|
@@ -3768,47 +3734,47 @@ const deserializeAws_restJson1ApiKey = (output, context) => {
|
|
|
3768
3734
|
id: __expectString(output.id),
|
|
3769
3735
|
};
|
|
3770
3736
|
};
|
|
3771
|
-
const
|
|
3737
|
+
const de_ApiKeys = (output, context) => {
|
|
3772
3738
|
const retVal = (output || [])
|
|
3773
3739
|
.filter((e) => e != null)
|
|
3774
3740
|
.map((entry) => {
|
|
3775
3741
|
if (entry === null) {
|
|
3776
3742
|
return null;
|
|
3777
3743
|
}
|
|
3778
|
-
return
|
|
3744
|
+
return de_ApiKey(entry, context);
|
|
3779
3745
|
});
|
|
3780
3746
|
return retVal;
|
|
3781
3747
|
};
|
|
3782
|
-
const
|
|
3748
|
+
const de_AppSyncRuntime = (output, context) => {
|
|
3783
3749
|
return {
|
|
3784
3750
|
name: __expectString(output.name),
|
|
3785
3751
|
runtimeVersion: __expectString(output.runtimeVersion),
|
|
3786
3752
|
};
|
|
3787
3753
|
};
|
|
3788
|
-
const
|
|
3754
|
+
const de_AuthorizationConfig = (output, context) => {
|
|
3789
3755
|
return {
|
|
3790
3756
|
authorizationType: __expectString(output.authorizationType),
|
|
3791
|
-
awsIamConfig: output.awsIamConfig != null ?
|
|
3757
|
+
awsIamConfig: output.awsIamConfig != null ? de_AwsIamConfig(output.awsIamConfig, context) : undefined,
|
|
3792
3758
|
};
|
|
3793
3759
|
};
|
|
3794
|
-
const
|
|
3760
|
+
const de_AwsIamConfig = (output, context) => {
|
|
3795
3761
|
return {
|
|
3796
3762
|
signingRegion: __expectString(output.signingRegion),
|
|
3797
3763
|
signingServiceName: __expectString(output.signingServiceName),
|
|
3798
3764
|
};
|
|
3799
3765
|
};
|
|
3800
|
-
const
|
|
3766
|
+
const de_BadRequestDetail = (output, context) => {
|
|
3801
3767
|
return {
|
|
3802
|
-
codeErrors: output.codeErrors != null ?
|
|
3768
|
+
codeErrors: output.codeErrors != null ? de_CodeErrors(output.codeErrors, context) : undefined,
|
|
3803
3769
|
};
|
|
3804
3770
|
};
|
|
3805
|
-
const
|
|
3771
|
+
const de_CachingConfig = (output, context) => {
|
|
3806
3772
|
return {
|
|
3807
|
-
cachingKeys: output.cachingKeys != null ?
|
|
3773
|
+
cachingKeys: output.cachingKeys != null ? de_CachingKeys(output.cachingKeys, context) : undefined,
|
|
3808
3774
|
ttl: __expectLong(output.ttl),
|
|
3809
3775
|
};
|
|
3810
3776
|
};
|
|
3811
|
-
const
|
|
3777
|
+
const de_CachingKeys = (output, context) => {
|
|
3812
3778
|
const retVal = (output || [])
|
|
3813
3779
|
.filter((e) => e != null)
|
|
3814
3780
|
.map((entry) => {
|
|
@@ -3819,85 +3785,79 @@ const deserializeAws_restJson1CachingKeys = (output, context) => {
|
|
|
3819
3785
|
});
|
|
3820
3786
|
return retVal;
|
|
3821
3787
|
};
|
|
3822
|
-
const
|
|
3788
|
+
const de_CodeError = (output, context) => {
|
|
3823
3789
|
return {
|
|
3824
3790
|
errorType: __expectString(output.errorType),
|
|
3825
|
-
location: output.location != null ?
|
|
3791
|
+
location: output.location != null ? de_CodeErrorLocation(output.location, context) : undefined,
|
|
3826
3792
|
value: __expectString(output.value),
|
|
3827
3793
|
};
|
|
3828
3794
|
};
|
|
3829
|
-
const
|
|
3795
|
+
const de_CodeErrorLocation = (output, context) => {
|
|
3830
3796
|
return {
|
|
3831
3797
|
column: __expectInt32(output.column),
|
|
3832
3798
|
line: __expectInt32(output.line),
|
|
3833
3799
|
span: __expectInt32(output.span),
|
|
3834
3800
|
};
|
|
3835
3801
|
};
|
|
3836
|
-
const
|
|
3802
|
+
const de_CodeErrors = (output, context) => {
|
|
3837
3803
|
const retVal = (output || [])
|
|
3838
3804
|
.filter((e) => e != null)
|
|
3839
3805
|
.map((entry) => {
|
|
3840
3806
|
if (entry === null) {
|
|
3841
3807
|
return null;
|
|
3842
3808
|
}
|
|
3843
|
-
return
|
|
3809
|
+
return de_CodeError(entry, context);
|
|
3844
3810
|
});
|
|
3845
3811
|
return retVal;
|
|
3846
3812
|
};
|
|
3847
|
-
const
|
|
3813
|
+
const de_CognitoUserPoolConfig = (output, context) => {
|
|
3848
3814
|
return {
|
|
3849
3815
|
appIdClientRegex: __expectString(output.appIdClientRegex),
|
|
3850
3816
|
awsRegion: __expectString(output.awsRegion),
|
|
3851
3817
|
userPoolId: __expectString(output.userPoolId),
|
|
3852
3818
|
};
|
|
3853
3819
|
};
|
|
3854
|
-
const
|
|
3820
|
+
const de_DataSource = (output, context) => {
|
|
3855
3821
|
return {
|
|
3856
3822
|
dataSourceArn: __expectString(output.dataSourceArn),
|
|
3857
3823
|
description: __expectString(output.description),
|
|
3858
|
-
dynamodbConfig: output.dynamodbConfig != null
|
|
3859
|
-
? deserializeAws_restJson1DynamodbDataSourceConfig(output.dynamodbConfig, context)
|
|
3860
|
-
: undefined,
|
|
3824
|
+
dynamodbConfig: output.dynamodbConfig != null ? de_DynamodbDataSourceConfig(output.dynamodbConfig, context) : undefined,
|
|
3861
3825
|
elasticsearchConfig: output.elasticsearchConfig != null
|
|
3862
|
-
?
|
|
3863
|
-
: undefined,
|
|
3864
|
-
eventBridgeConfig: output.eventBridgeConfig != null
|
|
3865
|
-
? deserializeAws_restJson1EventBridgeDataSourceConfig(output.eventBridgeConfig, context)
|
|
3866
|
-
: undefined,
|
|
3867
|
-
httpConfig: output.httpConfig != null ? deserializeAws_restJson1HttpDataSourceConfig(output.httpConfig, context) : undefined,
|
|
3868
|
-
lambdaConfig: output.lambdaConfig != null
|
|
3869
|
-
? deserializeAws_restJson1LambdaDataSourceConfig(output.lambdaConfig, context)
|
|
3826
|
+
? de_ElasticsearchDataSourceConfig(output.elasticsearchConfig, context)
|
|
3870
3827
|
: undefined,
|
|
3828
|
+
eventBridgeConfig: output.eventBridgeConfig != null ? de_EventBridgeDataSourceConfig(output.eventBridgeConfig, context) : undefined,
|
|
3829
|
+
httpConfig: output.httpConfig != null ? de_HttpDataSourceConfig(output.httpConfig, context) : undefined,
|
|
3830
|
+
lambdaConfig: output.lambdaConfig != null ? de_LambdaDataSourceConfig(output.lambdaConfig, context) : undefined,
|
|
3871
3831
|
name: __expectString(output.name),
|
|
3872
3832
|
openSearchServiceConfig: output.openSearchServiceConfig != null
|
|
3873
|
-
?
|
|
3833
|
+
? de_OpenSearchServiceDataSourceConfig(output.openSearchServiceConfig, context)
|
|
3874
3834
|
: undefined,
|
|
3875
3835
|
relationalDatabaseConfig: output.relationalDatabaseConfig != null
|
|
3876
|
-
?
|
|
3836
|
+
? de_RelationalDatabaseDataSourceConfig(output.relationalDatabaseConfig, context)
|
|
3877
3837
|
: undefined,
|
|
3878
3838
|
serviceRoleArn: __expectString(output.serviceRoleArn),
|
|
3879
3839
|
type: __expectString(output.type),
|
|
3880
3840
|
};
|
|
3881
3841
|
};
|
|
3882
|
-
const
|
|
3842
|
+
const de_DataSources = (output, context) => {
|
|
3883
3843
|
const retVal = (output || [])
|
|
3884
3844
|
.filter((e) => e != null)
|
|
3885
3845
|
.map((entry) => {
|
|
3886
3846
|
if (entry === null) {
|
|
3887
3847
|
return null;
|
|
3888
3848
|
}
|
|
3889
|
-
return
|
|
3849
|
+
return de_DataSource(entry, context);
|
|
3890
3850
|
});
|
|
3891
3851
|
return retVal;
|
|
3892
3852
|
};
|
|
3893
|
-
const
|
|
3853
|
+
const de_DeltaSyncConfig = (output, context) => {
|
|
3894
3854
|
return {
|
|
3895
3855
|
baseTableTTL: __expectLong(output.baseTableTTL),
|
|
3896
3856
|
deltaSyncTableName: __expectString(output.deltaSyncTableName),
|
|
3897
3857
|
deltaSyncTableTTL: __expectLong(output.deltaSyncTableTTL),
|
|
3898
3858
|
};
|
|
3899
3859
|
};
|
|
3900
|
-
const
|
|
3860
|
+
const de_DomainNameConfig = (output, context) => {
|
|
3901
3861
|
return {
|
|
3902
3862
|
appsyncDomainName: __expectString(output.appsyncDomainName),
|
|
3903
3863
|
certificateArn: __expectString(output.certificateArn),
|
|
@@ -3906,51 +3866,49 @@ const deserializeAws_restJson1DomainNameConfig = (output, context) => {
|
|
|
3906
3866
|
hostedZoneId: __expectString(output.hostedZoneId),
|
|
3907
3867
|
};
|
|
3908
3868
|
};
|
|
3909
|
-
const
|
|
3869
|
+
const de_DomainNameConfigs = (output, context) => {
|
|
3910
3870
|
const retVal = (output || [])
|
|
3911
3871
|
.filter((e) => e != null)
|
|
3912
3872
|
.map((entry) => {
|
|
3913
3873
|
if (entry === null) {
|
|
3914
3874
|
return null;
|
|
3915
3875
|
}
|
|
3916
|
-
return
|
|
3876
|
+
return de_DomainNameConfig(entry, context);
|
|
3917
3877
|
});
|
|
3918
3878
|
return retVal;
|
|
3919
3879
|
};
|
|
3920
|
-
const
|
|
3880
|
+
const de_DynamodbDataSourceConfig = (output, context) => {
|
|
3921
3881
|
return {
|
|
3922
3882
|
awsRegion: __expectString(output.awsRegion),
|
|
3923
|
-
deltaSyncConfig: output.deltaSyncConfig != null
|
|
3924
|
-
? deserializeAws_restJson1DeltaSyncConfig(output.deltaSyncConfig, context)
|
|
3925
|
-
: undefined,
|
|
3883
|
+
deltaSyncConfig: output.deltaSyncConfig != null ? de_DeltaSyncConfig(output.deltaSyncConfig, context) : undefined,
|
|
3926
3884
|
tableName: __expectString(output.tableName),
|
|
3927
3885
|
useCallerCredentials: __expectBoolean(output.useCallerCredentials),
|
|
3928
3886
|
versioned: __expectBoolean(output.versioned),
|
|
3929
3887
|
};
|
|
3930
3888
|
};
|
|
3931
|
-
const
|
|
3889
|
+
const de_ElasticsearchDataSourceConfig = (output, context) => {
|
|
3932
3890
|
return {
|
|
3933
3891
|
awsRegion: __expectString(output.awsRegion),
|
|
3934
3892
|
endpoint: __expectString(output.endpoint),
|
|
3935
3893
|
};
|
|
3936
3894
|
};
|
|
3937
|
-
const
|
|
3895
|
+
const de_ErrorDetail = (output, context) => {
|
|
3938
3896
|
return {
|
|
3939
3897
|
message: __expectString(output.message),
|
|
3940
3898
|
};
|
|
3941
3899
|
};
|
|
3942
|
-
const
|
|
3900
|
+
const de_EvaluateCodeErrorDetail = (output, context) => {
|
|
3943
3901
|
return {
|
|
3944
|
-
codeErrors: output.codeErrors != null ?
|
|
3902
|
+
codeErrors: output.codeErrors != null ? de_CodeErrors(output.codeErrors, context) : undefined,
|
|
3945
3903
|
message: __expectString(output.message),
|
|
3946
3904
|
};
|
|
3947
3905
|
};
|
|
3948
|
-
const
|
|
3906
|
+
const de_EventBridgeDataSourceConfig = (output, context) => {
|
|
3949
3907
|
return {
|
|
3950
3908
|
eventBusArn: __expectString(output.eventBusArn),
|
|
3951
3909
|
};
|
|
3952
3910
|
};
|
|
3953
|
-
const
|
|
3911
|
+
const de_FunctionConfiguration = (output, context) => {
|
|
3954
3912
|
return {
|
|
3955
3913
|
code: __expectString(output.code),
|
|
3956
3914
|
dataSourceName: __expectString(output.dataSourceName),
|
|
@@ -3962,22 +3920,22 @@ const deserializeAws_restJson1FunctionConfiguration = (output, context) => {
|
|
|
3962
3920
|
name: __expectString(output.name),
|
|
3963
3921
|
requestMappingTemplate: __expectString(output.requestMappingTemplate),
|
|
3964
3922
|
responseMappingTemplate: __expectString(output.responseMappingTemplate),
|
|
3965
|
-
runtime: output.runtime != null ?
|
|
3966
|
-
syncConfig: output.syncConfig != null ?
|
|
3923
|
+
runtime: output.runtime != null ? de_AppSyncRuntime(output.runtime, context) : undefined,
|
|
3924
|
+
syncConfig: output.syncConfig != null ? de_SyncConfig(output.syncConfig, context) : undefined,
|
|
3967
3925
|
};
|
|
3968
3926
|
};
|
|
3969
|
-
const
|
|
3927
|
+
const de_Functions = (output, context) => {
|
|
3970
3928
|
const retVal = (output || [])
|
|
3971
3929
|
.filter((e) => e != null)
|
|
3972
3930
|
.map((entry) => {
|
|
3973
3931
|
if (entry === null) {
|
|
3974
3932
|
return null;
|
|
3975
3933
|
}
|
|
3976
|
-
return
|
|
3934
|
+
return de_FunctionConfiguration(entry, context);
|
|
3977
3935
|
});
|
|
3978
3936
|
return retVal;
|
|
3979
3937
|
};
|
|
3980
|
-
const
|
|
3938
|
+
const de_FunctionsIds = (output, context) => {
|
|
3981
3939
|
const retVal = (output || [])
|
|
3982
3940
|
.filter((e) => e != null)
|
|
3983
3941
|
.map((entry) => {
|
|
@@ -3988,75 +3946,69 @@ const deserializeAws_restJson1FunctionsIds = (output, context) => {
|
|
|
3988
3946
|
});
|
|
3989
3947
|
return retVal;
|
|
3990
3948
|
};
|
|
3991
|
-
const
|
|
3949
|
+
const de_GraphqlApi = (output, context) => {
|
|
3992
3950
|
return {
|
|
3993
3951
|
additionalAuthenticationProviders: output.additionalAuthenticationProviders != null
|
|
3994
|
-
?
|
|
3952
|
+
? de_AdditionalAuthenticationProviders(output.additionalAuthenticationProviders, context)
|
|
3995
3953
|
: undefined,
|
|
3996
3954
|
apiId: __expectString(output.apiId),
|
|
3997
3955
|
arn: __expectString(output.arn),
|
|
3998
3956
|
authenticationType: __expectString(output.authenticationType),
|
|
3999
3957
|
lambdaAuthorizerConfig: output.lambdaAuthorizerConfig != null
|
|
4000
|
-
?
|
|
3958
|
+
? de_LambdaAuthorizerConfig(output.lambdaAuthorizerConfig, context)
|
|
4001
3959
|
: undefined,
|
|
4002
|
-
logConfig: output.logConfig != null ?
|
|
3960
|
+
logConfig: output.logConfig != null ? de_LogConfig(output.logConfig, context) : undefined,
|
|
4003
3961
|
name: __expectString(output.name),
|
|
4004
|
-
openIDConnectConfig: output.openIDConnectConfig != null
|
|
4005
|
-
|
|
4006
|
-
|
|
4007
|
-
|
|
4008
|
-
uris: output.uris != null ? deserializeAws_restJson1MapOfStringToString(output.uris, context) : undefined,
|
|
4009
|
-
userPoolConfig: output.userPoolConfig != null
|
|
4010
|
-
? deserializeAws_restJson1UserPoolConfig(output.userPoolConfig, context)
|
|
4011
|
-
: undefined,
|
|
3962
|
+
openIDConnectConfig: output.openIDConnectConfig != null ? de_OpenIDConnectConfig(output.openIDConnectConfig, context) : undefined,
|
|
3963
|
+
tags: output.tags != null ? de_TagMap(output.tags, context) : undefined,
|
|
3964
|
+
uris: output.uris != null ? de_MapOfStringToString(output.uris, context) : undefined,
|
|
3965
|
+
userPoolConfig: output.userPoolConfig != null ? de_UserPoolConfig(output.userPoolConfig, context) : undefined,
|
|
4012
3966
|
wafWebAclArn: __expectString(output.wafWebAclArn),
|
|
4013
3967
|
xrayEnabled: __expectBoolean(output.xrayEnabled),
|
|
4014
3968
|
};
|
|
4015
3969
|
};
|
|
4016
|
-
const
|
|
3970
|
+
const de_GraphqlApis = (output, context) => {
|
|
4017
3971
|
const retVal = (output || [])
|
|
4018
3972
|
.filter((e) => e != null)
|
|
4019
3973
|
.map((entry) => {
|
|
4020
3974
|
if (entry === null) {
|
|
4021
3975
|
return null;
|
|
4022
3976
|
}
|
|
4023
|
-
return
|
|
3977
|
+
return de_GraphqlApi(entry, context);
|
|
4024
3978
|
});
|
|
4025
3979
|
return retVal;
|
|
4026
3980
|
};
|
|
4027
|
-
const
|
|
3981
|
+
const de_HttpDataSourceConfig = (output, context) => {
|
|
4028
3982
|
return {
|
|
4029
|
-
authorizationConfig: output.authorizationConfig != null
|
|
4030
|
-
? deserializeAws_restJson1AuthorizationConfig(output.authorizationConfig, context)
|
|
4031
|
-
: undefined,
|
|
3983
|
+
authorizationConfig: output.authorizationConfig != null ? de_AuthorizationConfig(output.authorizationConfig, context) : undefined,
|
|
4032
3984
|
endpoint: __expectString(output.endpoint),
|
|
4033
3985
|
};
|
|
4034
3986
|
};
|
|
4035
|
-
const
|
|
3987
|
+
const de_LambdaAuthorizerConfig = (output, context) => {
|
|
4036
3988
|
return {
|
|
4037
3989
|
authorizerResultTtlInSeconds: __expectInt32(output.authorizerResultTtlInSeconds),
|
|
4038
3990
|
authorizerUri: __expectString(output.authorizerUri),
|
|
4039
3991
|
identityValidationExpression: __expectString(output.identityValidationExpression),
|
|
4040
3992
|
};
|
|
4041
3993
|
};
|
|
4042
|
-
const
|
|
3994
|
+
const de_LambdaConflictHandlerConfig = (output, context) => {
|
|
4043
3995
|
return {
|
|
4044
3996
|
lambdaConflictHandlerArn: __expectString(output.lambdaConflictHandlerArn),
|
|
4045
3997
|
};
|
|
4046
3998
|
};
|
|
4047
|
-
const
|
|
3999
|
+
const de_LambdaDataSourceConfig = (output, context) => {
|
|
4048
4000
|
return {
|
|
4049
4001
|
lambdaFunctionArn: __expectString(output.lambdaFunctionArn),
|
|
4050
4002
|
};
|
|
4051
4003
|
};
|
|
4052
|
-
const
|
|
4004
|
+
const de_LogConfig = (output, context) => {
|
|
4053
4005
|
return {
|
|
4054
4006
|
cloudWatchLogsRoleArn: __expectString(output.cloudWatchLogsRoleArn),
|
|
4055
4007
|
excludeVerboseContent: __expectBoolean(output.excludeVerboseContent),
|
|
4056
4008
|
fieldLogLevel: __expectString(output.fieldLogLevel),
|
|
4057
4009
|
};
|
|
4058
4010
|
};
|
|
4059
|
-
const
|
|
4011
|
+
const de_Logs = (output, context) => {
|
|
4060
4012
|
const retVal = (output || [])
|
|
4061
4013
|
.filter((e) => e != null)
|
|
4062
4014
|
.map((entry) => {
|
|
@@ -4067,7 +4019,7 @@ const deserializeAws_restJson1Logs = (output, context) => {
|
|
|
4067
4019
|
});
|
|
4068
4020
|
return retVal;
|
|
4069
4021
|
};
|
|
4070
|
-
const
|
|
4022
|
+
const de_MapOfStringToString = (output, context) => {
|
|
4071
4023
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
4072
4024
|
if (value === null) {
|
|
4073
4025
|
return acc;
|
|
@@ -4076,7 +4028,7 @@ const deserializeAws_restJson1MapOfStringToString = (output, context) => {
|
|
|
4076
4028
|
return acc;
|
|
4077
4029
|
}, {});
|
|
4078
4030
|
};
|
|
4079
|
-
const
|
|
4031
|
+
const de_OpenIDConnectConfig = (output, context) => {
|
|
4080
4032
|
return {
|
|
4081
4033
|
authTTL: __expectLong(output.authTTL),
|
|
4082
4034
|
clientId: __expectString(output.clientId),
|
|
@@ -4084,18 +4036,18 @@ const deserializeAws_restJson1OpenIDConnectConfig = (output, context) => {
|
|
|
4084
4036
|
issuer: __expectString(output.issuer),
|
|
4085
4037
|
};
|
|
4086
4038
|
};
|
|
4087
|
-
const
|
|
4039
|
+
const de_OpenSearchServiceDataSourceConfig = (output, context) => {
|
|
4088
4040
|
return {
|
|
4089
4041
|
awsRegion: __expectString(output.awsRegion),
|
|
4090
4042
|
endpoint: __expectString(output.endpoint),
|
|
4091
4043
|
};
|
|
4092
4044
|
};
|
|
4093
|
-
const
|
|
4045
|
+
const de_PipelineConfig = (output, context) => {
|
|
4094
4046
|
return {
|
|
4095
|
-
functions: output.functions != null ?
|
|
4047
|
+
functions: output.functions != null ? de_FunctionsIds(output.functions, context) : undefined,
|
|
4096
4048
|
};
|
|
4097
4049
|
};
|
|
4098
|
-
const
|
|
4050
|
+
const de_RdsHttpEndpointConfig = (output, context) => {
|
|
4099
4051
|
return {
|
|
4100
4052
|
awsRegion: __expectString(output.awsRegion),
|
|
4101
4053
|
awsSecretStoreArn: __expectString(output.awsSecretStoreArn),
|
|
@@ -4104,54 +4056,52 @@ const deserializeAws_restJson1RdsHttpEndpointConfig = (output, context) => {
|
|
|
4104
4056
|
schema: __expectString(output.schema),
|
|
4105
4057
|
};
|
|
4106
4058
|
};
|
|
4107
|
-
const
|
|
4059
|
+
const de_RelationalDatabaseDataSourceConfig = (output, context) => {
|
|
4108
4060
|
return {
|
|
4109
4061
|
rdsHttpEndpointConfig: output.rdsHttpEndpointConfig != null
|
|
4110
|
-
?
|
|
4062
|
+
? de_RdsHttpEndpointConfig(output.rdsHttpEndpointConfig, context)
|
|
4111
4063
|
: undefined,
|
|
4112
4064
|
relationalDatabaseSourceType: __expectString(output.relationalDatabaseSourceType),
|
|
4113
4065
|
};
|
|
4114
4066
|
};
|
|
4115
|
-
const
|
|
4067
|
+
const de_Resolver = (output, context) => {
|
|
4116
4068
|
return {
|
|
4117
|
-
cachingConfig: output.cachingConfig != null ?
|
|
4069
|
+
cachingConfig: output.cachingConfig != null ? de_CachingConfig(output.cachingConfig, context) : undefined,
|
|
4118
4070
|
code: __expectString(output.code),
|
|
4119
4071
|
dataSourceName: __expectString(output.dataSourceName),
|
|
4120
4072
|
fieldName: __expectString(output.fieldName),
|
|
4121
4073
|
kind: __expectString(output.kind),
|
|
4122
4074
|
maxBatchSize: __expectInt32(output.maxBatchSize),
|
|
4123
|
-
pipelineConfig: output.pipelineConfig != null
|
|
4124
|
-
? deserializeAws_restJson1PipelineConfig(output.pipelineConfig, context)
|
|
4125
|
-
: undefined,
|
|
4075
|
+
pipelineConfig: output.pipelineConfig != null ? de_PipelineConfig(output.pipelineConfig, context) : undefined,
|
|
4126
4076
|
requestMappingTemplate: __expectString(output.requestMappingTemplate),
|
|
4127
4077
|
resolverArn: __expectString(output.resolverArn),
|
|
4128
4078
|
responseMappingTemplate: __expectString(output.responseMappingTemplate),
|
|
4129
|
-
runtime: output.runtime != null ?
|
|
4130
|
-
syncConfig: output.syncConfig != null ?
|
|
4079
|
+
runtime: output.runtime != null ? de_AppSyncRuntime(output.runtime, context) : undefined,
|
|
4080
|
+
syncConfig: output.syncConfig != null ? de_SyncConfig(output.syncConfig, context) : undefined,
|
|
4131
4081
|
typeName: __expectString(output.typeName),
|
|
4132
4082
|
};
|
|
4133
4083
|
};
|
|
4134
|
-
const
|
|
4084
|
+
const de_Resolvers = (output, context) => {
|
|
4135
4085
|
const retVal = (output || [])
|
|
4136
4086
|
.filter((e) => e != null)
|
|
4137
4087
|
.map((entry) => {
|
|
4138
4088
|
if (entry === null) {
|
|
4139
4089
|
return null;
|
|
4140
4090
|
}
|
|
4141
|
-
return
|
|
4091
|
+
return de_Resolver(entry, context);
|
|
4142
4092
|
});
|
|
4143
4093
|
return retVal;
|
|
4144
4094
|
};
|
|
4145
|
-
const
|
|
4095
|
+
const de_SyncConfig = (output, context) => {
|
|
4146
4096
|
return {
|
|
4147
4097
|
conflictDetection: __expectString(output.conflictDetection),
|
|
4148
4098
|
conflictHandler: __expectString(output.conflictHandler),
|
|
4149
4099
|
lambdaConflictHandlerConfig: output.lambdaConflictHandlerConfig != null
|
|
4150
|
-
?
|
|
4100
|
+
? de_LambdaConflictHandlerConfig(output.lambdaConflictHandlerConfig, context)
|
|
4151
4101
|
: undefined,
|
|
4152
4102
|
};
|
|
4153
4103
|
};
|
|
4154
|
-
const
|
|
4104
|
+
const de_TagMap = (output, context) => {
|
|
4155
4105
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
4156
4106
|
if (value === null) {
|
|
4157
4107
|
return acc;
|
|
@@ -4160,7 +4110,7 @@ const deserializeAws_restJson1TagMap = (output, context) => {
|
|
|
4160
4110
|
return acc;
|
|
4161
4111
|
}, {});
|
|
4162
4112
|
};
|
|
4163
|
-
const
|
|
4113
|
+
const de_Type = (output, context) => {
|
|
4164
4114
|
return {
|
|
4165
4115
|
arn: __expectString(output.arn),
|
|
4166
4116
|
definition: __expectString(output.definition),
|
|
@@ -4169,18 +4119,18 @@ const deserializeAws_restJson1Type = (output, context) => {
|
|
|
4169
4119
|
name: __expectString(output.name),
|
|
4170
4120
|
};
|
|
4171
4121
|
};
|
|
4172
|
-
const
|
|
4122
|
+
const de_TypeList = (output, context) => {
|
|
4173
4123
|
const retVal = (output || [])
|
|
4174
4124
|
.filter((e) => e != null)
|
|
4175
4125
|
.map((entry) => {
|
|
4176
4126
|
if (entry === null) {
|
|
4177
4127
|
return null;
|
|
4178
4128
|
}
|
|
4179
|
-
return
|
|
4129
|
+
return de_Type(entry, context);
|
|
4180
4130
|
});
|
|
4181
4131
|
return retVal;
|
|
4182
4132
|
};
|
|
4183
|
-
const
|
|
4133
|
+
const de_UserPoolConfig = (output, context) => {
|
|
4184
4134
|
return {
|
|
4185
4135
|
appIdClientRegex: __expectString(output.appIdClientRegex),
|
|
4186
4136
|
awsRegion: __expectString(output.awsRegion),
|