@aws-sdk/client-appsync 3.123.0 → 3.130.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.
@@ -25,7 +25,7 @@ const serializeAws_restJson1AssociateApiCommand = async (input, context) => {
25
25
  }
26
26
  let body;
27
27
  body = JSON.stringify({
28
- ...(input.apiId !== undefined && input.apiId !== null && { apiId: input.apiId }),
28
+ ...(input.apiId != null && { apiId: input.apiId }),
29
29
  });
30
30
  return new protocol_http_1.HttpRequest({
31
31
  protocol,
@@ -56,14 +56,11 @@ const serializeAws_restJson1CreateApiCacheCommand = async (input, context) => {
56
56
  }
57
57
  let body;
58
58
  body = JSON.stringify({
59
- ...(input.apiCachingBehavior !== undefined &&
60
- input.apiCachingBehavior !== null && { apiCachingBehavior: input.apiCachingBehavior }),
61
- ...(input.atRestEncryptionEnabled !== undefined &&
62
- input.atRestEncryptionEnabled !== null && { atRestEncryptionEnabled: input.atRestEncryptionEnabled }),
63
- ...(input.transitEncryptionEnabled !== undefined &&
64
- input.transitEncryptionEnabled !== null && { transitEncryptionEnabled: input.transitEncryptionEnabled }),
65
- ...(input.ttl !== undefined && input.ttl !== null && { ttl: input.ttl }),
66
- ...(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 }),
67
64
  });
68
65
  return new protocol_http_1.HttpRequest({
69
66
  protocol,
@@ -94,8 +91,8 @@ const serializeAws_restJson1CreateApiKeyCommand = async (input, context) => {
94
91
  }
95
92
  let body;
96
93
  body = JSON.stringify({
97
- ...(input.description !== undefined && input.description !== null && { description: input.description }),
98
- ...(input.expires !== undefined && input.expires !== null && { expires: input.expires }),
94
+ ...(input.description != null && { description: input.description }),
95
+ ...(input.expires != null && { expires: input.expires }),
99
96
  });
100
97
  return new protocol_http_1.HttpRequest({
101
98
  protocol,
@@ -126,35 +123,28 @@ const serializeAws_restJson1CreateDataSourceCommand = async (input, context) =>
126
123
  }
127
124
  let body;
128
125
  body = JSON.stringify({
129
- ...(input.description !== undefined && input.description !== null && { description: input.description }),
130
- ...(input.dynamodbConfig !== undefined &&
131
- input.dynamodbConfig !== null && {
126
+ ...(input.description != null && { description: input.description }),
127
+ ...(input.dynamodbConfig != null && {
132
128
  dynamodbConfig: serializeAws_restJson1DynamodbDataSourceConfig(input.dynamodbConfig, context),
133
129
  }),
134
- ...(input.elasticsearchConfig !== undefined &&
135
- input.elasticsearchConfig !== null && {
130
+ ...(input.elasticsearchConfig != null && {
136
131
  elasticsearchConfig: serializeAws_restJson1ElasticsearchDataSourceConfig(input.elasticsearchConfig, context),
137
132
  }),
138
- ...(input.httpConfig !== undefined &&
139
- input.httpConfig !== null && {
133
+ ...(input.httpConfig != null && {
140
134
  httpConfig: serializeAws_restJson1HttpDataSourceConfig(input.httpConfig, context),
141
135
  }),
142
- ...(input.lambdaConfig !== undefined &&
143
- input.lambdaConfig !== null && {
136
+ ...(input.lambdaConfig != null && {
144
137
  lambdaConfig: serializeAws_restJson1LambdaDataSourceConfig(input.lambdaConfig, context),
145
138
  }),
146
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
147
- ...(input.openSearchServiceConfig !== undefined &&
148
- input.openSearchServiceConfig !== null && {
139
+ ...(input.name != null && { name: input.name }),
140
+ ...(input.openSearchServiceConfig != null && {
149
141
  openSearchServiceConfig: serializeAws_restJson1OpenSearchServiceDataSourceConfig(input.openSearchServiceConfig, context),
150
142
  }),
151
- ...(input.relationalDatabaseConfig !== undefined &&
152
- input.relationalDatabaseConfig !== null && {
143
+ ...(input.relationalDatabaseConfig != null && {
153
144
  relationalDatabaseConfig: serializeAws_restJson1RelationalDatabaseDataSourceConfig(input.relationalDatabaseConfig, context),
154
145
  }),
155
- ...(input.serviceRoleArn !== undefined &&
156
- input.serviceRoleArn !== null && { serviceRoleArn: input.serviceRoleArn }),
157
- ...(input.type !== undefined && input.type !== null && { type: input.type }),
146
+ ...(input.serviceRoleArn != null && { serviceRoleArn: input.serviceRoleArn }),
147
+ ...(input.type != null && { type: input.type }),
158
148
  });
159
149
  return new protocol_http_1.HttpRequest({
160
150
  protocol,
@@ -175,10 +165,9 @@ const serializeAws_restJson1CreateDomainNameCommand = async (input, context) =>
175
165
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v1/domainnames";
176
166
  let body;
177
167
  body = JSON.stringify({
178
- ...(input.certificateArn !== undefined &&
179
- input.certificateArn !== null && { certificateArn: input.certificateArn }),
180
- ...(input.description !== undefined && input.description !== null && { description: input.description }),
181
- ...(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 }),
182
171
  });
183
172
  return new protocol_http_1.HttpRequest({
184
173
  protocol,
@@ -209,19 +198,14 @@ const serializeAws_restJson1CreateFunctionCommand = async (input, context) => {
209
198
  }
210
199
  let body;
211
200
  body = JSON.stringify({
212
- ...(input.dataSourceName !== undefined &&
213
- input.dataSourceName !== null && { dataSourceName: input.dataSourceName }),
214
- ...(input.description !== undefined && input.description !== null && { description: input.description }),
215
- ...(input.functionVersion !== undefined &&
216
- input.functionVersion !== null && { functionVersion: input.functionVersion }),
217
- ...(input.maxBatchSize !== undefined && input.maxBatchSize !== null && { maxBatchSize: input.maxBatchSize }),
218
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
219
- ...(input.requestMappingTemplate !== undefined &&
220
- input.requestMappingTemplate !== null && { requestMappingTemplate: input.requestMappingTemplate }),
221
- ...(input.responseMappingTemplate !== undefined &&
222
- input.responseMappingTemplate !== null && { responseMappingTemplate: input.responseMappingTemplate }),
223
- ...(input.syncConfig !== undefined &&
224
- 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) }),
225
209
  });
226
210
  return new protocol_http_1.HttpRequest({
227
211
  protocol,
@@ -242,29 +226,23 @@ const serializeAws_restJson1CreateGraphqlApiCommand = async (input, context) =>
242
226
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis";
243
227
  let body;
244
228
  body = JSON.stringify({
245
- ...(input.additionalAuthenticationProviders !== undefined &&
246
- input.additionalAuthenticationProviders !== null && {
229
+ ...(input.additionalAuthenticationProviders != null && {
247
230
  additionalAuthenticationProviders: serializeAws_restJson1AdditionalAuthenticationProviders(input.additionalAuthenticationProviders, context),
248
231
  }),
249
- ...(input.authenticationType !== undefined &&
250
- input.authenticationType !== null && { authenticationType: input.authenticationType }),
251
- ...(input.lambdaAuthorizerConfig !== undefined &&
252
- input.lambdaAuthorizerConfig !== null && {
232
+ ...(input.authenticationType != null && { authenticationType: input.authenticationType }),
233
+ ...(input.lambdaAuthorizerConfig != null && {
253
234
  lambdaAuthorizerConfig: serializeAws_restJson1LambdaAuthorizerConfig(input.lambdaAuthorizerConfig, context),
254
235
  }),
255
- ...(input.logConfig !== undefined &&
256
- input.logConfig !== null && { logConfig: serializeAws_restJson1LogConfig(input.logConfig, context) }),
257
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
258
- ...(input.openIDConnectConfig !== undefined &&
259
- input.openIDConnectConfig !== null && {
236
+ ...(input.logConfig != null && { logConfig: serializeAws_restJson1LogConfig(input.logConfig, context) }),
237
+ ...(input.name != null && { name: input.name }),
238
+ ...(input.openIDConnectConfig != null && {
260
239
  openIDConnectConfig: serializeAws_restJson1OpenIDConnectConfig(input.openIDConnectConfig, context),
261
240
  }),
262
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
263
- ...(input.userPoolConfig !== undefined &&
264
- input.userPoolConfig !== null && {
241
+ ...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
242
+ ...(input.userPoolConfig != null && {
265
243
  userPoolConfig: serializeAws_restJson1UserPoolConfig(input.userPoolConfig, context),
266
244
  }),
267
- ...(input.xrayEnabled !== undefined && input.xrayEnabled !== null && { xrayEnabled: input.xrayEnabled }),
245
+ ...(input.xrayEnabled != null && { xrayEnabled: input.xrayEnabled }),
268
246
  });
269
247
  return new protocol_http_1.HttpRequest({
270
248
  protocol,
@@ -306,25 +284,19 @@ const serializeAws_restJson1CreateResolverCommand = async (input, context) => {
306
284
  }
307
285
  let body;
308
286
  body = JSON.stringify({
309
- ...(input.cachingConfig !== undefined &&
310
- input.cachingConfig !== null && {
287
+ ...(input.cachingConfig != null && {
311
288
  cachingConfig: serializeAws_restJson1CachingConfig(input.cachingConfig, context),
312
289
  }),
313
- ...(input.dataSourceName !== undefined &&
314
- input.dataSourceName !== null && { dataSourceName: input.dataSourceName }),
315
- ...(input.fieldName !== undefined && input.fieldName !== null && { fieldName: input.fieldName }),
316
- ...(input.kind !== undefined && input.kind !== null && { kind: input.kind }),
317
- ...(input.maxBatchSize !== undefined && input.maxBatchSize !== null && { maxBatchSize: input.maxBatchSize }),
318
- ...(input.pipelineConfig !== undefined &&
319
- 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 && {
320
295
  pipelineConfig: serializeAws_restJson1PipelineConfig(input.pipelineConfig, context),
321
296
  }),
322
- ...(input.requestMappingTemplate !== undefined &&
323
- input.requestMappingTemplate !== null && { requestMappingTemplate: input.requestMappingTemplate }),
324
- ...(input.responseMappingTemplate !== undefined &&
325
- input.responseMappingTemplate !== null && { responseMappingTemplate: input.responseMappingTemplate }),
326
- ...(input.syncConfig !== undefined &&
327
- 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) }),
328
300
  });
329
301
  return new protocol_http_1.HttpRequest({
330
302
  protocol,
@@ -355,8 +327,8 @@ const serializeAws_restJson1CreateTypeCommand = async (input, context) => {
355
327
  }
356
328
  let body;
357
329
  body = JSON.stringify({
358
- ...(input.definition !== undefined && input.definition !== null && { definition: input.definition }),
359
- ...(input.format !== undefined && input.format !== null && { format: input.format }),
330
+ ...(input.definition != null && { definition: input.definition }),
331
+ ...(input.format != null && { format: input.format }),
360
332
  });
361
333
  return new protocol_http_1.HttpRequest({
362
334
  protocol,
@@ -1307,8 +1279,7 @@ const serializeAws_restJson1StartSchemaCreationCommand = async (input, context)
1307
1279
  }
1308
1280
  let body;
1309
1281
  body = JSON.stringify({
1310
- ...(input.definition !== undefined &&
1311
- input.definition !== null && { definition: context.base64Encoder(input.definition) }),
1282
+ ...(input.definition != null && { definition: context.base64Encoder(input.definition) }),
1312
1283
  });
1313
1284
  return new protocol_http_1.HttpRequest({
1314
1285
  protocol,
@@ -1339,7 +1310,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
1339
1310
  }
1340
1311
  let body;
1341
1312
  body = JSON.stringify({
1342
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
1313
+ ...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
1343
1314
  });
1344
1315
  return new protocol_http_1.HttpRequest({
1345
1316
  protocol,
@@ -1400,10 +1371,9 @@ const serializeAws_restJson1UpdateApiCacheCommand = async (input, context) => {
1400
1371
  }
1401
1372
  let body;
1402
1373
  body = JSON.stringify({
1403
- ...(input.apiCachingBehavior !== undefined &&
1404
- input.apiCachingBehavior !== null && { apiCachingBehavior: input.apiCachingBehavior }),
1405
- ...(input.ttl !== undefined && input.ttl !== null && { ttl: input.ttl }),
1406
- ...(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 }),
1407
1377
  });
1408
1378
  return new protocol_http_1.HttpRequest({
1409
1379
  protocol,
@@ -1444,8 +1414,8 @@ const serializeAws_restJson1UpdateApiKeyCommand = async (input, context) => {
1444
1414
  }
1445
1415
  let body;
1446
1416
  body = JSON.stringify({
1447
- ...(input.description !== undefined && input.description !== null && { description: input.description }),
1448
- ...(input.expires !== undefined && input.expires !== null && { expires: input.expires }),
1417
+ ...(input.description != null && { description: input.description }),
1418
+ ...(input.expires != null && { expires: input.expires }),
1449
1419
  });
1450
1420
  return new protocol_http_1.HttpRequest({
1451
1421
  protocol,
@@ -1486,34 +1456,27 @@ const serializeAws_restJson1UpdateDataSourceCommand = async (input, context) =>
1486
1456
  }
1487
1457
  let body;
1488
1458
  body = JSON.stringify({
1489
- ...(input.description !== undefined && input.description !== null && { description: input.description }),
1490
- ...(input.dynamodbConfig !== undefined &&
1491
- input.dynamodbConfig !== null && {
1459
+ ...(input.description != null && { description: input.description }),
1460
+ ...(input.dynamodbConfig != null && {
1492
1461
  dynamodbConfig: serializeAws_restJson1DynamodbDataSourceConfig(input.dynamodbConfig, context),
1493
1462
  }),
1494
- ...(input.elasticsearchConfig !== undefined &&
1495
- input.elasticsearchConfig !== null && {
1463
+ ...(input.elasticsearchConfig != null && {
1496
1464
  elasticsearchConfig: serializeAws_restJson1ElasticsearchDataSourceConfig(input.elasticsearchConfig, context),
1497
1465
  }),
1498
- ...(input.httpConfig !== undefined &&
1499
- input.httpConfig !== null && {
1466
+ ...(input.httpConfig != null && {
1500
1467
  httpConfig: serializeAws_restJson1HttpDataSourceConfig(input.httpConfig, context),
1501
1468
  }),
1502
- ...(input.lambdaConfig !== undefined &&
1503
- input.lambdaConfig !== null && {
1469
+ ...(input.lambdaConfig != null && {
1504
1470
  lambdaConfig: serializeAws_restJson1LambdaDataSourceConfig(input.lambdaConfig, context),
1505
1471
  }),
1506
- ...(input.openSearchServiceConfig !== undefined &&
1507
- input.openSearchServiceConfig !== null && {
1472
+ ...(input.openSearchServiceConfig != null && {
1508
1473
  openSearchServiceConfig: serializeAws_restJson1OpenSearchServiceDataSourceConfig(input.openSearchServiceConfig, context),
1509
1474
  }),
1510
- ...(input.relationalDatabaseConfig !== undefined &&
1511
- input.relationalDatabaseConfig !== null && {
1475
+ ...(input.relationalDatabaseConfig != null && {
1512
1476
  relationalDatabaseConfig: serializeAws_restJson1RelationalDatabaseDataSourceConfig(input.relationalDatabaseConfig, context),
1513
1477
  }),
1514
- ...(input.serviceRoleArn !== undefined &&
1515
- input.serviceRoleArn !== null && { serviceRoleArn: input.serviceRoleArn }),
1516
- ...(input.type !== undefined && input.type !== null && { type: input.type }),
1478
+ ...(input.serviceRoleArn != null && { serviceRoleArn: input.serviceRoleArn }),
1479
+ ...(input.type != null && { type: input.type }),
1517
1480
  });
1518
1481
  return new protocol_http_1.HttpRequest({
1519
1482
  protocol,
@@ -1544,7 +1507,7 @@ const serializeAws_restJson1UpdateDomainNameCommand = async (input, context) =>
1544
1507
  }
1545
1508
  let body;
1546
1509
  body = JSON.stringify({
1547
- ...(input.description !== undefined && input.description !== null && { description: input.description }),
1510
+ ...(input.description != null && { description: input.description }),
1548
1511
  });
1549
1512
  return new protocol_http_1.HttpRequest({
1550
1513
  protocol,
@@ -1585,19 +1548,14 @@ const serializeAws_restJson1UpdateFunctionCommand = async (input, context) => {
1585
1548
  }
1586
1549
  let body;
1587
1550
  body = JSON.stringify({
1588
- ...(input.dataSourceName !== undefined &&
1589
- input.dataSourceName !== null && { dataSourceName: input.dataSourceName }),
1590
- ...(input.description !== undefined && input.description !== null && { description: input.description }),
1591
- ...(input.functionVersion !== undefined &&
1592
- input.functionVersion !== null && { functionVersion: input.functionVersion }),
1593
- ...(input.maxBatchSize !== undefined && input.maxBatchSize !== null && { maxBatchSize: input.maxBatchSize }),
1594
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
1595
- ...(input.requestMappingTemplate !== undefined &&
1596
- input.requestMappingTemplate !== null && { requestMappingTemplate: input.requestMappingTemplate }),
1597
- ...(input.responseMappingTemplate !== undefined &&
1598
- input.responseMappingTemplate !== null && { responseMappingTemplate: input.responseMappingTemplate }),
1599
- ...(input.syncConfig !== undefined &&
1600
- 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) }),
1601
1559
  });
1602
1560
  return new protocol_http_1.HttpRequest({
1603
1561
  protocol,
@@ -1628,28 +1586,22 @@ const serializeAws_restJson1UpdateGraphqlApiCommand = async (input, context) =>
1628
1586
  }
1629
1587
  let body;
1630
1588
  body = JSON.stringify({
1631
- ...(input.additionalAuthenticationProviders !== undefined &&
1632
- input.additionalAuthenticationProviders !== null && {
1589
+ ...(input.additionalAuthenticationProviders != null && {
1633
1590
  additionalAuthenticationProviders: serializeAws_restJson1AdditionalAuthenticationProviders(input.additionalAuthenticationProviders, context),
1634
1591
  }),
1635
- ...(input.authenticationType !== undefined &&
1636
- input.authenticationType !== null && { authenticationType: input.authenticationType }),
1637
- ...(input.lambdaAuthorizerConfig !== undefined &&
1638
- input.lambdaAuthorizerConfig !== null && {
1592
+ ...(input.authenticationType != null && { authenticationType: input.authenticationType }),
1593
+ ...(input.lambdaAuthorizerConfig != null && {
1639
1594
  lambdaAuthorizerConfig: serializeAws_restJson1LambdaAuthorizerConfig(input.lambdaAuthorizerConfig, context),
1640
1595
  }),
1641
- ...(input.logConfig !== undefined &&
1642
- input.logConfig !== null && { logConfig: serializeAws_restJson1LogConfig(input.logConfig, context) }),
1643
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
1644
- ...(input.openIDConnectConfig !== undefined &&
1645
- input.openIDConnectConfig !== null && {
1596
+ ...(input.logConfig != null && { logConfig: serializeAws_restJson1LogConfig(input.logConfig, context) }),
1597
+ ...(input.name != null && { name: input.name }),
1598
+ ...(input.openIDConnectConfig != null && {
1646
1599
  openIDConnectConfig: serializeAws_restJson1OpenIDConnectConfig(input.openIDConnectConfig, context),
1647
1600
  }),
1648
- ...(input.userPoolConfig !== undefined &&
1649
- input.userPoolConfig !== null && {
1601
+ ...(input.userPoolConfig != null && {
1650
1602
  userPoolConfig: serializeAws_restJson1UserPoolConfig(input.userPoolConfig, context),
1651
1603
  }),
1652
- ...(input.xrayEnabled !== undefined && input.xrayEnabled !== null && { xrayEnabled: input.xrayEnabled }),
1604
+ ...(input.xrayEnabled != null && { xrayEnabled: input.xrayEnabled }),
1653
1605
  });
1654
1606
  return new protocol_http_1.HttpRequest({
1655
1607
  protocol,
@@ -1701,24 +1653,18 @@ const serializeAws_restJson1UpdateResolverCommand = async (input, context) => {
1701
1653
  }
1702
1654
  let body;
1703
1655
  body = JSON.stringify({
1704
- ...(input.cachingConfig !== undefined &&
1705
- input.cachingConfig !== null && {
1656
+ ...(input.cachingConfig != null && {
1706
1657
  cachingConfig: serializeAws_restJson1CachingConfig(input.cachingConfig, context),
1707
1658
  }),
1708
- ...(input.dataSourceName !== undefined &&
1709
- input.dataSourceName !== null && { dataSourceName: input.dataSourceName }),
1710
- ...(input.kind !== undefined && input.kind !== null && { kind: input.kind }),
1711
- ...(input.maxBatchSize !== undefined && input.maxBatchSize !== null && { maxBatchSize: input.maxBatchSize }),
1712
- ...(input.pipelineConfig !== undefined &&
1713
- 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 && {
1714
1663
  pipelineConfig: serializeAws_restJson1PipelineConfig(input.pipelineConfig, context),
1715
1664
  }),
1716
- ...(input.requestMappingTemplate !== undefined &&
1717
- input.requestMappingTemplate !== null && { requestMappingTemplate: input.requestMappingTemplate }),
1718
- ...(input.responseMappingTemplate !== undefined &&
1719
- input.responseMappingTemplate !== null && { responseMappingTemplate: input.responseMappingTemplate }),
1720
- ...(input.syncConfig !== undefined &&
1721
- 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) }),
1722
1668
  });
1723
1669
  return new protocol_http_1.HttpRequest({
1724
1670
  protocol,
@@ -1759,8 +1705,8 @@ const serializeAws_restJson1UpdateTypeCommand = async (input, context) => {
1759
1705
  }
1760
1706
  let body;
1761
1707
  body = JSON.stringify({
1762
- ...(input.definition !== undefined && input.definition !== null && { definition: input.definition }),
1763
- ...(input.format !== undefined && input.format !== null && { format: input.format }),
1708
+ ...(input.definition != null && { definition: input.definition }),
1709
+ ...(input.format != null && { format: input.format }),
1764
1710
  });
1765
1711
  return new protocol_http_1.HttpRequest({
1766
1712
  protocol,
@@ -4289,18 +4235,14 @@ const deserializeAws_restJson1UnauthorizedExceptionResponse = async (parsedOutpu
4289
4235
  };
4290
4236
  const serializeAws_restJson1AdditionalAuthenticationProvider = (input, context) => {
4291
4237
  return {
4292
- ...(input.authenticationType !== undefined &&
4293
- input.authenticationType !== null && { authenticationType: input.authenticationType }),
4294
- ...(input.lambdaAuthorizerConfig !== undefined &&
4295
- input.lambdaAuthorizerConfig !== null && {
4238
+ ...(input.authenticationType != null && { authenticationType: input.authenticationType }),
4239
+ ...(input.lambdaAuthorizerConfig != null && {
4296
4240
  lambdaAuthorizerConfig: serializeAws_restJson1LambdaAuthorizerConfig(input.lambdaAuthorizerConfig, context),
4297
4241
  }),
4298
- ...(input.openIDConnectConfig !== undefined &&
4299
- input.openIDConnectConfig !== null && {
4242
+ ...(input.openIDConnectConfig != null && {
4300
4243
  openIDConnectConfig: serializeAws_restJson1OpenIDConnectConfig(input.openIDConnectConfig, context),
4301
4244
  }),
4302
- ...(input.userPoolConfig !== undefined &&
4303
- input.userPoolConfig !== null && {
4245
+ ...(input.userPoolConfig != null && {
4304
4246
  userPoolConfig: serializeAws_restJson1CognitoUserPoolConfig(input.userPoolConfig, context),
4305
4247
  }),
4306
4248
  };
@@ -4317,24 +4259,22 @@ const serializeAws_restJson1AdditionalAuthenticationProviders = (input, context)
4317
4259
  };
4318
4260
  const serializeAws_restJson1AuthorizationConfig = (input, context) => {
4319
4261
  return {
4320
- ...(input.authorizationType !== undefined &&
4321
- input.authorizationType !== null && { authorizationType: input.authorizationType }),
4322
- ...(input.awsIamConfig !== undefined &&
4323
- input.awsIamConfig !== null && { awsIamConfig: serializeAws_restJson1AwsIamConfig(input.awsIamConfig, context) }),
4262
+ ...(input.authorizationType != null && { authorizationType: input.authorizationType }),
4263
+ ...(input.awsIamConfig != null && {
4264
+ awsIamConfig: serializeAws_restJson1AwsIamConfig(input.awsIamConfig, context),
4265
+ }),
4324
4266
  };
4325
4267
  };
4326
4268
  const serializeAws_restJson1AwsIamConfig = (input, context) => {
4327
4269
  return {
4328
- ...(input.signingRegion !== undefined && input.signingRegion !== null && { signingRegion: input.signingRegion }),
4329
- ...(input.signingServiceName !== undefined &&
4330
- input.signingServiceName !== null && { signingServiceName: input.signingServiceName }),
4270
+ ...(input.signingRegion != null && { signingRegion: input.signingRegion }),
4271
+ ...(input.signingServiceName != null && { signingServiceName: input.signingServiceName }),
4331
4272
  };
4332
4273
  };
4333
4274
  const serializeAws_restJson1CachingConfig = (input, context) => {
4334
4275
  return {
4335
- ...(input.cachingKeys !== undefined &&
4336
- input.cachingKeys !== null && { cachingKeys: serializeAws_restJson1CachingKeys(input.cachingKeys, context) }),
4337
- ...(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 }),
4338
4278
  };
4339
4279
  };
4340
4280
  const serializeAws_restJson1CachingKeys = (input, context) => {
@@ -4349,38 +4289,33 @@ const serializeAws_restJson1CachingKeys = (input, context) => {
4349
4289
  };
4350
4290
  const serializeAws_restJson1CognitoUserPoolConfig = (input, context) => {
4351
4291
  return {
4352
- ...(input.appIdClientRegex !== undefined &&
4353
- input.appIdClientRegex !== null && { appIdClientRegex: input.appIdClientRegex }),
4354
- ...(input.awsRegion !== undefined && input.awsRegion !== null && { awsRegion: input.awsRegion }),
4355
- ...(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 }),
4356
4295
  };
4357
4296
  };
4358
4297
  const serializeAws_restJson1DeltaSyncConfig = (input, context) => {
4359
4298
  return {
4360
- ...(input.baseTableTTL !== undefined && input.baseTableTTL !== null && { baseTableTTL: input.baseTableTTL }),
4361
- ...(input.deltaSyncTableName !== undefined &&
4362
- input.deltaSyncTableName !== null && { deltaSyncTableName: input.deltaSyncTableName }),
4363
- ...(input.deltaSyncTableTTL !== undefined &&
4364
- 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 }),
4365
4302
  };
4366
4303
  };
4367
4304
  const serializeAws_restJson1DynamodbDataSourceConfig = (input, context) => {
4368
4305
  return {
4369
- ...(input.awsRegion !== undefined && input.awsRegion !== null && { awsRegion: input.awsRegion }),
4370
- ...(input.deltaSyncConfig !== undefined &&
4371
- input.deltaSyncConfig !== null && {
4306
+ ...(input.awsRegion != null && { awsRegion: input.awsRegion }),
4307
+ ...(input.deltaSyncConfig != null && {
4372
4308
  deltaSyncConfig: serializeAws_restJson1DeltaSyncConfig(input.deltaSyncConfig, context),
4373
4309
  }),
4374
- ...(input.tableName !== undefined && input.tableName !== null && { tableName: input.tableName }),
4375
- ...(input.useCallerCredentials !== undefined &&
4376
- input.useCallerCredentials !== null && { useCallerCredentials: input.useCallerCredentials }),
4377
- ...(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 }),
4378
4313
  };
4379
4314
  };
4380
4315
  const serializeAws_restJson1ElasticsearchDataSourceConfig = (input, context) => {
4381
4316
  return {
4382
- ...(input.awsRegion !== undefined && input.awsRegion !== null && { awsRegion: input.awsRegion }),
4383
- ...(input.endpoint !== undefined && input.endpoint !== null && { endpoint: input.endpoint }),
4317
+ ...(input.awsRegion != null && { awsRegion: input.awsRegion }),
4318
+ ...(input.endpoint != null && { endpoint: input.endpoint }),
4384
4319
  };
4385
4320
  };
4386
4321
  const serializeAws_restJson1FunctionsIds = (input, context) => {
@@ -4395,98 +4330,83 @@ const serializeAws_restJson1FunctionsIds = (input, context) => {
4395
4330
  };
4396
4331
  const serializeAws_restJson1HttpDataSourceConfig = (input, context) => {
4397
4332
  return {
4398
- ...(input.authorizationConfig !== undefined &&
4399
- input.authorizationConfig !== null && {
4333
+ ...(input.authorizationConfig != null && {
4400
4334
  authorizationConfig: serializeAws_restJson1AuthorizationConfig(input.authorizationConfig, context),
4401
4335
  }),
4402
- ...(input.endpoint !== undefined && input.endpoint !== null && { endpoint: input.endpoint }),
4336
+ ...(input.endpoint != null && { endpoint: input.endpoint }),
4403
4337
  };
4404
4338
  };
4405
4339
  const serializeAws_restJson1LambdaAuthorizerConfig = (input, context) => {
4406
4340
  return {
4407
- ...(input.authorizerResultTtlInSeconds !== undefined &&
4408
- input.authorizerResultTtlInSeconds !== null && {
4341
+ ...(input.authorizerResultTtlInSeconds != null && {
4409
4342
  authorizerResultTtlInSeconds: input.authorizerResultTtlInSeconds,
4410
4343
  }),
4411
- ...(input.authorizerUri !== undefined && input.authorizerUri !== null && { authorizerUri: input.authorizerUri }),
4412
- ...(input.identityValidationExpression !== undefined &&
4413
- input.identityValidationExpression !== null && {
4344
+ ...(input.authorizerUri != null && { authorizerUri: input.authorizerUri }),
4345
+ ...(input.identityValidationExpression != null && {
4414
4346
  identityValidationExpression: input.identityValidationExpression,
4415
4347
  }),
4416
4348
  };
4417
4349
  };
4418
4350
  const serializeAws_restJson1LambdaConflictHandlerConfig = (input, context) => {
4419
4351
  return {
4420
- ...(input.lambdaConflictHandlerArn !== undefined &&
4421
- input.lambdaConflictHandlerArn !== null && { lambdaConflictHandlerArn: input.lambdaConflictHandlerArn }),
4352
+ ...(input.lambdaConflictHandlerArn != null && { lambdaConflictHandlerArn: input.lambdaConflictHandlerArn }),
4422
4353
  };
4423
4354
  };
4424
4355
  const serializeAws_restJson1LambdaDataSourceConfig = (input, context) => {
4425
4356
  return {
4426
- ...(input.lambdaFunctionArn !== undefined &&
4427
- input.lambdaFunctionArn !== null && { lambdaFunctionArn: input.lambdaFunctionArn }),
4357
+ ...(input.lambdaFunctionArn != null && { lambdaFunctionArn: input.lambdaFunctionArn }),
4428
4358
  };
4429
4359
  };
4430
4360
  const serializeAws_restJson1LogConfig = (input, context) => {
4431
4361
  return {
4432
- ...(input.cloudWatchLogsRoleArn !== undefined &&
4433
- input.cloudWatchLogsRoleArn !== null && { cloudWatchLogsRoleArn: input.cloudWatchLogsRoleArn }),
4434
- ...(input.excludeVerboseContent !== undefined &&
4435
- input.excludeVerboseContent !== null && { excludeVerboseContent: input.excludeVerboseContent }),
4436
- ...(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 }),
4437
4365
  };
4438
4366
  };
4439
4367
  const serializeAws_restJson1OpenIDConnectConfig = (input, context) => {
4440
4368
  return {
4441
- ...(input.authTTL !== undefined && input.authTTL !== null && { authTTL: input.authTTL }),
4442
- ...(input.clientId !== undefined && input.clientId !== null && { clientId: input.clientId }),
4443
- ...(input.iatTTL !== undefined && input.iatTTL !== null && { iatTTL: input.iatTTL }),
4444
- ...(input.issuer !== undefined && input.issuer !== null && { issuer: 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 }),
4445
4373
  };
4446
4374
  };
4447
4375
  const serializeAws_restJson1OpenSearchServiceDataSourceConfig = (input, context) => {
4448
4376
  return {
4449
- ...(input.awsRegion !== undefined && input.awsRegion !== null && { awsRegion: input.awsRegion }),
4450
- ...(input.endpoint !== undefined && input.endpoint !== null && { endpoint: input.endpoint }),
4377
+ ...(input.awsRegion != null && { awsRegion: input.awsRegion }),
4378
+ ...(input.endpoint != null && { endpoint: input.endpoint }),
4451
4379
  };
4452
4380
  };
4453
4381
  const serializeAws_restJson1PipelineConfig = (input, context) => {
4454
4382
  return {
4455
- ...(input.functions !== undefined &&
4456
- input.functions !== null && { functions: serializeAws_restJson1FunctionsIds(input.functions, context) }),
4383
+ ...(input.functions != null && { functions: serializeAws_restJson1FunctionsIds(input.functions, context) }),
4457
4384
  };
4458
4385
  };
4459
4386
  const serializeAws_restJson1RdsHttpEndpointConfig = (input, context) => {
4460
4387
  return {
4461
- ...(input.awsRegion !== undefined && input.awsRegion !== null && { awsRegion: input.awsRegion }),
4462
- ...(input.awsSecretStoreArn !== undefined &&
4463
- input.awsSecretStoreArn !== null && { awsSecretStoreArn: input.awsSecretStoreArn }),
4464
- ...(input.databaseName !== undefined && input.databaseName !== null && { databaseName: input.databaseName }),
4465
- ...(input.dbClusterIdentifier !== undefined &&
4466
- input.dbClusterIdentifier !== null && { dbClusterIdentifier: input.dbClusterIdentifier }),
4467
- ...(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 }),
4468
4393
  };
4469
4394
  };
4470
4395
  const serializeAws_restJson1RelationalDatabaseDataSourceConfig = (input, context) => {
4471
4396
  return {
4472
- ...(input.rdsHttpEndpointConfig !== undefined &&
4473
- input.rdsHttpEndpointConfig !== null && {
4397
+ ...(input.rdsHttpEndpointConfig != null && {
4474
4398
  rdsHttpEndpointConfig: serializeAws_restJson1RdsHttpEndpointConfig(input.rdsHttpEndpointConfig, context),
4475
4399
  }),
4476
- ...(input.relationalDatabaseSourceType !== undefined &&
4477
- input.relationalDatabaseSourceType !== null && {
4400
+ ...(input.relationalDatabaseSourceType != null && {
4478
4401
  relationalDatabaseSourceType: input.relationalDatabaseSourceType,
4479
4402
  }),
4480
4403
  };
4481
4404
  };
4482
4405
  const serializeAws_restJson1SyncConfig = (input, context) => {
4483
4406
  return {
4484
- ...(input.conflictDetection !== undefined &&
4485
- input.conflictDetection !== null && { conflictDetection: input.conflictDetection }),
4486
- ...(input.conflictHandler !== undefined &&
4487
- input.conflictHandler !== null && { conflictHandler: input.conflictHandler }),
4488
- ...(input.lambdaConflictHandlerConfig !== undefined &&
4489
- input.lambdaConflictHandlerConfig !== null && {
4407
+ ...(input.conflictDetection != null && { conflictDetection: input.conflictDetection }),
4408
+ ...(input.conflictHandler != null && { conflictHandler: input.conflictHandler }),
4409
+ ...(input.lambdaConflictHandlerConfig != null && {
4490
4410
  lambdaConflictHandlerConfig: serializeAws_restJson1LambdaConflictHandlerConfig(input.lambdaConflictHandlerConfig, context),
4491
4411
  }),
4492
4412
  };
@@ -4504,23 +4424,22 @@ const serializeAws_restJson1TagMap = (input, context) => {
4504
4424
  };
4505
4425
  const serializeAws_restJson1UserPoolConfig = (input, context) => {
4506
4426
  return {
4507
- ...(input.appIdClientRegex !== undefined &&
4508
- input.appIdClientRegex !== null && { appIdClientRegex: input.appIdClientRegex }),
4509
- ...(input.awsRegion !== undefined && input.awsRegion !== null && { awsRegion: input.awsRegion }),
4510
- ...(input.defaultAction !== undefined && input.defaultAction !== null && { defaultAction: input.defaultAction }),
4511
- ...(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 }),
4512
4431
  };
4513
4432
  };
4514
4433
  const deserializeAws_restJson1AdditionalAuthenticationProvider = (output, context) => {
4515
4434
  return {
4516
4435
  authenticationType: (0, smithy_client_1.expectString)(output.authenticationType),
4517
- lambdaAuthorizerConfig: output.lambdaAuthorizerConfig !== undefined && output.lambdaAuthorizerConfig !== null
4436
+ lambdaAuthorizerConfig: output.lambdaAuthorizerConfig != null
4518
4437
  ? deserializeAws_restJson1LambdaAuthorizerConfig(output.lambdaAuthorizerConfig, context)
4519
4438
  : undefined,
4520
- openIDConnectConfig: output.openIDConnectConfig !== undefined && output.openIDConnectConfig !== null
4439
+ openIDConnectConfig: output.openIDConnectConfig != null
4521
4440
  ? deserializeAws_restJson1OpenIDConnectConfig(output.openIDConnectConfig, context)
4522
4441
  : undefined,
4523
- userPoolConfig: output.userPoolConfig !== undefined && output.userPoolConfig !== null
4442
+ userPoolConfig: output.userPoolConfig != null
4524
4443
  ? deserializeAws_restJson1CognitoUserPoolConfig(output.userPoolConfig, context)
4525
4444
  : undefined,
4526
4445
  };
@@ -4576,9 +4495,7 @@ const deserializeAws_restJson1ApiKeys = (output, context) => {
4576
4495
  const deserializeAws_restJson1AuthorizationConfig = (output, context) => {
4577
4496
  return {
4578
4497
  authorizationType: (0, smithy_client_1.expectString)(output.authorizationType),
4579
- awsIamConfig: output.awsIamConfig !== undefined && output.awsIamConfig !== null
4580
- ? deserializeAws_restJson1AwsIamConfig(output.awsIamConfig, context)
4581
- : undefined,
4498
+ awsIamConfig: output.awsIamConfig != null ? deserializeAws_restJson1AwsIamConfig(output.awsIamConfig, context) : undefined,
4582
4499
  };
4583
4500
  };
4584
4501
  const deserializeAws_restJson1AwsIamConfig = (output, context) => {
@@ -4589,9 +4506,7 @@ const deserializeAws_restJson1AwsIamConfig = (output, context) => {
4589
4506
  };
4590
4507
  const deserializeAws_restJson1CachingConfig = (output, context) => {
4591
4508
  return {
4592
- cachingKeys: output.cachingKeys !== undefined && output.cachingKeys !== null
4593
- ? deserializeAws_restJson1CachingKeys(output.cachingKeys, context)
4594
- : undefined,
4509
+ cachingKeys: output.cachingKeys != null ? deserializeAws_restJson1CachingKeys(output.cachingKeys, context) : undefined,
4595
4510
  ttl: (0, smithy_client_1.expectLong)(output.ttl),
4596
4511
  };
4597
4512
  };
@@ -4617,23 +4532,21 @@ const deserializeAws_restJson1DataSource = (output, context) => {
4617
4532
  return {
4618
4533
  dataSourceArn: (0, smithy_client_1.expectString)(output.dataSourceArn),
4619
4534
  description: (0, smithy_client_1.expectString)(output.description),
4620
- dynamodbConfig: output.dynamodbConfig !== undefined && output.dynamodbConfig !== null
4535
+ dynamodbConfig: output.dynamodbConfig != null
4621
4536
  ? deserializeAws_restJson1DynamodbDataSourceConfig(output.dynamodbConfig, context)
4622
4537
  : undefined,
4623
- elasticsearchConfig: output.elasticsearchConfig !== undefined && output.elasticsearchConfig !== null
4538
+ elasticsearchConfig: output.elasticsearchConfig != null
4624
4539
  ? deserializeAws_restJson1ElasticsearchDataSourceConfig(output.elasticsearchConfig, context)
4625
4540
  : undefined,
4626
- httpConfig: output.httpConfig !== undefined && output.httpConfig !== null
4627
- ? deserializeAws_restJson1HttpDataSourceConfig(output.httpConfig, context)
4628
- : undefined,
4629
- lambdaConfig: output.lambdaConfig !== undefined && output.lambdaConfig !== null
4541
+ httpConfig: output.httpConfig != null ? deserializeAws_restJson1HttpDataSourceConfig(output.httpConfig, context) : undefined,
4542
+ lambdaConfig: output.lambdaConfig != null
4630
4543
  ? deserializeAws_restJson1LambdaDataSourceConfig(output.lambdaConfig, context)
4631
4544
  : undefined,
4632
4545
  name: (0, smithy_client_1.expectString)(output.name),
4633
- openSearchServiceConfig: output.openSearchServiceConfig !== undefined && output.openSearchServiceConfig !== null
4546
+ openSearchServiceConfig: output.openSearchServiceConfig != null
4634
4547
  ? deserializeAws_restJson1OpenSearchServiceDataSourceConfig(output.openSearchServiceConfig, context)
4635
4548
  : undefined,
4636
- relationalDatabaseConfig: output.relationalDatabaseConfig !== undefined && output.relationalDatabaseConfig !== null
4549
+ relationalDatabaseConfig: output.relationalDatabaseConfig != null
4637
4550
  ? deserializeAws_restJson1RelationalDatabaseDataSourceConfig(output.relationalDatabaseConfig, context)
4638
4551
  : undefined,
4639
4552
  serviceRoleArn: (0, smithy_client_1.expectString)(output.serviceRoleArn),
@@ -4681,7 +4594,7 @@ const deserializeAws_restJson1DomainNameConfigs = (output, context) => {
4681
4594
  const deserializeAws_restJson1DynamodbDataSourceConfig = (output, context) => {
4682
4595
  return {
4683
4596
  awsRegion: (0, smithy_client_1.expectString)(output.awsRegion),
4684
- deltaSyncConfig: output.deltaSyncConfig !== undefined && output.deltaSyncConfig !== null
4597
+ deltaSyncConfig: output.deltaSyncConfig != null
4685
4598
  ? deserializeAws_restJson1DeltaSyncConfig(output.deltaSyncConfig, context)
4686
4599
  : undefined,
4687
4600
  tableName: (0, smithy_client_1.expectString)(output.tableName),
@@ -4706,9 +4619,7 @@ const deserializeAws_restJson1FunctionConfiguration = (output, context) => {
4706
4619
  name: (0, smithy_client_1.expectString)(output.name),
4707
4620
  requestMappingTemplate: (0, smithy_client_1.expectString)(output.requestMappingTemplate),
4708
4621
  responseMappingTemplate: (0, smithy_client_1.expectString)(output.responseMappingTemplate),
4709
- syncConfig: output.syncConfig !== undefined && output.syncConfig !== null
4710
- ? deserializeAws_restJson1SyncConfig(output.syncConfig, context)
4711
- : undefined,
4622
+ syncConfig: output.syncConfig != null ? deserializeAws_restJson1SyncConfig(output.syncConfig, context) : undefined,
4712
4623
  };
4713
4624
  };
4714
4625
  const deserializeAws_restJson1Functions = (output, context) => {
@@ -4735,29 +4646,23 @@ const deserializeAws_restJson1FunctionsIds = (output, context) => {
4735
4646
  };
4736
4647
  const deserializeAws_restJson1GraphqlApi = (output, context) => {
4737
4648
  return {
4738
- additionalAuthenticationProviders: output.additionalAuthenticationProviders !== undefined && output.additionalAuthenticationProviders !== null
4649
+ additionalAuthenticationProviders: output.additionalAuthenticationProviders != null
4739
4650
  ? deserializeAws_restJson1AdditionalAuthenticationProviders(output.additionalAuthenticationProviders, context)
4740
4651
  : undefined,
4741
4652
  apiId: (0, smithy_client_1.expectString)(output.apiId),
4742
4653
  arn: (0, smithy_client_1.expectString)(output.arn),
4743
4654
  authenticationType: (0, smithy_client_1.expectString)(output.authenticationType),
4744
- lambdaAuthorizerConfig: output.lambdaAuthorizerConfig !== undefined && output.lambdaAuthorizerConfig !== null
4655
+ lambdaAuthorizerConfig: output.lambdaAuthorizerConfig != null
4745
4656
  ? deserializeAws_restJson1LambdaAuthorizerConfig(output.lambdaAuthorizerConfig, context)
4746
4657
  : undefined,
4747
- logConfig: output.logConfig !== undefined && output.logConfig !== null
4748
- ? deserializeAws_restJson1LogConfig(output.logConfig, context)
4749
- : undefined,
4658
+ logConfig: output.logConfig != null ? deserializeAws_restJson1LogConfig(output.logConfig, context) : undefined,
4750
4659
  name: (0, smithy_client_1.expectString)(output.name),
4751
- openIDConnectConfig: output.openIDConnectConfig !== undefined && output.openIDConnectConfig !== null
4660
+ openIDConnectConfig: output.openIDConnectConfig != null
4752
4661
  ? deserializeAws_restJson1OpenIDConnectConfig(output.openIDConnectConfig, context)
4753
4662
  : undefined,
4754
- tags: output.tags !== undefined && output.tags !== null
4755
- ? deserializeAws_restJson1TagMap(output.tags, context)
4756
- : undefined,
4757
- uris: output.uris !== undefined && output.uris !== null
4758
- ? deserializeAws_restJson1MapOfStringToString(output.uris, context)
4759
- : undefined,
4760
- 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
4761
4666
  ? deserializeAws_restJson1UserPoolConfig(output.userPoolConfig, context)
4762
4667
  : undefined,
4763
4668
  wafWebAclArn: (0, smithy_client_1.expectString)(output.wafWebAclArn),
@@ -4777,7 +4682,7 @@ const deserializeAws_restJson1GraphqlApis = (output, context) => {
4777
4682
  };
4778
4683
  const deserializeAws_restJson1HttpDataSourceConfig = (output, context) => {
4779
4684
  return {
4780
- authorizationConfig: output.authorizationConfig !== undefined && output.authorizationConfig !== null
4685
+ authorizationConfig: output.authorizationConfig != null
4781
4686
  ? deserializeAws_restJson1AuthorizationConfig(output.authorizationConfig, context)
4782
4687
  : undefined,
4783
4688
  endpoint: (0, smithy_client_1.expectString)(output.endpoint),
@@ -4834,9 +4739,7 @@ const deserializeAws_restJson1OpenSearchServiceDataSourceConfig = (output, conte
4834
4739
  };
4835
4740
  const deserializeAws_restJson1PipelineConfig = (output, context) => {
4836
4741
  return {
4837
- functions: output.functions !== undefined && output.functions !== null
4838
- ? deserializeAws_restJson1FunctionsIds(output.functions, context)
4839
- : undefined,
4742
+ functions: output.functions != null ? deserializeAws_restJson1FunctionsIds(output.functions, context) : undefined,
4840
4743
  };
4841
4744
  };
4842
4745
  const deserializeAws_restJson1RdsHttpEndpointConfig = (output, context) => {
@@ -4850,7 +4753,7 @@ const deserializeAws_restJson1RdsHttpEndpointConfig = (output, context) => {
4850
4753
  };
4851
4754
  const deserializeAws_restJson1RelationalDatabaseDataSourceConfig = (output, context) => {
4852
4755
  return {
4853
- rdsHttpEndpointConfig: output.rdsHttpEndpointConfig !== undefined && output.rdsHttpEndpointConfig !== null
4756
+ rdsHttpEndpointConfig: output.rdsHttpEndpointConfig != null
4854
4757
  ? deserializeAws_restJson1RdsHttpEndpointConfig(output.rdsHttpEndpointConfig, context)
4855
4758
  : undefined,
4856
4759
  relationalDatabaseSourceType: (0, smithy_client_1.expectString)(output.relationalDatabaseSourceType),
@@ -4858,22 +4761,18 @@ const deserializeAws_restJson1RelationalDatabaseDataSourceConfig = (output, cont
4858
4761
  };
4859
4762
  const deserializeAws_restJson1Resolver = (output, context) => {
4860
4763
  return {
4861
- cachingConfig: output.cachingConfig !== undefined && output.cachingConfig !== null
4862
- ? deserializeAws_restJson1CachingConfig(output.cachingConfig, context)
4863
- : undefined,
4764
+ cachingConfig: output.cachingConfig != null ? deserializeAws_restJson1CachingConfig(output.cachingConfig, context) : undefined,
4864
4765
  dataSourceName: (0, smithy_client_1.expectString)(output.dataSourceName),
4865
4766
  fieldName: (0, smithy_client_1.expectString)(output.fieldName),
4866
4767
  kind: (0, smithy_client_1.expectString)(output.kind),
4867
4768
  maxBatchSize: (0, smithy_client_1.expectInt32)(output.maxBatchSize),
4868
- pipelineConfig: output.pipelineConfig !== undefined && output.pipelineConfig !== null
4769
+ pipelineConfig: output.pipelineConfig != null
4869
4770
  ? deserializeAws_restJson1PipelineConfig(output.pipelineConfig, context)
4870
4771
  : undefined,
4871
4772
  requestMappingTemplate: (0, smithy_client_1.expectString)(output.requestMappingTemplate),
4872
4773
  resolverArn: (0, smithy_client_1.expectString)(output.resolverArn),
4873
4774
  responseMappingTemplate: (0, smithy_client_1.expectString)(output.responseMappingTemplate),
4874
- syncConfig: output.syncConfig !== undefined && output.syncConfig !== null
4875
- ? deserializeAws_restJson1SyncConfig(output.syncConfig, context)
4876
- : undefined,
4775
+ syncConfig: output.syncConfig != null ? deserializeAws_restJson1SyncConfig(output.syncConfig, context) : undefined,
4877
4776
  typeName: (0, smithy_client_1.expectString)(output.typeName),
4878
4777
  };
4879
4778
  };
@@ -4892,7 +4791,7 @@ const deserializeAws_restJson1SyncConfig = (output, context) => {
4892
4791
  return {
4893
4792
  conflictDetection: (0, smithy_client_1.expectString)(output.conflictDetection),
4894
4793
  conflictHandler: (0, smithy_client_1.expectString)(output.conflictHandler),
4895
- lambdaConflictHandlerConfig: output.lambdaConflictHandlerConfig !== undefined && output.lambdaConflictHandlerConfig !== null
4794
+ lambdaConflictHandlerConfig: output.lambdaConflictHandlerConfig != null
4896
4795
  ? deserializeAws_restJson1LambdaConflictHandlerConfig(output.lambdaConflictHandlerConfig, context)
4897
4796
  : undefined,
4898
4797
  };
@@ -4967,6 +4866,9 @@ const loadRestJsonErrorCode = (output, data) => {
4967
4866
  const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
4968
4867
  const sanitizeErrorCode = (rawValue) => {
4969
4868
  let cleanValue = rawValue;
4869
+ if (typeof cleanValue === "number") {
4870
+ cleanValue = cleanValue.toString();
4871
+ }
4970
4872
  if (cleanValue.indexOf(":") >= 0) {
4971
4873
  cleanValue = cleanValue.split(":")[0];
4972
4874
  }