@aws-sdk/client-appsync 3.121.0 → 3.128.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/CHANGELOG.md +27 -0
- package/dist-cjs/protocols/Aws_restJson1.js +186 -284
- package/dist-es/protocols/Aws_restJson1.js +109 -207
- package/dist-types/models/models_0.d.ts +1 -1
- package/package.json +26 -26
|
@@ -11,7 +11,8 @@ const serializeAws_restJson1AssociateApiCommand = async (input, context) => {
|
|
|
11
11
|
const headers = {
|
|
12
12
|
"content-type": "application/json",
|
|
13
13
|
};
|
|
14
|
-
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
14
|
+
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
15
|
+
"/v1/domainnames/{domainName}/apiassociation";
|
|
15
16
|
if (input.domainName !== undefined) {
|
|
16
17
|
const labelValue = input.domainName;
|
|
17
18
|
if (labelValue.length <= 0) {
|
|
@@ -24,7 +25,7 @@ const serializeAws_restJson1AssociateApiCommand = async (input, context) => {
|
|
|
24
25
|
}
|
|
25
26
|
let body;
|
|
26
27
|
body = JSON.stringify({
|
|
27
|
-
...(input.apiId
|
|
28
|
+
...(input.apiId != null && { apiId: input.apiId }),
|
|
28
29
|
});
|
|
29
30
|
return new protocol_http_1.HttpRequest({
|
|
30
31
|
protocol,
|
|
@@ -55,14 +56,11 @@ const serializeAws_restJson1CreateApiCacheCommand = async (input, context) => {
|
|
|
55
56
|
}
|
|
56
57
|
let body;
|
|
57
58
|
body = JSON.stringify({
|
|
58
|
-
...(input.apiCachingBehavior
|
|
59
|
-
|
|
60
|
-
...(input.
|
|
61
|
-
|
|
62
|
-
...(input.
|
|
63
|
-
input.transitEncryptionEnabled !== null && { transitEncryptionEnabled: input.transitEncryptionEnabled }),
|
|
64
|
-
...(input.ttl !== undefined && input.ttl !== null && { ttl: input.ttl }),
|
|
65
|
-
...(input.type !== undefined && input.type !== null && { type: input.type }),
|
|
59
|
+
...(input.apiCachingBehavior != null && { apiCachingBehavior: input.apiCachingBehavior }),
|
|
60
|
+
...(input.atRestEncryptionEnabled != null && { atRestEncryptionEnabled: input.atRestEncryptionEnabled }),
|
|
61
|
+
...(input.transitEncryptionEnabled != null && { transitEncryptionEnabled: input.transitEncryptionEnabled }),
|
|
62
|
+
...(input.ttl != null && { ttl: input.ttl }),
|
|
63
|
+
...(input.type != null && { type: input.type }),
|
|
66
64
|
});
|
|
67
65
|
return new protocol_http_1.HttpRequest({
|
|
68
66
|
protocol,
|
|
@@ -93,8 +91,8 @@ const serializeAws_restJson1CreateApiKeyCommand = async (input, context) => {
|
|
|
93
91
|
}
|
|
94
92
|
let body;
|
|
95
93
|
body = JSON.stringify({
|
|
96
|
-
...(input.description
|
|
97
|
-
...(input.expires
|
|
94
|
+
...(input.description != null && { description: input.description }),
|
|
95
|
+
...(input.expires != null && { expires: input.expires }),
|
|
98
96
|
});
|
|
99
97
|
return new protocol_http_1.HttpRequest({
|
|
100
98
|
protocol,
|
|
@@ -125,35 +123,28 @@ const serializeAws_restJson1CreateDataSourceCommand = async (input, context) =>
|
|
|
125
123
|
}
|
|
126
124
|
let body;
|
|
127
125
|
body = JSON.stringify({
|
|
128
|
-
...(input.description
|
|
129
|
-
...(input.dynamodbConfig
|
|
130
|
-
input.dynamodbConfig !== null && {
|
|
126
|
+
...(input.description != null && { description: input.description }),
|
|
127
|
+
...(input.dynamodbConfig != null && {
|
|
131
128
|
dynamodbConfig: serializeAws_restJson1DynamodbDataSourceConfig(input.dynamodbConfig, context),
|
|
132
129
|
}),
|
|
133
|
-
...(input.elasticsearchConfig
|
|
134
|
-
input.elasticsearchConfig !== null && {
|
|
130
|
+
...(input.elasticsearchConfig != null && {
|
|
135
131
|
elasticsearchConfig: serializeAws_restJson1ElasticsearchDataSourceConfig(input.elasticsearchConfig, context),
|
|
136
132
|
}),
|
|
137
|
-
...(input.httpConfig
|
|
138
|
-
input.httpConfig !== null && {
|
|
133
|
+
...(input.httpConfig != null && {
|
|
139
134
|
httpConfig: serializeAws_restJson1HttpDataSourceConfig(input.httpConfig, context),
|
|
140
135
|
}),
|
|
141
|
-
...(input.lambdaConfig
|
|
142
|
-
input.lambdaConfig !== null && {
|
|
136
|
+
...(input.lambdaConfig != null && {
|
|
143
137
|
lambdaConfig: serializeAws_restJson1LambdaDataSourceConfig(input.lambdaConfig, context),
|
|
144
138
|
}),
|
|
145
|
-
...(input.name
|
|
146
|
-
...(input.openSearchServiceConfig
|
|
147
|
-
input.openSearchServiceConfig !== null && {
|
|
139
|
+
...(input.name != null && { name: input.name }),
|
|
140
|
+
...(input.openSearchServiceConfig != null && {
|
|
148
141
|
openSearchServiceConfig: serializeAws_restJson1OpenSearchServiceDataSourceConfig(input.openSearchServiceConfig, context),
|
|
149
142
|
}),
|
|
150
|
-
...(input.relationalDatabaseConfig
|
|
151
|
-
input.relationalDatabaseConfig !== null && {
|
|
143
|
+
...(input.relationalDatabaseConfig != null && {
|
|
152
144
|
relationalDatabaseConfig: serializeAws_restJson1RelationalDatabaseDataSourceConfig(input.relationalDatabaseConfig, context),
|
|
153
145
|
}),
|
|
154
|
-
...(input.serviceRoleArn
|
|
155
|
-
|
|
156
|
-
...(input.type !== undefined && input.type !== null && { type: input.type }),
|
|
146
|
+
...(input.serviceRoleArn != null && { serviceRoleArn: input.serviceRoleArn }),
|
|
147
|
+
...(input.type != null && { type: input.type }),
|
|
157
148
|
});
|
|
158
149
|
return new protocol_http_1.HttpRequest({
|
|
159
150
|
protocol,
|
|
@@ -171,13 +162,12 @@ const serializeAws_restJson1CreateDomainNameCommand = async (input, context) =>
|
|
|
171
162
|
const headers = {
|
|
172
163
|
"content-type": "application/json",
|
|
173
164
|
};
|
|
174
|
-
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/domainnames";
|
|
165
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v1/domainnames";
|
|
175
166
|
let body;
|
|
176
167
|
body = JSON.stringify({
|
|
177
|
-
...(input.certificateArn
|
|
178
|
-
|
|
179
|
-
...(input.
|
|
180
|
-
...(input.domainName !== undefined && input.domainName !== null && { domainName: input.domainName }),
|
|
168
|
+
...(input.certificateArn != null && { certificateArn: input.certificateArn }),
|
|
169
|
+
...(input.description != null && { description: input.description }),
|
|
170
|
+
...(input.domainName != null && { domainName: input.domainName }),
|
|
181
171
|
});
|
|
182
172
|
return new protocol_http_1.HttpRequest({
|
|
183
173
|
protocol,
|
|
@@ -208,19 +198,14 @@ const serializeAws_restJson1CreateFunctionCommand = async (input, context) => {
|
|
|
208
198
|
}
|
|
209
199
|
let body;
|
|
210
200
|
body = JSON.stringify({
|
|
211
|
-
...(input.dataSourceName
|
|
212
|
-
|
|
213
|
-
...(input.
|
|
214
|
-
...(input.
|
|
215
|
-
|
|
216
|
-
...(input.
|
|
217
|
-
...(input.
|
|
218
|
-
...(input.
|
|
219
|
-
input.requestMappingTemplate !== null && { requestMappingTemplate: input.requestMappingTemplate }),
|
|
220
|
-
...(input.responseMappingTemplate !== undefined &&
|
|
221
|
-
input.responseMappingTemplate !== null && { responseMappingTemplate: input.responseMappingTemplate }),
|
|
222
|
-
...(input.syncConfig !== undefined &&
|
|
223
|
-
input.syncConfig !== null && { syncConfig: serializeAws_restJson1SyncConfig(input.syncConfig, context) }),
|
|
201
|
+
...(input.dataSourceName != null && { dataSourceName: input.dataSourceName }),
|
|
202
|
+
...(input.description != null && { description: input.description }),
|
|
203
|
+
...(input.functionVersion != null && { functionVersion: input.functionVersion }),
|
|
204
|
+
...(input.maxBatchSize != null && { maxBatchSize: input.maxBatchSize }),
|
|
205
|
+
...(input.name != null && { name: input.name }),
|
|
206
|
+
...(input.requestMappingTemplate != null && { requestMappingTemplate: input.requestMappingTemplate }),
|
|
207
|
+
...(input.responseMappingTemplate != null && { responseMappingTemplate: input.responseMappingTemplate }),
|
|
208
|
+
...(input.syncConfig != null && { syncConfig: serializeAws_restJson1SyncConfig(input.syncConfig, context) }),
|
|
224
209
|
});
|
|
225
210
|
return new protocol_http_1.HttpRequest({
|
|
226
211
|
protocol,
|
|
@@ -241,29 +226,23 @@ const serializeAws_restJson1CreateGraphqlApiCommand = async (input, context) =>
|
|
|
241
226
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis";
|
|
242
227
|
let body;
|
|
243
228
|
body = JSON.stringify({
|
|
244
|
-
...(input.additionalAuthenticationProviders
|
|
245
|
-
input.additionalAuthenticationProviders !== null && {
|
|
229
|
+
...(input.additionalAuthenticationProviders != null && {
|
|
246
230
|
additionalAuthenticationProviders: serializeAws_restJson1AdditionalAuthenticationProviders(input.additionalAuthenticationProviders, context),
|
|
247
231
|
}),
|
|
248
|
-
...(input.authenticationType
|
|
249
|
-
|
|
250
|
-
...(input.lambdaAuthorizerConfig !== undefined &&
|
|
251
|
-
input.lambdaAuthorizerConfig !== null && {
|
|
232
|
+
...(input.authenticationType != null && { authenticationType: input.authenticationType }),
|
|
233
|
+
...(input.lambdaAuthorizerConfig != null && {
|
|
252
234
|
lambdaAuthorizerConfig: serializeAws_restJson1LambdaAuthorizerConfig(input.lambdaAuthorizerConfig, context),
|
|
253
235
|
}),
|
|
254
|
-
...(input.logConfig
|
|
255
|
-
|
|
256
|
-
...(input.
|
|
257
|
-
...(input.openIDConnectConfig !== undefined &&
|
|
258
|
-
input.openIDConnectConfig !== null && {
|
|
236
|
+
...(input.logConfig != null && { logConfig: serializeAws_restJson1LogConfig(input.logConfig, context) }),
|
|
237
|
+
...(input.name != null && { name: input.name }),
|
|
238
|
+
...(input.openIDConnectConfig != null && {
|
|
259
239
|
openIDConnectConfig: serializeAws_restJson1OpenIDConnectConfig(input.openIDConnectConfig, context),
|
|
260
240
|
}),
|
|
261
|
-
...(input.tags
|
|
262
|
-
...(input.userPoolConfig
|
|
263
|
-
input.userPoolConfig !== null && {
|
|
241
|
+
...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
|
|
242
|
+
...(input.userPoolConfig != null && {
|
|
264
243
|
userPoolConfig: serializeAws_restJson1UserPoolConfig(input.userPoolConfig, context),
|
|
265
244
|
}),
|
|
266
|
-
...(input.xrayEnabled
|
|
245
|
+
...(input.xrayEnabled != null && { xrayEnabled: input.xrayEnabled }),
|
|
267
246
|
});
|
|
268
247
|
return new protocol_http_1.HttpRequest({
|
|
269
248
|
protocol,
|
|
@@ -305,25 +284,19 @@ const serializeAws_restJson1CreateResolverCommand = async (input, context) => {
|
|
|
305
284
|
}
|
|
306
285
|
let body;
|
|
307
286
|
body = JSON.stringify({
|
|
308
|
-
...(input.cachingConfig
|
|
309
|
-
input.cachingConfig !== null && {
|
|
287
|
+
...(input.cachingConfig != null && {
|
|
310
288
|
cachingConfig: serializeAws_restJson1CachingConfig(input.cachingConfig, context),
|
|
311
289
|
}),
|
|
312
|
-
...(input.dataSourceName
|
|
313
|
-
|
|
314
|
-
...(input.
|
|
315
|
-
...(input.
|
|
316
|
-
...(input.
|
|
317
|
-
...(input.pipelineConfig !== undefined &&
|
|
318
|
-
input.pipelineConfig !== null && {
|
|
290
|
+
...(input.dataSourceName != null && { dataSourceName: input.dataSourceName }),
|
|
291
|
+
...(input.fieldName != null && { fieldName: input.fieldName }),
|
|
292
|
+
...(input.kind != null && { kind: input.kind }),
|
|
293
|
+
...(input.maxBatchSize != null && { maxBatchSize: input.maxBatchSize }),
|
|
294
|
+
...(input.pipelineConfig != null && {
|
|
319
295
|
pipelineConfig: serializeAws_restJson1PipelineConfig(input.pipelineConfig, context),
|
|
320
296
|
}),
|
|
321
|
-
...(input.requestMappingTemplate
|
|
322
|
-
|
|
323
|
-
...(input.
|
|
324
|
-
input.responseMappingTemplate !== null && { responseMappingTemplate: input.responseMappingTemplate }),
|
|
325
|
-
...(input.syncConfig !== undefined &&
|
|
326
|
-
input.syncConfig !== null && { syncConfig: serializeAws_restJson1SyncConfig(input.syncConfig, context) }),
|
|
297
|
+
...(input.requestMappingTemplate != null && { requestMappingTemplate: input.requestMappingTemplate }),
|
|
298
|
+
...(input.responseMappingTemplate != null && { responseMappingTemplate: input.responseMappingTemplate }),
|
|
299
|
+
...(input.syncConfig != null && { syncConfig: serializeAws_restJson1SyncConfig(input.syncConfig, context) }),
|
|
327
300
|
});
|
|
328
301
|
return new protocol_http_1.HttpRequest({
|
|
329
302
|
protocol,
|
|
@@ -354,8 +327,8 @@ const serializeAws_restJson1CreateTypeCommand = async (input, context) => {
|
|
|
354
327
|
}
|
|
355
328
|
let body;
|
|
356
329
|
body = JSON.stringify({
|
|
357
|
-
...(input.definition
|
|
358
|
-
...(input.format
|
|
330
|
+
...(input.definition != null && { definition: input.definition }),
|
|
331
|
+
...(input.format != null && { format: input.format }),
|
|
359
332
|
});
|
|
360
333
|
return new protocol_http_1.HttpRequest({
|
|
361
334
|
protocol,
|
|
@@ -469,7 +442,7 @@ exports.serializeAws_restJson1DeleteDataSourceCommand = serializeAws_restJson1De
|
|
|
469
442
|
const serializeAws_restJson1DeleteDomainNameCommand = async (input, context) => {
|
|
470
443
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
471
444
|
const headers = {};
|
|
472
|
-
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/domainnames/{domainName}";
|
|
445
|
+
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v1/domainnames/{domainName}";
|
|
473
446
|
if (input.domainName !== undefined) {
|
|
474
447
|
const labelValue = input.domainName;
|
|
475
448
|
if (labelValue.length <= 0) {
|
|
@@ -640,7 +613,8 @@ exports.serializeAws_restJson1DeleteTypeCommand = serializeAws_restJson1DeleteTy
|
|
|
640
613
|
const serializeAws_restJson1DisassociateApiCommand = async (input, context) => {
|
|
641
614
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
642
615
|
const headers = {};
|
|
643
|
-
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
616
|
+
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
617
|
+
"/v1/domainnames/{domainName}/apiassociation";
|
|
644
618
|
if (input.domainName !== undefined) {
|
|
645
619
|
const labelValue = input.domainName;
|
|
646
620
|
if (labelValue.length <= 0) {
|
|
@@ -692,7 +666,8 @@ exports.serializeAws_restJson1FlushApiCacheCommand = serializeAws_restJson1Flush
|
|
|
692
666
|
const serializeAws_restJson1GetApiAssociationCommand = async (input, context) => {
|
|
693
667
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
694
668
|
const headers = {};
|
|
695
|
-
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
669
|
+
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
670
|
+
"/v1/domainnames/{domainName}/apiassociation";
|
|
696
671
|
if (input.domainName !== undefined) {
|
|
697
672
|
const labelValue = input.domainName;
|
|
698
673
|
if (labelValue.length <= 0) {
|
|
@@ -780,7 +755,7 @@ exports.serializeAws_restJson1GetDataSourceCommand = serializeAws_restJson1GetDa
|
|
|
780
755
|
const serializeAws_restJson1GetDomainNameCommand = async (input, context) => {
|
|
781
756
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
782
757
|
const headers = {};
|
|
783
|
-
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/domainnames/{domainName}";
|
|
758
|
+
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v1/domainnames/{domainName}";
|
|
784
759
|
if (input.domainName !== undefined) {
|
|
785
760
|
const labelValue = input.domainName;
|
|
786
761
|
if (labelValue.length <= 0) {
|
|
@@ -1074,7 +1049,7 @@ exports.serializeAws_restJson1ListDataSourcesCommand = serializeAws_restJson1Lis
|
|
|
1074
1049
|
const serializeAws_restJson1ListDomainNamesCommand = async (input, context) => {
|
|
1075
1050
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1076
1051
|
const headers = {};
|
|
1077
|
-
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/domainnames";
|
|
1052
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v1/domainnames";
|
|
1078
1053
|
const query = {
|
|
1079
1054
|
...(input.nextToken !== undefined && { nextToken: input.nextToken }),
|
|
1080
1055
|
...(input.maxResults !== undefined && { maxResults: input.maxResults.toString() }),
|
|
@@ -1304,8 +1279,7 @@ const serializeAws_restJson1StartSchemaCreationCommand = async (input, context)
|
|
|
1304
1279
|
}
|
|
1305
1280
|
let body;
|
|
1306
1281
|
body = JSON.stringify({
|
|
1307
|
-
...(input.definition
|
|
1308
|
-
input.definition !== null && { definition: context.base64Encoder(input.definition) }),
|
|
1282
|
+
...(input.definition != null && { definition: context.base64Encoder(input.definition) }),
|
|
1309
1283
|
});
|
|
1310
1284
|
return new protocol_http_1.HttpRequest({
|
|
1311
1285
|
protocol,
|
|
@@ -1336,7 +1310,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
1336
1310
|
}
|
|
1337
1311
|
let body;
|
|
1338
1312
|
body = JSON.stringify({
|
|
1339
|
-
...(input.tags
|
|
1313
|
+
...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
|
|
1340
1314
|
});
|
|
1341
1315
|
return new protocol_http_1.HttpRequest({
|
|
1342
1316
|
protocol,
|
|
@@ -1397,10 +1371,9 @@ const serializeAws_restJson1UpdateApiCacheCommand = async (input, context) => {
|
|
|
1397
1371
|
}
|
|
1398
1372
|
let body;
|
|
1399
1373
|
body = JSON.stringify({
|
|
1400
|
-
...(input.apiCachingBehavior
|
|
1401
|
-
|
|
1402
|
-
...(input.
|
|
1403
|
-
...(input.type !== undefined && input.type !== null && { type: input.type }),
|
|
1374
|
+
...(input.apiCachingBehavior != null && { apiCachingBehavior: input.apiCachingBehavior }),
|
|
1375
|
+
...(input.ttl != null && { ttl: input.ttl }),
|
|
1376
|
+
...(input.type != null && { type: input.type }),
|
|
1404
1377
|
});
|
|
1405
1378
|
return new protocol_http_1.HttpRequest({
|
|
1406
1379
|
protocol,
|
|
@@ -1441,8 +1414,8 @@ const serializeAws_restJson1UpdateApiKeyCommand = async (input, context) => {
|
|
|
1441
1414
|
}
|
|
1442
1415
|
let body;
|
|
1443
1416
|
body = JSON.stringify({
|
|
1444
|
-
...(input.description
|
|
1445
|
-
...(input.expires
|
|
1417
|
+
...(input.description != null && { description: input.description }),
|
|
1418
|
+
...(input.expires != null && { expires: input.expires }),
|
|
1446
1419
|
});
|
|
1447
1420
|
return new protocol_http_1.HttpRequest({
|
|
1448
1421
|
protocol,
|
|
@@ -1483,34 +1456,27 @@ const serializeAws_restJson1UpdateDataSourceCommand = async (input, context) =>
|
|
|
1483
1456
|
}
|
|
1484
1457
|
let body;
|
|
1485
1458
|
body = JSON.stringify({
|
|
1486
|
-
...(input.description
|
|
1487
|
-
...(input.dynamodbConfig
|
|
1488
|
-
input.dynamodbConfig !== null && {
|
|
1459
|
+
...(input.description != null && { description: input.description }),
|
|
1460
|
+
...(input.dynamodbConfig != null && {
|
|
1489
1461
|
dynamodbConfig: serializeAws_restJson1DynamodbDataSourceConfig(input.dynamodbConfig, context),
|
|
1490
1462
|
}),
|
|
1491
|
-
...(input.elasticsearchConfig
|
|
1492
|
-
input.elasticsearchConfig !== null && {
|
|
1463
|
+
...(input.elasticsearchConfig != null && {
|
|
1493
1464
|
elasticsearchConfig: serializeAws_restJson1ElasticsearchDataSourceConfig(input.elasticsearchConfig, context),
|
|
1494
1465
|
}),
|
|
1495
|
-
...(input.httpConfig
|
|
1496
|
-
input.httpConfig !== null && {
|
|
1466
|
+
...(input.httpConfig != null && {
|
|
1497
1467
|
httpConfig: serializeAws_restJson1HttpDataSourceConfig(input.httpConfig, context),
|
|
1498
1468
|
}),
|
|
1499
|
-
...(input.lambdaConfig
|
|
1500
|
-
input.lambdaConfig !== null && {
|
|
1469
|
+
...(input.lambdaConfig != null && {
|
|
1501
1470
|
lambdaConfig: serializeAws_restJson1LambdaDataSourceConfig(input.lambdaConfig, context),
|
|
1502
1471
|
}),
|
|
1503
|
-
...(input.openSearchServiceConfig
|
|
1504
|
-
input.openSearchServiceConfig !== null && {
|
|
1472
|
+
...(input.openSearchServiceConfig != null && {
|
|
1505
1473
|
openSearchServiceConfig: serializeAws_restJson1OpenSearchServiceDataSourceConfig(input.openSearchServiceConfig, context),
|
|
1506
1474
|
}),
|
|
1507
|
-
...(input.relationalDatabaseConfig
|
|
1508
|
-
input.relationalDatabaseConfig !== null && {
|
|
1475
|
+
...(input.relationalDatabaseConfig != null && {
|
|
1509
1476
|
relationalDatabaseConfig: serializeAws_restJson1RelationalDatabaseDataSourceConfig(input.relationalDatabaseConfig, context),
|
|
1510
1477
|
}),
|
|
1511
|
-
...(input.serviceRoleArn
|
|
1512
|
-
|
|
1513
|
-
...(input.type !== undefined && input.type !== null && { type: input.type }),
|
|
1478
|
+
...(input.serviceRoleArn != null && { serviceRoleArn: input.serviceRoleArn }),
|
|
1479
|
+
...(input.type != null && { type: input.type }),
|
|
1514
1480
|
});
|
|
1515
1481
|
return new protocol_http_1.HttpRequest({
|
|
1516
1482
|
protocol,
|
|
@@ -1528,7 +1494,7 @@ const serializeAws_restJson1UpdateDomainNameCommand = async (input, context) =>
|
|
|
1528
1494
|
const headers = {
|
|
1529
1495
|
"content-type": "application/json",
|
|
1530
1496
|
};
|
|
1531
|
-
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/domainnames/{domainName}";
|
|
1497
|
+
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v1/domainnames/{domainName}";
|
|
1532
1498
|
if (input.domainName !== undefined) {
|
|
1533
1499
|
const labelValue = input.domainName;
|
|
1534
1500
|
if (labelValue.length <= 0) {
|
|
@@ -1541,7 +1507,7 @@ const serializeAws_restJson1UpdateDomainNameCommand = async (input, context) =>
|
|
|
1541
1507
|
}
|
|
1542
1508
|
let body;
|
|
1543
1509
|
body = JSON.stringify({
|
|
1544
|
-
...(input.description
|
|
1510
|
+
...(input.description != null && { description: input.description }),
|
|
1545
1511
|
});
|
|
1546
1512
|
return new protocol_http_1.HttpRequest({
|
|
1547
1513
|
protocol,
|
|
@@ -1582,19 +1548,14 @@ const serializeAws_restJson1UpdateFunctionCommand = async (input, context) => {
|
|
|
1582
1548
|
}
|
|
1583
1549
|
let body;
|
|
1584
1550
|
body = JSON.stringify({
|
|
1585
|
-
...(input.dataSourceName
|
|
1586
|
-
|
|
1587
|
-
...(input.
|
|
1588
|
-
...(input.
|
|
1589
|
-
|
|
1590
|
-
...(input.
|
|
1591
|
-
...(input.
|
|
1592
|
-
...(input.
|
|
1593
|
-
input.requestMappingTemplate !== null && { requestMappingTemplate: input.requestMappingTemplate }),
|
|
1594
|
-
...(input.responseMappingTemplate !== undefined &&
|
|
1595
|
-
input.responseMappingTemplate !== null && { responseMappingTemplate: input.responseMappingTemplate }),
|
|
1596
|
-
...(input.syncConfig !== undefined &&
|
|
1597
|
-
input.syncConfig !== null && { syncConfig: serializeAws_restJson1SyncConfig(input.syncConfig, context) }),
|
|
1551
|
+
...(input.dataSourceName != null && { dataSourceName: input.dataSourceName }),
|
|
1552
|
+
...(input.description != null && { description: input.description }),
|
|
1553
|
+
...(input.functionVersion != null && { functionVersion: input.functionVersion }),
|
|
1554
|
+
...(input.maxBatchSize != null && { maxBatchSize: input.maxBatchSize }),
|
|
1555
|
+
...(input.name != null && { name: input.name }),
|
|
1556
|
+
...(input.requestMappingTemplate != null && { requestMappingTemplate: input.requestMappingTemplate }),
|
|
1557
|
+
...(input.responseMappingTemplate != null && { responseMappingTemplate: input.responseMappingTemplate }),
|
|
1558
|
+
...(input.syncConfig != null && { syncConfig: serializeAws_restJson1SyncConfig(input.syncConfig, context) }),
|
|
1598
1559
|
});
|
|
1599
1560
|
return new protocol_http_1.HttpRequest({
|
|
1600
1561
|
protocol,
|
|
@@ -1625,28 +1586,22 @@ const serializeAws_restJson1UpdateGraphqlApiCommand = async (input, context) =>
|
|
|
1625
1586
|
}
|
|
1626
1587
|
let body;
|
|
1627
1588
|
body = JSON.stringify({
|
|
1628
|
-
...(input.additionalAuthenticationProviders
|
|
1629
|
-
input.additionalAuthenticationProviders !== null && {
|
|
1589
|
+
...(input.additionalAuthenticationProviders != null && {
|
|
1630
1590
|
additionalAuthenticationProviders: serializeAws_restJson1AdditionalAuthenticationProviders(input.additionalAuthenticationProviders, context),
|
|
1631
1591
|
}),
|
|
1632
|
-
...(input.authenticationType
|
|
1633
|
-
|
|
1634
|
-
...(input.lambdaAuthorizerConfig !== undefined &&
|
|
1635
|
-
input.lambdaAuthorizerConfig !== null && {
|
|
1592
|
+
...(input.authenticationType != null && { authenticationType: input.authenticationType }),
|
|
1593
|
+
...(input.lambdaAuthorizerConfig != null && {
|
|
1636
1594
|
lambdaAuthorizerConfig: serializeAws_restJson1LambdaAuthorizerConfig(input.lambdaAuthorizerConfig, context),
|
|
1637
1595
|
}),
|
|
1638
|
-
...(input.logConfig
|
|
1639
|
-
|
|
1640
|
-
...(input.
|
|
1641
|
-
...(input.openIDConnectConfig !== undefined &&
|
|
1642
|
-
input.openIDConnectConfig !== null && {
|
|
1596
|
+
...(input.logConfig != null && { logConfig: serializeAws_restJson1LogConfig(input.logConfig, context) }),
|
|
1597
|
+
...(input.name != null && { name: input.name }),
|
|
1598
|
+
...(input.openIDConnectConfig != null && {
|
|
1643
1599
|
openIDConnectConfig: serializeAws_restJson1OpenIDConnectConfig(input.openIDConnectConfig, context),
|
|
1644
1600
|
}),
|
|
1645
|
-
...(input.userPoolConfig
|
|
1646
|
-
input.userPoolConfig !== null && {
|
|
1601
|
+
...(input.userPoolConfig != null && {
|
|
1647
1602
|
userPoolConfig: serializeAws_restJson1UserPoolConfig(input.userPoolConfig, context),
|
|
1648
1603
|
}),
|
|
1649
|
-
...(input.xrayEnabled
|
|
1604
|
+
...(input.xrayEnabled != null && { xrayEnabled: input.xrayEnabled }),
|
|
1650
1605
|
});
|
|
1651
1606
|
return new protocol_http_1.HttpRequest({
|
|
1652
1607
|
protocol,
|
|
@@ -1698,24 +1653,18 @@ const serializeAws_restJson1UpdateResolverCommand = async (input, context) => {
|
|
|
1698
1653
|
}
|
|
1699
1654
|
let body;
|
|
1700
1655
|
body = JSON.stringify({
|
|
1701
|
-
...(input.cachingConfig
|
|
1702
|
-
input.cachingConfig !== null && {
|
|
1656
|
+
...(input.cachingConfig != null && {
|
|
1703
1657
|
cachingConfig: serializeAws_restJson1CachingConfig(input.cachingConfig, context),
|
|
1704
1658
|
}),
|
|
1705
|
-
...(input.dataSourceName
|
|
1706
|
-
|
|
1707
|
-
...(input.
|
|
1708
|
-
...(input.
|
|
1709
|
-
...(input.pipelineConfig !== undefined &&
|
|
1710
|
-
input.pipelineConfig !== null && {
|
|
1659
|
+
...(input.dataSourceName != null && { dataSourceName: input.dataSourceName }),
|
|
1660
|
+
...(input.kind != null && { kind: input.kind }),
|
|
1661
|
+
...(input.maxBatchSize != null && { maxBatchSize: input.maxBatchSize }),
|
|
1662
|
+
...(input.pipelineConfig != null && {
|
|
1711
1663
|
pipelineConfig: serializeAws_restJson1PipelineConfig(input.pipelineConfig, context),
|
|
1712
1664
|
}),
|
|
1713
|
-
...(input.requestMappingTemplate
|
|
1714
|
-
|
|
1715
|
-
...(input.
|
|
1716
|
-
input.responseMappingTemplate !== null && { responseMappingTemplate: input.responseMappingTemplate }),
|
|
1717
|
-
...(input.syncConfig !== undefined &&
|
|
1718
|
-
input.syncConfig !== null && { syncConfig: serializeAws_restJson1SyncConfig(input.syncConfig, context) }),
|
|
1665
|
+
...(input.requestMappingTemplate != null && { requestMappingTemplate: input.requestMappingTemplate }),
|
|
1666
|
+
...(input.responseMappingTemplate != null && { responseMappingTemplate: input.responseMappingTemplate }),
|
|
1667
|
+
...(input.syncConfig != null && { syncConfig: serializeAws_restJson1SyncConfig(input.syncConfig, context) }),
|
|
1719
1668
|
});
|
|
1720
1669
|
return new protocol_http_1.HttpRequest({
|
|
1721
1670
|
protocol,
|
|
@@ -1756,8 +1705,8 @@ const serializeAws_restJson1UpdateTypeCommand = async (input, context) => {
|
|
|
1756
1705
|
}
|
|
1757
1706
|
let body;
|
|
1758
1707
|
body = JSON.stringify({
|
|
1759
|
-
...(input.definition
|
|
1760
|
-
...(input.format
|
|
1708
|
+
...(input.definition != null && { definition: input.definition }),
|
|
1709
|
+
...(input.format != null && { format: input.format }),
|
|
1761
1710
|
});
|
|
1762
1711
|
return new protocol_http_1.HttpRequest({
|
|
1763
1712
|
protocol,
|
|
@@ -4286,18 +4235,14 @@ const deserializeAws_restJson1UnauthorizedExceptionResponse = async (parsedOutpu
|
|
|
4286
4235
|
};
|
|
4287
4236
|
const serializeAws_restJson1AdditionalAuthenticationProvider = (input, context) => {
|
|
4288
4237
|
return {
|
|
4289
|
-
...(input.authenticationType
|
|
4290
|
-
|
|
4291
|
-
...(input.lambdaAuthorizerConfig !== undefined &&
|
|
4292
|
-
input.lambdaAuthorizerConfig !== null && {
|
|
4238
|
+
...(input.authenticationType != null && { authenticationType: input.authenticationType }),
|
|
4239
|
+
...(input.lambdaAuthorizerConfig != null && {
|
|
4293
4240
|
lambdaAuthorizerConfig: serializeAws_restJson1LambdaAuthorizerConfig(input.lambdaAuthorizerConfig, context),
|
|
4294
4241
|
}),
|
|
4295
|
-
...(input.openIDConnectConfig
|
|
4296
|
-
input.openIDConnectConfig !== null && {
|
|
4242
|
+
...(input.openIDConnectConfig != null && {
|
|
4297
4243
|
openIDConnectConfig: serializeAws_restJson1OpenIDConnectConfig(input.openIDConnectConfig, context),
|
|
4298
4244
|
}),
|
|
4299
|
-
...(input.userPoolConfig
|
|
4300
|
-
input.userPoolConfig !== null && {
|
|
4245
|
+
...(input.userPoolConfig != null && {
|
|
4301
4246
|
userPoolConfig: serializeAws_restJson1CognitoUserPoolConfig(input.userPoolConfig, context),
|
|
4302
4247
|
}),
|
|
4303
4248
|
};
|
|
@@ -4314,24 +4259,22 @@ const serializeAws_restJson1AdditionalAuthenticationProviders = (input, context)
|
|
|
4314
4259
|
};
|
|
4315
4260
|
const serializeAws_restJson1AuthorizationConfig = (input, context) => {
|
|
4316
4261
|
return {
|
|
4317
|
-
...(input.authorizationType
|
|
4318
|
-
|
|
4319
|
-
|
|
4320
|
-
|
|
4262
|
+
...(input.authorizationType != null && { authorizationType: input.authorizationType }),
|
|
4263
|
+
...(input.awsIamConfig != null && {
|
|
4264
|
+
awsIamConfig: serializeAws_restJson1AwsIamConfig(input.awsIamConfig, context),
|
|
4265
|
+
}),
|
|
4321
4266
|
};
|
|
4322
4267
|
};
|
|
4323
4268
|
const serializeAws_restJson1AwsIamConfig = (input, context) => {
|
|
4324
4269
|
return {
|
|
4325
|
-
...(input.signingRegion
|
|
4326
|
-
...(input.signingServiceName
|
|
4327
|
-
input.signingServiceName !== null && { signingServiceName: input.signingServiceName }),
|
|
4270
|
+
...(input.signingRegion != null && { signingRegion: input.signingRegion }),
|
|
4271
|
+
...(input.signingServiceName != null && { signingServiceName: input.signingServiceName }),
|
|
4328
4272
|
};
|
|
4329
4273
|
};
|
|
4330
4274
|
const serializeAws_restJson1CachingConfig = (input, context) => {
|
|
4331
4275
|
return {
|
|
4332
|
-
...(input.cachingKeys
|
|
4333
|
-
|
|
4334
|
-
...(input.ttl !== undefined && input.ttl !== null && { ttl: input.ttl }),
|
|
4276
|
+
...(input.cachingKeys != null && { cachingKeys: serializeAws_restJson1CachingKeys(input.cachingKeys, context) }),
|
|
4277
|
+
...(input.ttl != null && { ttl: input.ttl }),
|
|
4335
4278
|
};
|
|
4336
4279
|
};
|
|
4337
4280
|
const serializeAws_restJson1CachingKeys = (input, context) => {
|
|
@@ -4346,38 +4289,33 @@ const serializeAws_restJson1CachingKeys = (input, context) => {
|
|
|
4346
4289
|
};
|
|
4347
4290
|
const serializeAws_restJson1CognitoUserPoolConfig = (input, context) => {
|
|
4348
4291
|
return {
|
|
4349
|
-
...(input.appIdClientRegex
|
|
4350
|
-
|
|
4351
|
-
...(input.
|
|
4352
|
-
...(input.userPoolId !== undefined && input.userPoolId !== null && { userPoolId: input.userPoolId }),
|
|
4292
|
+
...(input.appIdClientRegex != null && { appIdClientRegex: input.appIdClientRegex }),
|
|
4293
|
+
...(input.awsRegion != null && { awsRegion: input.awsRegion }),
|
|
4294
|
+
...(input.userPoolId != null && { userPoolId: input.userPoolId }),
|
|
4353
4295
|
};
|
|
4354
4296
|
};
|
|
4355
4297
|
const serializeAws_restJson1DeltaSyncConfig = (input, context) => {
|
|
4356
4298
|
return {
|
|
4357
|
-
...(input.baseTableTTL
|
|
4358
|
-
...(input.deltaSyncTableName
|
|
4359
|
-
|
|
4360
|
-
...(input.deltaSyncTableTTL !== undefined &&
|
|
4361
|
-
input.deltaSyncTableTTL !== null && { deltaSyncTableTTL: input.deltaSyncTableTTL }),
|
|
4299
|
+
...(input.baseTableTTL != null && { baseTableTTL: input.baseTableTTL }),
|
|
4300
|
+
...(input.deltaSyncTableName != null && { deltaSyncTableName: input.deltaSyncTableName }),
|
|
4301
|
+
...(input.deltaSyncTableTTL != null && { deltaSyncTableTTL: input.deltaSyncTableTTL }),
|
|
4362
4302
|
};
|
|
4363
4303
|
};
|
|
4364
4304
|
const serializeAws_restJson1DynamodbDataSourceConfig = (input, context) => {
|
|
4365
4305
|
return {
|
|
4366
|
-
...(input.awsRegion
|
|
4367
|
-
...(input.deltaSyncConfig
|
|
4368
|
-
input.deltaSyncConfig !== null && {
|
|
4306
|
+
...(input.awsRegion != null && { awsRegion: input.awsRegion }),
|
|
4307
|
+
...(input.deltaSyncConfig != null && {
|
|
4369
4308
|
deltaSyncConfig: serializeAws_restJson1DeltaSyncConfig(input.deltaSyncConfig, context),
|
|
4370
4309
|
}),
|
|
4371
|
-
...(input.tableName
|
|
4372
|
-
...(input.useCallerCredentials
|
|
4373
|
-
|
|
4374
|
-
...(input.versioned !== undefined && input.versioned !== null && { versioned: input.versioned }),
|
|
4310
|
+
...(input.tableName != null && { tableName: input.tableName }),
|
|
4311
|
+
...(input.useCallerCredentials != null && { useCallerCredentials: input.useCallerCredentials }),
|
|
4312
|
+
...(input.versioned != null && { versioned: input.versioned }),
|
|
4375
4313
|
};
|
|
4376
4314
|
};
|
|
4377
4315
|
const serializeAws_restJson1ElasticsearchDataSourceConfig = (input, context) => {
|
|
4378
4316
|
return {
|
|
4379
|
-
...(input.awsRegion
|
|
4380
|
-
...(input.endpoint
|
|
4317
|
+
...(input.awsRegion != null && { awsRegion: input.awsRegion }),
|
|
4318
|
+
...(input.endpoint != null && { endpoint: input.endpoint }),
|
|
4381
4319
|
};
|
|
4382
4320
|
};
|
|
4383
4321
|
const serializeAws_restJson1FunctionsIds = (input, context) => {
|
|
@@ -4392,98 +4330,83 @@ const serializeAws_restJson1FunctionsIds = (input, context) => {
|
|
|
4392
4330
|
};
|
|
4393
4331
|
const serializeAws_restJson1HttpDataSourceConfig = (input, context) => {
|
|
4394
4332
|
return {
|
|
4395
|
-
...(input.authorizationConfig
|
|
4396
|
-
input.authorizationConfig !== null && {
|
|
4333
|
+
...(input.authorizationConfig != null && {
|
|
4397
4334
|
authorizationConfig: serializeAws_restJson1AuthorizationConfig(input.authorizationConfig, context),
|
|
4398
4335
|
}),
|
|
4399
|
-
...(input.endpoint
|
|
4336
|
+
...(input.endpoint != null && { endpoint: input.endpoint }),
|
|
4400
4337
|
};
|
|
4401
4338
|
};
|
|
4402
4339
|
const serializeAws_restJson1LambdaAuthorizerConfig = (input, context) => {
|
|
4403
4340
|
return {
|
|
4404
|
-
...(input.authorizerResultTtlInSeconds
|
|
4405
|
-
input.authorizerResultTtlInSeconds !== null && {
|
|
4341
|
+
...(input.authorizerResultTtlInSeconds != null && {
|
|
4406
4342
|
authorizerResultTtlInSeconds: input.authorizerResultTtlInSeconds,
|
|
4407
4343
|
}),
|
|
4408
|
-
...(input.authorizerUri
|
|
4409
|
-
...(input.identityValidationExpression
|
|
4410
|
-
input.identityValidationExpression !== null && {
|
|
4344
|
+
...(input.authorizerUri != null && { authorizerUri: input.authorizerUri }),
|
|
4345
|
+
...(input.identityValidationExpression != null && {
|
|
4411
4346
|
identityValidationExpression: input.identityValidationExpression,
|
|
4412
4347
|
}),
|
|
4413
4348
|
};
|
|
4414
4349
|
};
|
|
4415
4350
|
const serializeAws_restJson1LambdaConflictHandlerConfig = (input, context) => {
|
|
4416
4351
|
return {
|
|
4417
|
-
...(input.lambdaConflictHandlerArn
|
|
4418
|
-
input.lambdaConflictHandlerArn !== null && { lambdaConflictHandlerArn: input.lambdaConflictHandlerArn }),
|
|
4352
|
+
...(input.lambdaConflictHandlerArn != null && { lambdaConflictHandlerArn: input.lambdaConflictHandlerArn }),
|
|
4419
4353
|
};
|
|
4420
4354
|
};
|
|
4421
4355
|
const serializeAws_restJson1LambdaDataSourceConfig = (input, context) => {
|
|
4422
4356
|
return {
|
|
4423
|
-
...(input.lambdaFunctionArn
|
|
4424
|
-
input.lambdaFunctionArn !== null && { lambdaFunctionArn: input.lambdaFunctionArn }),
|
|
4357
|
+
...(input.lambdaFunctionArn != null && { lambdaFunctionArn: input.lambdaFunctionArn }),
|
|
4425
4358
|
};
|
|
4426
4359
|
};
|
|
4427
4360
|
const serializeAws_restJson1LogConfig = (input, context) => {
|
|
4428
4361
|
return {
|
|
4429
|
-
...(input.cloudWatchLogsRoleArn
|
|
4430
|
-
|
|
4431
|
-
...(input.
|
|
4432
|
-
input.excludeVerboseContent !== null && { excludeVerboseContent: input.excludeVerboseContent }),
|
|
4433
|
-
...(input.fieldLogLevel !== undefined && input.fieldLogLevel !== null && { fieldLogLevel: input.fieldLogLevel }),
|
|
4362
|
+
...(input.cloudWatchLogsRoleArn != null && { cloudWatchLogsRoleArn: input.cloudWatchLogsRoleArn }),
|
|
4363
|
+
...(input.excludeVerboseContent != null && { excludeVerboseContent: input.excludeVerboseContent }),
|
|
4364
|
+
...(input.fieldLogLevel != null && { fieldLogLevel: input.fieldLogLevel }),
|
|
4434
4365
|
};
|
|
4435
4366
|
};
|
|
4436
4367
|
const serializeAws_restJson1OpenIDConnectConfig = (input, context) => {
|
|
4437
4368
|
return {
|
|
4438
|
-
...(input.authTTL
|
|
4439
|
-
...(input.clientId
|
|
4440
|
-
...(input.iatTTL
|
|
4441
|
-
...(input.issuer
|
|
4369
|
+
...(input.authTTL != null && { authTTL: input.authTTL }),
|
|
4370
|
+
...(input.clientId != null && { clientId: input.clientId }),
|
|
4371
|
+
...(input.iatTTL != null && { iatTTL: input.iatTTL }),
|
|
4372
|
+
...(input.issuer != null && { issuer: input.issuer }),
|
|
4442
4373
|
};
|
|
4443
4374
|
};
|
|
4444
4375
|
const serializeAws_restJson1OpenSearchServiceDataSourceConfig = (input, context) => {
|
|
4445
4376
|
return {
|
|
4446
|
-
...(input.awsRegion
|
|
4447
|
-
...(input.endpoint
|
|
4377
|
+
...(input.awsRegion != null && { awsRegion: input.awsRegion }),
|
|
4378
|
+
...(input.endpoint != null && { endpoint: input.endpoint }),
|
|
4448
4379
|
};
|
|
4449
4380
|
};
|
|
4450
4381
|
const serializeAws_restJson1PipelineConfig = (input, context) => {
|
|
4451
4382
|
return {
|
|
4452
|
-
...(input.functions
|
|
4453
|
-
input.functions !== null && { functions: serializeAws_restJson1FunctionsIds(input.functions, context) }),
|
|
4383
|
+
...(input.functions != null && { functions: serializeAws_restJson1FunctionsIds(input.functions, context) }),
|
|
4454
4384
|
};
|
|
4455
4385
|
};
|
|
4456
4386
|
const serializeAws_restJson1RdsHttpEndpointConfig = (input, context) => {
|
|
4457
4387
|
return {
|
|
4458
|
-
...(input.awsRegion
|
|
4459
|
-
...(input.awsSecretStoreArn
|
|
4460
|
-
|
|
4461
|
-
...(input.
|
|
4462
|
-
...(input.
|
|
4463
|
-
input.dbClusterIdentifier !== null && { dbClusterIdentifier: input.dbClusterIdentifier }),
|
|
4464
|
-
...(input.schema !== undefined && input.schema !== null && { schema: input.schema }),
|
|
4388
|
+
...(input.awsRegion != null && { awsRegion: input.awsRegion }),
|
|
4389
|
+
...(input.awsSecretStoreArn != null && { awsSecretStoreArn: input.awsSecretStoreArn }),
|
|
4390
|
+
...(input.databaseName != null && { databaseName: input.databaseName }),
|
|
4391
|
+
...(input.dbClusterIdentifier != null && { dbClusterIdentifier: input.dbClusterIdentifier }),
|
|
4392
|
+
...(input.schema != null && { schema: input.schema }),
|
|
4465
4393
|
};
|
|
4466
4394
|
};
|
|
4467
4395
|
const serializeAws_restJson1RelationalDatabaseDataSourceConfig = (input, context) => {
|
|
4468
4396
|
return {
|
|
4469
|
-
...(input.rdsHttpEndpointConfig
|
|
4470
|
-
input.rdsHttpEndpointConfig !== null && {
|
|
4397
|
+
...(input.rdsHttpEndpointConfig != null && {
|
|
4471
4398
|
rdsHttpEndpointConfig: serializeAws_restJson1RdsHttpEndpointConfig(input.rdsHttpEndpointConfig, context),
|
|
4472
4399
|
}),
|
|
4473
|
-
...(input.relationalDatabaseSourceType
|
|
4474
|
-
input.relationalDatabaseSourceType !== null && {
|
|
4400
|
+
...(input.relationalDatabaseSourceType != null && {
|
|
4475
4401
|
relationalDatabaseSourceType: input.relationalDatabaseSourceType,
|
|
4476
4402
|
}),
|
|
4477
4403
|
};
|
|
4478
4404
|
};
|
|
4479
4405
|
const serializeAws_restJson1SyncConfig = (input, context) => {
|
|
4480
4406
|
return {
|
|
4481
|
-
...(input.conflictDetection
|
|
4482
|
-
|
|
4483
|
-
...(input.
|
|
4484
|
-
input.conflictHandler !== null && { conflictHandler: input.conflictHandler }),
|
|
4485
|
-
...(input.lambdaConflictHandlerConfig !== undefined &&
|
|
4486
|
-
input.lambdaConflictHandlerConfig !== null && {
|
|
4407
|
+
...(input.conflictDetection != null && { conflictDetection: input.conflictDetection }),
|
|
4408
|
+
...(input.conflictHandler != null && { conflictHandler: input.conflictHandler }),
|
|
4409
|
+
...(input.lambdaConflictHandlerConfig != null && {
|
|
4487
4410
|
lambdaConflictHandlerConfig: serializeAws_restJson1LambdaConflictHandlerConfig(input.lambdaConflictHandlerConfig, context),
|
|
4488
4411
|
}),
|
|
4489
4412
|
};
|
|
@@ -4501,23 +4424,22 @@ const serializeAws_restJson1TagMap = (input, context) => {
|
|
|
4501
4424
|
};
|
|
4502
4425
|
const serializeAws_restJson1UserPoolConfig = (input, context) => {
|
|
4503
4426
|
return {
|
|
4504
|
-
...(input.appIdClientRegex
|
|
4505
|
-
|
|
4506
|
-
...(input.
|
|
4507
|
-
...(input.
|
|
4508
|
-
...(input.userPoolId !== undefined && input.userPoolId !== null && { userPoolId: input.userPoolId }),
|
|
4427
|
+
...(input.appIdClientRegex != null && { appIdClientRegex: input.appIdClientRegex }),
|
|
4428
|
+
...(input.awsRegion != null && { awsRegion: input.awsRegion }),
|
|
4429
|
+
...(input.defaultAction != null && { defaultAction: input.defaultAction }),
|
|
4430
|
+
...(input.userPoolId != null && { userPoolId: input.userPoolId }),
|
|
4509
4431
|
};
|
|
4510
4432
|
};
|
|
4511
4433
|
const deserializeAws_restJson1AdditionalAuthenticationProvider = (output, context) => {
|
|
4512
4434
|
return {
|
|
4513
4435
|
authenticationType: (0, smithy_client_1.expectString)(output.authenticationType),
|
|
4514
|
-
lambdaAuthorizerConfig: output.lambdaAuthorizerConfig
|
|
4436
|
+
lambdaAuthorizerConfig: output.lambdaAuthorizerConfig != null
|
|
4515
4437
|
? deserializeAws_restJson1LambdaAuthorizerConfig(output.lambdaAuthorizerConfig, context)
|
|
4516
4438
|
: undefined,
|
|
4517
|
-
openIDConnectConfig: output.openIDConnectConfig
|
|
4439
|
+
openIDConnectConfig: output.openIDConnectConfig != null
|
|
4518
4440
|
? deserializeAws_restJson1OpenIDConnectConfig(output.openIDConnectConfig, context)
|
|
4519
4441
|
: undefined,
|
|
4520
|
-
userPoolConfig: output.userPoolConfig
|
|
4442
|
+
userPoolConfig: output.userPoolConfig != null
|
|
4521
4443
|
? deserializeAws_restJson1CognitoUserPoolConfig(output.userPoolConfig, context)
|
|
4522
4444
|
: undefined,
|
|
4523
4445
|
};
|
|
@@ -4573,9 +4495,7 @@ const deserializeAws_restJson1ApiKeys = (output, context) => {
|
|
|
4573
4495
|
const deserializeAws_restJson1AuthorizationConfig = (output, context) => {
|
|
4574
4496
|
return {
|
|
4575
4497
|
authorizationType: (0, smithy_client_1.expectString)(output.authorizationType),
|
|
4576
|
-
awsIamConfig: output.awsIamConfig
|
|
4577
|
-
? deserializeAws_restJson1AwsIamConfig(output.awsIamConfig, context)
|
|
4578
|
-
: undefined,
|
|
4498
|
+
awsIamConfig: output.awsIamConfig != null ? deserializeAws_restJson1AwsIamConfig(output.awsIamConfig, context) : undefined,
|
|
4579
4499
|
};
|
|
4580
4500
|
};
|
|
4581
4501
|
const deserializeAws_restJson1AwsIamConfig = (output, context) => {
|
|
@@ -4586,9 +4506,7 @@ const deserializeAws_restJson1AwsIamConfig = (output, context) => {
|
|
|
4586
4506
|
};
|
|
4587
4507
|
const deserializeAws_restJson1CachingConfig = (output, context) => {
|
|
4588
4508
|
return {
|
|
4589
|
-
cachingKeys: output.cachingKeys
|
|
4590
|
-
? deserializeAws_restJson1CachingKeys(output.cachingKeys, context)
|
|
4591
|
-
: undefined,
|
|
4509
|
+
cachingKeys: output.cachingKeys != null ? deserializeAws_restJson1CachingKeys(output.cachingKeys, context) : undefined,
|
|
4592
4510
|
ttl: (0, smithy_client_1.expectLong)(output.ttl),
|
|
4593
4511
|
};
|
|
4594
4512
|
};
|
|
@@ -4614,23 +4532,21 @@ const deserializeAws_restJson1DataSource = (output, context) => {
|
|
|
4614
4532
|
return {
|
|
4615
4533
|
dataSourceArn: (0, smithy_client_1.expectString)(output.dataSourceArn),
|
|
4616
4534
|
description: (0, smithy_client_1.expectString)(output.description),
|
|
4617
|
-
dynamodbConfig: output.dynamodbConfig
|
|
4535
|
+
dynamodbConfig: output.dynamodbConfig != null
|
|
4618
4536
|
? deserializeAws_restJson1DynamodbDataSourceConfig(output.dynamodbConfig, context)
|
|
4619
4537
|
: undefined,
|
|
4620
|
-
elasticsearchConfig: output.elasticsearchConfig
|
|
4538
|
+
elasticsearchConfig: output.elasticsearchConfig != null
|
|
4621
4539
|
? deserializeAws_restJson1ElasticsearchDataSourceConfig(output.elasticsearchConfig, context)
|
|
4622
4540
|
: undefined,
|
|
4623
|
-
httpConfig: output.httpConfig
|
|
4624
|
-
|
|
4625
|
-
: undefined,
|
|
4626
|
-
lambdaConfig: output.lambdaConfig !== undefined && output.lambdaConfig !== null
|
|
4541
|
+
httpConfig: output.httpConfig != null ? deserializeAws_restJson1HttpDataSourceConfig(output.httpConfig, context) : undefined,
|
|
4542
|
+
lambdaConfig: output.lambdaConfig != null
|
|
4627
4543
|
? deserializeAws_restJson1LambdaDataSourceConfig(output.lambdaConfig, context)
|
|
4628
4544
|
: undefined,
|
|
4629
4545
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
4630
|
-
openSearchServiceConfig: output.openSearchServiceConfig
|
|
4546
|
+
openSearchServiceConfig: output.openSearchServiceConfig != null
|
|
4631
4547
|
? deserializeAws_restJson1OpenSearchServiceDataSourceConfig(output.openSearchServiceConfig, context)
|
|
4632
4548
|
: undefined,
|
|
4633
|
-
relationalDatabaseConfig: output.relationalDatabaseConfig
|
|
4549
|
+
relationalDatabaseConfig: output.relationalDatabaseConfig != null
|
|
4634
4550
|
? deserializeAws_restJson1RelationalDatabaseDataSourceConfig(output.relationalDatabaseConfig, context)
|
|
4635
4551
|
: undefined,
|
|
4636
4552
|
serviceRoleArn: (0, smithy_client_1.expectString)(output.serviceRoleArn),
|
|
@@ -4678,7 +4594,7 @@ const deserializeAws_restJson1DomainNameConfigs = (output, context) => {
|
|
|
4678
4594
|
const deserializeAws_restJson1DynamodbDataSourceConfig = (output, context) => {
|
|
4679
4595
|
return {
|
|
4680
4596
|
awsRegion: (0, smithy_client_1.expectString)(output.awsRegion),
|
|
4681
|
-
deltaSyncConfig: output.deltaSyncConfig
|
|
4597
|
+
deltaSyncConfig: output.deltaSyncConfig != null
|
|
4682
4598
|
? deserializeAws_restJson1DeltaSyncConfig(output.deltaSyncConfig, context)
|
|
4683
4599
|
: undefined,
|
|
4684
4600
|
tableName: (0, smithy_client_1.expectString)(output.tableName),
|
|
@@ -4703,9 +4619,7 @@ const deserializeAws_restJson1FunctionConfiguration = (output, context) => {
|
|
|
4703
4619
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
4704
4620
|
requestMappingTemplate: (0, smithy_client_1.expectString)(output.requestMappingTemplate),
|
|
4705
4621
|
responseMappingTemplate: (0, smithy_client_1.expectString)(output.responseMappingTemplate),
|
|
4706
|
-
syncConfig: output.syncConfig
|
|
4707
|
-
? deserializeAws_restJson1SyncConfig(output.syncConfig, context)
|
|
4708
|
-
: undefined,
|
|
4622
|
+
syncConfig: output.syncConfig != null ? deserializeAws_restJson1SyncConfig(output.syncConfig, context) : undefined,
|
|
4709
4623
|
};
|
|
4710
4624
|
};
|
|
4711
4625
|
const deserializeAws_restJson1Functions = (output, context) => {
|
|
@@ -4732,29 +4646,23 @@ const deserializeAws_restJson1FunctionsIds = (output, context) => {
|
|
|
4732
4646
|
};
|
|
4733
4647
|
const deserializeAws_restJson1GraphqlApi = (output, context) => {
|
|
4734
4648
|
return {
|
|
4735
|
-
additionalAuthenticationProviders: output.additionalAuthenticationProviders
|
|
4649
|
+
additionalAuthenticationProviders: output.additionalAuthenticationProviders != null
|
|
4736
4650
|
? deserializeAws_restJson1AdditionalAuthenticationProviders(output.additionalAuthenticationProviders, context)
|
|
4737
4651
|
: undefined,
|
|
4738
4652
|
apiId: (0, smithy_client_1.expectString)(output.apiId),
|
|
4739
4653
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
4740
4654
|
authenticationType: (0, smithy_client_1.expectString)(output.authenticationType),
|
|
4741
|
-
lambdaAuthorizerConfig: output.lambdaAuthorizerConfig
|
|
4655
|
+
lambdaAuthorizerConfig: output.lambdaAuthorizerConfig != null
|
|
4742
4656
|
? deserializeAws_restJson1LambdaAuthorizerConfig(output.lambdaAuthorizerConfig, context)
|
|
4743
4657
|
: undefined,
|
|
4744
|
-
logConfig: output.logConfig
|
|
4745
|
-
? deserializeAws_restJson1LogConfig(output.logConfig, context)
|
|
4746
|
-
: undefined,
|
|
4658
|
+
logConfig: output.logConfig != null ? deserializeAws_restJson1LogConfig(output.logConfig, context) : undefined,
|
|
4747
4659
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
4748
|
-
openIDConnectConfig: output.openIDConnectConfig
|
|
4660
|
+
openIDConnectConfig: output.openIDConnectConfig != null
|
|
4749
4661
|
? deserializeAws_restJson1OpenIDConnectConfig(output.openIDConnectConfig, context)
|
|
4750
4662
|
: undefined,
|
|
4751
|
-
tags: output.tags
|
|
4752
|
-
|
|
4753
|
-
|
|
4754
|
-
uris: output.uris !== undefined && output.uris !== null
|
|
4755
|
-
? deserializeAws_restJson1MapOfStringToString(output.uris, context)
|
|
4756
|
-
: undefined,
|
|
4757
|
-
userPoolConfig: output.userPoolConfig !== undefined && output.userPoolConfig !== null
|
|
4663
|
+
tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
|
|
4664
|
+
uris: output.uris != null ? deserializeAws_restJson1MapOfStringToString(output.uris, context) : undefined,
|
|
4665
|
+
userPoolConfig: output.userPoolConfig != null
|
|
4758
4666
|
? deserializeAws_restJson1UserPoolConfig(output.userPoolConfig, context)
|
|
4759
4667
|
: undefined,
|
|
4760
4668
|
wafWebAclArn: (0, smithy_client_1.expectString)(output.wafWebAclArn),
|
|
@@ -4774,7 +4682,7 @@ const deserializeAws_restJson1GraphqlApis = (output, context) => {
|
|
|
4774
4682
|
};
|
|
4775
4683
|
const deserializeAws_restJson1HttpDataSourceConfig = (output, context) => {
|
|
4776
4684
|
return {
|
|
4777
|
-
authorizationConfig: output.authorizationConfig
|
|
4685
|
+
authorizationConfig: output.authorizationConfig != null
|
|
4778
4686
|
? deserializeAws_restJson1AuthorizationConfig(output.authorizationConfig, context)
|
|
4779
4687
|
: undefined,
|
|
4780
4688
|
endpoint: (0, smithy_client_1.expectString)(output.endpoint),
|
|
@@ -4831,9 +4739,7 @@ const deserializeAws_restJson1OpenSearchServiceDataSourceConfig = (output, conte
|
|
|
4831
4739
|
};
|
|
4832
4740
|
const deserializeAws_restJson1PipelineConfig = (output, context) => {
|
|
4833
4741
|
return {
|
|
4834
|
-
functions: output.functions
|
|
4835
|
-
? deserializeAws_restJson1FunctionsIds(output.functions, context)
|
|
4836
|
-
: undefined,
|
|
4742
|
+
functions: output.functions != null ? deserializeAws_restJson1FunctionsIds(output.functions, context) : undefined,
|
|
4837
4743
|
};
|
|
4838
4744
|
};
|
|
4839
4745
|
const deserializeAws_restJson1RdsHttpEndpointConfig = (output, context) => {
|
|
@@ -4847,7 +4753,7 @@ const deserializeAws_restJson1RdsHttpEndpointConfig = (output, context) => {
|
|
|
4847
4753
|
};
|
|
4848
4754
|
const deserializeAws_restJson1RelationalDatabaseDataSourceConfig = (output, context) => {
|
|
4849
4755
|
return {
|
|
4850
|
-
rdsHttpEndpointConfig: output.rdsHttpEndpointConfig
|
|
4756
|
+
rdsHttpEndpointConfig: output.rdsHttpEndpointConfig != null
|
|
4851
4757
|
? deserializeAws_restJson1RdsHttpEndpointConfig(output.rdsHttpEndpointConfig, context)
|
|
4852
4758
|
: undefined,
|
|
4853
4759
|
relationalDatabaseSourceType: (0, smithy_client_1.expectString)(output.relationalDatabaseSourceType),
|
|
@@ -4855,22 +4761,18 @@ const deserializeAws_restJson1RelationalDatabaseDataSourceConfig = (output, cont
|
|
|
4855
4761
|
};
|
|
4856
4762
|
const deserializeAws_restJson1Resolver = (output, context) => {
|
|
4857
4763
|
return {
|
|
4858
|
-
cachingConfig: output.cachingConfig
|
|
4859
|
-
? deserializeAws_restJson1CachingConfig(output.cachingConfig, context)
|
|
4860
|
-
: undefined,
|
|
4764
|
+
cachingConfig: output.cachingConfig != null ? deserializeAws_restJson1CachingConfig(output.cachingConfig, context) : undefined,
|
|
4861
4765
|
dataSourceName: (0, smithy_client_1.expectString)(output.dataSourceName),
|
|
4862
4766
|
fieldName: (0, smithy_client_1.expectString)(output.fieldName),
|
|
4863
4767
|
kind: (0, smithy_client_1.expectString)(output.kind),
|
|
4864
4768
|
maxBatchSize: (0, smithy_client_1.expectInt32)(output.maxBatchSize),
|
|
4865
|
-
pipelineConfig: output.pipelineConfig
|
|
4769
|
+
pipelineConfig: output.pipelineConfig != null
|
|
4866
4770
|
? deserializeAws_restJson1PipelineConfig(output.pipelineConfig, context)
|
|
4867
4771
|
: undefined,
|
|
4868
4772
|
requestMappingTemplate: (0, smithy_client_1.expectString)(output.requestMappingTemplate),
|
|
4869
4773
|
resolverArn: (0, smithy_client_1.expectString)(output.resolverArn),
|
|
4870
4774
|
responseMappingTemplate: (0, smithy_client_1.expectString)(output.responseMappingTemplate),
|
|
4871
|
-
syncConfig: output.syncConfig
|
|
4872
|
-
? deserializeAws_restJson1SyncConfig(output.syncConfig, context)
|
|
4873
|
-
: undefined,
|
|
4775
|
+
syncConfig: output.syncConfig != null ? deserializeAws_restJson1SyncConfig(output.syncConfig, context) : undefined,
|
|
4874
4776
|
typeName: (0, smithy_client_1.expectString)(output.typeName),
|
|
4875
4777
|
};
|
|
4876
4778
|
};
|
|
@@ -4889,7 +4791,7 @@ const deserializeAws_restJson1SyncConfig = (output, context) => {
|
|
|
4889
4791
|
return {
|
|
4890
4792
|
conflictDetection: (0, smithy_client_1.expectString)(output.conflictDetection),
|
|
4891
4793
|
conflictHandler: (0, smithy_client_1.expectString)(output.conflictHandler),
|
|
4892
|
-
lambdaConflictHandlerConfig: output.lambdaConflictHandlerConfig
|
|
4794
|
+
lambdaConflictHandlerConfig: output.lambdaConflictHandlerConfig != null
|
|
4893
4795
|
? deserializeAws_restJson1LambdaConflictHandlerConfig(output.lambdaConflictHandlerConfig, context)
|
|
4894
4796
|
: undefined,
|
|
4895
4797
|
};
|