@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.
- package/CHANGELOG.md +27 -0
- package/dist-cjs/protocols/Aws_restJson1.js +178 -276
- package/dist-es/protocols/Aws_restJson1.js +101 -199
- package/package.json +26 -26
|
@@ -25,7 +25,7 @@ export var serializeAws_restJson1AssociateApiCommand = function (input, context)
|
|
|
25
25
|
else {
|
|
26
26
|
throw new Error("No value provided for input HTTP label: domainName.");
|
|
27
27
|
}
|
|
28
|
-
body = JSON.stringify(__assign({}, (input.apiId
|
|
28
|
+
body = JSON.stringify(__assign({}, (input.apiId != null && { apiId: input.apiId })));
|
|
29
29
|
return [2, new __HttpRequest({
|
|
30
30
|
protocol: protocol,
|
|
31
31
|
hostname: hostname,
|
|
@@ -59,10 +59,7 @@ export var serializeAws_restJson1CreateApiCacheCommand = function (input, contex
|
|
|
59
59
|
else {
|
|
60
60
|
throw new Error("No value provided for input HTTP label: apiId.");
|
|
61
61
|
}
|
|
62
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.apiCachingBehavior
|
|
63
|
-
input.apiCachingBehavior !== null && { apiCachingBehavior: input.apiCachingBehavior })), (input.atRestEncryptionEnabled !== undefined &&
|
|
64
|
-
input.atRestEncryptionEnabled !== null && { atRestEncryptionEnabled: input.atRestEncryptionEnabled })), (input.transitEncryptionEnabled !== undefined &&
|
|
65
|
-
input.transitEncryptionEnabled !== null && { transitEncryptionEnabled: input.transitEncryptionEnabled })), (input.ttl !== undefined && input.ttl !== null && { ttl: input.ttl })), (input.type !== undefined && input.type !== null && { type: input.type })));
|
|
62
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.apiCachingBehavior != null && { apiCachingBehavior: input.apiCachingBehavior })), (input.atRestEncryptionEnabled != null && { atRestEncryptionEnabled: input.atRestEncryptionEnabled })), (input.transitEncryptionEnabled != null && { transitEncryptionEnabled: input.transitEncryptionEnabled })), (input.ttl != null && { ttl: input.ttl })), (input.type != null && { type: input.type })));
|
|
66
63
|
return [2, new __HttpRequest({
|
|
67
64
|
protocol: protocol,
|
|
68
65
|
hostname: hostname,
|
|
@@ -96,7 +93,7 @@ export var serializeAws_restJson1CreateApiKeyCommand = function (input, context)
|
|
|
96
93
|
else {
|
|
97
94
|
throw new Error("No value provided for input HTTP label: apiId.");
|
|
98
95
|
}
|
|
99
|
-
body = JSON.stringify(__assign(__assign({}, (input.description
|
|
96
|
+
body = JSON.stringify(__assign(__assign({}, (input.description != null && { description: input.description })), (input.expires != null && { expires: input.expires })));
|
|
100
97
|
return [2, new __HttpRequest({
|
|
101
98
|
protocol: protocol,
|
|
102
99
|
hostname: hostname,
|
|
@@ -130,26 +127,19 @@ export var serializeAws_restJson1CreateDataSourceCommand = function (input, cont
|
|
|
130
127
|
else {
|
|
131
128
|
throw new Error("No value provided for input HTTP label: apiId.");
|
|
132
129
|
}
|
|
133
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.description
|
|
134
|
-
input.dynamodbConfig !== null && {
|
|
130
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.description != null && { description: input.description })), (input.dynamodbConfig != null && {
|
|
135
131
|
dynamodbConfig: serializeAws_restJson1DynamodbDataSourceConfig(input.dynamodbConfig, context),
|
|
136
|
-
})), (input.elasticsearchConfig
|
|
137
|
-
input.elasticsearchConfig !== null && {
|
|
132
|
+
})), (input.elasticsearchConfig != null && {
|
|
138
133
|
elasticsearchConfig: serializeAws_restJson1ElasticsearchDataSourceConfig(input.elasticsearchConfig, context),
|
|
139
|
-
})), (input.httpConfig
|
|
140
|
-
input.httpConfig !== null && {
|
|
134
|
+
})), (input.httpConfig != null && {
|
|
141
135
|
httpConfig: serializeAws_restJson1HttpDataSourceConfig(input.httpConfig, context),
|
|
142
|
-
})), (input.lambdaConfig
|
|
143
|
-
input.lambdaConfig !== null && {
|
|
136
|
+
})), (input.lambdaConfig != null && {
|
|
144
137
|
lambdaConfig: serializeAws_restJson1LambdaDataSourceConfig(input.lambdaConfig, context),
|
|
145
|
-
})), (input.name
|
|
146
|
-
input.openSearchServiceConfig !== null && {
|
|
138
|
+
})), (input.name != null && { name: input.name })), (input.openSearchServiceConfig != null && {
|
|
147
139
|
openSearchServiceConfig: serializeAws_restJson1OpenSearchServiceDataSourceConfig(input.openSearchServiceConfig, context),
|
|
148
|
-
})), (input.relationalDatabaseConfig
|
|
149
|
-
input.relationalDatabaseConfig !== null && {
|
|
140
|
+
})), (input.relationalDatabaseConfig != null && {
|
|
150
141
|
relationalDatabaseConfig: serializeAws_restJson1RelationalDatabaseDataSourceConfig(input.relationalDatabaseConfig, context),
|
|
151
|
-
})), (input.serviceRoleArn
|
|
152
|
-
input.serviceRoleArn !== null && { serviceRoleArn: input.serviceRoleArn })), (input.type !== undefined && input.type !== null && { type: input.type })));
|
|
142
|
+
})), (input.serviceRoleArn != null && { serviceRoleArn: input.serviceRoleArn })), (input.type != null && { type: input.type })));
|
|
153
143
|
return [2, new __HttpRequest({
|
|
154
144
|
protocol: protocol,
|
|
155
145
|
hostname: hostname,
|
|
@@ -173,8 +163,7 @@ export var serializeAws_restJson1CreateDomainNameCommand = function (input, cont
|
|
|
173
163
|
"content-type": "application/json",
|
|
174
164
|
};
|
|
175
165
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/domainnames";
|
|
176
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.certificateArn
|
|
177
|
-
input.certificateArn !== null && { certificateArn: input.certificateArn })), (input.description !== undefined && input.description !== null && { description: input.description })), (input.domainName !== undefined && input.domainName !== null && { domainName: input.domainName })));
|
|
166
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.certificateArn != null && { certificateArn: input.certificateArn })), (input.description != null && { description: input.description })), (input.domainName != null && { domainName: input.domainName })));
|
|
178
167
|
return [2, new __HttpRequest({
|
|
179
168
|
protocol: protocol,
|
|
180
169
|
hostname: hostname,
|
|
@@ -208,12 +197,7 @@ export var serializeAws_restJson1CreateFunctionCommand = function (input, contex
|
|
|
208
197
|
else {
|
|
209
198
|
throw new Error("No value provided for input HTTP label: apiId.");
|
|
210
199
|
}
|
|
211
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.dataSourceName
|
|
212
|
-
input.dataSourceName !== null && { dataSourceName: input.dataSourceName })), (input.description !== undefined && input.description !== null && { description: input.description })), (input.functionVersion !== undefined &&
|
|
213
|
-
input.functionVersion !== null && { functionVersion: input.functionVersion })), (input.maxBatchSize !== undefined && input.maxBatchSize !== null && { maxBatchSize: input.maxBatchSize })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.requestMappingTemplate !== undefined &&
|
|
214
|
-
input.requestMappingTemplate !== null && { requestMappingTemplate: input.requestMappingTemplate })), (input.responseMappingTemplate !== undefined &&
|
|
215
|
-
input.responseMappingTemplate !== null && { responseMappingTemplate: input.responseMappingTemplate })), (input.syncConfig !== undefined &&
|
|
216
|
-
input.syncConfig !== null && { syncConfig: serializeAws_restJson1SyncConfig(input.syncConfig, context) })));
|
|
200
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.dataSourceName != null && { dataSourceName: input.dataSourceName })), (input.description != null && { description: input.description })), (input.functionVersion != null && { functionVersion: input.functionVersion })), (input.maxBatchSize != null && { maxBatchSize: input.maxBatchSize })), (input.name != null && { name: input.name })), (input.requestMappingTemplate != null && { requestMappingTemplate: input.requestMappingTemplate })), (input.responseMappingTemplate != null && { responseMappingTemplate: input.responseMappingTemplate })), (input.syncConfig != null && { syncConfig: serializeAws_restJson1SyncConfig(input.syncConfig, context) })));
|
|
217
201
|
return [2, new __HttpRequest({
|
|
218
202
|
protocol: protocol,
|
|
219
203
|
hostname: hostname,
|
|
@@ -237,21 +221,15 @@ export var serializeAws_restJson1CreateGraphqlApiCommand = function (input, cont
|
|
|
237
221
|
"content-type": "application/json",
|
|
238
222
|
};
|
|
239
223
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/apis";
|
|
240
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.additionalAuthenticationProviders
|
|
241
|
-
input.additionalAuthenticationProviders !== null && {
|
|
224
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.additionalAuthenticationProviders != null && {
|
|
242
225
|
additionalAuthenticationProviders: serializeAws_restJson1AdditionalAuthenticationProviders(input.additionalAuthenticationProviders, context),
|
|
243
|
-
})), (input.authenticationType
|
|
244
|
-
input.authenticationType !== null && { authenticationType: input.authenticationType })), (input.lambdaAuthorizerConfig !== undefined &&
|
|
245
|
-
input.lambdaAuthorizerConfig !== null && {
|
|
226
|
+
})), (input.authenticationType != null && { authenticationType: input.authenticationType })), (input.lambdaAuthorizerConfig != null && {
|
|
246
227
|
lambdaAuthorizerConfig: serializeAws_restJson1LambdaAuthorizerConfig(input.lambdaAuthorizerConfig, context),
|
|
247
|
-
})), (input.logConfig
|
|
248
|
-
input.logConfig !== null && { logConfig: serializeAws_restJson1LogConfig(input.logConfig, context) })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.openIDConnectConfig !== undefined &&
|
|
249
|
-
input.openIDConnectConfig !== null && {
|
|
228
|
+
})), (input.logConfig != null && { logConfig: serializeAws_restJson1LogConfig(input.logConfig, context) })), (input.name != null && { name: input.name })), (input.openIDConnectConfig != null && {
|
|
250
229
|
openIDConnectConfig: serializeAws_restJson1OpenIDConnectConfig(input.openIDConnectConfig, context),
|
|
251
|
-
})), (input.tags
|
|
252
|
-
input.userPoolConfig !== null && {
|
|
230
|
+
})), (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })), (input.userPoolConfig != null && {
|
|
253
231
|
userPoolConfig: serializeAws_restJson1UserPoolConfig(input.userPoolConfig, context),
|
|
254
|
-
})), (input.xrayEnabled
|
|
232
|
+
})), (input.xrayEnabled != null && { xrayEnabled: input.xrayEnabled })));
|
|
255
233
|
return [2, new __HttpRequest({
|
|
256
234
|
protocol: protocol,
|
|
257
235
|
hostname: hostname,
|
|
@@ -296,17 +274,11 @@ export var serializeAws_restJson1CreateResolverCommand = function (input, contex
|
|
|
296
274
|
else {
|
|
297
275
|
throw new Error("No value provided for input HTTP label: typeName.");
|
|
298
276
|
}
|
|
299
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.cachingConfig
|
|
300
|
-
input.cachingConfig !== null && {
|
|
277
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.cachingConfig != null && {
|
|
301
278
|
cachingConfig: serializeAws_restJson1CachingConfig(input.cachingConfig, context),
|
|
302
|
-
})), (input.dataSourceName
|
|
303
|
-
input.dataSourceName !== null && { dataSourceName: input.dataSourceName })), (input.fieldName !== undefined && input.fieldName !== null && { fieldName: input.fieldName })), (input.kind !== undefined && input.kind !== null && { kind: input.kind })), (input.maxBatchSize !== undefined && input.maxBatchSize !== null && { maxBatchSize: input.maxBatchSize })), (input.pipelineConfig !== undefined &&
|
|
304
|
-
input.pipelineConfig !== null && {
|
|
279
|
+
})), (input.dataSourceName != null && { dataSourceName: input.dataSourceName })), (input.fieldName != null && { fieldName: input.fieldName })), (input.kind != null && { kind: input.kind })), (input.maxBatchSize != null && { maxBatchSize: input.maxBatchSize })), (input.pipelineConfig != null && {
|
|
305
280
|
pipelineConfig: serializeAws_restJson1PipelineConfig(input.pipelineConfig, context),
|
|
306
|
-
})), (input.requestMappingTemplate
|
|
307
|
-
input.requestMappingTemplate !== null && { requestMappingTemplate: input.requestMappingTemplate })), (input.responseMappingTemplate !== undefined &&
|
|
308
|
-
input.responseMappingTemplate !== null && { responseMappingTemplate: input.responseMappingTemplate })), (input.syncConfig !== undefined &&
|
|
309
|
-
input.syncConfig !== null && { syncConfig: serializeAws_restJson1SyncConfig(input.syncConfig, context) })));
|
|
281
|
+
})), (input.requestMappingTemplate != null && { requestMappingTemplate: input.requestMappingTemplate })), (input.responseMappingTemplate != null && { responseMappingTemplate: input.responseMappingTemplate })), (input.syncConfig != null && { syncConfig: serializeAws_restJson1SyncConfig(input.syncConfig, context) })));
|
|
310
282
|
return [2, new __HttpRequest({
|
|
311
283
|
protocol: protocol,
|
|
312
284
|
hostname: hostname,
|
|
@@ -340,7 +312,7 @@ export var serializeAws_restJson1CreateTypeCommand = function (input, context) {
|
|
|
340
312
|
else {
|
|
341
313
|
throw new Error("No value provided for input HTTP label: apiId.");
|
|
342
314
|
}
|
|
343
|
-
body = JSON.stringify(__assign(__assign({}, (input.definition
|
|
315
|
+
body = JSON.stringify(__assign(__assign({}, (input.definition != null && { definition: input.definition })), (input.format != null && { format: input.format })));
|
|
344
316
|
return [2, new __HttpRequest({
|
|
345
317
|
protocol: protocol,
|
|
346
318
|
hostname: hostname,
|
|
@@ -1409,8 +1381,7 @@ export var serializeAws_restJson1StartSchemaCreationCommand = function (input, c
|
|
|
1409
1381
|
else {
|
|
1410
1382
|
throw new Error("No value provided for input HTTP label: apiId.");
|
|
1411
1383
|
}
|
|
1412
|
-
body = JSON.stringify(__assign({}, (input.definition
|
|
1413
|
-
input.definition !== null && { definition: context.base64Encoder(input.definition) })));
|
|
1384
|
+
body = JSON.stringify(__assign({}, (input.definition != null && { definition: context.base64Encoder(input.definition) })));
|
|
1414
1385
|
return [2, new __HttpRequest({
|
|
1415
1386
|
protocol: protocol,
|
|
1416
1387
|
hostname: hostname,
|
|
@@ -1444,7 +1415,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
1444
1415
|
else {
|
|
1445
1416
|
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
1446
1417
|
}
|
|
1447
|
-
body = JSON.stringify(__assign({}, (input.tags
|
|
1418
|
+
body = JSON.stringify(__assign({}, (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
|
|
1448
1419
|
return [2, new __HttpRequest({
|
|
1449
1420
|
protocol: protocol,
|
|
1450
1421
|
hostname: hostname,
|
|
@@ -1511,8 +1482,7 @@ export var serializeAws_restJson1UpdateApiCacheCommand = function (input, contex
|
|
|
1511
1482
|
else {
|
|
1512
1483
|
throw new Error("No value provided for input HTTP label: apiId.");
|
|
1513
1484
|
}
|
|
1514
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.apiCachingBehavior
|
|
1515
|
-
input.apiCachingBehavior !== null && { apiCachingBehavior: input.apiCachingBehavior })), (input.ttl !== undefined && input.ttl !== null && { ttl: input.ttl })), (input.type !== undefined && input.type !== null && { type: input.type })));
|
|
1485
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.apiCachingBehavior != null && { apiCachingBehavior: input.apiCachingBehavior })), (input.ttl != null && { ttl: input.ttl })), (input.type != null && { type: input.type })));
|
|
1516
1486
|
return [2, new __HttpRequest({
|
|
1517
1487
|
protocol: protocol,
|
|
1518
1488
|
hostname: hostname,
|
|
@@ -1556,7 +1526,7 @@ export var serializeAws_restJson1UpdateApiKeyCommand = function (input, context)
|
|
|
1556
1526
|
else {
|
|
1557
1527
|
throw new Error("No value provided for input HTTP label: id.");
|
|
1558
1528
|
}
|
|
1559
|
-
body = JSON.stringify(__assign(__assign({}, (input.description
|
|
1529
|
+
body = JSON.stringify(__assign(__assign({}, (input.description != null && { description: input.description })), (input.expires != null && { expires: input.expires })));
|
|
1560
1530
|
return [2, new __HttpRequest({
|
|
1561
1531
|
protocol: protocol,
|
|
1562
1532
|
hostname: hostname,
|
|
@@ -1600,26 +1570,19 @@ export var serializeAws_restJson1UpdateDataSourceCommand = function (input, cont
|
|
|
1600
1570
|
else {
|
|
1601
1571
|
throw new Error("No value provided for input HTTP label: name.");
|
|
1602
1572
|
}
|
|
1603
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.description
|
|
1604
|
-
input.dynamodbConfig !== null && {
|
|
1573
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.description != null && { description: input.description })), (input.dynamodbConfig != null && {
|
|
1605
1574
|
dynamodbConfig: serializeAws_restJson1DynamodbDataSourceConfig(input.dynamodbConfig, context),
|
|
1606
|
-
})), (input.elasticsearchConfig
|
|
1607
|
-
input.elasticsearchConfig !== null && {
|
|
1575
|
+
})), (input.elasticsearchConfig != null && {
|
|
1608
1576
|
elasticsearchConfig: serializeAws_restJson1ElasticsearchDataSourceConfig(input.elasticsearchConfig, context),
|
|
1609
|
-
})), (input.httpConfig
|
|
1610
|
-
input.httpConfig !== null && {
|
|
1577
|
+
})), (input.httpConfig != null && {
|
|
1611
1578
|
httpConfig: serializeAws_restJson1HttpDataSourceConfig(input.httpConfig, context),
|
|
1612
|
-
})), (input.lambdaConfig
|
|
1613
|
-
input.lambdaConfig !== null && {
|
|
1579
|
+
})), (input.lambdaConfig != null && {
|
|
1614
1580
|
lambdaConfig: serializeAws_restJson1LambdaDataSourceConfig(input.lambdaConfig, context),
|
|
1615
|
-
})), (input.openSearchServiceConfig
|
|
1616
|
-
input.openSearchServiceConfig !== null && {
|
|
1581
|
+
})), (input.openSearchServiceConfig != null && {
|
|
1617
1582
|
openSearchServiceConfig: serializeAws_restJson1OpenSearchServiceDataSourceConfig(input.openSearchServiceConfig, context),
|
|
1618
|
-
})), (input.relationalDatabaseConfig
|
|
1619
|
-
input.relationalDatabaseConfig !== null && {
|
|
1583
|
+
})), (input.relationalDatabaseConfig != null && {
|
|
1620
1584
|
relationalDatabaseConfig: serializeAws_restJson1RelationalDatabaseDataSourceConfig(input.relationalDatabaseConfig, context),
|
|
1621
|
-
})), (input.serviceRoleArn
|
|
1622
|
-
input.serviceRoleArn !== null && { serviceRoleArn: input.serviceRoleArn })), (input.type !== undefined && input.type !== null && { type: input.type })));
|
|
1585
|
+
})), (input.serviceRoleArn != null && { serviceRoleArn: input.serviceRoleArn })), (input.type != null && { type: input.type })));
|
|
1623
1586
|
return [2, new __HttpRequest({
|
|
1624
1587
|
protocol: protocol,
|
|
1625
1588
|
hostname: hostname,
|
|
@@ -1653,7 +1616,7 @@ export var serializeAws_restJson1UpdateDomainNameCommand = function (input, cont
|
|
|
1653
1616
|
else {
|
|
1654
1617
|
throw new Error("No value provided for input HTTP label: domainName.");
|
|
1655
1618
|
}
|
|
1656
|
-
body = JSON.stringify(__assign({}, (input.description
|
|
1619
|
+
body = JSON.stringify(__assign({}, (input.description != null && { description: input.description })));
|
|
1657
1620
|
return [2, new __HttpRequest({
|
|
1658
1621
|
protocol: protocol,
|
|
1659
1622
|
hostname: hostname,
|
|
@@ -1697,12 +1660,7 @@ export var serializeAws_restJson1UpdateFunctionCommand = function (input, contex
|
|
|
1697
1660
|
else {
|
|
1698
1661
|
throw new Error("No value provided for input HTTP label: functionId.");
|
|
1699
1662
|
}
|
|
1700
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.dataSourceName
|
|
1701
|
-
input.dataSourceName !== null && { dataSourceName: input.dataSourceName })), (input.description !== undefined && input.description !== null && { description: input.description })), (input.functionVersion !== undefined &&
|
|
1702
|
-
input.functionVersion !== null && { functionVersion: input.functionVersion })), (input.maxBatchSize !== undefined && input.maxBatchSize !== null && { maxBatchSize: input.maxBatchSize })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.requestMappingTemplate !== undefined &&
|
|
1703
|
-
input.requestMappingTemplate !== null && { requestMappingTemplate: input.requestMappingTemplate })), (input.responseMappingTemplate !== undefined &&
|
|
1704
|
-
input.responseMappingTemplate !== null && { responseMappingTemplate: input.responseMappingTemplate })), (input.syncConfig !== undefined &&
|
|
1705
|
-
input.syncConfig !== null && { syncConfig: serializeAws_restJson1SyncConfig(input.syncConfig, context) })));
|
|
1663
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.dataSourceName != null && { dataSourceName: input.dataSourceName })), (input.description != null && { description: input.description })), (input.functionVersion != null && { functionVersion: input.functionVersion })), (input.maxBatchSize != null && { maxBatchSize: input.maxBatchSize })), (input.name != null && { name: input.name })), (input.requestMappingTemplate != null && { requestMappingTemplate: input.requestMappingTemplate })), (input.responseMappingTemplate != null && { responseMappingTemplate: input.responseMappingTemplate })), (input.syncConfig != null && { syncConfig: serializeAws_restJson1SyncConfig(input.syncConfig, context) })));
|
|
1706
1664
|
return [2, new __HttpRequest({
|
|
1707
1665
|
protocol: protocol,
|
|
1708
1666
|
hostname: hostname,
|
|
@@ -1736,21 +1694,15 @@ export var serializeAws_restJson1UpdateGraphqlApiCommand = function (input, cont
|
|
|
1736
1694
|
else {
|
|
1737
1695
|
throw new Error("No value provided for input HTTP label: apiId.");
|
|
1738
1696
|
}
|
|
1739
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.additionalAuthenticationProviders
|
|
1740
|
-
input.additionalAuthenticationProviders !== null && {
|
|
1697
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.additionalAuthenticationProviders != null && {
|
|
1741
1698
|
additionalAuthenticationProviders: serializeAws_restJson1AdditionalAuthenticationProviders(input.additionalAuthenticationProviders, context),
|
|
1742
|
-
})), (input.authenticationType
|
|
1743
|
-
input.authenticationType !== null && { authenticationType: input.authenticationType })), (input.lambdaAuthorizerConfig !== undefined &&
|
|
1744
|
-
input.lambdaAuthorizerConfig !== null && {
|
|
1699
|
+
})), (input.authenticationType != null && { authenticationType: input.authenticationType })), (input.lambdaAuthorizerConfig != null && {
|
|
1745
1700
|
lambdaAuthorizerConfig: serializeAws_restJson1LambdaAuthorizerConfig(input.lambdaAuthorizerConfig, context),
|
|
1746
|
-
})), (input.logConfig
|
|
1747
|
-
input.logConfig !== null && { logConfig: serializeAws_restJson1LogConfig(input.logConfig, context) })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.openIDConnectConfig !== undefined &&
|
|
1748
|
-
input.openIDConnectConfig !== null && {
|
|
1701
|
+
})), (input.logConfig != null && { logConfig: serializeAws_restJson1LogConfig(input.logConfig, context) })), (input.name != null && { name: input.name })), (input.openIDConnectConfig != null && {
|
|
1749
1702
|
openIDConnectConfig: serializeAws_restJson1OpenIDConnectConfig(input.openIDConnectConfig, context),
|
|
1750
|
-
})), (input.userPoolConfig
|
|
1751
|
-
input.userPoolConfig !== null && {
|
|
1703
|
+
})), (input.userPoolConfig != null && {
|
|
1752
1704
|
userPoolConfig: serializeAws_restJson1UserPoolConfig(input.userPoolConfig, context),
|
|
1753
|
-
})), (input.xrayEnabled
|
|
1705
|
+
})), (input.xrayEnabled != null && { xrayEnabled: input.xrayEnabled })));
|
|
1754
1706
|
return [2, new __HttpRequest({
|
|
1755
1707
|
protocol: protocol,
|
|
1756
1708
|
hostname: hostname,
|
|
@@ -1805,17 +1757,11 @@ export var serializeAws_restJson1UpdateResolverCommand = function (input, contex
|
|
|
1805
1757
|
else {
|
|
1806
1758
|
throw new Error("No value provided for input HTTP label: fieldName.");
|
|
1807
1759
|
}
|
|
1808
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.cachingConfig
|
|
1809
|
-
input.cachingConfig !== null && {
|
|
1760
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.cachingConfig != null && {
|
|
1810
1761
|
cachingConfig: serializeAws_restJson1CachingConfig(input.cachingConfig, context),
|
|
1811
|
-
})), (input.dataSourceName
|
|
1812
|
-
input.dataSourceName !== null && { dataSourceName: input.dataSourceName })), (input.kind !== undefined && input.kind !== null && { kind: input.kind })), (input.maxBatchSize !== undefined && input.maxBatchSize !== null && { maxBatchSize: input.maxBatchSize })), (input.pipelineConfig !== undefined &&
|
|
1813
|
-
input.pipelineConfig !== null && {
|
|
1762
|
+
})), (input.dataSourceName != null && { dataSourceName: input.dataSourceName })), (input.kind != null && { kind: input.kind })), (input.maxBatchSize != null && { maxBatchSize: input.maxBatchSize })), (input.pipelineConfig != null && {
|
|
1814
1763
|
pipelineConfig: serializeAws_restJson1PipelineConfig(input.pipelineConfig, context),
|
|
1815
|
-
})), (input.requestMappingTemplate
|
|
1816
|
-
input.requestMappingTemplate !== null && { requestMappingTemplate: input.requestMappingTemplate })), (input.responseMappingTemplate !== undefined &&
|
|
1817
|
-
input.responseMappingTemplate !== null && { responseMappingTemplate: input.responseMappingTemplate })), (input.syncConfig !== undefined &&
|
|
1818
|
-
input.syncConfig !== null && { syncConfig: serializeAws_restJson1SyncConfig(input.syncConfig, context) })));
|
|
1764
|
+
})), (input.requestMappingTemplate != null && { requestMappingTemplate: input.requestMappingTemplate })), (input.responseMappingTemplate != null && { responseMappingTemplate: input.responseMappingTemplate })), (input.syncConfig != null && { syncConfig: serializeAws_restJson1SyncConfig(input.syncConfig, context) })));
|
|
1819
1765
|
return [2, new __HttpRequest({
|
|
1820
1766
|
protocol: protocol,
|
|
1821
1767
|
hostname: hostname,
|
|
@@ -1859,7 +1805,7 @@ export var serializeAws_restJson1UpdateTypeCommand = function (input, context) {
|
|
|
1859
1805
|
else {
|
|
1860
1806
|
throw new Error("No value provided for input HTTP label: typeName.");
|
|
1861
1807
|
}
|
|
1862
|
-
body = JSON.stringify(__assign(__assign({}, (input.definition
|
|
1808
|
+
body = JSON.stringify(__assign(__assign({}, (input.definition != null && { definition: input.definition })), (input.format != null && { format: input.format })));
|
|
1863
1809
|
return [2, new __HttpRequest({
|
|
1864
1810
|
protocol: protocol,
|
|
1865
1811
|
hostname: hostname,
|
|
@@ -5470,15 +5416,11 @@ var deserializeAws_restJson1UnauthorizedExceptionResponse = function (parsedOutp
|
|
|
5470
5416
|
});
|
|
5471
5417
|
}); };
|
|
5472
5418
|
var serializeAws_restJson1AdditionalAuthenticationProvider = function (input, context) {
|
|
5473
|
-
return __assign(__assign(__assign(__assign({}, (input.authenticationType
|
|
5474
|
-
input.authenticationType !== null && { authenticationType: input.authenticationType })), (input.lambdaAuthorizerConfig !== undefined &&
|
|
5475
|
-
input.lambdaAuthorizerConfig !== null && {
|
|
5419
|
+
return __assign(__assign(__assign(__assign({}, (input.authenticationType != null && { authenticationType: input.authenticationType })), (input.lambdaAuthorizerConfig != null && {
|
|
5476
5420
|
lambdaAuthorizerConfig: serializeAws_restJson1LambdaAuthorizerConfig(input.lambdaAuthorizerConfig, context),
|
|
5477
|
-
})), (input.openIDConnectConfig
|
|
5478
|
-
input.openIDConnectConfig !== null && {
|
|
5421
|
+
})), (input.openIDConnectConfig != null && {
|
|
5479
5422
|
openIDConnectConfig: serializeAws_restJson1OpenIDConnectConfig(input.openIDConnectConfig, context),
|
|
5480
|
-
})), (input.userPoolConfig
|
|
5481
|
-
input.userPoolConfig !== null && {
|
|
5423
|
+
})), (input.userPoolConfig != null && {
|
|
5482
5424
|
userPoolConfig: serializeAws_restJson1CognitoUserPoolConfig(input.userPoolConfig, context),
|
|
5483
5425
|
}));
|
|
5484
5426
|
};
|
|
@@ -5493,17 +5435,15 @@ var serializeAws_restJson1AdditionalAuthenticationProviders = function (input, c
|
|
|
5493
5435
|
});
|
|
5494
5436
|
};
|
|
5495
5437
|
var serializeAws_restJson1AuthorizationConfig = function (input, context) {
|
|
5496
|
-
return __assign(__assign({}, (input.authorizationType
|
|
5497
|
-
|
|
5498
|
-
|
|
5438
|
+
return __assign(__assign({}, (input.authorizationType != null && { authorizationType: input.authorizationType })), (input.awsIamConfig != null && {
|
|
5439
|
+
awsIamConfig: serializeAws_restJson1AwsIamConfig(input.awsIamConfig, context),
|
|
5440
|
+
}));
|
|
5499
5441
|
};
|
|
5500
5442
|
var serializeAws_restJson1AwsIamConfig = function (input, context) {
|
|
5501
|
-
return __assign(__assign({}, (input.signingRegion
|
|
5502
|
-
input.signingServiceName !== null && { signingServiceName: input.signingServiceName }));
|
|
5443
|
+
return __assign(__assign({}, (input.signingRegion != null && { signingRegion: input.signingRegion })), (input.signingServiceName != null && { signingServiceName: input.signingServiceName }));
|
|
5503
5444
|
};
|
|
5504
5445
|
var serializeAws_restJson1CachingConfig = function (input, context) {
|
|
5505
|
-
return __assign(__assign({}, (input.cachingKeys
|
|
5506
|
-
input.cachingKeys !== null && { cachingKeys: serializeAws_restJson1CachingKeys(input.cachingKeys, context) })), (input.ttl !== undefined && input.ttl !== null && { ttl: input.ttl }));
|
|
5446
|
+
return __assign(__assign({}, (input.cachingKeys != null && { cachingKeys: serializeAws_restJson1CachingKeys(input.cachingKeys, context) })), (input.ttl != null && { ttl: input.ttl }));
|
|
5507
5447
|
};
|
|
5508
5448
|
var serializeAws_restJson1CachingKeys = function (input, context) {
|
|
5509
5449
|
return input
|
|
@@ -5516,23 +5456,18 @@ var serializeAws_restJson1CachingKeys = function (input, context) {
|
|
|
5516
5456
|
});
|
|
5517
5457
|
};
|
|
5518
5458
|
var serializeAws_restJson1CognitoUserPoolConfig = function (input, context) {
|
|
5519
|
-
return __assign(__assign(__assign({}, (input.appIdClientRegex
|
|
5520
|
-
input.appIdClientRegex !== null && { appIdClientRegex: input.appIdClientRegex })), (input.awsRegion !== undefined && input.awsRegion !== null && { awsRegion: input.awsRegion })), (input.userPoolId !== undefined && input.userPoolId !== null && { userPoolId: input.userPoolId }));
|
|
5459
|
+
return __assign(__assign(__assign({}, (input.appIdClientRegex != null && { appIdClientRegex: input.appIdClientRegex })), (input.awsRegion != null && { awsRegion: input.awsRegion })), (input.userPoolId != null && { userPoolId: input.userPoolId }));
|
|
5521
5460
|
};
|
|
5522
5461
|
var serializeAws_restJson1DeltaSyncConfig = function (input, context) {
|
|
5523
|
-
return __assign(__assign(__assign({}, (input.baseTableTTL
|
|
5524
|
-
input.deltaSyncTableName !== null && { deltaSyncTableName: input.deltaSyncTableName })), (input.deltaSyncTableTTL !== undefined &&
|
|
5525
|
-
input.deltaSyncTableTTL !== null && { deltaSyncTableTTL: input.deltaSyncTableTTL }));
|
|
5462
|
+
return __assign(__assign(__assign({}, (input.baseTableTTL != null && { baseTableTTL: input.baseTableTTL })), (input.deltaSyncTableName != null && { deltaSyncTableName: input.deltaSyncTableName })), (input.deltaSyncTableTTL != null && { deltaSyncTableTTL: input.deltaSyncTableTTL }));
|
|
5526
5463
|
};
|
|
5527
5464
|
var serializeAws_restJson1DynamodbDataSourceConfig = function (input, context) {
|
|
5528
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.awsRegion
|
|
5529
|
-
input.deltaSyncConfig !== null && {
|
|
5465
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.awsRegion != null && { awsRegion: input.awsRegion })), (input.deltaSyncConfig != null && {
|
|
5530
5466
|
deltaSyncConfig: serializeAws_restJson1DeltaSyncConfig(input.deltaSyncConfig, context),
|
|
5531
|
-
})), (input.tableName
|
|
5532
|
-
input.useCallerCredentials !== null && { useCallerCredentials: input.useCallerCredentials })), (input.versioned !== undefined && input.versioned !== null && { versioned: input.versioned }));
|
|
5467
|
+
})), (input.tableName != null && { tableName: input.tableName })), (input.useCallerCredentials != null && { useCallerCredentials: input.useCallerCredentials })), (input.versioned != null && { versioned: input.versioned }));
|
|
5533
5468
|
};
|
|
5534
5469
|
var serializeAws_restJson1ElasticsearchDataSourceConfig = function (input, context) {
|
|
5535
|
-
return __assign(__assign({}, (input.awsRegion
|
|
5470
|
+
return __assign(__assign({}, (input.awsRegion != null && { awsRegion: input.awsRegion })), (input.endpoint != null && { endpoint: input.endpoint }));
|
|
5536
5471
|
};
|
|
5537
5472
|
var serializeAws_restJson1FunctionsIds = function (input, context) {
|
|
5538
5473
|
return input
|
|
@@ -5545,62 +5480,47 @@ var serializeAws_restJson1FunctionsIds = function (input, context) {
|
|
|
5545
5480
|
});
|
|
5546
5481
|
};
|
|
5547
5482
|
var serializeAws_restJson1HttpDataSourceConfig = function (input, context) {
|
|
5548
|
-
return __assign(__assign({}, (input.authorizationConfig
|
|
5549
|
-
input.authorizationConfig !== null && {
|
|
5483
|
+
return __assign(__assign({}, (input.authorizationConfig != null && {
|
|
5550
5484
|
authorizationConfig: serializeAws_restJson1AuthorizationConfig(input.authorizationConfig, context),
|
|
5551
|
-
})), (input.endpoint
|
|
5485
|
+
})), (input.endpoint != null && { endpoint: input.endpoint }));
|
|
5552
5486
|
};
|
|
5553
5487
|
var serializeAws_restJson1LambdaAuthorizerConfig = function (input, context) {
|
|
5554
|
-
return __assign(__assign(__assign({}, (input.authorizerResultTtlInSeconds
|
|
5555
|
-
input.authorizerResultTtlInSeconds !== null && {
|
|
5488
|
+
return __assign(__assign(__assign({}, (input.authorizerResultTtlInSeconds != null && {
|
|
5556
5489
|
authorizerResultTtlInSeconds: input.authorizerResultTtlInSeconds,
|
|
5557
|
-
})), (input.authorizerUri
|
|
5558
|
-
input.identityValidationExpression !== null && {
|
|
5490
|
+
})), (input.authorizerUri != null && { authorizerUri: input.authorizerUri })), (input.identityValidationExpression != null && {
|
|
5559
5491
|
identityValidationExpression: input.identityValidationExpression,
|
|
5560
5492
|
}));
|
|
5561
5493
|
};
|
|
5562
5494
|
var serializeAws_restJson1LambdaConflictHandlerConfig = function (input, context) {
|
|
5563
|
-
return __assign({}, (input.lambdaConflictHandlerArn
|
|
5564
|
-
input.lambdaConflictHandlerArn !== null && { lambdaConflictHandlerArn: input.lambdaConflictHandlerArn }));
|
|
5495
|
+
return __assign({}, (input.lambdaConflictHandlerArn != null && { lambdaConflictHandlerArn: input.lambdaConflictHandlerArn }));
|
|
5565
5496
|
};
|
|
5566
5497
|
var serializeAws_restJson1LambdaDataSourceConfig = function (input, context) {
|
|
5567
|
-
return __assign({}, (input.lambdaFunctionArn
|
|
5568
|
-
input.lambdaFunctionArn !== null && { lambdaFunctionArn: input.lambdaFunctionArn }));
|
|
5498
|
+
return __assign({}, (input.lambdaFunctionArn != null && { lambdaFunctionArn: input.lambdaFunctionArn }));
|
|
5569
5499
|
};
|
|
5570
5500
|
var serializeAws_restJson1LogConfig = function (input, context) {
|
|
5571
|
-
return __assign(__assign(__assign({}, (input.cloudWatchLogsRoleArn
|
|
5572
|
-
input.cloudWatchLogsRoleArn !== null && { cloudWatchLogsRoleArn: input.cloudWatchLogsRoleArn })), (input.excludeVerboseContent !== undefined &&
|
|
5573
|
-
input.excludeVerboseContent !== null && { excludeVerboseContent: input.excludeVerboseContent })), (input.fieldLogLevel !== undefined && input.fieldLogLevel !== null && { fieldLogLevel: input.fieldLogLevel }));
|
|
5501
|
+
return __assign(__assign(__assign({}, (input.cloudWatchLogsRoleArn != null && { cloudWatchLogsRoleArn: input.cloudWatchLogsRoleArn })), (input.excludeVerboseContent != null && { excludeVerboseContent: input.excludeVerboseContent })), (input.fieldLogLevel != null && { fieldLogLevel: input.fieldLogLevel }));
|
|
5574
5502
|
};
|
|
5575
5503
|
var serializeAws_restJson1OpenIDConnectConfig = function (input, context) {
|
|
5576
|
-
return __assign(__assign(__assign(__assign({}, (input.authTTL
|
|
5504
|
+
return __assign(__assign(__assign(__assign({}, (input.authTTL != null && { authTTL: input.authTTL })), (input.clientId != null && { clientId: input.clientId })), (input.iatTTL != null && { iatTTL: input.iatTTL })), (input.issuer != null && { issuer: input.issuer }));
|
|
5577
5505
|
};
|
|
5578
5506
|
var serializeAws_restJson1OpenSearchServiceDataSourceConfig = function (input, context) {
|
|
5579
|
-
return __assign(__assign({}, (input.awsRegion
|
|
5507
|
+
return __assign(__assign({}, (input.awsRegion != null && { awsRegion: input.awsRegion })), (input.endpoint != null && { endpoint: input.endpoint }));
|
|
5580
5508
|
};
|
|
5581
5509
|
var serializeAws_restJson1PipelineConfig = function (input, context) {
|
|
5582
|
-
return __assign({}, (input.functions
|
|
5583
|
-
input.functions !== null && { functions: serializeAws_restJson1FunctionsIds(input.functions, context) }));
|
|
5510
|
+
return __assign({}, (input.functions != null && { functions: serializeAws_restJson1FunctionsIds(input.functions, context) }));
|
|
5584
5511
|
};
|
|
5585
5512
|
var serializeAws_restJson1RdsHttpEndpointConfig = function (input, context) {
|
|
5586
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.awsRegion
|
|
5587
|
-
input.awsSecretStoreArn !== null && { awsSecretStoreArn: input.awsSecretStoreArn })), (input.databaseName !== undefined && input.databaseName !== null && { databaseName: input.databaseName })), (input.dbClusterIdentifier !== undefined &&
|
|
5588
|
-
input.dbClusterIdentifier !== null && { dbClusterIdentifier: input.dbClusterIdentifier })), (input.schema !== undefined && input.schema !== null && { schema: input.schema }));
|
|
5513
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.awsRegion != null && { awsRegion: input.awsRegion })), (input.awsSecretStoreArn != null && { awsSecretStoreArn: input.awsSecretStoreArn })), (input.databaseName != null && { databaseName: input.databaseName })), (input.dbClusterIdentifier != null && { dbClusterIdentifier: input.dbClusterIdentifier })), (input.schema != null && { schema: input.schema }));
|
|
5589
5514
|
};
|
|
5590
5515
|
var serializeAws_restJson1RelationalDatabaseDataSourceConfig = function (input, context) {
|
|
5591
|
-
return __assign(__assign({}, (input.rdsHttpEndpointConfig
|
|
5592
|
-
input.rdsHttpEndpointConfig !== null && {
|
|
5516
|
+
return __assign(__assign({}, (input.rdsHttpEndpointConfig != null && {
|
|
5593
5517
|
rdsHttpEndpointConfig: serializeAws_restJson1RdsHttpEndpointConfig(input.rdsHttpEndpointConfig, context),
|
|
5594
|
-
})), (input.relationalDatabaseSourceType
|
|
5595
|
-
input.relationalDatabaseSourceType !== null && {
|
|
5518
|
+
})), (input.relationalDatabaseSourceType != null && {
|
|
5596
5519
|
relationalDatabaseSourceType: input.relationalDatabaseSourceType,
|
|
5597
5520
|
}));
|
|
5598
5521
|
};
|
|
5599
5522
|
var serializeAws_restJson1SyncConfig = function (input, context) {
|
|
5600
|
-
return __assign(__assign(__assign({}, (input.conflictDetection
|
|
5601
|
-
input.conflictDetection !== null && { conflictDetection: input.conflictDetection })), (input.conflictHandler !== undefined &&
|
|
5602
|
-
input.conflictHandler !== null && { conflictHandler: input.conflictHandler })), (input.lambdaConflictHandlerConfig !== undefined &&
|
|
5603
|
-
input.lambdaConflictHandlerConfig !== null && {
|
|
5523
|
+
return __assign(__assign(__assign({}, (input.conflictDetection != null && { conflictDetection: input.conflictDetection })), (input.conflictHandler != null && { conflictHandler: input.conflictHandler })), (input.lambdaConflictHandlerConfig != null && {
|
|
5604
5524
|
lambdaConflictHandlerConfig: serializeAws_restJson1LambdaConflictHandlerConfig(input.lambdaConflictHandlerConfig, context),
|
|
5605
5525
|
}));
|
|
5606
5526
|
};
|
|
@@ -5615,19 +5535,18 @@ var serializeAws_restJson1TagMap = function (input, context) {
|
|
|
5615
5535
|
}, {});
|
|
5616
5536
|
};
|
|
5617
5537
|
var serializeAws_restJson1UserPoolConfig = function (input, context) {
|
|
5618
|
-
return __assign(__assign(__assign(__assign({}, (input.appIdClientRegex
|
|
5619
|
-
input.appIdClientRegex !== null && { appIdClientRegex: input.appIdClientRegex })), (input.awsRegion !== undefined && input.awsRegion !== null && { awsRegion: input.awsRegion })), (input.defaultAction !== undefined && input.defaultAction !== null && { defaultAction: input.defaultAction })), (input.userPoolId !== undefined && input.userPoolId !== null && { userPoolId: input.userPoolId }));
|
|
5538
|
+
return __assign(__assign(__assign(__assign({}, (input.appIdClientRegex != null && { appIdClientRegex: input.appIdClientRegex })), (input.awsRegion != null && { awsRegion: input.awsRegion })), (input.defaultAction != null && { defaultAction: input.defaultAction })), (input.userPoolId != null && { userPoolId: input.userPoolId }));
|
|
5620
5539
|
};
|
|
5621
5540
|
var deserializeAws_restJson1AdditionalAuthenticationProvider = function (output, context) {
|
|
5622
5541
|
return {
|
|
5623
5542
|
authenticationType: __expectString(output.authenticationType),
|
|
5624
|
-
lambdaAuthorizerConfig: output.lambdaAuthorizerConfig
|
|
5543
|
+
lambdaAuthorizerConfig: output.lambdaAuthorizerConfig != null
|
|
5625
5544
|
? deserializeAws_restJson1LambdaAuthorizerConfig(output.lambdaAuthorizerConfig, context)
|
|
5626
5545
|
: undefined,
|
|
5627
|
-
openIDConnectConfig: output.openIDConnectConfig
|
|
5546
|
+
openIDConnectConfig: output.openIDConnectConfig != null
|
|
5628
5547
|
? deserializeAws_restJson1OpenIDConnectConfig(output.openIDConnectConfig, context)
|
|
5629
5548
|
: undefined,
|
|
5630
|
-
userPoolConfig: output.userPoolConfig
|
|
5549
|
+
userPoolConfig: output.userPoolConfig != null
|
|
5631
5550
|
? deserializeAws_restJson1CognitoUserPoolConfig(output.userPoolConfig, context)
|
|
5632
5551
|
: undefined,
|
|
5633
5552
|
};
|
|
@@ -5683,9 +5602,7 @@ var deserializeAws_restJson1ApiKeys = function (output, context) {
|
|
|
5683
5602
|
var deserializeAws_restJson1AuthorizationConfig = function (output, context) {
|
|
5684
5603
|
return {
|
|
5685
5604
|
authorizationType: __expectString(output.authorizationType),
|
|
5686
|
-
awsIamConfig: output.awsIamConfig
|
|
5687
|
-
? deserializeAws_restJson1AwsIamConfig(output.awsIamConfig, context)
|
|
5688
|
-
: undefined,
|
|
5605
|
+
awsIamConfig: output.awsIamConfig != null ? deserializeAws_restJson1AwsIamConfig(output.awsIamConfig, context) : undefined,
|
|
5689
5606
|
};
|
|
5690
5607
|
};
|
|
5691
5608
|
var deserializeAws_restJson1AwsIamConfig = function (output, context) {
|
|
@@ -5696,9 +5613,7 @@ var deserializeAws_restJson1AwsIamConfig = function (output, context) {
|
|
|
5696
5613
|
};
|
|
5697
5614
|
var deserializeAws_restJson1CachingConfig = function (output, context) {
|
|
5698
5615
|
return {
|
|
5699
|
-
cachingKeys: output.cachingKeys
|
|
5700
|
-
? deserializeAws_restJson1CachingKeys(output.cachingKeys, context)
|
|
5701
|
-
: undefined,
|
|
5616
|
+
cachingKeys: output.cachingKeys != null ? deserializeAws_restJson1CachingKeys(output.cachingKeys, context) : undefined,
|
|
5702
5617
|
ttl: __expectLong(output.ttl),
|
|
5703
5618
|
};
|
|
5704
5619
|
};
|
|
@@ -5724,23 +5639,21 @@ var deserializeAws_restJson1DataSource = function (output, context) {
|
|
|
5724
5639
|
return {
|
|
5725
5640
|
dataSourceArn: __expectString(output.dataSourceArn),
|
|
5726
5641
|
description: __expectString(output.description),
|
|
5727
|
-
dynamodbConfig: output.dynamodbConfig
|
|
5642
|
+
dynamodbConfig: output.dynamodbConfig != null
|
|
5728
5643
|
? deserializeAws_restJson1DynamodbDataSourceConfig(output.dynamodbConfig, context)
|
|
5729
5644
|
: undefined,
|
|
5730
|
-
elasticsearchConfig: output.elasticsearchConfig
|
|
5645
|
+
elasticsearchConfig: output.elasticsearchConfig != null
|
|
5731
5646
|
? deserializeAws_restJson1ElasticsearchDataSourceConfig(output.elasticsearchConfig, context)
|
|
5732
5647
|
: undefined,
|
|
5733
|
-
httpConfig: output.httpConfig
|
|
5734
|
-
|
|
5735
|
-
: undefined,
|
|
5736
|
-
lambdaConfig: output.lambdaConfig !== undefined && output.lambdaConfig !== null
|
|
5648
|
+
httpConfig: output.httpConfig != null ? deserializeAws_restJson1HttpDataSourceConfig(output.httpConfig, context) : undefined,
|
|
5649
|
+
lambdaConfig: output.lambdaConfig != null
|
|
5737
5650
|
? deserializeAws_restJson1LambdaDataSourceConfig(output.lambdaConfig, context)
|
|
5738
5651
|
: undefined,
|
|
5739
5652
|
name: __expectString(output.name),
|
|
5740
|
-
openSearchServiceConfig: output.openSearchServiceConfig
|
|
5653
|
+
openSearchServiceConfig: output.openSearchServiceConfig != null
|
|
5741
5654
|
? deserializeAws_restJson1OpenSearchServiceDataSourceConfig(output.openSearchServiceConfig, context)
|
|
5742
5655
|
: undefined,
|
|
5743
|
-
relationalDatabaseConfig: output.relationalDatabaseConfig
|
|
5656
|
+
relationalDatabaseConfig: output.relationalDatabaseConfig != null
|
|
5744
5657
|
? deserializeAws_restJson1RelationalDatabaseDataSourceConfig(output.relationalDatabaseConfig, context)
|
|
5745
5658
|
: undefined,
|
|
5746
5659
|
serviceRoleArn: __expectString(output.serviceRoleArn),
|
|
@@ -5788,7 +5701,7 @@ var deserializeAws_restJson1DomainNameConfigs = function (output, context) {
|
|
|
5788
5701
|
var deserializeAws_restJson1DynamodbDataSourceConfig = function (output, context) {
|
|
5789
5702
|
return {
|
|
5790
5703
|
awsRegion: __expectString(output.awsRegion),
|
|
5791
|
-
deltaSyncConfig: output.deltaSyncConfig
|
|
5704
|
+
deltaSyncConfig: output.deltaSyncConfig != null
|
|
5792
5705
|
? deserializeAws_restJson1DeltaSyncConfig(output.deltaSyncConfig, context)
|
|
5793
5706
|
: undefined,
|
|
5794
5707
|
tableName: __expectString(output.tableName),
|
|
@@ -5813,9 +5726,7 @@ var deserializeAws_restJson1FunctionConfiguration = function (output, context) {
|
|
|
5813
5726
|
name: __expectString(output.name),
|
|
5814
5727
|
requestMappingTemplate: __expectString(output.requestMappingTemplate),
|
|
5815
5728
|
responseMappingTemplate: __expectString(output.responseMappingTemplate),
|
|
5816
|
-
syncConfig: output.syncConfig
|
|
5817
|
-
? deserializeAws_restJson1SyncConfig(output.syncConfig, context)
|
|
5818
|
-
: undefined,
|
|
5729
|
+
syncConfig: output.syncConfig != null ? deserializeAws_restJson1SyncConfig(output.syncConfig, context) : undefined,
|
|
5819
5730
|
};
|
|
5820
5731
|
};
|
|
5821
5732
|
var deserializeAws_restJson1Functions = function (output, context) {
|
|
@@ -5842,29 +5753,23 @@ var deserializeAws_restJson1FunctionsIds = function (output, context) {
|
|
|
5842
5753
|
};
|
|
5843
5754
|
var deserializeAws_restJson1GraphqlApi = function (output, context) {
|
|
5844
5755
|
return {
|
|
5845
|
-
additionalAuthenticationProviders: output.additionalAuthenticationProviders
|
|
5756
|
+
additionalAuthenticationProviders: output.additionalAuthenticationProviders != null
|
|
5846
5757
|
? deserializeAws_restJson1AdditionalAuthenticationProviders(output.additionalAuthenticationProviders, context)
|
|
5847
5758
|
: undefined,
|
|
5848
5759
|
apiId: __expectString(output.apiId),
|
|
5849
5760
|
arn: __expectString(output.arn),
|
|
5850
5761
|
authenticationType: __expectString(output.authenticationType),
|
|
5851
|
-
lambdaAuthorizerConfig: output.lambdaAuthorizerConfig
|
|
5762
|
+
lambdaAuthorizerConfig: output.lambdaAuthorizerConfig != null
|
|
5852
5763
|
? deserializeAws_restJson1LambdaAuthorizerConfig(output.lambdaAuthorizerConfig, context)
|
|
5853
5764
|
: undefined,
|
|
5854
|
-
logConfig: output.logConfig
|
|
5855
|
-
? deserializeAws_restJson1LogConfig(output.logConfig, context)
|
|
5856
|
-
: undefined,
|
|
5765
|
+
logConfig: output.logConfig != null ? deserializeAws_restJson1LogConfig(output.logConfig, context) : undefined,
|
|
5857
5766
|
name: __expectString(output.name),
|
|
5858
|
-
openIDConnectConfig: output.openIDConnectConfig
|
|
5767
|
+
openIDConnectConfig: output.openIDConnectConfig != null
|
|
5859
5768
|
? deserializeAws_restJson1OpenIDConnectConfig(output.openIDConnectConfig, context)
|
|
5860
5769
|
: undefined,
|
|
5861
|
-
tags: output.tags
|
|
5862
|
-
|
|
5863
|
-
|
|
5864
|
-
uris: output.uris !== undefined && output.uris !== null
|
|
5865
|
-
? deserializeAws_restJson1MapOfStringToString(output.uris, context)
|
|
5866
|
-
: undefined,
|
|
5867
|
-
userPoolConfig: output.userPoolConfig !== undefined && output.userPoolConfig !== null
|
|
5770
|
+
tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
|
|
5771
|
+
uris: output.uris != null ? deserializeAws_restJson1MapOfStringToString(output.uris, context) : undefined,
|
|
5772
|
+
userPoolConfig: output.userPoolConfig != null
|
|
5868
5773
|
? deserializeAws_restJson1UserPoolConfig(output.userPoolConfig, context)
|
|
5869
5774
|
: undefined,
|
|
5870
5775
|
wafWebAclArn: __expectString(output.wafWebAclArn),
|
|
@@ -5884,7 +5789,7 @@ var deserializeAws_restJson1GraphqlApis = function (output, context) {
|
|
|
5884
5789
|
};
|
|
5885
5790
|
var deserializeAws_restJson1HttpDataSourceConfig = function (output, context) {
|
|
5886
5791
|
return {
|
|
5887
|
-
authorizationConfig: output.authorizationConfig
|
|
5792
|
+
authorizationConfig: output.authorizationConfig != null
|
|
5888
5793
|
? deserializeAws_restJson1AuthorizationConfig(output.authorizationConfig, context)
|
|
5889
5794
|
: undefined,
|
|
5890
5795
|
endpoint: __expectString(output.endpoint),
|
|
@@ -5940,9 +5845,7 @@ var deserializeAws_restJson1OpenSearchServiceDataSourceConfig = function (output
|
|
|
5940
5845
|
};
|
|
5941
5846
|
var deserializeAws_restJson1PipelineConfig = function (output, context) {
|
|
5942
5847
|
return {
|
|
5943
|
-
functions: output.functions
|
|
5944
|
-
? deserializeAws_restJson1FunctionsIds(output.functions, context)
|
|
5945
|
-
: undefined,
|
|
5848
|
+
functions: output.functions != null ? deserializeAws_restJson1FunctionsIds(output.functions, context) : undefined,
|
|
5946
5849
|
};
|
|
5947
5850
|
};
|
|
5948
5851
|
var deserializeAws_restJson1RdsHttpEndpointConfig = function (output, context) {
|
|
@@ -5956,7 +5859,7 @@ var deserializeAws_restJson1RdsHttpEndpointConfig = function (output, context) {
|
|
|
5956
5859
|
};
|
|
5957
5860
|
var deserializeAws_restJson1RelationalDatabaseDataSourceConfig = function (output, context) {
|
|
5958
5861
|
return {
|
|
5959
|
-
rdsHttpEndpointConfig: output.rdsHttpEndpointConfig
|
|
5862
|
+
rdsHttpEndpointConfig: output.rdsHttpEndpointConfig != null
|
|
5960
5863
|
? deserializeAws_restJson1RdsHttpEndpointConfig(output.rdsHttpEndpointConfig, context)
|
|
5961
5864
|
: undefined,
|
|
5962
5865
|
relationalDatabaseSourceType: __expectString(output.relationalDatabaseSourceType),
|
|
@@ -5964,22 +5867,18 @@ var deserializeAws_restJson1RelationalDatabaseDataSourceConfig = function (outpu
|
|
|
5964
5867
|
};
|
|
5965
5868
|
var deserializeAws_restJson1Resolver = function (output, context) {
|
|
5966
5869
|
return {
|
|
5967
|
-
cachingConfig: output.cachingConfig
|
|
5968
|
-
? deserializeAws_restJson1CachingConfig(output.cachingConfig, context)
|
|
5969
|
-
: undefined,
|
|
5870
|
+
cachingConfig: output.cachingConfig != null ? deserializeAws_restJson1CachingConfig(output.cachingConfig, context) : undefined,
|
|
5970
5871
|
dataSourceName: __expectString(output.dataSourceName),
|
|
5971
5872
|
fieldName: __expectString(output.fieldName),
|
|
5972
5873
|
kind: __expectString(output.kind),
|
|
5973
5874
|
maxBatchSize: __expectInt32(output.maxBatchSize),
|
|
5974
|
-
pipelineConfig: output.pipelineConfig
|
|
5875
|
+
pipelineConfig: output.pipelineConfig != null
|
|
5975
5876
|
? deserializeAws_restJson1PipelineConfig(output.pipelineConfig, context)
|
|
5976
5877
|
: undefined,
|
|
5977
5878
|
requestMappingTemplate: __expectString(output.requestMappingTemplate),
|
|
5978
5879
|
resolverArn: __expectString(output.resolverArn),
|
|
5979
5880
|
responseMappingTemplate: __expectString(output.responseMappingTemplate),
|
|
5980
|
-
syncConfig: output.syncConfig
|
|
5981
|
-
? deserializeAws_restJson1SyncConfig(output.syncConfig, context)
|
|
5982
|
-
: undefined,
|
|
5881
|
+
syncConfig: output.syncConfig != null ? deserializeAws_restJson1SyncConfig(output.syncConfig, context) : undefined,
|
|
5983
5882
|
typeName: __expectString(output.typeName),
|
|
5984
5883
|
};
|
|
5985
5884
|
};
|
|
@@ -5998,7 +5897,7 @@ var deserializeAws_restJson1SyncConfig = function (output, context) {
|
|
|
5998
5897
|
return {
|
|
5999
5898
|
conflictDetection: __expectString(output.conflictDetection),
|
|
6000
5899
|
conflictHandler: __expectString(output.conflictHandler),
|
|
6001
|
-
lambdaConflictHandlerConfig: output.lambdaConflictHandlerConfig
|
|
5900
|
+
lambdaConflictHandlerConfig: output.lambdaConflictHandlerConfig != null
|
|
6002
5901
|
? deserializeAws_restJson1LambdaConflictHandlerConfig(output.lambdaConflictHandlerConfig, context)
|
|
6003
5902
|
: undefined,
|
|
6004
5903
|
};
|
|
@@ -6079,6 +5978,9 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
6079
5978
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
6080
5979
|
var sanitizeErrorCode = function (rawValue) {
|
|
6081
5980
|
var cleanValue = rawValue;
|
|
5981
|
+
if (typeof cleanValue === "number") {
|
|
5982
|
+
cleanValue = cleanValue.toString();
|
|
5983
|
+
}
|
|
6082
5984
|
if (cleanValue.indexOf(":") >= 0) {
|
|
6083
5985
|
cleanValue = cleanValue.split(":")[0];
|
|
6084
5986
|
}
|