@aws-sdk/client-apigatewayv2 3.474.0 → 3.477.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/protocols/Aws_restJson1.js +451 -980
- package/dist-es/protocols/Aws_restJson1.js +452 -981
- package/package.json +5 -4
|
@@ -3,16 +3,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.se_GetRoutesCommand = exports.se_GetRouteResponsesCommand = exports.se_GetRouteResponseCommand = exports.se_GetRouteCommand = exports.se_GetModelTemplateCommand = exports.se_GetModelsCommand = exports.se_GetModelCommand = exports.se_GetIntegrationsCommand = exports.se_GetIntegrationResponsesCommand = exports.se_GetIntegrationResponseCommand = exports.se_GetIntegrationCommand = exports.se_GetDomainNamesCommand = exports.se_GetDomainNameCommand = exports.se_GetDeploymentsCommand = exports.se_GetDeploymentCommand = exports.se_GetAuthorizersCommand = exports.se_GetAuthorizerCommand = exports.se_GetApisCommand = exports.se_GetApiMappingsCommand = exports.se_GetApiMappingCommand = exports.se_GetApiCommand = exports.se_ExportApiCommand = exports.se_DeleteVpcLinkCommand = exports.se_DeleteStageCommand = exports.se_DeleteRouteSettingsCommand = exports.se_DeleteRouteResponseCommand = exports.se_DeleteRouteRequestParameterCommand = exports.se_DeleteRouteCommand = exports.se_DeleteModelCommand = exports.se_DeleteIntegrationResponseCommand = exports.se_DeleteIntegrationCommand = exports.se_DeleteDomainNameCommand = exports.se_DeleteDeploymentCommand = exports.se_DeleteCorsConfigurationCommand = exports.se_DeleteAuthorizerCommand = exports.se_DeleteApiMappingCommand = exports.se_DeleteApiCommand = exports.se_DeleteAccessLogSettingsCommand = exports.se_CreateVpcLinkCommand = exports.se_CreateStageCommand = exports.se_CreateRouteResponseCommand = exports.se_CreateRouteCommand = exports.se_CreateModelCommand = exports.se_CreateIntegrationResponseCommand = exports.se_CreateIntegrationCommand = exports.se_CreateDomainNameCommand = exports.se_CreateDeploymentCommand = exports.se_CreateAuthorizerCommand = exports.se_CreateApiMappingCommand = exports.se_CreateApiCommand = void 0;
|
|
4
4
|
exports.de_DeleteVpcLinkCommand = exports.de_DeleteStageCommand = exports.de_DeleteRouteSettingsCommand = exports.de_DeleteRouteResponseCommand = exports.de_DeleteRouteRequestParameterCommand = exports.de_DeleteRouteCommand = exports.de_DeleteModelCommand = exports.de_DeleteIntegrationResponseCommand = exports.de_DeleteIntegrationCommand = exports.de_DeleteDomainNameCommand = exports.de_DeleteDeploymentCommand = exports.de_DeleteCorsConfigurationCommand = exports.de_DeleteAuthorizerCommand = exports.de_DeleteApiMappingCommand = exports.de_DeleteApiCommand = exports.de_DeleteAccessLogSettingsCommand = exports.de_CreateVpcLinkCommand = exports.de_CreateStageCommand = exports.de_CreateRouteResponseCommand = exports.de_CreateRouteCommand = exports.de_CreateModelCommand = exports.de_CreateIntegrationResponseCommand = exports.de_CreateIntegrationCommand = exports.de_CreateDomainNameCommand = exports.de_CreateDeploymentCommand = exports.de_CreateAuthorizerCommand = exports.de_CreateApiMappingCommand = exports.de_CreateApiCommand = exports.se_UpdateVpcLinkCommand = exports.se_UpdateStageCommand = exports.se_UpdateRouteResponseCommand = exports.se_UpdateRouteCommand = exports.se_UpdateModelCommand = exports.se_UpdateIntegrationResponseCommand = exports.se_UpdateIntegrationCommand = exports.se_UpdateDomainNameCommand = exports.se_UpdateDeploymentCommand = exports.se_UpdateAuthorizerCommand = exports.se_UpdateApiMappingCommand = exports.se_UpdateApiCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_ResetAuthorizersCacheCommand = exports.se_ReimportApiCommand = exports.se_ImportApiCommand = exports.se_GetVpcLinksCommand = exports.se_GetVpcLinkCommand = exports.se_GetTagsCommand = exports.se_GetStagesCommand = exports.se_GetStageCommand = void 0;
|
|
5
5
|
exports.de_UpdateVpcLinkCommand = exports.de_UpdateStageCommand = exports.de_UpdateRouteResponseCommand = exports.de_UpdateRouteCommand = exports.de_UpdateModelCommand = exports.de_UpdateIntegrationResponseCommand = exports.de_UpdateIntegrationCommand = exports.de_UpdateDomainNameCommand = exports.de_UpdateDeploymentCommand = exports.de_UpdateAuthorizerCommand = exports.de_UpdateApiMappingCommand = exports.de_UpdateApiCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_ResetAuthorizersCacheCommand = exports.de_ReimportApiCommand = exports.de_ImportApiCommand = exports.de_GetVpcLinksCommand = exports.de_GetVpcLinkCommand = exports.de_GetTagsCommand = exports.de_GetStagesCommand = exports.de_GetStageCommand = exports.de_GetRoutesCommand = exports.de_GetRouteResponsesCommand = exports.de_GetRouteResponseCommand = exports.de_GetRouteCommand = exports.de_GetModelTemplateCommand = exports.de_GetModelsCommand = exports.de_GetModelCommand = exports.de_GetIntegrationsCommand = exports.de_GetIntegrationResponsesCommand = exports.de_GetIntegrationResponseCommand = exports.de_GetIntegrationCommand = exports.de_GetDomainNamesCommand = exports.de_GetDomainNameCommand = exports.de_GetDeploymentsCommand = exports.de_GetDeploymentCommand = exports.de_GetAuthorizersCommand = exports.de_GetAuthorizerCommand = exports.de_GetApisCommand = exports.de_GetApiMappingsCommand = exports.de_GetApiMappingCommand = exports.de_GetApiCommand = exports.de_ExportApiCommand = void 0;
|
|
6
|
-
const
|
|
6
|
+
const core_1 = require("@smithy/core");
|
|
7
7
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
8
8
|
const ApiGatewayV2ServiceException_1 = require("../models/ApiGatewayV2ServiceException");
|
|
9
9
|
const models_0_1 = require("../models/models_0");
|
|
10
10
|
const se_CreateApiCommand = async (input, context) => {
|
|
11
|
-
const
|
|
11
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
12
12
|
const headers = {
|
|
13
13
|
"content-type": "application/json",
|
|
14
14
|
};
|
|
15
|
-
|
|
15
|
+
b.bp("/v2/apis");
|
|
16
16
|
let body;
|
|
17
17
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
18
18
|
apiKeySelectionExpression: [, , `ApiKeySelectionExpression`],
|
|
@@ -29,48 +29,34 @@ const se_CreateApiCommand = async (input, context) => {
|
|
|
29
29
|
target: [, , `Target`],
|
|
30
30
|
version: [, , `Version`],
|
|
31
31
|
}));
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
hostname,
|
|
35
|
-
port,
|
|
36
|
-
method: "POST",
|
|
37
|
-
headers,
|
|
38
|
-
path: resolvedPath,
|
|
39
|
-
body,
|
|
40
|
-
});
|
|
32
|
+
b.m("POST").h(headers).b(body);
|
|
33
|
+
return b.build();
|
|
41
34
|
};
|
|
42
35
|
exports.se_CreateApiCommand = se_CreateApiCommand;
|
|
43
36
|
const se_CreateApiMappingCommand = async (input, context) => {
|
|
44
|
-
const
|
|
37
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
45
38
|
const headers = {
|
|
46
39
|
"content-type": "application/json",
|
|
47
40
|
};
|
|
48
|
-
|
|
49
|
-
|
|
41
|
+
b.bp("/v2/domainnames/{DomainName}/apimappings");
|
|
42
|
+
b.p("DomainName", () => input.DomainName, "{DomainName}", false);
|
|
50
43
|
let body;
|
|
51
44
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
52
45
|
apiId: [, , `ApiId`],
|
|
53
46
|
apiMappingKey: [, , `ApiMappingKey`],
|
|
54
47
|
stage: [, , `Stage`],
|
|
55
48
|
}));
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
hostname,
|
|
59
|
-
port,
|
|
60
|
-
method: "POST",
|
|
61
|
-
headers,
|
|
62
|
-
path: resolvedPath,
|
|
63
|
-
body,
|
|
64
|
-
});
|
|
49
|
+
b.m("POST").h(headers).b(body);
|
|
50
|
+
return b.build();
|
|
65
51
|
};
|
|
66
52
|
exports.se_CreateApiMappingCommand = se_CreateApiMappingCommand;
|
|
67
53
|
const se_CreateAuthorizerCommand = async (input, context) => {
|
|
68
|
-
const
|
|
54
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
69
55
|
const headers = {
|
|
70
56
|
"content-type": "application/json",
|
|
71
57
|
};
|
|
72
|
-
|
|
73
|
-
|
|
58
|
+
b.bp("/v2/apis/{ApiId}/authorizers");
|
|
59
|
+
b.p("ApiId", () => input.ApiId, "{ApiId}", false);
|
|
74
60
|
let body;
|
|
75
61
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
76
62
|
authorizerCredentialsArn: [, , `AuthorizerCredentialsArn`],
|
|
@@ -84,46 +70,32 @@ const se_CreateAuthorizerCommand = async (input, context) => {
|
|
|
84
70
|
jwtConfiguration: [, (_) => se_JWTConfiguration(_, context), `JwtConfiguration`],
|
|
85
71
|
name: [, , `Name`],
|
|
86
72
|
}));
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
hostname,
|
|
90
|
-
port,
|
|
91
|
-
method: "POST",
|
|
92
|
-
headers,
|
|
93
|
-
path: resolvedPath,
|
|
94
|
-
body,
|
|
95
|
-
});
|
|
73
|
+
b.m("POST").h(headers).b(body);
|
|
74
|
+
return b.build();
|
|
96
75
|
};
|
|
97
76
|
exports.se_CreateAuthorizerCommand = se_CreateAuthorizerCommand;
|
|
98
77
|
const se_CreateDeploymentCommand = async (input, context) => {
|
|
99
|
-
const
|
|
78
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
100
79
|
const headers = {
|
|
101
80
|
"content-type": "application/json",
|
|
102
81
|
};
|
|
103
|
-
|
|
104
|
-
|
|
82
|
+
b.bp("/v2/apis/{ApiId}/deployments");
|
|
83
|
+
b.p("ApiId", () => input.ApiId, "{ApiId}", false);
|
|
105
84
|
let body;
|
|
106
85
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
107
86
|
description: [, , `Description`],
|
|
108
87
|
stageName: [, , `StageName`],
|
|
109
88
|
}));
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
hostname,
|
|
113
|
-
port,
|
|
114
|
-
method: "POST",
|
|
115
|
-
headers,
|
|
116
|
-
path: resolvedPath,
|
|
117
|
-
body,
|
|
118
|
-
});
|
|
89
|
+
b.m("POST").h(headers).b(body);
|
|
90
|
+
return b.build();
|
|
119
91
|
};
|
|
120
92
|
exports.se_CreateDeploymentCommand = se_CreateDeploymentCommand;
|
|
121
93
|
const se_CreateDomainNameCommand = async (input, context) => {
|
|
122
|
-
const
|
|
94
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
123
95
|
const headers = {
|
|
124
96
|
"content-type": "application/json",
|
|
125
97
|
};
|
|
126
|
-
|
|
98
|
+
b.bp("/v2/domainnames");
|
|
127
99
|
let body;
|
|
128
100
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
129
101
|
domainName: [, , `DomainName`],
|
|
@@ -131,24 +103,17 @@ const se_CreateDomainNameCommand = async (input, context) => {
|
|
|
131
103
|
mutualTlsAuthentication: [, (_) => se_MutualTlsAuthenticationInput(_, context), `MutualTlsAuthentication`],
|
|
132
104
|
tags: [, (_) => (0, smithy_client_1._json)(_), `Tags`],
|
|
133
105
|
}));
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
hostname,
|
|
137
|
-
port,
|
|
138
|
-
method: "POST",
|
|
139
|
-
headers,
|
|
140
|
-
path: resolvedPath,
|
|
141
|
-
body,
|
|
142
|
-
});
|
|
106
|
+
b.m("POST").h(headers).b(body);
|
|
107
|
+
return b.build();
|
|
143
108
|
};
|
|
144
109
|
exports.se_CreateDomainNameCommand = se_CreateDomainNameCommand;
|
|
145
110
|
const se_CreateIntegrationCommand = async (input, context) => {
|
|
146
|
-
const
|
|
111
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
147
112
|
const headers = {
|
|
148
113
|
"content-type": "application/json",
|
|
149
114
|
};
|
|
150
|
-
|
|
151
|
-
|
|
115
|
+
b.bp("/v2/apis/{ApiId}/integrations");
|
|
116
|
+
b.p("ApiId", () => input.ApiId, "{ApiId}", false);
|
|
152
117
|
let body;
|
|
153
118
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
154
119
|
connectionId: [, , `ConnectionId`],
|
|
@@ -169,26 +134,18 @@ const se_CreateIntegrationCommand = async (input, context) => {
|
|
|
169
134
|
timeoutInMillis: [, , `TimeoutInMillis`],
|
|
170
135
|
tlsConfig: [, (_) => se_TlsConfigInput(_, context), `TlsConfig`],
|
|
171
136
|
}));
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
hostname,
|
|
175
|
-
port,
|
|
176
|
-
method: "POST",
|
|
177
|
-
headers,
|
|
178
|
-
path: resolvedPath,
|
|
179
|
-
body,
|
|
180
|
-
});
|
|
137
|
+
b.m("POST").h(headers).b(body);
|
|
138
|
+
return b.build();
|
|
181
139
|
};
|
|
182
140
|
exports.se_CreateIntegrationCommand = se_CreateIntegrationCommand;
|
|
183
141
|
const se_CreateIntegrationResponseCommand = async (input, context) => {
|
|
184
|
-
const
|
|
142
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
185
143
|
const headers = {
|
|
186
144
|
"content-type": "application/json",
|
|
187
145
|
};
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "IntegrationId", () => input.IntegrationId, "{IntegrationId}", false);
|
|
146
|
+
b.bp("/v2/apis/{ApiId}/integrations/{IntegrationId}/integrationresponses");
|
|
147
|
+
b.p("ApiId", () => input.ApiId, "{ApiId}", false);
|
|
148
|
+
b.p("IntegrationId", () => input.IntegrationId, "{IntegrationId}", false);
|
|
192
149
|
let body;
|
|
193
150
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
194
151
|
contentHandlingStrategy: [, , `ContentHandlingStrategy`],
|
|
@@ -197,24 +154,17 @@ const se_CreateIntegrationResponseCommand = async (input, context) => {
|
|
|
197
154
|
responseTemplates: [, (_) => (0, smithy_client_1._json)(_), `ResponseTemplates`],
|
|
198
155
|
templateSelectionExpression: [, , `TemplateSelectionExpression`],
|
|
199
156
|
}));
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
hostname,
|
|
203
|
-
port,
|
|
204
|
-
method: "POST",
|
|
205
|
-
headers,
|
|
206
|
-
path: resolvedPath,
|
|
207
|
-
body,
|
|
208
|
-
});
|
|
157
|
+
b.m("POST").h(headers).b(body);
|
|
158
|
+
return b.build();
|
|
209
159
|
};
|
|
210
160
|
exports.se_CreateIntegrationResponseCommand = se_CreateIntegrationResponseCommand;
|
|
211
161
|
const se_CreateModelCommand = async (input, context) => {
|
|
212
|
-
const
|
|
162
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
213
163
|
const headers = {
|
|
214
164
|
"content-type": "application/json",
|
|
215
165
|
};
|
|
216
|
-
|
|
217
|
-
|
|
166
|
+
b.bp("/v2/apis/{ApiId}/models");
|
|
167
|
+
b.p("ApiId", () => input.ApiId, "{ApiId}", false);
|
|
218
168
|
let body;
|
|
219
169
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
220
170
|
contentType: [, , `ContentType`],
|
|
@@ -222,24 +172,17 @@ const se_CreateModelCommand = async (input, context) => {
|
|
|
222
172
|
name: [, , `Name`],
|
|
223
173
|
schema: [, , `Schema`],
|
|
224
174
|
}));
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
hostname,
|
|
228
|
-
port,
|
|
229
|
-
method: "POST",
|
|
230
|
-
headers,
|
|
231
|
-
path: resolvedPath,
|
|
232
|
-
body,
|
|
233
|
-
});
|
|
175
|
+
b.m("POST").h(headers).b(body);
|
|
176
|
+
return b.build();
|
|
234
177
|
};
|
|
235
178
|
exports.se_CreateModelCommand = se_CreateModelCommand;
|
|
236
179
|
const se_CreateRouteCommand = async (input, context) => {
|
|
237
|
-
const
|
|
180
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
238
181
|
const headers = {
|
|
239
182
|
"content-type": "application/json",
|
|
240
183
|
};
|
|
241
|
-
|
|
242
|
-
|
|
184
|
+
b.bp("/v2/apis/{ApiId}/routes");
|
|
185
|
+
b.p("ApiId", () => input.ApiId, "{ApiId}", false);
|
|
243
186
|
let body;
|
|
244
187
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
245
188
|
apiKeyRequired: [, , `ApiKeyRequired`],
|
|
@@ -254,26 +197,18 @@ const se_CreateRouteCommand = async (input, context) => {
|
|
|
254
197
|
routeResponseSelectionExpression: [, , `RouteResponseSelectionExpression`],
|
|
255
198
|
target: [, , `Target`],
|
|
256
199
|
}));
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
hostname,
|
|
260
|
-
port,
|
|
261
|
-
method: "POST",
|
|
262
|
-
headers,
|
|
263
|
-
path: resolvedPath,
|
|
264
|
-
body,
|
|
265
|
-
});
|
|
200
|
+
b.m("POST").h(headers).b(body);
|
|
201
|
+
return b.build();
|
|
266
202
|
};
|
|
267
203
|
exports.se_CreateRouteCommand = se_CreateRouteCommand;
|
|
268
204
|
const se_CreateRouteResponseCommand = async (input, context) => {
|
|
269
|
-
const
|
|
205
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
270
206
|
const headers = {
|
|
271
207
|
"content-type": "application/json",
|
|
272
208
|
};
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RouteId", () => input.RouteId, "{RouteId}", false);
|
|
209
|
+
b.bp("/v2/apis/{ApiId}/routes/{RouteId}/routeresponses");
|
|
210
|
+
b.p("ApiId", () => input.ApiId, "{ApiId}", false);
|
|
211
|
+
b.p("RouteId", () => input.RouteId, "{RouteId}", false);
|
|
277
212
|
let body;
|
|
278
213
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
279
214
|
modelSelectionExpression: [, , `ModelSelectionExpression`],
|
|
@@ -281,24 +216,17 @@ const se_CreateRouteResponseCommand = async (input, context) => {
|
|
|
281
216
|
responseParameters: [, (_) => se_RouteParameters(_, context), `ResponseParameters`],
|
|
282
217
|
routeResponseKey: [, , `RouteResponseKey`],
|
|
283
218
|
}));
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
hostname,
|
|
287
|
-
port,
|
|
288
|
-
method: "POST",
|
|
289
|
-
headers,
|
|
290
|
-
path: resolvedPath,
|
|
291
|
-
body,
|
|
292
|
-
});
|
|
219
|
+
b.m("POST").h(headers).b(body);
|
|
220
|
+
return b.build();
|
|
293
221
|
};
|
|
294
222
|
exports.se_CreateRouteResponseCommand = se_CreateRouteResponseCommand;
|
|
295
223
|
const se_CreateStageCommand = async (input, context) => {
|
|
296
|
-
const
|
|
224
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
297
225
|
const headers = {
|
|
298
226
|
"content-type": "application/json",
|
|
299
227
|
};
|
|
300
|
-
|
|
301
|
-
|
|
228
|
+
b.bp("/v2/apis/{ApiId}/stages");
|
|
229
|
+
b.p("ApiId", () => input.ApiId, "{ApiId}", false);
|
|
302
230
|
let body;
|
|
303
231
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
304
232
|
accessLogSettings: [, (_) => se_AccessLogSettings(_, context), `AccessLogSettings`],
|
|
@@ -312,23 +240,16 @@ const se_CreateStageCommand = async (input, context) => {
|
|
|
312
240
|
stageVariables: [, (_) => (0, smithy_client_1._json)(_), `StageVariables`],
|
|
313
241
|
tags: [, (_) => (0, smithy_client_1._json)(_), `Tags`],
|
|
314
242
|
}));
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
hostname,
|
|
318
|
-
port,
|
|
319
|
-
method: "POST",
|
|
320
|
-
headers,
|
|
321
|
-
path: resolvedPath,
|
|
322
|
-
body,
|
|
323
|
-
});
|
|
243
|
+
b.m("POST").h(headers).b(body);
|
|
244
|
+
return b.build();
|
|
324
245
|
};
|
|
325
246
|
exports.se_CreateStageCommand = se_CreateStageCommand;
|
|
326
247
|
const se_CreateVpcLinkCommand = async (input, context) => {
|
|
327
|
-
const
|
|
248
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
328
249
|
const headers = {
|
|
329
250
|
"content-type": "application/json",
|
|
330
251
|
};
|
|
331
|
-
|
|
252
|
+
b.bp("/v2/vpclinks");
|
|
332
253
|
let body;
|
|
333
254
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
334
255
|
name: [, , `Name`],
|
|
@@ -336,986 +257,608 @@ const se_CreateVpcLinkCommand = async (input, context) => {
|
|
|
336
257
|
subnetIds: [, (_) => (0, smithy_client_1._json)(_), `SubnetIds`],
|
|
337
258
|
tags: [, (_) => (0, smithy_client_1._json)(_), `Tags`],
|
|
338
259
|
}));
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
hostname,
|
|
342
|
-
port,
|
|
343
|
-
method: "POST",
|
|
344
|
-
headers,
|
|
345
|
-
path: resolvedPath,
|
|
346
|
-
body,
|
|
347
|
-
});
|
|
260
|
+
b.m("POST").h(headers).b(body);
|
|
261
|
+
return b.build();
|
|
348
262
|
};
|
|
349
263
|
exports.se_CreateVpcLinkCommand = se_CreateVpcLinkCommand;
|
|
350
264
|
const se_DeleteAccessLogSettingsCommand = async (input, context) => {
|
|
351
|
-
const
|
|
265
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
352
266
|
const headers = {};
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "StageName", () => input.StageName, "{StageName}", false);
|
|
267
|
+
b.bp("/v2/apis/{ApiId}/stages/{StageName}/accesslogsettings");
|
|
268
|
+
b.p("ApiId", () => input.ApiId, "{ApiId}", false);
|
|
269
|
+
b.p("StageName", () => input.StageName, "{StageName}", false);
|
|
357
270
|
let body;
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
hostname,
|
|
361
|
-
port,
|
|
362
|
-
method: "DELETE",
|
|
363
|
-
headers,
|
|
364
|
-
path: resolvedPath,
|
|
365
|
-
body,
|
|
366
|
-
});
|
|
271
|
+
b.m("DELETE").h(headers).b(body);
|
|
272
|
+
return b.build();
|
|
367
273
|
};
|
|
368
274
|
exports.se_DeleteAccessLogSettingsCommand = se_DeleteAccessLogSettingsCommand;
|
|
369
275
|
const se_DeleteApiCommand = async (input, context) => {
|
|
370
|
-
const
|
|
276
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
371
277
|
const headers = {};
|
|
372
|
-
|
|
373
|
-
|
|
278
|
+
b.bp("/v2/apis/{ApiId}");
|
|
279
|
+
b.p("ApiId", () => input.ApiId, "{ApiId}", false);
|
|
374
280
|
let body;
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
hostname,
|
|
378
|
-
port,
|
|
379
|
-
method: "DELETE",
|
|
380
|
-
headers,
|
|
381
|
-
path: resolvedPath,
|
|
382
|
-
body,
|
|
383
|
-
});
|
|
281
|
+
b.m("DELETE").h(headers).b(body);
|
|
282
|
+
return b.build();
|
|
384
283
|
};
|
|
385
284
|
exports.se_DeleteApiCommand = se_DeleteApiCommand;
|
|
386
285
|
const se_DeleteApiMappingCommand = async (input, context) => {
|
|
387
|
-
const
|
|
286
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
388
287
|
const headers = {};
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
|
|
288
|
+
b.bp("/v2/domainnames/{DomainName}/apimappings/{ApiMappingId}");
|
|
289
|
+
b.p("ApiMappingId", () => input.ApiMappingId, "{ApiMappingId}", false);
|
|
290
|
+
b.p("DomainName", () => input.DomainName, "{DomainName}", false);
|
|
393
291
|
let body;
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
hostname,
|
|
397
|
-
port,
|
|
398
|
-
method: "DELETE",
|
|
399
|
-
headers,
|
|
400
|
-
path: resolvedPath,
|
|
401
|
-
body,
|
|
402
|
-
});
|
|
292
|
+
b.m("DELETE").h(headers).b(body);
|
|
293
|
+
return b.build();
|
|
403
294
|
};
|
|
404
295
|
exports.se_DeleteApiMappingCommand = se_DeleteApiMappingCommand;
|
|
405
296
|
const se_DeleteAuthorizerCommand = async (input, context) => {
|
|
406
|
-
const
|
|
297
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
407
298
|
const headers = {};
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "AuthorizerId", () => input.AuthorizerId, "{AuthorizerId}", false);
|
|
299
|
+
b.bp("/v2/apis/{ApiId}/authorizers/{AuthorizerId}");
|
|
300
|
+
b.p("ApiId", () => input.ApiId, "{ApiId}", false);
|
|
301
|
+
b.p("AuthorizerId", () => input.AuthorizerId, "{AuthorizerId}", false);
|
|
412
302
|
let body;
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
hostname,
|
|
416
|
-
port,
|
|
417
|
-
method: "DELETE",
|
|
418
|
-
headers,
|
|
419
|
-
path: resolvedPath,
|
|
420
|
-
body,
|
|
421
|
-
});
|
|
303
|
+
b.m("DELETE").h(headers).b(body);
|
|
304
|
+
return b.build();
|
|
422
305
|
};
|
|
423
306
|
exports.se_DeleteAuthorizerCommand = se_DeleteAuthorizerCommand;
|
|
424
307
|
const se_DeleteCorsConfigurationCommand = async (input, context) => {
|
|
425
|
-
const
|
|
308
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
426
309
|
const headers = {};
|
|
427
|
-
|
|
428
|
-
|
|
310
|
+
b.bp("/v2/apis/{ApiId}/cors");
|
|
311
|
+
b.p("ApiId", () => input.ApiId, "{ApiId}", false);
|
|
429
312
|
let body;
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
hostname,
|
|
433
|
-
port,
|
|
434
|
-
method: "DELETE",
|
|
435
|
-
headers,
|
|
436
|
-
path: resolvedPath,
|
|
437
|
-
body,
|
|
438
|
-
});
|
|
313
|
+
b.m("DELETE").h(headers).b(body);
|
|
314
|
+
return b.build();
|
|
439
315
|
};
|
|
440
316
|
exports.se_DeleteCorsConfigurationCommand = se_DeleteCorsConfigurationCommand;
|
|
441
317
|
const se_DeleteDeploymentCommand = async (input, context) => {
|
|
442
|
-
const
|
|
318
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
443
319
|
const headers = {};
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DeploymentId", () => input.DeploymentId, "{DeploymentId}", false);
|
|
320
|
+
b.bp("/v2/apis/{ApiId}/deployments/{DeploymentId}");
|
|
321
|
+
b.p("ApiId", () => input.ApiId, "{ApiId}", false);
|
|
322
|
+
b.p("DeploymentId", () => input.DeploymentId, "{DeploymentId}", false);
|
|
448
323
|
let body;
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
hostname,
|
|
452
|
-
port,
|
|
453
|
-
method: "DELETE",
|
|
454
|
-
headers,
|
|
455
|
-
path: resolvedPath,
|
|
456
|
-
body,
|
|
457
|
-
});
|
|
324
|
+
b.m("DELETE").h(headers).b(body);
|
|
325
|
+
return b.build();
|
|
458
326
|
};
|
|
459
327
|
exports.se_DeleteDeploymentCommand = se_DeleteDeploymentCommand;
|
|
460
328
|
const se_DeleteDomainNameCommand = async (input, context) => {
|
|
461
|
-
const
|
|
329
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
462
330
|
const headers = {};
|
|
463
|
-
|
|
464
|
-
|
|
331
|
+
b.bp("/v2/domainnames/{DomainName}");
|
|
332
|
+
b.p("DomainName", () => input.DomainName, "{DomainName}", false);
|
|
465
333
|
let body;
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
hostname,
|
|
469
|
-
port,
|
|
470
|
-
method: "DELETE",
|
|
471
|
-
headers,
|
|
472
|
-
path: resolvedPath,
|
|
473
|
-
body,
|
|
474
|
-
});
|
|
334
|
+
b.m("DELETE").h(headers).b(body);
|
|
335
|
+
return b.build();
|
|
475
336
|
};
|
|
476
337
|
exports.se_DeleteDomainNameCommand = se_DeleteDomainNameCommand;
|
|
477
338
|
const se_DeleteIntegrationCommand = async (input, context) => {
|
|
478
|
-
const
|
|
339
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
479
340
|
const headers = {};
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "IntegrationId", () => input.IntegrationId, "{IntegrationId}", false);
|
|
341
|
+
b.bp("/v2/apis/{ApiId}/integrations/{IntegrationId}");
|
|
342
|
+
b.p("ApiId", () => input.ApiId, "{ApiId}", false);
|
|
343
|
+
b.p("IntegrationId", () => input.IntegrationId, "{IntegrationId}", false);
|
|
484
344
|
let body;
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
hostname,
|
|
488
|
-
port,
|
|
489
|
-
method: "DELETE",
|
|
490
|
-
headers,
|
|
491
|
-
path: resolvedPath,
|
|
492
|
-
body,
|
|
493
|
-
});
|
|
345
|
+
b.m("DELETE").h(headers).b(body);
|
|
346
|
+
return b.build();
|
|
494
347
|
};
|
|
495
348
|
exports.se_DeleteIntegrationCommand = se_DeleteIntegrationCommand;
|
|
496
349
|
const se_DeleteIntegrationResponseCommand = async (input, context) => {
|
|
497
|
-
const
|
|
350
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
498
351
|
const headers = {};
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "IntegrationResponseId", () => input.IntegrationResponseId, "{IntegrationResponseId}", false);
|
|
352
|
+
b.bp("/v2/apis/{ApiId}/integrations/{IntegrationId}/integrationresponses/{IntegrationResponseId}");
|
|
353
|
+
b.p("ApiId", () => input.ApiId, "{ApiId}", false);
|
|
354
|
+
b.p("IntegrationId", () => input.IntegrationId, "{IntegrationId}", false);
|
|
355
|
+
b.p("IntegrationResponseId", () => input.IntegrationResponseId, "{IntegrationResponseId}", false);
|
|
504
356
|
let body;
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
hostname,
|
|
508
|
-
port,
|
|
509
|
-
method: "DELETE",
|
|
510
|
-
headers,
|
|
511
|
-
path: resolvedPath,
|
|
512
|
-
body,
|
|
513
|
-
});
|
|
357
|
+
b.m("DELETE").h(headers).b(body);
|
|
358
|
+
return b.build();
|
|
514
359
|
};
|
|
515
360
|
exports.se_DeleteIntegrationResponseCommand = se_DeleteIntegrationResponseCommand;
|
|
516
361
|
const se_DeleteModelCommand = async (input, context) => {
|
|
517
|
-
const
|
|
362
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
518
363
|
const headers = {};
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
364
|
+
b.bp("/v2/apis/{ApiId}/models/{ModelId}");
|
|
365
|
+
b.p("ApiId", () => input.ApiId, "{ApiId}", false);
|
|
366
|
+
b.p("ModelId", () => input.ModelId, "{ModelId}", false);
|
|
522
367
|
let body;
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
hostname,
|
|
526
|
-
port,
|
|
527
|
-
method: "DELETE",
|
|
528
|
-
headers,
|
|
529
|
-
path: resolvedPath,
|
|
530
|
-
body,
|
|
531
|
-
});
|
|
368
|
+
b.m("DELETE").h(headers).b(body);
|
|
369
|
+
return b.build();
|
|
532
370
|
};
|
|
533
371
|
exports.se_DeleteModelCommand = se_DeleteModelCommand;
|
|
534
372
|
const se_DeleteRouteCommand = async (input, context) => {
|
|
535
|
-
const
|
|
373
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
536
374
|
const headers = {};
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
375
|
+
b.bp("/v2/apis/{ApiId}/routes/{RouteId}");
|
|
376
|
+
b.p("ApiId", () => input.ApiId, "{ApiId}", false);
|
|
377
|
+
b.p("RouteId", () => input.RouteId, "{RouteId}", false);
|
|
540
378
|
let body;
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
hostname,
|
|
544
|
-
port,
|
|
545
|
-
method: "DELETE",
|
|
546
|
-
headers,
|
|
547
|
-
path: resolvedPath,
|
|
548
|
-
body,
|
|
549
|
-
});
|
|
379
|
+
b.m("DELETE").h(headers).b(body);
|
|
380
|
+
return b.build();
|
|
550
381
|
};
|
|
551
382
|
exports.se_DeleteRouteCommand = se_DeleteRouteCommand;
|
|
552
383
|
const se_DeleteRouteRequestParameterCommand = async (input, context) => {
|
|
553
|
-
const
|
|
384
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
554
385
|
const headers = {};
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RouteId", () => input.RouteId, "{RouteId}", false);
|
|
386
|
+
b.bp("/v2/apis/{ApiId}/routes/{RouteId}/requestparameters/{RequestParameterKey}");
|
|
387
|
+
b.p("ApiId", () => input.ApiId, "{ApiId}", false);
|
|
388
|
+
b.p("RequestParameterKey", () => input.RequestParameterKey, "{RequestParameterKey}", false);
|
|
389
|
+
b.p("RouteId", () => input.RouteId, "{RouteId}", false);
|
|
560
390
|
let body;
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
hostname,
|
|
564
|
-
port,
|
|
565
|
-
method: "DELETE",
|
|
566
|
-
headers,
|
|
567
|
-
path: resolvedPath,
|
|
568
|
-
body,
|
|
569
|
-
});
|
|
391
|
+
b.m("DELETE").h(headers).b(body);
|
|
392
|
+
return b.build();
|
|
570
393
|
};
|
|
571
394
|
exports.se_DeleteRouteRequestParameterCommand = se_DeleteRouteRequestParameterCommand;
|
|
572
395
|
const se_DeleteRouteResponseCommand = async (input, context) => {
|
|
573
|
-
const
|
|
396
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
574
397
|
const headers = {};
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RouteResponseId", () => input.RouteResponseId, "{RouteResponseId}", false);
|
|
398
|
+
b.bp("/v2/apis/{ApiId}/routes/{RouteId}/routeresponses/{RouteResponseId}");
|
|
399
|
+
b.p("ApiId", () => input.ApiId, "{ApiId}", false);
|
|
400
|
+
b.p("RouteId", () => input.RouteId, "{RouteId}", false);
|
|
401
|
+
b.p("RouteResponseId", () => input.RouteResponseId, "{RouteResponseId}", false);
|
|
580
402
|
let body;
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
hostname,
|
|
584
|
-
port,
|
|
585
|
-
method: "DELETE",
|
|
586
|
-
headers,
|
|
587
|
-
path: resolvedPath,
|
|
588
|
-
body,
|
|
589
|
-
});
|
|
403
|
+
b.m("DELETE").h(headers).b(body);
|
|
404
|
+
return b.build();
|
|
590
405
|
};
|
|
591
406
|
exports.se_DeleteRouteResponseCommand = se_DeleteRouteResponseCommand;
|
|
592
407
|
const se_DeleteRouteSettingsCommand = async (input, context) => {
|
|
593
|
-
const
|
|
408
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
594
409
|
const headers = {};
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "StageName", () => input.StageName, "{StageName}", false);
|
|
410
|
+
b.bp("/v2/apis/{ApiId}/stages/{StageName}/routesettings/{RouteKey}");
|
|
411
|
+
b.p("ApiId", () => input.ApiId, "{ApiId}", false);
|
|
412
|
+
b.p("RouteKey", () => input.RouteKey, "{RouteKey}", false);
|
|
413
|
+
b.p("StageName", () => input.StageName, "{StageName}", false);
|
|
600
414
|
let body;
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
hostname,
|
|
604
|
-
port,
|
|
605
|
-
method: "DELETE",
|
|
606
|
-
headers,
|
|
607
|
-
path: resolvedPath,
|
|
608
|
-
body,
|
|
609
|
-
});
|
|
415
|
+
b.m("DELETE").h(headers).b(body);
|
|
416
|
+
return b.build();
|
|
610
417
|
};
|
|
611
418
|
exports.se_DeleteRouteSettingsCommand = se_DeleteRouteSettingsCommand;
|
|
612
419
|
const se_DeleteStageCommand = async (input, context) => {
|
|
613
|
-
const
|
|
420
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
614
421
|
const headers = {};
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
422
|
+
b.bp("/v2/apis/{ApiId}/stages/{StageName}");
|
|
423
|
+
b.p("ApiId", () => input.ApiId, "{ApiId}", false);
|
|
424
|
+
b.p("StageName", () => input.StageName, "{StageName}", false);
|
|
618
425
|
let body;
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
hostname,
|
|
622
|
-
port,
|
|
623
|
-
method: "DELETE",
|
|
624
|
-
headers,
|
|
625
|
-
path: resolvedPath,
|
|
626
|
-
body,
|
|
627
|
-
});
|
|
426
|
+
b.m("DELETE").h(headers).b(body);
|
|
427
|
+
return b.build();
|
|
628
428
|
};
|
|
629
429
|
exports.se_DeleteStageCommand = se_DeleteStageCommand;
|
|
630
430
|
const se_DeleteVpcLinkCommand = async (input, context) => {
|
|
631
|
-
const
|
|
431
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
632
432
|
const headers = {};
|
|
633
|
-
|
|
634
|
-
|
|
433
|
+
b.bp("/v2/vpclinks/{VpcLinkId}");
|
|
434
|
+
b.p("VpcLinkId", () => input.VpcLinkId, "{VpcLinkId}", false);
|
|
635
435
|
let body;
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
hostname,
|
|
639
|
-
port,
|
|
640
|
-
method: "DELETE",
|
|
641
|
-
headers,
|
|
642
|
-
path: resolvedPath,
|
|
643
|
-
body,
|
|
644
|
-
});
|
|
436
|
+
b.m("DELETE").h(headers).b(body);
|
|
437
|
+
return b.build();
|
|
645
438
|
};
|
|
646
439
|
exports.se_DeleteVpcLinkCommand = se_DeleteVpcLinkCommand;
|
|
647
440
|
const se_ExportApiCommand = async (input, context) => {
|
|
648
|
-
const
|
|
441
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
649
442
|
const headers = {};
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
443
|
+
b.bp("/v2/apis/{ApiId}/exports/{Specification}");
|
|
444
|
+
b.p("ApiId", () => input.ApiId, "{ApiId}", false);
|
|
445
|
+
b.p("Specification", () => input.Specification, "{Specification}", false);
|
|
653
446
|
const query = (0, smithy_client_1.map)({
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
447
|
+
[_eV]: [, input[_EV]],
|
|
448
|
+
[_iE]: [() => input.IncludeExtensions !== void 0, () => input[_IE].toString()],
|
|
449
|
+
[_oT]: [, (0, smithy_client_1.expectNonNull)(input[_OT], `OutputType`)],
|
|
450
|
+
[_sN]: [, input[_SN]],
|
|
658
451
|
});
|
|
659
452
|
let body;
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
hostname,
|
|
663
|
-
port,
|
|
664
|
-
method: "GET",
|
|
665
|
-
headers,
|
|
666
|
-
path: resolvedPath,
|
|
667
|
-
query,
|
|
668
|
-
body,
|
|
669
|
-
});
|
|
453
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
454
|
+
return b.build();
|
|
670
455
|
};
|
|
671
456
|
exports.se_ExportApiCommand = se_ExportApiCommand;
|
|
672
457
|
const se_GetApiCommand = async (input, context) => {
|
|
673
|
-
const
|
|
458
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
674
459
|
const headers = {};
|
|
675
|
-
|
|
676
|
-
|
|
460
|
+
b.bp("/v2/apis/{ApiId}");
|
|
461
|
+
b.p("ApiId", () => input.ApiId, "{ApiId}", false);
|
|
677
462
|
let body;
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
hostname,
|
|
681
|
-
port,
|
|
682
|
-
method: "GET",
|
|
683
|
-
headers,
|
|
684
|
-
path: resolvedPath,
|
|
685
|
-
body,
|
|
686
|
-
});
|
|
463
|
+
b.m("GET").h(headers).b(body);
|
|
464
|
+
return b.build();
|
|
687
465
|
};
|
|
688
466
|
exports.se_GetApiCommand = se_GetApiCommand;
|
|
689
467
|
const se_GetApiMappingCommand = async (input, context) => {
|
|
690
|
-
const
|
|
468
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
691
469
|
const headers = {};
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
|
|
470
|
+
b.bp("/v2/domainnames/{DomainName}/apimappings/{ApiMappingId}");
|
|
471
|
+
b.p("ApiMappingId", () => input.ApiMappingId, "{ApiMappingId}", false);
|
|
472
|
+
b.p("DomainName", () => input.DomainName, "{DomainName}", false);
|
|
696
473
|
let body;
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
hostname,
|
|
700
|
-
port,
|
|
701
|
-
method: "GET",
|
|
702
|
-
headers,
|
|
703
|
-
path: resolvedPath,
|
|
704
|
-
body,
|
|
705
|
-
});
|
|
474
|
+
b.m("GET").h(headers).b(body);
|
|
475
|
+
return b.build();
|
|
706
476
|
};
|
|
707
477
|
exports.se_GetApiMappingCommand = se_GetApiMappingCommand;
|
|
708
478
|
const se_GetApiMappingsCommand = async (input, context) => {
|
|
709
|
-
const
|
|
479
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
710
480
|
const headers = {};
|
|
711
|
-
|
|
712
|
-
|
|
481
|
+
b.bp("/v2/domainnames/{DomainName}/apimappings");
|
|
482
|
+
b.p("DomainName", () => input.DomainName, "{DomainName}", false);
|
|
713
483
|
const query = (0, smithy_client_1.map)({
|
|
714
|
-
|
|
715
|
-
|
|
484
|
+
[_mR]: [, input[_MR]],
|
|
485
|
+
[_nT]: [, input[_NT]],
|
|
716
486
|
});
|
|
717
487
|
let body;
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
hostname,
|
|
721
|
-
port,
|
|
722
|
-
method: "GET",
|
|
723
|
-
headers,
|
|
724
|
-
path: resolvedPath,
|
|
725
|
-
query,
|
|
726
|
-
body,
|
|
727
|
-
});
|
|
488
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
489
|
+
return b.build();
|
|
728
490
|
};
|
|
729
491
|
exports.se_GetApiMappingsCommand = se_GetApiMappingsCommand;
|
|
730
492
|
const se_GetApisCommand = async (input, context) => {
|
|
731
|
-
const
|
|
493
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
732
494
|
const headers = {};
|
|
733
|
-
|
|
495
|
+
b.bp("/v2/apis");
|
|
734
496
|
const query = (0, smithy_client_1.map)({
|
|
735
|
-
|
|
736
|
-
|
|
497
|
+
[_mR]: [, input[_MR]],
|
|
498
|
+
[_nT]: [, input[_NT]],
|
|
737
499
|
});
|
|
738
500
|
let body;
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
hostname,
|
|
742
|
-
port,
|
|
743
|
-
method: "GET",
|
|
744
|
-
headers,
|
|
745
|
-
path: resolvedPath,
|
|
746
|
-
query,
|
|
747
|
-
body,
|
|
748
|
-
});
|
|
501
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
502
|
+
return b.build();
|
|
749
503
|
};
|
|
750
504
|
exports.se_GetApisCommand = se_GetApisCommand;
|
|
751
505
|
const se_GetAuthorizerCommand = async (input, context) => {
|
|
752
|
-
const
|
|
506
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
753
507
|
const headers = {};
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "AuthorizerId", () => input.AuthorizerId, "{AuthorizerId}", false);
|
|
508
|
+
b.bp("/v2/apis/{ApiId}/authorizers/{AuthorizerId}");
|
|
509
|
+
b.p("ApiId", () => input.ApiId, "{ApiId}", false);
|
|
510
|
+
b.p("AuthorizerId", () => input.AuthorizerId, "{AuthorizerId}", false);
|
|
758
511
|
let body;
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
hostname,
|
|
762
|
-
port,
|
|
763
|
-
method: "GET",
|
|
764
|
-
headers,
|
|
765
|
-
path: resolvedPath,
|
|
766
|
-
body,
|
|
767
|
-
});
|
|
512
|
+
b.m("GET").h(headers).b(body);
|
|
513
|
+
return b.build();
|
|
768
514
|
};
|
|
769
515
|
exports.se_GetAuthorizerCommand = se_GetAuthorizerCommand;
|
|
770
516
|
const se_GetAuthorizersCommand = async (input, context) => {
|
|
771
|
-
const
|
|
517
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
772
518
|
const headers = {};
|
|
773
|
-
|
|
774
|
-
|
|
519
|
+
b.bp("/v2/apis/{ApiId}/authorizers");
|
|
520
|
+
b.p("ApiId", () => input.ApiId, "{ApiId}", false);
|
|
775
521
|
const query = (0, smithy_client_1.map)({
|
|
776
|
-
|
|
777
|
-
|
|
522
|
+
[_mR]: [, input[_MR]],
|
|
523
|
+
[_nT]: [, input[_NT]],
|
|
778
524
|
});
|
|
779
525
|
let body;
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
hostname,
|
|
783
|
-
port,
|
|
784
|
-
method: "GET",
|
|
785
|
-
headers,
|
|
786
|
-
path: resolvedPath,
|
|
787
|
-
query,
|
|
788
|
-
body,
|
|
789
|
-
});
|
|
526
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
527
|
+
return b.build();
|
|
790
528
|
};
|
|
791
529
|
exports.se_GetAuthorizersCommand = se_GetAuthorizersCommand;
|
|
792
530
|
const se_GetDeploymentCommand = async (input, context) => {
|
|
793
|
-
const
|
|
531
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
794
532
|
const headers = {};
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DeploymentId", () => input.DeploymentId, "{DeploymentId}", false);
|
|
533
|
+
b.bp("/v2/apis/{ApiId}/deployments/{DeploymentId}");
|
|
534
|
+
b.p("ApiId", () => input.ApiId, "{ApiId}", false);
|
|
535
|
+
b.p("DeploymentId", () => input.DeploymentId, "{DeploymentId}", false);
|
|
799
536
|
let body;
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
hostname,
|
|
803
|
-
port,
|
|
804
|
-
method: "GET",
|
|
805
|
-
headers,
|
|
806
|
-
path: resolvedPath,
|
|
807
|
-
body,
|
|
808
|
-
});
|
|
537
|
+
b.m("GET").h(headers).b(body);
|
|
538
|
+
return b.build();
|
|
809
539
|
};
|
|
810
540
|
exports.se_GetDeploymentCommand = se_GetDeploymentCommand;
|
|
811
541
|
const se_GetDeploymentsCommand = async (input, context) => {
|
|
812
|
-
const
|
|
542
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
813
543
|
const headers = {};
|
|
814
|
-
|
|
815
|
-
|
|
544
|
+
b.bp("/v2/apis/{ApiId}/deployments");
|
|
545
|
+
b.p("ApiId", () => input.ApiId, "{ApiId}", false);
|
|
816
546
|
const query = (0, smithy_client_1.map)({
|
|
817
|
-
|
|
818
|
-
|
|
547
|
+
[_mR]: [, input[_MR]],
|
|
548
|
+
[_nT]: [, input[_NT]],
|
|
819
549
|
});
|
|
820
550
|
let body;
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
hostname,
|
|
824
|
-
port,
|
|
825
|
-
method: "GET",
|
|
826
|
-
headers,
|
|
827
|
-
path: resolvedPath,
|
|
828
|
-
query,
|
|
829
|
-
body,
|
|
830
|
-
});
|
|
551
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
552
|
+
return b.build();
|
|
831
553
|
};
|
|
832
554
|
exports.se_GetDeploymentsCommand = se_GetDeploymentsCommand;
|
|
833
555
|
const se_GetDomainNameCommand = async (input, context) => {
|
|
834
|
-
const
|
|
556
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
835
557
|
const headers = {};
|
|
836
|
-
|
|
837
|
-
|
|
558
|
+
b.bp("/v2/domainnames/{DomainName}");
|
|
559
|
+
b.p("DomainName", () => input.DomainName, "{DomainName}", false);
|
|
838
560
|
let body;
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
hostname,
|
|
842
|
-
port,
|
|
843
|
-
method: "GET",
|
|
844
|
-
headers,
|
|
845
|
-
path: resolvedPath,
|
|
846
|
-
body,
|
|
847
|
-
});
|
|
561
|
+
b.m("GET").h(headers).b(body);
|
|
562
|
+
return b.build();
|
|
848
563
|
};
|
|
849
564
|
exports.se_GetDomainNameCommand = se_GetDomainNameCommand;
|
|
850
565
|
const se_GetDomainNamesCommand = async (input, context) => {
|
|
851
|
-
const
|
|
566
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
852
567
|
const headers = {};
|
|
853
|
-
|
|
568
|
+
b.bp("/v2/domainnames");
|
|
854
569
|
const query = (0, smithy_client_1.map)({
|
|
855
|
-
|
|
856
|
-
|
|
570
|
+
[_mR]: [, input[_MR]],
|
|
571
|
+
[_nT]: [, input[_NT]],
|
|
857
572
|
});
|
|
858
573
|
let body;
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
hostname,
|
|
862
|
-
port,
|
|
863
|
-
method: "GET",
|
|
864
|
-
headers,
|
|
865
|
-
path: resolvedPath,
|
|
866
|
-
query,
|
|
867
|
-
body,
|
|
868
|
-
});
|
|
574
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
575
|
+
return b.build();
|
|
869
576
|
};
|
|
870
577
|
exports.se_GetDomainNamesCommand = se_GetDomainNamesCommand;
|
|
871
578
|
const se_GetIntegrationCommand = async (input, context) => {
|
|
872
|
-
const
|
|
579
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
873
580
|
const headers = {};
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "IntegrationId", () => input.IntegrationId, "{IntegrationId}", false);
|
|
581
|
+
b.bp("/v2/apis/{ApiId}/integrations/{IntegrationId}");
|
|
582
|
+
b.p("ApiId", () => input.ApiId, "{ApiId}", false);
|
|
583
|
+
b.p("IntegrationId", () => input.IntegrationId, "{IntegrationId}", false);
|
|
878
584
|
let body;
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
hostname,
|
|
882
|
-
port,
|
|
883
|
-
method: "GET",
|
|
884
|
-
headers,
|
|
885
|
-
path: resolvedPath,
|
|
886
|
-
body,
|
|
887
|
-
});
|
|
585
|
+
b.m("GET").h(headers).b(body);
|
|
586
|
+
return b.build();
|
|
888
587
|
};
|
|
889
588
|
exports.se_GetIntegrationCommand = se_GetIntegrationCommand;
|
|
890
589
|
const se_GetIntegrationResponseCommand = async (input, context) => {
|
|
891
|
-
const
|
|
590
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
892
591
|
const headers = {};
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "IntegrationResponseId", () => input.IntegrationResponseId, "{IntegrationResponseId}", false);
|
|
592
|
+
b.bp("/v2/apis/{ApiId}/integrations/{IntegrationId}/integrationresponses/{IntegrationResponseId}");
|
|
593
|
+
b.p("ApiId", () => input.ApiId, "{ApiId}", false);
|
|
594
|
+
b.p("IntegrationId", () => input.IntegrationId, "{IntegrationId}", false);
|
|
595
|
+
b.p("IntegrationResponseId", () => input.IntegrationResponseId, "{IntegrationResponseId}", false);
|
|
898
596
|
let body;
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
hostname,
|
|
902
|
-
port,
|
|
903
|
-
method: "GET",
|
|
904
|
-
headers,
|
|
905
|
-
path: resolvedPath,
|
|
906
|
-
body,
|
|
907
|
-
});
|
|
597
|
+
b.m("GET").h(headers).b(body);
|
|
598
|
+
return b.build();
|
|
908
599
|
};
|
|
909
600
|
exports.se_GetIntegrationResponseCommand = se_GetIntegrationResponseCommand;
|
|
910
601
|
const se_GetIntegrationResponsesCommand = async (input, context) => {
|
|
911
|
-
const
|
|
602
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
912
603
|
const headers = {};
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "IntegrationId", () => input.IntegrationId, "{IntegrationId}", false);
|
|
604
|
+
b.bp("/v2/apis/{ApiId}/integrations/{IntegrationId}/integrationresponses");
|
|
605
|
+
b.p("ApiId", () => input.ApiId, "{ApiId}", false);
|
|
606
|
+
b.p("IntegrationId", () => input.IntegrationId, "{IntegrationId}", false);
|
|
917
607
|
const query = (0, smithy_client_1.map)({
|
|
918
|
-
|
|
919
|
-
|
|
608
|
+
[_mR]: [, input[_MR]],
|
|
609
|
+
[_nT]: [, input[_NT]],
|
|
920
610
|
});
|
|
921
611
|
let body;
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
hostname,
|
|
925
|
-
port,
|
|
926
|
-
method: "GET",
|
|
927
|
-
headers,
|
|
928
|
-
path: resolvedPath,
|
|
929
|
-
query,
|
|
930
|
-
body,
|
|
931
|
-
});
|
|
612
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
613
|
+
return b.build();
|
|
932
614
|
};
|
|
933
615
|
exports.se_GetIntegrationResponsesCommand = se_GetIntegrationResponsesCommand;
|
|
934
616
|
const se_GetIntegrationsCommand = async (input, context) => {
|
|
935
|
-
const
|
|
617
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
936
618
|
const headers = {};
|
|
937
|
-
|
|
938
|
-
|
|
619
|
+
b.bp("/v2/apis/{ApiId}/integrations");
|
|
620
|
+
b.p("ApiId", () => input.ApiId, "{ApiId}", false);
|
|
939
621
|
const query = (0, smithy_client_1.map)({
|
|
940
|
-
|
|
941
|
-
|
|
622
|
+
[_mR]: [, input[_MR]],
|
|
623
|
+
[_nT]: [, input[_NT]],
|
|
942
624
|
});
|
|
943
625
|
let body;
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
hostname,
|
|
947
|
-
port,
|
|
948
|
-
method: "GET",
|
|
949
|
-
headers,
|
|
950
|
-
path: resolvedPath,
|
|
951
|
-
query,
|
|
952
|
-
body,
|
|
953
|
-
});
|
|
626
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
627
|
+
return b.build();
|
|
954
628
|
};
|
|
955
629
|
exports.se_GetIntegrationsCommand = se_GetIntegrationsCommand;
|
|
956
630
|
const se_GetModelCommand = async (input, context) => {
|
|
957
|
-
const
|
|
631
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
958
632
|
const headers = {};
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
633
|
+
b.bp("/v2/apis/{ApiId}/models/{ModelId}");
|
|
634
|
+
b.p("ApiId", () => input.ApiId, "{ApiId}", false);
|
|
635
|
+
b.p("ModelId", () => input.ModelId, "{ModelId}", false);
|
|
962
636
|
let body;
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
hostname,
|
|
966
|
-
port,
|
|
967
|
-
method: "GET",
|
|
968
|
-
headers,
|
|
969
|
-
path: resolvedPath,
|
|
970
|
-
body,
|
|
971
|
-
});
|
|
637
|
+
b.m("GET").h(headers).b(body);
|
|
638
|
+
return b.build();
|
|
972
639
|
};
|
|
973
640
|
exports.se_GetModelCommand = se_GetModelCommand;
|
|
974
641
|
const se_GetModelsCommand = async (input, context) => {
|
|
975
|
-
const
|
|
642
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
976
643
|
const headers = {};
|
|
977
|
-
|
|
978
|
-
|
|
644
|
+
b.bp("/v2/apis/{ApiId}/models");
|
|
645
|
+
b.p("ApiId", () => input.ApiId, "{ApiId}", false);
|
|
979
646
|
const query = (0, smithy_client_1.map)({
|
|
980
|
-
|
|
981
|
-
|
|
647
|
+
[_mR]: [, input[_MR]],
|
|
648
|
+
[_nT]: [, input[_NT]],
|
|
982
649
|
});
|
|
983
650
|
let body;
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
hostname,
|
|
987
|
-
port,
|
|
988
|
-
method: "GET",
|
|
989
|
-
headers,
|
|
990
|
-
path: resolvedPath,
|
|
991
|
-
query,
|
|
992
|
-
body,
|
|
993
|
-
});
|
|
651
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
652
|
+
return b.build();
|
|
994
653
|
};
|
|
995
654
|
exports.se_GetModelsCommand = se_GetModelsCommand;
|
|
996
655
|
const se_GetModelTemplateCommand = async (input, context) => {
|
|
997
|
-
const
|
|
656
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
998
657
|
const headers = {};
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ModelId", () => input.ModelId, "{ModelId}", false);
|
|
658
|
+
b.bp("/v2/apis/{ApiId}/models/{ModelId}/template");
|
|
659
|
+
b.p("ApiId", () => input.ApiId, "{ApiId}", false);
|
|
660
|
+
b.p("ModelId", () => input.ModelId, "{ModelId}", false);
|
|
1003
661
|
let body;
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
hostname,
|
|
1007
|
-
port,
|
|
1008
|
-
method: "GET",
|
|
1009
|
-
headers,
|
|
1010
|
-
path: resolvedPath,
|
|
1011
|
-
body,
|
|
1012
|
-
});
|
|
662
|
+
b.m("GET").h(headers).b(body);
|
|
663
|
+
return b.build();
|
|
1013
664
|
};
|
|
1014
665
|
exports.se_GetModelTemplateCommand = se_GetModelTemplateCommand;
|
|
1015
666
|
const se_GetRouteCommand = async (input, context) => {
|
|
1016
|
-
const
|
|
667
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1017
668
|
const headers = {};
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
669
|
+
b.bp("/v2/apis/{ApiId}/routes/{RouteId}");
|
|
670
|
+
b.p("ApiId", () => input.ApiId, "{ApiId}", false);
|
|
671
|
+
b.p("RouteId", () => input.RouteId, "{RouteId}", false);
|
|
1021
672
|
let body;
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
hostname,
|
|
1025
|
-
port,
|
|
1026
|
-
method: "GET",
|
|
1027
|
-
headers,
|
|
1028
|
-
path: resolvedPath,
|
|
1029
|
-
body,
|
|
1030
|
-
});
|
|
673
|
+
b.m("GET").h(headers).b(body);
|
|
674
|
+
return b.build();
|
|
1031
675
|
};
|
|
1032
676
|
exports.se_GetRouteCommand = se_GetRouteCommand;
|
|
1033
677
|
const se_GetRouteResponseCommand = async (input, context) => {
|
|
1034
|
-
const
|
|
678
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1035
679
|
const headers = {};
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RouteResponseId", () => input.RouteResponseId, "{RouteResponseId}", false);
|
|
680
|
+
b.bp("/v2/apis/{ApiId}/routes/{RouteId}/routeresponses/{RouteResponseId}");
|
|
681
|
+
b.p("ApiId", () => input.ApiId, "{ApiId}", false);
|
|
682
|
+
b.p("RouteId", () => input.RouteId, "{RouteId}", false);
|
|
683
|
+
b.p("RouteResponseId", () => input.RouteResponseId, "{RouteResponseId}", false);
|
|
1041
684
|
let body;
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
hostname,
|
|
1045
|
-
port,
|
|
1046
|
-
method: "GET",
|
|
1047
|
-
headers,
|
|
1048
|
-
path: resolvedPath,
|
|
1049
|
-
body,
|
|
1050
|
-
});
|
|
685
|
+
b.m("GET").h(headers).b(body);
|
|
686
|
+
return b.build();
|
|
1051
687
|
};
|
|
1052
688
|
exports.se_GetRouteResponseCommand = se_GetRouteResponseCommand;
|
|
1053
689
|
const se_GetRouteResponsesCommand = async (input, context) => {
|
|
1054
|
-
const
|
|
690
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1055
691
|
const headers = {};
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RouteId", () => input.RouteId, "{RouteId}", false);
|
|
692
|
+
b.bp("/v2/apis/{ApiId}/routes/{RouteId}/routeresponses");
|
|
693
|
+
b.p("ApiId", () => input.ApiId, "{ApiId}", false);
|
|
694
|
+
b.p("RouteId", () => input.RouteId, "{RouteId}", false);
|
|
1060
695
|
const query = (0, smithy_client_1.map)({
|
|
1061
|
-
|
|
1062
|
-
|
|
696
|
+
[_mR]: [, input[_MR]],
|
|
697
|
+
[_nT]: [, input[_NT]],
|
|
1063
698
|
});
|
|
1064
699
|
let body;
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
hostname,
|
|
1068
|
-
port,
|
|
1069
|
-
method: "GET",
|
|
1070
|
-
headers,
|
|
1071
|
-
path: resolvedPath,
|
|
1072
|
-
query,
|
|
1073
|
-
body,
|
|
1074
|
-
});
|
|
700
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
701
|
+
return b.build();
|
|
1075
702
|
};
|
|
1076
703
|
exports.se_GetRouteResponsesCommand = se_GetRouteResponsesCommand;
|
|
1077
704
|
const se_GetRoutesCommand = async (input, context) => {
|
|
1078
|
-
const
|
|
705
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1079
706
|
const headers = {};
|
|
1080
|
-
|
|
1081
|
-
|
|
707
|
+
b.bp("/v2/apis/{ApiId}/routes");
|
|
708
|
+
b.p("ApiId", () => input.ApiId, "{ApiId}", false);
|
|
1082
709
|
const query = (0, smithy_client_1.map)({
|
|
1083
|
-
|
|
1084
|
-
|
|
710
|
+
[_mR]: [, input[_MR]],
|
|
711
|
+
[_nT]: [, input[_NT]],
|
|
1085
712
|
});
|
|
1086
713
|
let body;
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
hostname,
|
|
1090
|
-
port,
|
|
1091
|
-
method: "GET",
|
|
1092
|
-
headers,
|
|
1093
|
-
path: resolvedPath,
|
|
1094
|
-
query,
|
|
1095
|
-
body,
|
|
1096
|
-
});
|
|
714
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
715
|
+
return b.build();
|
|
1097
716
|
};
|
|
1098
717
|
exports.se_GetRoutesCommand = se_GetRoutesCommand;
|
|
1099
718
|
const se_GetStageCommand = async (input, context) => {
|
|
1100
|
-
const
|
|
719
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1101
720
|
const headers = {};
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
721
|
+
b.bp("/v2/apis/{ApiId}/stages/{StageName}");
|
|
722
|
+
b.p("ApiId", () => input.ApiId, "{ApiId}", false);
|
|
723
|
+
b.p("StageName", () => input.StageName, "{StageName}", false);
|
|
1105
724
|
let body;
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
hostname,
|
|
1109
|
-
port,
|
|
1110
|
-
method: "GET",
|
|
1111
|
-
headers,
|
|
1112
|
-
path: resolvedPath,
|
|
1113
|
-
body,
|
|
1114
|
-
});
|
|
725
|
+
b.m("GET").h(headers).b(body);
|
|
726
|
+
return b.build();
|
|
1115
727
|
};
|
|
1116
728
|
exports.se_GetStageCommand = se_GetStageCommand;
|
|
1117
729
|
const se_GetStagesCommand = async (input, context) => {
|
|
1118
|
-
const
|
|
730
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1119
731
|
const headers = {};
|
|
1120
|
-
|
|
1121
|
-
|
|
732
|
+
b.bp("/v2/apis/{ApiId}/stages");
|
|
733
|
+
b.p("ApiId", () => input.ApiId, "{ApiId}", false);
|
|
1122
734
|
const query = (0, smithy_client_1.map)({
|
|
1123
|
-
|
|
1124
|
-
|
|
735
|
+
[_mR]: [, input[_MR]],
|
|
736
|
+
[_nT]: [, input[_NT]],
|
|
1125
737
|
});
|
|
1126
738
|
let body;
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
hostname,
|
|
1130
|
-
port,
|
|
1131
|
-
method: "GET",
|
|
1132
|
-
headers,
|
|
1133
|
-
path: resolvedPath,
|
|
1134
|
-
query,
|
|
1135
|
-
body,
|
|
1136
|
-
});
|
|
739
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
740
|
+
return b.build();
|
|
1137
741
|
};
|
|
1138
742
|
exports.se_GetStagesCommand = se_GetStagesCommand;
|
|
1139
743
|
const se_GetTagsCommand = async (input, context) => {
|
|
1140
|
-
const
|
|
744
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1141
745
|
const headers = {};
|
|
1142
|
-
|
|
1143
|
-
|
|
746
|
+
b.bp("/v2/tags/{ResourceArn}");
|
|
747
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
1144
748
|
let body;
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
hostname,
|
|
1148
|
-
port,
|
|
1149
|
-
method: "GET",
|
|
1150
|
-
headers,
|
|
1151
|
-
path: resolvedPath,
|
|
1152
|
-
body,
|
|
1153
|
-
});
|
|
749
|
+
b.m("GET").h(headers).b(body);
|
|
750
|
+
return b.build();
|
|
1154
751
|
};
|
|
1155
752
|
exports.se_GetTagsCommand = se_GetTagsCommand;
|
|
1156
753
|
const se_GetVpcLinkCommand = async (input, context) => {
|
|
1157
|
-
const
|
|
754
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1158
755
|
const headers = {};
|
|
1159
|
-
|
|
1160
|
-
|
|
756
|
+
b.bp("/v2/vpclinks/{VpcLinkId}");
|
|
757
|
+
b.p("VpcLinkId", () => input.VpcLinkId, "{VpcLinkId}", false);
|
|
1161
758
|
let body;
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
hostname,
|
|
1165
|
-
port,
|
|
1166
|
-
method: "GET",
|
|
1167
|
-
headers,
|
|
1168
|
-
path: resolvedPath,
|
|
1169
|
-
body,
|
|
1170
|
-
});
|
|
759
|
+
b.m("GET").h(headers).b(body);
|
|
760
|
+
return b.build();
|
|
1171
761
|
};
|
|
1172
762
|
exports.se_GetVpcLinkCommand = se_GetVpcLinkCommand;
|
|
1173
763
|
const se_GetVpcLinksCommand = async (input, context) => {
|
|
1174
|
-
const
|
|
764
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1175
765
|
const headers = {};
|
|
1176
|
-
|
|
766
|
+
b.bp("/v2/vpclinks");
|
|
1177
767
|
const query = (0, smithy_client_1.map)({
|
|
1178
|
-
|
|
1179
|
-
|
|
768
|
+
[_mR]: [, input[_MR]],
|
|
769
|
+
[_nT]: [, input[_NT]],
|
|
1180
770
|
});
|
|
1181
771
|
let body;
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
hostname,
|
|
1185
|
-
port,
|
|
1186
|
-
method: "GET",
|
|
1187
|
-
headers,
|
|
1188
|
-
path: resolvedPath,
|
|
1189
|
-
query,
|
|
1190
|
-
body,
|
|
1191
|
-
});
|
|
772
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
773
|
+
return b.build();
|
|
1192
774
|
};
|
|
1193
775
|
exports.se_GetVpcLinksCommand = se_GetVpcLinksCommand;
|
|
1194
776
|
const se_ImportApiCommand = async (input, context) => {
|
|
1195
|
-
const
|
|
777
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1196
778
|
const headers = {
|
|
1197
779
|
"content-type": "application/json",
|
|
1198
780
|
};
|
|
1199
|
-
|
|
781
|
+
b.bp("/v2/apis");
|
|
1200
782
|
const query = (0, smithy_client_1.map)({
|
|
1201
|
-
|
|
1202
|
-
|
|
783
|
+
[_b]: [, input[_B]],
|
|
784
|
+
[_fOW]: [() => input.FailOnWarnings !== void 0, () => input[_FOW].toString()],
|
|
1203
785
|
});
|
|
1204
786
|
let body;
|
|
1205
787
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1206
788
|
body: [, , `Body`],
|
|
1207
789
|
}));
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
hostname,
|
|
1211
|
-
port,
|
|
1212
|
-
method: "PUT",
|
|
1213
|
-
headers,
|
|
1214
|
-
path: resolvedPath,
|
|
1215
|
-
query,
|
|
1216
|
-
body,
|
|
1217
|
-
});
|
|
790
|
+
b.m("PUT").h(headers).q(query).b(body);
|
|
791
|
+
return b.build();
|
|
1218
792
|
};
|
|
1219
793
|
exports.se_ImportApiCommand = se_ImportApiCommand;
|
|
1220
794
|
const se_ReimportApiCommand = async (input, context) => {
|
|
1221
|
-
const
|
|
795
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1222
796
|
const headers = {
|
|
1223
797
|
"content-type": "application/json",
|
|
1224
798
|
};
|
|
1225
|
-
|
|
1226
|
-
|
|
799
|
+
b.bp("/v2/apis/{ApiId}");
|
|
800
|
+
b.p("ApiId", () => input.ApiId, "{ApiId}", false);
|
|
1227
801
|
const query = (0, smithy_client_1.map)({
|
|
1228
|
-
|
|
1229
|
-
|
|
802
|
+
[_b]: [, input[_B]],
|
|
803
|
+
[_fOW]: [() => input.FailOnWarnings !== void 0, () => input[_FOW].toString()],
|
|
1230
804
|
});
|
|
1231
805
|
let body;
|
|
1232
806
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1233
807
|
body: [, , `Body`],
|
|
1234
808
|
}));
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
hostname,
|
|
1238
|
-
port,
|
|
1239
|
-
method: "PUT",
|
|
1240
|
-
headers,
|
|
1241
|
-
path: resolvedPath,
|
|
1242
|
-
query,
|
|
1243
|
-
body,
|
|
1244
|
-
});
|
|
809
|
+
b.m("PUT").h(headers).q(query).b(body);
|
|
810
|
+
return b.build();
|
|
1245
811
|
};
|
|
1246
812
|
exports.se_ReimportApiCommand = se_ReimportApiCommand;
|
|
1247
813
|
const se_ResetAuthorizersCacheCommand = async (input, context) => {
|
|
1248
|
-
const
|
|
814
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1249
815
|
const headers = {};
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "StageName", () => input.StageName, "{StageName}", false);
|
|
816
|
+
b.bp("/v2/apis/{ApiId}/stages/{StageName}/cache/authorizers");
|
|
817
|
+
b.p("ApiId", () => input.ApiId, "{ApiId}", false);
|
|
818
|
+
b.p("StageName", () => input.StageName, "{StageName}", false);
|
|
1254
819
|
let body;
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
hostname,
|
|
1258
|
-
port,
|
|
1259
|
-
method: "DELETE",
|
|
1260
|
-
headers,
|
|
1261
|
-
path: resolvedPath,
|
|
1262
|
-
body,
|
|
1263
|
-
});
|
|
820
|
+
b.m("DELETE").h(headers).b(body);
|
|
821
|
+
return b.build();
|
|
1264
822
|
};
|
|
1265
823
|
exports.se_ResetAuthorizersCacheCommand = se_ResetAuthorizersCacheCommand;
|
|
1266
824
|
const se_TagResourceCommand = async (input, context) => {
|
|
1267
|
-
const
|
|
825
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1268
826
|
const headers = {
|
|
1269
827
|
"content-type": "application/json",
|
|
1270
828
|
};
|
|
1271
|
-
|
|
1272
|
-
|
|
829
|
+
b.bp("/v2/tags/{ResourceArn}");
|
|
830
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
1273
831
|
let body;
|
|
1274
832
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1275
833
|
tags: [, (_) => (0, smithy_client_1._json)(_), `Tags`],
|
|
1276
834
|
}));
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
hostname,
|
|
1280
|
-
port,
|
|
1281
|
-
method: "POST",
|
|
1282
|
-
headers,
|
|
1283
|
-
path: resolvedPath,
|
|
1284
|
-
body,
|
|
1285
|
-
});
|
|
835
|
+
b.m("POST").h(headers).b(body);
|
|
836
|
+
return b.build();
|
|
1286
837
|
};
|
|
1287
838
|
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
1288
839
|
const se_UntagResourceCommand = async (input, context) => {
|
|
1289
|
-
const
|
|
840
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1290
841
|
const headers = {};
|
|
1291
|
-
|
|
1292
|
-
|
|
842
|
+
b.bp("/v2/tags/{ResourceArn}");
|
|
843
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
1293
844
|
const query = (0, smithy_client_1.map)({
|
|
1294
|
-
|
|
845
|
+
[_tK]: [
|
|
1295
846
|
(0, smithy_client_1.expectNonNull)(input.TagKeys, `TagKeys`) != null,
|
|
1296
|
-
() => (input
|
|
847
|
+
() => (input[_TK] || []).map((_entry) => _entry),
|
|
1297
848
|
],
|
|
1298
849
|
});
|
|
1299
850
|
let body;
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
hostname,
|
|
1303
|
-
port,
|
|
1304
|
-
method: "DELETE",
|
|
1305
|
-
headers,
|
|
1306
|
-
path: resolvedPath,
|
|
1307
|
-
query,
|
|
1308
|
-
body,
|
|
1309
|
-
});
|
|
851
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
852
|
+
return b.build();
|
|
1310
853
|
};
|
|
1311
854
|
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
1312
855
|
const se_UpdateApiCommand = async (input, context) => {
|
|
1313
|
-
const
|
|
856
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1314
857
|
const headers = {
|
|
1315
858
|
"content-type": "application/json",
|
|
1316
859
|
};
|
|
1317
|
-
|
|
1318
|
-
|
|
860
|
+
b.bp("/v2/apis/{ApiId}");
|
|
861
|
+
b.p("ApiId", () => input.ApiId, "{ApiId}", false);
|
|
1319
862
|
let body;
|
|
1320
863
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1321
864
|
apiKeySelectionExpression: [, , `ApiKeySelectionExpression`],
|
|
@@ -1330,52 +873,36 @@ const se_UpdateApiCommand = async (input, context) => {
|
|
|
1330
873
|
target: [, , `Target`],
|
|
1331
874
|
version: [, , `Version`],
|
|
1332
875
|
}));
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
hostname,
|
|
1336
|
-
port,
|
|
1337
|
-
method: "PATCH",
|
|
1338
|
-
headers,
|
|
1339
|
-
path: resolvedPath,
|
|
1340
|
-
body,
|
|
1341
|
-
});
|
|
876
|
+
b.m("PATCH").h(headers).b(body);
|
|
877
|
+
return b.build();
|
|
1342
878
|
};
|
|
1343
879
|
exports.se_UpdateApiCommand = se_UpdateApiCommand;
|
|
1344
880
|
const se_UpdateApiMappingCommand = async (input, context) => {
|
|
1345
|
-
const
|
|
881
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1346
882
|
const headers = {
|
|
1347
883
|
"content-type": "application/json",
|
|
1348
884
|
};
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
|
|
885
|
+
b.bp("/v2/domainnames/{DomainName}/apimappings/{ApiMappingId}");
|
|
886
|
+
b.p("ApiMappingId", () => input.ApiMappingId, "{ApiMappingId}", false);
|
|
887
|
+
b.p("DomainName", () => input.DomainName, "{DomainName}", false);
|
|
1353
888
|
let body;
|
|
1354
889
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1355
890
|
apiId: [, , `ApiId`],
|
|
1356
891
|
apiMappingKey: [, , `ApiMappingKey`],
|
|
1357
892
|
stage: [, , `Stage`],
|
|
1358
893
|
}));
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
hostname,
|
|
1362
|
-
port,
|
|
1363
|
-
method: "PATCH",
|
|
1364
|
-
headers,
|
|
1365
|
-
path: resolvedPath,
|
|
1366
|
-
body,
|
|
1367
|
-
});
|
|
894
|
+
b.m("PATCH").h(headers).b(body);
|
|
895
|
+
return b.build();
|
|
1368
896
|
};
|
|
1369
897
|
exports.se_UpdateApiMappingCommand = se_UpdateApiMappingCommand;
|
|
1370
898
|
const se_UpdateAuthorizerCommand = async (input, context) => {
|
|
1371
|
-
const
|
|
899
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1372
900
|
const headers = {
|
|
1373
901
|
"content-type": "application/json",
|
|
1374
902
|
};
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "AuthorizerId", () => input.AuthorizerId, "{AuthorizerId}", false);
|
|
903
|
+
b.bp("/v2/apis/{ApiId}/authorizers/{AuthorizerId}");
|
|
904
|
+
b.p("ApiId", () => input.ApiId, "{ApiId}", false);
|
|
905
|
+
b.p("AuthorizerId", () => input.AuthorizerId, "{AuthorizerId}", false);
|
|
1379
906
|
let body;
|
|
1380
907
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1381
908
|
authorizerCredentialsArn: [, , `AuthorizerCredentialsArn`],
|
|
@@ -1389,73 +916,50 @@ const se_UpdateAuthorizerCommand = async (input, context) => {
|
|
|
1389
916
|
jwtConfiguration: [, (_) => se_JWTConfiguration(_, context), `JwtConfiguration`],
|
|
1390
917
|
name: [, , `Name`],
|
|
1391
918
|
}));
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
hostname,
|
|
1395
|
-
port,
|
|
1396
|
-
method: "PATCH",
|
|
1397
|
-
headers,
|
|
1398
|
-
path: resolvedPath,
|
|
1399
|
-
body,
|
|
1400
|
-
});
|
|
919
|
+
b.m("PATCH").h(headers).b(body);
|
|
920
|
+
return b.build();
|
|
1401
921
|
};
|
|
1402
922
|
exports.se_UpdateAuthorizerCommand = se_UpdateAuthorizerCommand;
|
|
1403
923
|
const se_UpdateDeploymentCommand = async (input, context) => {
|
|
1404
|
-
const
|
|
924
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1405
925
|
const headers = {
|
|
1406
926
|
"content-type": "application/json",
|
|
1407
927
|
};
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DeploymentId", () => input.DeploymentId, "{DeploymentId}", false);
|
|
928
|
+
b.bp("/v2/apis/{ApiId}/deployments/{DeploymentId}");
|
|
929
|
+
b.p("ApiId", () => input.ApiId, "{ApiId}", false);
|
|
930
|
+
b.p("DeploymentId", () => input.DeploymentId, "{DeploymentId}", false);
|
|
1412
931
|
let body;
|
|
1413
932
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1414
933
|
description: [, , `Description`],
|
|
1415
934
|
}));
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
hostname,
|
|
1419
|
-
port,
|
|
1420
|
-
method: "PATCH",
|
|
1421
|
-
headers,
|
|
1422
|
-
path: resolvedPath,
|
|
1423
|
-
body,
|
|
1424
|
-
});
|
|
935
|
+
b.m("PATCH").h(headers).b(body);
|
|
936
|
+
return b.build();
|
|
1425
937
|
};
|
|
1426
938
|
exports.se_UpdateDeploymentCommand = se_UpdateDeploymentCommand;
|
|
1427
939
|
const se_UpdateDomainNameCommand = async (input, context) => {
|
|
1428
|
-
const
|
|
940
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1429
941
|
const headers = {
|
|
1430
942
|
"content-type": "application/json",
|
|
1431
943
|
};
|
|
1432
|
-
|
|
1433
|
-
|
|
944
|
+
b.bp("/v2/domainnames/{DomainName}");
|
|
945
|
+
b.p("DomainName", () => input.DomainName, "{DomainName}", false);
|
|
1434
946
|
let body;
|
|
1435
947
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1436
948
|
domainNameConfigurations: [, (_) => se_DomainNameConfigurations(_, context), `DomainNameConfigurations`],
|
|
1437
949
|
mutualTlsAuthentication: [, (_) => se_MutualTlsAuthenticationInput(_, context), `MutualTlsAuthentication`],
|
|
1438
950
|
}));
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
hostname,
|
|
1442
|
-
port,
|
|
1443
|
-
method: "PATCH",
|
|
1444
|
-
headers,
|
|
1445
|
-
path: resolvedPath,
|
|
1446
|
-
body,
|
|
1447
|
-
});
|
|
951
|
+
b.m("PATCH").h(headers).b(body);
|
|
952
|
+
return b.build();
|
|
1448
953
|
};
|
|
1449
954
|
exports.se_UpdateDomainNameCommand = se_UpdateDomainNameCommand;
|
|
1450
955
|
const se_UpdateIntegrationCommand = async (input, context) => {
|
|
1451
|
-
const
|
|
956
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1452
957
|
const headers = {
|
|
1453
958
|
"content-type": "application/json",
|
|
1454
959
|
};
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "IntegrationId", () => input.IntegrationId, "{IntegrationId}", false);
|
|
960
|
+
b.bp("/v2/apis/{ApiId}/integrations/{IntegrationId}");
|
|
961
|
+
b.p("ApiId", () => input.ApiId, "{ApiId}", false);
|
|
962
|
+
b.p("IntegrationId", () => input.IntegrationId, "{IntegrationId}", false);
|
|
1459
963
|
let body;
|
|
1460
964
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1461
965
|
connectionId: [, , `ConnectionId`],
|
|
@@ -1476,27 +980,19 @@ const se_UpdateIntegrationCommand = async (input, context) => {
|
|
|
1476
980
|
timeoutInMillis: [, , `TimeoutInMillis`],
|
|
1477
981
|
tlsConfig: [, (_) => se_TlsConfigInput(_, context), `TlsConfig`],
|
|
1478
982
|
}));
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
hostname,
|
|
1482
|
-
port,
|
|
1483
|
-
method: "PATCH",
|
|
1484
|
-
headers,
|
|
1485
|
-
path: resolvedPath,
|
|
1486
|
-
body,
|
|
1487
|
-
});
|
|
983
|
+
b.m("PATCH").h(headers).b(body);
|
|
984
|
+
return b.build();
|
|
1488
985
|
};
|
|
1489
986
|
exports.se_UpdateIntegrationCommand = se_UpdateIntegrationCommand;
|
|
1490
987
|
const se_UpdateIntegrationResponseCommand = async (input, context) => {
|
|
1491
|
-
const
|
|
988
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1492
989
|
const headers = {
|
|
1493
990
|
"content-type": "application/json",
|
|
1494
991
|
};
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "IntegrationResponseId", () => input.IntegrationResponseId, "{IntegrationResponseId}", false);
|
|
992
|
+
b.bp("/v2/apis/{ApiId}/integrations/{IntegrationId}/integrationresponses/{IntegrationResponseId}");
|
|
993
|
+
b.p("ApiId", () => input.ApiId, "{ApiId}", false);
|
|
994
|
+
b.p("IntegrationId", () => input.IntegrationId, "{IntegrationId}", false);
|
|
995
|
+
b.p("IntegrationResponseId", () => input.IntegrationResponseId, "{IntegrationResponseId}", false);
|
|
1500
996
|
let body;
|
|
1501
997
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1502
998
|
contentHandlingStrategy: [, , `ContentHandlingStrategy`],
|
|
@@ -1505,25 +1001,18 @@ const se_UpdateIntegrationResponseCommand = async (input, context) => {
|
|
|
1505
1001
|
responseTemplates: [, (_) => (0, smithy_client_1._json)(_), `ResponseTemplates`],
|
|
1506
1002
|
templateSelectionExpression: [, , `TemplateSelectionExpression`],
|
|
1507
1003
|
}));
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
hostname,
|
|
1511
|
-
port,
|
|
1512
|
-
method: "PATCH",
|
|
1513
|
-
headers,
|
|
1514
|
-
path: resolvedPath,
|
|
1515
|
-
body,
|
|
1516
|
-
});
|
|
1004
|
+
b.m("PATCH").h(headers).b(body);
|
|
1005
|
+
return b.build();
|
|
1517
1006
|
};
|
|
1518
1007
|
exports.se_UpdateIntegrationResponseCommand = se_UpdateIntegrationResponseCommand;
|
|
1519
1008
|
const se_UpdateModelCommand = async (input, context) => {
|
|
1520
|
-
const
|
|
1009
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1521
1010
|
const headers = {
|
|
1522
1011
|
"content-type": "application/json",
|
|
1523
1012
|
};
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1013
|
+
b.bp("/v2/apis/{ApiId}/models/{ModelId}");
|
|
1014
|
+
b.p("ApiId", () => input.ApiId, "{ApiId}", false);
|
|
1015
|
+
b.p("ModelId", () => input.ModelId, "{ModelId}", false);
|
|
1527
1016
|
let body;
|
|
1528
1017
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1529
1018
|
contentType: [, , `ContentType`],
|
|
@@ -1531,25 +1020,18 @@ const se_UpdateModelCommand = async (input, context) => {
|
|
|
1531
1020
|
name: [, , `Name`],
|
|
1532
1021
|
schema: [, , `Schema`],
|
|
1533
1022
|
}));
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
hostname,
|
|
1537
|
-
port,
|
|
1538
|
-
method: "PATCH",
|
|
1539
|
-
headers,
|
|
1540
|
-
path: resolvedPath,
|
|
1541
|
-
body,
|
|
1542
|
-
});
|
|
1023
|
+
b.m("PATCH").h(headers).b(body);
|
|
1024
|
+
return b.build();
|
|
1543
1025
|
};
|
|
1544
1026
|
exports.se_UpdateModelCommand = se_UpdateModelCommand;
|
|
1545
1027
|
const se_UpdateRouteCommand = async (input, context) => {
|
|
1546
|
-
const
|
|
1028
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1547
1029
|
const headers = {
|
|
1548
1030
|
"content-type": "application/json",
|
|
1549
1031
|
};
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1032
|
+
b.bp("/v2/apis/{ApiId}/routes/{RouteId}");
|
|
1033
|
+
b.p("ApiId", () => input.ApiId, "{ApiId}", false);
|
|
1034
|
+
b.p("RouteId", () => input.RouteId, "{RouteId}", false);
|
|
1553
1035
|
let body;
|
|
1554
1036
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1555
1037
|
apiKeyRequired: [, , `ApiKeyRequired`],
|
|
@@ -1564,27 +1046,19 @@ const se_UpdateRouteCommand = async (input, context) => {
|
|
|
1564
1046
|
routeResponseSelectionExpression: [, , `RouteResponseSelectionExpression`],
|
|
1565
1047
|
target: [, , `Target`],
|
|
1566
1048
|
}));
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
hostname,
|
|
1570
|
-
port,
|
|
1571
|
-
method: "PATCH",
|
|
1572
|
-
headers,
|
|
1573
|
-
path: resolvedPath,
|
|
1574
|
-
body,
|
|
1575
|
-
});
|
|
1049
|
+
b.m("PATCH").h(headers).b(body);
|
|
1050
|
+
return b.build();
|
|
1576
1051
|
};
|
|
1577
1052
|
exports.se_UpdateRouteCommand = se_UpdateRouteCommand;
|
|
1578
1053
|
const se_UpdateRouteResponseCommand = async (input, context) => {
|
|
1579
|
-
const
|
|
1054
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1580
1055
|
const headers = {
|
|
1581
1056
|
"content-type": "application/json",
|
|
1582
1057
|
};
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RouteResponseId", () => input.RouteResponseId, "{RouteResponseId}", false);
|
|
1058
|
+
b.bp("/v2/apis/{ApiId}/routes/{RouteId}/routeresponses/{RouteResponseId}");
|
|
1059
|
+
b.p("ApiId", () => input.ApiId, "{ApiId}", false);
|
|
1060
|
+
b.p("RouteId", () => input.RouteId, "{RouteId}", false);
|
|
1061
|
+
b.p("RouteResponseId", () => input.RouteResponseId, "{RouteResponseId}", false);
|
|
1588
1062
|
let body;
|
|
1589
1063
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1590
1064
|
modelSelectionExpression: [, , `ModelSelectionExpression`],
|
|
@@ -1592,25 +1066,18 @@ const se_UpdateRouteResponseCommand = async (input, context) => {
|
|
|
1592
1066
|
responseParameters: [, (_) => se_RouteParameters(_, context), `ResponseParameters`],
|
|
1593
1067
|
routeResponseKey: [, , `RouteResponseKey`],
|
|
1594
1068
|
}));
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
hostname,
|
|
1598
|
-
port,
|
|
1599
|
-
method: "PATCH",
|
|
1600
|
-
headers,
|
|
1601
|
-
path: resolvedPath,
|
|
1602
|
-
body,
|
|
1603
|
-
});
|
|
1069
|
+
b.m("PATCH").h(headers).b(body);
|
|
1070
|
+
return b.build();
|
|
1604
1071
|
};
|
|
1605
1072
|
exports.se_UpdateRouteResponseCommand = se_UpdateRouteResponseCommand;
|
|
1606
1073
|
const se_UpdateStageCommand = async (input, context) => {
|
|
1607
|
-
const
|
|
1074
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1608
1075
|
const headers = {
|
|
1609
1076
|
"content-type": "application/json",
|
|
1610
1077
|
};
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1078
|
+
b.bp("/v2/apis/{ApiId}/stages/{StageName}");
|
|
1079
|
+
b.p("ApiId", () => input.ApiId, "{ApiId}", false);
|
|
1080
|
+
b.p("StageName", () => input.StageName, "{StageName}", false);
|
|
1614
1081
|
let body;
|
|
1615
1082
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1616
1083
|
accessLogSettings: [, (_) => se_AccessLogSettings(_, context), `AccessLogSettings`],
|
|
@@ -1622,37 +1089,23 @@ const se_UpdateStageCommand = async (input, context) => {
|
|
|
1622
1089
|
routeSettings: [, (_) => se_RouteSettingsMap(_, context), `RouteSettings`],
|
|
1623
1090
|
stageVariables: [, (_) => (0, smithy_client_1._json)(_), `StageVariables`],
|
|
1624
1091
|
}));
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
hostname,
|
|
1628
|
-
port,
|
|
1629
|
-
method: "PATCH",
|
|
1630
|
-
headers,
|
|
1631
|
-
path: resolvedPath,
|
|
1632
|
-
body,
|
|
1633
|
-
});
|
|
1092
|
+
b.m("PATCH").h(headers).b(body);
|
|
1093
|
+
return b.build();
|
|
1634
1094
|
};
|
|
1635
1095
|
exports.se_UpdateStageCommand = se_UpdateStageCommand;
|
|
1636
1096
|
const se_UpdateVpcLinkCommand = async (input, context) => {
|
|
1637
|
-
const
|
|
1097
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1638
1098
|
const headers = {
|
|
1639
1099
|
"content-type": "application/json",
|
|
1640
1100
|
};
|
|
1641
|
-
|
|
1642
|
-
|
|
1101
|
+
b.bp("/v2/vpclinks/{VpcLinkId}");
|
|
1102
|
+
b.p("VpcLinkId", () => input.VpcLinkId, "{VpcLinkId}", false);
|
|
1643
1103
|
let body;
|
|
1644
1104
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1645
1105
|
name: [, , `Name`],
|
|
1646
1106
|
}));
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
hostname,
|
|
1650
|
-
port,
|
|
1651
|
-
method: "PATCH",
|
|
1652
|
-
headers,
|
|
1653
|
-
path: resolvedPath,
|
|
1654
|
-
body,
|
|
1655
|
-
});
|
|
1107
|
+
b.m("PATCH").h(headers).b(body);
|
|
1108
|
+
return b.build();
|
|
1656
1109
|
};
|
|
1657
1110
|
exports.se_UpdateVpcLinkCommand = se_UpdateVpcLinkCommand;
|
|
1658
1111
|
const de_CreateApiCommand = async (output, context) => {
|
|
@@ -5314,6 +4767,24 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
5314
4767
|
value !== "" &&
|
|
5315
4768
|
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
5316
4769
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
4770
|
+
const _B = "Basepath";
|
|
4771
|
+
const _EV = "ExportVersion";
|
|
4772
|
+
const _FOW = "FailOnWarnings";
|
|
4773
|
+
const _IE = "IncludeExtensions";
|
|
4774
|
+
const _MR = "MaxResults";
|
|
4775
|
+
const _NT = "NextToken";
|
|
4776
|
+
const _OT = "OutputType";
|
|
4777
|
+
const _SN = "StageName";
|
|
4778
|
+
const _TK = "TagKeys";
|
|
4779
|
+
const _b = "basepath";
|
|
4780
|
+
const _eV = "exportVersion";
|
|
4781
|
+
const _fOW = "failOnWarnings";
|
|
4782
|
+
const _iE = "includeExtensions";
|
|
4783
|
+
const _mR = "maxResults";
|
|
4784
|
+
const _nT = "nextToken";
|
|
4785
|
+
const _oT = "outputType";
|
|
4786
|
+
const _sN = "stageName";
|
|
4787
|
+
const _tK = "tagKeys";
|
|
5317
4788
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
5318
4789
|
if (encoded.length) {
|
|
5319
4790
|
return JSON.parse(encoded);
|