@aws-sdk/client-apigatewayv2 3.927.0 → 3.929.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.
Files changed (98) hide show
  1. package/dist-cjs/index.js +8007 -3712
  2. package/dist-cjs/runtimeConfig.shared.js +2 -0
  3. package/dist-es/ApiGatewayV2Client.js +2 -0
  4. package/dist-es/commands/CreateApiCommand.js +3 -9
  5. package/dist-es/commands/CreateApiMappingCommand.js +3 -9
  6. package/dist-es/commands/CreateAuthorizerCommand.js +3 -9
  7. package/dist-es/commands/CreateDeploymentCommand.js +3 -9
  8. package/dist-es/commands/CreateDomainNameCommand.js +3 -9
  9. package/dist-es/commands/CreateIntegrationCommand.js +3 -9
  10. package/dist-es/commands/CreateIntegrationResponseCommand.js +3 -9
  11. package/dist-es/commands/CreateModelCommand.js +3 -9
  12. package/dist-es/commands/CreateRouteCommand.js +3 -9
  13. package/dist-es/commands/CreateRouteResponseCommand.js +3 -9
  14. package/dist-es/commands/CreateRoutingRuleCommand.js +3 -9
  15. package/dist-es/commands/CreateStageCommand.js +3 -9
  16. package/dist-es/commands/CreateVpcLinkCommand.js +3 -9
  17. package/dist-es/commands/DeleteAccessLogSettingsCommand.js +3 -9
  18. package/dist-es/commands/DeleteApiCommand.js +3 -9
  19. package/dist-es/commands/DeleteApiMappingCommand.js +3 -9
  20. package/dist-es/commands/DeleteAuthorizerCommand.js +3 -9
  21. package/dist-es/commands/DeleteCorsConfigurationCommand.js +3 -9
  22. package/dist-es/commands/DeleteDeploymentCommand.js +3 -9
  23. package/dist-es/commands/DeleteDomainNameCommand.js +3 -9
  24. package/dist-es/commands/DeleteIntegrationCommand.js +3 -9
  25. package/dist-es/commands/DeleteIntegrationResponseCommand.js +3 -9
  26. package/dist-es/commands/DeleteModelCommand.js +3 -9
  27. package/dist-es/commands/DeleteRouteCommand.js +3 -9
  28. package/dist-es/commands/DeleteRouteRequestParameterCommand.js +3 -9
  29. package/dist-es/commands/DeleteRouteResponseCommand.js +3 -9
  30. package/dist-es/commands/DeleteRouteSettingsCommand.js +3 -9
  31. package/dist-es/commands/DeleteRoutingRuleCommand.js +3 -9
  32. package/dist-es/commands/DeleteStageCommand.js +3 -9
  33. package/dist-es/commands/DeleteVpcLinkCommand.js +3 -9
  34. package/dist-es/commands/ExportApiCommand.js +3 -9
  35. package/dist-es/commands/GetApiCommand.js +3 -9
  36. package/dist-es/commands/GetApiMappingCommand.js +3 -9
  37. package/dist-es/commands/GetApiMappingsCommand.js +3 -9
  38. package/dist-es/commands/GetApisCommand.js +3 -9
  39. package/dist-es/commands/GetAuthorizerCommand.js +3 -9
  40. package/dist-es/commands/GetAuthorizersCommand.js +3 -9
  41. package/dist-es/commands/GetDeploymentCommand.js +3 -9
  42. package/dist-es/commands/GetDeploymentsCommand.js +3 -9
  43. package/dist-es/commands/GetDomainNameCommand.js +3 -9
  44. package/dist-es/commands/GetDomainNamesCommand.js +3 -9
  45. package/dist-es/commands/GetIntegrationCommand.js +3 -9
  46. package/dist-es/commands/GetIntegrationResponseCommand.js +3 -9
  47. package/dist-es/commands/GetIntegrationResponsesCommand.js +3 -9
  48. package/dist-es/commands/GetIntegrationsCommand.js +3 -9
  49. package/dist-es/commands/GetModelCommand.js +3 -9
  50. package/dist-es/commands/GetModelTemplateCommand.js +3 -9
  51. package/dist-es/commands/GetModelsCommand.js +3 -9
  52. package/dist-es/commands/GetRouteCommand.js +3 -9
  53. package/dist-es/commands/GetRouteResponseCommand.js +3 -9
  54. package/dist-es/commands/GetRouteResponsesCommand.js +3 -9
  55. package/dist-es/commands/GetRoutesCommand.js +3 -9
  56. package/dist-es/commands/GetRoutingRuleCommand.js +3 -9
  57. package/dist-es/commands/GetStageCommand.js +3 -9
  58. package/dist-es/commands/GetStagesCommand.js +3 -9
  59. package/dist-es/commands/GetTagsCommand.js +3 -9
  60. package/dist-es/commands/GetVpcLinkCommand.js +3 -9
  61. package/dist-es/commands/GetVpcLinksCommand.js +3 -9
  62. package/dist-es/commands/ImportApiCommand.js +3 -9
  63. package/dist-es/commands/ListRoutingRulesCommand.js +3 -9
  64. package/dist-es/commands/PutRoutingRuleCommand.js +3 -9
  65. package/dist-es/commands/ReimportApiCommand.js +3 -9
  66. package/dist-es/commands/ResetAuthorizersCacheCommand.js +3 -9
  67. package/dist-es/commands/TagResourceCommand.js +3 -9
  68. package/dist-es/commands/UntagResourceCommand.js +3 -9
  69. package/dist-es/commands/UpdateApiCommand.js +3 -9
  70. package/dist-es/commands/UpdateApiMappingCommand.js +3 -9
  71. package/dist-es/commands/UpdateAuthorizerCommand.js +3 -9
  72. package/dist-es/commands/UpdateDeploymentCommand.js +3 -9
  73. package/dist-es/commands/UpdateDomainNameCommand.js +3 -9
  74. package/dist-es/commands/UpdateIntegrationCommand.js +3 -9
  75. package/dist-es/commands/UpdateIntegrationResponseCommand.js +3 -9
  76. package/dist-es/commands/UpdateModelCommand.js +3 -9
  77. package/dist-es/commands/UpdateRouteCommand.js +3 -9
  78. package/dist-es/commands/UpdateRouteResponseCommand.js +3 -9
  79. package/dist-es/commands/UpdateStageCommand.js +3 -9
  80. package/dist-es/commands/UpdateVpcLinkCommand.js +3 -9
  81. package/dist-es/runtimeConfig.shared.js +2 -0
  82. package/dist-es/schemas/schemas_0.js +7870 -0
  83. package/dist-types/ApiGatewayV2Client.d.ts +10 -1
  84. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  85. package/dist-types/runtimeConfig.d.ts +1 -0
  86. package/dist-types/runtimeConfig.native.d.ts +1 -0
  87. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  88. package/dist-types/schemas/schemas_0.d.ts +284 -0
  89. package/dist-types/ts3.4/ApiGatewayV2Client.d.ts +4 -0
  90. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  91. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  92. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  93. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  94. package/dist-types/ts3.4/schemas/schemas_0.d.ts +290 -0
  95. package/package.json +5 -5
  96. package/dist-es/protocols/Aws_restJson1.js +0 -3178
  97. package/dist-types/protocols/Aws_restJson1.d.ts +0 -695
  98. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -929
