@aws-sdk/client-apigatewayv2 3.121.0 → 3.127.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 +8 -0
- package/dist-cjs/protocols/Aws_restJson1.js +244 -405
- package/dist-es/protocols/Aws_restJson1.js +134 -295
- package/package.json +26 -26
|
@@ -14,15 +14,9 @@ export var serializeAws_restJson1CreateApiCommand = function (input, context) {
|
|
|
14
14
|
"content-type": "application/json",
|
|
15
15
|
};
|
|
16
16
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/apis";
|
|
17
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ApiKeySelectionExpression
|
|
18
|
-
input.ApiKeySelectionExpression !== null && { apiKeySelectionExpression: input.ApiKeySelectionExpression })), (input.CorsConfiguration !== undefined &&
|
|
19
|
-
input.CorsConfiguration !== null && {
|
|
17
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ApiKeySelectionExpression != null && { apiKeySelectionExpression: input.ApiKeySelectionExpression })), (input.CorsConfiguration != null && {
|
|
20
18
|
corsConfiguration: serializeAws_restJson1Cors(input.CorsConfiguration, context),
|
|
21
|
-
})), (input.CredentialsArn
|
|
22
|
-
input.CredentialsArn !== null && { credentialsArn: input.CredentialsArn })), (input.Description !== undefined && input.Description !== null && { description: input.Description })), (input.DisableExecuteApiEndpoint !== undefined &&
|
|
23
|
-
input.DisableExecuteApiEndpoint !== null && { disableExecuteApiEndpoint: input.DisableExecuteApiEndpoint })), (input.DisableSchemaValidation !== undefined &&
|
|
24
|
-
input.DisableSchemaValidation !== null && { disableSchemaValidation: input.DisableSchemaValidation })), (input.Name !== undefined && input.Name !== null && { name: input.Name })), (input.ProtocolType !== undefined && input.ProtocolType !== null && { protocolType: input.ProtocolType })), (input.RouteKey !== undefined && input.RouteKey !== null && { routeKey: input.RouteKey })), (input.RouteSelectionExpression !== undefined &&
|
|
25
|
-
input.RouteSelectionExpression !== null && { routeSelectionExpression: input.RouteSelectionExpression })), (input.Tags !== undefined && input.Tags !== null && { tags: serializeAws_restJson1Tags(input.Tags, context) })), (input.Target !== undefined && input.Target !== null && { target: input.Target })), (input.Version !== undefined && input.Version !== null && { version: input.Version })));
|
|
19
|
+
})), (input.CredentialsArn != null && { credentialsArn: input.CredentialsArn })), (input.Description != null && { description: input.Description })), (input.DisableExecuteApiEndpoint != null && { disableExecuteApiEndpoint: input.DisableExecuteApiEndpoint })), (input.DisableSchemaValidation != null && { disableSchemaValidation: input.DisableSchemaValidation })), (input.Name != null && { name: input.Name })), (input.ProtocolType != null && { protocolType: input.ProtocolType })), (input.RouteKey != null && { routeKey: input.RouteKey })), (input.RouteSelectionExpression != null && { routeSelectionExpression: input.RouteSelectionExpression })), (input.Tags != null && { tags: serializeAws_restJson1Tags(input.Tags, context) })), (input.Target != null && { target: input.Target })), (input.Version != null && { version: input.Version })));
|
|
26
20
|
return [2, new __HttpRequest({
|
|
27
21
|
protocol: protocol,
|
|
28
22
|
hostname: hostname,
|
|
@@ -56,7 +50,7 @@ export var serializeAws_restJson1CreateApiMappingCommand = function (input, cont
|
|
|
56
50
|
else {
|
|
57
51
|
throw new Error("No value provided for input HTTP label: DomainName.");
|
|
58
52
|
}
|
|
59
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.ApiId
|
|
53
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.ApiId != null && { apiId: input.ApiId })), (input.ApiMappingKey != null && { apiMappingKey: input.ApiMappingKey })), (input.Stage != null && { stage: input.Stage })));
|
|
60
54
|
return [2, new __HttpRequest({
|
|
61
55
|
protocol: protocol,
|
|
62
56
|
hostname: hostname,
|
|
@@ -90,25 +84,17 @@ export var serializeAws_restJson1CreateAuthorizerCommand = function (input, cont
|
|
|
90
84
|
else {
|
|
91
85
|
throw new Error("No value provided for input HTTP label: ApiId.");
|
|
92
86
|
}
|
|
93
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AuthorizerCredentialsArn
|
|
94
|
-
input.AuthorizerCredentialsArn !== null && { authorizerCredentialsArn: input.AuthorizerCredentialsArn })), (input.AuthorizerPayloadFormatVersion !== undefined &&
|
|
95
|
-
input.AuthorizerPayloadFormatVersion !== null && {
|
|
87
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AuthorizerCredentialsArn != null && { authorizerCredentialsArn: input.AuthorizerCredentialsArn })), (input.AuthorizerPayloadFormatVersion != null && {
|
|
96
88
|
authorizerPayloadFormatVersion: input.AuthorizerPayloadFormatVersion,
|
|
97
|
-
})), (input.AuthorizerResultTtlInSeconds
|
|
98
|
-
input.AuthorizerResultTtlInSeconds !== null && {
|
|
89
|
+
})), (input.AuthorizerResultTtlInSeconds != null && {
|
|
99
90
|
authorizerResultTtlInSeconds: input.AuthorizerResultTtlInSeconds,
|
|
100
|
-
})), (input.AuthorizerType
|
|
101
|
-
input.AuthorizerType !== null && { authorizerType: input.AuthorizerType })), (input.AuthorizerUri !== undefined && input.AuthorizerUri !== null && { authorizerUri: input.AuthorizerUri })), (input.EnableSimpleResponses !== undefined &&
|
|
102
|
-
input.EnableSimpleResponses !== null && { enableSimpleResponses: input.EnableSimpleResponses })), (input.IdentitySource !== undefined &&
|
|
103
|
-
input.IdentitySource !== null && {
|
|
91
|
+
})), (input.AuthorizerType != null && { authorizerType: input.AuthorizerType })), (input.AuthorizerUri != null && { authorizerUri: input.AuthorizerUri })), (input.EnableSimpleResponses != null && { enableSimpleResponses: input.EnableSimpleResponses })), (input.IdentitySource != null && {
|
|
104
92
|
identitySource: serializeAws_restJson1IdentitySourceList(input.IdentitySource, context),
|
|
105
|
-
})), (input.IdentityValidationExpression
|
|
106
|
-
input.IdentityValidationExpression !== null && {
|
|
93
|
+
})), (input.IdentityValidationExpression != null && {
|
|
107
94
|
identityValidationExpression: input.IdentityValidationExpression,
|
|
108
|
-
})), (input.JwtConfiguration
|
|
109
|
-
input.JwtConfiguration !== null && {
|
|
95
|
+
})), (input.JwtConfiguration != null && {
|
|
110
96
|
jwtConfiguration: serializeAws_restJson1JWTConfiguration(input.JwtConfiguration, context),
|
|
111
|
-
})), (input.Name
|
|
97
|
+
})), (input.Name != null && { name: input.Name })));
|
|
112
98
|
return [2, new __HttpRequest({
|
|
113
99
|
protocol: protocol,
|
|
114
100
|
hostname: hostname,
|
|
@@ -142,7 +128,7 @@ export var serializeAws_restJson1CreateDeploymentCommand = function (input, cont
|
|
|
142
128
|
else {
|
|
143
129
|
throw new Error("No value provided for input HTTP label: ApiId.");
|
|
144
130
|
}
|
|
145
|
-
body = JSON.stringify(__assign(__assign({}, (input.Description
|
|
131
|
+
body = JSON.stringify(__assign(__assign({}, (input.Description != null && { description: input.Description })), (input.StageName != null && { stageName: input.StageName })));
|
|
146
132
|
return [2, new __HttpRequest({
|
|
147
133
|
protocol: protocol,
|
|
148
134
|
hostname: hostname,
|
|
@@ -166,13 +152,11 @@ export var serializeAws_restJson1CreateDomainNameCommand = function (input, cont
|
|
|
166
152
|
"content-type": "application/json",
|
|
167
153
|
};
|
|
168
154
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/domainnames";
|
|
169
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.DomainName
|
|
170
|
-
input.DomainNameConfigurations !== null && {
|
|
155
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.DomainName != null && { domainName: input.DomainName })), (input.DomainNameConfigurations != null && {
|
|
171
156
|
domainNameConfigurations: serializeAws_restJson1DomainNameConfigurations(input.DomainNameConfigurations, context),
|
|
172
|
-
})), (input.MutualTlsAuthentication
|
|
173
|
-
input.MutualTlsAuthentication !== null && {
|
|
157
|
+
})), (input.MutualTlsAuthentication != null && {
|
|
174
158
|
mutualTlsAuthentication: serializeAws_restJson1MutualTlsAuthenticationInput(input.MutualTlsAuthentication, context),
|
|
175
|
-
})), (input.Tags
|
|
159
|
+
})), (input.Tags != null && { tags: serializeAws_restJson1Tags(input.Tags, context) })));
|
|
176
160
|
return [2, new __HttpRequest({
|
|
177
161
|
protocol: protocol,
|
|
178
162
|
hostname: hostname,
|
|
@@ -206,28 +190,15 @@ export var serializeAws_restJson1CreateIntegrationCommand = function (input, con
|
|
|
206
190
|
else {
|
|
207
191
|
throw new Error("No value provided for input HTTP label: ApiId.");
|
|
208
192
|
}
|
|
209
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ConnectionId
|
|
210
|
-
input.ConnectionType !== null && { connectionType: input.ConnectionType })), (input.ContentHandlingStrategy !== undefined &&
|
|
211
|
-
input.ContentHandlingStrategy !== null && { contentHandlingStrategy: input.ContentHandlingStrategy })), (input.CredentialsArn !== undefined &&
|
|
212
|
-
input.CredentialsArn !== null && { credentialsArn: input.CredentialsArn })), (input.Description !== undefined && input.Description !== null && { description: input.Description })), (input.IntegrationMethod !== undefined &&
|
|
213
|
-
input.IntegrationMethod !== null && { integrationMethod: input.IntegrationMethod })), (input.IntegrationSubtype !== undefined &&
|
|
214
|
-
input.IntegrationSubtype !== null && { integrationSubtype: input.IntegrationSubtype })), (input.IntegrationType !== undefined &&
|
|
215
|
-
input.IntegrationType !== null && { integrationType: input.IntegrationType })), (input.IntegrationUri !== undefined &&
|
|
216
|
-
input.IntegrationUri !== null && { integrationUri: input.IntegrationUri })), (input.PassthroughBehavior !== undefined &&
|
|
217
|
-
input.PassthroughBehavior !== null && { passthroughBehavior: input.PassthroughBehavior })), (input.PayloadFormatVersion !== undefined &&
|
|
218
|
-
input.PayloadFormatVersion !== null && { payloadFormatVersion: input.PayloadFormatVersion })), (input.RequestParameters !== undefined &&
|
|
219
|
-
input.RequestParameters !== null && {
|
|
193
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ConnectionId != null && { connectionId: input.ConnectionId })), (input.ConnectionType != null && { connectionType: input.ConnectionType })), (input.ContentHandlingStrategy != null && { contentHandlingStrategy: input.ContentHandlingStrategy })), (input.CredentialsArn != null && { credentialsArn: input.CredentialsArn })), (input.Description != null && { description: input.Description })), (input.IntegrationMethod != null && { integrationMethod: input.IntegrationMethod })), (input.IntegrationSubtype != null && { integrationSubtype: input.IntegrationSubtype })), (input.IntegrationType != null && { integrationType: input.IntegrationType })), (input.IntegrationUri != null && { integrationUri: input.IntegrationUri })), (input.PassthroughBehavior != null && { passthroughBehavior: input.PassthroughBehavior })), (input.PayloadFormatVersion != null && { payloadFormatVersion: input.PayloadFormatVersion })), (input.RequestParameters != null && {
|
|
220
194
|
requestParameters: serializeAws_restJson1IntegrationParameters(input.RequestParameters, context),
|
|
221
|
-
})), (input.RequestTemplates
|
|
222
|
-
input.RequestTemplates !== null && {
|
|
195
|
+
})), (input.RequestTemplates != null && {
|
|
223
196
|
requestTemplates: serializeAws_restJson1TemplateMap(input.RequestTemplates, context),
|
|
224
|
-
})), (input.ResponseParameters
|
|
225
|
-
input.ResponseParameters !== null && {
|
|
197
|
+
})), (input.ResponseParameters != null && {
|
|
226
198
|
responseParameters: serializeAws_restJson1ResponseParameters(input.ResponseParameters, context),
|
|
227
|
-
})), (input.TemplateSelectionExpression
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
input.TlsConfig !== null && { tlsConfig: serializeAws_restJson1TlsConfigInput(input.TlsConfig, context) })));
|
|
199
|
+
})), (input.TemplateSelectionExpression != null && {
|
|
200
|
+
templateSelectionExpression: input.TemplateSelectionExpression,
|
|
201
|
+
})), (input.TimeoutInMillis != null && { timeoutInMillis: input.TimeoutInMillis })), (input.TlsConfig != null && { tlsConfig: serializeAws_restJson1TlsConfigInput(input.TlsConfig, context) })));
|
|
231
202
|
return [2, new __HttpRequest({
|
|
232
203
|
protocol: protocol,
|
|
233
204
|
hostname: hostname,
|
|
@@ -272,16 +243,13 @@ export var serializeAws_restJson1CreateIntegrationResponseCommand = function (in
|
|
|
272
243
|
else {
|
|
273
244
|
throw new Error("No value provided for input HTTP label: IntegrationId.");
|
|
274
245
|
}
|
|
275
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.ContentHandlingStrategy
|
|
276
|
-
input.ContentHandlingStrategy !== null && { contentHandlingStrategy: input.ContentHandlingStrategy })), (input.IntegrationResponseKey !== undefined &&
|
|
277
|
-
input.IntegrationResponseKey !== null && { integrationResponseKey: input.IntegrationResponseKey })), (input.ResponseParameters !== undefined &&
|
|
278
|
-
input.ResponseParameters !== null && {
|
|
246
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.ContentHandlingStrategy != null && { contentHandlingStrategy: input.ContentHandlingStrategy })), (input.IntegrationResponseKey != null && { integrationResponseKey: input.IntegrationResponseKey })), (input.ResponseParameters != null && {
|
|
279
247
|
responseParameters: serializeAws_restJson1IntegrationParameters(input.ResponseParameters, context),
|
|
280
|
-
})), (input.ResponseTemplates
|
|
281
|
-
input.ResponseTemplates !== null && {
|
|
248
|
+
})), (input.ResponseTemplates != null && {
|
|
282
249
|
responseTemplates: serializeAws_restJson1TemplateMap(input.ResponseTemplates, context),
|
|
283
|
-
})), (input.TemplateSelectionExpression
|
|
284
|
-
|
|
250
|
+
})), (input.TemplateSelectionExpression != null && {
|
|
251
|
+
templateSelectionExpression: input.TemplateSelectionExpression,
|
|
252
|
+
})));
|
|
285
253
|
return [2, new __HttpRequest({
|
|
286
254
|
protocol: protocol,
|
|
287
255
|
hostname: hostname,
|
|
@@ -315,7 +283,7 @@ export var serializeAws_restJson1CreateModelCommand = function (input, context)
|
|
|
315
283
|
else {
|
|
316
284
|
throw new Error("No value provided for input HTTP label: ApiId.");
|
|
317
285
|
}
|
|
318
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.ContentType
|
|
286
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.ContentType != null && { contentType: input.ContentType })), (input.Description != null && { description: input.Description })), (input.Name != null && { name: input.Name })), (input.Schema != null && { schema: input.Schema })));
|
|
319
287
|
return [2, new __HttpRequest({
|
|
320
288
|
protocol: protocol,
|
|
321
289
|
hostname: hostname,
|
|
@@ -349,22 +317,15 @@ export var serializeAws_restJson1CreateRouteCommand = function (input, context)
|
|
|
349
317
|
else {
|
|
350
318
|
throw new Error("No value provided for input HTTP label: ApiId.");
|
|
351
319
|
}
|
|
352
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ApiKeyRequired
|
|
353
|
-
input.ApiKeyRequired !== null && { apiKeyRequired: input.ApiKeyRequired })), (input.AuthorizationScopes !== undefined &&
|
|
354
|
-
input.AuthorizationScopes !== null && {
|
|
320
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ApiKeyRequired != null && { apiKeyRequired: input.ApiKeyRequired })), (input.AuthorizationScopes != null && {
|
|
355
321
|
authorizationScopes: serializeAws_restJson1AuthorizationScopes(input.AuthorizationScopes, context),
|
|
356
|
-
})), (input.AuthorizationType
|
|
357
|
-
input.AuthorizationType !== null && { authorizationType: input.AuthorizationType })), (input.AuthorizerId !== undefined && input.AuthorizerId !== null && { authorizerId: input.AuthorizerId })), (input.ModelSelectionExpression !== undefined &&
|
|
358
|
-
input.ModelSelectionExpression !== null && { modelSelectionExpression: input.ModelSelectionExpression })), (input.OperationName !== undefined && input.OperationName !== null && { operationName: input.OperationName })), (input.RequestModels !== undefined &&
|
|
359
|
-
input.RequestModels !== null && {
|
|
322
|
+
})), (input.AuthorizationType != null && { authorizationType: input.AuthorizationType })), (input.AuthorizerId != null && { authorizerId: input.AuthorizerId })), (input.ModelSelectionExpression != null && { modelSelectionExpression: input.ModelSelectionExpression })), (input.OperationName != null && { operationName: input.OperationName })), (input.RequestModels != null && {
|
|
360
323
|
requestModels: serializeAws_restJson1RouteModels(input.RequestModels, context),
|
|
361
|
-
})), (input.RequestParameters
|
|
362
|
-
input.RequestParameters !== null && {
|
|
324
|
+
})), (input.RequestParameters != null && {
|
|
363
325
|
requestParameters: serializeAws_restJson1RouteParameters(input.RequestParameters, context),
|
|
364
|
-
})), (input.RouteKey
|
|
365
|
-
input.RouteResponseSelectionExpression !== null && {
|
|
326
|
+
})), (input.RouteKey != null && { routeKey: input.RouteKey })), (input.RouteResponseSelectionExpression != null && {
|
|
366
327
|
routeResponseSelectionExpression: input.RouteResponseSelectionExpression,
|
|
367
|
-
})), (input.Target
|
|
328
|
+
})), (input.Target != null && { target: input.Target })));
|
|
368
329
|
return [2, new __HttpRequest({
|
|
369
330
|
protocol: protocol,
|
|
370
331
|
hostname: hostname,
|
|
@@ -409,15 +370,11 @@ export var serializeAws_restJson1CreateRouteResponseCommand = function (input, c
|
|
|
409
370
|
else {
|
|
410
371
|
throw new Error("No value provided for input HTTP label: RouteId.");
|
|
411
372
|
}
|
|
412
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.ModelSelectionExpression
|
|
413
|
-
input.ModelSelectionExpression !== null && { modelSelectionExpression: input.ModelSelectionExpression })), (input.ResponseModels !== undefined &&
|
|
414
|
-
input.ResponseModels !== null && {
|
|
373
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.ModelSelectionExpression != null && { modelSelectionExpression: input.ModelSelectionExpression })), (input.ResponseModels != null && {
|
|
415
374
|
responseModels: serializeAws_restJson1RouteModels(input.ResponseModels, context),
|
|
416
|
-
})), (input.ResponseParameters
|
|
417
|
-
input.ResponseParameters !== null && {
|
|
375
|
+
})), (input.ResponseParameters != null && {
|
|
418
376
|
responseParameters: serializeAws_restJson1RouteParameters(input.ResponseParameters, context),
|
|
419
|
-
})), (input.RouteResponseKey
|
|
420
|
-
input.RouteResponseKey !== null && { routeResponseKey: input.RouteResponseKey })));
|
|
377
|
+
})), (input.RouteResponseKey != null && { routeResponseKey: input.RouteResponseKey })));
|
|
421
378
|
return [2, new __HttpRequest({
|
|
422
379
|
protocol: protocol,
|
|
423
380
|
hostname: hostname,
|
|
@@ -451,20 +408,15 @@ export var serializeAws_restJson1CreateStageCommand = function (input, context)
|
|
|
451
408
|
else {
|
|
452
409
|
throw new Error("No value provided for input HTTP label: ApiId.");
|
|
453
410
|
}
|
|
454
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AccessLogSettings
|
|
455
|
-
input.AccessLogSettings !== null && {
|
|
411
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AccessLogSettings != null && {
|
|
456
412
|
accessLogSettings: serializeAws_restJson1AccessLogSettings(input.AccessLogSettings, context),
|
|
457
|
-
})), (input.AutoDeploy
|
|
458
|
-
input.ClientCertificateId !== null && { clientCertificateId: input.ClientCertificateId })), (input.DefaultRouteSettings !== undefined &&
|
|
459
|
-
input.DefaultRouteSettings !== null && {
|
|
413
|
+
})), (input.AutoDeploy != null && { autoDeploy: input.AutoDeploy })), (input.ClientCertificateId != null && { clientCertificateId: input.ClientCertificateId })), (input.DefaultRouteSettings != null && {
|
|
460
414
|
defaultRouteSettings: serializeAws_restJson1RouteSettings(input.DefaultRouteSettings, context),
|
|
461
|
-
})), (input.DeploymentId
|
|
462
|
-
input.RouteSettings !== null && {
|
|
415
|
+
})), (input.DeploymentId != null && { deploymentId: input.DeploymentId })), (input.Description != null && { description: input.Description })), (input.RouteSettings != null && {
|
|
463
416
|
routeSettings: serializeAws_restJson1RouteSettingsMap(input.RouteSettings, context),
|
|
464
|
-
})), (input.StageName
|
|
465
|
-
input.StageVariables !== null && {
|
|
417
|
+
})), (input.StageName != null && { stageName: input.StageName })), (input.StageVariables != null && {
|
|
466
418
|
stageVariables: serializeAws_restJson1StageVariablesMap(input.StageVariables, context),
|
|
467
|
-
})), (input.Tags
|
|
419
|
+
})), (input.Tags != null && { tags: serializeAws_restJson1Tags(input.Tags, context) })));
|
|
468
420
|
return [2, new __HttpRequest({
|
|
469
421
|
protocol: protocol,
|
|
470
422
|
hostname: hostname,
|
|
@@ -488,11 +440,9 @@ export var serializeAws_restJson1CreateVpcLinkCommand = function (input, context
|
|
|
488
440
|
"content-type": "application/json",
|
|
489
441
|
};
|
|
490
442
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/vpclinks";
|
|
491
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.Name
|
|
492
|
-
input.SecurityGroupIds !== null && {
|
|
443
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.Name != null && { name: input.Name })), (input.SecurityGroupIds != null && {
|
|
493
444
|
securityGroupIds: serializeAws_restJson1SecurityGroupIdList(input.SecurityGroupIds, context),
|
|
494
|
-
})), (input.SubnetIds
|
|
495
|
-
input.SubnetIds !== null && { subnetIds: serializeAws_restJson1SubnetIdList(input.SubnetIds, context) })), (input.Tags !== undefined && input.Tags !== null && { tags: serializeAws_restJson1Tags(input.Tags, context) })));
|
|
445
|
+
})), (input.SubnetIds != null && { subnetIds: serializeAws_restJson1SubnetIdList(input.SubnetIds, context) })), (input.Tags != null && { tags: serializeAws_restJson1Tags(input.Tags, context) })));
|
|
496
446
|
return [2, new __HttpRequest({
|
|
497
447
|
protocol: protocol,
|
|
498
448
|
hostname: hostname,
|
|
@@ -2174,7 +2124,7 @@ export var serializeAws_restJson1ImportApiCommand = function (input, context) {
|
|
|
2174
2124
|
};
|
|
2175
2125
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/apis";
|
|
2176
2126
|
query = __assign(__assign({}, (input.Basepath !== undefined && { basepath: input.Basepath })), (input.FailOnWarnings !== undefined && { failOnWarnings: input.FailOnWarnings.toString() }));
|
|
2177
|
-
body = JSON.stringify(__assign({}, (input.Body
|
|
2127
|
+
body = JSON.stringify(__assign({}, (input.Body != null && { body: input.Body })));
|
|
2178
2128
|
return [2, new __HttpRequest({
|
|
2179
2129
|
protocol: protocol,
|
|
2180
2130
|
hostname: hostname,
|
|
@@ -2210,7 +2160,7 @@ export var serializeAws_restJson1ReimportApiCommand = function (input, context)
|
|
|
2210
2160
|
throw new Error("No value provided for input HTTP label: ApiId.");
|
|
2211
2161
|
}
|
|
2212
2162
|
query = __assign(__assign({}, (input.Basepath !== undefined && { basepath: input.Basepath })), (input.FailOnWarnings !== undefined && { failOnWarnings: input.FailOnWarnings.toString() }));
|
|
2213
|
-
body = JSON.stringify(__assign({}, (input.Body
|
|
2163
|
+
body = JSON.stringify(__assign({}, (input.Body != null && { body: input.Body })));
|
|
2214
2164
|
return [2, new __HttpRequest({
|
|
2215
2165
|
protocol: protocol,
|
|
2216
2166
|
hostname: hostname,
|
|
@@ -2287,7 +2237,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
2287
2237
|
else {
|
|
2288
2238
|
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
2289
2239
|
}
|
|
2290
|
-
body = JSON.stringify(__assign({}, (input.Tags
|
|
2240
|
+
body = JSON.stringify(__assign({}, (input.Tags != null && { tags: serializeAws_restJson1Tags(input.Tags, context) })));
|
|
2291
2241
|
return [2, new __HttpRequest({
|
|
2292
2242
|
protocol: protocol,
|
|
2293
2243
|
hostname: hostname,
|
|
@@ -2354,15 +2304,9 @@ export var serializeAws_restJson1UpdateApiCommand = function (input, context) {
|
|
|
2354
2304
|
else {
|
|
2355
2305
|
throw new Error("No value provided for input HTTP label: ApiId.");
|
|
2356
2306
|
}
|
|
2357
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ApiKeySelectionExpression
|
|
2358
|
-
input.ApiKeySelectionExpression !== null && { apiKeySelectionExpression: input.ApiKeySelectionExpression })), (input.CorsConfiguration !== undefined &&
|
|
2359
|
-
input.CorsConfiguration !== null && {
|
|
2307
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ApiKeySelectionExpression != null && { apiKeySelectionExpression: input.ApiKeySelectionExpression })), (input.CorsConfiguration != null && {
|
|
2360
2308
|
corsConfiguration: serializeAws_restJson1Cors(input.CorsConfiguration, context),
|
|
2361
|
-
})), (input.CredentialsArn
|
|
2362
|
-
input.CredentialsArn !== null && { credentialsArn: input.CredentialsArn })), (input.Description !== undefined && input.Description !== null && { description: input.Description })), (input.DisableExecuteApiEndpoint !== undefined &&
|
|
2363
|
-
input.DisableExecuteApiEndpoint !== null && { disableExecuteApiEndpoint: input.DisableExecuteApiEndpoint })), (input.DisableSchemaValidation !== undefined &&
|
|
2364
|
-
input.DisableSchemaValidation !== null && { disableSchemaValidation: input.DisableSchemaValidation })), (input.Name !== undefined && input.Name !== null && { name: input.Name })), (input.RouteKey !== undefined && input.RouteKey !== null && { routeKey: input.RouteKey })), (input.RouteSelectionExpression !== undefined &&
|
|
2365
|
-
input.RouteSelectionExpression !== null && { routeSelectionExpression: input.RouteSelectionExpression })), (input.Target !== undefined && input.Target !== null && { target: input.Target })), (input.Version !== undefined && input.Version !== null && { version: input.Version })));
|
|
2309
|
+
})), (input.CredentialsArn != null && { credentialsArn: input.CredentialsArn })), (input.Description != null && { description: input.Description })), (input.DisableExecuteApiEndpoint != null && { disableExecuteApiEndpoint: input.DisableExecuteApiEndpoint })), (input.DisableSchemaValidation != null && { disableSchemaValidation: input.DisableSchemaValidation })), (input.Name != null && { name: input.Name })), (input.RouteKey != null && { routeKey: input.RouteKey })), (input.RouteSelectionExpression != null && { routeSelectionExpression: input.RouteSelectionExpression })), (input.Target != null && { target: input.Target })), (input.Version != null && { version: input.Version })));
|
|
2366
2310
|
return [2, new __HttpRequest({
|
|
2367
2311
|
protocol: protocol,
|
|
2368
2312
|
hostname: hostname,
|
|
@@ -2407,7 +2351,7 @@ export var serializeAws_restJson1UpdateApiMappingCommand = function (input, cont
|
|
|
2407
2351
|
else {
|
|
2408
2352
|
throw new Error("No value provided for input HTTP label: DomainName.");
|
|
2409
2353
|
}
|
|
2410
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.ApiId
|
|
2354
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.ApiId != null && { apiId: input.ApiId })), (input.ApiMappingKey != null && { apiMappingKey: input.ApiMappingKey })), (input.Stage != null && { stage: input.Stage })));
|
|
2411
2355
|
return [2, new __HttpRequest({
|
|
2412
2356
|
protocol: protocol,
|
|
2413
2357
|
hostname: hostname,
|
|
@@ -2452,25 +2396,17 @@ export var serializeAws_restJson1UpdateAuthorizerCommand = function (input, cont
|
|
|
2452
2396
|
else {
|
|
2453
2397
|
throw new Error("No value provided for input HTTP label: AuthorizerId.");
|
|
2454
2398
|
}
|
|
2455
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AuthorizerCredentialsArn
|
|
2456
|
-
input.AuthorizerCredentialsArn !== null && { authorizerCredentialsArn: input.AuthorizerCredentialsArn })), (input.AuthorizerPayloadFormatVersion !== undefined &&
|
|
2457
|
-
input.AuthorizerPayloadFormatVersion !== null && {
|
|
2399
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AuthorizerCredentialsArn != null && { authorizerCredentialsArn: input.AuthorizerCredentialsArn })), (input.AuthorizerPayloadFormatVersion != null && {
|
|
2458
2400
|
authorizerPayloadFormatVersion: input.AuthorizerPayloadFormatVersion,
|
|
2459
|
-
})), (input.AuthorizerResultTtlInSeconds
|
|
2460
|
-
input.AuthorizerResultTtlInSeconds !== null && {
|
|
2401
|
+
})), (input.AuthorizerResultTtlInSeconds != null && {
|
|
2461
2402
|
authorizerResultTtlInSeconds: input.AuthorizerResultTtlInSeconds,
|
|
2462
|
-
})), (input.AuthorizerType
|
|
2463
|
-
input.AuthorizerType !== null && { authorizerType: input.AuthorizerType })), (input.AuthorizerUri !== undefined && input.AuthorizerUri !== null && { authorizerUri: input.AuthorizerUri })), (input.EnableSimpleResponses !== undefined &&
|
|
2464
|
-
input.EnableSimpleResponses !== null && { enableSimpleResponses: input.EnableSimpleResponses })), (input.IdentitySource !== undefined &&
|
|
2465
|
-
input.IdentitySource !== null && {
|
|
2403
|
+
})), (input.AuthorizerType != null && { authorizerType: input.AuthorizerType })), (input.AuthorizerUri != null && { authorizerUri: input.AuthorizerUri })), (input.EnableSimpleResponses != null && { enableSimpleResponses: input.EnableSimpleResponses })), (input.IdentitySource != null && {
|
|
2466
2404
|
identitySource: serializeAws_restJson1IdentitySourceList(input.IdentitySource, context),
|
|
2467
|
-
})), (input.IdentityValidationExpression
|
|
2468
|
-
input.IdentityValidationExpression !== null && {
|
|
2405
|
+
})), (input.IdentityValidationExpression != null && {
|
|
2469
2406
|
identityValidationExpression: input.IdentityValidationExpression,
|
|
2470
|
-
})), (input.JwtConfiguration
|
|
2471
|
-
input.JwtConfiguration !== null && {
|
|
2407
|
+
})), (input.JwtConfiguration != null && {
|
|
2472
2408
|
jwtConfiguration: serializeAws_restJson1JWTConfiguration(input.JwtConfiguration, context),
|
|
2473
|
-
})), (input.Name
|
|
2409
|
+
})), (input.Name != null && { name: input.Name })));
|
|
2474
2410
|
return [2, new __HttpRequest({
|
|
2475
2411
|
protocol: protocol,
|
|
2476
2412
|
hostname: hostname,
|
|
@@ -2515,7 +2451,7 @@ export var serializeAws_restJson1UpdateDeploymentCommand = function (input, cont
|
|
|
2515
2451
|
else {
|
|
2516
2452
|
throw new Error("No value provided for input HTTP label: DeploymentId.");
|
|
2517
2453
|
}
|
|
2518
|
-
body = JSON.stringify(__assign({}, (input.Description
|
|
2454
|
+
body = JSON.stringify(__assign({}, (input.Description != null && { description: input.Description })));
|
|
2519
2455
|
return [2, new __HttpRequest({
|
|
2520
2456
|
protocol: protocol,
|
|
2521
2457
|
hostname: hostname,
|
|
@@ -2549,11 +2485,9 @@ export var serializeAws_restJson1UpdateDomainNameCommand = function (input, cont
|
|
|
2549
2485
|
else {
|
|
2550
2486
|
throw new Error("No value provided for input HTTP label: DomainName.");
|
|
2551
2487
|
}
|
|
2552
|
-
body = JSON.stringify(__assign(__assign({}, (input.DomainNameConfigurations
|
|
2553
|
-
input.DomainNameConfigurations !== null && {
|
|
2488
|
+
body = JSON.stringify(__assign(__assign({}, (input.DomainNameConfigurations != null && {
|
|
2554
2489
|
domainNameConfigurations: serializeAws_restJson1DomainNameConfigurations(input.DomainNameConfigurations, context),
|
|
2555
|
-
})), (input.MutualTlsAuthentication
|
|
2556
|
-
input.MutualTlsAuthentication !== null && {
|
|
2490
|
+
})), (input.MutualTlsAuthentication != null && {
|
|
2557
2491
|
mutualTlsAuthentication: serializeAws_restJson1MutualTlsAuthenticationInput(input.MutualTlsAuthentication, context),
|
|
2558
2492
|
})));
|
|
2559
2493
|
return [2, new __HttpRequest({
|
|
@@ -2600,28 +2534,15 @@ export var serializeAws_restJson1UpdateIntegrationCommand = function (input, con
|
|
|
2600
2534
|
else {
|
|
2601
2535
|
throw new Error("No value provided for input HTTP label: IntegrationId.");
|
|
2602
2536
|
}
|
|
2603
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ConnectionId
|
|
2604
|
-
input.ConnectionType !== null && { connectionType: input.ConnectionType })), (input.ContentHandlingStrategy !== undefined &&
|
|
2605
|
-
input.ContentHandlingStrategy !== null && { contentHandlingStrategy: input.ContentHandlingStrategy })), (input.CredentialsArn !== undefined &&
|
|
2606
|
-
input.CredentialsArn !== null && { credentialsArn: input.CredentialsArn })), (input.Description !== undefined && input.Description !== null && { description: input.Description })), (input.IntegrationMethod !== undefined &&
|
|
2607
|
-
input.IntegrationMethod !== null && { integrationMethod: input.IntegrationMethod })), (input.IntegrationSubtype !== undefined &&
|
|
2608
|
-
input.IntegrationSubtype !== null && { integrationSubtype: input.IntegrationSubtype })), (input.IntegrationType !== undefined &&
|
|
2609
|
-
input.IntegrationType !== null && { integrationType: input.IntegrationType })), (input.IntegrationUri !== undefined &&
|
|
2610
|
-
input.IntegrationUri !== null && { integrationUri: input.IntegrationUri })), (input.PassthroughBehavior !== undefined &&
|
|
2611
|
-
input.PassthroughBehavior !== null && { passthroughBehavior: input.PassthroughBehavior })), (input.PayloadFormatVersion !== undefined &&
|
|
2612
|
-
input.PayloadFormatVersion !== null && { payloadFormatVersion: input.PayloadFormatVersion })), (input.RequestParameters !== undefined &&
|
|
2613
|
-
input.RequestParameters !== null && {
|
|
2537
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ConnectionId != null && { connectionId: input.ConnectionId })), (input.ConnectionType != null && { connectionType: input.ConnectionType })), (input.ContentHandlingStrategy != null && { contentHandlingStrategy: input.ContentHandlingStrategy })), (input.CredentialsArn != null && { credentialsArn: input.CredentialsArn })), (input.Description != null && { description: input.Description })), (input.IntegrationMethod != null && { integrationMethod: input.IntegrationMethod })), (input.IntegrationSubtype != null && { integrationSubtype: input.IntegrationSubtype })), (input.IntegrationType != null && { integrationType: input.IntegrationType })), (input.IntegrationUri != null && { integrationUri: input.IntegrationUri })), (input.PassthroughBehavior != null && { passthroughBehavior: input.PassthroughBehavior })), (input.PayloadFormatVersion != null && { payloadFormatVersion: input.PayloadFormatVersion })), (input.RequestParameters != null && {
|
|
2614
2538
|
requestParameters: serializeAws_restJson1IntegrationParameters(input.RequestParameters, context),
|
|
2615
|
-
})), (input.RequestTemplates
|
|
2616
|
-
input.RequestTemplates !== null && {
|
|
2539
|
+
})), (input.RequestTemplates != null && {
|
|
2617
2540
|
requestTemplates: serializeAws_restJson1TemplateMap(input.RequestTemplates, context),
|
|
2618
|
-
})), (input.ResponseParameters
|
|
2619
|
-
input.ResponseParameters !== null && {
|
|
2541
|
+
})), (input.ResponseParameters != null && {
|
|
2620
2542
|
responseParameters: serializeAws_restJson1ResponseParameters(input.ResponseParameters, context),
|
|
2621
|
-
})), (input.TemplateSelectionExpression
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
input.TlsConfig !== null && { tlsConfig: serializeAws_restJson1TlsConfigInput(input.TlsConfig, context) })));
|
|
2543
|
+
})), (input.TemplateSelectionExpression != null && {
|
|
2544
|
+
templateSelectionExpression: input.TemplateSelectionExpression,
|
|
2545
|
+
})), (input.TimeoutInMillis != null && { timeoutInMillis: input.TimeoutInMillis })), (input.TlsConfig != null && { tlsConfig: serializeAws_restJson1TlsConfigInput(input.TlsConfig, context) })));
|
|
2625
2546
|
return [2, new __HttpRequest({
|
|
2626
2547
|
protocol: protocol,
|
|
2627
2548
|
hostname: hostname,
|
|
@@ -2676,16 +2597,13 @@ export var serializeAws_restJson1UpdateIntegrationResponseCommand = function (in
|
|
|
2676
2597
|
else {
|
|
2677
2598
|
throw new Error("No value provided for input HTTP label: IntegrationResponseId.");
|
|
2678
2599
|
}
|
|
2679
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.ContentHandlingStrategy
|
|
2680
|
-
input.ContentHandlingStrategy !== null && { contentHandlingStrategy: input.ContentHandlingStrategy })), (input.IntegrationResponseKey !== undefined &&
|
|
2681
|
-
input.IntegrationResponseKey !== null && { integrationResponseKey: input.IntegrationResponseKey })), (input.ResponseParameters !== undefined &&
|
|
2682
|
-
input.ResponseParameters !== null && {
|
|
2600
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.ContentHandlingStrategy != null && { contentHandlingStrategy: input.ContentHandlingStrategy })), (input.IntegrationResponseKey != null && { integrationResponseKey: input.IntegrationResponseKey })), (input.ResponseParameters != null && {
|
|
2683
2601
|
responseParameters: serializeAws_restJson1IntegrationParameters(input.ResponseParameters, context),
|
|
2684
|
-
})), (input.ResponseTemplates
|
|
2685
|
-
input.ResponseTemplates !== null && {
|
|
2602
|
+
})), (input.ResponseTemplates != null && {
|
|
2686
2603
|
responseTemplates: serializeAws_restJson1TemplateMap(input.ResponseTemplates, context),
|
|
2687
|
-
})), (input.TemplateSelectionExpression
|
|
2688
|
-
|
|
2604
|
+
})), (input.TemplateSelectionExpression != null && {
|
|
2605
|
+
templateSelectionExpression: input.TemplateSelectionExpression,
|
|
2606
|
+
})));
|
|
2689
2607
|
return [2, new __HttpRequest({
|
|
2690
2608
|
protocol: protocol,
|
|
2691
2609
|
hostname: hostname,
|
|
@@ -2729,7 +2647,7 @@ export var serializeAws_restJson1UpdateModelCommand = function (input, context)
|
|
|
2729
2647
|
else {
|
|
2730
2648
|
throw new Error("No value provided for input HTTP label: ModelId.");
|
|
2731
2649
|
}
|
|
2732
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.ContentType
|
|
2650
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.ContentType != null && { contentType: input.ContentType })), (input.Description != null && { description: input.Description })), (input.Name != null && { name: input.Name })), (input.Schema != null && { schema: input.Schema })));
|
|
2733
2651
|
return [2, new __HttpRequest({
|
|
2734
2652
|
protocol: protocol,
|
|
2735
2653
|
hostname: hostname,
|
|
@@ -2773,22 +2691,15 @@ export var serializeAws_restJson1UpdateRouteCommand = function (input, context)
|
|
|
2773
2691
|
else {
|
|
2774
2692
|
throw new Error("No value provided for input HTTP label: RouteId.");
|
|
2775
2693
|
}
|
|
2776
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ApiKeyRequired
|
|
2777
|
-
input.ApiKeyRequired !== null && { apiKeyRequired: input.ApiKeyRequired })), (input.AuthorizationScopes !== undefined &&
|
|
2778
|
-
input.AuthorizationScopes !== null && {
|
|
2694
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ApiKeyRequired != null && { apiKeyRequired: input.ApiKeyRequired })), (input.AuthorizationScopes != null && {
|
|
2779
2695
|
authorizationScopes: serializeAws_restJson1AuthorizationScopes(input.AuthorizationScopes, context),
|
|
2780
|
-
})), (input.AuthorizationType
|
|
2781
|
-
input.AuthorizationType !== null && { authorizationType: input.AuthorizationType })), (input.AuthorizerId !== undefined && input.AuthorizerId !== null && { authorizerId: input.AuthorizerId })), (input.ModelSelectionExpression !== undefined &&
|
|
2782
|
-
input.ModelSelectionExpression !== null && { modelSelectionExpression: input.ModelSelectionExpression })), (input.OperationName !== undefined && input.OperationName !== null && { operationName: input.OperationName })), (input.RequestModels !== undefined &&
|
|
2783
|
-
input.RequestModels !== null && {
|
|
2696
|
+
})), (input.AuthorizationType != null && { authorizationType: input.AuthorizationType })), (input.AuthorizerId != null && { authorizerId: input.AuthorizerId })), (input.ModelSelectionExpression != null && { modelSelectionExpression: input.ModelSelectionExpression })), (input.OperationName != null && { operationName: input.OperationName })), (input.RequestModels != null && {
|
|
2784
2697
|
requestModels: serializeAws_restJson1RouteModels(input.RequestModels, context),
|
|
2785
|
-
})), (input.RequestParameters
|
|
2786
|
-
input.RequestParameters !== null && {
|
|
2698
|
+
})), (input.RequestParameters != null && {
|
|
2787
2699
|
requestParameters: serializeAws_restJson1RouteParameters(input.RequestParameters, context),
|
|
2788
|
-
})), (input.RouteKey
|
|
2789
|
-
input.RouteResponseSelectionExpression !== null && {
|
|
2700
|
+
})), (input.RouteKey != null && { routeKey: input.RouteKey })), (input.RouteResponseSelectionExpression != null && {
|
|
2790
2701
|
routeResponseSelectionExpression: input.RouteResponseSelectionExpression,
|
|
2791
|
-
})), (input.Target
|
|
2702
|
+
})), (input.Target != null && { target: input.Target })));
|
|
2792
2703
|
return [2, new __HttpRequest({
|
|
2793
2704
|
protocol: protocol,
|
|
2794
2705
|
hostname: hostname,
|
|
@@ -2843,15 +2754,11 @@ export var serializeAws_restJson1UpdateRouteResponseCommand = function (input, c
|
|
|
2843
2754
|
else {
|
|
2844
2755
|
throw new Error("No value provided for input HTTP label: RouteResponseId.");
|
|
2845
2756
|
}
|
|
2846
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.ModelSelectionExpression
|
|
2847
|
-
input.ModelSelectionExpression !== null && { modelSelectionExpression: input.ModelSelectionExpression })), (input.ResponseModels !== undefined &&
|
|
2848
|
-
input.ResponseModels !== null && {
|
|
2757
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.ModelSelectionExpression != null && { modelSelectionExpression: input.ModelSelectionExpression })), (input.ResponseModels != null && {
|
|
2849
2758
|
responseModels: serializeAws_restJson1RouteModels(input.ResponseModels, context),
|
|
2850
|
-
})), (input.ResponseParameters
|
|
2851
|
-
input.ResponseParameters !== null && {
|
|
2759
|
+
})), (input.ResponseParameters != null && {
|
|
2852
2760
|
responseParameters: serializeAws_restJson1RouteParameters(input.ResponseParameters, context),
|
|
2853
|
-
})), (input.RouteResponseKey
|
|
2854
|
-
input.RouteResponseKey !== null && { routeResponseKey: input.RouteResponseKey })));
|
|
2761
|
+
})), (input.RouteResponseKey != null && { routeResponseKey: input.RouteResponseKey })));
|
|
2855
2762
|
return [2, new __HttpRequest({
|
|
2856
2763
|
protocol: protocol,
|
|
2857
2764
|
hostname: hostname,
|
|
@@ -2895,18 +2802,13 @@ export var serializeAws_restJson1UpdateStageCommand = function (input, context)
|
|
|
2895
2802
|
else {
|
|
2896
2803
|
throw new Error("No value provided for input HTTP label: StageName.");
|
|
2897
2804
|
}
|
|
2898
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AccessLogSettings
|
|
2899
|
-
input.AccessLogSettings !== null && {
|
|
2805
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AccessLogSettings != null && {
|
|
2900
2806
|
accessLogSettings: serializeAws_restJson1AccessLogSettings(input.AccessLogSettings, context),
|
|
2901
|
-
})), (input.AutoDeploy
|
|
2902
|
-
input.ClientCertificateId !== null && { clientCertificateId: input.ClientCertificateId })), (input.DefaultRouteSettings !== undefined &&
|
|
2903
|
-
input.DefaultRouteSettings !== null && {
|
|
2807
|
+
})), (input.AutoDeploy != null && { autoDeploy: input.AutoDeploy })), (input.ClientCertificateId != null && { clientCertificateId: input.ClientCertificateId })), (input.DefaultRouteSettings != null && {
|
|
2904
2808
|
defaultRouteSettings: serializeAws_restJson1RouteSettings(input.DefaultRouteSettings, context),
|
|
2905
|
-
})), (input.DeploymentId
|
|
2906
|
-
input.RouteSettings !== null && {
|
|
2809
|
+
})), (input.DeploymentId != null && { deploymentId: input.DeploymentId })), (input.Description != null && { description: input.Description })), (input.RouteSettings != null && {
|
|
2907
2810
|
routeSettings: serializeAws_restJson1RouteSettingsMap(input.RouteSettings, context),
|
|
2908
|
-
})), (input.StageVariables
|
|
2909
|
-
input.StageVariables !== null && {
|
|
2811
|
+
})), (input.StageVariables != null && {
|
|
2910
2812
|
stageVariables: serializeAws_restJson1StageVariablesMap(input.StageVariables, context),
|
|
2911
2813
|
})));
|
|
2912
2814
|
return [2, new __HttpRequest({
|
|
@@ -2942,7 +2844,7 @@ export var serializeAws_restJson1UpdateVpcLinkCommand = function (input, context
|
|
|
2942
2844
|
else {
|
|
2943
2845
|
throw new Error("No value provided for input HTTP label: VpcLinkId.");
|
|
2944
2846
|
}
|
|
2945
|
-
body = JSON.stringify(__assign({}, (input.Name
|
|
2847
|
+
body = JSON.stringify(__assign({}, (input.Name != null && { name: input.Name })));
|
|
2946
2848
|
return [2, new __HttpRequest({
|
|
2947
2849
|
protocol: protocol,
|
|
2948
2850
|
hostname: hostname,
|
|
@@ -8981,8 +8883,7 @@ var serializeAws_restJson1__listOf__string = function (input, context) {
|
|
|
8981
8883
|
});
|
|
8982
8884
|
};
|
|
8983
8885
|
var serializeAws_restJson1AccessLogSettings = function (input, context) {
|
|
8984
|
-
return __assign(__assign({}, (input.DestinationArn
|
|
8985
|
-
input.DestinationArn !== null && { destinationArn: input.DestinationArn })), (input.Format !== undefined && input.Format !== null && { format: input.Format }));
|
|
8886
|
+
return __assign(__assign({}, (input.DestinationArn != null && { destinationArn: input.DestinationArn })), (input.Format != null && { format: input.Format }));
|
|
8986
8887
|
};
|
|
8987
8888
|
var serializeAws_restJson1AuthorizationScopes = function (input, context) {
|
|
8988
8889
|
return input
|
|
@@ -8995,20 +8896,15 @@ var serializeAws_restJson1AuthorizationScopes = function (input, context) {
|
|
|
8995
8896
|
});
|
|
8996
8897
|
};
|
|
8997
8898
|
var serializeAws_restJson1Cors = function (input, context) {
|
|
8998
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.AllowCredentials
|
|
8999
|
-
input.AllowCredentials !== null && { allowCredentials: input.AllowCredentials })), (input.AllowHeaders !== undefined &&
|
|
9000
|
-
input.AllowHeaders !== null && {
|
|
8899
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.AllowCredentials != null && { allowCredentials: input.AllowCredentials })), (input.AllowHeaders != null && {
|
|
9001
8900
|
allowHeaders: serializeAws_restJson1CorsHeaderList(input.AllowHeaders, context),
|
|
9002
|
-
})), (input.AllowMethods
|
|
9003
|
-
input.AllowMethods !== null && {
|
|
8901
|
+
})), (input.AllowMethods != null && {
|
|
9004
8902
|
allowMethods: serializeAws_restJson1CorsMethodList(input.AllowMethods, context),
|
|
9005
|
-
})), (input.AllowOrigins
|
|
9006
|
-
input.AllowOrigins !== null && {
|
|
8903
|
+
})), (input.AllowOrigins != null && {
|
|
9007
8904
|
allowOrigins: serializeAws_restJson1CorsOriginList(input.AllowOrigins, context),
|
|
9008
|
-
})), (input.ExposeHeaders
|
|
9009
|
-
input.ExposeHeaders !== null && {
|
|
8905
|
+
})), (input.ExposeHeaders != null && {
|
|
9010
8906
|
exposeHeaders: serializeAws_restJson1CorsHeaderList(input.ExposeHeaders, context),
|
|
9011
|
-
})), (input.MaxAge
|
|
8907
|
+
})), (input.MaxAge != null && { maxAge: input.MaxAge }));
|
|
9012
8908
|
};
|
|
9013
8909
|
var serializeAws_restJson1CorsHeaderList = function (input, context) {
|
|
9014
8910
|
return input
|
|
@@ -9041,19 +8937,11 @@ var serializeAws_restJson1CorsOriginList = function (input, context) {
|
|
|
9041
8937
|
});
|
|
9042
8938
|
};
|
|
9043
8939
|
var serializeAws_restJson1DomainNameConfiguration = function (input, context) {
|
|
9044
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ApiGatewayDomainName
|
|
9045
|
-
input.ApiGatewayDomainName !== null && { apiGatewayDomainName: input.ApiGatewayDomainName })), (input.CertificateArn !== undefined &&
|
|
9046
|
-
input.CertificateArn !== null && { certificateArn: input.CertificateArn })), (input.CertificateName !== undefined &&
|
|
9047
|
-
input.CertificateName !== null && { certificateName: input.CertificateName })), (input.CertificateUploadDate !== undefined &&
|
|
9048
|
-
input.CertificateUploadDate !== null && {
|
|
8940
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ApiGatewayDomainName != null && { apiGatewayDomainName: input.ApiGatewayDomainName })), (input.CertificateArn != null && { certificateArn: input.CertificateArn })), (input.CertificateName != null && { certificateName: input.CertificateName })), (input.CertificateUploadDate != null && {
|
|
9049
8941
|
certificateUploadDate: input.CertificateUploadDate.toISOString().split(".")[0] + "Z",
|
|
9050
|
-
})), (input.DomainNameStatus
|
|
9051
|
-
input.DomainNameStatus !== null && { domainNameStatus: input.DomainNameStatus })), (input.DomainNameStatusMessage !== undefined &&
|
|
9052
|
-
input.DomainNameStatusMessage !== null && { domainNameStatusMessage: input.DomainNameStatusMessage })), (input.EndpointType !== undefined && input.EndpointType !== null && { endpointType: input.EndpointType })), (input.HostedZoneId !== undefined && input.HostedZoneId !== null && { hostedZoneId: input.HostedZoneId })), (input.OwnershipVerificationCertificateArn !== undefined &&
|
|
9053
|
-
input.OwnershipVerificationCertificateArn !== null && {
|
|
8942
|
+
})), (input.DomainNameStatus != null && { domainNameStatus: input.DomainNameStatus })), (input.DomainNameStatusMessage != null && { domainNameStatusMessage: input.DomainNameStatusMessage })), (input.EndpointType != null && { endpointType: input.EndpointType })), (input.HostedZoneId != null && { hostedZoneId: input.HostedZoneId })), (input.OwnershipVerificationCertificateArn != null && {
|
|
9054
8943
|
ownershipVerificationCertificateArn: input.OwnershipVerificationCertificateArn,
|
|
9055
|
-
})), (input.SecurityPolicy
|
|
9056
|
-
input.SecurityPolicy !== null && { securityPolicy: input.SecurityPolicy }));
|
|
8944
|
+
})), (input.SecurityPolicy != null && { securityPolicy: input.SecurityPolicy }));
|
|
9057
8945
|
};
|
|
9058
8946
|
var serializeAws_restJson1DomainNameConfigurations = function (input, context) {
|
|
9059
8947
|
return input
|
|
@@ -9086,15 +8974,13 @@ var serializeAws_restJson1IntegrationParameters = function (input, context) {
|
|
|
9086
8974
|
}, {});
|
|
9087
8975
|
};
|
|
9088
8976
|
var serializeAws_restJson1JWTConfiguration = function (input, context) {
|
|
9089
|
-
return __assign(__assign({}, (input.Audience
|
|
9090
|
-
input.Audience !== null && { audience: serializeAws_restJson1__listOf__string(input.Audience, context) })), (input.Issuer !== undefined && input.Issuer !== null && { issuer: input.Issuer }));
|
|
8977
|
+
return __assign(__assign({}, (input.Audience != null && { audience: serializeAws_restJson1__listOf__string(input.Audience, context) })), (input.Issuer != null && { issuer: input.Issuer }));
|
|
9091
8978
|
};
|
|
9092
8979
|
var serializeAws_restJson1MutualTlsAuthenticationInput = function (input, context) {
|
|
9093
|
-
return __assign(__assign({}, (input.TruststoreUri
|
|
9094
|
-
input.TruststoreVersion !== null && { truststoreVersion: input.TruststoreVersion }));
|
|
8980
|
+
return __assign(__assign({}, (input.TruststoreUri != null && { truststoreUri: input.TruststoreUri })), (input.TruststoreVersion != null && { truststoreVersion: input.TruststoreVersion }));
|
|
9095
8981
|
};
|
|
9096
8982
|
var serializeAws_restJson1ParameterConstraints = function (input, context) {
|
|
9097
|
-
return __assign({}, (input.Required
|
|
8983
|
+
return __assign({}, (input.Required != null && { required: input.Required }));
|
|
9098
8984
|
};
|
|
9099
8985
|
var serializeAws_restJson1ResponseParameters = function (input, context) {
|
|
9100
8986
|
return Object.entries(input).reduce(function (acc, _a) {
|
|
@@ -9127,11 +9013,7 @@ var serializeAws_restJson1RouteParameters = function (input, context) {
|
|
|
9127
9013
|
}, {});
|
|
9128
9014
|
};
|
|
9129
9015
|
var serializeAws_restJson1RouteSettings = function (input, context) {
|
|
9130
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.DataTraceEnabled
|
|
9131
|
-
input.DataTraceEnabled !== null && { dataTraceEnabled: input.DataTraceEnabled })), (input.DetailedMetricsEnabled !== undefined &&
|
|
9132
|
-
input.DetailedMetricsEnabled !== null && { detailedMetricsEnabled: input.DetailedMetricsEnabled })), (input.LoggingLevel !== undefined && input.LoggingLevel !== null && { loggingLevel: input.LoggingLevel })), (input.ThrottlingBurstLimit !== undefined &&
|
|
9133
|
-
input.ThrottlingBurstLimit !== null && { throttlingBurstLimit: input.ThrottlingBurstLimit })), (input.ThrottlingRateLimit !== undefined &&
|
|
9134
|
-
input.ThrottlingRateLimit !== null && { throttlingRateLimit: __serializeFloat(input.ThrottlingRateLimit) }));
|
|
9016
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.DataTraceEnabled != null && { dataTraceEnabled: input.DataTraceEnabled })), (input.DetailedMetricsEnabled != null && { detailedMetricsEnabled: input.DetailedMetricsEnabled })), (input.LoggingLevel != null && { loggingLevel: input.LoggingLevel })), (input.ThrottlingBurstLimit != null && { throttlingBurstLimit: input.ThrottlingBurstLimit })), (input.ThrottlingRateLimit != null && { throttlingRateLimit: __serializeFloat(input.ThrottlingRateLimit) }));
|
|
9135
9017
|
};
|
|
9136
9018
|
var serializeAws_restJson1RouteSettingsMap = function (input, context) {
|
|
9137
9019
|
return Object.entries(input).reduce(function (acc, _a) {
|
|
@@ -9194,8 +9076,7 @@ var serializeAws_restJson1TemplateMap = function (input, context) {
|
|
|
9194
9076
|
}, {});
|
|
9195
9077
|
};
|
|
9196
9078
|
var serializeAws_restJson1TlsConfigInput = function (input, context) {
|
|
9197
|
-
return __assign({}, (input.ServerNameToVerify
|
|
9198
|
-
input.ServerNameToVerify !== null && { serverNameToVerify: input.ServerNameToVerify }));
|
|
9079
|
+
return __assign({}, (input.ServerNameToVerify != null && { serverNameToVerify: input.ServerNameToVerify }));
|
|
9199
9080
|
};
|
|
9200
9081
|
var deserializeAws_restJson1__listOf__string = function (output, context) {
|
|
9201
9082
|
var retVal = (output || [])
|
|
@@ -9352,28 +9233,18 @@ var deserializeAws_restJson1Api = function (output, context) {
|
|
|
9352
9233
|
ApiGatewayManaged: __expectBoolean(output.apiGatewayManaged),
|
|
9353
9234
|
ApiId: __expectString(output.apiId),
|
|
9354
9235
|
ApiKeySelectionExpression: __expectString(output.apiKeySelectionExpression),
|
|
9355
|
-
CorsConfiguration: output.corsConfiguration
|
|
9356
|
-
|
|
9357
|
-
: undefined,
|
|
9358
|
-
CreatedDate: output.createdDate !== undefined && output.createdDate !== null
|
|
9359
|
-
? __expectNonNull(__parseRfc3339DateTime(output.createdDate))
|
|
9360
|
-
: undefined,
|
|
9236
|
+
CorsConfiguration: output.corsConfiguration != null ? deserializeAws_restJson1Cors(output.corsConfiguration, context) : undefined,
|
|
9237
|
+
CreatedDate: output.createdDate != null ? __expectNonNull(__parseRfc3339DateTime(output.createdDate)) : undefined,
|
|
9361
9238
|
Description: __expectString(output.description),
|
|
9362
9239
|
DisableExecuteApiEndpoint: __expectBoolean(output.disableExecuteApiEndpoint),
|
|
9363
9240
|
DisableSchemaValidation: __expectBoolean(output.disableSchemaValidation),
|
|
9364
|
-
ImportInfo: output.importInfo
|
|
9365
|
-
? deserializeAws_restJson1__listOf__string(output.importInfo, context)
|
|
9366
|
-
: undefined,
|
|
9241
|
+
ImportInfo: output.importInfo != null ? deserializeAws_restJson1__listOf__string(output.importInfo, context) : undefined,
|
|
9367
9242
|
Name: __expectString(output.name),
|
|
9368
9243
|
ProtocolType: __expectString(output.protocolType),
|
|
9369
9244
|
RouteSelectionExpression: __expectString(output.routeSelectionExpression),
|
|
9370
|
-
Tags: output.tags
|
|
9371
|
-
? deserializeAws_restJson1Tags(output.tags, context)
|
|
9372
|
-
: undefined,
|
|
9245
|
+
Tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
|
|
9373
9246
|
Version: __expectString(output.version),
|
|
9374
|
-
Warnings: output.warnings
|
|
9375
|
-
? deserializeAws_restJson1__listOf__string(output.warnings, context)
|
|
9376
|
-
: undefined,
|
|
9247
|
+
Warnings: output.warnings != null ? deserializeAws_restJson1__listOf__string(output.warnings, context) : undefined,
|
|
9377
9248
|
};
|
|
9378
9249
|
};
|
|
9379
9250
|
var deserializeAws_restJson1ApiMapping = function (output, context) {
|
|
@@ -9404,11 +9275,11 @@ var deserializeAws_restJson1Authorizer = function (output, context) {
|
|
|
9404
9275
|
AuthorizerType: __expectString(output.authorizerType),
|
|
9405
9276
|
AuthorizerUri: __expectString(output.authorizerUri),
|
|
9406
9277
|
EnableSimpleResponses: __expectBoolean(output.enableSimpleResponses),
|
|
9407
|
-
IdentitySource: output.identitySource
|
|
9278
|
+
IdentitySource: output.identitySource != null
|
|
9408
9279
|
? deserializeAws_restJson1IdentitySourceList(output.identitySource, context)
|
|
9409
9280
|
: undefined,
|
|
9410
9281
|
IdentityValidationExpression: __expectString(output.identityValidationExpression),
|
|
9411
|
-
JwtConfiguration: output.jwtConfiguration
|
|
9282
|
+
JwtConfiguration: output.jwtConfiguration != null
|
|
9412
9283
|
? deserializeAws_restJson1JWTConfiguration(output.jwtConfiguration, context)
|
|
9413
9284
|
: undefined,
|
|
9414
9285
|
Name: __expectString(output.name),
|
|
@@ -9417,18 +9288,10 @@ var deserializeAws_restJson1Authorizer = function (output, context) {
|
|
|
9417
9288
|
var deserializeAws_restJson1Cors = function (output, context) {
|
|
9418
9289
|
return {
|
|
9419
9290
|
AllowCredentials: __expectBoolean(output.allowCredentials),
|
|
9420
|
-
AllowHeaders: output.allowHeaders
|
|
9421
|
-
|
|
9422
|
-
|
|
9423
|
-
|
|
9424
|
-
? deserializeAws_restJson1CorsMethodList(output.allowMethods, context)
|
|
9425
|
-
: undefined,
|
|
9426
|
-
AllowOrigins: output.allowOrigins !== undefined && output.allowOrigins !== null
|
|
9427
|
-
? deserializeAws_restJson1CorsOriginList(output.allowOrigins, context)
|
|
9428
|
-
: undefined,
|
|
9429
|
-
ExposeHeaders: output.exposeHeaders !== undefined && output.exposeHeaders !== null
|
|
9430
|
-
? deserializeAws_restJson1CorsHeaderList(output.exposeHeaders, context)
|
|
9431
|
-
: undefined,
|
|
9291
|
+
AllowHeaders: output.allowHeaders != null ? deserializeAws_restJson1CorsHeaderList(output.allowHeaders, context) : undefined,
|
|
9292
|
+
AllowMethods: output.allowMethods != null ? deserializeAws_restJson1CorsMethodList(output.allowMethods, context) : undefined,
|
|
9293
|
+
AllowOrigins: output.allowOrigins != null ? deserializeAws_restJson1CorsOriginList(output.allowOrigins, context) : undefined,
|
|
9294
|
+
ExposeHeaders: output.exposeHeaders != null ? deserializeAws_restJson1CorsHeaderList(output.exposeHeaders, context) : undefined,
|
|
9432
9295
|
MaxAge: __expectInt32(output.maxAge),
|
|
9433
9296
|
};
|
|
9434
9297
|
};
|
|
@@ -9468,9 +9331,7 @@ var deserializeAws_restJson1CorsOriginList = function (output, context) {
|
|
|
9468
9331
|
var deserializeAws_restJson1Deployment = function (output, context) {
|
|
9469
9332
|
return {
|
|
9470
9333
|
AutoDeployed: __expectBoolean(output.autoDeployed),
|
|
9471
|
-
CreatedDate: output.createdDate
|
|
9472
|
-
? __expectNonNull(__parseRfc3339DateTime(output.createdDate))
|
|
9473
|
-
: undefined,
|
|
9334
|
+
CreatedDate: output.createdDate != null ? __expectNonNull(__parseRfc3339DateTime(output.createdDate)) : undefined,
|
|
9474
9335
|
DeploymentId: __expectString(output.deploymentId),
|
|
9475
9336
|
DeploymentStatus: __expectString(output.deploymentStatus),
|
|
9476
9337
|
DeploymentStatusMessage: __expectString(output.deploymentStatusMessage),
|
|
@@ -9481,15 +9342,13 @@ var deserializeAws_restJson1DomainName = function (output, context) {
|
|
|
9481
9342
|
return {
|
|
9482
9343
|
ApiMappingSelectionExpression: __expectString(output.apiMappingSelectionExpression),
|
|
9483
9344
|
DomainName: __expectString(output.domainName),
|
|
9484
|
-
DomainNameConfigurations: output.domainNameConfigurations
|
|
9345
|
+
DomainNameConfigurations: output.domainNameConfigurations != null
|
|
9485
9346
|
? deserializeAws_restJson1DomainNameConfigurations(output.domainNameConfigurations, context)
|
|
9486
9347
|
: undefined,
|
|
9487
|
-
MutualTlsAuthentication: output.mutualTlsAuthentication
|
|
9348
|
+
MutualTlsAuthentication: output.mutualTlsAuthentication != null
|
|
9488
9349
|
? deserializeAws_restJson1MutualTlsAuthentication(output.mutualTlsAuthentication, context)
|
|
9489
9350
|
: undefined,
|
|
9490
|
-
Tags: output.tags
|
|
9491
|
-
? deserializeAws_restJson1Tags(output.tags, context)
|
|
9492
|
-
: undefined,
|
|
9351
|
+
Tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
|
|
9493
9352
|
};
|
|
9494
9353
|
};
|
|
9495
9354
|
var deserializeAws_restJson1DomainNameConfiguration = function (output, context) {
|
|
@@ -9497,7 +9356,7 @@ var deserializeAws_restJson1DomainNameConfiguration = function (output, context)
|
|
|
9497
9356
|
ApiGatewayDomainName: __expectString(output.apiGatewayDomainName),
|
|
9498
9357
|
CertificateArn: __expectString(output.certificateArn),
|
|
9499
9358
|
CertificateName: __expectString(output.certificateName),
|
|
9500
|
-
CertificateUploadDate: output.certificateUploadDate
|
|
9359
|
+
CertificateUploadDate: output.certificateUploadDate != null
|
|
9501
9360
|
? __expectNonNull(__parseRfc3339DateTime(output.certificateUploadDate))
|
|
9502
9361
|
: undefined,
|
|
9503
9362
|
DomainNameStatus: __expectString(output.domainNameStatus),
|
|
@@ -9546,20 +9405,18 @@ var deserializeAws_restJson1Integration = function (output, context) {
|
|
|
9546
9405
|
IntegrationUri: __expectString(output.integrationUri),
|
|
9547
9406
|
PassthroughBehavior: __expectString(output.passthroughBehavior),
|
|
9548
9407
|
PayloadFormatVersion: __expectString(output.payloadFormatVersion),
|
|
9549
|
-
RequestParameters: output.requestParameters
|
|
9408
|
+
RequestParameters: output.requestParameters != null
|
|
9550
9409
|
? deserializeAws_restJson1IntegrationParameters(output.requestParameters, context)
|
|
9551
9410
|
: undefined,
|
|
9552
|
-
RequestTemplates: output.requestTemplates
|
|
9411
|
+
RequestTemplates: output.requestTemplates != null
|
|
9553
9412
|
? deserializeAws_restJson1TemplateMap(output.requestTemplates, context)
|
|
9554
9413
|
: undefined,
|
|
9555
|
-
ResponseParameters: output.responseParameters
|
|
9414
|
+
ResponseParameters: output.responseParameters != null
|
|
9556
9415
|
? deserializeAws_restJson1ResponseParameters(output.responseParameters, context)
|
|
9557
9416
|
: undefined,
|
|
9558
9417
|
TemplateSelectionExpression: __expectString(output.templateSelectionExpression),
|
|
9559
9418
|
TimeoutInMillis: __expectInt32(output.timeoutInMillis),
|
|
9560
|
-
TlsConfig: output.tlsConfig
|
|
9561
|
-
? deserializeAws_restJson1TlsConfig(output.tlsConfig, context)
|
|
9562
|
-
: undefined,
|
|
9419
|
+
TlsConfig: output.tlsConfig != null ? deserializeAws_restJson1TlsConfig(output.tlsConfig, context) : undefined,
|
|
9563
9420
|
};
|
|
9564
9421
|
};
|
|
9565
9422
|
var deserializeAws_restJson1IntegrationParameters = function (output, context) {
|
|
@@ -9577,10 +9434,10 @@ var deserializeAws_restJson1IntegrationResponse = function (output, context) {
|
|
|
9577
9434
|
ContentHandlingStrategy: __expectString(output.contentHandlingStrategy),
|
|
9578
9435
|
IntegrationResponseId: __expectString(output.integrationResponseId),
|
|
9579
9436
|
IntegrationResponseKey: __expectString(output.integrationResponseKey),
|
|
9580
|
-
ResponseParameters: output.responseParameters
|
|
9437
|
+
ResponseParameters: output.responseParameters != null
|
|
9581
9438
|
? deserializeAws_restJson1IntegrationParameters(output.responseParameters, context)
|
|
9582
9439
|
: undefined,
|
|
9583
|
-
ResponseTemplates: output.responseTemplates
|
|
9440
|
+
ResponseTemplates: output.responseTemplates != null
|
|
9584
9441
|
? deserializeAws_restJson1TemplateMap(output.responseTemplates, context)
|
|
9585
9442
|
: undefined,
|
|
9586
9443
|
TemplateSelectionExpression: __expectString(output.templateSelectionExpression),
|
|
@@ -9588,9 +9445,7 @@ var deserializeAws_restJson1IntegrationResponse = function (output, context) {
|
|
|
9588
9445
|
};
|
|
9589
9446
|
var deserializeAws_restJson1JWTConfiguration = function (output, context) {
|
|
9590
9447
|
return {
|
|
9591
|
-
Audience: output.audience
|
|
9592
|
-
? deserializeAws_restJson1__listOf__string(output.audience, context)
|
|
9593
|
-
: undefined,
|
|
9448
|
+
Audience: output.audience != null ? deserializeAws_restJson1__listOf__string(output.audience, context) : undefined,
|
|
9594
9449
|
Issuer: __expectString(output.issuer),
|
|
9595
9450
|
};
|
|
9596
9451
|
};
|
|
@@ -9607,7 +9462,7 @@ var deserializeAws_restJson1MutualTlsAuthentication = function (output, context)
|
|
|
9607
9462
|
return {
|
|
9608
9463
|
TruststoreUri: __expectString(output.truststoreUri),
|
|
9609
9464
|
TruststoreVersion: __expectString(output.truststoreVersion),
|
|
9610
|
-
TruststoreWarnings: output.truststoreWarnings
|
|
9465
|
+
TruststoreWarnings: output.truststoreWarnings != null
|
|
9611
9466
|
? deserializeAws_restJson1__listOf__string(output.truststoreWarnings, context)
|
|
9612
9467
|
: undefined,
|
|
9613
9468
|
};
|
|
@@ -9631,17 +9486,15 @@ var deserializeAws_restJson1Route = function (output, context) {
|
|
|
9631
9486
|
return {
|
|
9632
9487
|
ApiGatewayManaged: __expectBoolean(output.apiGatewayManaged),
|
|
9633
9488
|
ApiKeyRequired: __expectBoolean(output.apiKeyRequired),
|
|
9634
|
-
AuthorizationScopes: output.authorizationScopes
|
|
9489
|
+
AuthorizationScopes: output.authorizationScopes != null
|
|
9635
9490
|
? deserializeAws_restJson1AuthorizationScopes(output.authorizationScopes, context)
|
|
9636
9491
|
: undefined,
|
|
9637
9492
|
AuthorizationType: __expectString(output.authorizationType),
|
|
9638
9493
|
AuthorizerId: __expectString(output.authorizerId),
|
|
9639
9494
|
ModelSelectionExpression: __expectString(output.modelSelectionExpression),
|
|
9640
9495
|
OperationName: __expectString(output.operationName),
|
|
9641
|
-
RequestModels: output.requestModels
|
|
9642
|
-
|
|
9643
|
-
: undefined,
|
|
9644
|
-
RequestParameters: output.requestParameters !== undefined && output.requestParameters !== null
|
|
9496
|
+
RequestModels: output.requestModels != null ? deserializeAws_restJson1RouteModels(output.requestModels, context) : undefined,
|
|
9497
|
+
RequestParameters: output.requestParameters != null
|
|
9645
9498
|
? deserializeAws_restJson1RouteParameters(output.requestParameters, context)
|
|
9646
9499
|
: undefined,
|
|
9647
9500
|
RouteId: __expectString(output.routeId),
|
|
@@ -9673,10 +9526,8 @@ var deserializeAws_restJson1RouteParameters = function (output, context) {
|
|
|
9673
9526
|
var deserializeAws_restJson1RouteResponse = function (output, context) {
|
|
9674
9527
|
return {
|
|
9675
9528
|
ModelSelectionExpression: __expectString(output.modelSelectionExpression),
|
|
9676
|
-
ResponseModels: output.responseModels
|
|
9677
|
-
|
|
9678
|
-
: undefined,
|
|
9679
|
-
ResponseParameters: output.responseParameters !== undefined && output.responseParameters !== null
|
|
9529
|
+
ResponseModels: output.responseModels != null ? deserializeAws_restJson1RouteModels(output.responseModels, context) : undefined,
|
|
9530
|
+
ResponseParameters: output.responseParameters != null
|
|
9680
9531
|
? deserializeAws_restJson1RouteParameters(output.responseParameters, context)
|
|
9681
9532
|
: undefined,
|
|
9682
9533
|
RouteResponseId: __expectString(output.routeResponseId),
|
|
@@ -9715,34 +9566,28 @@ var deserializeAws_restJson1SecurityGroupIdList = function (output, context) {
|
|
|
9715
9566
|
};
|
|
9716
9567
|
var deserializeAws_restJson1Stage = function (output, context) {
|
|
9717
9568
|
return {
|
|
9718
|
-
AccessLogSettings: output.accessLogSettings
|
|
9569
|
+
AccessLogSettings: output.accessLogSettings != null
|
|
9719
9570
|
? deserializeAws_restJson1AccessLogSettings(output.accessLogSettings, context)
|
|
9720
9571
|
: undefined,
|
|
9721
9572
|
ApiGatewayManaged: __expectBoolean(output.apiGatewayManaged),
|
|
9722
9573
|
AutoDeploy: __expectBoolean(output.autoDeploy),
|
|
9723
9574
|
ClientCertificateId: __expectString(output.clientCertificateId),
|
|
9724
|
-
CreatedDate: output.createdDate
|
|
9725
|
-
|
|
9726
|
-
: undefined,
|
|
9727
|
-
DefaultRouteSettings: output.defaultRouteSettings !== undefined && output.defaultRouteSettings !== null
|
|
9575
|
+
CreatedDate: output.createdDate != null ? __expectNonNull(__parseRfc3339DateTime(output.createdDate)) : undefined,
|
|
9576
|
+
DefaultRouteSettings: output.defaultRouteSettings != null
|
|
9728
9577
|
? deserializeAws_restJson1RouteSettings(output.defaultRouteSettings, context)
|
|
9729
9578
|
: undefined,
|
|
9730
9579
|
DeploymentId: __expectString(output.deploymentId),
|
|
9731
9580
|
Description: __expectString(output.description),
|
|
9732
9581
|
LastDeploymentStatusMessage: __expectString(output.lastDeploymentStatusMessage),
|
|
9733
|
-
LastUpdatedDate: output.lastUpdatedDate
|
|
9734
|
-
|
|
9735
|
-
: undefined,
|
|
9736
|
-
RouteSettings: output.routeSettings !== undefined && output.routeSettings !== null
|
|
9582
|
+
LastUpdatedDate: output.lastUpdatedDate != null ? __expectNonNull(__parseRfc3339DateTime(output.lastUpdatedDate)) : undefined,
|
|
9583
|
+
RouteSettings: output.routeSettings != null
|
|
9737
9584
|
? deserializeAws_restJson1RouteSettingsMap(output.routeSettings, context)
|
|
9738
9585
|
: undefined,
|
|
9739
9586
|
StageName: __expectString(output.stageName),
|
|
9740
|
-
StageVariables: output.stageVariables
|
|
9587
|
+
StageVariables: output.stageVariables != null
|
|
9741
9588
|
? deserializeAws_restJson1StageVariablesMap(output.stageVariables, context)
|
|
9742
9589
|
: undefined,
|
|
9743
|
-
Tags: output.tags
|
|
9744
|
-
? deserializeAws_restJson1Tags(output.tags, context)
|
|
9745
|
-
: undefined,
|
|
9590
|
+
Tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
|
|
9746
9591
|
};
|
|
9747
9592
|
};
|
|
9748
9593
|
var deserializeAws_restJson1StageVariablesMap = function (output, context) {
|
|
@@ -9793,19 +9638,13 @@ var deserializeAws_restJson1TlsConfig = function (output, context) {
|
|
|
9793
9638
|
};
|
|
9794
9639
|
var deserializeAws_restJson1VpcLink = function (output, context) {
|
|
9795
9640
|
return {
|
|
9796
|
-
CreatedDate: output.createdDate
|
|
9797
|
-
? __expectNonNull(__parseRfc3339DateTime(output.createdDate))
|
|
9798
|
-
: undefined,
|
|
9641
|
+
CreatedDate: output.createdDate != null ? __expectNonNull(__parseRfc3339DateTime(output.createdDate)) : undefined,
|
|
9799
9642
|
Name: __expectString(output.name),
|
|
9800
|
-
SecurityGroupIds: output.securityGroupIds
|
|
9643
|
+
SecurityGroupIds: output.securityGroupIds != null
|
|
9801
9644
|
? deserializeAws_restJson1SecurityGroupIdList(output.securityGroupIds, context)
|
|
9802
9645
|
: undefined,
|
|
9803
|
-
SubnetIds: output.subnetIds
|
|
9804
|
-
|
|
9805
|
-
: undefined,
|
|
9806
|
-
Tags: output.tags !== undefined && output.tags !== null
|
|
9807
|
-
? deserializeAws_restJson1Tags(output.tags, context)
|
|
9808
|
-
: undefined,
|
|
9646
|
+
SubnetIds: output.subnetIds != null ? deserializeAws_restJson1SubnetIdList(output.subnetIds, context) : undefined,
|
|
9647
|
+
Tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
|
|
9809
9648
|
VpcLinkId: __expectString(output.vpcLinkId),
|
|
9810
9649
|
VpcLinkStatus: __expectString(output.vpcLinkStatus),
|
|
9811
9650
|
VpcLinkStatusMessage: __expectString(output.vpcLinkStatusMessage),
|