@aws-sdk/client-appsync 3.121.0 → 3.128.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/dist-cjs/protocols/Aws_restJson1.js +186 -284
- package/dist-es/protocols/Aws_restJson1.js +109 -207
- package/dist-types/models/models_0.d.ts +1 -1
- package/package.json +26 -26
|
@@ -13,7 +13,8 @@ export var serializeAws_restJson1AssociateApiCommand = function (input, context)
|
|
|
13
13
|
headers = {
|
|
14
14
|
"content-type": "application/json",
|
|
15
15
|
};
|
|
16
|
-
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
16
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
17
|
+
"/v1/domainnames/{domainName}/apiassociation";
|
|
17
18
|
if (input.domainName !== undefined) {
|
|
18
19
|
labelValue = input.domainName;
|
|
19
20
|
if (labelValue.length <= 0) {
|
|
@@ -24,7 +25,7 @@ export var serializeAws_restJson1AssociateApiCommand = function (input, context)
|
|
|
24
25
|
else {
|
|
25
26
|
throw new Error("No value provided for input HTTP label: domainName.");
|
|
26
27
|
}
|
|
27
|
-
body = JSON.stringify(__assign({}, (input.apiId
|
|
28
|
+
body = JSON.stringify(__assign({}, (input.apiId != null && { apiId: input.apiId })));
|
|
28
29
|
return [2, new __HttpRequest({
|
|
29
30
|
protocol: protocol,
|
|
30
31
|
hostname: hostname,
|
|
@@ -58,10 +59,7 @@ export var serializeAws_restJson1CreateApiCacheCommand = function (input, contex
|
|
|
58
59
|
else {
|
|
59
60
|
throw new Error("No value provided for input HTTP label: apiId.");
|
|
60
61
|
}
|
|
61
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.apiCachingBehavior
|
|
62
|
-
input.apiCachingBehavior !== null && { apiCachingBehavior: input.apiCachingBehavior })), (input.atRestEncryptionEnabled !== undefined &&
|
|
63
|
-
input.atRestEncryptionEnabled !== null && { atRestEncryptionEnabled: input.atRestEncryptionEnabled })), (input.transitEncryptionEnabled !== undefined &&
|
|
64
|
-
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 })));
|
|
65
63
|
return [2, new __HttpRequest({
|
|
66
64
|
protocol: protocol,
|
|
67
65
|
hostname: hostname,
|
|
@@ -95,7 +93,7 @@ export var serializeAws_restJson1CreateApiKeyCommand = function (input, context)
|
|
|
95
93
|
else {
|
|
96
94
|
throw new Error("No value provided for input HTTP label: apiId.");
|
|
97
95
|
}
|
|
98
|
-
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 })));
|
|
99
97
|
return [2, new __HttpRequest({
|
|
100
98
|
protocol: protocol,
|
|
101
99
|
hostname: hostname,
|
|
@@ -129,26 +127,19 @@ export var serializeAws_restJson1CreateDataSourceCommand = function (input, cont
|
|
|
129
127
|
else {
|
|
130
128
|
throw new Error("No value provided for input HTTP label: apiId.");
|
|
131
129
|
}
|
|
132
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.description
|
|
133
|
-
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 && {
|
|
134
131
|
dynamodbConfig: serializeAws_restJson1DynamodbDataSourceConfig(input.dynamodbConfig, context),
|
|
135
|
-
})), (input.elasticsearchConfig
|
|
136
|
-
input.elasticsearchConfig !== null && {
|
|
132
|
+
})), (input.elasticsearchConfig != null && {
|
|
137
133
|
elasticsearchConfig: serializeAws_restJson1ElasticsearchDataSourceConfig(input.elasticsearchConfig, context),
|
|
138
|
-
})), (input.httpConfig
|
|
139
|
-
input.httpConfig !== null && {
|
|
134
|
+
})), (input.httpConfig != null && {
|
|
140
135
|
httpConfig: serializeAws_restJson1HttpDataSourceConfig(input.httpConfig, context),
|
|
141
|
-
})), (input.lambdaConfig
|
|
142
|
-
input.lambdaConfig !== null && {
|
|
136
|
+
})), (input.lambdaConfig != null && {
|
|
143
137
|
lambdaConfig: serializeAws_restJson1LambdaDataSourceConfig(input.lambdaConfig, context),
|
|
144
|
-
})), (input.name
|
|
145
|
-
input.openSearchServiceConfig !== null && {
|
|
138
|
+
})), (input.name != null && { name: input.name })), (input.openSearchServiceConfig != null && {
|
|
146
139
|
openSearchServiceConfig: serializeAws_restJson1OpenSearchServiceDataSourceConfig(input.openSearchServiceConfig, context),
|
|
147
|
-
})), (input.relationalDatabaseConfig
|
|
148
|
-
input.relationalDatabaseConfig !== null && {
|
|
140
|
+
})), (input.relationalDatabaseConfig != null && {
|
|
149
141
|
relationalDatabaseConfig: serializeAws_restJson1RelationalDatabaseDataSourceConfig(input.relationalDatabaseConfig, context),
|
|
150
|
-
})), (input.serviceRoleArn
|
|
151
|
-
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 })));
|
|
152
143
|
return [2, new __HttpRequest({
|
|
153
144
|
protocol: protocol,
|
|
154
145
|
hostname: hostname,
|
|
@@ -171,9 +162,8 @@ export var serializeAws_restJson1CreateDomainNameCommand = function (input, cont
|
|
|
171
162
|
headers = {
|
|
172
163
|
"content-type": "application/json",
|
|
173
164
|
};
|
|
174
|
-
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/domainnames";
|
|
175
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.certificateArn
|
|
176
|
-
input.certificateArn !== null && { certificateArn: input.certificateArn })), (input.description !== undefined && input.description !== null && { description: input.description })), (input.domainName !== undefined && input.domainName !== null && { domainName: input.domainName })));
|
|
165
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/domainnames";
|
|
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 })));
|
|
177
167
|
return [2, new __HttpRequest({
|
|
178
168
|
protocol: protocol,
|
|
179
169
|
hostname: hostname,
|
|
@@ -207,12 +197,7 @@ export var serializeAws_restJson1CreateFunctionCommand = function (input, contex
|
|
|
207
197
|
else {
|
|
208
198
|
throw new Error("No value provided for input HTTP label: apiId.");
|
|
209
199
|
}
|
|
210
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.dataSourceName
|
|
211
|
-
input.dataSourceName !== null && { dataSourceName: input.dataSourceName })), (input.description !== undefined && input.description !== null && { description: input.description })), (input.functionVersion !== undefined &&
|
|
212
|
-
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 &&
|
|
213
|
-
input.requestMappingTemplate !== null && { requestMappingTemplate: input.requestMappingTemplate })), (input.responseMappingTemplate !== undefined &&
|
|
214
|
-
input.responseMappingTemplate !== null && { responseMappingTemplate: input.responseMappingTemplate })), (input.syncConfig !== undefined &&
|
|
215
|
-
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) })));
|
|
216
201
|
return [2, new __HttpRequest({
|
|
217
202
|
protocol: protocol,
|
|
218
203
|
hostname: hostname,
|
|
@@ -236,21 +221,15 @@ export var serializeAws_restJson1CreateGraphqlApiCommand = function (input, cont
|
|
|
236
221
|
"content-type": "application/json",
|
|
237
222
|
};
|
|
238
223
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/apis";
|
|
239
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.additionalAuthenticationProviders
|
|
240
|
-
input.additionalAuthenticationProviders !== null && {
|
|
224
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.additionalAuthenticationProviders != null && {
|
|
241
225
|
additionalAuthenticationProviders: serializeAws_restJson1AdditionalAuthenticationProviders(input.additionalAuthenticationProviders, context),
|
|
242
|
-
})), (input.authenticationType
|
|
243
|
-
input.authenticationType !== null && { authenticationType: input.authenticationType })), (input.lambdaAuthorizerConfig !== undefined &&
|
|
244
|
-
input.lambdaAuthorizerConfig !== null && {
|
|
226
|
+
})), (input.authenticationType != null && { authenticationType: input.authenticationType })), (input.lambdaAuthorizerConfig != null && {
|
|
245
227
|
lambdaAuthorizerConfig: serializeAws_restJson1LambdaAuthorizerConfig(input.lambdaAuthorizerConfig, context),
|
|
246
|
-
})), (input.logConfig
|
|
247
|
-
input.logConfig !== null && { logConfig: serializeAws_restJson1LogConfig(input.logConfig, context) })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.openIDConnectConfig !== undefined &&
|
|
248
|
-
input.openIDConnectConfig !== null && {
|
|
228
|
+
})), (input.logConfig != null && { logConfig: serializeAws_restJson1LogConfig(input.logConfig, context) })), (input.name != null && { name: input.name })), (input.openIDConnectConfig != null && {
|
|
249
229
|
openIDConnectConfig: serializeAws_restJson1OpenIDConnectConfig(input.openIDConnectConfig, context),
|
|
250
|
-
})), (input.tags
|
|
251
|
-
input.userPoolConfig !== null && {
|
|
230
|
+
})), (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })), (input.userPoolConfig != null && {
|
|
252
231
|
userPoolConfig: serializeAws_restJson1UserPoolConfig(input.userPoolConfig, context),
|
|
253
|
-
})), (input.xrayEnabled
|
|
232
|
+
})), (input.xrayEnabled != null && { xrayEnabled: input.xrayEnabled })));
|
|
254
233
|
return [2, new __HttpRequest({
|
|
255
234
|
protocol: protocol,
|
|
256
235
|
hostname: hostname,
|
|
@@ -295,17 +274,11 @@ export var serializeAws_restJson1CreateResolverCommand = function (input, contex
|
|
|
295
274
|
else {
|
|
296
275
|
throw new Error("No value provided for input HTTP label: typeName.");
|
|
297
276
|
}
|
|
298
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.cachingConfig
|
|
299
|
-
input.cachingConfig !== null && {
|
|
277
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.cachingConfig != null && {
|
|
300
278
|
cachingConfig: serializeAws_restJson1CachingConfig(input.cachingConfig, context),
|
|
301
|
-
})), (input.dataSourceName
|
|
302
|
-
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 &&
|
|
303
|
-
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 && {
|
|
304
280
|
pipelineConfig: serializeAws_restJson1PipelineConfig(input.pipelineConfig, context),
|
|
305
|
-
})), (input.requestMappingTemplate
|
|
306
|
-
input.requestMappingTemplate !== null && { requestMappingTemplate: input.requestMappingTemplate })), (input.responseMappingTemplate !== undefined &&
|
|
307
|
-
input.responseMappingTemplate !== null && { responseMappingTemplate: input.responseMappingTemplate })), (input.syncConfig !== undefined &&
|
|
308
|
-
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) })));
|
|
309
282
|
return [2, new __HttpRequest({
|
|
310
283
|
protocol: protocol,
|
|
311
284
|
hostname: hostname,
|
|
@@ -339,7 +312,7 @@ export var serializeAws_restJson1CreateTypeCommand = function (input, context) {
|
|
|
339
312
|
else {
|
|
340
313
|
throw new Error("No value provided for input HTTP label: apiId.");
|
|
341
314
|
}
|
|
342
|
-
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 })));
|
|
343
316
|
return [2, new __HttpRequest({
|
|
344
317
|
protocol: protocol,
|
|
345
318
|
hostname: hostname,
|
|
@@ -473,7 +446,7 @@ export var serializeAws_restJson1DeleteDomainNameCommand = function (input, cont
|
|
|
473
446
|
case 1:
|
|
474
447
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
475
448
|
headers = {};
|
|
476
|
-
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/domainnames/{domainName}";
|
|
449
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/domainnames/{domainName}";
|
|
477
450
|
if (input.domainName !== undefined) {
|
|
478
451
|
labelValue = input.domainName;
|
|
479
452
|
if (labelValue.length <= 0) {
|
|
@@ -669,7 +642,8 @@ export var serializeAws_restJson1DisassociateApiCommand = function (input, conte
|
|
|
669
642
|
case 1:
|
|
670
643
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
671
644
|
headers = {};
|
|
672
|
-
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
645
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
646
|
+
"/v1/domainnames/{domainName}/apiassociation";
|
|
673
647
|
if (input.domainName !== undefined) {
|
|
674
648
|
labelValue = input.domainName;
|
|
675
649
|
if (labelValue.length <= 0) {
|
|
@@ -731,7 +705,8 @@ export var serializeAws_restJson1GetApiAssociationCommand = function (input, con
|
|
|
731
705
|
case 1:
|
|
732
706
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
733
707
|
headers = {};
|
|
734
|
-
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
708
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
709
|
+
"/v1/domainnames/{domainName}/apiassociation";
|
|
735
710
|
if (input.domainName !== undefined) {
|
|
736
711
|
labelValue = input.domainName;
|
|
737
712
|
if (labelValue.length <= 0) {
|
|
@@ -834,7 +809,7 @@ export var serializeAws_restJson1GetDomainNameCommand = function (input, context
|
|
|
834
809
|
case 1:
|
|
835
810
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
836
811
|
headers = {};
|
|
837
|
-
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/domainnames/{domainName}";
|
|
812
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/domainnames/{domainName}";
|
|
838
813
|
if (input.domainName !== undefined) {
|
|
839
814
|
labelValue = input.domainName;
|
|
840
815
|
if (labelValue.length <= 0) {
|
|
@@ -1162,7 +1137,7 @@ export var serializeAws_restJson1ListDomainNamesCommand = function (input, conte
|
|
|
1162
1137
|
case 1:
|
|
1163
1138
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1164
1139
|
headers = {};
|
|
1165
|
-
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/domainnames";
|
|
1140
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/domainnames";
|
|
1166
1141
|
query = __assign(__assign({}, (input.nextToken !== undefined && { nextToken: input.nextToken })), (input.maxResults !== undefined && { maxResults: input.maxResults.toString() }));
|
|
1167
1142
|
return [2, new __HttpRequest({
|
|
1168
1143
|
protocol: protocol,
|
|
@@ -1406,8 +1381,7 @@ export var serializeAws_restJson1StartSchemaCreationCommand = function (input, c
|
|
|
1406
1381
|
else {
|
|
1407
1382
|
throw new Error("No value provided for input HTTP label: apiId.");
|
|
1408
1383
|
}
|
|
1409
|
-
body = JSON.stringify(__assign({}, (input.definition
|
|
1410
|
-
input.definition !== null && { definition: context.base64Encoder(input.definition) })));
|
|
1384
|
+
body = JSON.stringify(__assign({}, (input.definition != null && { definition: context.base64Encoder(input.definition) })));
|
|
1411
1385
|
return [2, new __HttpRequest({
|
|
1412
1386
|
protocol: protocol,
|
|
1413
1387
|
hostname: hostname,
|
|
@@ -1441,7 +1415,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
1441
1415
|
else {
|
|
1442
1416
|
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
1443
1417
|
}
|
|
1444
|
-
body = JSON.stringify(__assign({}, (input.tags
|
|
1418
|
+
body = JSON.stringify(__assign({}, (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
|
|
1445
1419
|
return [2, new __HttpRequest({
|
|
1446
1420
|
protocol: protocol,
|
|
1447
1421
|
hostname: hostname,
|
|
@@ -1508,8 +1482,7 @@ export var serializeAws_restJson1UpdateApiCacheCommand = function (input, contex
|
|
|
1508
1482
|
else {
|
|
1509
1483
|
throw new Error("No value provided for input HTTP label: apiId.");
|
|
1510
1484
|
}
|
|
1511
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.apiCachingBehavior
|
|
1512
|
-
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 })));
|
|
1513
1486
|
return [2, new __HttpRequest({
|
|
1514
1487
|
protocol: protocol,
|
|
1515
1488
|
hostname: hostname,
|
|
@@ -1553,7 +1526,7 @@ export var serializeAws_restJson1UpdateApiKeyCommand = function (input, context)
|
|
|
1553
1526
|
else {
|
|
1554
1527
|
throw new Error("No value provided for input HTTP label: id.");
|
|
1555
1528
|
}
|
|
1556
|
-
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 })));
|
|
1557
1530
|
return [2, new __HttpRequest({
|
|
1558
1531
|
protocol: protocol,
|
|
1559
1532
|
hostname: hostname,
|
|
@@ -1597,26 +1570,19 @@ export var serializeAws_restJson1UpdateDataSourceCommand = function (input, cont
|
|
|
1597
1570
|
else {
|
|
1598
1571
|
throw new Error("No value provided for input HTTP label: name.");
|
|
1599
1572
|
}
|
|
1600
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.description
|
|
1601
|
-
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 && {
|
|
1602
1574
|
dynamodbConfig: serializeAws_restJson1DynamodbDataSourceConfig(input.dynamodbConfig, context),
|
|
1603
|
-
})), (input.elasticsearchConfig
|
|
1604
|
-
input.elasticsearchConfig !== null && {
|
|
1575
|
+
})), (input.elasticsearchConfig != null && {
|
|
1605
1576
|
elasticsearchConfig: serializeAws_restJson1ElasticsearchDataSourceConfig(input.elasticsearchConfig, context),
|
|
1606
|
-
})), (input.httpConfig
|
|
1607
|
-
input.httpConfig !== null && {
|
|
1577
|
+
})), (input.httpConfig != null && {
|
|
1608
1578
|
httpConfig: serializeAws_restJson1HttpDataSourceConfig(input.httpConfig, context),
|
|
1609
|
-
})), (input.lambdaConfig
|
|
1610
|
-
input.lambdaConfig !== null && {
|
|
1579
|
+
})), (input.lambdaConfig != null && {
|
|
1611
1580
|
lambdaConfig: serializeAws_restJson1LambdaDataSourceConfig(input.lambdaConfig, context),
|
|
1612
|
-
})), (input.openSearchServiceConfig
|
|
1613
|
-
input.openSearchServiceConfig !== null && {
|
|
1581
|
+
})), (input.openSearchServiceConfig != null && {
|
|
1614
1582
|
openSearchServiceConfig: serializeAws_restJson1OpenSearchServiceDataSourceConfig(input.openSearchServiceConfig, context),
|
|
1615
|
-
})), (input.relationalDatabaseConfig
|
|
1616
|
-
input.relationalDatabaseConfig !== null && {
|
|
1583
|
+
})), (input.relationalDatabaseConfig != null && {
|
|
1617
1584
|
relationalDatabaseConfig: serializeAws_restJson1RelationalDatabaseDataSourceConfig(input.relationalDatabaseConfig, context),
|
|
1618
|
-
})), (input.serviceRoleArn
|
|
1619
|
-
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 })));
|
|
1620
1586
|
return [2, new __HttpRequest({
|
|
1621
1587
|
protocol: protocol,
|
|
1622
1588
|
hostname: hostname,
|
|
@@ -1639,7 +1605,7 @@ export var serializeAws_restJson1UpdateDomainNameCommand = function (input, cont
|
|
|
1639
1605
|
headers = {
|
|
1640
1606
|
"content-type": "application/json",
|
|
1641
1607
|
};
|
|
1642
|
-
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/domainnames/{domainName}";
|
|
1608
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/domainnames/{domainName}";
|
|
1643
1609
|
if (input.domainName !== undefined) {
|
|
1644
1610
|
labelValue = input.domainName;
|
|
1645
1611
|
if (labelValue.length <= 0) {
|
|
@@ -1650,7 +1616,7 @@ export var serializeAws_restJson1UpdateDomainNameCommand = function (input, cont
|
|
|
1650
1616
|
else {
|
|
1651
1617
|
throw new Error("No value provided for input HTTP label: domainName.");
|
|
1652
1618
|
}
|
|
1653
|
-
body = JSON.stringify(__assign({}, (input.description
|
|
1619
|
+
body = JSON.stringify(__assign({}, (input.description != null && { description: input.description })));
|
|
1654
1620
|
return [2, new __HttpRequest({
|
|
1655
1621
|
protocol: protocol,
|
|
1656
1622
|
hostname: hostname,
|
|
@@ -1694,12 +1660,7 @@ export var serializeAws_restJson1UpdateFunctionCommand = function (input, contex
|
|
|
1694
1660
|
else {
|
|
1695
1661
|
throw new Error("No value provided for input HTTP label: functionId.");
|
|
1696
1662
|
}
|
|
1697
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.dataSourceName
|
|
1698
|
-
input.dataSourceName !== null && { dataSourceName: input.dataSourceName })), (input.description !== undefined && input.description !== null && { description: input.description })), (input.functionVersion !== undefined &&
|
|
1699
|
-
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 &&
|
|
1700
|
-
input.requestMappingTemplate !== null && { requestMappingTemplate: input.requestMappingTemplate })), (input.responseMappingTemplate !== undefined &&
|
|
1701
|
-
input.responseMappingTemplate !== null && { responseMappingTemplate: input.responseMappingTemplate })), (input.syncConfig !== undefined &&
|
|
1702
|
-
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) })));
|
|
1703
1664
|
return [2, new __HttpRequest({
|
|
1704
1665
|
protocol: protocol,
|
|
1705
1666
|
hostname: hostname,
|
|
@@ -1733,21 +1694,15 @@ export var serializeAws_restJson1UpdateGraphqlApiCommand = function (input, cont
|
|
|
1733
1694
|
else {
|
|
1734
1695
|
throw new Error("No value provided for input HTTP label: apiId.");
|
|
1735
1696
|
}
|
|
1736
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.additionalAuthenticationProviders
|
|
1737
|
-
input.additionalAuthenticationProviders !== null && {
|
|
1697
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.additionalAuthenticationProviders != null && {
|
|
1738
1698
|
additionalAuthenticationProviders: serializeAws_restJson1AdditionalAuthenticationProviders(input.additionalAuthenticationProviders, context),
|
|
1739
|
-
})), (input.authenticationType
|
|
1740
|
-
input.authenticationType !== null && { authenticationType: input.authenticationType })), (input.lambdaAuthorizerConfig !== undefined &&
|
|
1741
|
-
input.lambdaAuthorizerConfig !== null && {
|
|
1699
|
+
})), (input.authenticationType != null && { authenticationType: input.authenticationType })), (input.lambdaAuthorizerConfig != null && {
|
|
1742
1700
|
lambdaAuthorizerConfig: serializeAws_restJson1LambdaAuthorizerConfig(input.lambdaAuthorizerConfig, context),
|
|
1743
|
-
})), (input.logConfig
|
|
1744
|
-
input.logConfig !== null && { logConfig: serializeAws_restJson1LogConfig(input.logConfig, context) })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.openIDConnectConfig !== undefined &&
|
|
1745
|
-
input.openIDConnectConfig !== null && {
|
|
1701
|
+
})), (input.logConfig != null && { logConfig: serializeAws_restJson1LogConfig(input.logConfig, context) })), (input.name != null && { name: input.name })), (input.openIDConnectConfig != null && {
|
|
1746
1702
|
openIDConnectConfig: serializeAws_restJson1OpenIDConnectConfig(input.openIDConnectConfig, context),
|
|
1747
|
-
})), (input.userPoolConfig
|
|
1748
|
-
input.userPoolConfig !== null && {
|
|
1703
|
+
})), (input.userPoolConfig != null && {
|
|
1749
1704
|
userPoolConfig: serializeAws_restJson1UserPoolConfig(input.userPoolConfig, context),
|
|
1750
|
-
})), (input.xrayEnabled
|
|
1705
|
+
})), (input.xrayEnabled != null && { xrayEnabled: input.xrayEnabled })));
|
|
1751
1706
|
return [2, new __HttpRequest({
|
|
1752
1707
|
protocol: protocol,
|
|
1753
1708
|
hostname: hostname,
|
|
@@ -1802,17 +1757,11 @@ export var serializeAws_restJson1UpdateResolverCommand = function (input, contex
|
|
|
1802
1757
|
else {
|
|
1803
1758
|
throw new Error("No value provided for input HTTP label: fieldName.");
|
|
1804
1759
|
}
|
|
1805
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.cachingConfig
|
|
1806
|
-
input.cachingConfig !== null && {
|
|
1760
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.cachingConfig != null && {
|
|
1807
1761
|
cachingConfig: serializeAws_restJson1CachingConfig(input.cachingConfig, context),
|
|
1808
|
-
})), (input.dataSourceName
|
|
1809
|
-
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 &&
|
|
1810
|
-
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 && {
|
|
1811
1763
|
pipelineConfig: serializeAws_restJson1PipelineConfig(input.pipelineConfig, context),
|
|
1812
|
-
})), (input.requestMappingTemplate
|
|
1813
|
-
input.requestMappingTemplate !== null && { requestMappingTemplate: input.requestMappingTemplate })), (input.responseMappingTemplate !== undefined &&
|
|
1814
|
-
input.responseMappingTemplate !== null && { responseMappingTemplate: input.responseMappingTemplate })), (input.syncConfig !== undefined &&
|
|
1815
|
-
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) })));
|
|
1816
1765
|
return [2, new __HttpRequest({
|
|
1817
1766
|
protocol: protocol,
|
|
1818
1767
|
hostname: hostname,
|
|
@@ -1856,7 +1805,7 @@ export var serializeAws_restJson1UpdateTypeCommand = function (input, context) {
|
|
|
1856
1805
|
else {
|
|
1857
1806
|
throw new Error("No value provided for input HTTP label: typeName.");
|
|
1858
1807
|
}
|
|
1859
|
-
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 })));
|
|
1860
1809
|
return [2, new __HttpRequest({
|
|
1861
1810
|
protocol: protocol,
|
|
1862
1811
|
hostname: hostname,
|
|
@@ -5467,15 +5416,11 @@ var deserializeAws_restJson1UnauthorizedExceptionResponse = function (parsedOutp
|
|
|
5467
5416
|
});
|
|
5468
5417
|
}); };
|
|
5469
5418
|
var serializeAws_restJson1AdditionalAuthenticationProvider = function (input, context) {
|
|
5470
|
-
return __assign(__assign(__assign(__assign({}, (input.authenticationType
|
|
5471
|
-
input.authenticationType !== null && { authenticationType: input.authenticationType })), (input.lambdaAuthorizerConfig !== undefined &&
|
|
5472
|
-
input.lambdaAuthorizerConfig !== null && {
|
|
5419
|
+
return __assign(__assign(__assign(__assign({}, (input.authenticationType != null && { authenticationType: input.authenticationType })), (input.lambdaAuthorizerConfig != null && {
|
|
5473
5420
|
lambdaAuthorizerConfig: serializeAws_restJson1LambdaAuthorizerConfig(input.lambdaAuthorizerConfig, context),
|
|
5474
|
-
})), (input.openIDConnectConfig
|
|
5475
|
-
input.openIDConnectConfig !== null && {
|
|
5421
|
+
})), (input.openIDConnectConfig != null && {
|
|
5476
5422
|
openIDConnectConfig: serializeAws_restJson1OpenIDConnectConfig(input.openIDConnectConfig, context),
|
|
5477
|
-
})), (input.userPoolConfig
|
|
5478
|
-
input.userPoolConfig !== null && {
|
|
5423
|
+
})), (input.userPoolConfig != null && {
|
|
5479
5424
|
userPoolConfig: serializeAws_restJson1CognitoUserPoolConfig(input.userPoolConfig, context),
|
|
5480
5425
|
}));
|
|
5481
5426
|
};
|
|
@@ -5490,17 +5435,15 @@ var serializeAws_restJson1AdditionalAuthenticationProviders = function (input, c
|
|
|
5490
5435
|
});
|
|
5491
5436
|
};
|
|
5492
5437
|
var serializeAws_restJson1AuthorizationConfig = function (input, context) {
|
|
5493
|
-
return __assign(__assign({}, (input.authorizationType
|
|
5494
|
-
|
|
5495
|
-
|
|
5438
|
+
return __assign(__assign({}, (input.authorizationType != null && { authorizationType: input.authorizationType })), (input.awsIamConfig != null && {
|
|
5439
|
+
awsIamConfig: serializeAws_restJson1AwsIamConfig(input.awsIamConfig, context),
|
|
5440
|
+
}));
|
|
5496
5441
|
};
|
|
5497
5442
|
var serializeAws_restJson1AwsIamConfig = function (input, context) {
|
|
5498
|
-
return __assign(__assign({}, (input.signingRegion
|
|
5499
|
-
input.signingServiceName !== null && { signingServiceName: input.signingServiceName }));
|
|
5443
|
+
return __assign(__assign({}, (input.signingRegion != null && { signingRegion: input.signingRegion })), (input.signingServiceName != null && { signingServiceName: input.signingServiceName }));
|
|
5500
5444
|
};
|
|
5501
5445
|
var serializeAws_restJson1CachingConfig = function (input, context) {
|
|
5502
|
-
return __assign(__assign({}, (input.cachingKeys
|
|
5503
|
-
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 }));
|
|
5504
5447
|
};
|
|
5505
5448
|
var serializeAws_restJson1CachingKeys = function (input, context) {
|
|
5506
5449
|
return input
|
|
@@ -5513,23 +5456,18 @@ var serializeAws_restJson1CachingKeys = function (input, context) {
|
|
|
5513
5456
|
});
|
|
5514
5457
|
};
|
|
5515
5458
|
var serializeAws_restJson1CognitoUserPoolConfig = function (input, context) {
|
|
5516
|
-
return __assign(__assign(__assign({}, (input.appIdClientRegex
|
|
5517
|
-
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 }));
|
|
5518
5460
|
};
|
|
5519
5461
|
var serializeAws_restJson1DeltaSyncConfig = function (input, context) {
|
|
5520
|
-
return __assign(__assign(__assign({}, (input.baseTableTTL
|
|
5521
|
-
input.deltaSyncTableName !== null && { deltaSyncTableName: input.deltaSyncTableName })), (input.deltaSyncTableTTL !== undefined &&
|
|
5522
|
-
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 }));
|
|
5523
5463
|
};
|
|
5524
5464
|
var serializeAws_restJson1DynamodbDataSourceConfig = function (input, context) {
|
|
5525
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.awsRegion
|
|
5526
|
-
input.deltaSyncConfig !== null && {
|
|
5465
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.awsRegion != null && { awsRegion: input.awsRegion })), (input.deltaSyncConfig != null && {
|
|
5527
5466
|
deltaSyncConfig: serializeAws_restJson1DeltaSyncConfig(input.deltaSyncConfig, context),
|
|
5528
|
-
})), (input.tableName
|
|
5529
|
-
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 }));
|
|
5530
5468
|
};
|
|
5531
5469
|
var serializeAws_restJson1ElasticsearchDataSourceConfig = function (input, context) {
|
|
5532
|
-
return __assign(__assign({}, (input.awsRegion
|
|
5470
|
+
return __assign(__assign({}, (input.awsRegion != null && { awsRegion: input.awsRegion })), (input.endpoint != null && { endpoint: input.endpoint }));
|
|
5533
5471
|
};
|
|
5534
5472
|
var serializeAws_restJson1FunctionsIds = function (input, context) {
|
|
5535
5473
|
return input
|
|
@@ -5542,62 +5480,47 @@ var serializeAws_restJson1FunctionsIds = function (input, context) {
|
|
|
5542
5480
|
});
|
|
5543
5481
|
};
|
|
5544
5482
|
var serializeAws_restJson1HttpDataSourceConfig = function (input, context) {
|
|
5545
|
-
return __assign(__assign({}, (input.authorizationConfig
|
|
5546
|
-
input.authorizationConfig !== null && {
|
|
5483
|
+
return __assign(__assign({}, (input.authorizationConfig != null && {
|
|
5547
5484
|
authorizationConfig: serializeAws_restJson1AuthorizationConfig(input.authorizationConfig, context),
|
|
5548
|
-
})), (input.endpoint
|
|
5485
|
+
})), (input.endpoint != null && { endpoint: input.endpoint }));
|
|
5549
5486
|
};
|
|
5550
5487
|
var serializeAws_restJson1LambdaAuthorizerConfig = function (input, context) {
|
|
5551
|
-
return __assign(__assign(__assign({}, (input.authorizerResultTtlInSeconds
|
|
5552
|
-
input.authorizerResultTtlInSeconds !== null && {
|
|
5488
|
+
return __assign(__assign(__assign({}, (input.authorizerResultTtlInSeconds != null && {
|
|
5553
5489
|
authorizerResultTtlInSeconds: input.authorizerResultTtlInSeconds,
|
|
5554
|
-
})), (input.authorizerUri
|
|
5555
|
-
input.identityValidationExpression !== null && {
|
|
5490
|
+
})), (input.authorizerUri != null && { authorizerUri: input.authorizerUri })), (input.identityValidationExpression != null && {
|
|
5556
5491
|
identityValidationExpression: input.identityValidationExpression,
|
|
5557
5492
|
}));
|
|
5558
5493
|
};
|
|
5559
5494
|
var serializeAws_restJson1LambdaConflictHandlerConfig = function (input, context) {
|
|
5560
|
-
return __assign({}, (input.lambdaConflictHandlerArn
|
|
5561
|
-
input.lambdaConflictHandlerArn !== null && { lambdaConflictHandlerArn: input.lambdaConflictHandlerArn }));
|
|
5495
|
+
return __assign({}, (input.lambdaConflictHandlerArn != null && { lambdaConflictHandlerArn: input.lambdaConflictHandlerArn }));
|
|
5562
5496
|
};
|
|
5563
5497
|
var serializeAws_restJson1LambdaDataSourceConfig = function (input, context) {
|
|
5564
|
-
return __assign({}, (input.lambdaFunctionArn
|
|
5565
|
-
input.lambdaFunctionArn !== null && { lambdaFunctionArn: input.lambdaFunctionArn }));
|
|
5498
|
+
return __assign({}, (input.lambdaFunctionArn != null && { lambdaFunctionArn: input.lambdaFunctionArn }));
|
|
5566
5499
|
};
|
|
5567
5500
|
var serializeAws_restJson1LogConfig = function (input, context) {
|
|
5568
|
-
return __assign(__assign(__assign({}, (input.cloudWatchLogsRoleArn
|
|
5569
|
-
input.cloudWatchLogsRoleArn !== null && { cloudWatchLogsRoleArn: input.cloudWatchLogsRoleArn })), (input.excludeVerboseContent !== undefined &&
|
|
5570
|
-
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 }));
|
|
5571
5502
|
};
|
|
5572
5503
|
var serializeAws_restJson1OpenIDConnectConfig = function (input, context) {
|
|
5573
|
-
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 }));
|
|
5574
5505
|
};
|
|
5575
5506
|
var serializeAws_restJson1OpenSearchServiceDataSourceConfig = function (input, context) {
|
|
5576
|
-
return __assign(__assign({}, (input.awsRegion
|
|
5507
|
+
return __assign(__assign({}, (input.awsRegion != null && { awsRegion: input.awsRegion })), (input.endpoint != null && { endpoint: input.endpoint }));
|
|
5577
5508
|
};
|
|
5578
5509
|
var serializeAws_restJson1PipelineConfig = function (input, context) {
|
|
5579
|
-
return __assign({}, (input.functions
|
|
5580
|
-
input.functions !== null && { functions: serializeAws_restJson1FunctionsIds(input.functions, context) }));
|
|
5510
|
+
return __assign({}, (input.functions != null && { functions: serializeAws_restJson1FunctionsIds(input.functions, context) }));
|
|
5581
5511
|
};
|
|
5582
5512
|
var serializeAws_restJson1RdsHttpEndpointConfig = function (input, context) {
|
|
5583
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.awsRegion
|
|
5584
|
-
input.awsSecretStoreArn !== null && { awsSecretStoreArn: input.awsSecretStoreArn })), (input.databaseName !== undefined && input.databaseName !== null && { databaseName: input.databaseName })), (input.dbClusterIdentifier !== undefined &&
|
|
5585
|
-
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 }));
|
|
5586
5514
|
};
|
|
5587
5515
|
var serializeAws_restJson1RelationalDatabaseDataSourceConfig = function (input, context) {
|
|
5588
|
-
return __assign(__assign({}, (input.rdsHttpEndpointConfig
|
|
5589
|
-
input.rdsHttpEndpointConfig !== null && {
|
|
5516
|
+
return __assign(__assign({}, (input.rdsHttpEndpointConfig != null && {
|
|
5590
5517
|
rdsHttpEndpointConfig: serializeAws_restJson1RdsHttpEndpointConfig(input.rdsHttpEndpointConfig, context),
|
|
5591
|
-
})), (input.relationalDatabaseSourceType
|
|
5592
|
-
input.relationalDatabaseSourceType !== null && {
|
|
5518
|
+
})), (input.relationalDatabaseSourceType != null && {
|
|
5593
5519
|
relationalDatabaseSourceType: input.relationalDatabaseSourceType,
|
|
5594
5520
|
}));
|
|
5595
5521
|
};
|
|
5596
5522
|
var serializeAws_restJson1SyncConfig = function (input, context) {
|
|
5597
|
-
return __assign(__assign(__assign({}, (input.conflictDetection
|
|
5598
|
-
input.conflictDetection !== null && { conflictDetection: input.conflictDetection })), (input.conflictHandler !== undefined &&
|
|
5599
|
-
input.conflictHandler !== null && { conflictHandler: input.conflictHandler })), (input.lambdaConflictHandlerConfig !== undefined &&
|
|
5600
|
-
input.lambdaConflictHandlerConfig !== null && {
|
|
5523
|
+
return __assign(__assign(__assign({}, (input.conflictDetection != null && { conflictDetection: input.conflictDetection })), (input.conflictHandler != null && { conflictHandler: input.conflictHandler })), (input.lambdaConflictHandlerConfig != null && {
|
|
5601
5524
|
lambdaConflictHandlerConfig: serializeAws_restJson1LambdaConflictHandlerConfig(input.lambdaConflictHandlerConfig, context),
|
|
5602
5525
|
}));
|
|
5603
5526
|
};
|
|
@@ -5612,19 +5535,18 @@ var serializeAws_restJson1TagMap = function (input, context) {
|
|
|
5612
5535
|
}, {});
|
|
5613
5536
|
};
|
|
5614
5537
|
var serializeAws_restJson1UserPoolConfig = function (input, context) {
|
|
5615
|
-
return __assign(__assign(__assign(__assign({}, (input.appIdClientRegex
|
|
5616
|
-
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 }));
|
|
5617
5539
|
};
|
|
5618
5540
|
var deserializeAws_restJson1AdditionalAuthenticationProvider = function (output, context) {
|
|
5619
5541
|
return {
|
|
5620
5542
|
authenticationType: __expectString(output.authenticationType),
|
|
5621
|
-
lambdaAuthorizerConfig: output.lambdaAuthorizerConfig
|
|
5543
|
+
lambdaAuthorizerConfig: output.lambdaAuthorizerConfig != null
|
|
5622
5544
|
? deserializeAws_restJson1LambdaAuthorizerConfig(output.lambdaAuthorizerConfig, context)
|
|
5623
5545
|
: undefined,
|
|
5624
|
-
openIDConnectConfig: output.openIDConnectConfig
|
|
5546
|
+
openIDConnectConfig: output.openIDConnectConfig != null
|
|
5625
5547
|
? deserializeAws_restJson1OpenIDConnectConfig(output.openIDConnectConfig, context)
|
|
5626
5548
|
: undefined,
|
|
5627
|
-
userPoolConfig: output.userPoolConfig
|
|
5549
|
+
userPoolConfig: output.userPoolConfig != null
|
|
5628
5550
|
? deserializeAws_restJson1CognitoUserPoolConfig(output.userPoolConfig, context)
|
|
5629
5551
|
: undefined,
|
|
5630
5552
|
};
|
|
@@ -5680,9 +5602,7 @@ var deserializeAws_restJson1ApiKeys = function (output, context) {
|
|
|
5680
5602
|
var deserializeAws_restJson1AuthorizationConfig = function (output, context) {
|
|
5681
5603
|
return {
|
|
5682
5604
|
authorizationType: __expectString(output.authorizationType),
|
|
5683
|
-
awsIamConfig: output.awsIamConfig
|
|
5684
|
-
? deserializeAws_restJson1AwsIamConfig(output.awsIamConfig, context)
|
|
5685
|
-
: undefined,
|
|
5605
|
+
awsIamConfig: output.awsIamConfig != null ? deserializeAws_restJson1AwsIamConfig(output.awsIamConfig, context) : undefined,
|
|
5686
5606
|
};
|
|
5687
5607
|
};
|
|
5688
5608
|
var deserializeAws_restJson1AwsIamConfig = function (output, context) {
|
|
@@ -5693,9 +5613,7 @@ var deserializeAws_restJson1AwsIamConfig = function (output, context) {
|
|
|
5693
5613
|
};
|
|
5694
5614
|
var deserializeAws_restJson1CachingConfig = function (output, context) {
|
|
5695
5615
|
return {
|
|
5696
|
-
cachingKeys: output.cachingKeys
|
|
5697
|
-
? deserializeAws_restJson1CachingKeys(output.cachingKeys, context)
|
|
5698
|
-
: undefined,
|
|
5616
|
+
cachingKeys: output.cachingKeys != null ? deserializeAws_restJson1CachingKeys(output.cachingKeys, context) : undefined,
|
|
5699
5617
|
ttl: __expectLong(output.ttl),
|
|
5700
5618
|
};
|
|
5701
5619
|
};
|
|
@@ -5721,23 +5639,21 @@ var deserializeAws_restJson1DataSource = function (output, context) {
|
|
|
5721
5639
|
return {
|
|
5722
5640
|
dataSourceArn: __expectString(output.dataSourceArn),
|
|
5723
5641
|
description: __expectString(output.description),
|
|
5724
|
-
dynamodbConfig: output.dynamodbConfig
|
|
5642
|
+
dynamodbConfig: output.dynamodbConfig != null
|
|
5725
5643
|
? deserializeAws_restJson1DynamodbDataSourceConfig(output.dynamodbConfig, context)
|
|
5726
5644
|
: undefined,
|
|
5727
|
-
elasticsearchConfig: output.elasticsearchConfig
|
|
5645
|
+
elasticsearchConfig: output.elasticsearchConfig != null
|
|
5728
5646
|
? deserializeAws_restJson1ElasticsearchDataSourceConfig(output.elasticsearchConfig, context)
|
|
5729
5647
|
: undefined,
|
|
5730
|
-
httpConfig: output.httpConfig
|
|
5731
|
-
|
|
5732
|
-
: undefined,
|
|
5733
|
-
lambdaConfig: output.lambdaConfig !== undefined && output.lambdaConfig !== null
|
|
5648
|
+
httpConfig: output.httpConfig != null ? deserializeAws_restJson1HttpDataSourceConfig(output.httpConfig, context) : undefined,
|
|
5649
|
+
lambdaConfig: output.lambdaConfig != null
|
|
5734
5650
|
? deserializeAws_restJson1LambdaDataSourceConfig(output.lambdaConfig, context)
|
|
5735
5651
|
: undefined,
|
|
5736
5652
|
name: __expectString(output.name),
|
|
5737
|
-
openSearchServiceConfig: output.openSearchServiceConfig
|
|
5653
|
+
openSearchServiceConfig: output.openSearchServiceConfig != null
|
|
5738
5654
|
? deserializeAws_restJson1OpenSearchServiceDataSourceConfig(output.openSearchServiceConfig, context)
|
|
5739
5655
|
: undefined,
|
|
5740
|
-
relationalDatabaseConfig: output.relationalDatabaseConfig
|
|
5656
|
+
relationalDatabaseConfig: output.relationalDatabaseConfig != null
|
|
5741
5657
|
? deserializeAws_restJson1RelationalDatabaseDataSourceConfig(output.relationalDatabaseConfig, context)
|
|
5742
5658
|
: undefined,
|
|
5743
5659
|
serviceRoleArn: __expectString(output.serviceRoleArn),
|
|
@@ -5785,7 +5701,7 @@ var deserializeAws_restJson1DomainNameConfigs = function (output, context) {
|
|
|
5785
5701
|
var deserializeAws_restJson1DynamodbDataSourceConfig = function (output, context) {
|
|
5786
5702
|
return {
|
|
5787
5703
|
awsRegion: __expectString(output.awsRegion),
|
|
5788
|
-
deltaSyncConfig: output.deltaSyncConfig
|
|
5704
|
+
deltaSyncConfig: output.deltaSyncConfig != null
|
|
5789
5705
|
? deserializeAws_restJson1DeltaSyncConfig(output.deltaSyncConfig, context)
|
|
5790
5706
|
: undefined,
|
|
5791
5707
|
tableName: __expectString(output.tableName),
|
|
@@ -5810,9 +5726,7 @@ var deserializeAws_restJson1FunctionConfiguration = function (output, context) {
|
|
|
5810
5726
|
name: __expectString(output.name),
|
|
5811
5727
|
requestMappingTemplate: __expectString(output.requestMappingTemplate),
|
|
5812
5728
|
responseMappingTemplate: __expectString(output.responseMappingTemplate),
|
|
5813
|
-
syncConfig: output.syncConfig
|
|
5814
|
-
? deserializeAws_restJson1SyncConfig(output.syncConfig, context)
|
|
5815
|
-
: undefined,
|
|
5729
|
+
syncConfig: output.syncConfig != null ? deserializeAws_restJson1SyncConfig(output.syncConfig, context) : undefined,
|
|
5816
5730
|
};
|
|
5817
5731
|
};
|
|
5818
5732
|
var deserializeAws_restJson1Functions = function (output, context) {
|
|
@@ -5839,29 +5753,23 @@ var deserializeAws_restJson1FunctionsIds = function (output, context) {
|
|
|
5839
5753
|
};
|
|
5840
5754
|
var deserializeAws_restJson1GraphqlApi = function (output, context) {
|
|
5841
5755
|
return {
|
|
5842
|
-
additionalAuthenticationProviders: output.additionalAuthenticationProviders
|
|
5756
|
+
additionalAuthenticationProviders: output.additionalAuthenticationProviders != null
|
|
5843
5757
|
? deserializeAws_restJson1AdditionalAuthenticationProviders(output.additionalAuthenticationProviders, context)
|
|
5844
5758
|
: undefined,
|
|
5845
5759
|
apiId: __expectString(output.apiId),
|
|
5846
5760
|
arn: __expectString(output.arn),
|
|
5847
5761
|
authenticationType: __expectString(output.authenticationType),
|
|
5848
|
-
lambdaAuthorizerConfig: output.lambdaAuthorizerConfig
|
|
5762
|
+
lambdaAuthorizerConfig: output.lambdaAuthorizerConfig != null
|
|
5849
5763
|
? deserializeAws_restJson1LambdaAuthorizerConfig(output.lambdaAuthorizerConfig, context)
|
|
5850
5764
|
: undefined,
|
|
5851
|
-
logConfig: output.logConfig
|
|
5852
|
-
? deserializeAws_restJson1LogConfig(output.logConfig, context)
|
|
5853
|
-
: undefined,
|
|
5765
|
+
logConfig: output.logConfig != null ? deserializeAws_restJson1LogConfig(output.logConfig, context) : undefined,
|
|
5854
5766
|
name: __expectString(output.name),
|
|
5855
|
-
openIDConnectConfig: output.openIDConnectConfig
|
|
5767
|
+
openIDConnectConfig: output.openIDConnectConfig != null
|
|
5856
5768
|
? deserializeAws_restJson1OpenIDConnectConfig(output.openIDConnectConfig, context)
|
|
5857
5769
|
: undefined,
|
|
5858
|
-
tags: output.tags
|
|
5859
|
-
|
|
5860
|
-
|
|
5861
|
-
uris: output.uris !== undefined && output.uris !== null
|
|
5862
|
-
? deserializeAws_restJson1MapOfStringToString(output.uris, context)
|
|
5863
|
-
: undefined,
|
|
5864
|
-
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
|
|
5865
5773
|
? deserializeAws_restJson1UserPoolConfig(output.userPoolConfig, context)
|
|
5866
5774
|
: undefined,
|
|
5867
5775
|
wafWebAclArn: __expectString(output.wafWebAclArn),
|
|
@@ -5881,7 +5789,7 @@ var deserializeAws_restJson1GraphqlApis = function (output, context) {
|
|
|
5881
5789
|
};
|
|
5882
5790
|
var deserializeAws_restJson1HttpDataSourceConfig = function (output, context) {
|
|
5883
5791
|
return {
|
|
5884
|
-
authorizationConfig: output.authorizationConfig
|
|
5792
|
+
authorizationConfig: output.authorizationConfig != null
|
|
5885
5793
|
? deserializeAws_restJson1AuthorizationConfig(output.authorizationConfig, context)
|
|
5886
5794
|
: undefined,
|
|
5887
5795
|
endpoint: __expectString(output.endpoint),
|
|
@@ -5937,9 +5845,7 @@ var deserializeAws_restJson1OpenSearchServiceDataSourceConfig = function (output
|
|
|
5937
5845
|
};
|
|
5938
5846
|
var deserializeAws_restJson1PipelineConfig = function (output, context) {
|
|
5939
5847
|
return {
|
|
5940
|
-
functions: output.functions
|
|
5941
|
-
? deserializeAws_restJson1FunctionsIds(output.functions, context)
|
|
5942
|
-
: undefined,
|
|
5848
|
+
functions: output.functions != null ? deserializeAws_restJson1FunctionsIds(output.functions, context) : undefined,
|
|
5943
5849
|
};
|
|
5944
5850
|
};
|
|
5945
5851
|
var deserializeAws_restJson1RdsHttpEndpointConfig = function (output, context) {
|
|
@@ -5953,7 +5859,7 @@ var deserializeAws_restJson1RdsHttpEndpointConfig = function (output, context) {
|
|
|
5953
5859
|
};
|
|
5954
5860
|
var deserializeAws_restJson1RelationalDatabaseDataSourceConfig = function (output, context) {
|
|
5955
5861
|
return {
|
|
5956
|
-
rdsHttpEndpointConfig: output.rdsHttpEndpointConfig
|
|
5862
|
+
rdsHttpEndpointConfig: output.rdsHttpEndpointConfig != null
|
|
5957
5863
|
? deserializeAws_restJson1RdsHttpEndpointConfig(output.rdsHttpEndpointConfig, context)
|
|
5958
5864
|
: undefined,
|
|
5959
5865
|
relationalDatabaseSourceType: __expectString(output.relationalDatabaseSourceType),
|
|
@@ -5961,22 +5867,18 @@ var deserializeAws_restJson1RelationalDatabaseDataSourceConfig = function (outpu
|
|
|
5961
5867
|
};
|
|
5962
5868
|
var deserializeAws_restJson1Resolver = function (output, context) {
|
|
5963
5869
|
return {
|
|
5964
|
-
cachingConfig: output.cachingConfig
|
|
5965
|
-
? deserializeAws_restJson1CachingConfig(output.cachingConfig, context)
|
|
5966
|
-
: undefined,
|
|
5870
|
+
cachingConfig: output.cachingConfig != null ? deserializeAws_restJson1CachingConfig(output.cachingConfig, context) : undefined,
|
|
5967
5871
|
dataSourceName: __expectString(output.dataSourceName),
|
|
5968
5872
|
fieldName: __expectString(output.fieldName),
|
|
5969
5873
|
kind: __expectString(output.kind),
|
|
5970
5874
|
maxBatchSize: __expectInt32(output.maxBatchSize),
|
|
5971
|
-
pipelineConfig: output.pipelineConfig
|
|
5875
|
+
pipelineConfig: output.pipelineConfig != null
|
|
5972
5876
|
? deserializeAws_restJson1PipelineConfig(output.pipelineConfig, context)
|
|
5973
5877
|
: undefined,
|
|
5974
5878
|
requestMappingTemplate: __expectString(output.requestMappingTemplate),
|
|
5975
5879
|
resolverArn: __expectString(output.resolverArn),
|
|
5976
5880
|
responseMappingTemplate: __expectString(output.responseMappingTemplate),
|
|
5977
|
-
syncConfig: output.syncConfig
|
|
5978
|
-
? deserializeAws_restJson1SyncConfig(output.syncConfig, context)
|
|
5979
|
-
: undefined,
|
|
5881
|
+
syncConfig: output.syncConfig != null ? deserializeAws_restJson1SyncConfig(output.syncConfig, context) : undefined,
|
|
5980
5882
|
typeName: __expectString(output.typeName),
|
|
5981
5883
|
};
|
|
5982
5884
|
};
|
|
@@ -5995,7 +5897,7 @@ var deserializeAws_restJson1SyncConfig = function (output, context) {
|
|
|
5995
5897
|
return {
|
|
5996
5898
|
conflictDetection: __expectString(output.conflictDetection),
|
|
5997
5899
|
conflictHandler: __expectString(output.conflictHandler),
|
|
5998
|
-
lambdaConflictHandlerConfig: output.lambdaConflictHandlerConfig
|
|
5900
|
+
lambdaConflictHandlerConfig: output.lambdaConflictHandlerConfig != null
|
|
5999
5901
|
? deserializeAws_restJson1LambdaConflictHandlerConfig(output.lambdaConflictHandlerConfig, context)
|
|
6000
5902
|
: undefined,
|
|
6001
5903
|
};
|