@@ -1,3178 +0,0 @@
1
- import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
2
- import { requestBuilder as rb } from "@smithy/core";
3
- import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, serializeDateTime as __serializeDateTime, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
4
- import { ApiGatewayV2ServiceException as __BaseException } from "../models/ApiGatewayV2ServiceException";
5
- import { AccessDeniedException, BadRequestException, ConflictException, NotFoundException, TooManyRequestsException, } from "../models/models_0";
6
- export const se_CreateApiCommand = async (input, context) => {
7
- const b = rb(input, context);
8
- const headers = {
9
- "content-type": "application/json",
10
- };
11
- b.bp("/v2/apis");
12
- let body;
13
- body = JSON.stringify(take(input, {
14
- apiKeySelectionExpression: [, , `ApiKeySelectionExpression`],
15
- corsConfiguration: [, (_) => se_Cors(_, context), `CorsConfiguration`],
16
- credentialsArn: [, , `CredentialsArn`],
17
- description: [, , `Description`],
18
- disableExecuteApiEndpoint: [, , `DisableExecuteApiEndpoint`],
19
- disableSchemaValidation: [, , `DisableSchemaValidation`],
20
- ipAddressType: [, , `IpAddressType`],
21
- name: [, , `Name`],
22
- protocolType: [, , `ProtocolType`],
23
- routeKey: [, , `RouteKey`],
24
- routeSelectionExpression: [, , `RouteSelectionExpression`],
25
- tags: [, (_) => _json(_), `Tags`],
26
- target: [, , `Target`],
27
- version: [, , `Version`],
28
- }));
29
- b.m("POST").h(headers).b(body);
30
- return b.build();
31
- };
32
- export const se_CreateApiMappingCommand = async (input, context) => {
33
- const b = rb(input, context);
34
- const headers = {
35
- "content-type": "application/json",
36
- };
37
- b.bp("/v2/domainnames/{DomainName}/apimappings");
38
- b.p("DomainName", () => input.DomainName, "{DomainName}", false);
39
- let body;
40
- body = JSON.stringify(take(input, {
41
- apiId: [, , `ApiId`],
42
- apiMappingKey: [, , `ApiMappingKey`],
43
- stage: [, , `Stage`],
44
- }));
45
- b.m("POST").h(headers).b(body);
46
- return b.build();
47
- };
48
- export const se_CreateAuthorizerCommand = async (input, context) => {
49
- const b = rb(input, context);
50
- const headers = {
51
- "content-type": "application/json",
52
- };
53
- b.bp("/v2/apis/{ApiId}/authorizers");
54
- b.p("ApiId", () => input.ApiId, "{ApiId}", false);
55
- let body;
56
- body = JSON.stringify(take(input, {
57
- authorizerCredentialsArn: [, , `AuthorizerCredentialsArn`],
58
- authorizerPayloadFormatVersion: [, , `AuthorizerPayloadFormatVersion`],
59
- authorizerResultTtlInSeconds: [, , `AuthorizerResultTtlInSeconds`],
60
- authorizerType: [, , `AuthorizerType`],
61
- authorizerUri: [, , `AuthorizerUri`],
62
- enableSimpleResponses: [, , `EnableSimpleResponses`],
63
- identitySource: [, (_) => _json(_), `IdentitySource`],
64
- identityValidationExpression: [, , `IdentityValidationExpression`],
65
- jwtConfiguration: [, (_) => se_JWTConfiguration(_, context), `JwtConfiguration`],
66
- name: [, , `Name`],
67
- }));
68
- b.m("POST").h(headers).b(body);
69
- return b.build();
70
- };
71
- export const se_CreateDeploymentCommand = async (input, context) => {
72
- const b = rb(input, context);
73
- const headers = {
74
- "content-type": "application/json",
75
- };
76
- b.bp("/v2/apis/{ApiId}/deployments");
77
- b.p("ApiId", () => input.ApiId, "{ApiId}", false);
78
- let body;
79
- body = JSON.stringify(take(input, {
80
- description: [, , `Description`],
81
- stageName: [, , `StageName`],
82
- }));
83
- b.m("POST").h(headers).b(body);
84
- return b.build();
85
- };
86
- export const se_CreateDomainNameCommand = async (input, context) => {
87
- const b = rb(input, context);
88
- const headers = {
89
- "content-type": "application/json",
90
- };
91
- b.bp("/v2/domainnames");
92
- let body;
93
- body = JSON.stringify(take(input, {
94
- domainName: [, , `DomainName`],
95
- domainNameConfigurations: [, (_) => se_DomainNameConfigurations(_, context), `DomainNameConfigurations`],
96
- mutualTlsAuthentication: [, (_) => se_MutualTlsAuthenticationInput(_, context), `MutualTlsAuthentication`],
97
- routingMode: [, , `RoutingMode`],
98
- tags: [, (_) => _json(_), `Tags`],
99
- }));
100
- b.m("POST").h(headers).b(body);
101
- return b.build();
102
- };
103
- export const se_CreateIntegrationCommand = async (input, context) => {
104
- const b = rb(input, context);
105
- const headers = {
106
- "content-type": "application/json",
107
- };
108
- b.bp("/v2/apis/{ApiId}/integrations");
109
- b.p("ApiId", () => input.ApiId, "{ApiId}", false);
110
- let body;
111
- body = JSON.stringify(take(input, {
112
- connectionId: [, , `ConnectionId`],
113
- connectionType: [, , `ConnectionType`],
114
- contentHandlingStrategy: [, , `ContentHandlingStrategy`],
115
- credentialsArn: [, , `CredentialsArn`],
116
- description: [, , `Description`],
117
- integrationMethod: [, , `IntegrationMethod`],
118
- integrationSubtype: [, , `IntegrationSubtype`],
119
- integrationType: [, , `IntegrationType`],
120
- integrationUri: [, , `IntegrationUri`],
121
- passthroughBehavior: [, , `PassthroughBehavior`],
122
- payloadFormatVersion: [, , `PayloadFormatVersion`],
123
- requestParameters: [, (_) => _json(_), `RequestParameters`],
124
- requestTemplates: [, (_) => _json(_), `RequestTemplates`],
125
- responseParameters: [, (_) => _json(_), `ResponseParameters`],
126
- templateSelectionExpression: [, , `TemplateSelectionExpression`],
127
- timeoutInMillis: [, , `TimeoutInMillis`],
128
- tlsConfig: [, (_) => se_TlsConfigInput(_, context), `TlsConfig`],
129
- }));
130
- b.m("POST").h(headers).b(body);
131
- return b.build();
132
- };
133
- export const se_CreateIntegrationResponseCommand = async (input, context) => {
134
- const b = rb(input, context);
135
- const headers = {
136
- "content-type": "application/json",
137
- };
138
- b.bp("/v2/apis/{ApiId}/integrations/{IntegrationId}/integrationresponses");
139
- b.p("ApiId", () => input.ApiId, "{ApiId}", false);
140
- b.p("IntegrationId", () => input.IntegrationId, "{IntegrationId}", false);
141
- let body;
142
- body = JSON.stringify(take(input, {
143
- contentHandlingStrategy: [, , `ContentHandlingStrategy`],
144
- integrationResponseKey: [, , `IntegrationResponseKey`],
145
- responseParameters: [, (_) => _json(_), `ResponseParameters`],
146
- responseTemplates: [, (_) => _json(_), `ResponseTemplates`],
147
- templateSelectionExpression: [, , `TemplateSelectionExpression`],
148
- }));
149
- b.m("POST").h(headers).b(body);
150
- return b.build();
151
- };
152
- export const se_CreateModelCommand = async (input, context) => {
153
- const b = rb(input, context);
154
- const headers = {
155
- "content-type": "application/json",
156
- };
157
- b.bp("/v2/apis/{ApiId}/models");
158
- b.p("ApiId", () => input.ApiId, "{ApiId}", false);
159
- let body;
160
- body = JSON.stringify(take(input, {
161
- contentType: [, , `ContentType`],
162
- description: [, , `Description`],
163
- name: [, , `Name`],
164
- schema: [, , `Schema`],
165
- }));
166
- b.m("POST").h(headers).b(body);
167
- return b.build();
168
- };
169
- export const se_CreateRouteCommand = async (input, context) => {
170
- const b = rb(input, context);
171
- const headers = {
172
- "content-type": "application/json",
173
- };
174
- b.bp("/v2/apis/{ApiId}/routes");
175
- b.p("ApiId", () => input.ApiId, "{ApiId}", false);
176
- let body;
177
- body = JSON.stringify(take(input, {
178
- apiKeyRequired: [, , `ApiKeyRequired`],
179
- authorizationScopes: [, (_) => _json(_), `AuthorizationScopes`],
180
- authorizationType: [, , `AuthorizationType`],
181
- authorizerId: [, , `AuthorizerId`],
182
- modelSelectionExpression: [, , `ModelSelectionExpression`],
183
- operationName: [, , `OperationName`],
184
- requestModels: [, (_) => _json(_), `RequestModels`],
185
- requestParameters: [, (_) => se_RouteParameters(_, context), `RequestParameters`],
186
- routeKey: [, , `RouteKey`],
187
- routeResponseSelectionExpression: [, , `RouteResponseSelectionExpression`],
188
- target: [, , `Target`],
189
- }));
190
- b.m("POST").h(headers).b(body);
191
- return b.build();
192
- };
193
- export const se_CreateRouteResponseCommand = async (input, context) => {
194
- const b = rb(input, context);
195
- const headers = {
196
- "content-type": "application/json",
197
- };
198
- b.bp("/v2/apis/{ApiId}/routes/{RouteId}/routeresponses");
199
- b.p("ApiId", () => input.ApiId, "{ApiId}", false);
200
- b.p("RouteId", () => input.RouteId, "{RouteId}", false);
201
- let body;
202
- body = JSON.stringify(take(input, {
203
- modelSelectionExpression: [, , `ModelSelectionExpression`],
204
- responseModels: [, (_) => _json(_), `ResponseModels`],
205
- responseParameters: [, (_) => se_RouteParameters(_, context), `ResponseParameters`],
206
- routeResponseKey: [, , `RouteResponseKey`],
207
- }));
208
- b.m("POST").h(headers).b(body);
209
- return b.build();
210
- };
211
- export const se_CreateRoutingRuleCommand = async (input, context) => {
212
- const b = rb(input, context);
213
- const headers = {
214
- "content-type": "application/json",
215
- };
216
- b.bp("/v2/domainnames/{DomainName}/routingrules");
217
- b.p("DomainName", () => input.DomainName, "{DomainName}", false);
218
- const query = map({
219
- [_dNI]: [, input[_DNI]],
220
- });
221
- let body;
222
- body = JSON.stringify(take(input, {
223
- actions: [, (_) => se___listOfRoutingRuleAction(_, context), `Actions`],
224
- conditions: [, (_) => se___listOfRoutingRuleCondition(_, context), `Conditions`],
225
- priority: [, , `Priority`],
226
- }));
227
- b.m("POST").h(headers).q(query).b(body);
228
- return b.build();
229
- };
230
- export const se_CreateStageCommand = async (input, context) => {
231
- const b = rb(input, context);
232
- const headers = {
233
- "content-type": "application/json",
234
- };
235
- b.bp("/v2/apis/{ApiId}/stages");
236
- b.p("ApiId", () => input.ApiId, "{ApiId}", false);
237
- let body;
238
- body = JSON.stringify(take(input, {
239
- accessLogSettings: [, (_) => se_AccessLogSettings(_, context), `AccessLogSettings`],
240
- autoDeploy: [, , `AutoDeploy`],
241
- clientCertificateId: [, , `ClientCertificateId`],
242
- defaultRouteSettings: [, (_) => se_RouteSettings(_, context), `DefaultRouteSettings`],
243
- deploymentId: [, , `DeploymentId`],
244
- description: [, , `Description`],
245
- routeSettings: [, (_) => se_RouteSettingsMap(_, context), `RouteSettings`],
246
- stageName: [, , `StageName`],
247
- stageVariables: [, (_) => _json(_), `StageVariables`],
248
- tags: [, (_) => _json(_), `Tags`],
249
- }));
250
- b.m("POST").h(headers).b(body);
251
- return b.build();
252
- };
253
- export const se_CreateVpcLinkCommand = async (input, context) => {
254
- const b = rb(input, context);
255
- const headers = {
256
- "content-type": "application/json",
257
- };
258
- b.bp("/v2/vpclinks");
259
- let body;
260
- body = JSON.stringify(take(input, {
261
- name: [, , `Name`],
262
- securityGroupIds: [, (_) => _json(_), `SecurityGroupIds`],
263
- subnetIds: [, (_) => _json(_), `SubnetIds`],
264
- tags: [, (_) => _json(_), `Tags`],
265
- }));
266
- b.m("POST").h(headers).b(body);
267
- return b.build();
268
- };
269
- export const se_DeleteAccessLogSettingsCommand = async (input, context) => {
270
- const b = rb(input, context);
271
- const headers = {};
272
- b.bp("/v2/apis/{ApiId}/stages/{StageName}/accesslogsettings");
273
- b.p("ApiId", () => input.ApiId, "{ApiId}", false);
274
- b.p("StageName", () => input.StageName, "{StageName}", false);
275
- let body;
276
- b.m("DELETE").h(headers).b(body);
277
- return b.build();
278
- };
279
- export const se_DeleteApiCommand = async (input, context) => {
280
- const b = rb(input, context);
281
- const headers = {};
282
- b.bp("/v2/apis/{ApiId}");
283
- b.p("ApiId", () => input.ApiId, "{ApiId}", false);
284
- let body;
285
- b.m("DELETE").h(headers).b(body);
286
- return b.build();
287
- };
288
- export const se_DeleteApiMappingCommand = async (input, context) => {
289
- const b = rb(input, context);
290
- const headers = {};
291
- b.bp("/v2/domainnames/{DomainName}/apimappings/{ApiMappingId}");
292
- b.p("ApiMappingId", () => input.ApiMappingId, "{ApiMappingId}", false);
293
- b.p("DomainName", () => input.DomainName, "{DomainName}", false);
294
- let body;
295
- b.m("DELETE").h(headers).b(body);
296
- return b.build();
297
- };
298
- export const se_DeleteAuthorizerCommand = async (input, context) => {
299
- const b = rb(input, context);
300
- const headers = {};
301
- b.bp("/v2/apis/{ApiId}/authorizers/{AuthorizerId}");
302
- b.p("ApiId", () => input.ApiId, "{ApiId}", false);
303
- b.p("AuthorizerId", () => input.AuthorizerId, "{AuthorizerId}", false);
304
- let body;
305
- b.m("DELETE").h(headers).b(body);
306
- return b.build();
307
- };
308
- export const se_DeleteCorsConfigurationCommand = async (input, context) => {
309
- const b = rb(input, context);
310
- const headers = {};
311
- b.bp("/v2/apis/{ApiId}/cors");
312
- b.p("ApiId", () => input.ApiId, "{ApiId}", false);
313
- let body;
314
- b.m("DELETE").h(headers).b(body);
315
- return b.build();
316
- };
317
- export const se_DeleteDeploymentCommand = async (input, context) => {
318
- const b = rb(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
- export const se_DeleteDomainNameCommand = async (input, context) => {
328
- const b = rb(input, context);
329
- const headers = {};
330
- b.bp("/v2/domainnames/{DomainName}");
331
- b.p("DomainName", () => input.DomainName, "{DomainName}", false);
332
- let body;
333
- b.m("DELETE").h(headers).b(body);
334
- return b.build();
335
- };
336
- export const se_DeleteIntegrationCommand = async (input, context) => {
337
- const b = rb(input, context);
338
- const headers = {};
339
- b.bp("/v2/apis/{ApiId}/integrations/{IntegrationId}");
340
- b.p("ApiId", () => input.ApiId, "{ApiId}", false);
341
- b.p("IntegrationId", () => input.IntegrationId, "{IntegrationId}", false);
342
- let body;
343
- b.m("DELETE").h(headers).b(body);
344
- return b.build();
345
- };
346
- export const se_DeleteIntegrationResponseCommand = async (input, context) => {
347
- const b = rb(input, context);
348
- const headers = {};
349
- b.bp("/v2/apis/{ApiId}/integrations/{IntegrationId}/integrationresponses/{IntegrationResponseId}");
350
- b.p("ApiId", () => input.ApiId, "{ApiId}", false);
351
- b.p("IntegrationId", () => input.IntegrationId, "{IntegrationId}", false);
352
- b.p("IntegrationResponseId", () => input.IntegrationResponseId, "{IntegrationResponseId}", false);
353
- let body;
354
- b.m("DELETE").h(headers).b(body);
355
- return b.build();
356
- };
357
- export const se_DeleteModelCommand = async (input, context) => {
358
- const b = rb(input, context);
359
- const headers = {};
360
- b.bp("/v2/apis/{ApiId}/models/{ModelId}");
361
- b.p("ApiId", () => input.ApiId, "{ApiId}", false);
362
- b.p("ModelId", () => input.ModelId, "{ModelId}", false);
363
- let body;
364
- b.m("DELETE").h(headers).b(body);
365
- return b.build();
366
- };
367
- export const se_DeleteRouteCommand = async (input, context) => {
368
- const b = rb(input, context);
369
- const headers = {};
370
- b.bp("/v2/apis/{ApiId}/routes/{RouteId}");
371
- b.p("ApiId", () => input.ApiId, "{ApiId}", false);
372
- b.p("RouteId", () => input.RouteId, "{RouteId}", false);
373
- let body;
374
- b.m("DELETE").h(headers).b(body);
375
- return b.build();
376
- };
377
- export const se_DeleteRouteRequestParameterCommand = async (input, context) => {
378
- const b = rb(input, context);
379
- const headers = {};
380
- b.bp("/v2/apis/{ApiId}/routes/{RouteId}/requestparameters/{RequestParameterKey}");
381
- b.p("ApiId", () => input.ApiId, "{ApiId}", false);
382
- b.p("RequestParameterKey", () => input.RequestParameterKey, "{RequestParameterKey}", false);
383
- b.p("RouteId", () => input.RouteId, "{RouteId}", false);
384
- let body;
385
- b.m("DELETE").h(headers).b(body);
386
- return b.build();
387
- };
388
- export const se_DeleteRouteResponseCommand = async (input, context) => {
389
- const b = rb(input, context);
390
- const headers = {};
391
- b.bp("/v2/apis/{ApiId}/routes/{RouteId}/routeresponses/{RouteResponseId}");
392
- b.p("ApiId", () => input.ApiId, "{ApiId}", false);
393
- b.p("RouteId", () => input.RouteId, "{RouteId}", false);
394
- b.p("RouteResponseId", () => input.RouteResponseId, "{RouteResponseId}", false);
395
- let body;
396
- b.m("DELETE").h(headers).b(body);
397
- return b.build();
398
- };
399
- export const se_DeleteRouteSettingsCommand = async (input, context) => {
400
- const b = rb(input, context);
401
- const headers = {};
402
- b.bp("/v2/apis/{ApiId}/stages/{StageName}/routesettings/{RouteKey}");
403
- b.p("ApiId", () => input.ApiId, "{ApiId}", false);
404
- b.p("RouteKey", () => input.RouteKey, "{RouteKey}", false);
405
- b.p("StageName", () => input.StageName, "{StageName}", false);
406
- let body;
407
- b.m("DELETE").h(headers).b(body);
408
- return b.build();
409
- };
410
- export const se_DeleteRoutingRuleCommand = async (input, context) => {
411
- const b = rb(input, context);
412
- const headers = {};
413
- b.bp("/v2/domainnames/{DomainName}/routingrules/{RoutingRuleId}");
414
- b.p("DomainName", () => input.DomainName, "{DomainName}", false);
415
- b.p("RoutingRuleId", () => input.RoutingRuleId, "{RoutingRuleId}", false);
416
- const query = map({
417
- [_dNI]: [, input[_DNI]],
418
- });
419
- let body;
420
- b.m("DELETE").h(headers).q(query).b(body);
421
- return b.build();
422
- };
423
- export const se_DeleteStageCommand = async (input, context) => {
424
- const b = rb(input, context);
425
- const headers = {};
426
- b.bp("/v2/apis/{ApiId}/stages/{StageName}");
427
- b.p("ApiId", () => input.ApiId, "{ApiId}", false);
428
- b.p("StageName", () => input.StageName, "{StageName}", false);
429
- let body;
430
- b.m("DELETE").h(headers).b(body);
431
- return b.build();
432
- };
433
- export const se_DeleteVpcLinkCommand = async (input, context) => {
434
- const b = rb(input, context);
435
- const headers = {};
436
- b.bp("/v2/vpclinks/{VpcLinkId}");
437
- b.p("VpcLinkId", () => input.VpcLinkId, "{VpcLinkId}", false);
438
- let body;
439
- b.m("DELETE").h(headers).b(body);
440
- return b.build();
441
- };
442
- export const se_ExportApiCommand = async (input, context) => {
443
- const b = rb(input, context);
444
- const headers = {};
445
- b.bp("/v2/apis/{ApiId}/exports/{Specification}");
446
- b.p("ApiId", () => input.ApiId, "{ApiId}", false);
447
- b.p("Specification", () => input.Specification, "{Specification}", false);
448
- const query = map({
449
- [_eV]: [, input[_EV]],
450
- [_iE]: [() => input.IncludeExtensions !== void 0, () => input[_IE].toString()],
451
- [_oT]: [, __expectNonNull(input[_OT], `OutputType`)],
452
- [_sN]: [, input[_SN]],
453
- });
454
- let body;
455
- b.m("GET").h(headers).q(query).b(body);
456
- return b.build();
457
- };
458
- export const se_GetApiCommand = async (input, context) => {
459
- const b = rb(input, context);
460
- const headers = {};
461
- b.bp("/v2/apis/{ApiId}");
462
- b.p("ApiId", () => input.ApiId, "{ApiId}", false);
463
- let body;
464
- b.m("GET").h(headers).b(body);
465
- return b.build();
466
- };
467
- export const se_GetApiMappingCommand = async (input, context) => {
468
- const b = rb(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
- export const se_GetApiMappingsCommand = async (input, context) => {
478
- const b = rb(input, context);
479
- const headers = {};
480
- b.bp("/v2/domainnames/{DomainName}/apimappings");
481
- b.p("DomainName", () => input.DomainName, "{DomainName}", false);
482
- const query = map({
483
- [_mR]: [, input[_MR]],
484
- [_nT]: [, input[_NT]],
485
- });
486
- let body;
487
- b.m("GET").h(headers).q(query).b(body);
488
- return b.build();
489
- };
490
- export const se_GetApisCommand = async (input, context) => {
491
- const b = rb(input, context);
492
- const headers = {};
493
- b.bp("/v2/apis");
494
- const query = map({
495
- [_mR]: [, input[_MR]],
496
- [_nT]: [, input[_NT]],
497
- });
498
- let body;
499
- b.m("GET").h(headers).q(query).b(body);
500
- return b.build();
501
- };
502
- export const se_GetAuthorizerCommand = async (input, context) => {
503
- const b = rb(input, context);
504
- const headers = {};
505
- b.bp("/v2/apis/{ApiId}/authorizers/{AuthorizerId}");
506
- b.p("ApiId", () => input.ApiId, "{ApiId}", false);
507
- b.p("AuthorizerId", () => input.AuthorizerId, "{AuthorizerId}", false);
508
- let body;
509
- b.m("GET").h(headers).b(body);
510
- return b.build();
511
- };
512
- export const se_GetAuthorizersCommand = async (input, context) => {
513
- const b = rb(input, context);
514
- const headers = {};
515
- b.bp("/v2/apis/{ApiId}/authorizers");
516
- b.p("ApiId", () => input.ApiId, "{ApiId}", false);
517
- const query = map({
518
- [_mR]: [, input[_MR]],
519
- [_nT]: [, input[_NT]],
520
- });
521
- let body;
522
- b.m("GET").h(headers).q(query).b(body);
523
- return b.build();
524
- };
525
- export const se_GetDeploymentCommand = async (input, context) => {
526
- const b = rb(input, context);
527
- const headers = {};
528
- b.bp("/v2/apis/{ApiId}/deployments/{DeploymentId}");
529
- b.p("ApiId", () => input.ApiId, "{ApiId}", false);
530
- b.p("DeploymentId", () => input.DeploymentId, "{DeploymentId}", false);
531
- let body;
532
- b.m("GET").h(headers).b(body);
533
- return b.build();
534
- };
535
- export const se_GetDeploymentsCommand = async (input, context) => {
536
- const b = rb(input, context);
537
- const headers = {};
538
- b.bp("/v2/apis/{ApiId}/deployments");
539
- b.p("ApiId", () => input.ApiId, "{ApiId}", false);
540
- const query = map({
541
- [_mR]: [, input[_MR]],
542
- [_nT]: [, input[_NT]],
543
- });
544
- let body;
545
- b.m("GET").h(headers).q(query).b(body);
546
- return b.build();
547
- };
548
- export const se_GetDomainNameCommand = async (input, context) => {
549
- const b = rb(input, context);
550
- const headers = {};
551
- b.bp("/v2/domainnames/{DomainName}");
552
- b.p("DomainName", () => input.DomainName, "{DomainName}", false);
553
- let body;
554
- b.m("GET").h(headers).b(body);
555
- return b.build();
556
- };
557
- export const se_GetDomainNamesCommand = async (input, context) => {
558
- const b = rb(input, context);
559
- const headers = {};
560
- b.bp("/v2/domainnames");
561
- const query = map({
562
- [_mR]: [, input[_MR]],
563
- [_nT]: [, input[_NT]],
564
- });
565
- let body;
566
- b.m("GET").h(headers).q(query).b(body);
567
- return b.build();
568
- };
569
- export const se_GetIntegrationCommand = async (input, context) => {
570
- const b = rb(input, context);
571
- const headers = {};
572
- b.bp("/v2/apis/{ApiId}/integrations/{IntegrationId}");
573
- b.p("ApiId", () => input.ApiId, "{ApiId}", false);
574
- b.p("IntegrationId", () => input.IntegrationId, "{IntegrationId}", false);
575
- let body;
576
- b.m("GET").h(headers).b(body);
577
- return b.build();
578
- };
579
- export const se_GetIntegrationResponseCommand = async (input, context) => {
580
- const b = rb(input, context);
581
- const headers = {};
582
- b.bp("/v2/apis/{ApiId}/integrations/{IntegrationId}/integrationresponses/{IntegrationResponseId}");
583
- b.p("ApiId", () => input.ApiId, "{ApiId}", false);
584
- b.p("IntegrationId", () => input.IntegrationId, "{IntegrationId}", false);
585
- b.p("IntegrationResponseId", () => input.IntegrationResponseId, "{IntegrationResponseId}", false);
586
- let body;
587
- b.m("GET").h(headers).b(body);
588
- return b.build();
589
- };
590
- export const se_GetIntegrationResponsesCommand = async (input, context) => {
591
- const b = rb(input, context);
592
- const headers = {};
593
- b.bp("/v2/apis/{ApiId}/integrations/{IntegrationId}/integrationresponses");
594
- b.p("ApiId", () => input.ApiId, "{ApiId}", false);
595
- b.p("IntegrationId", () => input.IntegrationId, "{IntegrationId}", false);
596
- const query = map({
597
- [_mR]: [, input[_MR]],
598
- [_nT]: [, input[_NT]],
599
- });
600
- let body;
601
- b.m("GET").h(headers).q(query).b(body);
602
- return b.build();
603
- };
604
- export const se_GetIntegrationsCommand = async (input, context) => {
605
- const b = rb(input, context);
606
- const headers = {};
607
- b.bp("/v2/apis/{ApiId}/integrations");
608
- b.p("ApiId", () => input.ApiId, "{ApiId}", false);
609
- const query = map({
610
- [_mR]: [, input[_MR]],
611
- [_nT]: [, input[_NT]],
612
- });
613
- let body;
614
- b.m("GET").h(headers).q(query).b(body);
615
- return b.build();
616
- };
617
- export const se_GetModelCommand = async (input, context) => {
618
- const b = rb(input, context);
619
- const headers = {};
620
- b.bp("/v2/apis/{ApiId}/models/{ModelId}");
621
- b.p("ApiId", () => input.ApiId, "{ApiId}", false);
622
- b.p("ModelId", () => input.ModelId, "{ModelId}", false);
623
- let body;
624
- b.m("GET").h(headers).b(body);
625
- return b.build();
626
- };
627
- export const se_GetModelsCommand = async (input, context) => {
628
- const b = rb(input, context);
629
- const headers = {};
630
- b.bp("/v2/apis/{ApiId}/models");
631
- b.p("ApiId", () => input.ApiId, "{ApiId}", false);
632
- const query = map({
633
- [_mR]: [, input[_MR]],
634
- [_nT]: [, input[_NT]],
635
- });
636
- let body;
637
- b.m("GET").h(headers).q(query).b(body);
638
- return b.build();
639
- };
640
- export const se_GetModelTemplateCommand = async (input, context) => {
641
- const b = rb(input, context);
642
- const headers = {};
643
- b.bp("/v2/apis/{ApiId}/models/{ModelId}/template");
644
- b.p("ApiId", () => input.ApiId, "{ApiId}", false);
645
- b.p("ModelId", () => input.ModelId, "{ModelId}", false);
646
- let body;
647
- b.m("GET").h(headers).b(body);
648
- return b.build();
649
- };
650
- export const se_GetRouteCommand = async (input, context) => {
651
- const b = rb(input, context);
652
- const headers = {};
653
- b.bp("/v2/apis/{ApiId}/routes/{RouteId}");
654
- b.p("ApiId", () => input.ApiId, "{ApiId}", false);
655
- b.p("RouteId", () => input.RouteId, "{RouteId}", false);
656
- let body;
657
- b.m("GET").h(headers).b(body);
658
- return b.build();
659
- };
660
- export const se_GetRouteResponseCommand = async (input, context) => {
661
- const b = rb(input, context);
662
- const headers = {};
663
- b.bp("/v2/apis/{ApiId}/routes/{RouteId}/routeresponses/{RouteResponseId}");
664
- b.p("ApiId", () => input.ApiId, "{ApiId}", false);
665
- b.p("RouteId", () => input.RouteId, "{RouteId}", false);
666
- b.p("RouteResponseId", () => input.RouteResponseId, "{RouteResponseId}", false);
667
- let body;
668
- b.m("GET").h(headers).b(body);
669
- return b.build();
670
- };
671
- export const se_GetRouteResponsesCommand = async (input, context) => {
672
- const b = rb(input, context);
673
- const headers = {};
674
- b.bp("/v2/apis/{ApiId}/routes/{RouteId}/routeresponses");
675
- b.p("ApiId", () => input.ApiId, "{ApiId}", false);
676
- b.p("RouteId", () => input.RouteId, "{RouteId}", false);
677
- const query = map({
678
- [_mR]: [, input[_MR]],
679
- [_nT]: [, input[_NT]],
680
- });
681
- let body;
682
- b.m("GET").h(headers).q(query).b(body);
683
- return b.build();
684
- };
685
- export const se_GetRoutesCommand = async (input, context) => {
686
- const b = rb(input, context);
687
- const headers = {};
688
- b.bp("/v2/apis/{ApiId}/routes");
689
- b.p("ApiId", () => input.ApiId, "{ApiId}", false);
690
- const query = map({
691
- [_mR]: [, input[_MR]],
692
- [_nT]: [, input[_NT]],
693
- });
694
- let body;
695
- b.m("GET").h(headers).q(query).b(body);
696
- return b.build();
697
- };
698
- export const se_GetRoutingRuleCommand = async (input, context) => {
699
- const b = rb(input, context);
700
- const headers = {};
701
- b.bp("/v2/domainnames/{DomainName}/routingrules/{RoutingRuleId}");
702
- b.p("DomainName", () => input.DomainName, "{DomainName}", false);
703
- b.p("RoutingRuleId", () => input.RoutingRuleId, "{RoutingRuleId}", false);
704
- const query = map({
705
- [_dNI]: [, input[_DNI]],
706
- });
707
- let body;
708
- b.m("GET").h(headers).q(query).b(body);
709
- return b.build();
710
- };
711
- export const se_GetStageCommand = async (input, context) => {
712
- const b = rb(input, context);
713
- const headers = {};
714
- b.bp("/v2/apis/{ApiId}/stages/{StageName}");
715
- b.p("ApiId", () => input.ApiId, "{ApiId}", false);
716
- b.p("StageName", () => input.StageName, "{StageName}", false);
717
- let body;
718
- b.m("GET").h(headers).b(body);
719
- return b.build();
720
- };
721
- export const se_GetStagesCommand = async (input, context) => {
722
- const b = rb(input, context);
723
- const headers = {};
724
- b.bp("/v2/apis/{ApiId}/stages");
725
- b.p("ApiId", () => input.ApiId, "{ApiId}", false);
726
- const query = map({
727
- [_mR]: [, input[_MR]],
728
- [_nT]: [, input[_NT]],
729
- });
730
- let body;
731
- b.m("GET").h(headers).q(query).b(body);
732
- return b.build();
733
- };
734
- export const se_GetTagsCommand = async (input, context) => {
735
- const b = rb(input, context);
736
- const headers = {};
737
- b.bp("/v2/tags/{ResourceArn}");
738
- b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
739
- let body;
740
- b.m("GET").h(headers).b(body);
741
- return b.build();
742
- };
743
- export const se_GetVpcLinkCommand = async (input, context) => {
744
- const b = rb(input, context);
745
- const headers = {};
746
- b.bp("/v2/vpclinks/{VpcLinkId}");
747
- b.p("VpcLinkId", () => input.VpcLinkId, "{VpcLinkId}", false);
748
- let body;
749
- b.m("GET").h(headers).b(body);
750
- return b.build();
751
- };
752
- export const se_GetVpcLinksCommand = async (input, context) => {
753
- const b = rb(input, context);
754
- const headers = {};
755
- b.bp("/v2/vpclinks");
756
- const query = map({
757
- [_mR]: [, input[_MR]],
758
- [_nT]: [, input[_NT]],
759
- });
760
- let body;
761
- b.m("GET").h(headers).q(query).b(body);
762
- return b.build();
763
- };
764
- export const se_ImportApiCommand = async (input, context) => {
765
- const b = rb(input, context);
766
- const headers = {
767
- "content-type": "application/json",
768
- };
769
- b.bp("/v2/apis");
770
- const query = map({
771
- [_b]: [, input[_B]],
772
- [_fOW]: [() => input.FailOnWarnings !== void 0, () => input[_FOW].toString()],
773
- });
774
- let body;
775
- body = JSON.stringify(take(input, {
776
- body: [, , `Body`],
777
- }));
778
- b.m("PUT").h(headers).q(query).b(body);
779
- return b.build();
780
- };
781
- export const se_ListRoutingRulesCommand = async (input, context) => {
782
- const b = rb(input, context);
783
- const headers = {};
784
- b.bp("/v2/domainnames/{DomainName}/routingrules");
785
- b.p("DomainName", () => input.DomainName, "{DomainName}", false);
786
- const query = map({
787
- [_dNI]: [, input[_DNI]],
788
- [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
789
- [_nT]: [, input[_NT]],
790
- });
791
- let body;
792
- b.m("GET").h(headers).q(query).b(body);
793
- return b.build();
794
- };
795
- export const se_PutRoutingRuleCommand = async (input, context) => {
796
- const b = rb(input, context);
797
- const headers = {
798
- "content-type": "application/json",
799
- };
800
- b.bp("/v2/domainnames/{DomainName}/routingrules/{RoutingRuleId}");
801
- b.p("DomainName", () => input.DomainName, "{DomainName}", false);
802
- b.p("RoutingRuleId", () => input.RoutingRuleId, "{RoutingRuleId}", false);
803
- const query = map({
804
- [_dNI]: [, input[_DNI]],
805
- });
806
- let body;
807
- body = JSON.stringify(take(input, {
808
- actions: [, (_) => se___listOfRoutingRuleAction(_, context), `Actions`],
809
- conditions: [, (_) => se___listOfRoutingRuleCondition(_, context), `Conditions`],
810
- priority: [, , `Priority`],
811
- }));
812
- b.m("PUT").h(headers).q(query).b(body);
813
- return b.build();
814
- };
815
- export const se_ReimportApiCommand = async (input, context) => {
816
- const b = rb(input, context);
817
- const headers = {
818
- "content-type": "application/json",
819
- };
820
- b.bp("/v2/apis/{ApiId}");
821
- b.p("ApiId", () => input.ApiId, "{ApiId}", false);
822
- const query = map({
823
- [_b]: [, input[_B]],
824
- [_fOW]: [() => input.FailOnWarnings !== void 0, () => input[_FOW].toString()],
825
- });
826
- let body;
827
- body = JSON.stringify(take(input, {
828
- body: [, , `Body`],
829
- }));
830
- b.m("PUT").h(headers).q(query).b(body);
831
- return b.build();
832
- };
833
- export const se_ResetAuthorizersCacheCommand = async (input, context) => {
834
- const b = rb(input, context);
835
- const headers = {};
836
- b.bp("/v2/apis/{ApiId}/stages/{StageName}/cache/authorizers");
837
- b.p("ApiId", () => input.ApiId, "{ApiId}", false);
838
- b.p("StageName", () => input.StageName, "{StageName}", false);
839
- let body;
840
- b.m("DELETE").h(headers).b(body);
841
- return b.build();
842
- };
843
- export const se_TagResourceCommand = async (input, context) => {
844
- const b = rb(input, context);
845
- const headers = {
846
- "content-type": "application/json",
847
- };
848
- b.bp("/v2/tags/{ResourceArn}");
849
- b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
850
- let body;
851
- body = JSON.stringify(take(input, {
852
- tags: [, (_) => _json(_), `Tags`],
853
- }));
854
- b.m("POST").h(headers).b(body);
855
- return b.build();
856
- };
857
- export const se_UntagResourceCommand = async (input, context) => {
858
- const b = rb(input, context);
859
- const headers = {};
860
- b.bp("/v2/tags/{ResourceArn}");
861
- b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
862
- const query = map({
863
- [_tK]: [__expectNonNull(input.TagKeys, `TagKeys`) != null, () => input[_TK] || []],
864
- });
865
- let body;
866
- b.m("DELETE").h(headers).q(query).b(body);
867
- return b.build();
868
- };
869
- export const se_UpdateApiCommand = async (input, context) => {
870
- const b = rb(input, context);
871
- const headers = {
872
- "content-type": "application/json",
873
- };
874
- b.bp("/v2/apis/{ApiId}");
875
- b.p("ApiId", () => input.ApiId, "{ApiId}", false);
876
- let body;
877
- body = JSON.stringify(take(input, {
878
- apiKeySelectionExpression: [, , `ApiKeySelectionExpression`],
879
- corsConfiguration: [, (_) => se_Cors(_, context), `CorsConfiguration`],
880
- credentialsArn: [, , `CredentialsArn`],
881
- description: [, , `Description`],
882
- disableExecuteApiEndpoint: [, , `DisableExecuteApiEndpoint`],
883
- disableSchemaValidation: [, , `DisableSchemaValidation`],
884
- ipAddressType: [, , `IpAddressType`],
885
- name: [, , `Name`],
886
- routeKey: [, , `RouteKey`],
887
- routeSelectionExpression: [, , `RouteSelectionExpression`],
888
- target: [, , `Target`],
889
- version: [, , `Version`],
890
- }));
891
- b.m("PATCH").h(headers).b(body);
892
- return b.build();
893
- };
894
- export const se_UpdateApiMappingCommand = async (input, context) => {
895
- const b = rb(input, context);
896
- const headers = {
897
- "content-type": "application/json",
898
- };
899
- b.bp("/v2/domainnames/{DomainName}/apimappings/{ApiMappingId}");
900
- b.p("ApiMappingId", () => input.ApiMappingId, "{ApiMappingId}", false);
901
- b.p("DomainName", () => input.DomainName, "{DomainName}", false);
902
- let body;
903
- body = JSON.stringify(take(input, {
904
- apiId: [, , `ApiId`],
905
- apiMappingKey: [, , `ApiMappingKey`],
906
- stage: [, , `Stage`],
907
- }));
908
- b.m("PATCH").h(headers).b(body);
909
- return b.build();
910
- };
911
- export const se_UpdateAuthorizerCommand = async (input, context) => {
912
- const b = rb(input, context);
913
- const headers = {
914
- "content-type": "application/json",
915
- };
916
- b.bp("/v2/apis/{ApiId}/authorizers/{AuthorizerId}");
917
- b.p("ApiId", () => input.ApiId, "{ApiId}", false);
918
- b.p("AuthorizerId", () => input.AuthorizerId, "{AuthorizerId}", false);
919
- let body;
920
- body = JSON.stringify(take(input, {
921
- authorizerCredentialsArn: [, , `AuthorizerCredentialsArn`],
922
- authorizerPayloadFormatVersion: [, , `AuthorizerPayloadFormatVersion`],
923
- authorizerResultTtlInSeconds: [, , `AuthorizerResultTtlInSeconds`],
924
- authorizerType: [, , `AuthorizerType`],
925
- authorizerUri: [, , `AuthorizerUri`],
926
- enableSimpleResponses: [, , `EnableSimpleResponses`],
927
- identitySource: [, (_) => _json(_), `IdentitySource`],
928
- identityValidationExpression: [, , `IdentityValidationExpression`],
929
- jwtConfiguration: [, (_) => se_JWTConfiguration(_, context), `JwtConfiguration`],
930
- name: [, , `Name`],
931
- }));
932
- b.m("PATCH").h(headers).b(body);
933
- return b.build();
934
- };
935
- export const se_UpdateDeploymentCommand = async (input, context) => {
936
- const b = rb(input, context);
937
- const headers = {
938
- "content-type": "application/json",
939
- };
940
- b.bp("/v2/apis/{ApiId}/deployments/{DeploymentId}");
941
- b.p("ApiId", () => input.ApiId, "{ApiId}", false);
942
- b.p("DeploymentId", () => input.DeploymentId, "{DeploymentId}", false);
943
- let body;
944
- body = JSON.stringify(take(input, {
945
- description: [, , `Description`],
946
- }));
947
- b.m("PATCH").h(headers).b(body);
948
- return b.build();
949
- };
950
- export const se_UpdateDomainNameCommand = async (input, context) => {
951
- const b = rb(input, context);
952
- const headers = {
953
- "content-type": "application/json",
954
- };
955
- b.bp("/v2/domainnames/{DomainName}");
956
- b.p("DomainName", () => input.DomainName, "{DomainName}", false);
957
- let body;
958
- body = JSON.stringify(take(input, {
959
- domainNameConfigurations: [, (_) => se_DomainNameConfigurations(_, context), `DomainNameConfigurations`],
960
- mutualTlsAuthentication: [, (_) => se_MutualTlsAuthenticationInput(_, context), `MutualTlsAuthentication`],
961
- routingMode: [, , `RoutingMode`],
962
- }));
963
- b.m("PATCH").h(headers).b(body);
964
- return b.build();
965
- };
966
- export const se_UpdateIntegrationCommand = async (input, context) => {
967
- const b = rb(input, context);
968
- const headers = {
969
- "content-type": "application/json",
970
- };
971
- b.bp("/v2/apis/{ApiId}/integrations/{IntegrationId}");
972
- b.p("ApiId", () => input.ApiId, "{ApiId}", false);
973
- b.p("IntegrationId", () => input.IntegrationId, "{IntegrationId}", false);
974
- let body;
975
- body = JSON.stringify(take(input, {
976
- connectionId: [, , `ConnectionId`],
977
- connectionType: [, , `ConnectionType`],
978
- contentHandlingStrategy: [, , `ContentHandlingStrategy`],
979
- credentialsArn: [, , `CredentialsArn`],
980
- description: [, , `Description`],
981
- integrationMethod: [, , `IntegrationMethod`],
982
- integrationSubtype: [, , `IntegrationSubtype`],
983
- integrationType: [, , `IntegrationType`],
984
- integrationUri: [, , `IntegrationUri`],
985
- passthroughBehavior: [, , `PassthroughBehavior`],
986
- payloadFormatVersion: [, , `PayloadFormatVersion`],
987
- requestParameters: [, (_) => _json(_), `RequestParameters`],
988
- requestTemplates: [, (_) => _json(_), `RequestTemplates`],
989
- responseParameters: [, (_) => _json(_), `ResponseParameters`],
990
- templateSelectionExpression: [, , `TemplateSelectionExpression`],
991
- timeoutInMillis: [, , `TimeoutInMillis`],
992
- tlsConfig: [, (_) => se_TlsConfigInput(_, context), `TlsConfig`],
993
- }));
994
- b.m("PATCH").h(headers).b(body);
995
- return b.build();
996
- };
997
- export const se_UpdateIntegrationResponseCommand = async (input, context) => {
998
- const b = rb(input, context);
999
- const headers = {
1000
- "content-type": "application/json",
1001
- };
1002
- b.bp("/v2/apis/{ApiId}/integrations/{IntegrationId}/integrationresponses/{IntegrationResponseId}");
1003
- b.p("ApiId", () => input.ApiId, "{ApiId}", false);
1004
- b.p("IntegrationId", () => input.IntegrationId, "{IntegrationId}", false);
1005
- b.p("IntegrationResponseId", () => input.IntegrationResponseId, "{IntegrationResponseId}", false);
1006
- let body;
1007
- body = JSON.stringify(take(input, {
1008
- contentHandlingStrategy: [, , `ContentHandlingStrategy`],
1009
- integrationResponseKey: [, , `IntegrationResponseKey`],
1010
- responseParameters: [, (_) => _json(_), `ResponseParameters`],
1011
- responseTemplates: [, (_) => _json(_), `ResponseTemplates`],
1012
- templateSelectionExpression: [, , `TemplateSelectionExpression`],
1013
- }));
1014
- b.m("PATCH").h(headers).b(body);
1015
- return b.build();
1016
- };
1017
- export const se_UpdateModelCommand = async (input, context) => {
1018
- const b = rb(input, context);
1019
- const headers = {
1020
- "content-type": "application/json",
1021
- };
1022
- b.bp("/v2/apis/{ApiId}/models/{ModelId}");
1023
- b.p("ApiId", () => input.ApiId, "{ApiId}", false);
1024
- b.p("ModelId", () => input.ModelId, "{ModelId}", false);
1025
- let body;
1026
- body = JSON.stringify(take(input, {
1027
- contentType: [, , `ContentType`],
1028
- description: [, , `Description`],
1029
- name: [, , `Name`],
1030
- schema: [, , `Schema`],
1031
- }));
1032
- b.m("PATCH").h(headers).b(body);
1033
- return b.build();
1034
- };
1035
- export const se_UpdateRouteCommand = async (input, context) => {
1036
- const b = rb(input, context);
1037
- const headers = {
1038
- "content-type": "application/json",
1039
- };
1040
- b.bp("/v2/apis/{ApiId}/routes/{RouteId}");
1041
- b.p("ApiId", () => input.ApiId, "{ApiId}", false);
1042
- b.p("RouteId", () => input.RouteId, "{RouteId}", false);
1043
- let body;
1044
- body = JSON.stringify(take(input, {
1045
- apiKeyRequired: [, , `ApiKeyRequired`],
1046
- authorizationScopes: [, (_) => _json(_), `AuthorizationScopes`],
1047
- authorizationType: [, , `AuthorizationType`],
1048
- authorizerId: [, , `AuthorizerId`],
1049
- modelSelectionExpression: [, , `ModelSelectionExpression`],
1050
- operationName: [, , `OperationName`],
1051
- requestModels: [, (_) => _json(_), `RequestModels`],
1052
- requestParameters: [, (_) => se_RouteParameters(_, context), `RequestParameters`],
1053
- routeKey: [, , `RouteKey`],
1054
- routeResponseSelectionExpression: [, , `RouteResponseSelectionExpression`],
1055
- target: [, , `Target`],
1056
- }));
1057
- b.m("PATCH").h(headers).b(body);
1058
- return b.build();
1059
- };
1060
- export const se_UpdateRouteResponseCommand = async (input, context) => {
1061
- const b = rb(input, context);
1062
- const headers = {
1063
- "content-type": "application/json",
1064
- };
1065
- b.bp("/v2/apis/{ApiId}/routes/{RouteId}/routeresponses/{RouteResponseId}");
1066
- b.p("ApiId", () => input.ApiId, "{ApiId}", false);
1067
- b.p("RouteId", () => input.RouteId, "{RouteId}", false);
1068
- b.p("RouteResponseId", () => input.RouteResponseId, "{RouteResponseId}", false);
1069
- let body;
1070
- body = JSON.stringify(take(input, {
1071
- modelSelectionExpression: [, , `ModelSelectionExpression`],
1072
- responseModels: [, (_) => _json(_), `ResponseModels`],
1073
- responseParameters: [, (_) => se_RouteParameters(_, context), `ResponseParameters`],
1074
- routeResponseKey: [, , `RouteResponseKey`],
1075
- }));
1076
- b.m("PATCH").h(headers).b(body);
1077
- return b.build();
1078
- };
1079
- export const se_UpdateStageCommand = async (input, context) => {
1080
- const b = rb(input, context);
1081
- const headers = {
1082
- "content-type": "application/json",
1083
- };
1084
- b.bp("/v2/apis/{ApiId}/stages/{StageName}");
1085
- b.p("ApiId", () => input.ApiId, "{ApiId}", false);
1086
- b.p("StageName", () => input.StageName, "{StageName}", false);
1087
- let body;
1088
- body = JSON.stringify(take(input, {
1089
- accessLogSettings: [, (_) => se_AccessLogSettings(_, context), `AccessLogSettings`],
1090
- autoDeploy: [, , `AutoDeploy`],
1091
- clientCertificateId: [, , `ClientCertificateId`],
1092
- defaultRouteSettings: [, (_) => se_RouteSettings(_, context), `DefaultRouteSettings`],
1093
- deploymentId: [, , `DeploymentId`],
1094
- description: [, , `Description`],
1095
- routeSettings: [, (_) => se_RouteSettingsMap(_, context), `RouteSettings`],
1096
- stageVariables: [, (_) => _json(_), `StageVariables`],
1097
- }));
1098
- b.m("PATCH").h(headers).b(body);
1099
- return b.build();
1100
- };
1101
- export const se_UpdateVpcLinkCommand = async (input, context) => {
1102
- const b = rb(input, context);
1103
- const headers = {
1104
- "content-type": "application/json",
1105
- };
1106
- b.bp("/v2/vpclinks/{VpcLinkId}");
1107
- b.p("VpcLinkId", () => input.VpcLinkId, "{VpcLinkId}", false);
1108
- let body;
1109
- body = JSON.stringify(take(input, {
1110
- name: [, , `Name`],
1111
- }));
1112
- b.m("PATCH").h(headers).b(body);
1113
- return b.build();
1114
- };
1115
- export const de_CreateApiCommand = async (output, context) => {
1116
- if (output.statusCode !== 201 && output.statusCode >= 300) {
1117
- return de_CommandError(output, context);
1118
- }
1119
- const contents = map({
1120
- $metadata: deserializeMetadata(output),
1121
- });
1122
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1123
- const doc = take(data, {
1124
- ApiEndpoint: [, __expectString, `apiEndpoint`],
1125
- ApiGatewayManaged: [, __expectBoolean, `apiGatewayManaged`],
1126
- ApiId: [, __expectString, `apiId`],
1127
- ApiKeySelectionExpression: [, __expectString, `apiKeySelectionExpression`],
1128
- CorsConfiguration: [, (_) => de_Cors(_, context), `corsConfiguration`],
1129
- CreatedDate: [, (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)), `createdDate`],
1130
- Description: [, __expectString, `description`],
1131
- DisableExecuteApiEndpoint: [, __expectBoolean, `disableExecuteApiEndpoint`],
1132
- DisableSchemaValidation: [, __expectBoolean, `disableSchemaValidation`],
1133
- ImportInfo: [, _json, `importInfo`],
1134
- IpAddressType: [, __expectString, `ipAddressType`],
1135
- Name: [, __expectString, `name`],
1136
- ProtocolType: [, __expectString, `protocolType`],
1137
- RouteSelectionExpression: [, __expectString, `routeSelectionExpression`],
1138
- Tags: [, _json, `tags`],
1139
- Version: [, __expectString, `version`],
1140
- Warnings: [, _json, `warnings`],
1141
- });
1142
- Object.assign(contents, doc);
1143
- return contents;
1144
- };
1145
- export const de_CreateApiMappingCommand = async (output, context) => {
1146
- if (output.statusCode !== 201 && output.statusCode >= 300) {
1147
- return de_CommandError(output, context);
1148
- }
1149
- const contents = map({
1150
- $metadata: deserializeMetadata(output),
1151
- });
1152
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1153
- const doc = take(data, {
1154
- ApiId: [, __expectString, `apiId`],
1155
- ApiMappingId: [, __expectString, `apiMappingId`],
1156
- ApiMappingKey: [, __expectString, `apiMappingKey`],
1157
- Stage: [, __expectString, `stage`],
1158
- });
1159
- Object.assign(contents, doc);
1160
- return contents;
1161
- };
1162
- export const de_CreateAuthorizerCommand = async (output, context) => {
1163
- if (output.statusCode !== 201 && output.statusCode >= 300) {
1164
- return de_CommandError(output, context);
1165
- }
1166
- const contents = map({
1167
- $metadata: deserializeMetadata(output),
1168
- });
1169
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1170
- const doc = take(data, {
1171
- AuthorizerCredentialsArn: [, __expectString, `authorizerCredentialsArn`],
1172
- AuthorizerId: [, __expectString, `authorizerId`],
1173
- AuthorizerPayloadFormatVersion: [, __expectString, `authorizerPayloadFormatVersion`],
1174
- AuthorizerResultTtlInSeconds: [, __expectInt32, `authorizerResultTtlInSeconds`],
1175
- AuthorizerType: [, __expectString, `authorizerType`],
1176
- AuthorizerUri: [, __expectString, `authorizerUri`],
1177
- EnableSimpleResponses: [, __expectBoolean, `enableSimpleResponses`],
1178
- IdentitySource: [, _json, `identitySource`],
1179
- IdentityValidationExpression: [, __expectString, `identityValidationExpression`],
1180
- JwtConfiguration: [, (_) => de_JWTConfiguration(_, context), `jwtConfiguration`],
1181
- Name: [, __expectString, `name`],
1182
- });
1183
- Object.assign(contents, doc);
1184
- return contents;
1185
- };
1186
- export const de_CreateDeploymentCommand = async (output, context) => {
1187
- if (output.statusCode !== 201 && output.statusCode >= 300) {
1188
- return de_CommandError(output, context);
1189
- }
1190
- const contents = map({
1191
- $metadata: deserializeMetadata(output),
1192
- });
1193
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1194
- const doc = take(data, {
1195
- AutoDeployed: [, __expectBoolean, `autoDeployed`],
1196
- CreatedDate: [, (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)), `createdDate`],
1197
- DeploymentId: [, __expectString, `deploymentId`],
1198
- DeploymentStatus: [, __expectString, `deploymentStatus`],
1199
- DeploymentStatusMessage: [, __expectString, `deploymentStatusMessage`],
1200
- Description: [, __expectString, `description`],
1201
- });
1202
- Object.assign(contents, doc);
1203
- return contents;
1204
- };
1205
- export const de_CreateDomainNameCommand = async (output, context) => {
1206
- if (output.statusCode !== 201 && output.statusCode >= 300) {
1207
- return de_CommandError(output, context);
1208
- }
1209
- const contents = map({
1210
- $metadata: deserializeMetadata(output),
1211
- });
1212
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1213
- const doc = take(data, {
1214
- ApiMappingSelectionExpression: [, __expectString, `apiMappingSelectionExpression`],
1215
- DomainName: [, __expectString, `domainName`],
1216
- DomainNameArn: [, __expectString, `domainNameArn`],
1217
- DomainNameConfigurations: [, (_) => de_DomainNameConfigurations(_, context), `domainNameConfigurations`],
1218
- MutualTlsAuthentication: [, (_) => de_MutualTlsAuthentication(_, context), `mutualTlsAuthentication`],
1219
- RoutingMode: [, __expectString, `routingMode`],
1220
- Tags: [, _json, `tags`],
1221
- });
1222
- Object.assign(contents, doc);
1223
- return contents;
1224
- };
1225
- export const de_CreateIntegrationCommand = async (output, context) => {
1226
- if (output.statusCode !== 201 && output.statusCode >= 300) {
1227
- return de_CommandError(output, context);
1228
- }
1229
- const contents = map({
1230
- $metadata: deserializeMetadata(output),
1231
- });
1232
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1233
- const doc = take(data, {
1234
- ApiGatewayManaged: [, __expectBoolean, `apiGatewayManaged`],
1235
- ConnectionId: [, __expectString, `connectionId`],
1236
- ConnectionType: [, __expectString, `connectionType`],
1237
- ContentHandlingStrategy: [, __expectString, `contentHandlingStrategy`],
1238
- CredentialsArn: [, __expectString, `credentialsArn`],
1239
- Description: [, __expectString, `description`],
1240
- IntegrationId: [, __expectString, `integrationId`],
1241
- IntegrationMethod: [, __expectString, `integrationMethod`],
1242
- IntegrationResponseSelectionExpression: [, __expectString, `integrationResponseSelectionExpression`],
1243
- IntegrationSubtype: [, __expectString, `integrationSubtype`],
1244
- IntegrationType: [, __expectString, `integrationType`],
1245
- IntegrationUri: [, __expectString, `integrationUri`],
1246
- PassthroughBehavior: [, __expectString, `passthroughBehavior`],
1247
- PayloadFormatVersion: [, __expectString, `payloadFormatVersion`],
1248
- RequestParameters: [, _json, `requestParameters`],
1249
- RequestTemplates: [, _json, `requestTemplates`],
1250
- ResponseParameters: [, _json, `responseParameters`],
1251
- TemplateSelectionExpression: [, __expectString, `templateSelectionExpression`],
1252
- TimeoutInMillis: [, __expectInt32, `timeoutInMillis`],
1253
- TlsConfig: [, (_) => de_TlsConfig(_, context), `tlsConfig`],
1254
- });
1255
- Object.assign(contents, doc);
1256
- return contents;
1257
- };
1258
- export const de_CreateIntegrationResponseCommand = async (output, context) => {
1259
- if (output.statusCode !== 201 && output.statusCode >= 300) {
1260
- return de_CommandError(output, context);
1261
- }
1262
- const contents = map({
1263
- $metadata: deserializeMetadata(output),
1264
- });
1265
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1266
- const doc = take(data, {
1267
- ContentHandlingStrategy: [, __expectString, `contentHandlingStrategy`],
1268
- IntegrationResponseId: [, __expectString, `integrationResponseId`],
1269
- IntegrationResponseKey: [, __expectString, `integrationResponseKey`],
1270
- ResponseParameters: [, _json, `responseParameters`],
1271
- ResponseTemplates: [, _json, `responseTemplates`],
1272
- TemplateSelectionExpression: [, __expectString, `templateSelectionExpression`],
1273
- });
1274
- Object.assign(contents, doc);
1275
- return contents;
1276
- };
1277
- export const de_CreateModelCommand = async (output, context) => {
1278
- if (output.statusCode !== 201 && output.statusCode >= 300) {
1279
- return de_CommandError(output, context);
1280
- }
1281
- const contents = map({
1282
- $metadata: deserializeMetadata(output),
1283
- });
1284
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1285
- const doc = take(data, {
1286
- ContentType: [, __expectString, `contentType`],
1287
- Description: [, __expectString, `description`],
1288
- ModelId: [, __expectString, `modelId`],
1289
- Name: [, __expectString, `name`],
1290
- Schema: [, __expectString, `schema`],
1291
- });
1292
- Object.assign(contents, doc);
1293
- return contents;
1294
- };
1295
- export const de_CreateRouteCommand = async (output, context) => {
1296
- if (output.statusCode !== 201 && output.statusCode >= 300) {
1297
- return de_CommandError(output, context);
1298
- }
1299
- const contents = map({
1300
- $metadata: deserializeMetadata(output),
1301
- });
1302
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1303
- const doc = take(data, {
1304
- ApiGatewayManaged: [, __expectBoolean, `apiGatewayManaged`],
1305
- ApiKeyRequired: [, __expectBoolean, `apiKeyRequired`],
1306
- AuthorizationScopes: [, _json, `authorizationScopes`],
1307
- AuthorizationType: [, __expectString, `authorizationType`],
1308
- AuthorizerId: [, __expectString, `authorizerId`],
1309
- ModelSelectionExpression: [, __expectString, `modelSelectionExpression`],
1310
- OperationName: [, __expectString, `operationName`],
1311
- RequestModels: [, _json, `requestModels`],
1312
- RequestParameters: [, (_) => de_RouteParameters(_, context), `requestParameters`],
1313
- RouteId: [, __expectString, `routeId`],
1314
- RouteKey: [, __expectString, `routeKey`],
1315
- RouteResponseSelectionExpression: [, __expectString, `routeResponseSelectionExpression`],
1316
- Target: [, __expectString, `target`],
1317
- });
1318
- Object.assign(contents, doc);
1319
- return contents;
1320
- };
1321
- export const de_CreateRouteResponseCommand = async (output, context) => {
1322
- if (output.statusCode !== 201 && output.statusCode >= 300) {
1323
- return de_CommandError(output, context);
1324
- }
1325
- const contents = map({
1326
- $metadata: deserializeMetadata(output),
1327
- });
1328
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1329
- const doc = take(data, {
1330
- ModelSelectionExpression: [, __expectString, `modelSelectionExpression`],
1331
- ResponseModels: [, _json, `responseModels`],
1332
- ResponseParameters: [, (_) => de_RouteParameters(_, context), `responseParameters`],
1333
- RouteResponseId: [, __expectString, `routeResponseId`],
1334
- RouteResponseKey: [, __expectString, `routeResponseKey`],
1335
- });
1336
- Object.assign(contents, doc);
1337
- return contents;
1338
- };
1339
- export const de_CreateRoutingRuleCommand = async (output, context) => {
1340
- if (output.statusCode !== 201 && output.statusCode >= 300) {
1341
- return de_CommandError(output, context);
1342
- }
1343
- const contents = map({
1344
- $metadata: deserializeMetadata(output),
1345
- });
1346
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1347
- const doc = take(data, {
1348
- Actions: [, (_) => de___listOfRoutingRuleAction(_, context), `actions`],
1349
- Conditions: [, (_) => de___listOfRoutingRuleCondition(_, context), `conditions`],
1350
- Priority: [, __expectInt32, `priority`],
1351
- RoutingRuleArn: [, __expectString, `routingRuleArn`],
1352
- RoutingRuleId: [, __expectString, `routingRuleId`],
1353
- });
1354
- Object.assign(contents, doc);
1355
- return contents;
1356
- };
1357
- export const de_CreateStageCommand = async (output, context) => {
1358
- if (output.statusCode !== 201 && output.statusCode >= 300) {
1359
- return de_CommandError(output, context);
1360
- }
1361
- const contents = map({
1362
- $metadata: deserializeMetadata(output),
1363
- });
1364
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1365
- const doc = take(data, {
1366
- AccessLogSettings: [, (_) => de_AccessLogSettings(_, context), `accessLogSettings`],
1367
- ApiGatewayManaged: [, __expectBoolean, `apiGatewayManaged`],
1368
- AutoDeploy: [, __expectBoolean, `autoDeploy`],
1369
- ClientCertificateId: [, __expectString, `clientCertificateId`],
1370
- CreatedDate: [, (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)), `createdDate`],
1371
- DefaultRouteSettings: [, (_) => de_RouteSettings(_, context), `defaultRouteSettings`],
1372
- DeploymentId: [, __expectString, `deploymentId`],
1373
- Description: [, __expectString, `description`],
1374
- LastDeploymentStatusMessage: [, __expectString, `lastDeploymentStatusMessage`],
1375
- LastUpdatedDate: [, (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)), `lastUpdatedDate`],
1376
- RouteSettings: [, (_) => de_RouteSettingsMap(_, context), `routeSettings`],
1377
- StageName: [, __expectString, `stageName`],
1378
- StageVariables: [, _json, `stageVariables`],
1379
- Tags: [, _json, `tags`],
1380
- });
1381
- Object.assign(contents, doc);
1382
- return contents;
1383
- };
1384
- export const de_CreateVpcLinkCommand = async (output, context) => {
1385
- if (output.statusCode !== 201 && output.statusCode >= 300) {
1386
- return de_CommandError(output, context);
1387
- }
1388
- const contents = map({
1389
- $metadata: deserializeMetadata(output),
1390
- });
1391
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1392
- const doc = take(data, {
1393
- CreatedDate: [, (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)), `createdDate`],
1394
- Name: [, __expectString, `name`],
1395
- SecurityGroupIds: [, _json, `securityGroupIds`],
1396
- SubnetIds: [, _json, `subnetIds`],
1397
- Tags: [, _json, `tags`],
1398
- VpcLinkId: [, __expectString, `vpcLinkId`],
1399
- VpcLinkStatus: [, __expectString, `vpcLinkStatus`],
1400
- VpcLinkStatusMessage: [, __expectString, `vpcLinkStatusMessage`],
1401
- VpcLinkVersion: [, __expectString, `vpcLinkVersion`],
1402
- });
1403
- Object.assign(contents, doc);
1404
- return contents;
1405
- };
1406
- export const de_DeleteAccessLogSettingsCommand = async (output, context) => {
1407
- if (output.statusCode !== 204 && output.statusCode >= 300) {
1408
- return de_CommandError(output, context);
1409
- }
1410
- const contents = map({
1411
- $metadata: deserializeMetadata(output),
1412
- });
1413
- await collectBody(output.body, context);
1414
- return contents;
1415
- };
1416
- export const de_DeleteApiCommand = async (output, context) => {
1417
- if (output.statusCode !== 204 && output.statusCode >= 300) {
1418
- return de_CommandError(output, context);
1419
- }
1420
- const contents = map({
1421
- $metadata: deserializeMetadata(output),
1422
- });
1423
- await collectBody(output.body, context);
1424
- return contents;
1425
- };
1426
- export const de_DeleteApiMappingCommand = async (output, context) => {
1427
- if (output.statusCode !== 204 && output.statusCode >= 300) {
1428
- return de_CommandError(output, context);
1429
- }
1430
- const contents = map({
1431
- $metadata: deserializeMetadata(output),
1432
- });
1433
- await collectBody(output.body, context);
1434
- return contents;
1435
- };
1436
- export const de_DeleteAuthorizerCommand = async (output, context) => {
1437
- if (output.statusCode !== 204 && output.statusCode >= 300) {
1438
- return de_CommandError(output, context);
1439
- }
1440
- const contents = map({
1441
- $metadata: deserializeMetadata(output),
1442
- });
1443
- await collectBody(output.body, context);
1444
- return contents;
1445
- };
1446
- export const de_DeleteCorsConfigurationCommand = async (output, context) => {
1447
- if (output.statusCode !== 204 && output.statusCode >= 300) {
1448
- return de_CommandError(output, context);
1449
- }
1450
- const contents = map({
1451
- $metadata: deserializeMetadata(output),
1452
- });
1453
- await collectBody(output.body, context);
1454
- return contents;
1455
- };
1456
- export const de_DeleteDeploymentCommand = async (output, context) => {
1457
- if (output.statusCode !== 204 && output.statusCode >= 300) {
1458
- return de_CommandError(output, context);
1459
- }
1460
- const contents = map({
1461
- $metadata: deserializeMetadata(output),
1462
- });
1463
- await collectBody(output.body, context);
1464
- return contents;
1465
- };
1466
- export const de_DeleteDomainNameCommand = async (output, context) => {
1467
- if (output.statusCode !== 204 && output.statusCode >= 300) {
1468
- return de_CommandError(output, context);
1469
- }
1470
- const contents = map({
1471
- $metadata: deserializeMetadata(output),
1472
- });
1473
- await collectBody(output.body, context);
1474
- return contents;
1475
- };
1476
- export const de_DeleteIntegrationCommand = async (output, context) => {
1477
- if (output.statusCode !== 204 && output.statusCode >= 300) {
1478
- return de_CommandError(output, context);
1479
- }
1480
- const contents = map({
1481
- $metadata: deserializeMetadata(output),
1482
- });
1483
- await collectBody(output.body, context);
1484
- return contents;
1485
- };
1486
- export const de_DeleteIntegrationResponseCommand = async (output, context) => {
1487
- if (output.statusCode !== 204 && output.statusCode >= 300) {
1488
- return de_CommandError(output, context);
1489
- }
1490
- const contents = map({
1491
- $metadata: deserializeMetadata(output),
1492
- });
1493
- await collectBody(output.body, context);
1494
- return contents;
1495
- };
1496
- export const de_DeleteModelCommand = async (output, context) => {
1497
- if (output.statusCode !== 204 && output.statusCode >= 300) {
1498
- return de_CommandError(output, context);
1499
- }
1500
- const contents = map({
1501
- $metadata: deserializeMetadata(output),
1502
- });
1503
- await collectBody(output.body, context);
1504
- return contents;
1505
- };
1506
- export const de_DeleteRouteCommand = async (output, context) => {
1507
- if (output.statusCode !== 204 && output.statusCode >= 300) {
1508
- return de_CommandError(output, context);
1509
- }
1510
- const contents = map({
1511
- $metadata: deserializeMetadata(output),
1512
- });
1513
- await collectBody(output.body, context);
1514
- return contents;
1515
- };
1516
- export const de_DeleteRouteRequestParameterCommand = async (output, context) => {
1517
- if (output.statusCode !== 204 && output.statusCode >= 300) {
1518
- return de_CommandError(output, context);
1519
- }
1520
- const contents = map({
1521
- $metadata: deserializeMetadata(output),
1522
- });
1523
- await collectBody(output.body, context);
1524
- return contents;
1525
- };
1526
- export const de_DeleteRouteResponseCommand = async (output, context) => {
1527
- if (output.statusCode !== 204 && output.statusCode >= 300) {
1528
- return de_CommandError(output, context);
1529
- }
1530
- const contents = map({
1531
- $metadata: deserializeMetadata(output),
1532
- });
1533
- await collectBody(output.body, context);
1534
- return contents;
1535
- };
1536
- export const de_DeleteRouteSettingsCommand = async (output, context) => {
1537
- if (output.statusCode !== 204 && output.statusCode >= 300) {
1538
- return de_CommandError(output, context);
1539
- }
1540
- const contents = map({
1541
- $metadata: deserializeMetadata(output),
1542
- });
1543
- await collectBody(output.body, context);
1544
- return contents;
1545
- };
1546
- export const de_DeleteRoutingRuleCommand = async (output, context) => {
1547
- if (output.statusCode !== 204 && output.statusCode >= 300) {
1548
- return de_CommandError(output, context);
1549
- }
1550
- const contents = map({
1551
- $metadata: deserializeMetadata(output),
1552
- });
1553
- await collectBody(output.body, context);
1554
- return contents;
1555
- };
1556
- export const de_DeleteStageCommand = async (output, context) => {
1557
- if (output.statusCode !== 204 && output.statusCode >= 300) {
1558
- return de_CommandError(output, context);
1559
- }
1560
- const contents = map({
1561
- $metadata: deserializeMetadata(output),
1562
- });
1563
- await collectBody(output.body, context);
1564
- return contents;
1565
- };
1566
- export const de_DeleteVpcLinkCommand = async (output, context) => {
1567
- if (output.statusCode !== 202 && output.statusCode >= 300) {
1568
- return de_CommandError(output, context);
1569
- }
1570
- const contents = map({
1571
- $metadata: deserializeMetadata(output),
1572
- });
1573
- await collectBody(output.body, context);
1574
- return contents;
1575
- };
1576
- export const de_ExportApiCommand = async (output, context) => {
1577
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1578
- return de_CommandError(output, context);
1579
- }
1580
- const contents = map({
1581
- $metadata: deserializeMetadata(output),
1582
- });
1583
- const data = await collectBody(output.body, context);
1584
- contents.body = data;
1585
- return contents;
1586
- };
1587
- export const de_GetApiCommand = async (output, context) => {
1588
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1589
- return de_CommandError(output, context);
1590
- }
1591
- const contents = map({
1592
- $metadata: deserializeMetadata(output),
1593
- });
1594
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1595
- const doc = take(data, {
1596
- ApiEndpoint: [, __expectString, `apiEndpoint`],
1597
- ApiGatewayManaged: [, __expectBoolean, `apiGatewayManaged`],
1598
- ApiId: [, __expectString, `apiId`],
1599
- ApiKeySelectionExpression: [, __expectString, `apiKeySelectionExpression`],
1600
- CorsConfiguration: [, (_) => de_Cors(_, context), `corsConfiguration`],
1601
- CreatedDate: [, (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)), `createdDate`],
1602
- Description: [, __expectString, `description`],
1603
- DisableExecuteApiEndpoint: [, __expectBoolean, `disableExecuteApiEndpoint`],
1604
- DisableSchemaValidation: [, __expectBoolean, `disableSchemaValidation`],
1605
- ImportInfo: [, _json, `importInfo`],
1606
- IpAddressType: [, __expectString, `ipAddressType`],
1607
- Name: [, __expectString, `name`],
1608
- ProtocolType: [, __expectString, `protocolType`],
1609
- RouteSelectionExpression: [, __expectString, `routeSelectionExpression`],
1610
- Tags: [, _json, `tags`],
1611
- Version: [, __expectString, `version`],
1612
- Warnings: [, _json, `warnings`],
1613
- });
1614
- Object.assign(contents, doc);
1615
- return contents;
1616
- };
1617
- export const de_GetApiMappingCommand = async (output, context) => {
1618
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1619
- return de_CommandError(output, context);
1620
- }
1621
- const contents = map({
1622
- $metadata: deserializeMetadata(output),
1623
- });
1624
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1625
- const doc = take(data, {
1626
- ApiId: [, __expectString, `apiId`],
1627
- ApiMappingId: [, __expectString, `apiMappingId`],
1628
- ApiMappingKey: [, __expectString, `apiMappingKey`],
1629
- Stage: [, __expectString, `stage`],
1630
- });
1631
- Object.assign(contents, doc);
1632
- return contents;
1633
- };
1634
- export const de_GetApiMappingsCommand = async (output, context) => {
1635
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1636
- return de_CommandError(output, context);
1637
- }
1638
- const contents = map({
1639
- $metadata: deserializeMetadata(output),
1640
- });
1641
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1642
- const doc = take(data, {
1643
- Items: [, (_) => de___listOfApiMapping(_, context), `items`],
1644
- NextToken: [, __expectString, `nextToken`],
1645
- });
1646
- Object.assign(contents, doc);
1647
- return contents;
1648
- };
1649
- export const de_GetApisCommand = async (output, context) => {
1650
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1651
- return de_CommandError(output, context);
1652
- }
1653
- const contents = map({
1654
- $metadata: deserializeMetadata(output),
1655
- });
1656
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1657
- const doc = take(data, {
1658
- Items: [, (_) => de___listOfApi(_, context), `items`],
1659
- NextToken: [, __expectString, `nextToken`],
1660
- });
1661
- Object.assign(contents, doc);
1662
- return contents;
1663
- };
1664
- export const de_GetAuthorizerCommand = async (output, context) => {
1665
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1666
- return de_CommandError(output, context);
1667
- }
1668
- const contents = map({
1669
- $metadata: deserializeMetadata(output),
1670
- });
1671
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1672
- const doc = take(data, {
1673
- AuthorizerCredentialsArn: [, __expectString, `authorizerCredentialsArn`],
1674
- AuthorizerId: [, __expectString, `authorizerId`],
1675
- AuthorizerPayloadFormatVersion: [, __expectString, `authorizerPayloadFormatVersion`],
1676
- AuthorizerResultTtlInSeconds: [, __expectInt32, `authorizerResultTtlInSeconds`],
1677
- AuthorizerType: [, __expectString, `authorizerType`],
1678
- AuthorizerUri: [, __expectString, `authorizerUri`],
1679
- EnableSimpleResponses: [, __expectBoolean, `enableSimpleResponses`],
1680
- IdentitySource: [, _json, `identitySource`],
1681
- IdentityValidationExpression: [, __expectString, `identityValidationExpression`],
1682
- JwtConfiguration: [, (_) => de_JWTConfiguration(_, context), `jwtConfiguration`],
1683
- Name: [, __expectString, `name`],
1684
- });
1685
- Object.assign(contents, doc);
1686
- return contents;
1687
- };
1688
- export const de_GetAuthorizersCommand = async (output, context) => {
1689
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1690
- return de_CommandError(output, context);
1691
- }
1692
- const contents = map({
1693
- $metadata: deserializeMetadata(output),
1694
- });
1695
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1696
- const doc = take(data, {
1697
- Items: [, (_) => de___listOfAuthorizer(_, context), `items`],
1698
- NextToken: [, __expectString, `nextToken`],
1699
- });
1700
- Object.assign(contents, doc);
1701
- return contents;
1702
- };
1703
- export const de_GetDeploymentCommand = async (output, context) => {
1704
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1705
- return de_CommandError(output, context);
1706
- }
1707
- const contents = map({
1708
- $metadata: deserializeMetadata(output),
1709
- });
1710
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1711
- const doc = take(data, {
1712
- AutoDeployed: [, __expectBoolean, `autoDeployed`],
1713
- CreatedDate: [, (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)), `createdDate`],
1714
- DeploymentId: [, __expectString, `deploymentId`],
1715
- DeploymentStatus: [, __expectString, `deploymentStatus`],
1716
- DeploymentStatusMessage: [, __expectString, `deploymentStatusMessage`],
1717
- Description: [, __expectString, `description`],
1718
- });
1719
- Object.assign(contents, doc);
1720
- return contents;
1721
- };
1722
- export const de_GetDeploymentsCommand = async (output, context) => {
1723
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1724
- return de_CommandError(output, context);
1725
- }
1726
- const contents = map({
1727
- $metadata: deserializeMetadata(output),
1728
- });
1729
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1730
- const doc = take(data, {
1731
- Items: [, (_) => de___listOfDeployment(_, context), `items`],
1732
- NextToken: [, __expectString, `nextToken`],
1733
- });
1734
- Object.assign(contents, doc);
1735
- return contents;
1736
- };
1737
- export const de_GetDomainNameCommand = async (output, context) => {
1738
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1739
- return de_CommandError(output, context);
1740
- }
1741
- const contents = map({
1742
- $metadata: deserializeMetadata(output),
1743
- });
1744
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1745
- const doc = take(data, {
1746
- ApiMappingSelectionExpression: [, __expectString, `apiMappingSelectionExpression`],
1747
- DomainName: [, __expectString, `domainName`],
1748
- DomainNameArn: [, __expectString, `domainNameArn`],
1749
- DomainNameConfigurations: [, (_) => de_DomainNameConfigurations(_, context), `domainNameConfigurations`],
1750
- MutualTlsAuthentication: [, (_) => de_MutualTlsAuthentication(_, context), `mutualTlsAuthentication`],
1751
- RoutingMode: [, __expectString, `routingMode`],
1752
- Tags: [, _json, `tags`],
1753
- });
1754
- Object.assign(contents, doc);
1755
- return contents;
1756
- };
1757
- export const de_GetDomainNamesCommand = async (output, context) => {
1758
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1759
- return de_CommandError(output, context);
1760
- }
1761
- const contents = map({
1762
- $metadata: deserializeMetadata(output),
1763
- });
1764
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1765
- const doc = take(data, {
1766
- Items: [, (_) => de___listOfDomainName(_, context), `items`],
1767
- NextToken: [, __expectString, `nextToken`],
1768
- });
1769
- Object.assign(contents, doc);
1770
- return contents;
1771
- };
1772
- export const de_GetIntegrationCommand = async (output, context) => {
1773
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1774
- return de_CommandError(output, context);
1775
- }
1776
- const contents = map({
1777
- $metadata: deserializeMetadata(output),
1778
- });
1779
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1780
- const doc = take(data, {
1781
- ApiGatewayManaged: [, __expectBoolean, `apiGatewayManaged`],
1782
- ConnectionId: [, __expectString, `connectionId`],
1783
- ConnectionType: [, __expectString, `connectionType`],
1784
- ContentHandlingStrategy: [, __expectString, `contentHandlingStrategy`],
1785
- CredentialsArn: [, __expectString, `credentialsArn`],
1786
- Description: [, __expectString, `description`],
1787
- IntegrationId: [, __expectString, `integrationId`],
1788
- IntegrationMethod: [, __expectString, `integrationMethod`],
1789
- IntegrationResponseSelectionExpression: [, __expectString, `integrationResponseSelectionExpression`],
1790
- IntegrationSubtype: [, __expectString, `integrationSubtype`],
1791
- IntegrationType: [, __expectString, `integrationType`],
1792
- IntegrationUri: [, __expectString, `integrationUri`],
1793
- PassthroughBehavior: [, __expectString, `passthroughBehavior`],
1794
- PayloadFormatVersion: [, __expectString, `payloadFormatVersion`],
1795
- RequestParameters: [, _json, `requestParameters`],
1796
- RequestTemplates: [, _json, `requestTemplates`],
1797
- ResponseParameters: [, _json, `responseParameters`],
1798
- TemplateSelectionExpression: [, __expectString, `templateSelectionExpression`],
1799
- TimeoutInMillis: [, __expectInt32, `timeoutInMillis`],
1800
- TlsConfig: [, (_) => de_TlsConfig(_, context), `tlsConfig`],
1801
- });
1802
- Object.assign(contents, doc);
1803
- return contents;
1804
- };
1805
- export const de_GetIntegrationResponseCommand = async (output, context) => {
1806
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1807
- return de_CommandError(output, context);
1808
- }
1809
- const contents = map({
1810
- $metadata: deserializeMetadata(output),
1811
- });
1812
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1813
- const doc = take(data, {
1814
- ContentHandlingStrategy: [, __expectString, `contentHandlingStrategy`],
1815
- IntegrationResponseId: [, __expectString, `integrationResponseId`],
1816
- IntegrationResponseKey: [, __expectString, `integrationResponseKey`],
1817
- ResponseParameters: [, _json, `responseParameters`],
1818
- ResponseTemplates: [, _json, `responseTemplates`],
1819
- TemplateSelectionExpression: [, __expectString, `templateSelectionExpression`],
1820
- });
1821
- Object.assign(contents, doc);
1822
- return contents;
1823
- };
1824
- export const de_GetIntegrationResponsesCommand = async (output, context) => {
1825
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1826
- return de_CommandError(output, context);
1827
- }
1828
- const contents = map({
1829
- $metadata: deserializeMetadata(output),
1830
- });
1831
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1832
- const doc = take(data, {
1833
- Items: [, (_) => de___listOfIntegrationResponse(_, context), `items`],
1834
- NextToken: [, __expectString, `nextToken`],
1835
- });
1836
- Object.assign(contents, doc);
1837
- return contents;
1838
- };
1839
- export const de_GetIntegrationsCommand = async (output, context) => {
1840
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1841
- return de_CommandError(output, context);
1842
- }
1843
- const contents = map({
1844
- $metadata: deserializeMetadata(output),
1845
- });
1846
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1847
- const doc = take(data, {
1848
- Items: [, (_) => de___listOfIntegration(_, context), `items`],
1849
- NextToken: [, __expectString, `nextToken`],
1850
- });
1851
- Object.assign(contents, doc);
1852
- return contents;
1853
- };
1854
- export const de_GetModelCommand = async (output, context) => {
1855
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1856
- return de_CommandError(output, context);
1857
- }
1858
- const contents = map({
1859
- $metadata: deserializeMetadata(output),
1860
- });
1861
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1862
- const doc = take(data, {
1863
- ContentType: [, __expectString, `contentType`],
1864
- Description: [, __expectString, `description`],
1865
- ModelId: [, __expectString, `modelId`],
1866
- Name: [, __expectString, `name`],
1867
- Schema: [, __expectString, `schema`],
1868
- });
1869
- Object.assign(contents, doc);
1870
- return contents;
1871
- };
1872
- export const de_GetModelsCommand = async (output, context) => {
1873
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1874
- return de_CommandError(output, context);
1875
- }
1876
- const contents = map({
1877
- $metadata: deserializeMetadata(output),
1878
- });
1879
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1880
- const doc = take(data, {
1881
- Items: [, (_) => de___listOfModel(_, context), `items`],
1882
- NextToken: [, __expectString, `nextToken`],
1883
- });
1884
- Object.assign(contents, doc);
1885
- return contents;
1886
- };
1887
- export const de_GetModelTemplateCommand = async (output, context) => {
1888
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1889
- return de_CommandError(output, context);
1890
- }
1891
- const contents = map({
1892
- $metadata: deserializeMetadata(output),
1893
- });
1894
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1895
- const doc = take(data, {
1896
- Value: [, __expectString, `value`],
1897
- });
1898
- Object.assign(contents, doc);
1899
- return contents;
1900
- };
1901
- export const de_GetRouteCommand = async (output, context) => {
1902
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1903
- return de_CommandError(output, context);
1904
- }
1905
- const contents = map({
1906
- $metadata: deserializeMetadata(output),
1907
- });
1908
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1909
- const doc = take(data, {
1910
- ApiGatewayManaged: [, __expectBoolean, `apiGatewayManaged`],
1911
- ApiKeyRequired: [, __expectBoolean, `apiKeyRequired`],
1912
- AuthorizationScopes: [, _json, `authorizationScopes`],
1913
- AuthorizationType: [, __expectString, `authorizationType`],
1914
- AuthorizerId: [, __expectString, `authorizerId`],
1915
- ModelSelectionExpression: [, __expectString, `modelSelectionExpression`],
1916
- OperationName: [, __expectString, `operationName`],
1917
- RequestModels: [, _json, `requestModels`],
1918
- RequestParameters: [, (_) => de_RouteParameters(_, context), `requestParameters`],
1919
- RouteId: [, __expectString, `routeId`],
1920
- RouteKey: [, __expectString, `routeKey`],
1921
- RouteResponseSelectionExpression: [, __expectString, `routeResponseSelectionExpression`],
1922
- Target: [, __expectString, `target`],
1923
- });
1924
- Object.assign(contents, doc);
1925
- return contents;
1926
- };
1927
- export const de_GetRouteResponseCommand = async (output, context) => {
1928
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1929
- return de_CommandError(output, context);
1930
- }
1931
- const contents = map({
1932
- $metadata: deserializeMetadata(output),
1933
- });
1934
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1935
- const doc = take(data, {
1936
- ModelSelectionExpression: [, __expectString, `modelSelectionExpression`],
1937
- ResponseModels: [, _json, `responseModels`],
1938
- ResponseParameters: [, (_) => de_RouteParameters(_, context), `responseParameters`],
1939
- RouteResponseId: [, __expectString, `routeResponseId`],
1940
- RouteResponseKey: [, __expectString, `routeResponseKey`],
1941
- });
1942
- Object.assign(contents, doc);
1943
- return contents;
1944
- };
1945
- export const de_GetRouteResponsesCommand = async (output, context) => {
1946
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1947
- return de_CommandError(output, context);
1948
- }
1949
- const contents = map({
1950
- $metadata: deserializeMetadata(output),
1951
- });
1952
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1953
- const doc = take(data, {
1954
- Items: [, (_) => de___listOfRouteResponse(_, context), `items`],
1955
- NextToken: [, __expectString, `nextToken`],
1956
- });
1957
- Object.assign(contents, doc);
1958
- return contents;
1959
- };
1960
- export const de_GetRoutesCommand = async (output, context) => {
1961
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1962
- return de_CommandError(output, context);
1963
- }
1964
- const contents = map({
1965
- $metadata: deserializeMetadata(output),
1966
- });
1967
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1968
- const doc = take(data, {
1969
- Items: [, (_) => de___listOfRoute(_, context), `items`],
1970
- NextToken: [, __expectString, `nextToken`],
1971
- });
1972
- Object.assign(contents, doc);
1973
- return contents;
1974
- };
1975
- export const de_GetRoutingRuleCommand = async (output, context) => {
1976
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1977
- return de_CommandError(output, context);
1978
- }
1979
- const contents = map({
1980
- $metadata: deserializeMetadata(output),
1981
- });
1982
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1983
- const doc = take(data, {
1984
- Actions: [, (_) => de___listOfRoutingRuleAction(_, context), `actions`],
1985
- Conditions: [, (_) => de___listOfRoutingRuleCondition(_, context), `conditions`],
1986
- Priority: [, __expectInt32, `priority`],
1987
- RoutingRuleArn: [, __expectString, `routingRuleArn`],
1988
- RoutingRuleId: [, __expectString, `routingRuleId`],
1989
- });
1990
- Object.assign(contents, doc);
1991
- return contents;
1992
- };
1993
- export const de_GetStageCommand = async (output, context) => {
1994
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1995
- return de_CommandError(output, context);
1996
- }
1997
- const contents = map({
1998
- $metadata: deserializeMetadata(output),
1999
- });
2000
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2001
- const doc = take(data, {
2002
- AccessLogSettings: [, (_) => de_AccessLogSettings(_, context), `accessLogSettings`],
2003
- ApiGatewayManaged: [, __expectBoolean, `apiGatewayManaged`],
2004
- AutoDeploy: [, __expectBoolean, `autoDeploy`],
2005
- ClientCertificateId: [, __expectString, `clientCertificateId`],
2006
- CreatedDate: [, (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)), `createdDate`],
2007
- DefaultRouteSettings: [, (_) => de_RouteSettings(_, context), `defaultRouteSettings`],
2008
- DeploymentId: [, __expectString, `deploymentId`],
2009
- Description: [, __expectString, `description`],
2010
- LastDeploymentStatusMessage: [, __expectString, `lastDeploymentStatusMessage`],
2011
- LastUpdatedDate: [, (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)), `lastUpdatedDate`],
2012
- RouteSettings: [, (_) => de_RouteSettingsMap(_, context), `routeSettings`],
2013
- StageName: [, __expectString, `stageName`],
2014
- StageVariables: [, _json, `stageVariables`],
2015
- Tags: [, _json, `tags`],
2016
- });
2017
- Object.assign(contents, doc);
2018
- return contents;
2019
- };
2020
- export const de_GetStagesCommand = async (output, context) => {
2021
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2022
- return de_CommandError(output, context);
2023
- }
2024
- const contents = map({
2025
- $metadata: deserializeMetadata(output),
2026
- });
2027
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2028
- const doc = take(data, {
2029
- Items: [, (_) => de___listOfStage(_, context), `items`],
2030
- NextToken: [, __expectString, `nextToken`],
2031
- });
2032
- Object.assign(contents, doc);
2033
- return contents;
2034
- };
2035
- export const de_GetTagsCommand = async (output, context) => {
2036
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2037
- return de_CommandError(output, context);
2038
- }
2039
- const contents = map({
2040
- $metadata: deserializeMetadata(output),
2041
- });
2042
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2043
- const doc = take(data, {
2044
- Tags: [, _json, `tags`],
2045
- });
2046
- Object.assign(contents, doc);
2047
- return contents;
2048
- };
2049
- export const de_GetVpcLinkCommand = async (output, context) => {
2050
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2051
- return de_CommandError(output, context);
2052
- }
2053
- const contents = map({
2054
- $metadata: deserializeMetadata(output),
2055
- });
2056
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2057
- const doc = take(data, {
2058
- CreatedDate: [, (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)), `createdDate`],
2059
- Name: [, __expectString, `name`],
2060
- SecurityGroupIds: [, _json, `securityGroupIds`],
2061
- SubnetIds: [, _json, `subnetIds`],
2062
- Tags: [, _json, `tags`],
2063
- VpcLinkId: [, __expectString, `vpcLinkId`],
2064
- VpcLinkStatus: [, __expectString, `vpcLinkStatus`],
2065
- VpcLinkStatusMessage: [, __expectString, `vpcLinkStatusMessage`],
2066
- VpcLinkVersion: [, __expectString, `vpcLinkVersion`],
2067
- });
2068
- Object.assign(contents, doc);
2069
- return contents;
2070
- };
2071
- export const de_GetVpcLinksCommand = async (output, context) => {
2072
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2073
- return de_CommandError(output, context);
2074
- }
2075
- const contents = map({
2076
- $metadata: deserializeMetadata(output),
2077
- });
2078
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2079
- const doc = take(data, {
2080
- Items: [, (_) => de___listOfVpcLink(_, context), `items`],
2081
- NextToken: [, __expectString, `nextToken`],
2082
- });
2083
- Object.assign(contents, doc);
2084
- return contents;
2085
- };
2086
- export const de_ImportApiCommand = async (output, context) => {
2087
- if (output.statusCode !== 201 && output.statusCode >= 300) {
2088
- return de_CommandError(output, context);
2089
- }
2090
- const contents = map({
2091
- $metadata: deserializeMetadata(output),
2092
- });
2093
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2094
- const doc = take(data, {
2095
- ApiEndpoint: [, __expectString, `apiEndpoint`],
2096
- ApiGatewayManaged: [, __expectBoolean, `apiGatewayManaged`],
2097
- ApiId: [, __expectString, `apiId`],
2098
- ApiKeySelectionExpression: [, __expectString, `apiKeySelectionExpression`],
2099
- CorsConfiguration: [, (_) => de_Cors(_, context), `corsConfiguration`],
2100
- CreatedDate: [, (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)), `createdDate`],
2101
- Description: [, __expectString, `description`],
2102
- DisableExecuteApiEndpoint: [, __expectBoolean, `disableExecuteApiEndpoint`],
2103
- DisableSchemaValidation: [, __expectBoolean, `disableSchemaValidation`],
2104
- ImportInfo: [, _json, `importInfo`],
2105
- IpAddressType: [, __expectString, `ipAddressType`],
2106
- Name: [, __expectString, `name`],
2107
- ProtocolType: [, __expectString, `protocolType`],
2108
- RouteSelectionExpression: [, __expectString, `routeSelectionExpression`],
2109
- Tags: [, _json, `tags`],
2110
- Version: [, __expectString, `version`],
2111
- Warnings: [, _json, `warnings`],
2112
- });
2113
- Object.assign(contents, doc);
2114
- return contents;
2115
- };
2116
- export const de_ListRoutingRulesCommand = async (output, context) => {
2117
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2118
- return de_CommandError(output, context);
2119
- }
2120
- const contents = map({
2121
- $metadata: deserializeMetadata(output),
2122
- });
2123
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2124
- const doc = take(data, {
2125
- NextToken: [, __expectString, `nextToken`],
2126
- RoutingRules: [, (_) => de___listOfRoutingRule(_, context), `routingRules`],
2127
- });
2128
- Object.assign(contents, doc);
2129
- return contents;
2130
- };
2131
- export const de_PutRoutingRuleCommand = async (output, context) => {
2132
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2133
- return de_CommandError(output, context);
2134
- }
2135
- const contents = map({
2136
- $metadata: deserializeMetadata(output),
2137
- });
2138
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2139
- const doc = take(data, {
2140
- Actions: [, (_) => de___listOfRoutingRuleAction(_, context), `actions`],
2141
- Conditions: [, (_) => de___listOfRoutingRuleCondition(_, context), `conditions`],
2142
- Priority: [, __expectInt32, `priority`],
2143
- RoutingRuleArn: [, __expectString, `routingRuleArn`],
2144
- RoutingRuleId: [, __expectString, `routingRuleId`],
2145
- });
2146
- Object.assign(contents, doc);
2147
- return contents;
2148
- };
2149
- export const de_ReimportApiCommand = async (output, context) => {
2150
- if (output.statusCode !== 201 && output.statusCode >= 300) {
2151
- return de_CommandError(output, context);
2152
- }
2153
- const contents = map({
2154
- $metadata: deserializeMetadata(output),
2155
- });
2156
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2157
- const doc = take(data, {
2158
- ApiEndpoint: [, __expectString, `apiEndpoint`],
2159
- ApiGatewayManaged: [, __expectBoolean, `apiGatewayManaged`],
2160
- ApiId: [, __expectString, `apiId`],
2161
- ApiKeySelectionExpression: [, __expectString, `apiKeySelectionExpression`],
2162
- CorsConfiguration: [, (_) => de_Cors(_, context), `corsConfiguration`],
2163
- CreatedDate: [, (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)), `createdDate`],
2164
- Description: [, __expectString, `description`],
2165
- DisableExecuteApiEndpoint: [, __expectBoolean, `disableExecuteApiEndpoint`],
2166
- DisableSchemaValidation: [, __expectBoolean, `disableSchemaValidation`],
2167
- ImportInfo: [, _json, `importInfo`],
2168
- IpAddressType: [, __expectString, `ipAddressType`],
2169
- Name: [, __expectString, `name`],
2170
- ProtocolType: [, __expectString, `protocolType`],
2171
- RouteSelectionExpression: [, __expectString, `routeSelectionExpression`],
2172
- Tags: [, _json, `tags`],
2173
- Version: [, __expectString, `version`],
2174
- Warnings: [, _json, `warnings`],
2175
- });
2176
- Object.assign(contents, doc);
2177
- return contents;
2178
- };
2179
- export const de_ResetAuthorizersCacheCommand = async (output, context) => {
2180
- if (output.statusCode !== 204 && output.statusCode >= 300) {
2181
- return de_CommandError(output, context);
2182
- }
2183
- const contents = map({
2184
- $metadata: deserializeMetadata(output),
2185
- });
2186
- await collectBody(output.body, context);
2187
- return contents;
2188
- };
2189
- export const de_TagResourceCommand = async (output, context) => {
2190
- if (output.statusCode !== 201 && output.statusCode >= 300) {
2191
- return de_CommandError(output, context);
2192
- }
2193
- const contents = map({
2194
- $metadata: deserializeMetadata(output),
2195
- });
2196
- await collectBody(output.body, context);
2197
- return contents;
2198
- };
2199
- export const de_UntagResourceCommand = async (output, context) => {
2200
- if (output.statusCode !== 204 && output.statusCode >= 300) {
2201
- return de_CommandError(output, context);
2202
- }
2203
- const contents = map({
2204
- $metadata: deserializeMetadata(output),
2205
- });
2206
- await collectBody(output.body, context);
2207
- return contents;
2208
- };
2209
- export const de_UpdateApiCommand = async (output, context) => {
2210
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2211
- return de_CommandError(output, context);
2212
- }
2213
- const contents = map({
2214
- $metadata: deserializeMetadata(output),
2215
- });
2216
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2217
- const doc = take(data, {
2218
- ApiEndpoint: [, __expectString, `apiEndpoint`],
2219
- ApiGatewayManaged: [, __expectBoolean, `apiGatewayManaged`],
2220
- ApiId: [, __expectString, `apiId`],
2221
- ApiKeySelectionExpression: [, __expectString, `apiKeySelectionExpression`],
2222
- CorsConfiguration: [, (_) => de_Cors(_, context), `corsConfiguration`],
2223
- CreatedDate: [, (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)), `createdDate`],
2224
- Description: [, __expectString, `description`],
2225
- DisableExecuteApiEndpoint: [, __expectBoolean, `disableExecuteApiEndpoint`],
2226
- DisableSchemaValidation: [, __expectBoolean, `disableSchemaValidation`],
2227
- ImportInfo: [, _json, `importInfo`],
2228
- IpAddressType: [, __expectString, `ipAddressType`],
2229
- Name: [, __expectString, `name`],
2230
- ProtocolType: [, __expectString, `protocolType`],
2231
- RouteSelectionExpression: [, __expectString, `routeSelectionExpression`],
2232
- Tags: [, _json, `tags`],
2233
- Version: [, __expectString, `version`],
2234
- Warnings: [, _json, `warnings`],
2235
- });
2236
- Object.assign(contents, doc);
2237
- return contents;
2238
- };
2239
- export const de_UpdateApiMappingCommand = async (output, context) => {
2240
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2241
- return de_CommandError(output, context);
2242
- }
2243
- const contents = map({
2244
- $metadata: deserializeMetadata(output),
2245
- });
2246
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2247
- const doc = take(data, {
2248
- ApiId: [, __expectString, `apiId`],
2249
- ApiMappingId: [, __expectString, `apiMappingId`],
2250
- ApiMappingKey: [, __expectString, `apiMappingKey`],
2251
- Stage: [, __expectString, `stage`],
2252
- });
2253
- Object.assign(contents, doc);
2254
- return contents;
2255
- };
2256
- export const de_UpdateAuthorizerCommand = async (output, context) => {
2257
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2258
- return de_CommandError(output, context);
2259
- }
2260
- const contents = map({
2261
- $metadata: deserializeMetadata(output),
2262
- });
2263
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2264
- const doc = take(data, {
2265
- AuthorizerCredentialsArn: [, __expectString, `authorizerCredentialsArn`],
2266
- AuthorizerId: [, __expectString, `authorizerId`],
2267
- AuthorizerPayloadFormatVersion: [, __expectString, `authorizerPayloadFormatVersion`],
2268
- AuthorizerResultTtlInSeconds: [, __expectInt32, `authorizerResultTtlInSeconds`],
2269
- AuthorizerType: [, __expectString, `authorizerType`],
2270
- AuthorizerUri: [, __expectString, `authorizerUri`],
2271
- EnableSimpleResponses: [, __expectBoolean, `enableSimpleResponses`],
2272
- IdentitySource: [, _json, `identitySource`],
2273
- IdentityValidationExpression: [, __expectString, `identityValidationExpression`],
2274
- JwtConfiguration: [, (_) => de_JWTConfiguration(_, context), `jwtConfiguration`],
2275
- Name: [, __expectString, `name`],
2276
- });
2277
- Object.assign(contents, doc);
2278
- return contents;
2279
- };
2280
- export const de_UpdateDeploymentCommand = async (output, context) => {
2281
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2282
- return de_CommandError(output, context);
2283
- }
2284
- const contents = map({
2285
- $metadata: deserializeMetadata(output),
2286
- });
2287
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2288
- const doc = take(data, {
2289
- AutoDeployed: [, __expectBoolean, `autoDeployed`],
2290
- CreatedDate: [, (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)), `createdDate`],
2291
- DeploymentId: [, __expectString, `deploymentId`],
2292
- DeploymentStatus: [, __expectString, `deploymentStatus`],
2293
- DeploymentStatusMessage: [, __expectString, `deploymentStatusMessage`],
2294
- Description: [, __expectString, `description`],
2295
- });
2296
- Object.assign(contents, doc);
2297
- return contents;
2298
- };
2299
- export const de_UpdateDomainNameCommand = async (output, context) => {
2300
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2301
- return de_CommandError(output, context);
2302
- }
2303
- const contents = map({
2304
- $metadata: deserializeMetadata(output),
2305
- });
2306
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2307
- const doc = take(data, {
2308
- ApiMappingSelectionExpression: [, __expectString, `apiMappingSelectionExpression`],
2309
- DomainName: [, __expectString, `domainName`],
2310
- DomainNameArn: [, __expectString, `domainNameArn`],
2311
- DomainNameConfigurations: [, (_) => de_DomainNameConfigurations(_, context), `domainNameConfigurations`],
2312
- MutualTlsAuthentication: [, (_) => de_MutualTlsAuthentication(_, context), `mutualTlsAuthentication`],
2313
- RoutingMode: [, __expectString, `routingMode`],
2314
- Tags: [, _json, `tags`],
2315
- });
2316
- Object.assign(contents, doc);
2317
- return contents;
2318
- };
2319
- export const de_UpdateIntegrationCommand = async (output, context) => {
2320
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2321
- return de_CommandError(output, context);
2322
- }
2323
- const contents = map({
2324
- $metadata: deserializeMetadata(output),
2325
- });
2326
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2327
- const doc = take(data, {
2328
- ApiGatewayManaged: [, __expectBoolean, `apiGatewayManaged`],
2329
- ConnectionId: [, __expectString, `connectionId`],
2330
- ConnectionType: [, __expectString, `connectionType`],
2331
- ContentHandlingStrategy: [, __expectString, `contentHandlingStrategy`],
2332
- CredentialsArn: [, __expectString, `credentialsArn`],
2333
- Description: [, __expectString, `description`],
2334
- IntegrationId: [, __expectString, `integrationId`],
2335
- IntegrationMethod: [, __expectString, `integrationMethod`],
2336
- IntegrationResponseSelectionExpression: [, __expectString, `integrationResponseSelectionExpression`],
2337
- IntegrationSubtype: [, __expectString, `integrationSubtype`],
2338
- IntegrationType: [, __expectString, `integrationType`],
2339
- IntegrationUri: [, __expectString, `integrationUri`],
2340
- PassthroughBehavior: [, __expectString, `passthroughBehavior`],
2341
- PayloadFormatVersion: [, __expectString, `payloadFormatVersion`],
2342
- RequestParameters: [, _json, `requestParameters`],
2343
- RequestTemplates: [, _json, `requestTemplates`],
2344
- ResponseParameters: [, _json, `responseParameters`],
2345
- TemplateSelectionExpression: [, __expectString, `templateSelectionExpression`],
2346
- TimeoutInMillis: [, __expectInt32, `timeoutInMillis`],
2347
- TlsConfig: [, (_) => de_TlsConfig(_, context), `tlsConfig`],
2348
- });
2349
- Object.assign(contents, doc);
2350
- return contents;
2351
- };
2352
- export const de_UpdateIntegrationResponseCommand = async (output, context) => {
2353
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2354
- return de_CommandError(output, context);
2355
- }
2356
- const contents = map({
2357
- $metadata: deserializeMetadata(output),
2358
- });
2359
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2360
- const doc = take(data, {
2361
- ContentHandlingStrategy: [, __expectString, `contentHandlingStrategy`],
2362
- IntegrationResponseId: [, __expectString, `integrationResponseId`],
2363
- IntegrationResponseKey: [, __expectString, `integrationResponseKey`],
2364
- ResponseParameters: [, _json, `responseParameters`],
2365
- ResponseTemplates: [, _json, `responseTemplates`],
2366
- TemplateSelectionExpression: [, __expectString, `templateSelectionExpression`],
2367
- });
2368
- Object.assign(contents, doc);
2369
- return contents;
2370
- };
2371
- export const de_UpdateModelCommand = async (output, context) => {
2372
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2373
- return de_CommandError(output, context);
2374
- }
2375
- const contents = map({
2376
- $metadata: deserializeMetadata(output),
2377
- });
2378
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2379
- const doc = take(data, {
2380
- ContentType: [, __expectString, `contentType`],
2381
- Description: [, __expectString, `description`],
2382
- ModelId: [, __expectString, `modelId`],
2383
- Name: [, __expectString, `name`],
2384
- Schema: [, __expectString, `schema`],
2385
- });
2386
- Object.assign(contents, doc);
2387
- return contents;
2388
- };
2389
- export const de_UpdateRouteCommand = async (output, context) => {
2390
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2391
- return de_CommandError(output, context);
2392
- }
2393
- const contents = map({
2394
- $metadata: deserializeMetadata(output),
2395
- });
2396
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2397
- const doc = take(data, {
2398
- ApiGatewayManaged: [, __expectBoolean, `apiGatewayManaged`],
2399
- ApiKeyRequired: [, __expectBoolean, `apiKeyRequired`],
2400
- AuthorizationScopes: [, _json, `authorizationScopes`],
2401
- AuthorizationType: [, __expectString, `authorizationType`],
2402
- AuthorizerId: [, __expectString, `authorizerId`],
2403
- ModelSelectionExpression: [, __expectString, `modelSelectionExpression`],
2404
- OperationName: [, __expectString, `operationName`],
2405
- RequestModels: [, _json, `requestModels`],
2406
- RequestParameters: [, (_) => de_RouteParameters(_, context), `requestParameters`],
2407
- RouteId: [, __expectString, `routeId`],
2408
- RouteKey: [, __expectString, `routeKey`],
2409
- RouteResponseSelectionExpression: [, __expectString, `routeResponseSelectionExpression`],
2410
- Target: [, __expectString, `target`],
2411
- });
2412
- Object.assign(contents, doc);
2413
- return contents;
2414
- };
2415
- export const de_UpdateRouteResponseCommand = async (output, context) => {
2416
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2417
- return de_CommandError(output, context);
2418
- }
2419
- const contents = map({
2420
- $metadata: deserializeMetadata(output),
2421
- });
2422
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2423
- const doc = take(data, {
2424
- ModelSelectionExpression: [, __expectString, `modelSelectionExpression`],
2425
- ResponseModels: [, _json, `responseModels`],
2426
- ResponseParameters: [, (_) => de_RouteParameters(_, context), `responseParameters`],
2427
- RouteResponseId: [, __expectString, `routeResponseId`],
2428
- RouteResponseKey: [, __expectString, `routeResponseKey`],
2429
- });
2430
- Object.assign(contents, doc);
2431
- return contents;
2432
- };
2433
- export const de_UpdateStageCommand = async (output, context) => {
2434
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2435
- return de_CommandError(output, context);
2436
- }
2437
- const contents = map({
2438
- $metadata: deserializeMetadata(output),
2439
- });
2440
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2441
- const doc = take(data, {
2442
- AccessLogSettings: [, (_) => de_AccessLogSettings(_, context), `accessLogSettings`],
2443
- ApiGatewayManaged: [, __expectBoolean, `apiGatewayManaged`],
2444
- AutoDeploy: [, __expectBoolean, `autoDeploy`],
2445
- ClientCertificateId: [, __expectString, `clientCertificateId`],
2446
- CreatedDate: [, (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)), `createdDate`],
2447
- DefaultRouteSettings: [, (_) => de_RouteSettings(_, context), `defaultRouteSettings`],
2448
- DeploymentId: [, __expectString, `deploymentId`],
2449
- Description: [, __expectString, `description`],
2450
- LastDeploymentStatusMessage: [, __expectString, `lastDeploymentStatusMessage`],
2451
- LastUpdatedDate: [, (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)), `lastUpdatedDate`],
2452
- RouteSettings: [, (_) => de_RouteSettingsMap(_, context), `routeSettings`],
2453
- StageName: [, __expectString, `stageName`],
2454
- StageVariables: [, _json, `stageVariables`],
2455
- Tags: [, _json, `tags`],
2456
- });
2457
- Object.assign(contents, doc);
2458
- return contents;
2459
- };
2460
- export const de_UpdateVpcLinkCommand = async (output, context) => {
2461
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2462
- return de_CommandError(output, context);
2463
- }
2464
- const contents = map({
2465
- $metadata: deserializeMetadata(output),
2466
- });
2467
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2468
- const doc = take(data, {
2469
- CreatedDate: [, (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)), `createdDate`],
2470
- Name: [, __expectString, `name`],
2471
- SecurityGroupIds: [, _json, `securityGroupIds`],
2472
- SubnetIds: [, _json, `subnetIds`],
2473
- Tags: [, _json, `tags`],
2474
- VpcLinkId: [, __expectString, `vpcLinkId`],
2475
- VpcLinkStatus: [, __expectString, `vpcLinkStatus`],
2476
- VpcLinkStatusMessage: [, __expectString, `vpcLinkStatusMessage`],
2477
- VpcLinkVersion: [, __expectString, `vpcLinkVersion`],
2478
- });
2479
- Object.assign(contents, doc);
2480
- return contents;
2481
- };
2482
- const de_CommandError = async (output, context) => {
2483
- const parsedOutput = {
2484
- ...output,
2485
- body: await parseErrorBody(output.body, context),
2486
- };
2487
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2488
- switch (errorCode) {
2489
- case "BadRequestException":
2490
- case "com.amazonaws.apigatewayv2#BadRequestException":
2491
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2492
- case "ConflictException":
2493
- case "com.amazonaws.apigatewayv2#ConflictException":
2494
- throw await de_ConflictExceptionRes(parsedOutput, context);
2495
- case "NotFoundException":
2496
- case "com.amazonaws.apigatewayv2#NotFoundException":
2497
- throw await de_NotFoundExceptionRes(parsedOutput, context);
2498
- case "TooManyRequestsException":
2499
- case "com.amazonaws.apigatewayv2#TooManyRequestsException":
2500
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2501
- case "AccessDeniedException":
2502
- case "com.amazonaws.apigatewayv2#AccessDeniedException":
2503
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2504
- default:
2505
- const parsedBody = parsedOutput.body;
2506
- return throwDefaultError({
2507
- output,
2508
- parsedBody,
2509
- errorCode,
2510
- });
2511
- }
2512
- };
2513
- const throwDefaultError = withBaseException(__BaseException);
2514
- const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
2515
- const contents = map({});
2516
- const data = parsedOutput.body;
2517
- const doc = take(data, {
2518
- Message: [, __expectString, `message`],
2519
- });
2520
- Object.assign(contents, doc);
2521
- const exception = new AccessDeniedException({
2522
- $metadata: deserializeMetadata(parsedOutput),
2523
- ...contents,
2524
- });
2525
- return __decorateServiceException(exception, parsedOutput.body);
2526
- };
2527
- const de_BadRequestExceptionRes = async (parsedOutput, context) => {
2528
- const contents = map({});
2529
- const data = parsedOutput.body;
2530
- const doc = take(data, {
2531
- Message: [, __expectString, `message`],
2532
- });
2533
- Object.assign(contents, doc);
2534
- const exception = new BadRequestException({
2535
- $metadata: deserializeMetadata(parsedOutput),
2536
- ...contents,
2537
- });
2538
- return __decorateServiceException(exception, parsedOutput.body);
2539
- };
2540
- const de_ConflictExceptionRes = async (parsedOutput, context) => {
2541
- const contents = map({});
2542
- const data = parsedOutput.body;
2543
- const doc = take(data, {
2544
- Message: [, __expectString, `message`],
2545
- });
2546
- Object.assign(contents, doc);
2547
- const exception = new ConflictException({
2548
- $metadata: deserializeMetadata(parsedOutput),
2549
- ...contents,
2550
- });
2551
- return __decorateServiceException(exception, parsedOutput.body);
2552
- };
2553
- const de_NotFoundExceptionRes = async (parsedOutput, context) => {
2554
- const contents = map({});
2555
- const data = parsedOutput.body;
2556
- const doc = take(data, {
2557
- Message: [, __expectString, `message`],
2558
- ResourceType: [, __expectString, `resourceType`],
2559
- });
2560
- Object.assign(contents, doc);
2561
- const exception = new NotFoundException({
2562
- $metadata: deserializeMetadata(parsedOutput),
2563
- ...contents,
2564
- });
2565
- return __decorateServiceException(exception, parsedOutput.body);
2566
- };
2567
- const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
2568
- const contents = map({});
2569
- const data = parsedOutput.body;
2570
- const doc = take(data, {
2571
- LimitType: [, __expectString, `limitType`],
2572
- Message: [, __expectString, `message`],
2573
- });
2574
- Object.assign(contents, doc);
2575
- const exception = new TooManyRequestsException({
2576
- $metadata: deserializeMetadata(parsedOutput),
2577
- ...contents,
2578
- });
2579
- return __decorateServiceException(exception, parsedOutput.body);
2580
- };
2581
- const se___listOfRoutingRuleAction = (input, context) => {
2582
- return input
2583
- .filter((e) => e != null)
2584
- .map((entry) => {
2585
- return se_RoutingRuleAction(entry, context);
2586
- });
2587
- };
2588
- const se___listOfRoutingRuleCondition = (input, context) => {
2589
- return input
2590
- .filter((e) => e != null)
2591
- .map((entry) => {
2592
- return se_RoutingRuleCondition(entry, context);
2593
- });
2594
- };
2595
- const se___listOfRoutingRuleMatchHeaderValue = (input, context) => {
2596
- return input
2597
- .filter((e) => e != null)
2598
- .map((entry) => {
2599
- return se_RoutingRuleMatchHeaderValue(entry, context);
2600
- });
2601
- };
2602
- const se_AccessLogSettings = (input, context) => {
2603
- return take(input, {
2604
- destinationArn: [, , `DestinationArn`],
2605
- format: [, , `Format`],
2606
- });
2607
- };
2608
- const se_Cors = (input, context) => {
2609
- return take(input, {
2610
- allowCredentials: [, , `AllowCredentials`],
2611
- allowHeaders: [, _json, `AllowHeaders`],
2612
- allowMethods: [, _json, `AllowMethods`],
2613
- allowOrigins: [, _json, `AllowOrigins`],
2614
- exposeHeaders: [, _json, `ExposeHeaders`],
2615
- maxAge: [, , `MaxAge`],
2616
- });
2617
- };
2618
- const se_DomainNameConfiguration = (input, context) => {
2619
- return take(input, {
2620
- apiGatewayDomainName: [, , `ApiGatewayDomainName`],
2621
- certificateArn: [, , `CertificateArn`],
2622
- certificateName: [, , `CertificateName`],
2623
- certificateUploadDate: [, __serializeDateTime, `CertificateUploadDate`],
2624
- domainNameStatus: [, , `DomainNameStatus`],
2625
- domainNameStatusMessage: [, , `DomainNameStatusMessage`],
2626
- endpointType: [, , `EndpointType`],
2627
- hostedZoneId: [, , `HostedZoneId`],
2628
- ipAddressType: [, , `IpAddressType`],
2629
- ownershipVerificationCertificateArn: [, , `OwnershipVerificationCertificateArn`],
2630
- securityPolicy: [, , `SecurityPolicy`],
2631
- });
2632
- };
2633
- const se_DomainNameConfigurations = (input, context) => {
2634
- return input
2635
- .filter((e) => e != null)
2636
- .map((entry) => {
2637
- return se_DomainNameConfiguration(entry, context);
2638
- });
2639
- };
2640
- const se_JWTConfiguration = (input, context) => {
2641
- return take(input, {
2642
- audience: [, _json, `Audience`],
2643
- issuer: [, , `Issuer`],
2644
- });
2645
- };
2646
- const se_MutualTlsAuthenticationInput = (input, context) => {
2647
- return take(input, {
2648
- truststoreUri: [, , `TruststoreUri`],
2649
- truststoreVersion: [, , `TruststoreVersion`],
2650
- });
2651
- };
2652
- const se_ParameterConstraints = (input, context) => {
2653
- return take(input, {
2654
- required: [, , `Required`],
2655
- });
2656
- };
2657
- const se_RouteParameters = (input, context) => {
2658
- return Object.entries(input).reduce((acc, [key, value]) => {
2659
- if (value === null) {
2660
- return acc;
2661
- }
2662
- acc[key] = se_ParameterConstraints(value, context);
2663
- return acc;
2664
- }, {});
2665
- };
2666
- const se_RouteSettings = (input, context) => {
2667
- return take(input, {
2668
- dataTraceEnabled: [, , `DataTraceEnabled`],
2669
- detailedMetricsEnabled: [, , `DetailedMetricsEnabled`],
2670
- loggingLevel: [, , `LoggingLevel`],
2671
- throttlingBurstLimit: [, , `ThrottlingBurstLimit`],
2672
- throttlingRateLimit: [, __serializeFloat, `ThrottlingRateLimit`],
2673
- });
2674
- };
2675
- const se_RouteSettingsMap = (input, context) => {
2676
- return Object.entries(input).reduce((acc, [key, value]) => {
2677
- if (value === null) {
2678
- return acc;
2679
- }
2680
- acc[key] = se_RouteSettings(value, context);
2681
- return acc;
2682
- }, {});
2683
- };
2684
- const se_RoutingRuleAction = (input, context) => {
2685
- return take(input, {
2686
- invokeApi: [, (_) => se_RoutingRuleActionInvokeApi(_, context), `InvokeApi`],
2687
- });
2688
- };
2689
- const se_RoutingRuleActionInvokeApi = (input, context) => {
2690
- return take(input, {
2691
- apiId: [, , `ApiId`],
2692
- stage: [, , `Stage`],
2693
- stripBasePath: [, , `StripBasePath`],
2694
- });
2695
- };
2696
- const se_RoutingRuleCondition = (input, context) => {
2697
- return take(input, {
2698
- matchBasePaths: [, (_) => se_RoutingRuleMatchBasePaths(_, context), `MatchBasePaths`],
2699
- matchHeaders: [, (_) => se_RoutingRuleMatchHeaders(_, context), `MatchHeaders`],
2700
- });
2701
- };
2702
- const se_RoutingRuleMatchBasePaths = (input, context) => {
2703
- return take(input, {
2704
- anyOf: [, _json, `AnyOf`],
2705
- });
2706
- };
2707
- const se_RoutingRuleMatchHeaders = (input, context) => {
2708
- return take(input, {
2709
- anyOf: [, (_) => se___listOfRoutingRuleMatchHeaderValue(_, context), `AnyOf`],
2710
- });
2711
- };
2712
- const se_RoutingRuleMatchHeaderValue = (input, context) => {
2713
- return take(input, {
2714
- header: [, , `Header`],
2715
- valueGlob: [, , `ValueGlob`],
2716
- });
2717
- };
2718
- const se_TlsConfigInput = (input, context) => {
2719
- return take(input, {
2720
- serverNameToVerify: [, , `ServerNameToVerify`],
2721
- });
2722
- };
2723
- const de___listOfApi = (output, context) => {
2724
- const retVal = (output || [])
2725
- .filter((e) => e != null)
2726
- .map((entry) => {
2727
- return de_Api(entry, context);
2728
- });
2729
- return retVal;
2730
- };
2731
- const de___listOfApiMapping = (output, context) => {
2732
- const retVal = (output || [])
2733
- .filter((e) => e != null)
2734
- .map((entry) => {
2735
- return de_ApiMapping(entry, context);
2736
- });
2737
- return retVal;
2738
- };
2739
- const de___listOfAuthorizer = (output, context) => {
2740
- const retVal = (output || [])
2741
- .filter((e) => e != null)
2742
- .map((entry) => {
2743
- return de_Authorizer(entry, context);
2744
- });
2745
- return retVal;
2746
- };
2747
- const de___listOfDeployment = (output, context) => {
2748
- const retVal = (output || [])
2749
- .filter((e) => e != null)
2750
- .map((entry) => {
2751
- return de_Deployment(entry, context);
2752
- });
2753
- return retVal;
2754
- };
2755
- const de___listOfDomainName = (output, context) => {
2756
- const retVal = (output || [])
2757
- .filter((e) => e != null)
2758
- .map((entry) => {
2759
- return de_DomainName(entry, context);
2760
- });
2761
- return retVal;
2762
- };
2763
- const de___listOfIntegration = (output, context) => {
2764
- const retVal = (output || [])
2765
- .filter((e) => e != null)
2766
- .map((entry) => {
2767
- return de_Integration(entry, context);
2768
- });
2769
- return retVal;
2770
- };
2771
- const de___listOfIntegrationResponse = (output, context) => {
2772
- const retVal = (output || [])
2773
- .filter((e) => e != null)
2774
- .map((entry) => {
2775
- return de_IntegrationResponse(entry, context);
2776
- });
2777
- return retVal;
2778
- };
2779
- const de___listOfModel = (output, context) => {
2780
- const retVal = (output || [])
2781
- .filter((e) => e != null)
2782
- .map((entry) => {
2783
- return de_Model(entry, context);
2784
- });
2785
- return retVal;
2786
- };
2787
- const de___listOfRoute = (output, context) => {
2788
- const retVal = (output || [])
2789
- .filter((e) => e != null)
2790
- .map((entry) => {
2791
- return de_Route(entry, context);
2792
- });
2793
- return retVal;
2794
- };
2795
- const de___listOfRouteResponse = (output, context) => {
2796
- const retVal = (output || [])
2797
- .filter((e) => e != null)
2798
- .map((entry) => {
2799
- return de_RouteResponse(entry, context);
2800
- });
2801
- return retVal;
2802
- };
2803
- const de___listOfRoutingRule = (output, context) => {
2804
- const retVal = (output || [])
2805
- .filter((e) => e != null)
2806
- .map((entry) => {
2807
- return de_RoutingRule(entry, context);
2808
- });
2809
- return retVal;
2810
- };
2811
- const de___listOfRoutingRuleAction = (output, context) => {
2812
- const retVal = (output || [])
2813
- .filter((e) => e != null)
2814
- .map((entry) => {
2815
- return de_RoutingRuleAction(entry, context);
2816
- });
2817
- return retVal;
2818
- };
2819
- const de___listOfRoutingRuleCondition = (output, context) => {
2820
- const retVal = (output || [])
2821
- .filter((e) => e != null)
2822
- .map((entry) => {
2823
- return de_RoutingRuleCondition(entry, context);
2824
- });
2825
- return retVal;
2826
- };
2827
- const de___listOfRoutingRuleMatchHeaderValue = (output, context) => {
2828
- const retVal = (output || [])
2829
- .filter((e) => e != null)
2830
- .map((entry) => {
2831
- return de_RoutingRuleMatchHeaderValue(entry, context);
2832
- });
2833
- return retVal;
2834
- };
2835
- const de___listOfStage = (output, context) => {
2836
- const retVal = (output || [])
2837
- .filter((e) => e != null)
2838
- .map((entry) => {
2839
- return de_Stage(entry, context);
2840
- });
2841
- return retVal;
2842
- };
2843
- const de___listOfVpcLink = (output, context) => {
2844
- const retVal = (output || [])
2845
- .filter((e) => e != null)
2846
- .map((entry) => {
2847
- return de_VpcLink(entry, context);
2848
- });
2849
- return retVal;
2850
- };
2851
- const de_AccessLogSettings = (output, context) => {
2852
- return take(output, {
2853
- DestinationArn: [, __expectString, `destinationArn`],
2854
- Format: [, __expectString, `format`],
2855
- });
2856
- };
2857
- const de_Api = (output, context) => {
2858
- return take(output, {
2859
- ApiEndpoint: [, __expectString, `apiEndpoint`],
2860
- ApiGatewayManaged: [, __expectBoolean, `apiGatewayManaged`],
2861
- ApiId: [, __expectString, `apiId`],
2862
- ApiKeySelectionExpression: [, __expectString, `apiKeySelectionExpression`],
2863
- CorsConfiguration: [, (_) => de_Cors(_, context), `corsConfiguration`],
2864
- CreatedDate: [, (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)), `createdDate`],
2865
- Description: [, __expectString, `description`],
2866
- DisableExecuteApiEndpoint: [, __expectBoolean, `disableExecuteApiEndpoint`],
2867
- DisableSchemaValidation: [, __expectBoolean, `disableSchemaValidation`],
2868
- ImportInfo: [, _json, `importInfo`],
2869
- IpAddressType: [, __expectString, `ipAddressType`],
2870
- Name: [, __expectString, `name`],
2871
- ProtocolType: [, __expectString, `protocolType`],
2872
- RouteSelectionExpression: [, __expectString, `routeSelectionExpression`],
2873
- Tags: [, _json, `tags`],
2874
- Version: [, __expectString, `version`],
2875
- Warnings: [, _json, `warnings`],
2876
- });
2877
- };
2878
- const de_ApiMapping = (output, context) => {
2879
- return take(output, {
2880
- ApiId: [, __expectString, `apiId`],
2881
- ApiMappingId: [, __expectString, `apiMappingId`],
2882
- ApiMappingKey: [, __expectString, `apiMappingKey`],
2883
- Stage: [, __expectString, `stage`],
2884
- });
2885
- };
2886
- const de_Authorizer = (output, context) => {
2887
- return take(output, {
2888
- AuthorizerCredentialsArn: [, __expectString, `authorizerCredentialsArn`],
2889
- AuthorizerId: [, __expectString, `authorizerId`],
2890
- AuthorizerPayloadFormatVersion: [, __expectString, `authorizerPayloadFormatVersion`],
2891
- AuthorizerResultTtlInSeconds: [, __expectInt32, `authorizerResultTtlInSeconds`],
2892
- AuthorizerType: [, __expectString, `authorizerType`],
2893
- AuthorizerUri: [, __expectString, `authorizerUri`],
2894
- EnableSimpleResponses: [, __expectBoolean, `enableSimpleResponses`],
2895
- IdentitySource: [, _json, `identitySource`],
2896
- IdentityValidationExpression: [, __expectString, `identityValidationExpression`],
2897
- JwtConfiguration: [, (_) => de_JWTConfiguration(_, context), `jwtConfiguration`],
2898
- Name: [, __expectString, `name`],
2899
- });
2900
- };
2901
- const de_Cors = (output, context) => {
2902
- return take(output, {
2903
- AllowCredentials: [, __expectBoolean, `allowCredentials`],
2904
- AllowHeaders: [, _json, `allowHeaders`],
2905
- AllowMethods: [, _json, `allowMethods`],
2906
- AllowOrigins: [, _json, `allowOrigins`],
2907
- ExposeHeaders: [, _json, `exposeHeaders`],
2908
- MaxAge: [, __expectInt32, `maxAge`],
2909
- });
2910
- };
2911
- const de_Deployment = (output, context) => {
2912
- return take(output, {
2913
- AutoDeployed: [, __expectBoolean, `autoDeployed`],
2914
- CreatedDate: [, (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)), `createdDate`],
2915
- DeploymentId: [, __expectString, `deploymentId`],
2916
- DeploymentStatus: [, __expectString, `deploymentStatus`],
2917
- DeploymentStatusMessage: [, __expectString, `deploymentStatusMessage`],
2918
- Description: [, __expectString, `description`],
2919
- });
2920
- };
2921
- const de_DomainName = (output, context) => {
2922
- return take(output, {
2923
- ApiMappingSelectionExpression: [, __expectString, `apiMappingSelectionExpression`],
2924
- DomainName: [, __expectString, `domainName`],
2925
- DomainNameArn: [, __expectString, `domainNameArn`],
2926
- DomainNameConfigurations: [, (_) => de_DomainNameConfigurations(_, context), `domainNameConfigurations`],
2927
- MutualTlsAuthentication: [, (_) => de_MutualTlsAuthentication(_, context), `mutualTlsAuthentication`],
2928
- RoutingMode: [, __expectString, `routingMode`],
2929
- Tags: [, _json, `tags`],
2930
- });
2931
- };
2932
- const de_DomainNameConfiguration = (output, context) => {
2933
- return take(output, {
2934
- ApiGatewayDomainName: [, __expectString, `apiGatewayDomainName`],
2935
- CertificateArn: [, __expectString, `certificateArn`],
2936
- CertificateName: [, __expectString, `certificateName`],
2937
- CertificateUploadDate: [
2938
- ,
2939
- (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
2940
- `certificateUploadDate`,
2941
- ],
2942
- DomainNameStatus: [, __expectString, `domainNameStatus`],
2943
- DomainNameStatusMessage: [, __expectString, `domainNameStatusMessage`],
2944
- EndpointType: [, __expectString, `endpointType`],
2945
- HostedZoneId: [, __expectString, `hostedZoneId`],
2946
- IpAddressType: [, __expectString, `ipAddressType`],
2947
- OwnershipVerificationCertificateArn: [, __expectString, `ownershipVerificationCertificateArn`],
2948
- SecurityPolicy: [, __expectString, `securityPolicy`],
2949
- });
2950
- };
2951
- const de_DomainNameConfigurations = (output, context) => {
2952
- const retVal = (output || [])
2953
- .filter((e) => e != null)
2954
- .map((entry) => {
2955
- return de_DomainNameConfiguration(entry, context);
2956
- });
2957
- return retVal;
2958
- };
2959
- const de_Integration = (output, context) => {
2960
- return take(output, {
2961
- ApiGatewayManaged: [, __expectBoolean, `apiGatewayManaged`],
2962
- ConnectionId: [, __expectString, `connectionId`],
2963
- ConnectionType: [, __expectString, `connectionType`],
2964
- ContentHandlingStrategy: [, __expectString, `contentHandlingStrategy`],
2965
- CredentialsArn: [, __expectString, `credentialsArn`],
2966
- Description: [, __expectString, `description`],
2967
- IntegrationId: [, __expectString, `integrationId`],
2968
- IntegrationMethod: [, __expectString, `integrationMethod`],
2969
- IntegrationResponseSelectionExpression: [, __expectString, `integrationResponseSelectionExpression`],
2970
- IntegrationSubtype: [, __expectString, `integrationSubtype`],
2971
- IntegrationType: [, __expectString, `integrationType`],
2972
- IntegrationUri: [, __expectString, `integrationUri`],
2973
- PassthroughBehavior: [, __expectString, `passthroughBehavior`],
2974
- PayloadFormatVersion: [, __expectString, `payloadFormatVersion`],
2975
- RequestParameters: [, _json, `requestParameters`],
2976
- RequestTemplates: [, _json, `requestTemplates`],
2977
- ResponseParameters: [, _json, `responseParameters`],
2978
- TemplateSelectionExpression: [, __expectString, `templateSelectionExpression`],
2979
- TimeoutInMillis: [, __expectInt32, `timeoutInMillis`],
2980
- TlsConfig: [, (_) => de_TlsConfig(_, context), `tlsConfig`],
2981
- });
2982
- };
2983
- const de_IntegrationResponse = (output, context) => {
2984
- return take(output, {
2985
- ContentHandlingStrategy: [, __expectString, `contentHandlingStrategy`],
2986
- IntegrationResponseId: [, __expectString, `integrationResponseId`],
2987
- IntegrationResponseKey: [, __expectString, `integrationResponseKey`],
2988
- ResponseParameters: [, _json, `responseParameters`],
2989
- ResponseTemplates: [, _json, `responseTemplates`],
2990
- TemplateSelectionExpression: [, __expectString, `templateSelectionExpression`],
2991
- });
2992
- };
2993
- const de_JWTConfiguration = (output, context) => {
2994
- return take(output, {
2995
- Audience: [, _json, `audience`],
2996
- Issuer: [, __expectString, `issuer`],
2997
- });
2998
- };
2999
- const de_Model = (output, context) => {
3000
- return take(output, {
3001
- ContentType: [, __expectString, `contentType`],
3002
- Description: [, __expectString, `description`],
3003
- ModelId: [, __expectString, `modelId`],
3004
- Name: [, __expectString, `name`],
3005
- Schema: [, __expectString, `schema`],
3006
- });
3007
- };
3008
- const de_MutualTlsAuthentication = (output, context) => {
3009
- return take(output, {
3010
- TruststoreUri: [, __expectString, `truststoreUri`],
3011
- TruststoreVersion: [, __expectString, `truststoreVersion`],
3012
- TruststoreWarnings: [, _json, `truststoreWarnings`],
3013
- });
3014
- };
3015
- const de_ParameterConstraints = (output, context) => {
3016
- return take(output, {
3017
- Required: [, __expectBoolean, `required`],
3018
- });
3019
- };
3020
- const de_Route = (output, context) => {
3021
- return take(output, {
3022
- ApiGatewayManaged: [, __expectBoolean, `apiGatewayManaged`],
3023
- ApiKeyRequired: [, __expectBoolean, `apiKeyRequired`],
3024
- AuthorizationScopes: [, _json, `authorizationScopes`],
3025
- AuthorizationType: [, __expectString, `authorizationType`],
3026
- AuthorizerId: [, __expectString, `authorizerId`],
3027
- ModelSelectionExpression: [, __expectString, `modelSelectionExpression`],
3028
- OperationName: [, __expectString, `operationName`],
3029
- RequestModels: [, _json, `requestModels`],
3030
- RequestParameters: [, (_) => de_RouteParameters(_, context), `requestParameters`],
3031
- RouteId: [, __expectString, `routeId`],
3032
- RouteKey: [, __expectString, `routeKey`],
3033
- RouteResponseSelectionExpression: [, __expectString, `routeResponseSelectionExpression`],
3034
- Target: [, __expectString, `target`],
3035
- });
3036
- };
3037
- const de_RouteParameters = (output, context) => {
3038
- return Object.entries(output).reduce((acc, [key, value]) => {
3039
- if (value === null) {
3040
- return acc;
3041
- }
3042
- acc[key] = de_ParameterConstraints(value, context);
3043
- return acc;
3044
- }, {});
3045
- };
3046
- const de_RouteResponse = (output, context) => {
3047
- return take(output, {
3048
- ModelSelectionExpression: [, __expectString, `modelSelectionExpression`],
3049
- ResponseModels: [, _json, `responseModels`],
3050
- ResponseParameters: [, (_) => de_RouteParameters(_, context), `responseParameters`],
3051
- RouteResponseId: [, __expectString, `routeResponseId`],
3052
- RouteResponseKey: [, __expectString, `routeResponseKey`],
3053
- });
3054
- };
3055
- const de_RouteSettings = (output, context) => {
3056
- return take(output, {
3057
- DataTraceEnabled: [, __expectBoolean, `dataTraceEnabled`],
3058
- DetailedMetricsEnabled: [, __expectBoolean, `detailedMetricsEnabled`],
3059
- LoggingLevel: [, __expectString, `loggingLevel`],
3060
- ThrottlingBurstLimit: [, __expectInt32, `throttlingBurstLimit`],
3061
- ThrottlingRateLimit: [, __limitedParseDouble, `throttlingRateLimit`],
3062
- });
3063
- };
3064
- const de_RouteSettingsMap = (output, context) => {
3065
- return Object.entries(output).reduce((acc, [key, value]) => {
3066
- if (value === null) {
3067
- return acc;
3068
- }
3069
- acc[key] = de_RouteSettings(value, context);
3070
- return acc;
3071
- }, {});
3072
- };
3073
- const de_RoutingRule = (output, context) => {
3074
- return take(output, {
3075
- Actions: [, (_) => de___listOfRoutingRuleAction(_, context), `actions`],
3076
- Conditions: [, (_) => de___listOfRoutingRuleCondition(_, context), `conditions`],
3077
- Priority: [, __expectInt32, `priority`],
3078
- RoutingRuleArn: [, __expectString, `routingRuleArn`],
3079
- RoutingRuleId: [, __expectString, `routingRuleId`],
3080
- });
3081
- };
3082
- const de_RoutingRuleAction = (output, context) => {
3083
- return take(output, {
3084
- InvokeApi: [, (_) => de_RoutingRuleActionInvokeApi(_, context), `invokeApi`],
3085
- });
3086
- };
3087
- const de_RoutingRuleActionInvokeApi = (output, context) => {
3088
- return take(output, {
3089
- ApiId: [, __expectString, `apiId`],
3090
- Stage: [, __expectString, `stage`],
3091
- StripBasePath: [, __expectBoolean, `stripBasePath`],
3092
- });
3093
- };
3094
- const de_RoutingRuleCondition = (output, context) => {
3095
- return take(output, {
3096
- MatchBasePaths: [, (_) => de_RoutingRuleMatchBasePaths(_, context), `matchBasePaths`],
3097
- MatchHeaders: [, (_) => de_RoutingRuleMatchHeaders(_, context), `matchHeaders`],
3098
- });
3099
- };
3100
- const de_RoutingRuleMatchBasePaths = (output, context) => {
3101
- return take(output, {
3102
- AnyOf: [, _json, `anyOf`],
3103
- });
3104
- };
3105
- const de_RoutingRuleMatchHeaders = (output, context) => {
3106
- return take(output, {
3107
- AnyOf: [, (_) => de___listOfRoutingRuleMatchHeaderValue(_, context), `anyOf`],
3108
- });
3109
- };
3110
- const de_RoutingRuleMatchHeaderValue = (output, context) => {
3111
- return take(output, {
3112
- Header: [, __expectString, `header`],
3113
- ValueGlob: [, __expectString, `valueGlob`],
3114
- });
3115
- };
3116
- const de_Stage = (output, context) => {
3117
- return take(output, {
3118
- AccessLogSettings: [, (_) => de_AccessLogSettings(_, context), `accessLogSettings`],
3119
- ApiGatewayManaged: [, __expectBoolean, `apiGatewayManaged`],
3120
- AutoDeploy: [, __expectBoolean, `autoDeploy`],
3121
- ClientCertificateId: [, __expectString, `clientCertificateId`],
3122
- CreatedDate: [, (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)), `createdDate`],
3123
- DefaultRouteSettings: [, (_) => de_RouteSettings(_, context), `defaultRouteSettings`],
3124
- DeploymentId: [, __expectString, `deploymentId`],
3125
- Description: [, __expectString, `description`],
3126
- LastDeploymentStatusMessage: [, __expectString, `lastDeploymentStatusMessage`],
3127
- LastUpdatedDate: [, (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)), `lastUpdatedDate`],
3128
- RouteSettings: [, (_) => de_RouteSettingsMap(_, context), `routeSettings`],
3129
- StageName: [, __expectString, `stageName`],
3130
- StageVariables: [, _json, `stageVariables`],
3131
- Tags: [, _json, `tags`],
3132
- });
3133
- };
3134
- const de_TlsConfig = (output, context) => {
3135
- return take(output, {
3136
- ServerNameToVerify: [, __expectString, `serverNameToVerify`],
3137
- });
3138
- };
3139
- const de_VpcLink = (output, context) => {
3140
- return take(output, {
3141
- CreatedDate: [, (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)), `createdDate`],
3142
- Name: [, __expectString, `name`],
3143
- SecurityGroupIds: [, _json, `securityGroupIds`],
3144
- SubnetIds: [, _json, `subnetIds`],
3145
- Tags: [, _json, `tags`],
3146
- VpcLinkId: [, __expectString, `vpcLinkId`],
3147
- VpcLinkStatus: [, __expectString, `vpcLinkStatus`],
3148
- VpcLinkStatusMessage: [, __expectString, `vpcLinkStatusMessage`],
3149
- VpcLinkVersion: [, __expectString, `vpcLinkVersion`],
3150
- });
3151
- };
3152
- const deserializeMetadata = (output) => ({
3153
- httpStatusCode: output.statusCode,
3154
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
3155
- extendedRequestId: output.headers["x-amz-id-2"],
3156
- cfId: output.headers["x-amz-cf-id"],
3157
- });
3158
- const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
3159
- const _B = "Basepath";
3160
- const _DNI = "DomainNameId";
3161
- const _EV = "ExportVersion";
3162
- const _FOW = "FailOnWarnings";
3163
- const _IE = "IncludeExtensions";
3164
- const _MR = "MaxResults";
3165
- const _NT = "NextToken";
3166
- const _OT = "OutputType";
3167
- const _SN = "StageName";
3168
- const _TK = "TagKeys";
3169
- const _b = "basepath";
3170
- const _dNI = "domainNameId";
3171
- const _eV = "exportVersion";
3172
- const _fOW = "failOnWarnings";
3173
- const _iE = "includeExtensions";
3174
- const _mR = "maxResults";
3175
- const _nT = "nextToken";
3176
- const _oT = "outputType";
3177
- const _sN = "stageName";
3178
- const _tK = "tagKeys";