@aws-sdk/client-apigatewayv2 3.489.0 → 3.495.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/dist-cjs/ApiGatewayV2.js +1 -155
- package/dist-cjs/ApiGatewayV2Client.js +1 -43
- package/dist-cjs/commands/CreateApiCommand.js +1 -28
- package/dist-cjs/commands/CreateApiMappingCommand.js +1 -28
- package/dist-cjs/commands/CreateAuthorizerCommand.js +1 -28
- package/dist-cjs/commands/CreateDeploymentCommand.js +1 -28
- package/dist-cjs/commands/CreateDomainNameCommand.js +1 -28
- package/dist-cjs/commands/CreateIntegrationCommand.js +1 -28
- package/dist-cjs/commands/CreateIntegrationResponseCommand.js +1 -28
- package/dist-cjs/commands/CreateModelCommand.js +1 -28
- package/dist-cjs/commands/CreateRouteCommand.js +1 -28
- package/dist-cjs/commands/CreateRouteResponseCommand.js +1 -28
- package/dist-cjs/commands/CreateStageCommand.js +1 -28
- package/dist-cjs/commands/CreateVpcLinkCommand.js +1 -28
- package/dist-cjs/commands/DeleteAccessLogSettingsCommand.js +1 -28
- package/dist-cjs/commands/DeleteApiCommand.js +1 -28
- package/dist-cjs/commands/DeleteApiMappingCommand.js +1 -28
- package/dist-cjs/commands/DeleteAuthorizerCommand.js +1 -28
- package/dist-cjs/commands/DeleteCorsConfigurationCommand.js +1 -28
- package/dist-cjs/commands/DeleteDeploymentCommand.js +1 -28
- package/dist-cjs/commands/DeleteDomainNameCommand.js +1 -28
- package/dist-cjs/commands/DeleteIntegrationCommand.js +1 -28
- package/dist-cjs/commands/DeleteIntegrationResponseCommand.js +1 -28
- package/dist-cjs/commands/DeleteModelCommand.js +1 -28
- package/dist-cjs/commands/DeleteRouteCommand.js +1 -28
- package/dist-cjs/commands/DeleteRouteRequestParameterCommand.js +1 -28
- package/dist-cjs/commands/DeleteRouteResponseCommand.js +1 -28
- package/dist-cjs/commands/DeleteRouteSettingsCommand.js +1 -28
- package/dist-cjs/commands/DeleteStageCommand.js +1 -28
- package/dist-cjs/commands/DeleteVpcLinkCommand.js +1 -28
- package/dist-cjs/commands/ExportApiCommand.js +1 -28
- package/dist-cjs/commands/GetApiCommand.js +1 -28
- package/dist-cjs/commands/GetApiMappingCommand.js +1 -28
- package/dist-cjs/commands/GetApiMappingsCommand.js +1 -28
- package/dist-cjs/commands/GetApisCommand.js +1 -28
- package/dist-cjs/commands/GetAuthorizerCommand.js +1 -28
- package/dist-cjs/commands/GetAuthorizersCommand.js +1 -28
- package/dist-cjs/commands/GetDeploymentCommand.js +1 -28
- package/dist-cjs/commands/GetDeploymentsCommand.js +1 -28
- package/dist-cjs/commands/GetDomainNameCommand.js +1 -28
- package/dist-cjs/commands/GetDomainNamesCommand.js +1 -28
- package/dist-cjs/commands/GetIntegrationCommand.js +1 -28
- package/dist-cjs/commands/GetIntegrationResponseCommand.js +1 -28
- package/dist-cjs/commands/GetIntegrationResponsesCommand.js +1 -28
- package/dist-cjs/commands/GetIntegrationsCommand.js +1 -28
- package/dist-cjs/commands/GetModelCommand.js +1 -28
- package/dist-cjs/commands/GetModelTemplateCommand.js +1 -28
- package/dist-cjs/commands/GetModelsCommand.js +1 -28
- package/dist-cjs/commands/GetRouteCommand.js +1 -28
- package/dist-cjs/commands/GetRouteResponseCommand.js +1 -28
- package/dist-cjs/commands/GetRouteResponsesCommand.js +1 -28
- package/dist-cjs/commands/GetRoutesCommand.js +1 -28
- package/dist-cjs/commands/GetStageCommand.js +1 -28
- package/dist-cjs/commands/GetStagesCommand.js +1 -28
- package/dist-cjs/commands/GetTagsCommand.js +1 -28
- package/dist-cjs/commands/GetVpcLinkCommand.js +1 -28
- package/dist-cjs/commands/GetVpcLinksCommand.js +1 -28
- package/dist-cjs/commands/ImportApiCommand.js +1 -28
- package/dist-cjs/commands/ReimportApiCommand.js +1 -28
- package/dist-cjs/commands/ResetAuthorizersCacheCommand.js +1 -28
- package/dist-cjs/commands/TagResourceCommand.js +1 -28
- package/dist-cjs/commands/UntagResourceCommand.js +1 -28
- package/dist-cjs/commands/UpdateApiCommand.js +1 -28
- package/dist-cjs/commands/UpdateApiMappingCommand.js +1 -28
- package/dist-cjs/commands/UpdateAuthorizerCommand.js +1 -28
- package/dist-cjs/commands/UpdateDeploymentCommand.js +1 -28
- package/dist-cjs/commands/UpdateDomainNameCommand.js +1 -28
- package/dist-cjs/commands/UpdateIntegrationCommand.js +1 -28
- package/dist-cjs/commands/UpdateIntegrationResponseCommand.js +1 -28
- package/dist-cjs/commands/UpdateModelCommand.js +1 -28
- package/dist-cjs/commands/UpdateRouteCommand.js +1 -28
- package/dist-cjs/commands/UpdateRouteResponseCommand.js +1 -28
- package/dist-cjs/commands/UpdateStageCommand.js +1 -28
- package/dist-cjs/commands/UpdateVpcLinkCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -75
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +6492 -10
- package/dist-cjs/models/ApiGatewayV2ServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -144
- package/dist-cjs/protocols/Aws_restJson1.js +1 -4827
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +41 -41
|
@@ -1,4827 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.se_GetRoutesCommand = exports.se_GetRouteResponsesCommand = exports.se_GetRouteResponseCommand = exports.se_GetRouteCommand = exports.se_GetModelTemplateCommand = exports.se_GetModelsCommand = exports.se_GetModelCommand = exports.se_GetIntegrationsCommand = exports.se_GetIntegrationResponsesCommand = exports.se_GetIntegrationResponseCommand = exports.se_GetIntegrationCommand = exports.se_GetDomainNamesCommand = exports.se_GetDomainNameCommand = exports.se_GetDeploymentsCommand = exports.se_GetDeploymentCommand = exports.se_GetAuthorizersCommand = exports.se_GetAuthorizerCommand = exports.se_GetApisCommand = exports.se_GetApiMappingsCommand = exports.se_GetApiMappingCommand = exports.se_GetApiCommand = exports.se_ExportApiCommand = exports.se_DeleteVpcLinkCommand = exports.se_DeleteStageCommand = exports.se_DeleteRouteSettingsCommand = exports.se_DeleteRouteResponseCommand = exports.se_DeleteRouteRequestParameterCommand = exports.se_DeleteRouteCommand = exports.se_DeleteModelCommand = exports.se_DeleteIntegrationResponseCommand = exports.se_DeleteIntegrationCommand = exports.se_DeleteDomainNameCommand = exports.se_DeleteDeploymentCommand = exports.se_DeleteCorsConfigurationCommand = exports.se_DeleteAuthorizerCommand = exports.se_DeleteApiMappingCommand = exports.se_DeleteApiCommand = exports.se_DeleteAccessLogSettingsCommand = exports.se_CreateVpcLinkCommand = exports.se_CreateStageCommand = exports.se_CreateRouteResponseCommand = exports.se_CreateRouteCommand = exports.se_CreateModelCommand = exports.se_CreateIntegrationResponseCommand = exports.se_CreateIntegrationCommand = exports.se_CreateDomainNameCommand = exports.se_CreateDeploymentCommand = exports.se_CreateAuthorizerCommand = exports.se_CreateApiMappingCommand = exports.se_CreateApiCommand = void 0;
|
|
4
|
-
exports.de_DeleteVpcLinkCommand = exports.de_DeleteStageCommand = exports.de_DeleteRouteSettingsCommand = exports.de_DeleteRouteResponseCommand = exports.de_DeleteRouteRequestParameterCommand = exports.de_DeleteRouteCommand = exports.de_DeleteModelCommand = exports.de_DeleteIntegrationResponseCommand = exports.de_DeleteIntegrationCommand = exports.de_DeleteDomainNameCommand = exports.de_DeleteDeploymentCommand = exports.de_DeleteCorsConfigurationCommand = exports.de_DeleteAuthorizerCommand = exports.de_DeleteApiMappingCommand = exports.de_DeleteApiCommand = exports.de_DeleteAccessLogSettingsCommand = exports.de_CreateVpcLinkCommand = exports.de_CreateStageCommand = exports.de_CreateRouteResponseCommand = exports.de_CreateRouteCommand = exports.de_CreateModelCommand = exports.de_CreateIntegrationResponseCommand = exports.de_CreateIntegrationCommand = exports.de_CreateDomainNameCommand = exports.de_CreateDeploymentCommand = exports.de_CreateAuthorizerCommand = exports.de_CreateApiMappingCommand = exports.de_CreateApiCommand = exports.se_UpdateVpcLinkCommand = exports.se_UpdateStageCommand = exports.se_UpdateRouteResponseCommand = exports.se_UpdateRouteCommand = exports.se_UpdateModelCommand = exports.se_UpdateIntegrationResponseCommand = exports.se_UpdateIntegrationCommand = exports.se_UpdateDomainNameCommand = exports.se_UpdateDeploymentCommand = exports.se_UpdateAuthorizerCommand = exports.se_UpdateApiMappingCommand = exports.se_UpdateApiCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_ResetAuthorizersCacheCommand = exports.se_ReimportApiCommand = exports.se_ImportApiCommand = exports.se_GetVpcLinksCommand = exports.se_GetVpcLinkCommand = exports.se_GetTagsCommand = exports.se_GetStagesCommand = exports.se_GetStageCommand = void 0;
|
|
5
|
-
exports.de_UpdateVpcLinkCommand = exports.de_UpdateStageCommand = exports.de_UpdateRouteResponseCommand = exports.de_UpdateRouteCommand = exports.de_UpdateModelCommand = exports.de_UpdateIntegrationResponseCommand = exports.de_UpdateIntegrationCommand = exports.de_UpdateDomainNameCommand = exports.de_UpdateDeploymentCommand = exports.de_UpdateAuthorizerCommand = exports.de_UpdateApiMappingCommand = exports.de_UpdateApiCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_ResetAuthorizersCacheCommand = exports.de_ReimportApiCommand = exports.de_ImportApiCommand = exports.de_GetVpcLinksCommand = exports.de_GetVpcLinkCommand = exports.de_GetTagsCommand = exports.de_GetStagesCommand = exports.de_GetStageCommand = exports.de_GetRoutesCommand = exports.de_GetRouteResponsesCommand = exports.de_GetRouteResponseCommand = exports.de_GetRouteCommand = exports.de_GetModelTemplateCommand = exports.de_GetModelsCommand = exports.de_GetModelCommand = exports.de_GetIntegrationsCommand = exports.de_GetIntegrationResponsesCommand = exports.de_GetIntegrationResponseCommand = exports.de_GetIntegrationCommand = exports.de_GetDomainNamesCommand = exports.de_GetDomainNameCommand = exports.de_GetDeploymentsCommand = exports.de_GetDeploymentCommand = exports.de_GetAuthorizersCommand = exports.de_GetAuthorizerCommand = exports.de_GetApisCommand = exports.de_GetApiMappingsCommand = exports.de_GetApiMappingCommand = exports.de_GetApiCommand = exports.de_ExportApiCommand = void 0;
|
|
6
|
-
const core_1 = require("@smithy/core");
|
|
7
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
8
|
-
const ApiGatewayV2ServiceException_1 = require("../models/ApiGatewayV2ServiceException");
|
|
9
|
-
const models_0_1 = require("../models/models_0");
|
|
10
|
-
const se_CreateApiCommand = async (input, context) => {
|
|
11
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
12
|
-
const headers = {
|
|
13
|
-
"content-type": "application/json",
|
|
14
|
-
};
|
|
15
|
-
b.bp("/v2/apis");
|
|
16
|
-
let body;
|
|
17
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
18
|
-
apiKeySelectionExpression: [, , `ApiKeySelectionExpression`],
|
|
19
|
-
corsConfiguration: [, (_) => se_Cors(_, context), `CorsConfiguration`],
|
|
20
|
-
credentialsArn: [, , `CredentialsArn`],
|
|
21
|
-
description: [, , `Description`],
|
|
22
|
-
disableExecuteApiEndpoint: [, , `DisableExecuteApiEndpoint`],
|
|
23
|
-
disableSchemaValidation: [, , `DisableSchemaValidation`],
|
|
24
|
-
name: [, , `Name`],
|
|
25
|
-
protocolType: [, , `ProtocolType`],
|
|
26
|
-
routeKey: [, , `RouteKey`],
|
|
27
|
-
routeSelectionExpression: [, , `RouteSelectionExpression`],
|
|
28
|
-
tags: [, (_) => (0, smithy_client_1._json)(_), `Tags`],
|
|
29
|
-
target: [, , `Target`],
|
|
30
|
-
version: [, , `Version`],
|
|
31
|
-
}));
|
|
32
|
-
b.m("POST").h(headers).b(body);
|
|
33
|
-
return b.build();
|
|
34
|
-
};
|
|
35
|
-
exports.se_CreateApiCommand = se_CreateApiCommand;
|
|
36
|
-
const se_CreateApiMappingCommand = async (input, context) => {
|
|
37
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
38
|
-
const headers = {
|
|
39
|
-
"content-type": "application/json",
|
|
40
|
-
};
|
|
41
|
-
b.bp("/v2/domainnames/{DomainName}/apimappings");
|
|
42
|
-
b.p("DomainName", () => input.DomainName, "{DomainName}", false);
|
|
43
|
-
let body;
|
|
44
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
45
|
-
apiId: [, , `ApiId`],
|
|
46
|
-
apiMappingKey: [, , `ApiMappingKey`],
|
|
47
|
-
stage: [, , `Stage`],
|
|
48
|
-
}));
|
|
49
|
-
b.m("POST").h(headers).b(body);
|
|
50
|
-
return b.build();
|
|
51
|
-
};
|
|
52
|
-
exports.se_CreateApiMappingCommand = se_CreateApiMappingCommand;
|
|
53
|
-
const se_CreateAuthorizerCommand = async (input, context) => {
|
|
54
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
55
|
-
const headers = {
|
|
56
|
-
"content-type": "application/json",
|
|
57
|
-
};
|
|
58
|
-
b.bp("/v2/apis/{ApiId}/authorizers");
|
|
59
|
-
b.p("ApiId", () => input.ApiId, "{ApiId}", false);
|
|
60
|
-
let body;
|
|
61
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
62
|
-
authorizerCredentialsArn: [, , `AuthorizerCredentialsArn`],
|
|
63
|
-
authorizerPayloadFormatVersion: [, , `AuthorizerPayloadFormatVersion`],
|
|
64
|
-
authorizerResultTtlInSeconds: [, , `AuthorizerResultTtlInSeconds`],
|
|
65
|
-
authorizerType: [, , `AuthorizerType`],
|
|
66
|
-
authorizerUri: [, , `AuthorizerUri`],
|
|
67
|
-
enableSimpleResponses: [, , `EnableSimpleResponses`],
|
|
68
|
-
identitySource: [, (_) => (0, smithy_client_1._json)(_), `IdentitySource`],
|
|
69
|
-
identityValidationExpression: [, , `IdentityValidationExpression`],
|
|
70
|
-
jwtConfiguration: [, (_) => se_JWTConfiguration(_, context), `JwtConfiguration`],
|
|
71
|
-
name: [, , `Name`],
|
|
72
|
-
}));
|
|
73
|
-
b.m("POST").h(headers).b(body);
|
|
74
|
-
return b.build();
|
|
75
|
-
};
|
|
76
|
-
exports.se_CreateAuthorizerCommand = se_CreateAuthorizerCommand;
|
|
77
|
-
const se_CreateDeploymentCommand = async (input, context) => {
|
|
78
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
79
|
-
const headers = {
|
|
80
|
-
"content-type": "application/json",
|
|
81
|
-
};
|
|
82
|
-
b.bp("/v2/apis/{ApiId}/deployments");
|
|
83
|
-
b.p("ApiId", () => input.ApiId, "{ApiId}", false);
|
|
84
|
-
let body;
|
|
85
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
86
|
-
description: [, , `Description`],
|
|
87
|
-
stageName: [, , `StageName`],
|
|
88
|
-
}));
|
|
89
|
-
b.m("POST").h(headers).b(body);
|
|
90
|
-
return b.build();
|
|
91
|
-
};
|
|
92
|
-
exports.se_CreateDeploymentCommand = se_CreateDeploymentCommand;
|
|
93
|
-
const se_CreateDomainNameCommand = async (input, context) => {
|
|
94
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
95
|
-
const headers = {
|
|
96
|
-
"content-type": "application/json",
|
|
97
|
-
};
|
|
98
|
-
b.bp("/v2/domainnames");
|
|
99
|
-
let body;
|
|
100
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
101
|
-
domainName: [, , `DomainName`],
|
|
102
|
-
domainNameConfigurations: [, (_) => se_DomainNameConfigurations(_, context), `DomainNameConfigurations`],
|
|
103
|
-
mutualTlsAuthentication: [, (_) => se_MutualTlsAuthenticationInput(_, context), `MutualTlsAuthentication`],
|
|
104
|
-
tags: [, (_) => (0, smithy_client_1._json)(_), `Tags`],
|
|
105
|
-
}));
|
|
106
|
-
b.m("POST").h(headers).b(body);
|
|
107
|
-
return b.build();
|
|
108
|
-
};
|
|
109
|
-
exports.se_CreateDomainNameCommand = se_CreateDomainNameCommand;
|
|
110
|
-
const se_CreateIntegrationCommand = async (input, context) => {
|
|
111
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
112
|
-
const headers = {
|
|
113
|
-
"content-type": "application/json",
|
|
114
|
-
};
|
|
115
|
-
b.bp("/v2/apis/{ApiId}/integrations");
|
|
116
|
-
b.p("ApiId", () => input.ApiId, "{ApiId}", false);
|
|
117
|
-
let body;
|
|
118
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
119
|
-
connectionId: [, , `ConnectionId`],
|
|
120
|
-
connectionType: [, , `ConnectionType`],
|
|
121
|
-
contentHandlingStrategy: [, , `ContentHandlingStrategy`],
|
|
122
|
-
credentialsArn: [, , `CredentialsArn`],
|
|
123
|
-
description: [, , `Description`],
|
|
124
|
-
integrationMethod: [, , `IntegrationMethod`],
|
|
125
|
-
integrationSubtype: [, , `IntegrationSubtype`],
|
|
126
|
-
integrationType: [, , `IntegrationType`],
|
|
127
|
-
integrationUri: [, , `IntegrationUri`],
|
|
128
|
-
passthroughBehavior: [, , `PassthroughBehavior`],
|
|
129
|
-
payloadFormatVersion: [, , `PayloadFormatVersion`],
|
|
130
|
-
requestParameters: [, (_) => (0, smithy_client_1._json)(_), `RequestParameters`],
|
|
131
|
-
requestTemplates: [, (_) => (0, smithy_client_1._json)(_), `RequestTemplates`],
|
|
132
|
-
responseParameters: [, (_) => (0, smithy_client_1._json)(_), `ResponseParameters`],
|
|
133
|
-
templateSelectionExpression: [, , `TemplateSelectionExpression`],
|
|
134
|
-
timeoutInMillis: [, , `TimeoutInMillis`],
|
|
135
|
-
tlsConfig: [, (_) => se_TlsConfigInput(_, context), `TlsConfig`],
|
|
136
|
-
}));
|
|
137
|
-
b.m("POST").h(headers).b(body);
|
|
138
|
-
return b.build();
|
|
139
|
-
};
|
|
140
|
-
exports.se_CreateIntegrationCommand = se_CreateIntegrationCommand;
|
|
141
|
-
const se_CreateIntegrationResponseCommand = async (input, context) => {
|
|
142
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
143
|
-
const headers = {
|
|
144
|
-
"content-type": "application/json",
|
|
145
|
-
};
|
|
146
|
-
b.bp("/v2/apis/{ApiId}/integrations/{IntegrationId}/integrationresponses");
|
|
147
|
-
b.p("ApiId", () => input.ApiId, "{ApiId}", false);
|
|
148
|
-
b.p("IntegrationId", () => input.IntegrationId, "{IntegrationId}", false);
|
|
149
|
-
let body;
|
|
150
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
151
|
-
contentHandlingStrategy: [, , `ContentHandlingStrategy`],
|
|
152
|
-
integrationResponseKey: [, , `IntegrationResponseKey`],
|
|
153
|
-
responseParameters: [, (_) => (0, smithy_client_1._json)(_), `ResponseParameters`],
|
|
154
|
-
responseTemplates: [, (_) => (0, smithy_client_1._json)(_), `ResponseTemplates`],
|
|
155
|
-
templateSelectionExpression: [, , `TemplateSelectionExpression`],
|
|
156
|
-
}));
|
|
157
|
-
b.m("POST").h(headers).b(body);
|
|
158
|
-
return b.build();
|
|
159
|
-
};
|
|
160
|
-
exports.se_CreateIntegrationResponseCommand = se_CreateIntegrationResponseCommand;
|
|
161
|
-
const se_CreateModelCommand = async (input, context) => {
|
|
162
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
163
|
-
const headers = {
|
|
164
|
-
"content-type": "application/json",
|
|
165
|
-
};
|
|
166
|
-
b.bp("/v2/apis/{ApiId}/models");
|
|
167
|
-
b.p("ApiId", () => input.ApiId, "{ApiId}", false);
|
|
168
|
-
let body;
|
|
169
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
170
|
-
contentType: [, , `ContentType`],
|
|
171
|
-
description: [, , `Description`],
|
|
172
|
-
name: [, , `Name`],
|
|
173
|
-
schema: [, , `Schema`],
|
|
174
|
-
}));
|
|
175
|
-
b.m("POST").h(headers).b(body);
|
|
176
|
-
return b.build();
|
|
177
|
-
};
|
|
178
|
-
exports.se_CreateModelCommand = se_CreateModelCommand;
|
|
179
|
-
const se_CreateRouteCommand = async (input, context) => {
|
|
180
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
181
|
-
const headers = {
|
|
182
|
-
"content-type": "application/json",
|
|
183
|
-
};
|
|
184
|
-
b.bp("/v2/apis/{ApiId}/routes");
|
|
185
|
-
b.p("ApiId", () => input.ApiId, "{ApiId}", false);
|
|
186
|
-
let body;
|
|
187
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
188
|
-
apiKeyRequired: [, , `ApiKeyRequired`],
|
|
189
|
-
authorizationScopes: [, (_) => (0, smithy_client_1._json)(_), `AuthorizationScopes`],
|
|
190
|
-
authorizationType: [, , `AuthorizationType`],
|
|
191
|
-
authorizerId: [, , `AuthorizerId`],
|
|
192
|
-
modelSelectionExpression: [, , `ModelSelectionExpression`],
|
|
193
|
-
operationName: [, , `OperationName`],
|
|
194
|
-
requestModels: [, (_) => (0, smithy_client_1._json)(_), `RequestModels`],
|
|
195
|
-
requestParameters: [, (_) => se_RouteParameters(_, context), `RequestParameters`],
|
|
196
|
-
routeKey: [, , `RouteKey`],
|
|
197
|
-
routeResponseSelectionExpression: [, , `RouteResponseSelectionExpression`],
|
|
198
|
-
target: [, , `Target`],
|
|
199
|
-
}));
|
|
200
|
-
b.m("POST").h(headers).b(body);
|
|
201
|
-
return b.build();
|
|
202
|
-
};
|
|
203
|
-
exports.se_CreateRouteCommand = se_CreateRouteCommand;
|
|
204
|
-
const se_CreateRouteResponseCommand = async (input, context) => {
|
|
205
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
206
|
-
const headers = {
|
|
207
|
-
"content-type": "application/json",
|
|
208
|
-
};
|
|
209
|
-
b.bp("/v2/apis/{ApiId}/routes/{RouteId}/routeresponses");
|
|
210
|
-
b.p("ApiId", () => input.ApiId, "{ApiId}", false);
|
|
211
|
-
b.p("RouteId", () => input.RouteId, "{RouteId}", false);
|
|
212
|
-
let body;
|
|
213
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
214
|
-
modelSelectionExpression: [, , `ModelSelectionExpression`],
|
|
215
|
-
responseModels: [, (_) => (0, smithy_client_1._json)(_), `ResponseModels`],
|
|
216
|
-
responseParameters: [, (_) => se_RouteParameters(_, context), `ResponseParameters`],
|
|
217
|
-
routeResponseKey: [, , `RouteResponseKey`],
|
|
218
|
-
}));
|
|
219
|
-
b.m("POST").h(headers).b(body);
|
|
220
|
-
return b.build();
|
|
221
|
-
};
|
|
222
|
-
exports.se_CreateRouteResponseCommand = se_CreateRouteResponseCommand;
|
|
223
|
-
const se_CreateStageCommand = async (input, context) => {
|
|
224
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
225
|
-
const headers = {
|
|
226
|
-
"content-type": "application/json",
|
|
227
|
-
};
|
|
228
|
-
b.bp("/v2/apis/{ApiId}/stages");
|
|
229
|
-
b.p("ApiId", () => input.ApiId, "{ApiId}", false);
|
|
230
|
-
let body;
|
|
231
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
232
|
-
accessLogSettings: [, (_) => se_AccessLogSettings(_, context), `AccessLogSettings`],
|
|
233
|
-
autoDeploy: [, , `AutoDeploy`],
|
|
234
|
-
clientCertificateId: [, , `ClientCertificateId`],
|
|
235
|
-
defaultRouteSettings: [, (_) => se_RouteSettings(_, context), `DefaultRouteSettings`],
|
|
236
|
-
deploymentId: [, , `DeploymentId`],
|
|
237
|
-
description: [, , `Description`],
|
|
238
|
-
routeSettings: [, (_) => se_RouteSettingsMap(_, context), `RouteSettings`],
|
|
239
|
-
stageName: [, , `StageName`],
|
|
240
|
-
stageVariables: [, (_) => (0, smithy_client_1._json)(_), `StageVariables`],
|
|
241
|
-
tags: [, (_) => (0, smithy_client_1._json)(_), `Tags`],
|
|
242
|
-
}));
|
|
243
|
-
b.m("POST").h(headers).b(body);
|
|
244
|
-
return b.build();
|
|
245
|
-
};
|
|
246
|
-
exports.se_CreateStageCommand = se_CreateStageCommand;
|
|
247
|
-
const se_CreateVpcLinkCommand = async (input, context) => {
|
|
248
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
249
|
-
const headers = {
|
|
250
|
-
"content-type": "application/json",
|
|
251
|
-
};
|
|
252
|
-
b.bp("/v2/vpclinks");
|
|
253
|
-
let body;
|
|
254
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
255
|
-
name: [, , `Name`],
|
|
256
|
-
securityGroupIds: [, (_) => (0, smithy_client_1._json)(_), `SecurityGroupIds`],
|
|
257
|
-
subnetIds: [, (_) => (0, smithy_client_1._json)(_), `SubnetIds`],
|
|
258
|
-
tags: [, (_) => (0, smithy_client_1._json)(_), `Tags`],
|
|
259
|
-
}));
|
|
260
|
-
b.m("POST").h(headers).b(body);
|
|
261
|
-
return b.build();
|
|
262
|
-
};
|
|
263
|
-
exports.se_CreateVpcLinkCommand = se_CreateVpcLinkCommand;
|
|
264
|
-
const se_DeleteAccessLogSettingsCommand = async (input, context) => {
|
|
265
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
266
|
-
const headers = {};
|
|
267
|
-
b.bp("/v2/apis/{ApiId}/stages/{StageName}/accesslogsettings");
|
|
268
|
-
b.p("ApiId", () => input.ApiId, "{ApiId}", false);
|
|
269
|
-
b.p("StageName", () => input.StageName, "{StageName}", false);
|
|
270
|
-
let body;
|
|
271
|
-
b.m("DELETE").h(headers).b(body);
|
|
272
|
-
return b.build();
|
|
273
|
-
};
|
|
274
|
-
exports.se_DeleteAccessLogSettingsCommand = se_DeleteAccessLogSettingsCommand;
|
|
275
|
-
const se_DeleteApiCommand = async (input, context) => {
|
|
276
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
277
|
-
const headers = {};
|
|
278
|
-
b.bp("/v2/apis/{ApiId}");
|
|
279
|
-
b.p("ApiId", () => input.ApiId, "{ApiId}", false);
|
|
280
|
-
let body;
|
|
281
|
-
b.m("DELETE").h(headers).b(body);
|
|
282
|
-
return b.build();
|
|
283
|
-
};
|
|
284
|
-
exports.se_DeleteApiCommand = se_DeleteApiCommand;
|
|
285
|
-
const se_DeleteApiMappingCommand = async (input, context) => {
|
|
286
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
287
|
-
const headers = {};
|
|
288
|
-
b.bp("/v2/domainnames/{DomainName}/apimappings/{ApiMappingId}");
|
|
289
|
-
b.p("ApiMappingId", () => input.ApiMappingId, "{ApiMappingId}", false);
|
|
290
|
-
b.p("DomainName", () => input.DomainName, "{DomainName}", false);
|
|
291
|
-
let body;
|
|
292
|
-
b.m("DELETE").h(headers).b(body);
|
|
293
|
-
return b.build();
|
|
294
|
-
};
|
|
295
|
-
exports.se_DeleteApiMappingCommand = se_DeleteApiMappingCommand;
|
|
296
|
-
const se_DeleteAuthorizerCommand = async (input, context) => {
|
|
297
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
298
|
-
const headers = {};
|
|
299
|
-
b.bp("/v2/apis/{ApiId}/authorizers/{AuthorizerId}");
|
|
300
|
-
b.p("ApiId", () => input.ApiId, "{ApiId}", false);
|
|
301
|
-
b.p("AuthorizerId", () => input.AuthorizerId, "{AuthorizerId}", false);
|
|
302
|
-
let body;
|
|
303
|
-
b.m("DELETE").h(headers).b(body);
|
|
304
|
-
return b.build();
|
|
305
|
-
};
|
|
306
|
-
exports.se_DeleteAuthorizerCommand = se_DeleteAuthorizerCommand;
|
|
307
|
-
const se_DeleteCorsConfigurationCommand = async (input, context) => {
|
|
308
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
309
|
-
const headers = {};
|
|
310
|
-
b.bp("/v2/apis/{ApiId}/cors");
|
|
311
|
-
b.p("ApiId", () => input.ApiId, "{ApiId}", false);
|
|
312
|
-
let body;
|
|
313
|
-
b.m("DELETE").h(headers).b(body);
|
|
314
|
-
return b.build();
|
|
315
|
-
};
|
|
316
|
-
exports.se_DeleteCorsConfigurationCommand = se_DeleteCorsConfigurationCommand;
|
|
317
|
-
const se_DeleteDeploymentCommand = async (input, context) => {
|
|
318
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
319
|
-
const headers = {};
|
|
320
|
-
b.bp("/v2/apis/{ApiId}/deployments/{DeploymentId}");
|
|
321
|
-
b.p("ApiId", () => input.ApiId, "{ApiId}", false);
|
|
322
|
-
b.p("DeploymentId", () => input.DeploymentId, "{DeploymentId}", false);
|
|
323
|
-
let body;
|
|
324
|
-
b.m("DELETE").h(headers).b(body);
|
|
325
|
-
return b.build();
|
|
326
|
-
};
|
|
327
|
-
exports.se_DeleteDeploymentCommand = se_DeleteDeploymentCommand;
|
|
328
|
-
const se_DeleteDomainNameCommand = async (input, context) => {
|
|
329
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
330
|
-
const headers = {};
|
|
331
|
-
b.bp("/v2/domainnames/{DomainName}");
|
|
332
|
-
b.p("DomainName", () => input.DomainName, "{DomainName}", false);
|
|
333
|
-
let body;
|
|
334
|
-
b.m("DELETE").h(headers).b(body);
|
|
335
|
-
return b.build();
|
|
336
|
-
};
|
|
337
|
-
exports.se_DeleteDomainNameCommand = se_DeleteDomainNameCommand;
|
|
338
|
-
const se_DeleteIntegrationCommand = async (input, context) => {
|
|
339
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
340
|
-
const headers = {};
|
|
341
|
-
b.bp("/v2/apis/{ApiId}/integrations/{IntegrationId}");
|
|
342
|
-
b.p("ApiId", () => input.ApiId, "{ApiId}", false);
|
|
343
|
-
b.p("IntegrationId", () => input.IntegrationId, "{IntegrationId}", false);
|
|
344
|
-
let body;
|
|
345
|
-
b.m("DELETE").h(headers).b(body);
|
|
346
|
-
return b.build();
|
|
347
|
-
};
|
|
348
|
-
exports.se_DeleteIntegrationCommand = se_DeleteIntegrationCommand;
|
|
349
|
-
const se_DeleteIntegrationResponseCommand = async (input, context) => {
|
|
350
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
351
|
-
const headers = {};
|
|
352
|
-
b.bp("/v2/apis/{ApiId}/integrations/{IntegrationId}/integrationresponses/{IntegrationResponseId}");
|
|
353
|
-
b.p("ApiId", () => input.ApiId, "{ApiId}", false);
|
|
354
|
-
b.p("IntegrationId", () => input.IntegrationId, "{IntegrationId}", false);
|
|
355
|
-
b.p("IntegrationResponseId", () => input.IntegrationResponseId, "{IntegrationResponseId}", false);
|
|
356
|
-
let body;
|
|
357
|
-
b.m("DELETE").h(headers).b(body);
|
|
358
|
-
return b.build();
|
|
359
|
-
};
|
|
360
|
-
exports.se_DeleteIntegrationResponseCommand = se_DeleteIntegrationResponseCommand;
|
|
361
|
-
const se_DeleteModelCommand = async (input, context) => {
|
|
362
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
363
|
-
const headers = {};
|
|
364
|
-
b.bp("/v2/apis/{ApiId}/models/{ModelId}");
|
|
365
|
-
b.p("ApiId", () => input.ApiId, "{ApiId}", false);
|
|
366
|
-
b.p("ModelId", () => input.ModelId, "{ModelId}", false);
|
|
367
|
-
let body;
|
|
368
|
-
b.m("DELETE").h(headers).b(body);
|
|
369
|
-
return b.build();
|
|
370
|
-
};
|
|
371
|
-
exports.se_DeleteModelCommand = se_DeleteModelCommand;
|
|
372
|
-
const se_DeleteRouteCommand = async (input, context) => {
|
|
373
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
374
|
-
const headers = {};
|
|
375
|
-
b.bp("/v2/apis/{ApiId}/routes/{RouteId}");
|
|
376
|
-
b.p("ApiId", () => input.ApiId, "{ApiId}", false);
|
|
377
|
-
b.p("RouteId", () => input.RouteId, "{RouteId}", false);
|
|
378
|
-
let body;
|
|
379
|
-
b.m("DELETE").h(headers).b(body);
|
|
380
|
-
return b.build();
|
|
381
|
-
};
|
|
382
|
-
exports.se_DeleteRouteCommand = se_DeleteRouteCommand;
|
|
383
|
-
const se_DeleteRouteRequestParameterCommand = async (input, context) => {
|
|
384
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
385
|
-
const headers = {};
|
|
386
|
-
b.bp("/v2/apis/{ApiId}/routes/{RouteId}/requestparameters/{RequestParameterKey}");
|
|
387
|
-
b.p("ApiId", () => input.ApiId, "{ApiId}", false);
|
|
388
|
-
b.p("RequestParameterKey", () => input.RequestParameterKey, "{RequestParameterKey}", false);
|
|
389
|
-
b.p("RouteId", () => input.RouteId, "{RouteId}", false);
|
|
390
|
-
let body;
|
|
391
|
-
b.m("DELETE").h(headers).b(body);
|
|
392
|
-
return b.build();
|
|
393
|
-
};
|
|
394
|
-
exports.se_DeleteRouteRequestParameterCommand = se_DeleteRouteRequestParameterCommand;
|
|
395
|
-
const se_DeleteRouteResponseCommand = async (input, context) => {
|
|
396
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
397
|
-
const headers = {};
|
|
398
|
-
b.bp("/v2/apis/{ApiId}/routes/{RouteId}/routeresponses/{RouteResponseId}");
|
|
399
|
-
b.p("ApiId", () => input.ApiId, "{ApiId}", false);
|
|
400
|
-
b.p("RouteId", () => input.RouteId, "{RouteId}", false);
|
|
401
|
-
b.p("RouteResponseId", () => input.RouteResponseId, "{RouteResponseId}", false);
|
|
402
|
-
let body;
|
|
403
|
-
b.m("DELETE").h(headers).b(body);
|
|
404
|
-
return b.build();
|
|
405
|
-
};
|
|
406
|
-
exports.se_DeleteRouteResponseCommand = se_DeleteRouteResponseCommand;
|
|
407
|
-
const se_DeleteRouteSettingsCommand = async (input, context) => {
|
|
408
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
409
|
-
const headers = {};
|
|
410
|
-
b.bp("/v2/apis/{ApiId}/stages/{StageName}/routesettings/{RouteKey}");
|
|
411
|
-
b.p("ApiId", () => input.ApiId, "{ApiId}", false);
|
|
412
|
-
b.p("RouteKey", () => input.RouteKey, "{RouteKey}", false);
|
|
413
|
-
b.p("StageName", () => input.StageName, "{StageName}", false);
|
|
414
|
-
let body;
|
|
415
|
-
b.m("DELETE").h(headers).b(body);
|
|
416
|
-
return b.build();
|
|
417
|
-
};
|
|
418
|
-
exports.se_DeleteRouteSettingsCommand = se_DeleteRouteSettingsCommand;
|
|
419
|
-
const se_DeleteStageCommand = async (input, context) => {
|
|
420
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
421
|
-
const headers = {};
|
|
422
|
-
b.bp("/v2/apis/{ApiId}/stages/{StageName}");
|
|
423
|
-
b.p("ApiId", () => input.ApiId, "{ApiId}", false);
|
|
424
|
-
b.p("StageName", () => input.StageName, "{StageName}", false);
|
|
425
|
-
let body;
|
|
426
|
-
b.m("DELETE").h(headers).b(body);
|
|
427
|
-
return b.build();
|
|
428
|
-
};
|
|
429
|
-
exports.se_DeleteStageCommand = se_DeleteStageCommand;
|
|
430
|
-
const se_DeleteVpcLinkCommand = async (input, context) => {
|
|
431
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
432
|
-
const headers = {};
|
|
433
|
-
b.bp("/v2/vpclinks/{VpcLinkId}");
|
|
434
|
-
b.p("VpcLinkId", () => input.VpcLinkId, "{VpcLinkId}", false);
|
|
435
|
-
let body;
|
|
436
|
-
b.m("DELETE").h(headers).b(body);
|
|
437
|
-
return b.build();
|
|
438
|
-
};
|
|
439
|
-
exports.se_DeleteVpcLinkCommand = se_DeleteVpcLinkCommand;
|
|
440
|
-
const se_ExportApiCommand = async (input, context) => {
|
|
441
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
442
|
-
const headers = {};
|
|
443
|
-
b.bp("/v2/apis/{ApiId}/exports/{Specification}");
|
|
444
|
-
b.p("ApiId", () => input.ApiId, "{ApiId}", false);
|
|
445
|
-
b.p("Specification", () => input.Specification, "{Specification}", false);
|
|
446
|
-
const query = (0, smithy_client_1.map)({
|
|
447
|
-
[_eV]: [, input[_EV]],
|
|
448
|
-
[_iE]: [() => input.IncludeExtensions !== void 0, () => input[_IE].toString()],
|
|
449
|
-
[_oT]: [, (0, smithy_client_1.expectNonNull)(input[_OT], `OutputType`)],
|
|
450
|
-
[_sN]: [, input[_SN]],
|
|
451
|
-
});
|
|
452
|
-
let body;
|
|
453
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
454
|
-
return b.build();
|
|
455
|
-
};
|
|
456
|
-
exports.se_ExportApiCommand = se_ExportApiCommand;
|
|
457
|
-
const se_GetApiCommand = async (input, context) => {
|
|
458
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
459
|
-
const headers = {};
|
|
460
|
-
b.bp("/v2/apis/{ApiId}");
|
|
461
|
-
b.p("ApiId", () => input.ApiId, "{ApiId}", false);
|
|
462
|
-
let body;
|
|
463
|
-
b.m("GET").h(headers).b(body);
|
|
464
|
-
return b.build();
|
|
465
|
-
};
|
|
466
|
-
exports.se_GetApiCommand = se_GetApiCommand;
|
|
467
|
-
const se_GetApiMappingCommand = async (input, context) => {
|
|
468
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
469
|
-
const headers = {};
|
|
470
|
-
b.bp("/v2/domainnames/{DomainName}/apimappings/{ApiMappingId}");
|
|
471
|
-
b.p("ApiMappingId", () => input.ApiMappingId, "{ApiMappingId}", false);
|
|
472
|
-
b.p("DomainName", () => input.DomainName, "{DomainName}", false);
|
|
473
|
-
let body;
|
|
474
|
-
b.m("GET").h(headers).b(body);
|
|
475
|
-
return b.build();
|
|
476
|
-
};
|
|
477
|
-
exports.se_GetApiMappingCommand = se_GetApiMappingCommand;
|
|
478
|
-
const se_GetApiMappingsCommand = async (input, context) => {
|
|
479
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
480
|
-
const headers = {};
|
|
481
|
-
b.bp("/v2/domainnames/{DomainName}/apimappings");
|
|
482
|
-
b.p("DomainName", () => input.DomainName, "{DomainName}", false);
|
|
483
|
-
const query = (0, smithy_client_1.map)({
|
|
484
|
-
[_mR]: [, input[_MR]],
|
|
485
|
-
[_nT]: [, input[_NT]],
|
|
486
|
-
});
|
|
487
|
-
let body;
|
|
488
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
489
|
-
return b.build();
|
|
490
|
-
};
|
|
491
|
-
exports.se_GetApiMappingsCommand = se_GetApiMappingsCommand;
|
|
492
|
-
const se_GetApisCommand = async (input, context) => {
|
|
493
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
494
|
-
const headers = {};
|
|
495
|
-
b.bp("/v2/apis");
|
|
496
|
-
const query = (0, smithy_client_1.map)({
|
|
497
|
-
[_mR]: [, input[_MR]],
|
|
498
|
-
[_nT]: [, input[_NT]],
|
|
499
|
-
});
|
|
500
|
-
let body;
|
|
501
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
502
|
-
return b.build();
|
|
503
|
-
};
|
|
504
|
-
exports.se_GetApisCommand = se_GetApisCommand;
|
|
505
|
-
const se_GetAuthorizerCommand = async (input, context) => {
|
|
506
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
507
|
-
const headers = {};
|
|
508
|
-
b.bp("/v2/apis/{ApiId}/authorizers/{AuthorizerId}");
|
|
509
|
-
b.p("ApiId", () => input.ApiId, "{ApiId}", false);
|
|
510
|
-
b.p("AuthorizerId", () => input.AuthorizerId, "{AuthorizerId}", false);
|
|
511
|
-
let body;
|
|
512
|
-
b.m("GET").h(headers).b(body);
|
|
513
|
-
return b.build();
|
|
514
|
-
};
|
|
515
|
-
exports.se_GetAuthorizerCommand = se_GetAuthorizerCommand;
|
|
516
|
-
const se_GetAuthorizersCommand = async (input, context) => {
|
|
517
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
518
|
-
const headers = {};
|
|
519
|
-
b.bp("/v2/apis/{ApiId}/authorizers");
|
|
520
|
-
b.p("ApiId", () => input.ApiId, "{ApiId}", false);
|
|
521
|
-
const query = (0, smithy_client_1.map)({
|
|
522
|
-
[_mR]: [, input[_MR]],
|
|
523
|
-
[_nT]: [, input[_NT]],
|
|
524
|
-
});
|
|
525
|
-
let body;
|
|
526
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
527
|
-
return b.build();
|
|
528
|
-
};
|
|
529
|
-
exports.se_GetAuthorizersCommand = se_GetAuthorizersCommand;
|
|
530
|
-
const se_GetDeploymentCommand = async (input, context) => {
|
|
531
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
532
|
-
const headers = {};
|
|
533
|
-
b.bp("/v2/apis/{ApiId}/deployments/{DeploymentId}");
|
|
534
|
-
b.p("ApiId", () => input.ApiId, "{ApiId}", false);
|
|
535
|
-
b.p("DeploymentId", () => input.DeploymentId, "{DeploymentId}", false);
|
|
536
|
-
let body;
|
|
537
|
-
b.m("GET").h(headers).b(body);
|
|
538
|
-
return b.build();
|
|
539
|
-
};
|
|
540
|
-
exports.se_GetDeploymentCommand = se_GetDeploymentCommand;
|
|
541
|
-
const se_GetDeploymentsCommand = async (input, context) => {
|
|
542
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
543
|
-
const headers = {};
|
|
544
|
-
b.bp("/v2/apis/{ApiId}/deployments");
|
|
545
|
-
b.p("ApiId", () => input.ApiId, "{ApiId}", false);
|
|
546
|
-
const query = (0, smithy_client_1.map)({
|
|
547
|
-
[_mR]: [, input[_MR]],
|
|
548
|
-
[_nT]: [, input[_NT]],
|
|
549
|
-
});
|
|
550
|
-
let body;
|
|
551
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
552
|
-
return b.build();
|
|
553
|
-
};
|
|
554
|
-
exports.se_GetDeploymentsCommand = se_GetDeploymentsCommand;
|
|
555
|
-
const se_GetDomainNameCommand = async (input, context) => {
|
|
556
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
557
|
-
const headers = {};
|
|
558
|
-
b.bp("/v2/domainnames/{DomainName}");
|
|
559
|
-
b.p("DomainName", () => input.DomainName, "{DomainName}", false);
|
|
560
|
-
let body;
|
|
561
|
-
b.m("GET").h(headers).b(body);
|
|
562
|
-
return b.build();
|
|
563
|
-
};
|
|
564
|
-
exports.se_GetDomainNameCommand = se_GetDomainNameCommand;
|
|
565
|
-
const se_GetDomainNamesCommand = async (input, context) => {
|
|
566
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
567
|
-
const headers = {};
|
|
568
|
-
b.bp("/v2/domainnames");
|
|
569
|
-
const query = (0, smithy_client_1.map)({
|
|
570
|
-
[_mR]: [, input[_MR]],
|
|
571
|
-
[_nT]: [, input[_NT]],
|
|
572
|
-
});
|
|
573
|
-
let body;
|
|
574
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
575
|
-
return b.build();
|
|
576
|
-
};
|
|
577
|
-
exports.se_GetDomainNamesCommand = se_GetDomainNamesCommand;
|
|
578
|
-
const se_GetIntegrationCommand = async (input, context) => {
|
|
579
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
580
|
-
const headers = {};
|
|
581
|
-
b.bp("/v2/apis/{ApiId}/integrations/{IntegrationId}");
|
|
582
|
-
b.p("ApiId", () => input.ApiId, "{ApiId}", false);
|
|
583
|
-
b.p("IntegrationId", () => input.IntegrationId, "{IntegrationId}", false);
|
|
584
|
-
let body;
|
|
585
|
-
b.m("GET").h(headers).b(body);
|
|
586
|
-
return b.build();
|
|
587
|
-
};
|
|
588
|
-
exports.se_GetIntegrationCommand = se_GetIntegrationCommand;
|
|
589
|
-
const se_GetIntegrationResponseCommand = async (input, context) => {
|
|
590
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
591
|
-
const headers = {};
|
|
592
|
-
b.bp("/v2/apis/{ApiId}/integrations/{IntegrationId}/integrationresponses/{IntegrationResponseId}");
|
|
593
|
-
b.p("ApiId", () => input.ApiId, "{ApiId}", false);
|
|
594
|
-
b.p("IntegrationId", () => input.IntegrationId, "{IntegrationId}", false);
|
|
595
|
-
b.p("IntegrationResponseId", () => input.IntegrationResponseId, "{IntegrationResponseId}", false);
|
|
596
|
-
let body;
|
|
597
|
-
b.m("GET").h(headers).b(body);
|
|
598
|
-
return b.build();
|
|
599
|
-
};
|
|
600
|
-
exports.se_GetIntegrationResponseCommand = se_GetIntegrationResponseCommand;
|
|
601
|
-
const se_GetIntegrationResponsesCommand = async (input, context) => {
|
|
602
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
603
|
-
const headers = {};
|
|
604
|
-
b.bp("/v2/apis/{ApiId}/integrations/{IntegrationId}/integrationresponses");
|
|
605
|
-
b.p("ApiId", () => input.ApiId, "{ApiId}", false);
|
|
606
|
-
b.p("IntegrationId", () => input.IntegrationId, "{IntegrationId}", false);
|
|
607
|
-
const query = (0, smithy_client_1.map)({
|
|
608
|
-
[_mR]: [, input[_MR]],
|
|
609
|
-
[_nT]: [, input[_NT]],
|
|
610
|
-
});
|
|
611
|
-
let body;
|
|
612
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
613
|
-
return b.build();
|
|
614
|
-
};
|
|
615
|
-
exports.se_GetIntegrationResponsesCommand = se_GetIntegrationResponsesCommand;
|
|
616
|
-
const se_GetIntegrationsCommand = async (input, context) => {
|
|
617
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
618
|
-
const headers = {};
|
|
619
|
-
b.bp("/v2/apis/{ApiId}/integrations");
|
|
620
|
-
b.p("ApiId", () => input.ApiId, "{ApiId}", false);
|
|
621
|
-
const query = (0, smithy_client_1.map)({
|
|
622
|
-
[_mR]: [, input[_MR]],
|
|
623
|
-
[_nT]: [, input[_NT]],
|
|
624
|
-
});
|
|
625
|
-
let body;
|
|
626
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
627
|
-
return b.build();
|
|
628
|
-
};
|
|
629
|
-
exports.se_GetIntegrationsCommand = se_GetIntegrationsCommand;
|
|
630
|
-
const se_GetModelCommand = async (input, context) => {
|
|
631
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
632
|
-
const headers = {};
|
|
633
|
-
b.bp("/v2/apis/{ApiId}/models/{ModelId}");
|
|
634
|
-
b.p("ApiId", () => input.ApiId, "{ApiId}", false);
|
|
635
|
-
b.p("ModelId", () => input.ModelId, "{ModelId}", false);
|
|
636
|
-
let body;
|
|
637
|
-
b.m("GET").h(headers).b(body);
|
|
638
|
-
return b.build();
|
|
639
|
-
};
|
|
640
|
-
exports.se_GetModelCommand = se_GetModelCommand;
|
|
641
|
-
const se_GetModelsCommand = async (input, context) => {
|
|
642
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
643
|
-
const headers = {};
|
|
644
|
-
b.bp("/v2/apis/{ApiId}/models");
|
|
645
|
-
b.p("ApiId", () => input.ApiId, "{ApiId}", false);
|
|
646
|
-
const query = (0, smithy_client_1.map)({
|
|
647
|
-
[_mR]: [, input[_MR]],
|
|
648
|
-
[_nT]: [, input[_NT]],
|
|
649
|
-
});
|
|
650
|
-
let body;
|
|
651
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
652
|
-
return b.build();
|
|
653
|
-
};
|
|
654
|
-
exports.se_GetModelsCommand = se_GetModelsCommand;
|
|
655
|
-
const se_GetModelTemplateCommand = async (input, context) => {
|
|
656
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
657
|
-
const headers = {};
|
|
658
|
-
b.bp("/v2/apis/{ApiId}/models/{ModelId}/template");
|
|
659
|
-
b.p("ApiId", () => input.ApiId, "{ApiId}", false);
|
|
660
|
-
b.p("ModelId", () => input.ModelId, "{ModelId}", false);
|
|
661
|
-
let body;
|
|
662
|
-
b.m("GET").h(headers).b(body);
|
|
663
|
-
return b.build();
|
|
664
|
-
};
|
|
665
|
-
exports.se_GetModelTemplateCommand = se_GetModelTemplateCommand;
|
|
666
|
-
const se_GetRouteCommand = async (input, context) => {
|
|
667
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
668
|
-
const headers = {};
|
|
669
|
-
b.bp("/v2/apis/{ApiId}/routes/{RouteId}");
|
|
670
|
-
b.p("ApiId", () => input.ApiId, "{ApiId}", false);
|
|
671
|
-
b.p("RouteId", () => input.RouteId, "{RouteId}", false);
|
|
672
|
-
let body;
|
|
673
|
-
b.m("GET").h(headers).b(body);
|
|
674
|
-
return b.build();
|
|
675
|
-
};
|
|
676
|
-
exports.se_GetRouteCommand = se_GetRouteCommand;
|
|
677
|
-
const se_GetRouteResponseCommand = async (input, context) => {
|
|
678
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
679
|
-
const headers = {};
|
|
680
|
-
b.bp("/v2/apis/{ApiId}/routes/{RouteId}/routeresponses/{RouteResponseId}");
|
|
681
|
-
b.p("ApiId", () => input.ApiId, "{ApiId}", false);
|
|
682
|
-
b.p("RouteId", () => input.RouteId, "{RouteId}", false);
|
|
683
|
-
b.p("RouteResponseId", () => input.RouteResponseId, "{RouteResponseId}", false);
|
|
684
|
-
let body;
|
|
685
|
-
b.m("GET").h(headers).b(body);
|
|
686
|
-
return b.build();
|
|
687
|
-
};
|
|
688
|
-
exports.se_GetRouteResponseCommand = se_GetRouteResponseCommand;
|
|
689
|
-
const se_GetRouteResponsesCommand = async (input, context) => {
|
|
690
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
691
|
-
const headers = {};
|
|
692
|
-
b.bp("/v2/apis/{ApiId}/routes/{RouteId}/routeresponses");
|
|
693
|
-
b.p("ApiId", () => input.ApiId, "{ApiId}", false);
|
|
694
|
-
b.p("RouteId", () => input.RouteId, "{RouteId}", false);
|
|
695
|
-
const query = (0, smithy_client_1.map)({
|
|
696
|
-
[_mR]: [, input[_MR]],
|
|
697
|
-
[_nT]: [, input[_NT]],
|
|
698
|
-
});
|
|
699
|
-
let body;
|
|
700
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
701
|
-
return b.build();
|
|
702
|
-
};
|
|
703
|
-
exports.se_GetRouteResponsesCommand = se_GetRouteResponsesCommand;
|
|
704
|
-
const se_GetRoutesCommand = async (input, context) => {
|
|
705
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
706
|
-
const headers = {};
|
|
707
|
-
b.bp("/v2/apis/{ApiId}/routes");
|
|
708
|
-
b.p("ApiId", () => input.ApiId, "{ApiId}", false);
|
|
709
|
-
const query = (0, smithy_client_1.map)({
|
|
710
|
-
[_mR]: [, input[_MR]],
|
|
711
|
-
[_nT]: [, input[_NT]],
|
|
712
|
-
});
|
|
713
|
-
let body;
|
|
714
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
715
|
-
return b.build();
|
|
716
|
-
};
|
|
717
|
-
exports.se_GetRoutesCommand = se_GetRoutesCommand;
|
|
718
|
-
const se_GetStageCommand = async (input, context) => {
|
|
719
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
720
|
-
const headers = {};
|
|
721
|
-
b.bp("/v2/apis/{ApiId}/stages/{StageName}");
|
|
722
|
-
b.p("ApiId", () => input.ApiId, "{ApiId}", false);
|
|
723
|
-
b.p("StageName", () => input.StageName, "{StageName}", false);
|
|
724
|
-
let body;
|
|
725
|
-
b.m("GET").h(headers).b(body);
|
|
726
|
-
return b.build();
|
|
727
|
-
};
|
|
728
|
-
exports.se_GetStageCommand = se_GetStageCommand;
|
|
729
|
-
const se_GetStagesCommand = async (input, context) => {
|
|
730
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
731
|
-
const headers = {};
|
|
732
|
-
b.bp("/v2/apis/{ApiId}/stages");
|
|
733
|
-
b.p("ApiId", () => input.ApiId, "{ApiId}", false);
|
|
734
|
-
const query = (0, smithy_client_1.map)({
|
|
735
|
-
[_mR]: [, input[_MR]],
|
|
736
|
-
[_nT]: [, input[_NT]],
|
|
737
|
-
});
|
|
738
|
-
let body;
|
|
739
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
740
|
-
return b.build();
|
|
741
|
-
};
|
|
742
|
-
exports.se_GetStagesCommand = se_GetStagesCommand;
|
|
743
|
-
const se_GetTagsCommand = async (input, context) => {
|
|
744
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
745
|
-
const headers = {};
|
|
746
|
-
b.bp("/v2/tags/{ResourceArn}");
|
|
747
|
-
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
748
|
-
let body;
|
|
749
|
-
b.m("GET").h(headers).b(body);
|
|
750
|
-
return b.build();
|
|
751
|
-
};
|
|
752
|
-
exports.se_GetTagsCommand = se_GetTagsCommand;
|
|
753
|
-
const se_GetVpcLinkCommand = async (input, context) => {
|
|
754
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
755
|
-
const headers = {};
|
|
756
|
-
b.bp("/v2/vpclinks/{VpcLinkId}");
|
|
757
|
-
b.p("VpcLinkId", () => input.VpcLinkId, "{VpcLinkId}", false);
|
|
758
|
-
let body;
|
|
759
|
-
b.m("GET").h(headers).b(body);
|
|
760
|
-
return b.build();
|
|
761
|
-
};
|
|
762
|
-
exports.se_GetVpcLinkCommand = se_GetVpcLinkCommand;
|
|
763
|
-
const se_GetVpcLinksCommand = async (input, context) => {
|
|
764
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
765
|
-
const headers = {};
|
|
766
|
-
b.bp("/v2/vpclinks");
|
|
767
|
-
const query = (0, smithy_client_1.map)({
|
|
768
|
-
[_mR]: [, input[_MR]],
|
|
769
|
-
[_nT]: [, input[_NT]],
|
|
770
|
-
});
|
|
771
|
-
let body;
|
|
772
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
773
|
-
return b.build();
|
|
774
|
-
};
|
|
775
|
-
exports.se_GetVpcLinksCommand = se_GetVpcLinksCommand;
|
|
776
|
-
const se_ImportApiCommand = async (input, context) => {
|
|
777
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
778
|
-
const headers = {
|
|
779
|
-
"content-type": "application/json",
|
|
780
|
-
};
|
|
781
|
-
b.bp("/v2/apis");
|
|
782
|
-
const query = (0, smithy_client_1.map)({
|
|
783
|
-
[_b]: [, input[_B]],
|
|
784
|
-
[_fOW]: [() => input.FailOnWarnings !== void 0, () => input[_FOW].toString()],
|
|
785
|
-
});
|
|
786
|
-
let body;
|
|
787
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
788
|
-
body: [, , `Body`],
|
|
789
|
-
}));
|
|
790
|
-
b.m("PUT").h(headers).q(query).b(body);
|
|
791
|
-
return b.build();
|
|
792
|
-
};
|
|
793
|
-
exports.se_ImportApiCommand = se_ImportApiCommand;
|
|
794
|
-
const se_ReimportApiCommand = async (input, context) => {
|
|
795
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
796
|
-
const headers = {
|
|
797
|
-
"content-type": "application/json",
|
|
798
|
-
};
|
|
799
|
-
b.bp("/v2/apis/{ApiId}");
|
|
800
|
-
b.p("ApiId", () => input.ApiId, "{ApiId}", false);
|
|
801
|
-
const query = (0, smithy_client_1.map)({
|
|
802
|
-
[_b]: [, input[_B]],
|
|
803
|
-
[_fOW]: [() => input.FailOnWarnings !== void 0, () => input[_FOW].toString()],
|
|
804
|
-
});
|
|
805
|
-
let body;
|
|
806
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
807
|
-
body: [, , `Body`],
|
|
808
|
-
}));
|
|
809
|
-
b.m("PUT").h(headers).q(query).b(body);
|
|
810
|
-
return b.build();
|
|
811
|
-
};
|
|
812
|
-
exports.se_ReimportApiCommand = se_ReimportApiCommand;
|
|
813
|
-
const se_ResetAuthorizersCacheCommand = async (input, context) => {
|
|
814
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
815
|
-
const headers = {};
|
|
816
|
-
b.bp("/v2/apis/{ApiId}/stages/{StageName}/cache/authorizers");
|
|
817
|
-
b.p("ApiId", () => input.ApiId, "{ApiId}", false);
|
|
818
|
-
b.p("StageName", () => input.StageName, "{StageName}", false);
|
|
819
|
-
let body;
|
|
820
|
-
b.m("DELETE").h(headers).b(body);
|
|
821
|
-
return b.build();
|
|
822
|
-
};
|
|
823
|
-
exports.se_ResetAuthorizersCacheCommand = se_ResetAuthorizersCacheCommand;
|
|
824
|
-
const se_TagResourceCommand = async (input, context) => {
|
|
825
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
826
|
-
const headers = {
|
|
827
|
-
"content-type": "application/json",
|
|
828
|
-
};
|
|
829
|
-
b.bp("/v2/tags/{ResourceArn}");
|
|
830
|
-
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
831
|
-
let body;
|
|
832
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
833
|
-
tags: [, (_) => (0, smithy_client_1._json)(_), `Tags`],
|
|
834
|
-
}));
|
|
835
|
-
b.m("POST").h(headers).b(body);
|
|
836
|
-
return b.build();
|
|
837
|
-
};
|
|
838
|
-
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
839
|
-
const se_UntagResourceCommand = async (input, context) => {
|
|
840
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
841
|
-
const headers = {};
|
|
842
|
-
b.bp("/v2/tags/{ResourceArn}");
|
|
843
|
-
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
844
|
-
const query = (0, smithy_client_1.map)({
|
|
845
|
-
[_tK]: [
|
|
846
|
-
(0, smithy_client_1.expectNonNull)(input.TagKeys, `TagKeys`) != null,
|
|
847
|
-
() => (input[_TK] || []).map((_entry) => _entry),
|
|
848
|
-
],
|
|
849
|
-
});
|
|
850
|
-
let body;
|
|
851
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
852
|
-
return b.build();
|
|
853
|
-
};
|
|
854
|
-
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
855
|
-
const se_UpdateApiCommand = async (input, context) => {
|
|
856
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
857
|
-
const headers = {
|
|
858
|
-
"content-type": "application/json",
|
|
859
|
-
};
|
|
860
|
-
b.bp("/v2/apis/{ApiId}");
|
|
861
|
-
b.p("ApiId", () => input.ApiId, "{ApiId}", false);
|
|
862
|
-
let body;
|
|
863
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
864
|
-
apiKeySelectionExpression: [, , `ApiKeySelectionExpression`],
|
|
865
|
-
corsConfiguration: [, (_) => se_Cors(_, context), `CorsConfiguration`],
|
|
866
|
-
credentialsArn: [, , `CredentialsArn`],
|
|
867
|
-
description: [, , `Description`],
|
|
868
|
-
disableExecuteApiEndpoint: [, , `DisableExecuteApiEndpoint`],
|
|
869
|
-
disableSchemaValidation: [, , `DisableSchemaValidation`],
|
|
870
|
-
name: [, , `Name`],
|
|
871
|
-
routeKey: [, , `RouteKey`],
|
|
872
|
-
routeSelectionExpression: [, , `RouteSelectionExpression`],
|
|
873
|
-
target: [, , `Target`],
|
|
874
|
-
version: [, , `Version`],
|
|
875
|
-
}));
|
|
876
|
-
b.m("PATCH").h(headers).b(body);
|
|
877
|
-
return b.build();
|
|
878
|
-
};
|
|
879
|
-
exports.se_UpdateApiCommand = se_UpdateApiCommand;
|
|
880
|
-
const se_UpdateApiMappingCommand = async (input, context) => {
|
|
881
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
882
|
-
const headers = {
|
|
883
|
-
"content-type": "application/json",
|
|
884
|
-
};
|
|
885
|
-
b.bp("/v2/domainnames/{DomainName}/apimappings/{ApiMappingId}");
|
|
886
|
-
b.p("ApiMappingId", () => input.ApiMappingId, "{ApiMappingId}", false);
|
|
887
|
-
b.p("DomainName", () => input.DomainName, "{DomainName}", false);
|
|
888
|
-
let body;
|
|
889
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
890
|
-
apiId: [, , `ApiId`],
|
|
891
|
-
apiMappingKey: [, , `ApiMappingKey`],
|
|
892
|
-
stage: [, , `Stage`],
|
|
893
|
-
}));
|
|
894
|
-
b.m("PATCH").h(headers).b(body);
|
|
895
|
-
return b.build();
|
|
896
|
-
};
|
|
897
|
-
exports.se_UpdateApiMappingCommand = se_UpdateApiMappingCommand;
|
|
898
|
-
const se_UpdateAuthorizerCommand = async (input, context) => {
|
|
899
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
900
|
-
const headers = {
|
|
901
|
-
"content-type": "application/json",
|
|
902
|
-
};
|
|
903
|
-
b.bp("/v2/apis/{ApiId}/authorizers/{AuthorizerId}");
|
|
904
|
-
b.p("ApiId", () => input.ApiId, "{ApiId}", false);
|
|
905
|
-
b.p("AuthorizerId", () => input.AuthorizerId, "{AuthorizerId}", false);
|
|
906
|
-
let body;
|
|
907
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
908
|
-
authorizerCredentialsArn: [, , `AuthorizerCredentialsArn`],
|
|
909
|
-
authorizerPayloadFormatVersion: [, , `AuthorizerPayloadFormatVersion`],
|
|
910
|
-
authorizerResultTtlInSeconds: [, , `AuthorizerResultTtlInSeconds`],
|
|
911
|
-
authorizerType: [, , `AuthorizerType`],
|
|
912
|
-
authorizerUri: [, , `AuthorizerUri`],
|
|
913
|
-
enableSimpleResponses: [, , `EnableSimpleResponses`],
|
|
914
|
-
identitySource: [, (_) => (0, smithy_client_1._json)(_), `IdentitySource`],
|
|
915
|
-
identityValidationExpression: [, , `IdentityValidationExpression`],
|
|
916
|
-
jwtConfiguration: [, (_) => se_JWTConfiguration(_, context), `JwtConfiguration`],
|
|
917
|
-
name: [, , `Name`],
|
|
918
|
-
}));
|
|
919
|
-
b.m("PATCH").h(headers).b(body);
|
|
920
|
-
return b.build();
|
|
921
|
-
};
|
|
922
|
-
exports.se_UpdateAuthorizerCommand = se_UpdateAuthorizerCommand;
|
|
923
|
-
const se_UpdateDeploymentCommand = async (input, context) => {
|
|
924
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
925
|
-
const headers = {
|
|
926
|
-
"content-type": "application/json",
|
|
927
|
-
};
|
|
928
|
-
b.bp("/v2/apis/{ApiId}/deployments/{DeploymentId}");
|
|
929
|
-
b.p("ApiId", () => input.ApiId, "{ApiId}", false);
|
|
930
|
-
b.p("DeploymentId", () => input.DeploymentId, "{DeploymentId}", false);
|
|
931
|
-
let body;
|
|
932
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
933
|
-
description: [, , `Description`],
|
|
934
|
-
}));
|
|
935
|
-
b.m("PATCH").h(headers).b(body);
|
|
936
|
-
return b.build();
|
|
937
|
-
};
|
|
938
|
-
exports.se_UpdateDeploymentCommand = se_UpdateDeploymentCommand;
|
|
939
|
-
const se_UpdateDomainNameCommand = async (input, context) => {
|
|
940
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
941
|
-
const headers = {
|
|
942
|
-
"content-type": "application/json",
|
|
943
|
-
};
|
|
944
|
-
b.bp("/v2/domainnames/{DomainName}");
|
|
945
|
-
b.p("DomainName", () => input.DomainName, "{DomainName}", false);
|
|
946
|
-
let body;
|
|
947
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
948
|
-
domainNameConfigurations: [, (_) => se_DomainNameConfigurations(_, context), `DomainNameConfigurations`],
|
|
949
|
-
mutualTlsAuthentication: [, (_) => se_MutualTlsAuthenticationInput(_, context), `MutualTlsAuthentication`],
|
|
950
|
-
}));
|
|
951
|
-
b.m("PATCH").h(headers).b(body);
|
|
952
|
-
return b.build();
|
|
953
|
-
};
|
|
954
|
-
exports.se_UpdateDomainNameCommand = se_UpdateDomainNameCommand;
|
|
955
|
-
const se_UpdateIntegrationCommand = async (input, context) => {
|
|
956
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
957
|
-
const headers = {
|
|
958
|
-
"content-type": "application/json",
|
|
959
|
-
};
|
|
960
|
-
b.bp("/v2/apis/{ApiId}/integrations/{IntegrationId}");
|
|
961
|
-
b.p("ApiId", () => input.ApiId, "{ApiId}", false);
|
|
962
|
-
b.p("IntegrationId", () => input.IntegrationId, "{IntegrationId}", false);
|
|
963
|
-
let body;
|
|
964
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
965
|
-
connectionId: [, , `ConnectionId`],
|
|
966
|
-
connectionType: [, , `ConnectionType`],
|
|
967
|
-
contentHandlingStrategy: [, , `ContentHandlingStrategy`],
|
|
968
|
-
credentialsArn: [, , `CredentialsArn`],
|
|
969
|
-
description: [, , `Description`],
|
|
970
|
-
integrationMethod: [, , `IntegrationMethod`],
|
|
971
|
-
integrationSubtype: [, , `IntegrationSubtype`],
|
|
972
|
-
integrationType: [, , `IntegrationType`],
|
|
973
|
-
integrationUri: [, , `IntegrationUri`],
|
|
974
|
-
passthroughBehavior: [, , `PassthroughBehavior`],
|
|
975
|
-
payloadFormatVersion: [, , `PayloadFormatVersion`],
|
|
976
|
-
requestParameters: [, (_) => (0, smithy_client_1._json)(_), `RequestParameters`],
|
|
977
|
-
requestTemplates: [, (_) => (0, smithy_client_1._json)(_), `RequestTemplates`],
|
|
978
|
-
responseParameters: [, (_) => (0, smithy_client_1._json)(_), `ResponseParameters`],
|
|
979
|
-
templateSelectionExpression: [, , `TemplateSelectionExpression`],
|
|
980
|
-
timeoutInMillis: [, , `TimeoutInMillis`],
|
|
981
|
-
tlsConfig: [, (_) => se_TlsConfigInput(_, context), `TlsConfig`],
|
|
982
|
-
}));
|
|
983
|
-
b.m("PATCH").h(headers).b(body);
|
|
984
|
-
return b.build();
|
|
985
|
-
};
|
|
986
|
-
exports.se_UpdateIntegrationCommand = se_UpdateIntegrationCommand;
|
|
987
|
-
const se_UpdateIntegrationResponseCommand = async (input, context) => {
|
|
988
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
989
|
-
const headers = {
|
|
990
|
-
"content-type": "application/json",
|
|
991
|
-
};
|
|
992
|
-
b.bp("/v2/apis/{ApiId}/integrations/{IntegrationId}/integrationresponses/{IntegrationResponseId}");
|
|
993
|
-
b.p("ApiId", () => input.ApiId, "{ApiId}", false);
|
|
994
|
-
b.p("IntegrationId", () => input.IntegrationId, "{IntegrationId}", false);
|
|
995
|
-
b.p("IntegrationResponseId", () => input.IntegrationResponseId, "{IntegrationResponseId}", false);
|
|
996
|
-
let body;
|
|
997
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
998
|
-
contentHandlingStrategy: [, , `ContentHandlingStrategy`],
|
|
999
|
-
integrationResponseKey: [, , `IntegrationResponseKey`],
|
|
1000
|
-
responseParameters: [, (_) => (0, smithy_client_1._json)(_), `ResponseParameters`],
|
|
1001
|
-
responseTemplates: [, (_) => (0, smithy_client_1._json)(_), `ResponseTemplates`],
|
|
1002
|
-
templateSelectionExpression: [, , `TemplateSelectionExpression`],
|
|
1003
|
-
}));
|
|
1004
|
-
b.m("PATCH").h(headers).b(body);
|
|
1005
|
-
return b.build();
|
|
1006
|
-
};
|
|
1007
|
-
exports.se_UpdateIntegrationResponseCommand = se_UpdateIntegrationResponseCommand;
|
|
1008
|
-
const se_UpdateModelCommand = async (input, context) => {
|
|
1009
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
1010
|
-
const headers = {
|
|
1011
|
-
"content-type": "application/json",
|
|
1012
|
-
};
|
|
1013
|
-
b.bp("/v2/apis/{ApiId}/models/{ModelId}");
|
|
1014
|
-
b.p("ApiId", () => input.ApiId, "{ApiId}", false);
|
|
1015
|
-
b.p("ModelId", () => input.ModelId, "{ModelId}", false);
|
|
1016
|
-
let body;
|
|
1017
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1018
|
-
contentType: [, , `ContentType`],
|
|
1019
|
-
description: [, , `Description`],
|
|
1020
|
-
name: [, , `Name`],
|
|
1021
|
-
schema: [, , `Schema`],
|
|
1022
|
-
}));
|
|
1023
|
-
b.m("PATCH").h(headers).b(body);
|
|
1024
|
-
return b.build();
|
|
1025
|
-
};
|
|
1026
|
-
exports.se_UpdateModelCommand = se_UpdateModelCommand;
|
|
1027
|
-
const se_UpdateRouteCommand = async (input, context) => {
|
|
1028
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
1029
|
-
const headers = {
|
|
1030
|
-
"content-type": "application/json",
|
|
1031
|
-
};
|
|
1032
|
-
b.bp("/v2/apis/{ApiId}/routes/{RouteId}");
|
|
1033
|
-
b.p("ApiId", () => input.ApiId, "{ApiId}", false);
|
|
1034
|
-
b.p("RouteId", () => input.RouteId, "{RouteId}", false);
|
|
1035
|
-
let body;
|
|
1036
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1037
|
-
apiKeyRequired: [, , `ApiKeyRequired`],
|
|
1038
|
-
authorizationScopes: [, (_) => (0, smithy_client_1._json)(_), `AuthorizationScopes`],
|
|
1039
|
-
authorizationType: [, , `AuthorizationType`],
|
|
1040
|
-
authorizerId: [, , `AuthorizerId`],
|
|
1041
|
-
modelSelectionExpression: [, , `ModelSelectionExpression`],
|
|
1042
|
-
operationName: [, , `OperationName`],
|
|
1043
|
-
requestModels: [, (_) => (0, smithy_client_1._json)(_), `RequestModels`],
|
|
1044
|
-
requestParameters: [, (_) => se_RouteParameters(_, context), `RequestParameters`],
|
|
1045
|
-
routeKey: [, , `RouteKey`],
|
|
1046
|
-
routeResponseSelectionExpression: [, , `RouteResponseSelectionExpression`],
|
|
1047
|
-
target: [, , `Target`],
|
|
1048
|
-
}));
|
|
1049
|
-
b.m("PATCH").h(headers).b(body);
|
|
1050
|
-
return b.build();
|
|
1051
|
-
};
|
|
1052
|
-
exports.se_UpdateRouteCommand = se_UpdateRouteCommand;
|
|
1053
|
-
const se_UpdateRouteResponseCommand = async (input, context) => {
|
|
1054
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
1055
|
-
const headers = {
|
|
1056
|
-
"content-type": "application/json",
|
|
1057
|
-
};
|
|
1058
|
-
b.bp("/v2/apis/{ApiId}/routes/{RouteId}/routeresponses/{RouteResponseId}");
|
|
1059
|
-
b.p("ApiId", () => input.ApiId, "{ApiId}", false);
|
|
1060
|
-
b.p("RouteId", () => input.RouteId, "{RouteId}", false);
|
|
1061
|
-
b.p("RouteResponseId", () => input.RouteResponseId, "{RouteResponseId}", false);
|
|
1062
|
-
let body;
|
|
1063
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1064
|
-
modelSelectionExpression: [, , `ModelSelectionExpression`],
|
|
1065
|
-
responseModels: [, (_) => (0, smithy_client_1._json)(_), `ResponseModels`],
|
|
1066
|
-
responseParameters: [, (_) => se_RouteParameters(_, context), `ResponseParameters`],
|
|
1067
|
-
routeResponseKey: [, , `RouteResponseKey`],
|
|
1068
|
-
}));
|
|
1069
|
-
b.m("PATCH").h(headers).b(body);
|
|
1070
|
-
return b.build();
|
|
1071
|
-
};
|
|
1072
|
-
exports.se_UpdateRouteResponseCommand = se_UpdateRouteResponseCommand;
|
|
1073
|
-
const se_UpdateStageCommand = async (input, context) => {
|
|
1074
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
1075
|
-
const headers = {
|
|
1076
|
-
"content-type": "application/json",
|
|
1077
|
-
};
|
|
1078
|
-
b.bp("/v2/apis/{ApiId}/stages/{StageName}");
|
|
1079
|
-
b.p("ApiId", () => input.ApiId, "{ApiId}", false);
|
|
1080
|
-
b.p("StageName", () => input.StageName, "{StageName}", false);
|
|
1081
|
-
let body;
|
|
1082
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1083
|
-
accessLogSettings: [, (_) => se_AccessLogSettings(_, context), `AccessLogSettings`],
|
|
1084
|
-
autoDeploy: [, , `AutoDeploy`],
|
|
1085
|
-
clientCertificateId: [, , `ClientCertificateId`],
|
|
1086
|
-
defaultRouteSettings: [, (_) => se_RouteSettings(_, context), `DefaultRouteSettings`],
|
|
1087
|
-
deploymentId: [, , `DeploymentId`],
|
|
1088
|
-
description: [, , `Description`],
|
|
1089
|
-
routeSettings: [, (_) => se_RouteSettingsMap(_, context), `RouteSettings`],
|
|
1090
|
-
stageVariables: [, (_) => (0, smithy_client_1._json)(_), `StageVariables`],
|
|
1091
|
-
}));
|
|
1092
|
-
b.m("PATCH").h(headers).b(body);
|
|
1093
|
-
return b.build();
|
|
1094
|
-
};
|
|
1095
|
-
exports.se_UpdateStageCommand = se_UpdateStageCommand;
|
|
1096
|
-
const se_UpdateVpcLinkCommand = async (input, context) => {
|
|
1097
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
1098
|
-
const headers = {
|
|
1099
|
-
"content-type": "application/json",
|
|
1100
|
-
};
|
|
1101
|
-
b.bp("/v2/vpclinks/{VpcLinkId}");
|
|
1102
|
-
b.p("VpcLinkId", () => input.VpcLinkId, "{VpcLinkId}", false);
|
|
1103
|
-
let body;
|
|
1104
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1105
|
-
name: [, , `Name`],
|
|
1106
|
-
}));
|
|
1107
|
-
b.m("PATCH").h(headers).b(body);
|
|
1108
|
-
return b.build();
|
|
1109
|
-
};
|
|
1110
|
-
exports.se_UpdateVpcLinkCommand = se_UpdateVpcLinkCommand;
|
|
1111
|
-
const de_CreateApiCommand = async (output, context) => {
|
|
1112
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1113
|
-
return de_CreateApiCommandError(output, context);
|
|
1114
|
-
}
|
|
1115
|
-
const contents = (0, smithy_client_1.map)({
|
|
1116
|
-
$metadata: deserializeMetadata(output),
|
|
1117
|
-
});
|
|
1118
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1119
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1120
|
-
ApiEndpoint: [, smithy_client_1.expectString, `apiEndpoint`],
|
|
1121
|
-
ApiGatewayManaged: [, smithy_client_1.expectBoolean, `apiGatewayManaged`],
|
|
1122
|
-
ApiId: [, smithy_client_1.expectString, `apiId`],
|
|
1123
|
-
ApiKeySelectionExpression: [, smithy_client_1.expectString, `apiKeySelectionExpression`],
|
|
1124
|
-
CorsConfiguration: [, (_) => de_Cors(_, context), `corsConfiguration`],
|
|
1125
|
-
CreatedDate: [, (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)), `createdDate`],
|
|
1126
|
-
Description: [, smithy_client_1.expectString, `description`],
|
|
1127
|
-
DisableExecuteApiEndpoint: [, smithy_client_1.expectBoolean, `disableExecuteApiEndpoint`],
|
|
1128
|
-
DisableSchemaValidation: [, smithy_client_1.expectBoolean, `disableSchemaValidation`],
|
|
1129
|
-
ImportInfo: [, smithy_client_1._json, `importInfo`],
|
|
1130
|
-
Name: [, smithy_client_1.expectString, `name`],
|
|
1131
|
-
ProtocolType: [, smithy_client_1.expectString, `protocolType`],
|
|
1132
|
-
RouteSelectionExpression: [, smithy_client_1.expectString, `routeSelectionExpression`],
|
|
1133
|
-
Tags: [, smithy_client_1._json, `tags`],
|
|
1134
|
-
Version: [, smithy_client_1.expectString, `version`],
|
|
1135
|
-
Warnings: [, smithy_client_1._json, `warnings`],
|
|
1136
|
-
});
|
|
1137
|
-
Object.assign(contents, doc);
|
|
1138
|
-
return contents;
|
|
1139
|
-
};
|
|
1140
|
-
exports.de_CreateApiCommand = de_CreateApiCommand;
|
|
1141
|
-
const de_CreateApiCommandError = async (output, context) => {
|
|
1142
|
-
const parsedOutput = {
|
|
1143
|
-
...output,
|
|
1144
|
-
body: await parseErrorBody(output.body, context),
|
|
1145
|
-
};
|
|
1146
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1147
|
-
switch (errorCode) {
|
|
1148
|
-
case "BadRequestException":
|
|
1149
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
1150
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1151
|
-
case "ConflictException":
|
|
1152
|
-
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
1153
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1154
|
-
case "NotFoundException":
|
|
1155
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
1156
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1157
|
-
case "TooManyRequestsException":
|
|
1158
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
1159
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1160
|
-
default:
|
|
1161
|
-
const parsedBody = parsedOutput.body;
|
|
1162
|
-
return throwDefaultError({
|
|
1163
|
-
output,
|
|
1164
|
-
parsedBody,
|
|
1165
|
-
errorCode,
|
|
1166
|
-
});
|
|
1167
|
-
}
|
|
1168
|
-
};
|
|
1169
|
-
const de_CreateApiMappingCommand = async (output, context) => {
|
|
1170
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1171
|
-
return de_CreateApiMappingCommandError(output, context);
|
|
1172
|
-
}
|
|
1173
|
-
const contents = (0, smithy_client_1.map)({
|
|
1174
|
-
$metadata: deserializeMetadata(output),
|
|
1175
|
-
});
|
|
1176
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1177
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1178
|
-
ApiId: [, smithy_client_1.expectString, `apiId`],
|
|
1179
|
-
ApiMappingId: [, smithy_client_1.expectString, `apiMappingId`],
|
|
1180
|
-
ApiMappingKey: [, smithy_client_1.expectString, `apiMappingKey`],
|
|
1181
|
-
Stage: [, smithy_client_1.expectString, `stage`],
|
|
1182
|
-
});
|
|
1183
|
-
Object.assign(contents, doc);
|
|
1184
|
-
return contents;
|
|
1185
|
-
};
|
|
1186
|
-
exports.de_CreateApiMappingCommand = de_CreateApiMappingCommand;
|
|
1187
|
-
const de_CreateApiMappingCommandError = async (output, context) => {
|
|
1188
|
-
const parsedOutput = {
|
|
1189
|
-
...output,
|
|
1190
|
-
body: await parseErrorBody(output.body, context),
|
|
1191
|
-
};
|
|
1192
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1193
|
-
switch (errorCode) {
|
|
1194
|
-
case "BadRequestException":
|
|
1195
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
1196
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1197
|
-
case "ConflictException":
|
|
1198
|
-
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
1199
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1200
|
-
case "NotFoundException":
|
|
1201
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
1202
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1203
|
-
case "TooManyRequestsException":
|
|
1204
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
1205
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1206
|
-
default:
|
|
1207
|
-
const parsedBody = parsedOutput.body;
|
|
1208
|
-
return throwDefaultError({
|
|
1209
|
-
output,
|
|
1210
|
-
parsedBody,
|
|
1211
|
-
errorCode,
|
|
1212
|
-
});
|
|
1213
|
-
}
|
|
1214
|
-
};
|
|
1215
|
-
const de_CreateAuthorizerCommand = async (output, context) => {
|
|
1216
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1217
|
-
return de_CreateAuthorizerCommandError(output, context);
|
|
1218
|
-
}
|
|
1219
|
-
const contents = (0, smithy_client_1.map)({
|
|
1220
|
-
$metadata: deserializeMetadata(output),
|
|
1221
|
-
});
|
|
1222
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1223
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1224
|
-
AuthorizerCredentialsArn: [, smithy_client_1.expectString, `authorizerCredentialsArn`],
|
|
1225
|
-
AuthorizerId: [, smithy_client_1.expectString, `authorizerId`],
|
|
1226
|
-
AuthorizerPayloadFormatVersion: [, smithy_client_1.expectString, `authorizerPayloadFormatVersion`],
|
|
1227
|
-
AuthorizerResultTtlInSeconds: [, smithy_client_1.expectInt32, `authorizerResultTtlInSeconds`],
|
|
1228
|
-
AuthorizerType: [, smithy_client_1.expectString, `authorizerType`],
|
|
1229
|
-
AuthorizerUri: [, smithy_client_1.expectString, `authorizerUri`],
|
|
1230
|
-
EnableSimpleResponses: [, smithy_client_1.expectBoolean, `enableSimpleResponses`],
|
|
1231
|
-
IdentitySource: [, smithy_client_1._json, `identitySource`],
|
|
1232
|
-
IdentityValidationExpression: [, smithy_client_1.expectString, `identityValidationExpression`],
|
|
1233
|
-
JwtConfiguration: [, (_) => de_JWTConfiguration(_, context), `jwtConfiguration`],
|
|
1234
|
-
Name: [, smithy_client_1.expectString, `name`],
|
|
1235
|
-
});
|
|
1236
|
-
Object.assign(contents, doc);
|
|
1237
|
-
return contents;
|
|
1238
|
-
};
|
|
1239
|
-
exports.de_CreateAuthorizerCommand = de_CreateAuthorizerCommand;
|
|
1240
|
-
const de_CreateAuthorizerCommandError = async (output, context) => {
|
|
1241
|
-
const parsedOutput = {
|
|
1242
|
-
...output,
|
|
1243
|
-
body: await parseErrorBody(output.body, context),
|
|
1244
|
-
};
|
|
1245
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1246
|
-
switch (errorCode) {
|
|
1247
|
-
case "BadRequestException":
|
|
1248
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
1249
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1250
|
-
case "ConflictException":
|
|
1251
|
-
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
1252
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1253
|
-
case "NotFoundException":
|
|
1254
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
1255
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1256
|
-
case "TooManyRequestsException":
|
|
1257
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
1258
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1259
|
-
default:
|
|
1260
|
-
const parsedBody = parsedOutput.body;
|
|
1261
|
-
return throwDefaultError({
|
|
1262
|
-
output,
|
|
1263
|
-
parsedBody,
|
|
1264
|
-
errorCode,
|
|
1265
|
-
});
|
|
1266
|
-
}
|
|
1267
|
-
};
|
|
1268
|
-
const de_CreateDeploymentCommand = async (output, context) => {
|
|
1269
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1270
|
-
return de_CreateDeploymentCommandError(output, context);
|
|
1271
|
-
}
|
|
1272
|
-
const contents = (0, smithy_client_1.map)({
|
|
1273
|
-
$metadata: deserializeMetadata(output),
|
|
1274
|
-
});
|
|
1275
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1276
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1277
|
-
AutoDeployed: [, smithy_client_1.expectBoolean, `autoDeployed`],
|
|
1278
|
-
CreatedDate: [, (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)), `createdDate`],
|
|
1279
|
-
DeploymentId: [, smithy_client_1.expectString, `deploymentId`],
|
|
1280
|
-
DeploymentStatus: [, smithy_client_1.expectString, `deploymentStatus`],
|
|
1281
|
-
DeploymentStatusMessage: [, smithy_client_1.expectString, `deploymentStatusMessage`],
|
|
1282
|
-
Description: [, smithy_client_1.expectString, `description`],
|
|
1283
|
-
});
|
|
1284
|
-
Object.assign(contents, doc);
|
|
1285
|
-
return contents;
|
|
1286
|
-
};
|
|
1287
|
-
exports.de_CreateDeploymentCommand = de_CreateDeploymentCommand;
|
|
1288
|
-
const de_CreateDeploymentCommandError = async (output, context) => {
|
|
1289
|
-
const parsedOutput = {
|
|
1290
|
-
...output,
|
|
1291
|
-
body: await parseErrorBody(output.body, context),
|
|
1292
|
-
};
|
|
1293
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1294
|
-
switch (errorCode) {
|
|
1295
|
-
case "BadRequestException":
|
|
1296
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
1297
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1298
|
-
case "ConflictException":
|
|
1299
|
-
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
1300
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1301
|
-
case "NotFoundException":
|
|
1302
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
1303
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1304
|
-
case "TooManyRequestsException":
|
|
1305
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
1306
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1307
|
-
default:
|
|
1308
|
-
const parsedBody = parsedOutput.body;
|
|
1309
|
-
return throwDefaultError({
|
|
1310
|
-
output,
|
|
1311
|
-
parsedBody,
|
|
1312
|
-
errorCode,
|
|
1313
|
-
});
|
|
1314
|
-
}
|
|
1315
|
-
};
|
|
1316
|
-
const de_CreateDomainNameCommand = async (output, context) => {
|
|
1317
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1318
|
-
return de_CreateDomainNameCommandError(output, context);
|
|
1319
|
-
}
|
|
1320
|
-
const contents = (0, smithy_client_1.map)({
|
|
1321
|
-
$metadata: deserializeMetadata(output),
|
|
1322
|
-
});
|
|
1323
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1324
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1325
|
-
ApiMappingSelectionExpression: [, smithy_client_1.expectString, `apiMappingSelectionExpression`],
|
|
1326
|
-
DomainName: [, smithy_client_1.expectString, `domainName`],
|
|
1327
|
-
DomainNameConfigurations: [, (_) => de_DomainNameConfigurations(_, context), `domainNameConfigurations`],
|
|
1328
|
-
MutualTlsAuthentication: [, (_) => de_MutualTlsAuthentication(_, context), `mutualTlsAuthentication`],
|
|
1329
|
-
Tags: [, smithy_client_1._json, `tags`],
|
|
1330
|
-
});
|
|
1331
|
-
Object.assign(contents, doc);
|
|
1332
|
-
return contents;
|
|
1333
|
-
};
|
|
1334
|
-
exports.de_CreateDomainNameCommand = de_CreateDomainNameCommand;
|
|
1335
|
-
const de_CreateDomainNameCommandError = async (output, context) => {
|
|
1336
|
-
const parsedOutput = {
|
|
1337
|
-
...output,
|
|
1338
|
-
body: await parseErrorBody(output.body, context),
|
|
1339
|
-
};
|
|
1340
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1341
|
-
switch (errorCode) {
|
|
1342
|
-
case "AccessDeniedException":
|
|
1343
|
-
case "com.amazonaws.apigatewayv2#AccessDeniedException":
|
|
1344
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1345
|
-
case "BadRequestException":
|
|
1346
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
1347
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1348
|
-
case "ConflictException":
|
|
1349
|
-
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
1350
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1351
|
-
case "NotFoundException":
|
|
1352
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
1353
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1354
|
-
case "TooManyRequestsException":
|
|
1355
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
1356
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1357
|
-
default:
|
|
1358
|
-
const parsedBody = parsedOutput.body;
|
|
1359
|
-
return throwDefaultError({
|
|
1360
|
-
output,
|
|
1361
|
-
parsedBody,
|
|
1362
|
-
errorCode,
|
|
1363
|
-
});
|
|
1364
|
-
}
|
|
1365
|
-
};
|
|
1366
|
-
const de_CreateIntegrationCommand = async (output, context) => {
|
|
1367
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1368
|
-
return de_CreateIntegrationCommandError(output, context);
|
|
1369
|
-
}
|
|
1370
|
-
const contents = (0, smithy_client_1.map)({
|
|
1371
|
-
$metadata: deserializeMetadata(output),
|
|
1372
|
-
});
|
|
1373
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1374
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1375
|
-
ApiGatewayManaged: [, smithy_client_1.expectBoolean, `apiGatewayManaged`],
|
|
1376
|
-
ConnectionId: [, smithy_client_1.expectString, `connectionId`],
|
|
1377
|
-
ConnectionType: [, smithy_client_1.expectString, `connectionType`],
|
|
1378
|
-
ContentHandlingStrategy: [, smithy_client_1.expectString, `contentHandlingStrategy`],
|
|
1379
|
-
CredentialsArn: [, smithy_client_1.expectString, `credentialsArn`],
|
|
1380
|
-
Description: [, smithy_client_1.expectString, `description`],
|
|
1381
|
-
IntegrationId: [, smithy_client_1.expectString, `integrationId`],
|
|
1382
|
-
IntegrationMethod: [, smithy_client_1.expectString, `integrationMethod`],
|
|
1383
|
-
IntegrationResponseSelectionExpression: [, smithy_client_1.expectString, `integrationResponseSelectionExpression`],
|
|
1384
|
-
IntegrationSubtype: [, smithy_client_1.expectString, `integrationSubtype`],
|
|
1385
|
-
IntegrationType: [, smithy_client_1.expectString, `integrationType`],
|
|
1386
|
-
IntegrationUri: [, smithy_client_1.expectString, `integrationUri`],
|
|
1387
|
-
PassthroughBehavior: [, smithy_client_1.expectString, `passthroughBehavior`],
|
|
1388
|
-
PayloadFormatVersion: [, smithy_client_1.expectString, `payloadFormatVersion`],
|
|
1389
|
-
RequestParameters: [, smithy_client_1._json, `requestParameters`],
|
|
1390
|
-
RequestTemplates: [, smithy_client_1._json, `requestTemplates`],
|
|
1391
|
-
ResponseParameters: [, smithy_client_1._json, `responseParameters`],
|
|
1392
|
-
TemplateSelectionExpression: [, smithy_client_1.expectString, `templateSelectionExpression`],
|
|
1393
|
-
TimeoutInMillis: [, smithy_client_1.expectInt32, `timeoutInMillis`],
|
|
1394
|
-
TlsConfig: [, (_) => de_TlsConfig(_, context), `tlsConfig`],
|
|
1395
|
-
});
|
|
1396
|
-
Object.assign(contents, doc);
|
|
1397
|
-
return contents;
|
|
1398
|
-
};
|
|
1399
|
-
exports.de_CreateIntegrationCommand = de_CreateIntegrationCommand;
|
|
1400
|
-
const de_CreateIntegrationCommandError = async (output, context) => {
|
|
1401
|
-
const parsedOutput = {
|
|
1402
|
-
...output,
|
|
1403
|
-
body: await parseErrorBody(output.body, context),
|
|
1404
|
-
};
|
|
1405
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1406
|
-
switch (errorCode) {
|
|
1407
|
-
case "BadRequestException":
|
|
1408
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
1409
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1410
|
-
case "ConflictException":
|
|
1411
|
-
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
1412
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1413
|
-
case "NotFoundException":
|
|
1414
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
1415
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1416
|
-
case "TooManyRequestsException":
|
|
1417
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
1418
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1419
|
-
default:
|
|
1420
|
-
const parsedBody = parsedOutput.body;
|
|
1421
|
-
return throwDefaultError({
|
|
1422
|
-
output,
|
|
1423
|
-
parsedBody,
|
|
1424
|
-
errorCode,
|
|
1425
|
-
});
|
|
1426
|
-
}
|
|
1427
|
-
};
|
|
1428
|
-
const de_CreateIntegrationResponseCommand = async (output, context) => {
|
|
1429
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1430
|
-
return de_CreateIntegrationResponseCommandError(output, context);
|
|
1431
|
-
}
|
|
1432
|
-
const contents = (0, smithy_client_1.map)({
|
|
1433
|
-
$metadata: deserializeMetadata(output),
|
|
1434
|
-
});
|
|
1435
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1436
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1437
|
-
ContentHandlingStrategy: [, smithy_client_1.expectString, `contentHandlingStrategy`],
|
|
1438
|
-
IntegrationResponseId: [, smithy_client_1.expectString, `integrationResponseId`],
|
|
1439
|
-
IntegrationResponseKey: [, smithy_client_1.expectString, `integrationResponseKey`],
|
|
1440
|
-
ResponseParameters: [, smithy_client_1._json, `responseParameters`],
|
|
1441
|
-
ResponseTemplates: [, smithy_client_1._json, `responseTemplates`],
|
|
1442
|
-
TemplateSelectionExpression: [, smithy_client_1.expectString, `templateSelectionExpression`],
|
|
1443
|
-
});
|
|
1444
|
-
Object.assign(contents, doc);
|
|
1445
|
-
return contents;
|
|
1446
|
-
};
|
|
1447
|
-
exports.de_CreateIntegrationResponseCommand = de_CreateIntegrationResponseCommand;
|
|
1448
|
-
const de_CreateIntegrationResponseCommandError = async (output, context) => {
|
|
1449
|
-
const parsedOutput = {
|
|
1450
|
-
...output,
|
|
1451
|
-
body: await parseErrorBody(output.body, context),
|
|
1452
|
-
};
|
|
1453
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1454
|
-
switch (errorCode) {
|
|
1455
|
-
case "BadRequestException":
|
|
1456
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
1457
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1458
|
-
case "ConflictException":
|
|
1459
|
-
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
1460
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1461
|
-
case "NotFoundException":
|
|
1462
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
1463
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1464
|
-
case "TooManyRequestsException":
|
|
1465
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
1466
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1467
|
-
default:
|
|
1468
|
-
const parsedBody = parsedOutput.body;
|
|
1469
|
-
return throwDefaultError({
|
|
1470
|
-
output,
|
|
1471
|
-
parsedBody,
|
|
1472
|
-
errorCode,
|
|
1473
|
-
});
|
|
1474
|
-
}
|
|
1475
|
-
};
|
|
1476
|
-
const de_CreateModelCommand = async (output, context) => {
|
|
1477
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1478
|
-
return de_CreateModelCommandError(output, context);
|
|
1479
|
-
}
|
|
1480
|
-
const contents = (0, smithy_client_1.map)({
|
|
1481
|
-
$metadata: deserializeMetadata(output),
|
|
1482
|
-
});
|
|
1483
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1484
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1485
|
-
ContentType: [, smithy_client_1.expectString, `contentType`],
|
|
1486
|
-
Description: [, smithy_client_1.expectString, `description`],
|
|
1487
|
-
ModelId: [, smithy_client_1.expectString, `modelId`],
|
|
1488
|
-
Name: [, smithy_client_1.expectString, `name`],
|
|
1489
|
-
Schema: [, smithy_client_1.expectString, `schema`],
|
|
1490
|
-
});
|
|
1491
|
-
Object.assign(contents, doc);
|
|
1492
|
-
return contents;
|
|
1493
|
-
};
|
|
1494
|
-
exports.de_CreateModelCommand = de_CreateModelCommand;
|
|
1495
|
-
const de_CreateModelCommandError = async (output, context) => {
|
|
1496
|
-
const parsedOutput = {
|
|
1497
|
-
...output,
|
|
1498
|
-
body: await parseErrorBody(output.body, context),
|
|
1499
|
-
};
|
|
1500
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1501
|
-
switch (errorCode) {
|
|
1502
|
-
case "BadRequestException":
|
|
1503
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
1504
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1505
|
-
case "ConflictException":
|
|
1506
|
-
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
1507
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1508
|
-
case "NotFoundException":
|
|
1509
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
1510
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1511
|
-
case "TooManyRequestsException":
|
|
1512
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
1513
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1514
|
-
default:
|
|
1515
|
-
const parsedBody = parsedOutput.body;
|
|
1516
|
-
return throwDefaultError({
|
|
1517
|
-
output,
|
|
1518
|
-
parsedBody,
|
|
1519
|
-
errorCode,
|
|
1520
|
-
});
|
|
1521
|
-
}
|
|
1522
|
-
};
|
|
1523
|
-
const de_CreateRouteCommand = async (output, context) => {
|
|
1524
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1525
|
-
return de_CreateRouteCommandError(output, context);
|
|
1526
|
-
}
|
|
1527
|
-
const contents = (0, smithy_client_1.map)({
|
|
1528
|
-
$metadata: deserializeMetadata(output),
|
|
1529
|
-
});
|
|
1530
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1531
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1532
|
-
ApiGatewayManaged: [, smithy_client_1.expectBoolean, `apiGatewayManaged`],
|
|
1533
|
-
ApiKeyRequired: [, smithy_client_1.expectBoolean, `apiKeyRequired`],
|
|
1534
|
-
AuthorizationScopes: [, smithy_client_1._json, `authorizationScopes`],
|
|
1535
|
-
AuthorizationType: [, smithy_client_1.expectString, `authorizationType`],
|
|
1536
|
-
AuthorizerId: [, smithy_client_1.expectString, `authorizerId`],
|
|
1537
|
-
ModelSelectionExpression: [, smithy_client_1.expectString, `modelSelectionExpression`],
|
|
1538
|
-
OperationName: [, smithy_client_1.expectString, `operationName`],
|
|
1539
|
-
RequestModels: [, smithy_client_1._json, `requestModels`],
|
|
1540
|
-
RequestParameters: [, (_) => de_RouteParameters(_, context), `requestParameters`],
|
|
1541
|
-
RouteId: [, smithy_client_1.expectString, `routeId`],
|
|
1542
|
-
RouteKey: [, smithy_client_1.expectString, `routeKey`],
|
|
1543
|
-
RouteResponseSelectionExpression: [, smithy_client_1.expectString, `routeResponseSelectionExpression`],
|
|
1544
|
-
Target: [, smithy_client_1.expectString, `target`],
|
|
1545
|
-
});
|
|
1546
|
-
Object.assign(contents, doc);
|
|
1547
|
-
return contents;
|
|
1548
|
-
};
|
|
1549
|
-
exports.de_CreateRouteCommand = de_CreateRouteCommand;
|
|
1550
|
-
const de_CreateRouteCommandError = async (output, context) => {
|
|
1551
|
-
const parsedOutput = {
|
|
1552
|
-
...output,
|
|
1553
|
-
body: await parseErrorBody(output.body, context),
|
|
1554
|
-
};
|
|
1555
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1556
|
-
switch (errorCode) {
|
|
1557
|
-
case "BadRequestException":
|
|
1558
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
1559
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1560
|
-
case "ConflictException":
|
|
1561
|
-
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
1562
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1563
|
-
case "NotFoundException":
|
|
1564
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
1565
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1566
|
-
case "TooManyRequestsException":
|
|
1567
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
1568
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1569
|
-
default:
|
|
1570
|
-
const parsedBody = parsedOutput.body;
|
|
1571
|
-
return throwDefaultError({
|
|
1572
|
-
output,
|
|
1573
|
-
parsedBody,
|
|
1574
|
-
errorCode,
|
|
1575
|
-
});
|
|
1576
|
-
}
|
|
1577
|
-
};
|
|
1578
|
-
const de_CreateRouteResponseCommand = async (output, context) => {
|
|
1579
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1580
|
-
return de_CreateRouteResponseCommandError(output, context);
|
|
1581
|
-
}
|
|
1582
|
-
const contents = (0, smithy_client_1.map)({
|
|
1583
|
-
$metadata: deserializeMetadata(output),
|
|
1584
|
-
});
|
|
1585
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1586
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1587
|
-
ModelSelectionExpression: [, smithy_client_1.expectString, `modelSelectionExpression`],
|
|
1588
|
-
ResponseModels: [, smithy_client_1._json, `responseModels`],
|
|
1589
|
-
ResponseParameters: [, (_) => de_RouteParameters(_, context), `responseParameters`],
|
|
1590
|
-
RouteResponseId: [, smithy_client_1.expectString, `routeResponseId`],
|
|
1591
|
-
RouteResponseKey: [, smithy_client_1.expectString, `routeResponseKey`],
|
|
1592
|
-
});
|
|
1593
|
-
Object.assign(contents, doc);
|
|
1594
|
-
return contents;
|
|
1595
|
-
};
|
|
1596
|
-
exports.de_CreateRouteResponseCommand = de_CreateRouteResponseCommand;
|
|
1597
|
-
const de_CreateRouteResponseCommandError = async (output, context) => {
|
|
1598
|
-
const parsedOutput = {
|
|
1599
|
-
...output,
|
|
1600
|
-
body: await parseErrorBody(output.body, context),
|
|
1601
|
-
};
|
|
1602
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1603
|
-
switch (errorCode) {
|
|
1604
|
-
case "BadRequestException":
|
|
1605
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
1606
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1607
|
-
case "ConflictException":
|
|
1608
|
-
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
1609
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1610
|
-
case "NotFoundException":
|
|
1611
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
1612
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1613
|
-
case "TooManyRequestsException":
|
|
1614
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
1615
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1616
|
-
default:
|
|
1617
|
-
const parsedBody = parsedOutput.body;
|
|
1618
|
-
return throwDefaultError({
|
|
1619
|
-
output,
|
|
1620
|
-
parsedBody,
|
|
1621
|
-
errorCode,
|
|
1622
|
-
});
|
|
1623
|
-
}
|
|
1624
|
-
};
|
|
1625
|
-
const de_CreateStageCommand = async (output, context) => {
|
|
1626
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1627
|
-
return de_CreateStageCommandError(output, context);
|
|
1628
|
-
}
|
|
1629
|
-
const contents = (0, smithy_client_1.map)({
|
|
1630
|
-
$metadata: deserializeMetadata(output),
|
|
1631
|
-
});
|
|
1632
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1633
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1634
|
-
AccessLogSettings: [, (_) => de_AccessLogSettings(_, context), `accessLogSettings`],
|
|
1635
|
-
ApiGatewayManaged: [, smithy_client_1.expectBoolean, `apiGatewayManaged`],
|
|
1636
|
-
AutoDeploy: [, smithy_client_1.expectBoolean, `autoDeploy`],
|
|
1637
|
-
ClientCertificateId: [, smithy_client_1.expectString, `clientCertificateId`],
|
|
1638
|
-
CreatedDate: [, (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)), `createdDate`],
|
|
1639
|
-
DefaultRouteSettings: [, (_) => de_RouteSettings(_, context), `defaultRouteSettings`],
|
|
1640
|
-
DeploymentId: [, smithy_client_1.expectString, `deploymentId`],
|
|
1641
|
-
Description: [, smithy_client_1.expectString, `description`],
|
|
1642
|
-
LastDeploymentStatusMessage: [, smithy_client_1.expectString, `lastDeploymentStatusMessage`],
|
|
1643
|
-
LastUpdatedDate: [, (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)), `lastUpdatedDate`],
|
|
1644
|
-
RouteSettings: [, (_) => de_RouteSettingsMap(_, context), `routeSettings`],
|
|
1645
|
-
StageName: [, smithy_client_1.expectString, `stageName`],
|
|
1646
|
-
StageVariables: [, smithy_client_1._json, `stageVariables`],
|
|
1647
|
-
Tags: [, smithy_client_1._json, `tags`],
|
|
1648
|
-
});
|
|
1649
|
-
Object.assign(contents, doc);
|
|
1650
|
-
return contents;
|
|
1651
|
-
};
|
|
1652
|
-
exports.de_CreateStageCommand = de_CreateStageCommand;
|
|
1653
|
-
const de_CreateStageCommandError = async (output, context) => {
|
|
1654
|
-
const parsedOutput = {
|
|
1655
|
-
...output,
|
|
1656
|
-
body: await parseErrorBody(output.body, context),
|
|
1657
|
-
};
|
|
1658
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1659
|
-
switch (errorCode) {
|
|
1660
|
-
case "BadRequestException":
|
|
1661
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
1662
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1663
|
-
case "ConflictException":
|
|
1664
|
-
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
1665
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1666
|
-
case "NotFoundException":
|
|
1667
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
1668
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1669
|
-
case "TooManyRequestsException":
|
|
1670
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
1671
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1672
|
-
default:
|
|
1673
|
-
const parsedBody = parsedOutput.body;
|
|
1674
|
-
return throwDefaultError({
|
|
1675
|
-
output,
|
|
1676
|
-
parsedBody,
|
|
1677
|
-
errorCode,
|
|
1678
|
-
});
|
|
1679
|
-
}
|
|
1680
|
-
};
|
|
1681
|
-
const de_CreateVpcLinkCommand = async (output, context) => {
|
|
1682
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1683
|
-
return de_CreateVpcLinkCommandError(output, context);
|
|
1684
|
-
}
|
|
1685
|
-
const contents = (0, smithy_client_1.map)({
|
|
1686
|
-
$metadata: deserializeMetadata(output),
|
|
1687
|
-
});
|
|
1688
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1689
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1690
|
-
CreatedDate: [, (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)), `createdDate`],
|
|
1691
|
-
Name: [, smithy_client_1.expectString, `name`],
|
|
1692
|
-
SecurityGroupIds: [, smithy_client_1._json, `securityGroupIds`],
|
|
1693
|
-
SubnetIds: [, smithy_client_1._json, `subnetIds`],
|
|
1694
|
-
Tags: [, smithy_client_1._json, `tags`],
|
|
1695
|
-
VpcLinkId: [, smithy_client_1.expectString, `vpcLinkId`],
|
|
1696
|
-
VpcLinkStatus: [, smithy_client_1.expectString, `vpcLinkStatus`],
|
|
1697
|
-
VpcLinkStatusMessage: [, smithy_client_1.expectString, `vpcLinkStatusMessage`],
|
|
1698
|
-
VpcLinkVersion: [, smithy_client_1.expectString, `vpcLinkVersion`],
|
|
1699
|
-
});
|
|
1700
|
-
Object.assign(contents, doc);
|
|
1701
|
-
return contents;
|
|
1702
|
-
};
|
|
1703
|
-
exports.de_CreateVpcLinkCommand = de_CreateVpcLinkCommand;
|
|
1704
|
-
const de_CreateVpcLinkCommandError = async (output, context) => {
|
|
1705
|
-
const parsedOutput = {
|
|
1706
|
-
...output,
|
|
1707
|
-
body: await parseErrorBody(output.body, context),
|
|
1708
|
-
};
|
|
1709
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1710
|
-
switch (errorCode) {
|
|
1711
|
-
case "BadRequestException":
|
|
1712
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
1713
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1714
|
-
case "TooManyRequestsException":
|
|
1715
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
1716
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1717
|
-
default:
|
|
1718
|
-
const parsedBody = parsedOutput.body;
|
|
1719
|
-
return throwDefaultError({
|
|
1720
|
-
output,
|
|
1721
|
-
parsedBody,
|
|
1722
|
-
errorCode,
|
|
1723
|
-
});
|
|
1724
|
-
}
|
|
1725
|
-
};
|
|
1726
|
-
const de_DeleteAccessLogSettingsCommand = async (output, context) => {
|
|
1727
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1728
|
-
return de_DeleteAccessLogSettingsCommandError(output, context);
|
|
1729
|
-
}
|
|
1730
|
-
const contents = (0, smithy_client_1.map)({
|
|
1731
|
-
$metadata: deserializeMetadata(output),
|
|
1732
|
-
});
|
|
1733
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1734
|
-
return contents;
|
|
1735
|
-
};
|
|
1736
|
-
exports.de_DeleteAccessLogSettingsCommand = de_DeleteAccessLogSettingsCommand;
|
|
1737
|
-
const de_DeleteAccessLogSettingsCommandError = async (output, context) => {
|
|
1738
|
-
const parsedOutput = {
|
|
1739
|
-
...output,
|
|
1740
|
-
body: await parseErrorBody(output.body, context),
|
|
1741
|
-
};
|
|
1742
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1743
|
-
switch (errorCode) {
|
|
1744
|
-
case "NotFoundException":
|
|
1745
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
1746
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1747
|
-
case "TooManyRequestsException":
|
|
1748
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
1749
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1750
|
-
default:
|
|
1751
|
-
const parsedBody = parsedOutput.body;
|
|
1752
|
-
return throwDefaultError({
|
|
1753
|
-
output,
|
|
1754
|
-
parsedBody,
|
|
1755
|
-
errorCode,
|
|
1756
|
-
});
|
|
1757
|
-
}
|
|
1758
|
-
};
|
|
1759
|
-
const de_DeleteApiCommand = async (output, context) => {
|
|
1760
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1761
|
-
return de_DeleteApiCommandError(output, context);
|
|
1762
|
-
}
|
|
1763
|
-
const contents = (0, smithy_client_1.map)({
|
|
1764
|
-
$metadata: deserializeMetadata(output),
|
|
1765
|
-
});
|
|
1766
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1767
|
-
return contents;
|
|
1768
|
-
};
|
|
1769
|
-
exports.de_DeleteApiCommand = de_DeleteApiCommand;
|
|
1770
|
-
const de_DeleteApiCommandError = async (output, context) => {
|
|
1771
|
-
const parsedOutput = {
|
|
1772
|
-
...output,
|
|
1773
|
-
body: await parseErrorBody(output.body, context),
|
|
1774
|
-
};
|
|
1775
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1776
|
-
switch (errorCode) {
|
|
1777
|
-
case "NotFoundException":
|
|
1778
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
1779
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1780
|
-
case "TooManyRequestsException":
|
|
1781
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
1782
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1783
|
-
default:
|
|
1784
|
-
const parsedBody = parsedOutput.body;
|
|
1785
|
-
return throwDefaultError({
|
|
1786
|
-
output,
|
|
1787
|
-
parsedBody,
|
|
1788
|
-
errorCode,
|
|
1789
|
-
});
|
|
1790
|
-
}
|
|
1791
|
-
};
|
|
1792
|
-
const de_DeleteApiMappingCommand = async (output, context) => {
|
|
1793
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1794
|
-
return de_DeleteApiMappingCommandError(output, context);
|
|
1795
|
-
}
|
|
1796
|
-
const contents = (0, smithy_client_1.map)({
|
|
1797
|
-
$metadata: deserializeMetadata(output),
|
|
1798
|
-
});
|
|
1799
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1800
|
-
return contents;
|
|
1801
|
-
};
|
|
1802
|
-
exports.de_DeleteApiMappingCommand = de_DeleteApiMappingCommand;
|
|
1803
|
-
const de_DeleteApiMappingCommandError = async (output, context) => {
|
|
1804
|
-
const parsedOutput = {
|
|
1805
|
-
...output,
|
|
1806
|
-
body: await parseErrorBody(output.body, context),
|
|
1807
|
-
};
|
|
1808
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1809
|
-
switch (errorCode) {
|
|
1810
|
-
case "BadRequestException":
|
|
1811
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
1812
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1813
|
-
case "NotFoundException":
|
|
1814
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
1815
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1816
|
-
case "TooManyRequestsException":
|
|
1817
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
1818
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1819
|
-
default:
|
|
1820
|
-
const parsedBody = parsedOutput.body;
|
|
1821
|
-
return throwDefaultError({
|
|
1822
|
-
output,
|
|
1823
|
-
parsedBody,
|
|
1824
|
-
errorCode,
|
|
1825
|
-
});
|
|
1826
|
-
}
|
|
1827
|
-
};
|
|
1828
|
-
const de_DeleteAuthorizerCommand = async (output, context) => {
|
|
1829
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1830
|
-
return de_DeleteAuthorizerCommandError(output, context);
|
|
1831
|
-
}
|
|
1832
|
-
const contents = (0, smithy_client_1.map)({
|
|
1833
|
-
$metadata: deserializeMetadata(output),
|
|
1834
|
-
});
|
|
1835
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1836
|
-
return contents;
|
|
1837
|
-
};
|
|
1838
|
-
exports.de_DeleteAuthorizerCommand = de_DeleteAuthorizerCommand;
|
|
1839
|
-
const de_DeleteAuthorizerCommandError = async (output, context) => {
|
|
1840
|
-
const parsedOutput = {
|
|
1841
|
-
...output,
|
|
1842
|
-
body: await parseErrorBody(output.body, context),
|
|
1843
|
-
};
|
|
1844
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1845
|
-
switch (errorCode) {
|
|
1846
|
-
case "NotFoundException":
|
|
1847
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
1848
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1849
|
-
case "TooManyRequestsException":
|
|
1850
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
1851
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1852
|
-
default:
|
|
1853
|
-
const parsedBody = parsedOutput.body;
|
|
1854
|
-
return throwDefaultError({
|
|
1855
|
-
output,
|
|
1856
|
-
parsedBody,
|
|
1857
|
-
errorCode,
|
|
1858
|
-
});
|
|
1859
|
-
}
|
|
1860
|
-
};
|
|
1861
|
-
const de_DeleteCorsConfigurationCommand = async (output, context) => {
|
|
1862
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1863
|
-
return de_DeleteCorsConfigurationCommandError(output, context);
|
|
1864
|
-
}
|
|
1865
|
-
const contents = (0, smithy_client_1.map)({
|
|
1866
|
-
$metadata: deserializeMetadata(output),
|
|
1867
|
-
});
|
|
1868
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1869
|
-
return contents;
|
|
1870
|
-
};
|
|
1871
|
-
exports.de_DeleteCorsConfigurationCommand = de_DeleteCorsConfigurationCommand;
|
|
1872
|
-
const de_DeleteCorsConfigurationCommandError = async (output, context) => {
|
|
1873
|
-
const parsedOutput = {
|
|
1874
|
-
...output,
|
|
1875
|
-
body: await parseErrorBody(output.body, context),
|
|
1876
|
-
};
|
|
1877
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1878
|
-
switch (errorCode) {
|
|
1879
|
-
case "NotFoundException":
|
|
1880
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
1881
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1882
|
-
case "TooManyRequestsException":
|
|
1883
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
1884
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1885
|
-
default:
|
|
1886
|
-
const parsedBody = parsedOutput.body;
|
|
1887
|
-
return throwDefaultError({
|
|
1888
|
-
output,
|
|
1889
|
-
parsedBody,
|
|
1890
|
-
errorCode,
|
|
1891
|
-
});
|
|
1892
|
-
}
|
|
1893
|
-
};
|
|
1894
|
-
const de_DeleteDeploymentCommand = async (output, context) => {
|
|
1895
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1896
|
-
return de_DeleteDeploymentCommandError(output, context);
|
|
1897
|
-
}
|
|
1898
|
-
const contents = (0, smithy_client_1.map)({
|
|
1899
|
-
$metadata: deserializeMetadata(output),
|
|
1900
|
-
});
|
|
1901
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1902
|
-
return contents;
|
|
1903
|
-
};
|
|
1904
|
-
exports.de_DeleteDeploymentCommand = de_DeleteDeploymentCommand;
|
|
1905
|
-
const de_DeleteDeploymentCommandError = async (output, context) => {
|
|
1906
|
-
const parsedOutput = {
|
|
1907
|
-
...output,
|
|
1908
|
-
body: await parseErrorBody(output.body, context),
|
|
1909
|
-
};
|
|
1910
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1911
|
-
switch (errorCode) {
|
|
1912
|
-
case "NotFoundException":
|
|
1913
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
1914
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1915
|
-
case "TooManyRequestsException":
|
|
1916
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
1917
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1918
|
-
default:
|
|
1919
|
-
const parsedBody = parsedOutput.body;
|
|
1920
|
-
return throwDefaultError({
|
|
1921
|
-
output,
|
|
1922
|
-
parsedBody,
|
|
1923
|
-
errorCode,
|
|
1924
|
-
});
|
|
1925
|
-
}
|
|
1926
|
-
};
|
|
1927
|
-
const de_DeleteDomainNameCommand = async (output, context) => {
|
|
1928
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1929
|
-
return de_DeleteDomainNameCommandError(output, context);
|
|
1930
|
-
}
|
|
1931
|
-
const contents = (0, smithy_client_1.map)({
|
|
1932
|
-
$metadata: deserializeMetadata(output),
|
|
1933
|
-
});
|
|
1934
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1935
|
-
return contents;
|
|
1936
|
-
};
|
|
1937
|
-
exports.de_DeleteDomainNameCommand = de_DeleteDomainNameCommand;
|
|
1938
|
-
const de_DeleteDomainNameCommandError = async (output, context) => {
|
|
1939
|
-
const parsedOutput = {
|
|
1940
|
-
...output,
|
|
1941
|
-
body: await parseErrorBody(output.body, context),
|
|
1942
|
-
};
|
|
1943
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1944
|
-
switch (errorCode) {
|
|
1945
|
-
case "NotFoundException":
|
|
1946
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
1947
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1948
|
-
case "TooManyRequestsException":
|
|
1949
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
1950
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1951
|
-
default:
|
|
1952
|
-
const parsedBody = parsedOutput.body;
|
|
1953
|
-
return throwDefaultError({
|
|
1954
|
-
output,
|
|
1955
|
-
parsedBody,
|
|
1956
|
-
errorCode,
|
|
1957
|
-
});
|
|
1958
|
-
}
|
|
1959
|
-
};
|
|
1960
|
-
const de_DeleteIntegrationCommand = async (output, context) => {
|
|
1961
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1962
|
-
return de_DeleteIntegrationCommandError(output, context);
|
|
1963
|
-
}
|
|
1964
|
-
const contents = (0, smithy_client_1.map)({
|
|
1965
|
-
$metadata: deserializeMetadata(output),
|
|
1966
|
-
});
|
|
1967
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1968
|
-
return contents;
|
|
1969
|
-
};
|
|
1970
|
-
exports.de_DeleteIntegrationCommand = de_DeleteIntegrationCommand;
|
|
1971
|
-
const de_DeleteIntegrationCommandError = async (output, context) => {
|
|
1972
|
-
const parsedOutput = {
|
|
1973
|
-
...output,
|
|
1974
|
-
body: await parseErrorBody(output.body, context),
|
|
1975
|
-
};
|
|
1976
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1977
|
-
switch (errorCode) {
|
|
1978
|
-
case "NotFoundException":
|
|
1979
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
1980
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1981
|
-
case "TooManyRequestsException":
|
|
1982
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
1983
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1984
|
-
default:
|
|
1985
|
-
const parsedBody = parsedOutput.body;
|
|
1986
|
-
return throwDefaultError({
|
|
1987
|
-
output,
|
|
1988
|
-
parsedBody,
|
|
1989
|
-
errorCode,
|
|
1990
|
-
});
|
|
1991
|
-
}
|
|
1992
|
-
};
|
|
1993
|
-
const de_DeleteIntegrationResponseCommand = async (output, context) => {
|
|
1994
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1995
|
-
return de_DeleteIntegrationResponseCommandError(output, context);
|
|
1996
|
-
}
|
|
1997
|
-
const contents = (0, smithy_client_1.map)({
|
|
1998
|
-
$metadata: deserializeMetadata(output),
|
|
1999
|
-
});
|
|
2000
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2001
|
-
return contents;
|
|
2002
|
-
};
|
|
2003
|
-
exports.de_DeleteIntegrationResponseCommand = de_DeleteIntegrationResponseCommand;
|
|
2004
|
-
const de_DeleteIntegrationResponseCommandError = async (output, context) => {
|
|
2005
|
-
const parsedOutput = {
|
|
2006
|
-
...output,
|
|
2007
|
-
body: await parseErrorBody(output.body, context),
|
|
2008
|
-
};
|
|
2009
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2010
|
-
switch (errorCode) {
|
|
2011
|
-
case "NotFoundException":
|
|
2012
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
2013
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2014
|
-
case "TooManyRequestsException":
|
|
2015
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
2016
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2017
|
-
default:
|
|
2018
|
-
const parsedBody = parsedOutput.body;
|
|
2019
|
-
return throwDefaultError({
|
|
2020
|
-
output,
|
|
2021
|
-
parsedBody,
|
|
2022
|
-
errorCode,
|
|
2023
|
-
});
|
|
2024
|
-
}
|
|
2025
|
-
};
|
|
2026
|
-
const de_DeleteModelCommand = async (output, context) => {
|
|
2027
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2028
|
-
return de_DeleteModelCommandError(output, context);
|
|
2029
|
-
}
|
|
2030
|
-
const contents = (0, smithy_client_1.map)({
|
|
2031
|
-
$metadata: deserializeMetadata(output),
|
|
2032
|
-
});
|
|
2033
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2034
|
-
return contents;
|
|
2035
|
-
};
|
|
2036
|
-
exports.de_DeleteModelCommand = de_DeleteModelCommand;
|
|
2037
|
-
const de_DeleteModelCommandError = async (output, context) => {
|
|
2038
|
-
const parsedOutput = {
|
|
2039
|
-
...output,
|
|
2040
|
-
body: await parseErrorBody(output.body, context),
|
|
2041
|
-
};
|
|
2042
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2043
|
-
switch (errorCode) {
|
|
2044
|
-
case "NotFoundException":
|
|
2045
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
2046
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2047
|
-
case "TooManyRequestsException":
|
|
2048
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
2049
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2050
|
-
default:
|
|
2051
|
-
const parsedBody = parsedOutput.body;
|
|
2052
|
-
return throwDefaultError({
|
|
2053
|
-
output,
|
|
2054
|
-
parsedBody,
|
|
2055
|
-
errorCode,
|
|
2056
|
-
});
|
|
2057
|
-
}
|
|
2058
|
-
};
|
|
2059
|
-
const de_DeleteRouteCommand = async (output, context) => {
|
|
2060
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2061
|
-
return de_DeleteRouteCommandError(output, context);
|
|
2062
|
-
}
|
|
2063
|
-
const contents = (0, smithy_client_1.map)({
|
|
2064
|
-
$metadata: deserializeMetadata(output),
|
|
2065
|
-
});
|
|
2066
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2067
|
-
return contents;
|
|
2068
|
-
};
|
|
2069
|
-
exports.de_DeleteRouteCommand = de_DeleteRouteCommand;
|
|
2070
|
-
const de_DeleteRouteCommandError = async (output, context) => {
|
|
2071
|
-
const parsedOutput = {
|
|
2072
|
-
...output,
|
|
2073
|
-
body: await parseErrorBody(output.body, context),
|
|
2074
|
-
};
|
|
2075
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2076
|
-
switch (errorCode) {
|
|
2077
|
-
case "NotFoundException":
|
|
2078
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
2079
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2080
|
-
case "TooManyRequestsException":
|
|
2081
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
2082
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2083
|
-
default:
|
|
2084
|
-
const parsedBody = parsedOutput.body;
|
|
2085
|
-
return throwDefaultError({
|
|
2086
|
-
output,
|
|
2087
|
-
parsedBody,
|
|
2088
|
-
errorCode,
|
|
2089
|
-
});
|
|
2090
|
-
}
|
|
2091
|
-
};
|
|
2092
|
-
const de_DeleteRouteRequestParameterCommand = async (output, context) => {
|
|
2093
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2094
|
-
return de_DeleteRouteRequestParameterCommandError(output, context);
|
|
2095
|
-
}
|
|
2096
|
-
const contents = (0, smithy_client_1.map)({
|
|
2097
|
-
$metadata: deserializeMetadata(output),
|
|
2098
|
-
});
|
|
2099
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2100
|
-
return contents;
|
|
2101
|
-
};
|
|
2102
|
-
exports.de_DeleteRouteRequestParameterCommand = de_DeleteRouteRequestParameterCommand;
|
|
2103
|
-
const de_DeleteRouteRequestParameterCommandError = async (output, context) => {
|
|
2104
|
-
const parsedOutput = {
|
|
2105
|
-
...output,
|
|
2106
|
-
body: await parseErrorBody(output.body, context),
|
|
2107
|
-
};
|
|
2108
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2109
|
-
switch (errorCode) {
|
|
2110
|
-
case "NotFoundException":
|
|
2111
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
2112
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2113
|
-
case "TooManyRequestsException":
|
|
2114
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
2115
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2116
|
-
default:
|
|
2117
|
-
const parsedBody = parsedOutput.body;
|
|
2118
|
-
return throwDefaultError({
|
|
2119
|
-
output,
|
|
2120
|
-
parsedBody,
|
|
2121
|
-
errorCode,
|
|
2122
|
-
});
|
|
2123
|
-
}
|
|
2124
|
-
};
|
|
2125
|
-
const de_DeleteRouteResponseCommand = async (output, context) => {
|
|
2126
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2127
|
-
return de_DeleteRouteResponseCommandError(output, context);
|
|
2128
|
-
}
|
|
2129
|
-
const contents = (0, smithy_client_1.map)({
|
|
2130
|
-
$metadata: deserializeMetadata(output),
|
|
2131
|
-
});
|
|
2132
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2133
|
-
return contents;
|
|
2134
|
-
};
|
|
2135
|
-
exports.de_DeleteRouteResponseCommand = de_DeleteRouteResponseCommand;
|
|
2136
|
-
const de_DeleteRouteResponseCommandError = async (output, context) => {
|
|
2137
|
-
const parsedOutput = {
|
|
2138
|
-
...output,
|
|
2139
|
-
body: await parseErrorBody(output.body, context),
|
|
2140
|
-
};
|
|
2141
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2142
|
-
switch (errorCode) {
|
|
2143
|
-
case "NotFoundException":
|
|
2144
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
2145
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2146
|
-
case "TooManyRequestsException":
|
|
2147
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
2148
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2149
|
-
default:
|
|
2150
|
-
const parsedBody = parsedOutput.body;
|
|
2151
|
-
return throwDefaultError({
|
|
2152
|
-
output,
|
|
2153
|
-
parsedBody,
|
|
2154
|
-
errorCode,
|
|
2155
|
-
});
|
|
2156
|
-
}
|
|
2157
|
-
};
|
|
2158
|
-
const de_DeleteRouteSettingsCommand = async (output, context) => {
|
|
2159
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2160
|
-
return de_DeleteRouteSettingsCommandError(output, context);
|
|
2161
|
-
}
|
|
2162
|
-
const contents = (0, smithy_client_1.map)({
|
|
2163
|
-
$metadata: deserializeMetadata(output),
|
|
2164
|
-
});
|
|
2165
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2166
|
-
return contents;
|
|
2167
|
-
};
|
|
2168
|
-
exports.de_DeleteRouteSettingsCommand = de_DeleteRouteSettingsCommand;
|
|
2169
|
-
const de_DeleteRouteSettingsCommandError = async (output, context) => {
|
|
2170
|
-
const parsedOutput = {
|
|
2171
|
-
...output,
|
|
2172
|
-
body: await parseErrorBody(output.body, context),
|
|
2173
|
-
};
|
|
2174
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2175
|
-
switch (errorCode) {
|
|
2176
|
-
case "NotFoundException":
|
|
2177
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
2178
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2179
|
-
case "TooManyRequestsException":
|
|
2180
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
2181
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2182
|
-
default:
|
|
2183
|
-
const parsedBody = parsedOutput.body;
|
|
2184
|
-
return throwDefaultError({
|
|
2185
|
-
output,
|
|
2186
|
-
parsedBody,
|
|
2187
|
-
errorCode,
|
|
2188
|
-
});
|
|
2189
|
-
}
|
|
2190
|
-
};
|
|
2191
|
-
const de_DeleteStageCommand = async (output, context) => {
|
|
2192
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2193
|
-
return de_DeleteStageCommandError(output, context);
|
|
2194
|
-
}
|
|
2195
|
-
const contents = (0, smithy_client_1.map)({
|
|
2196
|
-
$metadata: deserializeMetadata(output),
|
|
2197
|
-
});
|
|
2198
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2199
|
-
return contents;
|
|
2200
|
-
};
|
|
2201
|
-
exports.de_DeleteStageCommand = de_DeleteStageCommand;
|
|
2202
|
-
const de_DeleteStageCommandError = async (output, context) => {
|
|
2203
|
-
const parsedOutput = {
|
|
2204
|
-
...output,
|
|
2205
|
-
body: await parseErrorBody(output.body, context),
|
|
2206
|
-
};
|
|
2207
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2208
|
-
switch (errorCode) {
|
|
2209
|
-
case "NotFoundException":
|
|
2210
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
2211
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2212
|
-
case "TooManyRequestsException":
|
|
2213
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
2214
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2215
|
-
default:
|
|
2216
|
-
const parsedBody = parsedOutput.body;
|
|
2217
|
-
return throwDefaultError({
|
|
2218
|
-
output,
|
|
2219
|
-
parsedBody,
|
|
2220
|
-
errorCode,
|
|
2221
|
-
});
|
|
2222
|
-
}
|
|
2223
|
-
};
|
|
2224
|
-
const de_DeleteVpcLinkCommand = async (output, context) => {
|
|
2225
|
-
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
2226
|
-
return de_DeleteVpcLinkCommandError(output, context);
|
|
2227
|
-
}
|
|
2228
|
-
const contents = (0, smithy_client_1.map)({
|
|
2229
|
-
$metadata: deserializeMetadata(output),
|
|
2230
|
-
});
|
|
2231
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2232
|
-
return contents;
|
|
2233
|
-
};
|
|
2234
|
-
exports.de_DeleteVpcLinkCommand = de_DeleteVpcLinkCommand;
|
|
2235
|
-
const de_DeleteVpcLinkCommandError = async (output, context) => {
|
|
2236
|
-
const parsedOutput = {
|
|
2237
|
-
...output,
|
|
2238
|
-
body: await parseErrorBody(output.body, context),
|
|
2239
|
-
};
|
|
2240
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2241
|
-
switch (errorCode) {
|
|
2242
|
-
case "NotFoundException":
|
|
2243
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
2244
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2245
|
-
case "TooManyRequestsException":
|
|
2246
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
2247
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2248
|
-
default:
|
|
2249
|
-
const parsedBody = parsedOutput.body;
|
|
2250
|
-
return throwDefaultError({
|
|
2251
|
-
output,
|
|
2252
|
-
parsedBody,
|
|
2253
|
-
errorCode,
|
|
2254
|
-
});
|
|
2255
|
-
}
|
|
2256
|
-
};
|
|
2257
|
-
const de_ExportApiCommand = async (output, context) => {
|
|
2258
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2259
|
-
return de_ExportApiCommandError(output, context);
|
|
2260
|
-
}
|
|
2261
|
-
const contents = (0, smithy_client_1.map)({
|
|
2262
|
-
$metadata: deserializeMetadata(output),
|
|
2263
|
-
});
|
|
2264
|
-
const data = await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2265
|
-
contents.body = data;
|
|
2266
|
-
return contents;
|
|
2267
|
-
};
|
|
2268
|
-
exports.de_ExportApiCommand = de_ExportApiCommand;
|
|
2269
|
-
const de_ExportApiCommandError = async (output, context) => {
|
|
2270
|
-
const parsedOutput = {
|
|
2271
|
-
...output,
|
|
2272
|
-
body: await parseErrorBody(output.body, context),
|
|
2273
|
-
};
|
|
2274
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2275
|
-
switch (errorCode) {
|
|
2276
|
-
case "BadRequestException":
|
|
2277
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
2278
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2279
|
-
case "NotFoundException":
|
|
2280
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
2281
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2282
|
-
case "TooManyRequestsException":
|
|
2283
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
2284
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2285
|
-
default:
|
|
2286
|
-
const parsedBody = parsedOutput.body;
|
|
2287
|
-
return throwDefaultError({
|
|
2288
|
-
output,
|
|
2289
|
-
parsedBody,
|
|
2290
|
-
errorCode,
|
|
2291
|
-
});
|
|
2292
|
-
}
|
|
2293
|
-
};
|
|
2294
|
-
const de_GetApiCommand = async (output, context) => {
|
|
2295
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2296
|
-
return de_GetApiCommandError(output, context);
|
|
2297
|
-
}
|
|
2298
|
-
const contents = (0, smithy_client_1.map)({
|
|
2299
|
-
$metadata: deserializeMetadata(output),
|
|
2300
|
-
});
|
|
2301
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2302
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2303
|
-
ApiEndpoint: [, smithy_client_1.expectString, `apiEndpoint`],
|
|
2304
|
-
ApiGatewayManaged: [, smithy_client_1.expectBoolean, `apiGatewayManaged`],
|
|
2305
|
-
ApiId: [, smithy_client_1.expectString, `apiId`],
|
|
2306
|
-
ApiKeySelectionExpression: [, smithy_client_1.expectString, `apiKeySelectionExpression`],
|
|
2307
|
-
CorsConfiguration: [, (_) => de_Cors(_, context), `corsConfiguration`],
|
|
2308
|
-
CreatedDate: [, (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)), `createdDate`],
|
|
2309
|
-
Description: [, smithy_client_1.expectString, `description`],
|
|
2310
|
-
DisableExecuteApiEndpoint: [, smithy_client_1.expectBoolean, `disableExecuteApiEndpoint`],
|
|
2311
|
-
DisableSchemaValidation: [, smithy_client_1.expectBoolean, `disableSchemaValidation`],
|
|
2312
|
-
ImportInfo: [, smithy_client_1._json, `importInfo`],
|
|
2313
|
-
Name: [, smithy_client_1.expectString, `name`],
|
|
2314
|
-
ProtocolType: [, smithy_client_1.expectString, `protocolType`],
|
|
2315
|
-
RouteSelectionExpression: [, smithy_client_1.expectString, `routeSelectionExpression`],
|
|
2316
|
-
Tags: [, smithy_client_1._json, `tags`],
|
|
2317
|
-
Version: [, smithy_client_1.expectString, `version`],
|
|
2318
|
-
Warnings: [, smithy_client_1._json, `warnings`],
|
|
2319
|
-
});
|
|
2320
|
-
Object.assign(contents, doc);
|
|
2321
|
-
return contents;
|
|
2322
|
-
};
|
|
2323
|
-
exports.de_GetApiCommand = de_GetApiCommand;
|
|
2324
|
-
const de_GetApiCommandError = async (output, context) => {
|
|
2325
|
-
const parsedOutput = {
|
|
2326
|
-
...output,
|
|
2327
|
-
body: await parseErrorBody(output.body, context),
|
|
2328
|
-
};
|
|
2329
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2330
|
-
switch (errorCode) {
|
|
2331
|
-
case "NotFoundException":
|
|
2332
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
2333
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2334
|
-
case "TooManyRequestsException":
|
|
2335
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
2336
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2337
|
-
default:
|
|
2338
|
-
const parsedBody = parsedOutput.body;
|
|
2339
|
-
return throwDefaultError({
|
|
2340
|
-
output,
|
|
2341
|
-
parsedBody,
|
|
2342
|
-
errorCode,
|
|
2343
|
-
});
|
|
2344
|
-
}
|
|
2345
|
-
};
|
|
2346
|
-
const de_GetApiMappingCommand = async (output, context) => {
|
|
2347
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2348
|
-
return de_GetApiMappingCommandError(output, context);
|
|
2349
|
-
}
|
|
2350
|
-
const contents = (0, smithy_client_1.map)({
|
|
2351
|
-
$metadata: deserializeMetadata(output),
|
|
2352
|
-
});
|
|
2353
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2354
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2355
|
-
ApiId: [, smithy_client_1.expectString, `apiId`],
|
|
2356
|
-
ApiMappingId: [, smithy_client_1.expectString, `apiMappingId`],
|
|
2357
|
-
ApiMappingKey: [, smithy_client_1.expectString, `apiMappingKey`],
|
|
2358
|
-
Stage: [, smithy_client_1.expectString, `stage`],
|
|
2359
|
-
});
|
|
2360
|
-
Object.assign(contents, doc);
|
|
2361
|
-
return contents;
|
|
2362
|
-
};
|
|
2363
|
-
exports.de_GetApiMappingCommand = de_GetApiMappingCommand;
|
|
2364
|
-
const de_GetApiMappingCommandError = async (output, context) => {
|
|
2365
|
-
const parsedOutput = {
|
|
2366
|
-
...output,
|
|
2367
|
-
body: await parseErrorBody(output.body, context),
|
|
2368
|
-
};
|
|
2369
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2370
|
-
switch (errorCode) {
|
|
2371
|
-
case "BadRequestException":
|
|
2372
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
2373
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2374
|
-
case "NotFoundException":
|
|
2375
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
2376
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2377
|
-
case "TooManyRequestsException":
|
|
2378
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
2379
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2380
|
-
default:
|
|
2381
|
-
const parsedBody = parsedOutput.body;
|
|
2382
|
-
return throwDefaultError({
|
|
2383
|
-
output,
|
|
2384
|
-
parsedBody,
|
|
2385
|
-
errorCode,
|
|
2386
|
-
});
|
|
2387
|
-
}
|
|
2388
|
-
};
|
|
2389
|
-
const de_GetApiMappingsCommand = async (output, context) => {
|
|
2390
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2391
|
-
return de_GetApiMappingsCommandError(output, context);
|
|
2392
|
-
}
|
|
2393
|
-
const contents = (0, smithy_client_1.map)({
|
|
2394
|
-
$metadata: deserializeMetadata(output),
|
|
2395
|
-
});
|
|
2396
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2397
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2398
|
-
Items: [, (_) => de___listOfApiMapping(_, context), `items`],
|
|
2399
|
-
NextToken: [, smithy_client_1.expectString, `nextToken`],
|
|
2400
|
-
});
|
|
2401
|
-
Object.assign(contents, doc);
|
|
2402
|
-
return contents;
|
|
2403
|
-
};
|
|
2404
|
-
exports.de_GetApiMappingsCommand = de_GetApiMappingsCommand;
|
|
2405
|
-
const de_GetApiMappingsCommandError = async (output, context) => {
|
|
2406
|
-
const parsedOutput = {
|
|
2407
|
-
...output,
|
|
2408
|
-
body: await parseErrorBody(output.body, context),
|
|
2409
|
-
};
|
|
2410
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2411
|
-
switch (errorCode) {
|
|
2412
|
-
case "BadRequestException":
|
|
2413
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
2414
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2415
|
-
case "NotFoundException":
|
|
2416
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
2417
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2418
|
-
case "TooManyRequestsException":
|
|
2419
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
2420
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2421
|
-
default:
|
|
2422
|
-
const parsedBody = parsedOutput.body;
|
|
2423
|
-
return throwDefaultError({
|
|
2424
|
-
output,
|
|
2425
|
-
parsedBody,
|
|
2426
|
-
errorCode,
|
|
2427
|
-
});
|
|
2428
|
-
}
|
|
2429
|
-
};
|
|
2430
|
-
const de_GetApisCommand = async (output, context) => {
|
|
2431
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2432
|
-
return de_GetApisCommandError(output, context);
|
|
2433
|
-
}
|
|
2434
|
-
const contents = (0, smithy_client_1.map)({
|
|
2435
|
-
$metadata: deserializeMetadata(output),
|
|
2436
|
-
});
|
|
2437
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2438
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2439
|
-
Items: [, (_) => de___listOfApi(_, context), `items`],
|
|
2440
|
-
NextToken: [, smithy_client_1.expectString, `nextToken`],
|
|
2441
|
-
});
|
|
2442
|
-
Object.assign(contents, doc);
|
|
2443
|
-
return contents;
|
|
2444
|
-
};
|
|
2445
|
-
exports.de_GetApisCommand = de_GetApisCommand;
|
|
2446
|
-
const de_GetApisCommandError = async (output, context) => {
|
|
2447
|
-
const parsedOutput = {
|
|
2448
|
-
...output,
|
|
2449
|
-
body: await parseErrorBody(output.body, context),
|
|
2450
|
-
};
|
|
2451
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2452
|
-
switch (errorCode) {
|
|
2453
|
-
case "BadRequestException":
|
|
2454
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
2455
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2456
|
-
case "NotFoundException":
|
|
2457
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
2458
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2459
|
-
case "TooManyRequestsException":
|
|
2460
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
2461
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2462
|
-
default:
|
|
2463
|
-
const parsedBody = parsedOutput.body;
|
|
2464
|
-
return throwDefaultError({
|
|
2465
|
-
output,
|
|
2466
|
-
parsedBody,
|
|
2467
|
-
errorCode,
|
|
2468
|
-
});
|
|
2469
|
-
}
|
|
2470
|
-
};
|
|
2471
|
-
const de_GetAuthorizerCommand = async (output, context) => {
|
|
2472
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2473
|
-
return de_GetAuthorizerCommandError(output, context);
|
|
2474
|
-
}
|
|
2475
|
-
const contents = (0, smithy_client_1.map)({
|
|
2476
|
-
$metadata: deserializeMetadata(output),
|
|
2477
|
-
});
|
|
2478
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2479
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2480
|
-
AuthorizerCredentialsArn: [, smithy_client_1.expectString, `authorizerCredentialsArn`],
|
|
2481
|
-
AuthorizerId: [, smithy_client_1.expectString, `authorizerId`],
|
|
2482
|
-
AuthorizerPayloadFormatVersion: [, smithy_client_1.expectString, `authorizerPayloadFormatVersion`],
|
|
2483
|
-
AuthorizerResultTtlInSeconds: [, smithy_client_1.expectInt32, `authorizerResultTtlInSeconds`],
|
|
2484
|
-
AuthorizerType: [, smithy_client_1.expectString, `authorizerType`],
|
|
2485
|
-
AuthorizerUri: [, smithy_client_1.expectString, `authorizerUri`],
|
|
2486
|
-
EnableSimpleResponses: [, smithy_client_1.expectBoolean, `enableSimpleResponses`],
|
|
2487
|
-
IdentitySource: [, smithy_client_1._json, `identitySource`],
|
|
2488
|
-
IdentityValidationExpression: [, smithy_client_1.expectString, `identityValidationExpression`],
|
|
2489
|
-
JwtConfiguration: [, (_) => de_JWTConfiguration(_, context), `jwtConfiguration`],
|
|
2490
|
-
Name: [, smithy_client_1.expectString, `name`],
|
|
2491
|
-
});
|
|
2492
|
-
Object.assign(contents, doc);
|
|
2493
|
-
return contents;
|
|
2494
|
-
};
|
|
2495
|
-
exports.de_GetAuthorizerCommand = de_GetAuthorizerCommand;
|
|
2496
|
-
const de_GetAuthorizerCommandError = async (output, context) => {
|
|
2497
|
-
const parsedOutput = {
|
|
2498
|
-
...output,
|
|
2499
|
-
body: await parseErrorBody(output.body, context),
|
|
2500
|
-
};
|
|
2501
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2502
|
-
switch (errorCode) {
|
|
2503
|
-
case "NotFoundException":
|
|
2504
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
2505
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2506
|
-
case "TooManyRequestsException":
|
|
2507
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
2508
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2509
|
-
default:
|
|
2510
|
-
const parsedBody = parsedOutput.body;
|
|
2511
|
-
return throwDefaultError({
|
|
2512
|
-
output,
|
|
2513
|
-
parsedBody,
|
|
2514
|
-
errorCode,
|
|
2515
|
-
});
|
|
2516
|
-
}
|
|
2517
|
-
};
|
|
2518
|
-
const de_GetAuthorizersCommand = async (output, context) => {
|
|
2519
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2520
|
-
return de_GetAuthorizersCommandError(output, context);
|
|
2521
|
-
}
|
|
2522
|
-
const contents = (0, smithy_client_1.map)({
|
|
2523
|
-
$metadata: deserializeMetadata(output),
|
|
2524
|
-
});
|
|
2525
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2526
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2527
|
-
Items: [, (_) => de___listOfAuthorizer(_, context), `items`],
|
|
2528
|
-
NextToken: [, smithy_client_1.expectString, `nextToken`],
|
|
2529
|
-
});
|
|
2530
|
-
Object.assign(contents, doc);
|
|
2531
|
-
return contents;
|
|
2532
|
-
};
|
|
2533
|
-
exports.de_GetAuthorizersCommand = de_GetAuthorizersCommand;
|
|
2534
|
-
const de_GetAuthorizersCommandError = async (output, context) => {
|
|
2535
|
-
const parsedOutput = {
|
|
2536
|
-
...output,
|
|
2537
|
-
body: await parseErrorBody(output.body, context),
|
|
2538
|
-
};
|
|
2539
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2540
|
-
switch (errorCode) {
|
|
2541
|
-
case "BadRequestException":
|
|
2542
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
2543
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2544
|
-
case "NotFoundException":
|
|
2545
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
2546
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2547
|
-
case "TooManyRequestsException":
|
|
2548
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
2549
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2550
|
-
default:
|
|
2551
|
-
const parsedBody = parsedOutput.body;
|
|
2552
|
-
return throwDefaultError({
|
|
2553
|
-
output,
|
|
2554
|
-
parsedBody,
|
|
2555
|
-
errorCode,
|
|
2556
|
-
});
|
|
2557
|
-
}
|
|
2558
|
-
};
|
|
2559
|
-
const de_GetDeploymentCommand = async (output, context) => {
|
|
2560
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2561
|
-
return de_GetDeploymentCommandError(output, context);
|
|
2562
|
-
}
|
|
2563
|
-
const contents = (0, smithy_client_1.map)({
|
|
2564
|
-
$metadata: deserializeMetadata(output),
|
|
2565
|
-
});
|
|
2566
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2567
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2568
|
-
AutoDeployed: [, smithy_client_1.expectBoolean, `autoDeployed`],
|
|
2569
|
-
CreatedDate: [, (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)), `createdDate`],
|
|
2570
|
-
DeploymentId: [, smithy_client_1.expectString, `deploymentId`],
|
|
2571
|
-
DeploymentStatus: [, smithy_client_1.expectString, `deploymentStatus`],
|
|
2572
|
-
DeploymentStatusMessage: [, smithy_client_1.expectString, `deploymentStatusMessage`],
|
|
2573
|
-
Description: [, smithy_client_1.expectString, `description`],
|
|
2574
|
-
});
|
|
2575
|
-
Object.assign(contents, doc);
|
|
2576
|
-
return contents;
|
|
2577
|
-
};
|
|
2578
|
-
exports.de_GetDeploymentCommand = de_GetDeploymentCommand;
|
|
2579
|
-
const de_GetDeploymentCommandError = async (output, context) => {
|
|
2580
|
-
const parsedOutput = {
|
|
2581
|
-
...output,
|
|
2582
|
-
body: await parseErrorBody(output.body, context),
|
|
2583
|
-
};
|
|
2584
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2585
|
-
switch (errorCode) {
|
|
2586
|
-
case "NotFoundException":
|
|
2587
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
2588
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2589
|
-
case "TooManyRequestsException":
|
|
2590
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
2591
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2592
|
-
default:
|
|
2593
|
-
const parsedBody = parsedOutput.body;
|
|
2594
|
-
return throwDefaultError({
|
|
2595
|
-
output,
|
|
2596
|
-
parsedBody,
|
|
2597
|
-
errorCode,
|
|
2598
|
-
});
|
|
2599
|
-
}
|
|
2600
|
-
};
|
|
2601
|
-
const de_GetDeploymentsCommand = async (output, context) => {
|
|
2602
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2603
|
-
return de_GetDeploymentsCommandError(output, context);
|
|
2604
|
-
}
|
|
2605
|
-
const contents = (0, smithy_client_1.map)({
|
|
2606
|
-
$metadata: deserializeMetadata(output),
|
|
2607
|
-
});
|
|
2608
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2609
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2610
|
-
Items: [, (_) => de___listOfDeployment(_, context), `items`],
|
|
2611
|
-
NextToken: [, smithy_client_1.expectString, `nextToken`],
|
|
2612
|
-
});
|
|
2613
|
-
Object.assign(contents, doc);
|
|
2614
|
-
return contents;
|
|
2615
|
-
};
|
|
2616
|
-
exports.de_GetDeploymentsCommand = de_GetDeploymentsCommand;
|
|
2617
|
-
const de_GetDeploymentsCommandError = async (output, context) => {
|
|
2618
|
-
const parsedOutput = {
|
|
2619
|
-
...output,
|
|
2620
|
-
body: await parseErrorBody(output.body, context),
|
|
2621
|
-
};
|
|
2622
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2623
|
-
switch (errorCode) {
|
|
2624
|
-
case "BadRequestException":
|
|
2625
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
2626
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2627
|
-
case "NotFoundException":
|
|
2628
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
2629
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2630
|
-
case "TooManyRequestsException":
|
|
2631
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
2632
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2633
|
-
default:
|
|
2634
|
-
const parsedBody = parsedOutput.body;
|
|
2635
|
-
return throwDefaultError({
|
|
2636
|
-
output,
|
|
2637
|
-
parsedBody,
|
|
2638
|
-
errorCode,
|
|
2639
|
-
});
|
|
2640
|
-
}
|
|
2641
|
-
};
|
|
2642
|
-
const de_GetDomainNameCommand = async (output, context) => {
|
|
2643
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2644
|
-
return de_GetDomainNameCommandError(output, context);
|
|
2645
|
-
}
|
|
2646
|
-
const contents = (0, smithy_client_1.map)({
|
|
2647
|
-
$metadata: deserializeMetadata(output),
|
|
2648
|
-
});
|
|
2649
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2650
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2651
|
-
ApiMappingSelectionExpression: [, smithy_client_1.expectString, `apiMappingSelectionExpression`],
|
|
2652
|
-
DomainName: [, smithy_client_1.expectString, `domainName`],
|
|
2653
|
-
DomainNameConfigurations: [, (_) => de_DomainNameConfigurations(_, context), `domainNameConfigurations`],
|
|
2654
|
-
MutualTlsAuthentication: [, (_) => de_MutualTlsAuthentication(_, context), `mutualTlsAuthentication`],
|
|
2655
|
-
Tags: [, smithy_client_1._json, `tags`],
|
|
2656
|
-
});
|
|
2657
|
-
Object.assign(contents, doc);
|
|
2658
|
-
return contents;
|
|
2659
|
-
};
|
|
2660
|
-
exports.de_GetDomainNameCommand = de_GetDomainNameCommand;
|
|
2661
|
-
const de_GetDomainNameCommandError = async (output, context) => {
|
|
2662
|
-
const parsedOutput = {
|
|
2663
|
-
...output,
|
|
2664
|
-
body: await parseErrorBody(output.body, context),
|
|
2665
|
-
};
|
|
2666
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2667
|
-
switch (errorCode) {
|
|
2668
|
-
case "NotFoundException":
|
|
2669
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
2670
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2671
|
-
case "TooManyRequestsException":
|
|
2672
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
2673
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2674
|
-
default:
|
|
2675
|
-
const parsedBody = parsedOutput.body;
|
|
2676
|
-
return throwDefaultError({
|
|
2677
|
-
output,
|
|
2678
|
-
parsedBody,
|
|
2679
|
-
errorCode,
|
|
2680
|
-
});
|
|
2681
|
-
}
|
|
2682
|
-
};
|
|
2683
|
-
const de_GetDomainNamesCommand = async (output, context) => {
|
|
2684
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2685
|
-
return de_GetDomainNamesCommandError(output, context);
|
|
2686
|
-
}
|
|
2687
|
-
const contents = (0, smithy_client_1.map)({
|
|
2688
|
-
$metadata: deserializeMetadata(output),
|
|
2689
|
-
});
|
|
2690
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2691
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2692
|
-
Items: [, (_) => de___listOfDomainName(_, context), `items`],
|
|
2693
|
-
NextToken: [, smithy_client_1.expectString, `nextToken`],
|
|
2694
|
-
});
|
|
2695
|
-
Object.assign(contents, doc);
|
|
2696
|
-
return contents;
|
|
2697
|
-
};
|
|
2698
|
-
exports.de_GetDomainNamesCommand = de_GetDomainNamesCommand;
|
|
2699
|
-
const de_GetDomainNamesCommandError = async (output, context) => {
|
|
2700
|
-
const parsedOutput = {
|
|
2701
|
-
...output,
|
|
2702
|
-
body: await parseErrorBody(output.body, context),
|
|
2703
|
-
};
|
|
2704
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2705
|
-
switch (errorCode) {
|
|
2706
|
-
case "BadRequestException":
|
|
2707
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
2708
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2709
|
-
case "NotFoundException":
|
|
2710
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
2711
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2712
|
-
case "TooManyRequestsException":
|
|
2713
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
2714
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2715
|
-
default:
|
|
2716
|
-
const parsedBody = parsedOutput.body;
|
|
2717
|
-
return throwDefaultError({
|
|
2718
|
-
output,
|
|
2719
|
-
parsedBody,
|
|
2720
|
-
errorCode,
|
|
2721
|
-
});
|
|
2722
|
-
}
|
|
2723
|
-
};
|
|
2724
|
-
const de_GetIntegrationCommand = async (output, context) => {
|
|
2725
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2726
|
-
return de_GetIntegrationCommandError(output, context);
|
|
2727
|
-
}
|
|
2728
|
-
const contents = (0, smithy_client_1.map)({
|
|
2729
|
-
$metadata: deserializeMetadata(output),
|
|
2730
|
-
});
|
|
2731
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2732
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2733
|
-
ApiGatewayManaged: [, smithy_client_1.expectBoolean, `apiGatewayManaged`],
|
|
2734
|
-
ConnectionId: [, smithy_client_1.expectString, `connectionId`],
|
|
2735
|
-
ConnectionType: [, smithy_client_1.expectString, `connectionType`],
|
|
2736
|
-
ContentHandlingStrategy: [, smithy_client_1.expectString, `contentHandlingStrategy`],
|
|
2737
|
-
CredentialsArn: [, smithy_client_1.expectString, `credentialsArn`],
|
|
2738
|
-
Description: [, smithy_client_1.expectString, `description`],
|
|
2739
|
-
IntegrationId: [, smithy_client_1.expectString, `integrationId`],
|
|
2740
|
-
IntegrationMethod: [, smithy_client_1.expectString, `integrationMethod`],
|
|
2741
|
-
IntegrationResponseSelectionExpression: [, smithy_client_1.expectString, `integrationResponseSelectionExpression`],
|
|
2742
|
-
IntegrationSubtype: [, smithy_client_1.expectString, `integrationSubtype`],
|
|
2743
|
-
IntegrationType: [, smithy_client_1.expectString, `integrationType`],
|
|
2744
|
-
IntegrationUri: [, smithy_client_1.expectString, `integrationUri`],
|
|
2745
|
-
PassthroughBehavior: [, smithy_client_1.expectString, `passthroughBehavior`],
|
|
2746
|
-
PayloadFormatVersion: [, smithy_client_1.expectString, `payloadFormatVersion`],
|
|
2747
|
-
RequestParameters: [, smithy_client_1._json, `requestParameters`],
|
|
2748
|
-
RequestTemplates: [, smithy_client_1._json, `requestTemplates`],
|
|
2749
|
-
ResponseParameters: [, smithy_client_1._json, `responseParameters`],
|
|
2750
|
-
TemplateSelectionExpression: [, smithy_client_1.expectString, `templateSelectionExpression`],
|
|
2751
|
-
TimeoutInMillis: [, smithy_client_1.expectInt32, `timeoutInMillis`],
|
|
2752
|
-
TlsConfig: [, (_) => de_TlsConfig(_, context), `tlsConfig`],
|
|
2753
|
-
});
|
|
2754
|
-
Object.assign(contents, doc);
|
|
2755
|
-
return contents;
|
|
2756
|
-
};
|
|
2757
|
-
exports.de_GetIntegrationCommand = de_GetIntegrationCommand;
|
|
2758
|
-
const de_GetIntegrationCommandError = async (output, context) => {
|
|
2759
|
-
const parsedOutput = {
|
|
2760
|
-
...output,
|
|
2761
|
-
body: await parseErrorBody(output.body, context),
|
|
2762
|
-
};
|
|
2763
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2764
|
-
switch (errorCode) {
|
|
2765
|
-
case "NotFoundException":
|
|
2766
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
2767
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2768
|
-
case "TooManyRequestsException":
|
|
2769
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
2770
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2771
|
-
default:
|
|
2772
|
-
const parsedBody = parsedOutput.body;
|
|
2773
|
-
return throwDefaultError({
|
|
2774
|
-
output,
|
|
2775
|
-
parsedBody,
|
|
2776
|
-
errorCode,
|
|
2777
|
-
});
|
|
2778
|
-
}
|
|
2779
|
-
};
|
|
2780
|
-
const de_GetIntegrationResponseCommand = async (output, context) => {
|
|
2781
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2782
|
-
return de_GetIntegrationResponseCommandError(output, context);
|
|
2783
|
-
}
|
|
2784
|
-
const contents = (0, smithy_client_1.map)({
|
|
2785
|
-
$metadata: deserializeMetadata(output),
|
|
2786
|
-
});
|
|
2787
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2788
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2789
|
-
ContentHandlingStrategy: [, smithy_client_1.expectString, `contentHandlingStrategy`],
|
|
2790
|
-
IntegrationResponseId: [, smithy_client_1.expectString, `integrationResponseId`],
|
|
2791
|
-
IntegrationResponseKey: [, smithy_client_1.expectString, `integrationResponseKey`],
|
|
2792
|
-
ResponseParameters: [, smithy_client_1._json, `responseParameters`],
|
|
2793
|
-
ResponseTemplates: [, smithy_client_1._json, `responseTemplates`],
|
|
2794
|
-
TemplateSelectionExpression: [, smithy_client_1.expectString, `templateSelectionExpression`],
|
|
2795
|
-
});
|
|
2796
|
-
Object.assign(contents, doc);
|
|
2797
|
-
return contents;
|
|
2798
|
-
};
|
|
2799
|
-
exports.de_GetIntegrationResponseCommand = de_GetIntegrationResponseCommand;
|
|
2800
|
-
const de_GetIntegrationResponseCommandError = async (output, context) => {
|
|
2801
|
-
const parsedOutput = {
|
|
2802
|
-
...output,
|
|
2803
|
-
body: await parseErrorBody(output.body, context),
|
|
2804
|
-
};
|
|
2805
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2806
|
-
switch (errorCode) {
|
|
2807
|
-
case "NotFoundException":
|
|
2808
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
2809
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2810
|
-
case "TooManyRequestsException":
|
|
2811
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
2812
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2813
|
-
default:
|
|
2814
|
-
const parsedBody = parsedOutput.body;
|
|
2815
|
-
return throwDefaultError({
|
|
2816
|
-
output,
|
|
2817
|
-
parsedBody,
|
|
2818
|
-
errorCode,
|
|
2819
|
-
});
|
|
2820
|
-
}
|
|
2821
|
-
};
|
|
2822
|
-
const de_GetIntegrationResponsesCommand = async (output, context) => {
|
|
2823
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2824
|
-
return de_GetIntegrationResponsesCommandError(output, context);
|
|
2825
|
-
}
|
|
2826
|
-
const contents = (0, smithy_client_1.map)({
|
|
2827
|
-
$metadata: deserializeMetadata(output),
|
|
2828
|
-
});
|
|
2829
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2830
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2831
|
-
Items: [, (_) => de___listOfIntegrationResponse(_, context), `items`],
|
|
2832
|
-
NextToken: [, smithy_client_1.expectString, `nextToken`],
|
|
2833
|
-
});
|
|
2834
|
-
Object.assign(contents, doc);
|
|
2835
|
-
return contents;
|
|
2836
|
-
};
|
|
2837
|
-
exports.de_GetIntegrationResponsesCommand = de_GetIntegrationResponsesCommand;
|
|
2838
|
-
const de_GetIntegrationResponsesCommandError = async (output, context) => {
|
|
2839
|
-
const parsedOutput = {
|
|
2840
|
-
...output,
|
|
2841
|
-
body: await parseErrorBody(output.body, context),
|
|
2842
|
-
};
|
|
2843
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2844
|
-
switch (errorCode) {
|
|
2845
|
-
case "BadRequestException":
|
|
2846
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
2847
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2848
|
-
case "NotFoundException":
|
|
2849
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
2850
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2851
|
-
case "TooManyRequestsException":
|
|
2852
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
2853
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2854
|
-
default:
|
|
2855
|
-
const parsedBody = parsedOutput.body;
|
|
2856
|
-
return throwDefaultError({
|
|
2857
|
-
output,
|
|
2858
|
-
parsedBody,
|
|
2859
|
-
errorCode,
|
|
2860
|
-
});
|
|
2861
|
-
}
|
|
2862
|
-
};
|
|
2863
|
-
const de_GetIntegrationsCommand = async (output, context) => {
|
|
2864
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2865
|
-
return de_GetIntegrationsCommandError(output, context);
|
|
2866
|
-
}
|
|
2867
|
-
const contents = (0, smithy_client_1.map)({
|
|
2868
|
-
$metadata: deserializeMetadata(output),
|
|
2869
|
-
});
|
|
2870
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2871
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2872
|
-
Items: [, (_) => de___listOfIntegration(_, context), `items`],
|
|
2873
|
-
NextToken: [, smithy_client_1.expectString, `nextToken`],
|
|
2874
|
-
});
|
|
2875
|
-
Object.assign(contents, doc);
|
|
2876
|
-
return contents;
|
|
2877
|
-
};
|
|
2878
|
-
exports.de_GetIntegrationsCommand = de_GetIntegrationsCommand;
|
|
2879
|
-
const de_GetIntegrationsCommandError = async (output, context) => {
|
|
2880
|
-
const parsedOutput = {
|
|
2881
|
-
...output,
|
|
2882
|
-
body: await parseErrorBody(output.body, context),
|
|
2883
|
-
};
|
|
2884
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2885
|
-
switch (errorCode) {
|
|
2886
|
-
case "BadRequestException":
|
|
2887
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
2888
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2889
|
-
case "NotFoundException":
|
|
2890
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
2891
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2892
|
-
case "TooManyRequestsException":
|
|
2893
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
2894
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2895
|
-
default:
|
|
2896
|
-
const parsedBody = parsedOutput.body;
|
|
2897
|
-
return throwDefaultError({
|
|
2898
|
-
output,
|
|
2899
|
-
parsedBody,
|
|
2900
|
-
errorCode,
|
|
2901
|
-
});
|
|
2902
|
-
}
|
|
2903
|
-
};
|
|
2904
|
-
const de_GetModelCommand = async (output, context) => {
|
|
2905
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2906
|
-
return de_GetModelCommandError(output, context);
|
|
2907
|
-
}
|
|
2908
|
-
const contents = (0, smithy_client_1.map)({
|
|
2909
|
-
$metadata: deserializeMetadata(output),
|
|
2910
|
-
});
|
|
2911
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2912
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2913
|
-
ContentType: [, smithy_client_1.expectString, `contentType`],
|
|
2914
|
-
Description: [, smithy_client_1.expectString, `description`],
|
|
2915
|
-
ModelId: [, smithy_client_1.expectString, `modelId`],
|
|
2916
|
-
Name: [, smithy_client_1.expectString, `name`],
|
|
2917
|
-
Schema: [, smithy_client_1.expectString, `schema`],
|
|
2918
|
-
});
|
|
2919
|
-
Object.assign(contents, doc);
|
|
2920
|
-
return contents;
|
|
2921
|
-
};
|
|
2922
|
-
exports.de_GetModelCommand = de_GetModelCommand;
|
|
2923
|
-
const de_GetModelCommandError = async (output, context) => {
|
|
2924
|
-
const parsedOutput = {
|
|
2925
|
-
...output,
|
|
2926
|
-
body: await parseErrorBody(output.body, context),
|
|
2927
|
-
};
|
|
2928
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2929
|
-
switch (errorCode) {
|
|
2930
|
-
case "NotFoundException":
|
|
2931
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
2932
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2933
|
-
case "TooManyRequestsException":
|
|
2934
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
2935
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2936
|
-
default:
|
|
2937
|
-
const parsedBody = parsedOutput.body;
|
|
2938
|
-
return throwDefaultError({
|
|
2939
|
-
output,
|
|
2940
|
-
parsedBody,
|
|
2941
|
-
errorCode,
|
|
2942
|
-
});
|
|
2943
|
-
}
|
|
2944
|
-
};
|
|
2945
|
-
const de_GetModelsCommand = async (output, context) => {
|
|
2946
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2947
|
-
return de_GetModelsCommandError(output, context);
|
|
2948
|
-
}
|
|
2949
|
-
const contents = (0, smithy_client_1.map)({
|
|
2950
|
-
$metadata: deserializeMetadata(output),
|
|
2951
|
-
});
|
|
2952
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2953
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2954
|
-
Items: [, (_) => de___listOfModel(_, context), `items`],
|
|
2955
|
-
NextToken: [, smithy_client_1.expectString, `nextToken`],
|
|
2956
|
-
});
|
|
2957
|
-
Object.assign(contents, doc);
|
|
2958
|
-
return contents;
|
|
2959
|
-
};
|
|
2960
|
-
exports.de_GetModelsCommand = de_GetModelsCommand;
|
|
2961
|
-
const de_GetModelsCommandError = async (output, context) => {
|
|
2962
|
-
const parsedOutput = {
|
|
2963
|
-
...output,
|
|
2964
|
-
body: await parseErrorBody(output.body, context),
|
|
2965
|
-
};
|
|
2966
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2967
|
-
switch (errorCode) {
|
|
2968
|
-
case "BadRequestException":
|
|
2969
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
2970
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2971
|
-
case "NotFoundException":
|
|
2972
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
2973
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2974
|
-
case "TooManyRequestsException":
|
|
2975
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
2976
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2977
|
-
default:
|
|
2978
|
-
const parsedBody = parsedOutput.body;
|
|
2979
|
-
return throwDefaultError({
|
|
2980
|
-
output,
|
|
2981
|
-
parsedBody,
|
|
2982
|
-
errorCode,
|
|
2983
|
-
});
|
|
2984
|
-
}
|
|
2985
|
-
};
|
|
2986
|
-
const de_GetModelTemplateCommand = async (output, context) => {
|
|
2987
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2988
|
-
return de_GetModelTemplateCommandError(output, context);
|
|
2989
|
-
}
|
|
2990
|
-
const contents = (0, smithy_client_1.map)({
|
|
2991
|
-
$metadata: deserializeMetadata(output),
|
|
2992
|
-
});
|
|
2993
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2994
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2995
|
-
Value: [, smithy_client_1.expectString, `value`],
|
|
2996
|
-
});
|
|
2997
|
-
Object.assign(contents, doc);
|
|
2998
|
-
return contents;
|
|
2999
|
-
};
|
|
3000
|
-
exports.de_GetModelTemplateCommand = de_GetModelTemplateCommand;
|
|
3001
|
-
const de_GetModelTemplateCommandError = async (output, context) => {
|
|
3002
|
-
const parsedOutput = {
|
|
3003
|
-
...output,
|
|
3004
|
-
body: await parseErrorBody(output.body, context),
|
|
3005
|
-
};
|
|
3006
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3007
|
-
switch (errorCode) {
|
|
3008
|
-
case "NotFoundException":
|
|
3009
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
3010
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3011
|
-
case "TooManyRequestsException":
|
|
3012
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
3013
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3014
|
-
default:
|
|
3015
|
-
const parsedBody = parsedOutput.body;
|
|
3016
|
-
return throwDefaultError({
|
|
3017
|
-
output,
|
|
3018
|
-
parsedBody,
|
|
3019
|
-
errorCode,
|
|
3020
|
-
});
|
|
3021
|
-
}
|
|
3022
|
-
};
|
|
3023
|
-
const de_GetRouteCommand = async (output, context) => {
|
|
3024
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3025
|
-
return de_GetRouteCommandError(output, context);
|
|
3026
|
-
}
|
|
3027
|
-
const contents = (0, smithy_client_1.map)({
|
|
3028
|
-
$metadata: deserializeMetadata(output),
|
|
3029
|
-
});
|
|
3030
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3031
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3032
|
-
ApiGatewayManaged: [, smithy_client_1.expectBoolean, `apiGatewayManaged`],
|
|
3033
|
-
ApiKeyRequired: [, smithy_client_1.expectBoolean, `apiKeyRequired`],
|
|
3034
|
-
AuthorizationScopes: [, smithy_client_1._json, `authorizationScopes`],
|
|
3035
|
-
AuthorizationType: [, smithy_client_1.expectString, `authorizationType`],
|
|
3036
|
-
AuthorizerId: [, smithy_client_1.expectString, `authorizerId`],
|
|
3037
|
-
ModelSelectionExpression: [, smithy_client_1.expectString, `modelSelectionExpression`],
|
|
3038
|
-
OperationName: [, smithy_client_1.expectString, `operationName`],
|
|
3039
|
-
RequestModels: [, smithy_client_1._json, `requestModels`],
|
|
3040
|
-
RequestParameters: [, (_) => de_RouteParameters(_, context), `requestParameters`],
|
|
3041
|
-
RouteId: [, smithy_client_1.expectString, `routeId`],
|
|
3042
|
-
RouteKey: [, smithy_client_1.expectString, `routeKey`],
|
|
3043
|
-
RouteResponseSelectionExpression: [, smithy_client_1.expectString, `routeResponseSelectionExpression`],
|
|
3044
|
-
Target: [, smithy_client_1.expectString, `target`],
|
|
3045
|
-
});
|
|
3046
|
-
Object.assign(contents, doc);
|
|
3047
|
-
return contents;
|
|
3048
|
-
};
|
|
3049
|
-
exports.de_GetRouteCommand = de_GetRouteCommand;
|
|
3050
|
-
const de_GetRouteCommandError = async (output, context) => {
|
|
3051
|
-
const parsedOutput = {
|
|
3052
|
-
...output,
|
|
3053
|
-
body: await parseErrorBody(output.body, context),
|
|
3054
|
-
};
|
|
3055
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3056
|
-
switch (errorCode) {
|
|
3057
|
-
case "NotFoundException":
|
|
3058
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
3059
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3060
|
-
case "TooManyRequestsException":
|
|
3061
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
3062
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3063
|
-
default:
|
|
3064
|
-
const parsedBody = parsedOutput.body;
|
|
3065
|
-
return throwDefaultError({
|
|
3066
|
-
output,
|
|
3067
|
-
parsedBody,
|
|
3068
|
-
errorCode,
|
|
3069
|
-
});
|
|
3070
|
-
}
|
|
3071
|
-
};
|
|
3072
|
-
const de_GetRouteResponseCommand = async (output, context) => {
|
|
3073
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3074
|
-
return de_GetRouteResponseCommandError(output, context);
|
|
3075
|
-
}
|
|
3076
|
-
const contents = (0, smithy_client_1.map)({
|
|
3077
|
-
$metadata: deserializeMetadata(output),
|
|
3078
|
-
});
|
|
3079
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3080
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3081
|
-
ModelSelectionExpression: [, smithy_client_1.expectString, `modelSelectionExpression`],
|
|
3082
|
-
ResponseModels: [, smithy_client_1._json, `responseModels`],
|
|
3083
|
-
ResponseParameters: [, (_) => de_RouteParameters(_, context), `responseParameters`],
|
|
3084
|
-
RouteResponseId: [, smithy_client_1.expectString, `routeResponseId`],
|
|
3085
|
-
RouteResponseKey: [, smithy_client_1.expectString, `routeResponseKey`],
|
|
3086
|
-
});
|
|
3087
|
-
Object.assign(contents, doc);
|
|
3088
|
-
return contents;
|
|
3089
|
-
};
|
|
3090
|
-
exports.de_GetRouteResponseCommand = de_GetRouteResponseCommand;
|
|
3091
|
-
const de_GetRouteResponseCommandError = async (output, context) => {
|
|
3092
|
-
const parsedOutput = {
|
|
3093
|
-
...output,
|
|
3094
|
-
body: await parseErrorBody(output.body, context),
|
|
3095
|
-
};
|
|
3096
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3097
|
-
switch (errorCode) {
|
|
3098
|
-
case "NotFoundException":
|
|
3099
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
3100
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3101
|
-
case "TooManyRequestsException":
|
|
3102
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
3103
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3104
|
-
default:
|
|
3105
|
-
const parsedBody = parsedOutput.body;
|
|
3106
|
-
return throwDefaultError({
|
|
3107
|
-
output,
|
|
3108
|
-
parsedBody,
|
|
3109
|
-
errorCode,
|
|
3110
|
-
});
|
|
3111
|
-
}
|
|
3112
|
-
};
|
|
3113
|
-
const de_GetRouteResponsesCommand = async (output, context) => {
|
|
3114
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3115
|
-
return de_GetRouteResponsesCommandError(output, context);
|
|
3116
|
-
}
|
|
3117
|
-
const contents = (0, smithy_client_1.map)({
|
|
3118
|
-
$metadata: deserializeMetadata(output),
|
|
3119
|
-
});
|
|
3120
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3121
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3122
|
-
Items: [, (_) => de___listOfRouteResponse(_, context), `items`],
|
|
3123
|
-
NextToken: [, smithy_client_1.expectString, `nextToken`],
|
|
3124
|
-
});
|
|
3125
|
-
Object.assign(contents, doc);
|
|
3126
|
-
return contents;
|
|
3127
|
-
};
|
|
3128
|
-
exports.de_GetRouteResponsesCommand = de_GetRouteResponsesCommand;
|
|
3129
|
-
const de_GetRouteResponsesCommandError = async (output, context) => {
|
|
3130
|
-
const parsedOutput = {
|
|
3131
|
-
...output,
|
|
3132
|
-
body: await parseErrorBody(output.body, context),
|
|
3133
|
-
};
|
|
3134
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3135
|
-
switch (errorCode) {
|
|
3136
|
-
case "BadRequestException":
|
|
3137
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
3138
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3139
|
-
case "NotFoundException":
|
|
3140
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
3141
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3142
|
-
case "TooManyRequestsException":
|
|
3143
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
3144
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3145
|
-
default:
|
|
3146
|
-
const parsedBody = parsedOutput.body;
|
|
3147
|
-
return throwDefaultError({
|
|
3148
|
-
output,
|
|
3149
|
-
parsedBody,
|
|
3150
|
-
errorCode,
|
|
3151
|
-
});
|
|
3152
|
-
}
|
|
3153
|
-
};
|
|
3154
|
-
const de_GetRoutesCommand = async (output, context) => {
|
|
3155
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3156
|
-
return de_GetRoutesCommandError(output, context);
|
|
3157
|
-
}
|
|
3158
|
-
const contents = (0, smithy_client_1.map)({
|
|
3159
|
-
$metadata: deserializeMetadata(output),
|
|
3160
|
-
});
|
|
3161
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3162
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3163
|
-
Items: [, (_) => de___listOfRoute(_, context), `items`],
|
|
3164
|
-
NextToken: [, smithy_client_1.expectString, `nextToken`],
|
|
3165
|
-
});
|
|
3166
|
-
Object.assign(contents, doc);
|
|
3167
|
-
return contents;
|
|
3168
|
-
};
|
|
3169
|
-
exports.de_GetRoutesCommand = de_GetRoutesCommand;
|
|
3170
|
-
const de_GetRoutesCommandError = async (output, context) => {
|
|
3171
|
-
const parsedOutput = {
|
|
3172
|
-
...output,
|
|
3173
|
-
body: await parseErrorBody(output.body, context),
|
|
3174
|
-
};
|
|
3175
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3176
|
-
switch (errorCode) {
|
|
3177
|
-
case "BadRequestException":
|
|
3178
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
3179
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3180
|
-
case "NotFoundException":
|
|
3181
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
3182
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3183
|
-
case "TooManyRequestsException":
|
|
3184
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
3185
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3186
|
-
default:
|
|
3187
|
-
const parsedBody = parsedOutput.body;
|
|
3188
|
-
return throwDefaultError({
|
|
3189
|
-
output,
|
|
3190
|
-
parsedBody,
|
|
3191
|
-
errorCode,
|
|
3192
|
-
});
|
|
3193
|
-
}
|
|
3194
|
-
};
|
|
3195
|
-
const de_GetStageCommand = async (output, context) => {
|
|
3196
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3197
|
-
return de_GetStageCommandError(output, context);
|
|
3198
|
-
}
|
|
3199
|
-
const contents = (0, smithy_client_1.map)({
|
|
3200
|
-
$metadata: deserializeMetadata(output),
|
|
3201
|
-
});
|
|
3202
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3203
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3204
|
-
AccessLogSettings: [, (_) => de_AccessLogSettings(_, context), `accessLogSettings`],
|
|
3205
|
-
ApiGatewayManaged: [, smithy_client_1.expectBoolean, `apiGatewayManaged`],
|
|
3206
|
-
AutoDeploy: [, smithy_client_1.expectBoolean, `autoDeploy`],
|
|
3207
|
-
ClientCertificateId: [, smithy_client_1.expectString, `clientCertificateId`],
|
|
3208
|
-
CreatedDate: [, (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)), `createdDate`],
|
|
3209
|
-
DefaultRouteSettings: [, (_) => de_RouteSettings(_, context), `defaultRouteSettings`],
|
|
3210
|
-
DeploymentId: [, smithy_client_1.expectString, `deploymentId`],
|
|
3211
|
-
Description: [, smithy_client_1.expectString, `description`],
|
|
3212
|
-
LastDeploymentStatusMessage: [, smithy_client_1.expectString, `lastDeploymentStatusMessage`],
|
|
3213
|
-
LastUpdatedDate: [, (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)), `lastUpdatedDate`],
|
|
3214
|
-
RouteSettings: [, (_) => de_RouteSettingsMap(_, context), `routeSettings`],
|
|
3215
|
-
StageName: [, smithy_client_1.expectString, `stageName`],
|
|
3216
|
-
StageVariables: [, smithy_client_1._json, `stageVariables`],
|
|
3217
|
-
Tags: [, smithy_client_1._json, `tags`],
|
|
3218
|
-
});
|
|
3219
|
-
Object.assign(contents, doc);
|
|
3220
|
-
return contents;
|
|
3221
|
-
};
|
|
3222
|
-
exports.de_GetStageCommand = de_GetStageCommand;
|
|
3223
|
-
const de_GetStageCommandError = async (output, context) => {
|
|
3224
|
-
const parsedOutput = {
|
|
3225
|
-
...output,
|
|
3226
|
-
body: await parseErrorBody(output.body, context),
|
|
3227
|
-
};
|
|
3228
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3229
|
-
switch (errorCode) {
|
|
3230
|
-
case "NotFoundException":
|
|
3231
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
3232
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3233
|
-
case "TooManyRequestsException":
|
|
3234
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
3235
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3236
|
-
default:
|
|
3237
|
-
const parsedBody = parsedOutput.body;
|
|
3238
|
-
return throwDefaultError({
|
|
3239
|
-
output,
|
|
3240
|
-
parsedBody,
|
|
3241
|
-
errorCode,
|
|
3242
|
-
});
|
|
3243
|
-
}
|
|
3244
|
-
};
|
|
3245
|
-
const de_GetStagesCommand = async (output, context) => {
|
|
3246
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3247
|
-
return de_GetStagesCommandError(output, context);
|
|
3248
|
-
}
|
|
3249
|
-
const contents = (0, smithy_client_1.map)({
|
|
3250
|
-
$metadata: deserializeMetadata(output),
|
|
3251
|
-
});
|
|
3252
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3253
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3254
|
-
Items: [, (_) => de___listOfStage(_, context), `items`],
|
|
3255
|
-
NextToken: [, smithy_client_1.expectString, `nextToken`],
|
|
3256
|
-
});
|
|
3257
|
-
Object.assign(contents, doc);
|
|
3258
|
-
return contents;
|
|
3259
|
-
};
|
|
3260
|
-
exports.de_GetStagesCommand = de_GetStagesCommand;
|
|
3261
|
-
const de_GetStagesCommandError = async (output, context) => {
|
|
3262
|
-
const parsedOutput = {
|
|
3263
|
-
...output,
|
|
3264
|
-
body: await parseErrorBody(output.body, context),
|
|
3265
|
-
};
|
|
3266
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3267
|
-
switch (errorCode) {
|
|
3268
|
-
case "BadRequestException":
|
|
3269
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
3270
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3271
|
-
case "NotFoundException":
|
|
3272
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
3273
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3274
|
-
case "TooManyRequestsException":
|
|
3275
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
3276
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3277
|
-
default:
|
|
3278
|
-
const parsedBody = parsedOutput.body;
|
|
3279
|
-
return throwDefaultError({
|
|
3280
|
-
output,
|
|
3281
|
-
parsedBody,
|
|
3282
|
-
errorCode,
|
|
3283
|
-
});
|
|
3284
|
-
}
|
|
3285
|
-
};
|
|
3286
|
-
const de_GetTagsCommand = async (output, context) => {
|
|
3287
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3288
|
-
return de_GetTagsCommandError(output, context);
|
|
3289
|
-
}
|
|
3290
|
-
const contents = (0, smithy_client_1.map)({
|
|
3291
|
-
$metadata: deserializeMetadata(output),
|
|
3292
|
-
});
|
|
3293
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3294
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3295
|
-
Tags: [, smithy_client_1._json, `tags`],
|
|
3296
|
-
});
|
|
3297
|
-
Object.assign(contents, doc);
|
|
3298
|
-
return contents;
|
|
3299
|
-
};
|
|
3300
|
-
exports.de_GetTagsCommand = de_GetTagsCommand;
|
|
3301
|
-
const de_GetTagsCommandError = async (output, context) => {
|
|
3302
|
-
const parsedOutput = {
|
|
3303
|
-
...output,
|
|
3304
|
-
body: await parseErrorBody(output.body, context),
|
|
3305
|
-
};
|
|
3306
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3307
|
-
switch (errorCode) {
|
|
3308
|
-
case "BadRequestException":
|
|
3309
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
3310
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3311
|
-
case "ConflictException":
|
|
3312
|
-
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
3313
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3314
|
-
case "NotFoundException":
|
|
3315
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
3316
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3317
|
-
case "TooManyRequestsException":
|
|
3318
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
3319
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3320
|
-
default:
|
|
3321
|
-
const parsedBody = parsedOutput.body;
|
|
3322
|
-
return throwDefaultError({
|
|
3323
|
-
output,
|
|
3324
|
-
parsedBody,
|
|
3325
|
-
errorCode,
|
|
3326
|
-
});
|
|
3327
|
-
}
|
|
3328
|
-
};
|
|
3329
|
-
const de_GetVpcLinkCommand = async (output, context) => {
|
|
3330
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3331
|
-
return de_GetVpcLinkCommandError(output, context);
|
|
3332
|
-
}
|
|
3333
|
-
const contents = (0, smithy_client_1.map)({
|
|
3334
|
-
$metadata: deserializeMetadata(output),
|
|
3335
|
-
});
|
|
3336
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3337
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3338
|
-
CreatedDate: [, (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)), `createdDate`],
|
|
3339
|
-
Name: [, smithy_client_1.expectString, `name`],
|
|
3340
|
-
SecurityGroupIds: [, smithy_client_1._json, `securityGroupIds`],
|
|
3341
|
-
SubnetIds: [, smithy_client_1._json, `subnetIds`],
|
|
3342
|
-
Tags: [, smithy_client_1._json, `tags`],
|
|
3343
|
-
VpcLinkId: [, smithy_client_1.expectString, `vpcLinkId`],
|
|
3344
|
-
VpcLinkStatus: [, smithy_client_1.expectString, `vpcLinkStatus`],
|
|
3345
|
-
VpcLinkStatusMessage: [, smithy_client_1.expectString, `vpcLinkStatusMessage`],
|
|
3346
|
-
VpcLinkVersion: [, smithy_client_1.expectString, `vpcLinkVersion`],
|
|
3347
|
-
});
|
|
3348
|
-
Object.assign(contents, doc);
|
|
3349
|
-
return contents;
|
|
3350
|
-
};
|
|
3351
|
-
exports.de_GetVpcLinkCommand = de_GetVpcLinkCommand;
|
|
3352
|
-
const de_GetVpcLinkCommandError = async (output, context) => {
|
|
3353
|
-
const parsedOutput = {
|
|
3354
|
-
...output,
|
|
3355
|
-
body: await parseErrorBody(output.body, context),
|
|
3356
|
-
};
|
|
3357
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3358
|
-
switch (errorCode) {
|
|
3359
|
-
case "NotFoundException":
|
|
3360
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
3361
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3362
|
-
case "TooManyRequestsException":
|
|
3363
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
3364
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3365
|
-
default:
|
|
3366
|
-
const parsedBody = parsedOutput.body;
|
|
3367
|
-
return throwDefaultError({
|
|
3368
|
-
output,
|
|
3369
|
-
parsedBody,
|
|
3370
|
-
errorCode,
|
|
3371
|
-
});
|
|
3372
|
-
}
|
|
3373
|
-
};
|
|
3374
|
-
const de_GetVpcLinksCommand = async (output, context) => {
|
|
3375
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3376
|
-
return de_GetVpcLinksCommandError(output, context);
|
|
3377
|
-
}
|
|
3378
|
-
const contents = (0, smithy_client_1.map)({
|
|
3379
|
-
$metadata: deserializeMetadata(output),
|
|
3380
|
-
});
|
|
3381
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3382
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3383
|
-
Items: [, (_) => de___listOfVpcLink(_, context), `items`],
|
|
3384
|
-
NextToken: [, smithy_client_1.expectString, `nextToken`],
|
|
3385
|
-
});
|
|
3386
|
-
Object.assign(contents, doc);
|
|
3387
|
-
return contents;
|
|
3388
|
-
};
|
|
3389
|
-
exports.de_GetVpcLinksCommand = de_GetVpcLinksCommand;
|
|
3390
|
-
const de_GetVpcLinksCommandError = async (output, context) => {
|
|
3391
|
-
const parsedOutput = {
|
|
3392
|
-
...output,
|
|
3393
|
-
body: await parseErrorBody(output.body, context),
|
|
3394
|
-
};
|
|
3395
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3396
|
-
switch (errorCode) {
|
|
3397
|
-
case "BadRequestException":
|
|
3398
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
3399
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3400
|
-
case "TooManyRequestsException":
|
|
3401
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
3402
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3403
|
-
default:
|
|
3404
|
-
const parsedBody = parsedOutput.body;
|
|
3405
|
-
return throwDefaultError({
|
|
3406
|
-
output,
|
|
3407
|
-
parsedBody,
|
|
3408
|
-
errorCode,
|
|
3409
|
-
});
|
|
3410
|
-
}
|
|
3411
|
-
};
|
|
3412
|
-
const de_ImportApiCommand = async (output, context) => {
|
|
3413
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
3414
|
-
return de_ImportApiCommandError(output, context);
|
|
3415
|
-
}
|
|
3416
|
-
const contents = (0, smithy_client_1.map)({
|
|
3417
|
-
$metadata: deserializeMetadata(output),
|
|
3418
|
-
});
|
|
3419
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3420
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3421
|
-
ApiEndpoint: [, smithy_client_1.expectString, `apiEndpoint`],
|
|
3422
|
-
ApiGatewayManaged: [, smithy_client_1.expectBoolean, `apiGatewayManaged`],
|
|
3423
|
-
ApiId: [, smithy_client_1.expectString, `apiId`],
|
|
3424
|
-
ApiKeySelectionExpression: [, smithy_client_1.expectString, `apiKeySelectionExpression`],
|
|
3425
|
-
CorsConfiguration: [, (_) => de_Cors(_, context), `corsConfiguration`],
|
|
3426
|
-
CreatedDate: [, (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)), `createdDate`],
|
|
3427
|
-
Description: [, smithy_client_1.expectString, `description`],
|
|
3428
|
-
DisableExecuteApiEndpoint: [, smithy_client_1.expectBoolean, `disableExecuteApiEndpoint`],
|
|
3429
|
-
DisableSchemaValidation: [, smithy_client_1.expectBoolean, `disableSchemaValidation`],
|
|
3430
|
-
ImportInfo: [, smithy_client_1._json, `importInfo`],
|
|
3431
|
-
Name: [, smithy_client_1.expectString, `name`],
|
|
3432
|
-
ProtocolType: [, smithy_client_1.expectString, `protocolType`],
|
|
3433
|
-
RouteSelectionExpression: [, smithy_client_1.expectString, `routeSelectionExpression`],
|
|
3434
|
-
Tags: [, smithy_client_1._json, `tags`],
|
|
3435
|
-
Version: [, smithy_client_1.expectString, `version`],
|
|
3436
|
-
Warnings: [, smithy_client_1._json, `warnings`],
|
|
3437
|
-
});
|
|
3438
|
-
Object.assign(contents, doc);
|
|
3439
|
-
return contents;
|
|
3440
|
-
};
|
|
3441
|
-
exports.de_ImportApiCommand = de_ImportApiCommand;
|
|
3442
|
-
const de_ImportApiCommandError = async (output, context) => {
|
|
3443
|
-
const parsedOutput = {
|
|
3444
|
-
...output,
|
|
3445
|
-
body: await parseErrorBody(output.body, context),
|
|
3446
|
-
};
|
|
3447
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3448
|
-
switch (errorCode) {
|
|
3449
|
-
case "BadRequestException":
|
|
3450
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
3451
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3452
|
-
case "ConflictException":
|
|
3453
|
-
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
3454
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3455
|
-
case "NotFoundException":
|
|
3456
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
3457
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3458
|
-
case "TooManyRequestsException":
|
|
3459
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
3460
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3461
|
-
default:
|
|
3462
|
-
const parsedBody = parsedOutput.body;
|
|
3463
|
-
return throwDefaultError({
|
|
3464
|
-
output,
|
|
3465
|
-
parsedBody,
|
|
3466
|
-
errorCode,
|
|
3467
|
-
});
|
|
3468
|
-
}
|
|
3469
|
-
};
|
|
3470
|
-
const de_ReimportApiCommand = async (output, context) => {
|
|
3471
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
3472
|
-
return de_ReimportApiCommandError(output, context);
|
|
3473
|
-
}
|
|
3474
|
-
const contents = (0, smithy_client_1.map)({
|
|
3475
|
-
$metadata: deserializeMetadata(output),
|
|
3476
|
-
});
|
|
3477
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3478
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3479
|
-
ApiEndpoint: [, smithy_client_1.expectString, `apiEndpoint`],
|
|
3480
|
-
ApiGatewayManaged: [, smithy_client_1.expectBoolean, `apiGatewayManaged`],
|
|
3481
|
-
ApiId: [, smithy_client_1.expectString, `apiId`],
|
|
3482
|
-
ApiKeySelectionExpression: [, smithy_client_1.expectString, `apiKeySelectionExpression`],
|
|
3483
|
-
CorsConfiguration: [, (_) => de_Cors(_, context), `corsConfiguration`],
|
|
3484
|
-
CreatedDate: [, (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)), `createdDate`],
|
|
3485
|
-
Description: [, smithy_client_1.expectString, `description`],
|
|
3486
|
-
DisableExecuteApiEndpoint: [, smithy_client_1.expectBoolean, `disableExecuteApiEndpoint`],
|
|
3487
|
-
DisableSchemaValidation: [, smithy_client_1.expectBoolean, `disableSchemaValidation`],
|
|
3488
|
-
ImportInfo: [, smithy_client_1._json, `importInfo`],
|
|
3489
|
-
Name: [, smithy_client_1.expectString, `name`],
|
|
3490
|
-
ProtocolType: [, smithy_client_1.expectString, `protocolType`],
|
|
3491
|
-
RouteSelectionExpression: [, smithy_client_1.expectString, `routeSelectionExpression`],
|
|
3492
|
-
Tags: [, smithy_client_1._json, `tags`],
|
|
3493
|
-
Version: [, smithy_client_1.expectString, `version`],
|
|
3494
|
-
Warnings: [, smithy_client_1._json, `warnings`],
|
|
3495
|
-
});
|
|
3496
|
-
Object.assign(contents, doc);
|
|
3497
|
-
return contents;
|
|
3498
|
-
};
|
|
3499
|
-
exports.de_ReimportApiCommand = de_ReimportApiCommand;
|
|
3500
|
-
const de_ReimportApiCommandError = async (output, context) => {
|
|
3501
|
-
const parsedOutput = {
|
|
3502
|
-
...output,
|
|
3503
|
-
body: await parseErrorBody(output.body, context),
|
|
3504
|
-
};
|
|
3505
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3506
|
-
switch (errorCode) {
|
|
3507
|
-
case "BadRequestException":
|
|
3508
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
3509
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3510
|
-
case "ConflictException":
|
|
3511
|
-
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
3512
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3513
|
-
case "NotFoundException":
|
|
3514
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
3515
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3516
|
-
case "TooManyRequestsException":
|
|
3517
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
3518
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3519
|
-
default:
|
|
3520
|
-
const parsedBody = parsedOutput.body;
|
|
3521
|
-
return throwDefaultError({
|
|
3522
|
-
output,
|
|
3523
|
-
parsedBody,
|
|
3524
|
-
errorCode,
|
|
3525
|
-
});
|
|
3526
|
-
}
|
|
3527
|
-
};
|
|
3528
|
-
const de_ResetAuthorizersCacheCommand = async (output, context) => {
|
|
3529
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
3530
|
-
return de_ResetAuthorizersCacheCommandError(output, context);
|
|
3531
|
-
}
|
|
3532
|
-
const contents = (0, smithy_client_1.map)({
|
|
3533
|
-
$metadata: deserializeMetadata(output),
|
|
3534
|
-
});
|
|
3535
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3536
|
-
return contents;
|
|
3537
|
-
};
|
|
3538
|
-
exports.de_ResetAuthorizersCacheCommand = de_ResetAuthorizersCacheCommand;
|
|
3539
|
-
const de_ResetAuthorizersCacheCommandError = async (output, context) => {
|
|
3540
|
-
const parsedOutput = {
|
|
3541
|
-
...output,
|
|
3542
|
-
body: await parseErrorBody(output.body, context),
|
|
3543
|
-
};
|
|
3544
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3545
|
-
switch (errorCode) {
|
|
3546
|
-
case "NotFoundException":
|
|
3547
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
3548
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3549
|
-
case "TooManyRequestsException":
|
|
3550
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
3551
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3552
|
-
default:
|
|
3553
|
-
const parsedBody = parsedOutput.body;
|
|
3554
|
-
return throwDefaultError({
|
|
3555
|
-
output,
|
|
3556
|
-
parsedBody,
|
|
3557
|
-
errorCode,
|
|
3558
|
-
});
|
|
3559
|
-
}
|
|
3560
|
-
};
|
|
3561
|
-
const de_TagResourceCommand = async (output, context) => {
|
|
3562
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
3563
|
-
return de_TagResourceCommandError(output, context);
|
|
3564
|
-
}
|
|
3565
|
-
const contents = (0, smithy_client_1.map)({
|
|
3566
|
-
$metadata: deserializeMetadata(output),
|
|
3567
|
-
});
|
|
3568
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3569
|
-
return contents;
|
|
3570
|
-
};
|
|
3571
|
-
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
3572
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
3573
|
-
const parsedOutput = {
|
|
3574
|
-
...output,
|
|
3575
|
-
body: await parseErrorBody(output.body, context),
|
|
3576
|
-
};
|
|
3577
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3578
|
-
switch (errorCode) {
|
|
3579
|
-
case "BadRequestException":
|
|
3580
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
3581
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3582
|
-
case "ConflictException":
|
|
3583
|
-
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
3584
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3585
|
-
case "NotFoundException":
|
|
3586
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
3587
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3588
|
-
case "TooManyRequestsException":
|
|
3589
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
3590
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3591
|
-
default:
|
|
3592
|
-
const parsedBody = parsedOutput.body;
|
|
3593
|
-
return throwDefaultError({
|
|
3594
|
-
output,
|
|
3595
|
-
parsedBody,
|
|
3596
|
-
errorCode,
|
|
3597
|
-
});
|
|
3598
|
-
}
|
|
3599
|
-
};
|
|
3600
|
-
const de_UntagResourceCommand = async (output, context) => {
|
|
3601
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
3602
|
-
return de_UntagResourceCommandError(output, context);
|
|
3603
|
-
}
|
|
3604
|
-
const contents = (0, smithy_client_1.map)({
|
|
3605
|
-
$metadata: deserializeMetadata(output),
|
|
3606
|
-
});
|
|
3607
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3608
|
-
return contents;
|
|
3609
|
-
};
|
|
3610
|
-
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
3611
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
3612
|
-
const parsedOutput = {
|
|
3613
|
-
...output,
|
|
3614
|
-
body: await parseErrorBody(output.body, context),
|
|
3615
|
-
};
|
|
3616
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3617
|
-
switch (errorCode) {
|
|
3618
|
-
case "BadRequestException":
|
|
3619
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
3620
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3621
|
-
case "ConflictException":
|
|
3622
|
-
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
3623
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3624
|
-
case "NotFoundException":
|
|
3625
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
3626
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3627
|
-
case "TooManyRequestsException":
|
|
3628
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
3629
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3630
|
-
default:
|
|
3631
|
-
const parsedBody = parsedOutput.body;
|
|
3632
|
-
return throwDefaultError({
|
|
3633
|
-
output,
|
|
3634
|
-
parsedBody,
|
|
3635
|
-
errorCode,
|
|
3636
|
-
});
|
|
3637
|
-
}
|
|
3638
|
-
};
|
|
3639
|
-
const de_UpdateApiCommand = async (output, context) => {
|
|
3640
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3641
|
-
return de_UpdateApiCommandError(output, context);
|
|
3642
|
-
}
|
|
3643
|
-
const contents = (0, smithy_client_1.map)({
|
|
3644
|
-
$metadata: deserializeMetadata(output),
|
|
3645
|
-
});
|
|
3646
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3647
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3648
|
-
ApiEndpoint: [, smithy_client_1.expectString, `apiEndpoint`],
|
|
3649
|
-
ApiGatewayManaged: [, smithy_client_1.expectBoolean, `apiGatewayManaged`],
|
|
3650
|
-
ApiId: [, smithy_client_1.expectString, `apiId`],
|
|
3651
|
-
ApiKeySelectionExpression: [, smithy_client_1.expectString, `apiKeySelectionExpression`],
|
|
3652
|
-
CorsConfiguration: [, (_) => de_Cors(_, context), `corsConfiguration`],
|
|
3653
|
-
CreatedDate: [, (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)), `createdDate`],
|
|
3654
|
-
Description: [, smithy_client_1.expectString, `description`],
|
|
3655
|
-
DisableExecuteApiEndpoint: [, smithy_client_1.expectBoolean, `disableExecuteApiEndpoint`],
|
|
3656
|
-
DisableSchemaValidation: [, smithy_client_1.expectBoolean, `disableSchemaValidation`],
|
|
3657
|
-
ImportInfo: [, smithy_client_1._json, `importInfo`],
|
|
3658
|
-
Name: [, smithy_client_1.expectString, `name`],
|
|
3659
|
-
ProtocolType: [, smithy_client_1.expectString, `protocolType`],
|
|
3660
|
-
RouteSelectionExpression: [, smithy_client_1.expectString, `routeSelectionExpression`],
|
|
3661
|
-
Tags: [, smithy_client_1._json, `tags`],
|
|
3662
|
-
Version: [, smithy_client_1.expectString, `version`],
|
|
3663
|
-
Warnings: [, smithy_client_1._json, `warnings`],
|
|
3664
|
-
});
|
|
3665
|
-
Object.assign(contents, doc);
|
|
3666
|
-
return contents;
|
|
3667
|
-
};
|
|
3668
|
-
exports.de_UpdateApiCommand = de_UpdateApiCommand;
|
|
3669
|
-
const de_UpdateApiCommandError = async (output, context) => {
|
|
3670
|
-
const parsedOutput = {
|
|
3671
|
-
...output,
|
|
3672
|
-
body: await parseErrorBody(output.body, context),
|
|
3673
|
-
};
|
|
3674
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3675
|
-
switch (errorCode) {
|
|
3676
|
-
case "BadRequestException":
|
|
3677
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
3678
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3679
|
-
case "ConflictException":
|
|
3680
|
-
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
3681
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3682
|
-
case "NotFoundException":
|
|
3683
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
3684
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3685
|
-
case "TooManyRequestsException":
|
|
3686
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
3687
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3688
|
-
default:
|
|
3689
|
-
const parsedBody = parsedOutput.body;
|
|
3690
|
-
return throwDefaultError({
|
|
3691
|
-
output,
|
|
3692
|
-
parsedBody,
|
|
3693
|
-
errorCode,
|
|
3694
|
-
});
|
|
3695
|
-
}
|
|
3696
|
-
};
|
|
3697
|
-
const de_UpdateApiMappingCommand = async (output, context) => {
|
|
3698
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3699
|
-
return de_UpdateApiMappingCommandError(output, context);
|
|
3700
|
-
}
|
|
3701
|
-
const contents = (0, smithy_client_1.map)({
|
|
3702
|
-
$metadata: deserializeMetadata(output),
|
|
3703
|
-
});
|
|
3704
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3705
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3706
|
-
ApiId: [, smithy_client_1.expectString, `apiId`],
|
|
3707
|
-
ApiMappingId: [, smithy_client_1.expectString, `apiMappingId`],
|
|
3708
|
-
ApiMappingKey: [, smithy_client_1.expectString, `apiMappingKey`],
|
|
3709
|
-
Stage: [, smithy_client_1.expectString, `stage`],
|
|
3710
|
-
});
|
|
3711
|
-
Object.assign(contents, doc);
|
|
3712
|
-
return contents;
|
|
3713
|
-
};
|
|
3714
|
-
exports.de_UpdateApiMappingCommand = de_UpdateApiMappingCommand;
|
|
3715
|
-
const de_UpdateApiMappingCommandError = async (output, context) => {
|
|
3716
|
-
const parsedOutput = {
|
|
3717
|
-
...output,
|
|
3718
|
-
body: await parseErrorBody(output.body, context),
|
|
3719
|
-
};
|
|
3720
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3721
|
-
switch (errorCode) {
|
|
3722
|
-
case "BadRequestException":
|
|
3723
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
3724
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3725
|
-
case "ConflictException":
|
|
3726
|
-
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
3727
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3728
|
-
case "NotFoundException":
|
|
3729
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
3730
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3731
|
-
case "TooManyRequestsException":
|
|
3732
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
3733
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3734
|
-
default:
|
|
3735
|
-
const parsedBody = parsedOutput.body;
|
|
3736
|
-
return throwDefaultError({
|
|
3737
|
-
output,
|
|
3738
|
-
parsedBody,
|
|
3739
|
-
errorCode,
|
|
3740
|
-
});
|
|
3741
|
-
}
|
|
3742
|
-
};
|
|
3743
|
-
const de_UpdateAuthorizerCommand = async (output, context) => {
|
|
3744
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3745
|
-
return de_UpdateAuthorizerCommandError(output, context);
|
|
3746
|
-
}
|
|
3747
|
-
const contents = (0, smithy_client_1.map)({
|
|
3748
|
-
$metadata: deserializeMetadata(output),
|
|
3749
|
-
});
|
|
3750
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3751
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3752
|
-
AuthorizerCredentialsArn: [, smithy_client_1.expectString, `authorizerCredentialsArn`],
|
|
3753
|
-
AuthorizerId: [, smithy_client_1.expectString, `authorizerId`],
|
|
3754
|
-
AuthorizerPayloadFormatVersion: [, smithy_client_1.expectString, `authorizerPayloadFormatVersion`],
|
|
3755
|
-
AuthorizerResultTtlInSeconds: [, smithy_client_1.expectInt32, `authorizerResultTtlInSeconds`],
|
|
3756
|
-
AuthorizerType: [, smithy_client_1.expectString, `authorizerType`],
|
|
3757
|
-
AuthorizerUri: [, smithy_client_1.expectString, `authorizerUri`],
|
|
3758
|
-
EnableSimpleResponses: [, smithy_client_1.expectBoolean, `enableSimpleResponses`],
|
|
3759
|
-
IdentitySource: [, smithy_client_1._json, `identitySource`],
|
|
3760
|
-
IdentityValidationExpression: [, smithy_client_1.expectString, `identityValidationExpression`],
|
|
3761
|
-
JwtConfiguration: [, (_) => de_JWTConfiguration(_, context), `jwtConfiguration`],
|
|
3762
|
-
Name: [, smithy_client_1.expectString, `name`],
|
|
3763
|
-
});
|
|
3764
|
-
Object.assign(contents, doc);
|
|
3765
|
-
return contents;
|
|
3766
|
-
};
|
|
3767
|
-
exports.de_UpdateAuthorizerCommand = de_UpdateAuthorizerCommand;
|
|
3768
|
-
const de_UpdateAuthorizerCommandError = async (output, context) => {
|
|
3769
|
-
const parsedOutput = {
|
|
3770
|
-
...output,
|
|
3771
|
-
body: await parseErrorBody(output.body, context),
|
|
3772
|
-
};
|
|
3773
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3774
|
-
switch (errorCode) {
|
|
3775
|
-
case "BadRequestException":
|
|
3776
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
3777
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3778
|
-
case "ConflictException":
|
|
3779
|
-
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
3780
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3781
|
-
case "NotFoundException":
|
|
3782
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
3783
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3784
|
-
case "TooManyRequestsException":
|
|
3785
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
3786
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3787
|
-
default:
|
|
3788
|
-
const parsedBody = parsedOutput.body;
|
|
3789
|
-
return throwDefaultError({
|
|
3790
|
-
output,
|
|
3791
|
-
parsedBody,
|
|
3792
|
-
errorCode,
|
|
3793
|
-
});
|
|
3794
|
-
}
|
|
3795
|
-
};
|
|
3796
|
-
const de_UpdateDeploymentCommand = async (output, context) => {
|
|
3797
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3798
|
-
return de_UpdateDeploymentCommandError(output, context);
|
|
3799
|
-
}
|
|
3800
|
-
const contents = (0, smithy_client_1.map)({
|
|
3801
|
-
$metadata: deserializeMetadata(output),
|
|
3802
|
-
});
|
|
3803
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3804
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3805
|
-
AutoDeployed: [, smithy_client_1.expectBoolean, `autoDeployed`],
|
|
3806
|
-
CreatedDate: [, (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)), `createdDate`],
|
|
3807
|
-
DeploymentId: [, smithy_client_1.expectString, `deploymentId`],
|
|
3808
|
-
DeploymentStatus: [, smithy_client_1.expectString, `deploymentStatus`],
|
|
3809
|
-
DeploymentStatusMessage: [, smithy_client_1.expectString, `deploymentStatusMessage`],
|
|
3810
|
-
Description: [, smithy_client_1.expectString, `description`],
|
|
3811
|
-
});
|
|
3812
|
-
Object.assign(contents, doc);
|
|
3813
|
-
return contents;
|
|
3814
|
-
};
|
|
3815
|
-
exports.de_UpdateDeploymentCommand = de_UpdateDeploymentCommand;
|
|
3816
|
-
const de_UpdateDeploymentCommandError = async (output, context) => {
|
|
3817
|
-
const parsedOutput = {
|
|
3818
|
-
...output,
|
|
3819
|
-
body: await parseErrorBody(output.body, context),
|
|
3820
|
-
};
|
|
3821
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3822
|
-
switch (errorCode) {
|
|
3823
|
-
case "BadRequestException":
|
|
3824
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
3825
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3826
|
-
case "ConflictException":
|
|
3827
|
-
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
3828
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3829
|
-
case "NotFoundException":
|
|
3830
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
3831
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3832
|
-
case "TooManyRequestsException":
|
|
3833
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
3834
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3835
|
-
default:
|
|
3836
|
-
const parsedBody = parsedOutput.body;
|
|
3837
|
-
return throwDefaultError({
|
|
3838
|
-
output,
|
|
3839
|
-
parsedBody,
|
|
3840
|
-
errorCode,
|
|
3841
|
-
});
|
|
3842
|
-
}
|
|
3843
|
-
};
|
|
3844
|
-
const de_UpdateDomainNameCommand = async (output, context) => {
|
|
3845
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3846
|
-
return de_UpdateDomainNameCommandError(output, context);
|
|
3847
|
-
}
|
|
3848
|
-
const contents = (0, smithy_client_1.map)({
|
|
3849
|
-
$metadata: deserializeMetadata(output),
|
|
3850
|
-
});
|
|
3851
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3852
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3853
|
-
ApiMappingSelectionExpression: [, smithy_client_1.expectString, `apiMappingSelectionExpression`],
|
|
3854
|
-
DomainName: [, smithy_client_1.expectString, `domainName`],
|
|
3855
|
-
DomainNameConfigurations: [, (_) => de_DomainNameConfigurations(_, context), `domainNameConfigurations`],
|
|
3856
|
-
MutualTlsAuthentication: [, (_) => de_MutualTlsAuthentication(_, context), `mutualTlsAuthentication`],
|
|
3857
|
-
Tags: [, smithy_client_1._json, `tags`],
|
|
3858
|
-
});
|
|
3859
|
-
Object.assign(contents, doc);
|
|
3860
|
-
return contents;
|
|
3861
|
-
};
|
|
3862
|
-
exports.de_UpdateDomainNameCommand = de_UpdateDomainNameCommand;
|
|
3863
|
-
const de_UpdateDomainNameCommandError = async (output, context) => {
|
|
3864
|
-
const parsedOutput = {
|
|
3865
|
-
...output,
|
|
3866
|
-
body: await parseErrorBody(output.body, context),
|
|
3867
|
-
};
|
|
3868
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3869
|
-
switch (errorCode) {
|
|
3870
|
-
case "BadRequestException":
|
|
3871
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
3872
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3873
|
-
case "ConflictException":
|
|
3874
|
-
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
3875
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3876
|
-
case "NotFoundException":
|
|
3877
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
3878
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3879
|
-
case "TooManyRequestsException":
|
|
3880
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
3881
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3882
|
-
default:
|
|
3883
|
-
const parsedBody = parsedOutput.body;
|
|
3884
|
-
return throwDefaultError({
|
|
3885
|
-
output,
|
|
3886
|
-
parsedBody,
|
|
3887
|
-
errorCode,
|
|
3888
|
-
});
|
|
3889
|
-
}
|
|
3890
|
-
};
|
|
3891
|
-
const de_UpdateIntegrationCommand = async (output, context) => {
|
|
3892
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3893
|
-
return de_UpdateIntegrationCommandError(output, context);
|
|
3894
|
-
}
|
|
3895
|
-
const contents = (0, smithy_client_1.map)({
|
|
3896
|
-
$metadata: deserializeMetadata(output),
|
|
3897
|
-
});
|
|
3898
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3899
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3900
|
-
ApiGatewayManaged: [, smithy_client_1.expectBoolean, `apiGatewayManaged`],
|
|
3901
|
-
ConnectionId: [, smithy_client_1.expectString, `connectionId`],
|
|
3902
|
-
ConnectionType: [, smithy_client_1.expectString, `connectionType`],
|
|
3903
|
-
ContentHandlingStrategy: [, smithy_client_1.expectString, `contentHandlingStrategy`],
|
|
3904
|
-
CredentialsArn: [, smithy_client_1.expectString, `credentialsArn`],
|
|
3905
|
-
Description: [, smithy_client_1.expectString, `description`],
|
|
3906
|
-
IntegrationId: [, smithy_client_1.expectString, `integrationId`],
|
|
3907
|
-
IntegrationMethod: [, smithy_client_1.expectString, `integrationMethod`],
|
|
3908
|
-
IntegrationResponseSelectionExpression: [, smithy_client_1.expectString, `integrationResponseSelectionExpression`],
|
|
3909
|
-
IntegrationSubtype: [, smithy_client_1.expectString, `integrationSubtype`],
|
|
3910
|
-
IntegrationType: [, smithy_client_1.expectString, `integrationType`],
|
|
3911
|
-
IntegrationUri: [, smithy_client_1.expectString, `integrationUri`],
|
|
3912
|
-
PassthroughBehavior: [, smithy_client_1.expectString, `passthroughBehavior`],
|
|
3913
|
-
PayloadFormatVersion: [, smithy_client_1.expectString, `payloadFormatVersion`],
|
|
3914
|
-
RequestParameters: [, smithy_client_1._json, `requestParameters`],
|
|
3915
|
-
RequestTemplates: [, smithy_client_1._json, `requestTemplates`],
|
|
3916
|
-
ResponseParameters: [, smithy_client_1._json, `responseParameters`],
|
|
3917
|
-
TemplateSelectionExpression: [, smithy_client_1.expectString, `templateSelectionExpression`],
|
|
3918
|
-
TimeoutInMillis: [, smithy_client_1.expectInt32, `timeoutInMillis`],
|
|
3919
|
-
TlsConfig: [, (_) => de_TlsConfig(_, context), `tlsConfig`],
|
|
3920
|
-
});
|
|
3921
|
-
Object.assign(contents, doc);
|
|
3922
|
-
return contents;
|
|
3923
|
-
};
|
|
3924
|
-
exports.de_UpdateIntegrationCommand = de_UpdateIntegrationCommand;
|
|
3925
|
-
const de_UpdateIntegrationCommandError = async (output, context) => {
|
|
3926
|
-
const parsedOutput = {
|
|
3927
|
-
...output,
|
|
3928
|
-
body: await parseErrorBody(output.body, context),
|
|
3929
|
-
};
|
|
3930
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3931
|
-
switch (errorCode) {
|
|
3932
|
-
case "BadRequestException":
|
|
3933
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
3934
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3935
|
-
case "ConflictException":
|
|
3936
|
-
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
3937
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3938
|
-
case "NotFoundException":
|
|
3939
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
3940
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3941
|
-
case "TooManyRequestsException":
|
|
3942
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
3943
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3944
|
-
default:
|
|
3945
|
-
const parsedBody = parsedOutput.body;
|
|
3946
|
-
return throwDefaultError({
|
|
3947
|
-
output,
|
|
3948
|
-
parsedBody,
|
|
3949
|
-
errorCode,
|
|
3950
|
-
});
|
|
3951
|
-
}
|
|
3952
|
-
};
|
|
3953
|
-
const de_UpdateIntegrationResponseCommand = async (output, context) => {
|
|
3954
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3955
|
-
return de_UpdateIntegrationResponseCommandError(output, context);
|
|
3956
|
-
}
|
|
3957
|
-
const contents = (0, smithy_client_1.map)({
|
|
3958
|
-
$metadata: deserializeMetadata(output),
|
|
3959
|
-
});
|
|
3960
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3961
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3962
|
-
ContentHandlingStrategy: [, smithy_client_1.expectString, `contentHandlingStrategy`],
|
|
3963
|
-
IntegrationResponseId: [, smithy_client_1.expectString, `integrationResponseId`],
|
|
3964
|
-
IntegrationResponseKey: [, smithy_client_1.expectString, `integrationResponseKey`],
|
|
3965
|
-
ResponseParameters: [, smithy_client_1._json, `responseParameters`],
|
|
3966
|
-
ResponseTemplates: [, smithy_client_1._json, `responseTemplates`],
|
|
3967
|
-
TemplateSelectionExpression: [, smithy_client_1.expectString, `templateSelectionExpression`],
|
|
3968
|
-
});
|
|
3969
|
-
Object.assign(contents, doc);
|
|
3970
|
-
return contents;
|
|
3971
|
-
};
|
|
3972
|
-
exports.de_UpdateIntegrationResponseCommand = de_UpdateIntegrationResponseCommand;
|
|
3973
|
-
const de_UpdateIntegrationResponseCommandError = async (output, context) => {
|
|
3974
|
-
const parsedOutput = {
|
|
3975
|
-
...output,
|
|
3976
|
-
body: await parseErrorBody(output.body, context),
|
|
3977
|
-
};
|
|
3978
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3979
|
-
switch (errorCode) {
|
|
3980
|
-
case "BadRequestException":
|
|
3981
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
3982
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3983
|
-
case "ConflictException":
|
|
3984
|
-
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
3985
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3986
|
-
case "NotFoundException":
|
|
3987
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
3988
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3989
|
-
case "TooManyRequestsException":
|
|
3990
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
3991
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3992
|
-
default:
|
|
3993
|
-
const parsedBody = parsedOutput.body;
|
|
3994
|
-
return throwDefaultError({
|
|
3995
|
-
output,
|
|
3996
|
-
parsedBody,
|
|
3997
|
-
errorCode,
|
|
3998
|
-
});
|
|
3999
|
-
}
|
|
4000
|
-
};
|
|
4001
|
-
const de_UpdateModelCommand = async (output, context) => {
|
|
4002
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4003
|
-
return de_UpdateModelCommandError(output, context);
|
|
4004
|
-
}
|
|
4005
|
-
const contents = (0, smithy_client_1.map)({
|
|
4006
|
-
$metadata: deserializeMetadata(output),
|
|
4007
|
-
});
|
|
4008
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4009
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
4010
|
-
ContentType: [, smithy_client_1.expectString, `contentType`],
|
|
4011
|
-
Description: [, smithy_client_1.expectString, `description`],
|
|
4012
|
-
ModelId: [, smithy_client_1.expectString, `modelId`],
|
|
4013
|
-
Name: [, smithy_client_1.expectString, `name`],
|
|
4014
|
-
Schema: [, smithy_client_1.expectString, `schema`],
|
|
4015
|
-
});
|
|
4016
|
-
Object.assign(contents, doc);
|
|
4017
|
-
return contents;
|
|
4018
|
-
};
|
|
4019
|
-
exports.de_UpdateModelCommand = de_UpdateModelCommand;
|
|
4020
|
-
const de_UpdateModelCommandError = async (output, context) => {
|
|
4021
|
-
const parsedOutput = {
|
|
4022
|
-
...output,
|
|
4023
|
-
body: await parseErrorBody(output.body, context),
|
|
4024
|
-
};
|
|
4025
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4026
|
-
switch (errorCode) {
|
|
4027
|
-
case "BadRequestException":
|
|
4028
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
4029
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
4030
|
-
case "ConflictException":
|
|
4031
|
-
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
4032
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
4033
|
-
case "NotFoundException":
|
|
4034
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
4035
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
4036
|
-
case "TooManyRequestsException":
|
|
4037
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
4038
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
4039
|
-
default:
|
|
4040
|
-
const parsedBody = parsedOutput.body;
|
|
4041
|
-
return throwDefaultError({
|
|
4042
|
-
output,
|
|
4043
|
-
parsedBody,
|
|
4044
|
-
errorCode,
|
|
4045
|
-
});
|
|
4046
|
-
}
|
|
4047
|
-
};
|
|
4048
|
-
const de_UpdateRouteCommand = async (output, context) => {
|
|
4049
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4050
|
-
return de_UpdateRouteCommandError(output, context);
|
|
4051
|
-
}
|
|
4052
|
-
const contents = (0, smithy_client_1.map)({
|
|
4053
|
-
$metadata: deserializeMetadata(output),
|
|
4054
|
-
});
|
|
4055
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4056
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
4057
|
-
ApiGatewayManaged: [, smithy_client_1.expectBoolean, `apiGatewayManaged`],
|
|
4058
|
-
ApiKeyRequired: [, smithy_client_1.expectBoolean, `apiKeyRequired`],
|
|
4059
|
-
AuthorizationScopes: [, smithy_client_1._json, `authorizationScopes`],
|
|
4060
|
-
AuthorizationType: [, smithy_client_1.expectString, `authorizationType`],
|
|
4061
|
-
AuthorizerId: [, smithy_client_1.expectString, `authorizerId`],
|
|
4062
|
-
ModelSelectionExpression: [, smithy_client_1.expectString, `modelSelectionExpression`],
|
|
4063
|
-
OperationName: [, smithy_client_1.expectString, `operationName`],
|
|
4064
|
-
RequestModels: [, smithy_client_1._json, `requestModels`],
|
|
4065
|
-
RequestParameters: [, (_) => de_RouteParameters(_, context), `requestParameters`],
|
|
4066
|
-
RouteId: [, smithy_client_1.expectString, `routeId`],
|
|
4067
|
-
RouteKey: [, smithy_client_1.expectString, `routeKey`],
|
|
4068
|
-
RouteResponseSelectionExpression: [, smithy_client_1.expectString, `routeResponseSelectionExpression`],
|
|
4069
|
-
Target: [, smithy_client_1.expectString, `target`],
|
|
4070
|
-
});
|
|
4071
|
-
Object.assign(contents, doc);
|
|
4072
|
-
return contents;
|
|
4073
|
-
};
|
|
4074
|
-
exports.de_UpdateRouteCommand = de_UpdateRouteCommand;
|
|
4075
|
-
const de_UpdateRouteCommandError = async (output, context) => {
|
|
4076
|
-
const parsedOutput = {
|
|
4077
|
-
...output,
|
|
4078
|
-
body: await parseErrorBody(output.body, context),
|
|
4079
|
-
};
|
|
4080
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4081
|
-
switch (errorCode) {
|
|
4082
|
-
case "BadRequestException":
|
|
4083
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
4084
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
4085
|
-
case "ConflictException":
|
|
4086
|
-
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
4087
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
4088
|
-
case "NotFoundException":
|
|
4089
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
4090
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
4091
|
-
case "TooManyRequestsException":
|
|
4092
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
4093
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
4094
|
-
default:
|
|
4095
|
-
const parsedBody = parsedOutput.body;
|
|
4096
|
-
return throwDefaultError({
|
|
4097
|
-
output,
|
|
4098
|
-
parsedBody,
|
|
4099
|
-
errorCode,
|
|
4100
|
-
});
|
|
4101
|
-
}
|
|
4102
|
-
};
|
|
4103
|
-
const de_UpdateRouteResponseCommand = async (output, context) => {
|
|
4104
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4105
|
-
return de_UpdateRouteResponseCommandError(output, context);
|
|
4106
|
-
}
|
|
4107
|
-
const contents = (0, smithy_client_1.map)({
|
|
4108
|
-
$metadata: deserializeMetadata(output),
|
|
4109
|
-
});
|
|
4110
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4111
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
4112
|
-
ModelSelectionExpression: [, smithy_client_1.expectString, `modelSelectionExpression`],
|
|
4113
|
-
ResponseModels: [, smithy_client_1._json, `responseModels`],
|
|
4114
|
-
ResponseParameters: [, (_) => de_RouteParameters(_, context), `responseParameters`],
|
|
4115
|
-
RouteResponseId: [, smithy_client_1.expectString, `routeResponseId`],
|
|
4116
|
-
RouteResponseKey: [, smithy_client_1.expectString, `routeResponseKey`],
|
|
4117
|
-
});
|
|
4118
|
-
Object.assign(contents, doc);
|
|
4119
|
-
return contents;
|
|
4120
|
-
};
|
|
4121
|
-
exports.de_UpdateRouteResponseCommand = de_UpdateRouteResponseCommand;
|
|
4122
|
-
const de_UpdateRouteResponseCommandError = async (output, context) => {
|
|
4123
|
-
const parsedOutput = {
|
|
4124
|
-
...output,
|
|
4125
|
-
body: await parseErrorBody(output.body, context),
|
|
4126
|
-
};
|
|
4127
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4128
|
-
switch (errorCode) {
|
|
4129
|
-
case "BadRequestException":
|
|
4130
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
4131
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
4132
|
-
case "ConflictException":
|
|
4133
|
-
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
4134
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
4135
|
-
case "NotFoundException":
|
|
4136
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
4137
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
4138
|
-
case "TooManyRequestsException":
|
|
4139
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
4140
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
4141
|
-
default:
|
|
4142
|
-
const parsedBody = parsedOutput.body;
|
|
4143
|
-
return throwDefaultError({
|
|
4144
|
-
output,
|
|
4145
|
-
parsedBody,
|
|
4146
|
-
errorCode,
|
|
4147
|
-
});
|
|
4148
|
-
}
|
|
4149
|
-
};
|
|
4150
|
-
const de_UpdateStageCommand = async (output, context) => {
|
|
4151
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4152
|
-
return de_UpdateStageCommandError(output, context);
|
|
4153
|
-
}
|
|
4154
|
-
const contents = (0, smithy_client_1.map)({
|
|
4155
|
-
$metadata: deserializeMetadata(output),
|
|
4156
|
-
});
|
|
4157
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4158
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
4159
|
-
AccessLogSettings: [, (_) => de_AccessLogSettings(_, context), `accessLogSettings`],
|
|
4160
|
-
ApiGatewayManaged: [, smithy_client_1.expectBoolean, `apiGatewayManaged`],
|
|
4161
|
-
AutoDeploy: [, smithy_client_1.expectBoolean, `autoDeploy`],
|
|
4162
|
-
ClientCertificateId: [, smithy_client_1.expectString, `clientCertificateId`],
|
|
4163
|
-
CreatedDate: [, (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)), `createdDate`],
|
|
4164
|
-
DefaultRouteSettings: [, (_) => de_RouteSettings(_, context), `defaultRouteSettings`],
|
|
4165
|
-
DeploymentId: [, smithy_client_1.expectString, `deploymentId`],
|
|
4166
|
-
Description: [, smithy_client_1.expectString, `description`],
|
|
4167
|
-
LastDeploymentStatusMessage: [, smithy_client_1.expectString, `lastDeploymentStatusMessage`],
|
|
4168
|
-
LastUpdatedDate: [, (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)), `lastUpdatedDate`],
|
|
4169
|
-
RouteSettings: [, (_) => de_RouteSettingsMap(_, context), `routeSettings`],
|
|
4170
|
-
StageName: [, smithy_client_1.expectString, `stageName`],
|
|
4171
|
-
StageVariables: [, smithy_client_1._json, `stageVariables`],
|
|
4172
|
-
Tags: [, smithy_client_1._json, `tags`],
|
|
4173
|
-
});
|
|
4174
|
-
Object.assign(contents, doc);
|
|
4175
|
-
return contents;
|
|
4176
|
-
};
|
|
4177
|
-
exports.de_UpdateStageCommand = de_UpdateStageCommand;
|
|
4178
|
-
const de_UpdateStageCommandError = async (output, context) => {
|
|
4179
|
-
const parsedOutput = {
|
|
4180
|
-
...output,
|
|
4181
|
-
body: await parseErrorBody(output.body, context),
|
|
4182
|
-
};
|
|
4183
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4184
|
-
switch (errorCode) {
|
|
4185
|
-
case "BadRequestException":
|
|
4186
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
4187
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
4188
|
-
case "ConflictException":
|
|
4189
|
-
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
4190
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
4191
|
-
case "NotFoundException":
|
|
4192
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
4193
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
4194
|
-
case "TooManyRequestsException":
|
|
4195
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
4196
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
4197
|
-
default:
|
|
4198
|
-
const parsedBody = parsedOutput.body;
|
|
4199
|
-
return throwDefaultError({
|
|
4200
|
-
output,
|
|
4201
|
-
parsedBody,
|
|
4202
|
-
errorCode,
|
|
4203
|
-
});
|
|
4204
|
-
}
|
|
4205
|
-
};
|
|
4206
|
-
const de_UpdateVpcLinkCommand = async (output, context) => {
|
|
4207
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4208
|
-
return de_UpdateVpcLinkCommandError(output, context);
|
|
4209
|
-
}
|
|
4210
|
-
const contents = (0, smithy_client_1.map)({
|
|
4211
|
-
$metadata: deserializeMetadata(output),
|
|
4212
|
-
});
|
|
4213
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4214
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
4215
|
-
CreatedDate: [, (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)), `createdDate`],
|
|
4216
|
-
Name: [, smithy_client_1.expectString, `name`],
|
|
4217
|
-
SecurityGroupIds: [, smithy_client_1._json, `securityGroupIds`],
|
|
4218
|
-
SubnetIds: [, smithy_client_1._json, `subnetIds`],
|
|
4219
|
-
Tags: [, smithy_client_1._json, `tags`],
|
|
4220
|
-
VpcLinkId: [, smithy_client_1.expectString, `vpcLinkId`],
|
|
4221
|
-
VpcLinkStatus: [, smithy_client_1.expectString, `vpcLinkStatus`],
|
|
4222
|
-
VpcLinkStatusMessage: [, smithy_client_1.expectString, `vpcLinkStatusMessage`],
|
|
4223
|
-
VpcLinkVersion: [, smithy_client_1.expectString, `vpcLinkVersion`],
|
|
4224
|
-
});
|
|
4225
|
-
Object.assign(contents, doc);
|
|
4226
|
-
return contents;
|
|
4227
|
-
};
|
|
4228
|
-
exports.de_UpdateVpcLinkCommand = de_UpdateVpcLinkCommand;
|
|
4229
|
-
const de_UpdateVpcLinkCommandError = async (output, context) => {
|
|
4230
|
-
const parsedOutput = {
|
|
4231
|
-
...output,
|
|
4232
|
-
body: await parseErrorBody(output.body, context),
|
|
4233
|
-
};
|
|
4234
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4235
|
-
switch (errorCode) {
|
|
4236
|
-
case "BadRequestException":
|
|
4237
|
-
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
4238
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
4239
|
-
case "NotFoundException":
|
|
4240
|
-
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
4241
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
4242
|
-
case "TooManyRequestsException":
|
|
4243
|
-
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
4244
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
4245
|
-
default:
|
|
4246
|
-
const parsedBody = parsedOutput.body;
|
|
4247
|
-
return throwDefaultError({
|
|
4248
|
-
output,
|
|
4249
|
-
parsedBody,
|
|
4250
|
-
errorCode,
|
|
4251
|
-
});
|
|
4252
|
-
}
|
|
4253
|
-
};
|
|
4254
|
-
const throwDefaultError = (0, smithy_client_1.withBaseException)(ApiGatewayV2ServiceException_1.ApiGatewayV2ServiceException);
|
|
4255
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
4256
|
-
const contents = (0, smithy_client_1.map)({});
|
|
4257
|
-
const data = parsedOutput.body;
|
|
4258
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
4259
|
-
Message: [, smithy_client_1.expectString, `message`],
|
|
4260
|
-
});
|
|
4261
|
-
Object.assign(contents, doc);
|
|
4262
|
-
const exception = new models_0_1.AccessDeniedException({
|
|
4263
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
4264
|
-
...contents,
|
|
4265
|
-
});
|
|
4266
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
4267
|
-
};
|
|
4268
|
-
const de_BadRequestExceptionRes = async (parsedOutput, context) => {
|
|
4269
|
-
const contents = (0, smithy_client_1.map)({});
|
|
4270
|
-
const data = parsedOutput.body;
|
|
4271
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
4272
|
-
Message: [, smithy_client_1.expectString, `message`],
|
|
4273
|
-
});
|
|
4274
|
-
Object.assign(contents, doc);
|
|
4275
|
-
const exception = new models_0_1.BadRequestException({
|
|
4276
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
4277
|
-
...contents,
|
|
4278
|
-
});
|
|
4279
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
4280
|
-
};
|
|
4281
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
4282
|
-
const contents = (0, smithy_client_1.map)({});
|
|
4283
|
-
const data = parsedOutput.body;
|
|
4284
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
4285
|
-
Message: [, smithy_client_1.expectString, `message`],
|
|
4286
|
-
});
|
|
4287
|
-
Object.assign(contents, doc);
|
|
4288
|
-
const exception = new models_0_1.ConflictException({
|
|
4289
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
4290
|
-
...contents,
|
|
4291
|
-
});
|
|
4292
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
4293
|
-
};
|
|
4294
|
-
const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
4295
|
-
const contents = (0, smithy_client_1.map)({});
|
|
4296
|
-
const data = parsedOutput.body;
|
|
4297
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
4298
|
-
Message: [, smithy_client_1.expectString, `message`],
|
|
4299
|
-
ResourceType: [, smithy_client_1.expectString, `resourceType`],
|
|
4300
|
-
});
|
|
4301
|
-
Object.assign(contents, doc);
|
|
4302
|
-
const exception = new models_0_1.NotFoundException({
|
|
4303
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
4304
|
-
...contents,
|
|
4305
|
-
});
|
|
4306
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
4307
|
-
};
|
|
4308
|
-
const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
|
|
4309
|
-
const contents = (0, smithy_client_1.map)({});
|
|
4310
|
-
const data = parsedOutput.body;
|
|
4311
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
4312
|
-
LimitType: [, smithy_client_1.expectString, `limitType`],
|
|
4313
|
-
Message: [, smithy_client_1.expectString, `message`],
|
|
4314
|
-
});
|
|
4315
|
-
Object.assign(contents, doc);
|
|
4316
|
-
const exception = new models_0_1.TooManyRequestsException({
|
|
4317
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
4318
|
-
...contents,
|
|
4319
|
-
});
|
|
4320
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
4321
|
-
};
|
|
4322
|
-
const se_AccessLogSettings = (input, context) => {
|
|
4323
|
-
return (0, smithy_client_1.take)(input, {
|
|
4324
|
-
destinationArn: [, , `DestinationArn`],
|
|
4325
|
-
format: [, , `Format`],
|
|
4326
|
-
});
|
|
4327
|
-
};
|
|
4328
|
-
const se_Cors = (input, context) => {
|
|
4329
|
-
return (0, smithy_client_1.take)(input, {
|
|
4330
|
-
allowCredentials: [, , `AllowCredentials`],
|
|
4331
|
-
allowHeaders: [, smithy_client_1._json, `AllowHeaders`],
|
|
4332
|
-
allowMethods: [, smithy_client_1._json, `AllowMethods`],
|
|
4333
|
-
allowOrigins: [, smithy_client_1._json, `AllowOrigins`],
|
|
4334
|
-
exposeHeaders: [, smithy_client_1._json, `ExposeHeaders`],
|
|
4335
|
-
maxAge: [, , `MaxAge`],
|
|
4336
|
-
});
|
|
4337
|
-
};
|
|
4338
|
-
const se_DomainNameConfiguration = (input, context) => {
|
|
4339
|
-
return (0, smithy_client_1.take)(input, {
|
|
4340
|
-
apiGatewayDomainName: [, , `ApiGatewayDomainName`],
|
|
4341
|
-
certificateArn: [, , `CertificateArn`],
|
|
4342
|
-
certificateName: [, , `CertificateName`],
|
|
4343
|
-
certificateUploadDate: [, (_) => _.toISOString().split(".")[0] + "Z", `CertificateUploadDate`],
|
|
4344
|
-
domainNameStatus: [, , `DomainNameStatus`],
|
|
4345
|
-
domainNameStatusMessage: [, , `DomainNameStatusMessage`],
|
|
4346
|
-
endpointType: [, , `EndpointType`],
|
|
4347
|
-
hostedZoneId: [, , `HostedZoneId`],
|
|
4348
|
-
ownershipVerificationCertificateArn: [, , `OwnershipVerificationCertificateArn`],
|
|
4349
|
-
securityPolicy: [, , `SecurityPolicy`],
|
|
4350
|
-
});
|
|
4351
|
-
};
|
|
4352
|
-
const se_DomainNameConfigurations = (input, context) => {
|
|
4353
|
-
return input
|
|
4354
|
-
.filter((e) => e != null)
|
|
4355
|
-
.map((entry) => {
|
|
4356
|
-
return se_DomainNameConfiguration(entry, context);
|
|
4357
|
-
});
|
|
4358
|
-
};
|
|
4359
|
-
const se_JWTConfiguration = (input, context) => {
|
|
4360
|
-
return (0, smithy_client_1.take)(input, {
|
|
4361
|
-
audience: [, smithy_client_1._json, `Audience`],
|
|
4362
|
-
issuer: [, , `Issuer`],
|
|
4363
|
-
});
|
|
4364
|
-
};
|
|
4365
|
-
const se_MutualTlsAuthenticationInput = (input, context) => {
|
|
4366
|
-
return (0, smithy_client_1.take)(input, {
|
|
4367
|
-
truststoreUri: [, , `TruststoreUri`],
|
|
4368
|
-
truststoreVersion: [, , `TruststoreVersion`],
|
|
4369
|
-
});
|
|
4370
|
-
};
|
|
4371
|
-
const se_ParameterConstraints = (input, context) => {
|
|
4372
|
-
return (0, smithy_client_1.take)(input, {
|
|
4373
|
-
required: [, , `Required`],
|
|
4374
|
-
});
|
|
4375
|
-
};
|
|
4376
|
-
const se_RouteParameters = (input, context) => {
|
|
4377
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
4378
|
-
if (value === null) {
|
|
4379
|
-
return acc;
|
|
4380
|
-
}
|
|
4381
|
-
acc[key] = se_ParameterConstraints(value, context);
|
|
4382
|
-
return acc;
|
|
4383
|
-
}, {});
|
|
4384
|
-
};
|
|
4385
|
-
const se_RouteSettings = (input, context) => {
|
|
4386
|
-
return (0, smithy_client_1.take)(input, {
|
|
4387
|
-
dataTraceEnabled: [, , `DataTraceEnabled`],
|
|
4388
|
-
detailedMetricsEnabled: [, , `DetailedMetricsEnabled`],
|
|
4389
|
-
loggingLevel: [, , `LoggingLevel`],
|
|
4390
|
-
throttlingBurstLimit: [, , `ThrottlingBurstLimit`],
|
|
4391
|
-
throttlingRateLimit: [, smithy_client_1.serializeFloat, `ThrottlingRateLimit`],
|
|
4392
|
-
});
|
|
4393
|
-
};
|
|
4394
|
-
const se_RouteSettingsMap = (input, context) => {
|
|
4395
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
4396
|
-
if (value === null) {
|
|
4397
|
-
return acc;
|
|
4398
|
-
}
|
|
4399
|
-
acc[key] = se_RouteSettings(value, context);
|
|
4400
|
-
return acc;
|
|
4401
|
-
}, {});
|
|
4402
|
-
};
|
|
4403
|
-
const se_TlsConfigInput = (input, context) => {
|
|
4404
|
-
return (0, smithy_client_1.take)(input, {
|
|
4405
|
-
serverNameToVerify: [, , `ServerNameToVerify`],
|
|
4406
|
-
});
|
|
4407
|
-
};
|
|
4408
|
-
const de___listOfApi = (output, context) => {
|
|
4409
|
-
const retVal = (output || [])
|
|
4410
|
-
.filter((e) => e != null)
|
|
4411
|
-
.map((entry) => {
|
|
4412
|
-
return de_Api(entry, context);
|
|
4413
|
-
});
|
|
4414
|
-
return retVal;
|
|
4415
|
-
};
|
|
4416
|
-
const de___listOfApiMapping = (output, context) => {
|
|
4417
|
-
const retVal = (output || [])
|
|
4418
|
-
.filter((e) => e != null)
|
|
4419
|
-
.map((entry) => {
|
|
4420
|
-
return de_ApiMapping(entry, context);
|
|
4421
|
-
});
|
|
4422
|
-
return retVal;
|
|
4423
|
-
};
|
|
4424
|
-
const de___listOfAuthorizer = (output, context) => {
|
|
4425
|
-
const retVal = (output || [])
|
|
4426
|
-
.filter((e) => e != null)
|
|
4427
|
-
.map((entry) => {
|
|
4428
|
-
return de_Authorizer(entry, context);
|
|
4429
|
-
});
|
|
4430
|
-
return retVal;
|
|
4431
|
-
};
|
|
4432
|
-
const de___listOfDeployment = (output, context) => {
|
|
4433
|
-
const retVal = (output || [])
|
|
4434
|
-
.filter((e) => e != null)
|
|
4435
|
-
.map((entry) => {
|
|
4436
|
-
return de_Deployment(entry, context);
|
|
4437
|
-
});
|
|
4438
|
-
return retVal;
|
|
4439
|
-
};
|
|
4440
|
-
const de___listOfDomainName = (output, context) => {
|
|
4441
|
-
const retVal = (output || [])
|
|
4442
|
-
.filter((e) => e != null)
|
|
4443
|
-
.map((entry) => {
|
|
4444
|
-
return de_DomainName(entry, context);
|
|
4445
|
-
});
|
|
4446
|
-
return retVal;
|
|
4447
|
-
};
|
|
4448
|
-
const de___listOfIntegration = (output, context) => {
|
|
4449
|
-
const retVal = (output || [])
|
|
4450
|
-
.filter((e) => e != null)
|
|
4451
|
-
.map((entry) => {
|
|
4452
|
-
return de_Integration(entry, context);
|
|
4453
|
-
});
|
|
4454
|
-
return retVal;
|
|
4455
|
-
};
|
|
4456
|
-
const de___listOfIntegrationResponse = (output, context) => {
|
|
4457
|
-
const retVal = (output || [])
|
|
4458
|
-
.filter((e) => e != null)
|
|
4459
|
-
.map((entry) => {
|
|
4460
|
-
return de_IntegrationResponse(entry, context);
|
|
4461
|
-
});
|
|
4462
|
-
return retVal;
|
|
4463
|
-
};
|
|
4464
|
-
const de___listOfModel = (output, context) => {
|
|
4465
|
-
const retVal = (output || [])
|
|
4466
|
-
.filter((e) => e != null)
|
|
4467
|
-
.map((entry) => {
|
|
4468
|
-
return de_Model(entry, context);
|
|
4469
|
-
});
|
|
4470
|
-
return retVal;
|
|
4471
|
-
};
|
|
4472
|
-
const de___listOfRoute = (output, context) => {
|
|
4473
|
-
const retVal = (output || [])
|
|
4474
|
-
.filter((e) => e != null)
|
|
4475
|
-
.map((entry) => {
|
|
4476
|
-
return de_Route(entry, context);
|
|
4477
|
-
});
|
|
4478
|
-
return retVal;
|
|
4479
|
-
};
|
|
4480
|
-
const de___listOfRouteResponse = (output, context) => {
|
|
4481
|
-
const retVal = (output || [])
|
|
4482
|
-
.filter((e) => e != null)
|
|
4483
|
-
.map((entry) => {
|
|
4484
|
-
return de_RouteResponse(entry, context);
|
|
4485
|
-
});
|
|
4486
|
-
return retVal;
|
|
4487
|
-
};
|
|
4488
|
-
const de___listOfStage = (output, context) => {
|
|
4489
|
-
const retVal = (output || [])
|
|
4490
|
-
.filter((e) => e != null)
|
|
4491
|
-
.map((entry) => {
|
|
4492
|
-
return de_Stage(entry, context);
|
|
4493
|
-
});
|
|
4494
|
-
return retVal;
|
|
4495
|
-
};
|
|
4496
|
-
const de___listOfVpcLink = (output, context) => {
|
|
4497
|
-
const retVal = (output || [])
|
|
4498
|
-
.filter((e) => e != null)
|
|
4499
|
-
.map((entry) => {
|
|
4500
|
-
return de_VpcLink(entry, context);
|
|
4501
|
-
});
|
|
4502
|
-
return retVal;
|
|
4503
|
-
};
|
|
4504
|
-
const de_AccessLogSettings = (output, context) => {
|
|
4505
|
-
return (0, smithy_client_1.take)(output, {
|
|
4506
|
-
DestinationArn: [, smithy_client_1.expectString, `destinationArn`],
|
|
4507
|
-
Format: [, smithy_client_1.expectString, `format`],
|
|
4508
|
-
});
|
|
4509
|
-
};
|
|
4510
|
-
const de_Api = (output, context) => {
|
|
4511
|
-
return (0, smithy_client_1.take)(output, {
|
|
4512
|
-
ApiEndpoint: [, smithy_client_1.expectString, `apiEndpoint`],
|
|
4513
|
-
ApiGatewayManaged: [, smithy_client_1.expectBoolean, `apiGatewayManaged`],
|
|
4514
|
-
ApiId: [, smithy_client_1.expectString, `apiId`],
|
|
4515
|
-
ApiKeySelectionExpression: [, smithy_client_1.expectString, `apiKeySelectionExpression`],
|
|
4516
|
-
CorsConfiguration: [, (_) => de_Cors(_, context), `corsConfiguration`],
|
|
4517
|
-
CreatedDate: [, (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)), `createdDate`],
|
|
4518
|
-
Description: [, smithy_client_1.expectString, `description`],
|
|
4519
|
-
DisableExecuteApiEndpoint: [, smithy_client_1.expectBoolean, `disableExecuteApiEndpoint`],
|
|
4520
|
-
DisableSchemaValidation: [, smithy_client_1.expectBoolean, `disableSchemaValidation`],
|
|
4521
|
-
ImportInfo: [, smithy_client_1._json, `importInfo`],
|
|
4522
|
-
Name: [, smithy_client_1.expectString, `name`],
|
|
4523
|
-
ProtocolType: [, smithy_client_1.expectString, `protocolType`],
|
|
4524
|
-
RouteSelectionExpression: [, smithy_client_1.expectString, `routeSelectionExpression`],
|
|
4525
|
-
Tags: [, smithy_client_1._json, `tags`],
|
|
4526
|
-
Version: [, smithy_client_1.expectString, `version`],
|
|
4527
|
-
Warnings: [, smithy_client_1._json, `warnings`],
|
|
4528
|
-
});
|
|
4529
|
-
};
|
|
4530
|
-
const de_ApiMapping = (output, context) => {
|
|
4531
|
-
return (0, smithy_client_1.take)(output, {
|
|
4532
|
-
ApiId: [, smithy_client_1.expectString, `apiId`],
|
|
4533
|
-
ApiMappingId: [, smithy_client_1.expectString, `apiMappingId`],
|
|
4534
|
-
ApiMappingKey: [, smithy_client_1.expectString, `apiMappingKey`],
|
|
4535
|
-
Stage: [, smithy_client_1.expectString, `stage`],
|
|
4536
|
-
});
|
|
4537
|
-
};
|
|
4538
|
-
const de_Authorizer = (output, context) => {
|
|
4539
|
-
return (0, smithy_client_1.take)(output, {
|
|
4540
|
-
AuthorizerCredentialsArn: [, smithy_client_1.expectString, `authorizerCredentialsArn`],
|
|
4541
|
-
AuthorizerId: [, smithy_client_1.expectString, `authorizerId`],
|
|
4542
|
-
AuthorizerPayloadFormatVersion: [, smithy_client_1.expectString, `authorizerPayloadFormatVersion`],
|
|
4543
|
-
AuthorizerResultTtlInSeconds: [, smithy_client_1.expectInt32, `authorizerResultTtlInSeconds`],
|
|
4544
|
-
AuthorizerType: [, smithy_client_1.expectString, `authorizerType`],
|
|
4545
|
-
AuthorizerUri: [, smithy_client_1.expectString, `authorizerUri`],
|
|
4546
|
-
EnableSimpleResponses: [, smithy_client_1.expectBoolean, `enableSimpleResponses`],
|
|
4547
|
-
IdentitySource: [, smithy_client_1._json, `identitySource`],
|
|
4548
|
-
IdentityValidationExpression: [, smithy_client_1.expectString, `identityValidationExpression`],
|
|
4549
|
-
JwtConfiguration: [, (_) => de_JWTConfiguration(_, context), `jwtConfiguration`],
|
|
4550
|
-
Name: [, smithy_client_1.expectString, `name`],
|
|
4551
|
-
});
|
|
4552
|
-
};
|
|
4553
|
-
const de_Cors = (output, context) => {
|
|
4554
|
-
return (0, smithy_client_1.take)(output, {
|
|
4555
|
-
AllowCredentials: [, smithy_client_1.expectBoolean, `allowCredentials`],
|
|
4556
|
-
AllowHeaders: [, smithy_client_1._json, `allowHeaders`],
|
|
4557
|
-
AllowMethods: [, smithy_client_1._json, `allowMethods`],
|
|
4558
|
-
AllowOrigins: [, smithy_client_1._json, `allowOrigins`],
|
|
4559
|
-
ExposeHeaders: [, smithy_client_1._json, `exposeHeaders`],
|
|
4560
|
-
MaxAge: [, smithy_client_1.expectInt32, `maxAge`],
|
|
4561
|
-
});
|
|
4562
|
-
};
|
|
4563
|
-
const de_Deployment = (output, context) => {
|
|
4564
|
-
return (0, smithy_client_1.take)(output, {
|
|
4565
|
-
AutoDeployed: [, smithy_client_1.expectBoolean, `autoDeployed`],
|
|
4566
|
-
CreatedDate: [, (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)), `createdDate`],
|
|
4567
|
-
DeploymentId: [, smithy_client_1.expectString, `deploymentId`],
|
|
4568
|
-
DeploymentStatus: [, smithy_client_1.expectString, `deploymentStatus`],
|
|
4569
|
-
DeploymentStatusMessage: [, smithy_client_1.expectString, `deploymentStatusMessage`],
|
|
4570
|
-
Description: [, smithy_client_1.expectString, `description`],
|
|
4571
|
-
});
|
|
4572
|
-
};
|
|
4573
|
-
const de_DomainName = (output, context) => {
|
|
4574
|
-
return (0, smithy_client_1.take)(output, {
|
|
4575
|
-
ApiMappingSelectionExpression: [, smithy_client_1.expectString, `apiMappingSelectionExpression`],
|
|
4576
|
-
DomainName: [, smithy_client_1.expectString, `domainName`],
|
|
4577
|
-
DomainNameConfigurations: [, (_) => de_DomainNameConfigurations(_, context), `domainNameConfigurations`],
|
|
4578
|
-
MutualTlsAuthentication: [, (_) => de_MutualTlsAuthentication(_, context), `mutualTlsAuthentication`],
|
|
4579
|
-
Tags: [, smithy_client_1._json, `tags`],
|
|
4580
|
-
});
|
|
4581
|
-
};
|
|
4582
|
-
const de_DomainNameConfiguration = (output, context) => {
|
|
4583
|
-
return (0, smithy_client_1.take)(output, {
|
|
4584
|
-
ApiGatewayDomainName: [, smithy_client_1.expectString, `apiGatewayDomainName`],
|
|
4585
|
-
CertificateArn: [, smithy_client_1.expectString, `certificateArn`],
|
|
4586
|
-
CertificateName: [, smithy_client_1.expectString, `certificateName`],
|
|
4587
|
-
CertificateUploadDate: [
|
|
4588
|
-
,
|
|
4589
|
-
(_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
4590
|
-
`certificateUploadDate`,
|
|
4591
|
-
],
|
|
4592
|
-
DomainNameStatus: [, smithy_client_1.expectString, `domainNameStatus`],
|
|
4593
|
-
DomainNameStatusMessage: [, smithy_client_1.expectString, `domainNameStatusMessage`],
|
|
4594
|
-
EndpointType: [, smithy_client_1.expectString, `endpointType`],
|
|
4595
|
-
HostedZoneId: [, smithy_client_1.expectString, `hostedZoneId`],
|
|
4596
|
-
OwnershipVerificationCertificateArn: [, smithy_client_1.expectString, `ownershipVerificationCertificateArn`],
|
|
4597
|
-
SecurityPolicy: [, smithy_client_1.expectString, `securityPolicy`],
|
|
4598
|
-
});
|
|
4599
|
-
};
|
|
4600
|
-
const de_DomainNameConfigurations = (output, context) => {
|
|
4601
|
-
const retVal = (output || [])
|
|
4602
|
-
.filter((e) => e != null)
|
|
4603
|
-
.map((entry) => {
|
|
4604
|
-
return de_DomainNameConfiguration(entry, context);
|
|
4605
|
-
});
|
|
4606
|
-
return retVal;
|
|
4607
|
-
};
|
|
4608
|
-
const de_Integration = (output, context) => {
|
|
4609
|
-
return (0, smithy_client_1.take)(output, {
|
|
4610
|
-
ApiGatewayManaged: [, smithy_client_1.expectBoolean, `apiGatewayManaged`],
|
|
4611
|
-
ConnectionId: [, smithy_client_1.expectString, `connectionId`],
|
|
4612
|
-
ConnectionType: [, smithy_client_1.expectString, `connectionType`],
|
|
4613
|
-
ContentHandlingStrategy: [, smithy_client_1.expectString, `contentHandlingStrategy`],
|
|
4614
|
-
CredentialsArn: [, smithy_client_1.expectString, `credentialsArn`],
|
|
4615
|
-
Description: [, smithy_client_1.expectString, `description`],
|
|
4616
|
-
IntegrationId: [, smithy_client_1.expectString, `integrationId`],
|
|
4617
|
-
IntegrationMethod: [, smithy_client_1.expectString, `integrationMethod`],
|
|
4618
|
-
IntegrationResponseSelectionExpression: [, smithy_client_1.expectString, `integrationResponseSelectionExpression`],
|
|
4619
|
-
IntegrationSubtype: [, smithy_client_1.expectString, `integrationSubtype`],
|
|
4620
|
-
IntegrationType: [, smithy_client_1.expectString, `integrationType`],
|
|
4621
|
-
IntegrationUri: [, smithy_client_1.expectString, `integrationUri`],
|
|
4622
|
-
PassthroughBehavior: [, smithy_client_1.expectString, `passthroughBehavior`],
|
|
4623
|
-
PayloadFormatVersion: [, smithy_client_1.expectString, `payloadFormatVersion`],
|
|
4624
|
-
RequestParameters: [, smithy_client_1._json, `requestParameters`],
|
|
4625
|
-
RequestTemplates: [, smithy_client_1._json, `requestTemplates`],
|
|
4626
|
-
ResponseParameters: [, smithy_client_1._json, `responseParameters`],
|
|
4627
|
-
TemplateSelectionExpression: [, smithy_client_1.expectString, `templateSelectionExpression`],
|
|
4628
|
-
TimeoutInMillis: [, smithy_client_1.expectInt32, `timeoutInMillis`],
|
|
4629
|
-
TlsConfig: [, (_) => de_TlsConfig(_, context), `tlsConfig`],
|
|
4630
|
-
});
|
|
4631
|
-
};
|
|
4632
|
-
const de_IntegrationResponse = (output, context) => {
|
|
4633
|
-
return (0, smithy_client_1.take)(output, {
|
|
4634
|
-
ContentHandlingStrategy: [, smithy_client_1.expectString, `contentHandlingStrategy`],
|
|
4635
|
-
IntegrationResponseId: [, smithy_client_1.expectString, `integrationResponseId`],
|
|
4636
|
-
IntegrationResponseKey: [, smithy_client_1.expectString, `integrationResponseKey`],
|
|
4637
|
-
ResponseParameters: [, smithy_client_1._json, `responseParameters`],
|
|
4638
|
-
ResponseTemplates: [, smithy_client_1._json, `responseTemplates`],
|
|
4639
|
-
TemplateSelectionExpression: [, smithy_client_1.expectString, `templateSelectionExpression`],
|
|
4640
|
-
});
|
|
4641
|
-
};
|
|
4642
|
-
const de_JWTConfiguration = (output, context) => {
|
|
4643
|
-
return (0, smithy_client_1.take)(output, {
|
|
4644
|
-
Audience: [, smithy_client_1._json, `audience`],
|
|
4645
|
-
Issuer: [, smithy_client_1.expectString, `issuer`],
|
|
4646
|
-
});
|
|
4647
|
-
};
|
|
4648
|
-
const de_Model = (output, context) => {
|
|
4649
|
-
return (0, smithy_client_1.take)(output, {
|
|
4650
|
-
ContentType: [, smithy_client_1.expectString, `contentType`],
|
|
4651
|
-
Description: [, smithy_client_1.expectString, `description`],
|
|
4652
|
-
ModelId: [, smithy_client_1.expectString, `modelId`],
|
|
4653
|
-
Name: [, smithy_client_1.expectString, `name`],
|
|
4654
|
-
Schema: [, smithy_client_1.expectString, `schema`],
|
|
4655
|
-
});
|
|
4656
|
-
};
|
|
4657
|
-
const de_MutualTlsAuthentication = (output, context) => {
|
|
4658
|
-
return (0, smithy_client_1.take)(output, {
|
|
4659
|
-
TruststoreUri: [, smithy_client_1.expectString, `truststoreUri`],
|
|
4660
|
-
TruststoreVersion: [, smithy_client_1.expectString, `truststoreVersion`],
|
|
4661
|
-
TruststoreWarnings: [, smithy_client_1._json, `truststoreWarnings`],
|
|
4662
|
-
});
|
|
4663
|
-
};
|
|
4664
|
-
const de_ParameterConstraints = (output, context) => {
|
|
4665
|
-
return (0, smithy_client_1.take)(output, {
|
|
4666
|
-
Required: [, smithy_client_1.expectBoolean, `required`],
|
|
4667
|
-
});
|
|
4668
|
-
};
|
|
4669
|
-
const de_Route = (output, context) => {
|
|
4670
|
-
return (0, smithy_client_1.take)(output, {
|
|
4671
|
-
ApiGatewayManaged: [, smithy_client_1.expectBoolean, `apiGatewayManaged`],
|
|
4672
|
-
ApiKeyRequired: [, smithy_client_1.expectBoolean, `apiKeyRequired`],
|
|
4673
|
-
AuthorizationScopes: [, smithy_client_1._json, `authorizationScopes`],
|
|
4674
|
-
AuthorizationType: [, smithy_client_1.expectString, `authorizationType`],
|
|
4675
|
-
AuthorizerId: [, smithy_client_1.expectString, `authorizerId`],
|
|
4676
|
-
ModelSelectionExpression: [, smithy_client_1.expectString, `modelSelectionExpression`],
|
|
4677
|
-
OperationName: [, smithy_client_1.expectString, `operationName`],
|
|
4678
|
-
RequestModels: [, smithy_client_1._json, `requestModels`],
|
|
4679
|
-
RequestParameters: [, (_) => de_RouteParameters(_, context), `requestParameters`],
|
|
4680
|
-
RouteId: [, smithy_client_1.expectString, `routeId`],
|
|
4681
|
-
RouteKey: [, smithy_client_1.expectString, `routeKey`],
|
|
4682
|
-
RouteResponseSelectionExpression: [, smithy_client_1.expectString, `routeResponseSelectionExpression`],
|
|
4683
|
-
Target: [, smithy_client_1.expectString, `target`],
|
|
4684
|
-
});
|
|
4685
|
-
};
|
|
4686
|
-
const de_RouteParameters = (output, context) => {
|
|
4687
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
4688
|
-
if (value === null) {
|
|
4689
|
-
return acc;
|
|
4690
|
-
}
|
|
4691
|
-
acc[key] = de_ParameterConstraints(value, context);
|
|
4692
|
-
return acc;
|
|
4693
|
-
}, {});
|
|
4694
|
-
};
|
|
4695
|
-
const de_RouteResponse = (output, context) => {
|
|
4696
|
-
return (0, smithy_client_1.take)(output, {
|
|
4697
|
-
ModelSelectionExpression: [, smithy_client_1.expectString, `modelSelectionExpression`],
|
|
4698
|
-
ResponseModels: [, smithy_client_1._json, `responseModels`],
|
|
4699
|
-
ResponseParameters: [, (_) => de_RouteParameters(_, context), `responseParameters`],
|
|
4700
|
-
RouteResponseId: [, smithy_client_1.expectString, `routeResponseId`],
|
|
4701
|
-
RouteResponseKey: [, smithy_client_1.expectString, `routeResponseKey`],
|
|
4702
|
-
});
|
|
4703
|
-
};
|
|
4704
|
-
const de_RouteSettings = (output, context) => {
|
|
4705
|
-
return (0, smithy_client_1.take)(output, {
|
|
4706
|
-
DataTraceEnabled: [, smithy_client_1.expectBoolean, `dataTraceEnabled`],
|
|
4707
|
-
DetailedMetricsEnabled: [, smithy_client_1.expectBoolean, `detailedMetricsEnabled`],
|
|
4708
|
-
LoggingLevel: [, smithy_client_1.expectString, `loggingLevel`],
|
|
4709
|
-
ThrottlingBurstLimit: [, smithy_client_1.expectInt32, `throttlingBurstLimit`],
|
|
4710
|
-
ThrottlingRateLimit: [, smithy_client_1.limitedParseDouble, `throttlingRateLimit`],
|
|
4711
|
-
});
|
|
4712
|
-
};
|
|
4713
|
-
const de_RouteSettingsMap = (output, context) => {
|
|
4714
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
4715
|
-
if (value === null) {
|
|
4716
|
-
return acc;
|
|
4717
|
-
}
|
|
4718
|
-
acc[key] = de_RouteSettings(value, context);
|
|
4719
|
-
return acc;
|
|
4720
|
-
}, {});
|
|
4721
|
-
};
|
|
4722
|
-
const de_Stage = (output, context) => {
|
|
4723
|
-
return (0, smithy_client_1.take)(output, {
|
|
4724
|
-
AccessLogSettings: [, (_) => de_AccessLogSettings(_, context), `accessLogSettings`],
|
|
4725
|
-
ApiGatewayManaged: [, smithy_client_1.expectBoolean, `apiGatewayManaged`],
|
|
4726
|
-
AutoDeploy: [, smithy_client_1.expectBoolean, `autoDeploy`],
|
|
4727
|
-
ClientCertificateId: [, smithy_client_1.expectString, `clientCertificateId`],
|
|
4728
|
-
CreatedDate: [, (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)), `createdDate`],
|
|
4729
|
-
DefaultRouteSettings: [, (_) => de_RouteSettings(_, context), `defaultRouteSettings`],
|
|
4730
|
-
DeploymentId: [, smithy_client_1.expectString, `deploymentId`],
|
|
4731
|
-
Description: [, smithy_client_1.expectString, `description`],
|
|
4732
|
-
LastDeploymentStatusMessage: [, smithy_client_1.expectString, `lastDeploymentStatusMessage`],
|
|
4733
|
-
LastUpdatedDate: [, (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)), `lastUpdatedDate`],
|
|
4734
|
-
RouteSettings: [, (_) => de_RouteSettingsMap(_, context), `routeSettings`],
|
|
4735
|
-
StageName: [, smithy_client_1.expectString, `stageName`],
|
|
4736
|
-
StageVariables: [, smithy_client_1._json, `stageVariables`],
|
|
4737
|
-
Tags: [, smithy_client_1._json, `tags`],
|
|
4738
|
-
});
|
|
4739
|
-
};
|
|
4740
|
-
const de_TlsConfig = (output, context) => {
|
|
4741
|
-
return (0, smithy_client_1.take)(output, {
|
|
4742
|
-
ServerNameToVerify: [, smithy_client_1.expectString, `serverNameToVerify`],
|
|
4743
|
-
});
|
|
4744
|
-
};
|
|
4745
|
-
const de_VpcLink = (output, context) => {
|
|
4746
|
-
return (0, smithy_client_1.take)(output, {
|
|
4747
|
-
CreatedDate: [, (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)), `createdDate`],
|
|
4748
|
-
Name: [, smithy_client_1.expectString, `name`],
|
|
4749
|
-
SecurityGroupIds: [, smithy_client_1._json, `securityGroupIds`],
|
|
4750
|
-
SubnetIds: [, smithy_client_1._json, `subnetIds`],
|
|
4751
|
-
Tags: [, smithy_client_1._json, `tags`],
|
|
4752
|
-
VpcLinkId: [, smithy_client_1.expectString, `vpcLinkId`],
|
|
4753
|
-
VpcLinkStatus: [, smithy_client_1.expectString, `vpcLinkStatus`],
|
|
4754
|
-
VpcLinkStatusMessage: [, smithy_client_1.expectString, `vpcLinkStatusMessage`],
|
|
4755
|
-
VpcLinkVersion: [, smithy_client_1.expectString, `vpcLinkVersion`],
|
|
4756
|
-
});
|
|
4757
|
-
};
|
|
4758
|
-
const deserializeMetadata = (output) => ({
|
|
4759
|
-
httpStatusCode: output.statusCode,
|
|
4760
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
4761
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
4762
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
4763
|
-
});
|
|
4764
|
-
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
4765
|
-
const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
4766
|
-
value !== null &&
|
|
4767
|
-
value !== "" &&
|
|
4768
|
-
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
4769
|
-
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
4770
|
-
const _B = "Basepath";
|
|
4771
|
-
const _EV = "ExportVersion";
|
|
4772
|
-
const _FOW = "FailOnWarnings";
|
|
4773
|
-
const _IE = "IncludeExtensions";
|
|
4774
|
-
const _MR = "MaxResults";
|
|
4775
|
-
const _NT = "NextToken";
|
|
4776
|
-
const _OT = "OutputType";
|
|
4777
|
-
const _SN = "StageName";
|
|
4778
|
-
const _TK = "TagKeys";
|
|
4779
|
-
const _b = "basepath";
|
|
4780
|
-
const _eV = "exportVersion";
|
|
4781
|
-
const _fOW = "failOnWarnings";
|
|
4782
|
-
const _iE = "includeExtensions";
|
|
4783
|
-
const _mR = "maxResults";
|
|
4784
|
-
const _nT = "nextToken";
|
|
4785
|
-
const _oT = "outputType";
|
|
4786
|
-
const _sN = "stageName";
|
|
4787
|
-
const _tK = "tagKeys";
|
|
4788
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
4789
|
-
if (encoded.length) {
|
|
4790
|
-
return JSON.parse(encoded);
|
|
4791
|
-
}
|
|
4792
|
-
return {};
|
|
4793
|
-
});
|
|
4794
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
4795
|
-
const value = await parseBody(errorBody, context);
|
|
4796
|
-
value.message = value.message ?? value.Message;
|
|
4797
|
-
return value;
|
|
4798
|
-
};
|
|
4799
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
4800
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
4801
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
4802
|
-
let cleanValue = rawValue;
|
|
4803
|
-
if (typeof cleanValue === "number") {
|
|
4804
|
-
cleanValue = cleanValue.toString();
|
|
4805
|
-
}
|
|
4806
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
4807
|
-
cleanValue = cleanValue.split(",")[0];
|
|
4808
|
-
}
|
|
4809
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
4810
|
-
cleanValue = cleanValue.split(":")[0];
|
|
4811
|
-
}
|
|
4812
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
4813
|
-
cleanValue = cleanValue.split("#")[1];
|
|
4814
|
-
}
|
|
4815
|
-
return cleanValue;
|
|
4816
|
-
};
|
|
4817
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
4818
|
-
if (headerKey !== undefined) {
|
|
4819
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
4820
|
-
}
|
|
4821
|
-
if (data.code !== undefined) {
|
|
4822
|
-
return sanitizeErrorCode(data.code);
|
|
4823
|
-
}
|
|
4824
|
-
if (data["__type"] !== undefined) {
|
|
4825
|
-
return sanitizeErrorCode(data["__type"]);
|
|
4826
|
-
}
|
|
4827
|
-
};
|
|
1
|
+
module.exports = require("../index.js");
|