@aws-sdk/client-api-gateway 3.476.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 +773 -1669
- package/dist-es/protocols/Aws_restJson1.js +774 -1670
- package/package.json +5 -4
|
@@ -5,16 +5,16 @@ exports.se_UpdateApiKeyCommand = exports.se_UpdateAccountCommand = exports.se_Un
|
|
|
5
5
|
exports.de_DeleteRequestValidatorCommand = exports.de_DeleteModelCommand = exports.de_DeleteMethodResponseCommand = exports.de_DeleteMethodCommand = exports.de_DeleteIntegrationResponseCommand = exports.de_DeleteIntegrationCommand = exports.de_DeleteGatewayResponseCommand = exports.de_DeleteDomainNameCommand = exports.de_DeleteDocumentationVersionCommand = exports.de_DeleteDocumentationPartCommand = exports.de_DeleteDeploymentCommand = exports.de_DeleteClientCertificateCommand = exports.de_DeleteBasePathMappingCommand = exports.de_DeleteAuthorizerCommand = exports.de_DeleteApiKeyCommand = exports.de_CreateVpcLinkCommand = exports.de_CreateUsagePlanKeyCommand = exports.de_CreateUsagePlanCommand = exports.de_CreateStageCommand = exports.de_CreateRestApiCommand = exports.de_CreateResourceCommand = exports.de_CreateRequestValidatorCommand = exports.de_CreateModelCommand = exports.de_CreateDomainNameCommand = exports.de_CreateDocumentationVersionCommand = exports.de_CreateDocumentationPartCommand = exports.de_CreateDeploymentCommand = exports.de_CreateBasePathMappingCommand = exports.de_CreateAuthorizerCommand = exports.de_CreateApiKeyCommand = exports.se_UpdateVpcLinkCommand = exports.se_UpdateUsagePlanCommand = exports.se_UpdateUsageCommand = exports.se_UpdateStageCommand = exports.se_UpdateRestApiCommand = exports.se_UpdateResourceCommand = exports.se_UpdateRequestValidatorCommand = exports.se_UpdateModelCommand = exports.se_UpdateMethodResponseCommand = exports.se_UpdateMethodCommand = exports.se_UpdateIntegrationResponseCommand = exports.se_UpdateIntegrationCommand = exports.se_UpdateGatewayResponseCommand = exports.se_UpdateDomainNameCommand = exports.se_UpdateDocumentationVersionCommand = exports.se_UpdateDocumentationPartCommand = exports.se_UpdateDeploymentCommand = exports.se_UpdateClientCertificateCommand = exports.se_UpdateBasePathMappingCommand = exports.se_UpdateAuthorizerCommand = void 0;
|
|
6
6
|
exports.de_GetUsagePlanCommand = exports.de_GetUsageCommand = exports.de_GetTagsCommand = exports.de_GetStagesCommand = exports.de_GetStageCommand = exports.de_GetSdkTypesCommand = exports.de_GetSdkTypeCommand = exports.de_GetSdkCommand = exports.de_GetRestApisCommand = exports.de_GetRestApiCommand = exports.de_GetResourcesCommand = exports.de_GetResourceCommand = exports.de_GetRequestValidatorsCommand = exports.de_GetRequestValidatorCommand = exports.de_GetModelTemplateCommand = exports.de_GetModelsCommand = exports.de_GetModelCommand = exports.de_GetMethodResponseCommand = exports.de_GetMethodCommand = exports.de_GetIntegrationResponseCommand = exports.de_GetIntegrationCommand = exports.de_GetGatewayResponsesCommand = exports.de_GetGatewayResponseCommand = exports.de_GetExportCommand = exports.de_GetDomainNamesCommand = exports.de_GetDomainNameCommand = exports.de_GetDocumentationVersionsCommand = exports.de_GetDocumentationVersionCommand = exports.de_GetDocumentationPartsCommand = exports.de_GetDocumentationPartCommand = exports.de_GetDeploymentsCommand = exports.de_GetDeploymentCommand = exports.de_GetClientCertificatesCommand = exports.de_GetClientCertificateCommand = exports.de_GetBasePathMappingsCommand = exports.de_GetBasePathMappingCommand = exports.de_GetAuthorizersCommand = exports.de_GetAuthorizerCommand = exports.de_GetApiKeysCommand = exports.de_GetApiKeyCommand = exports.de_GetAccountCommand = exports.de_GenerateClientCertificateCommand = exports.de_FlushStageCacheCommand = exports.de_FlushStageAuthorizersCacheCommand = exports.de_DeleteVpcLinkCommand = exports.de_DeleteUsagePlanKeyCommand = exports.de_DeleteUsagePlanCommand = exports.de_DeleteStageCommand = exports.de_DeleteRestApiCommand = exports.de_DeleteResourceCommand = void 0;
|
|
7
7
|
exports.de_UpdateVpcLinkCommand = exports.de_UpdateUsagePlanCommand = exports.de_UpdateUsageCommand = exports.de_UpdateStageCommand = exports.de_UpdateRestApiCommand = exports.de_UpdateResourceCommand = exports.de_UpdateRequestValidatorCommand = exports.de_UpdateModelCommand = exports.de_UpdateMethodResponseCommand = exports.de_UpdateMethodCommand = exports.de_UpdateIntegrationResponseCommand = exports.de_UpdateIntegrationCommand = exports.de_UpdateGatewayResponseCommand = exports.de_UpdateDomainNameCommand = exports.de_UpdateDocumentationVersionCommand = exports.de_UpdateDocumentationPartCommand = exports.de_UpdateDeploymentCommand = exports.de_UpdateClientCertificateCommand = exports.de_UpdateBasePathMappingCommand = exports.de_UpdateAuthorizerCommand = exports.de_UpdateApiKeyCommand = exports.de_UpdateAccountCommand = exports.de_UntagResourceCommand = exports.de_TestInvokeMethodCommand = exports.de_TestInvokeAuthorizerCommand = exports.de_TagResourceCommand = exports.de_PutRestApiCommand = exports.de_PutMethodResponseCommand = exports.de_PutMethodCommand = exports.de_PutIntegrationResponseCommand = exports.de_PutIntegrationCommand = exports.de_PutGatewayResponseCommand = exports.de_ImportRestApiCommand = exports.de_ImportDocumentationPartsCommand = exports.de_ImportApiKeysCommand = exports.de_GetVpcLinksCommand = exports.de_GetVpcLinkCommand = exports.de_GetUsagePlansCommand = exports.de_GetUsagePlanKeysCommand = exports.de_GetUsagePlanKeyCommand = void 0;
|
|
8
|
-
const
|
|
8
|
+
const core_1 = require("@smithy/core");
|
|
9
9
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
10
10
|
const APIGatewayServiceException_1 = require("../models/APIGatewayServiceException");
|
|
11
11
|
const models_0_1 = require("../models/models_0");
|
|
12
12
|
const se_CreateApiKeyCommand = async (input, context) => {
|
|
13
|
-
const
|
|
13
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
14
14
|
const headers = {
|
|
15
15
|
"content-type": "application/json",
|
|
16
16
|
};
|
|
17
|
-
|
|
17
|
+
b.bp("/apikeys");
|
|
18
18
|
let body;
|
|
19
19
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
20
20
|
customerId: [],
|
|
@@ -26,24 +26,17 @@ const se_CreateApiKeyCommand = async (input, context) => {
|
|
|
26
26
|
tags: (_) => (0, smithy_client_1._json)(_),
|
|
27
27
|
value: [],
|
|
28
28
|
}));
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
hostname,
|
|
32
|
-
port,
|
|
33
|
-
method: "POST",
|
|
34
|
-
headers,
|
|
35
|
-
path: resolvedPath,
|
|
36
|
-
body,
|
|
37
|
-
});
|
|
29
|
+
b.m("POST").h(headers).b(body);
|
|
30
|
+
return b.build();
|
|
38
31
|
};
|
|
39
32
|
exports.se_CreateApiKeyCommand = se_CreateApiKeyCommand;
|
|
40
33
|
const se_CreateAuthorizerCommand = async (input, context) => {
|
|
41
|
-
const
|
|
34
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
42
35
|
const headers = {
|
|
43
36
|
"content-type": "application/json",
|
|
44
37
|
};
|
|
45
|
-
|
|
46
|
-
|
|
38
|
+
b.bp("/restapis/{restApiId}/authorizers");
|
|
39
|
+
b.p("restApiId", () => input.restApiId, "{restApiId}", false);
|
|
47
40
|
let body;
|
|
48
41
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
49
42
|
authType: [],
|
|
@@ -56,49 +49,34 @@ const se_CreateAuthorizerCommand = async (input, context) => {
|
|
|
56
49
|
providerARNs: (_) => (0, smithy_client_1._json)(_),
|
|
57
50
|
type: [],
|
|
58
51
|
}));
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
hostname,
|
|
62
|
-
port,
|
|
63
|
-
method: "POST",
|
|
64
|
-
headers,
|
|
65
|
-
path: resolvedPath,
|
|
66
|
-
body,
|
|
67
|
-
});
|
|
52
|
+
b.m("POST").h(headers).b(body);
|
|
53
|
+
return b.build();
|
|
68
54
|
};
|
|
69
55
|
exports.se_CreateAuthorizerCommand = se_CreateAuthorizerCommand;
|
|
70
56
|
const se_CreateBasePathMappingCommand = async (input, context) => {
|
|
71
|
-
const
|
|
57
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
72
58
|
const headers = {
|
|
73
59
|
"content-type": "application/json",
|
|
74
60
|
};
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainName", () => input.domainName, "{domainName}", false);
|
|
61
|
+
b.bp("/domainnames/{domainName}/basepathmappings");
|
|
62
|
+
b.p("domainName", () => input.domainName, "{domainName}", false);
|
|
78
63
|
let body;
|
|
79
64
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
80
65
|
basePath: [],
|
|
81
66
|
restApiId: [],
|
|
82
67
|
stage: [],
|
|
83
68
|
}));
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
hostname,
|
|
87
|
-
port,
|
|
88
|
-
method: "POST",
|
|
89
|
-
headers,
|
|
90
|
-
path: resolvedPath,
|
|
91
|
-
body,
|
|
92
|
-
});
|
|
69
|
+
b.m("POST").h(headers).b(body);
|
|
70
|
+
return b.build();
|
|
93
71
|
};
|
|
94
72
|
exports.se_CreateBasePathMappingCommand = se_CreateBasePathMappingCommand;
|
|
95
73
|
const se_CreateDeploymentCommand = async (input, context) => {
|
|
96
|
-
const
|
|
74
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
97
75
|
const headers = {
|
|
98
76
|
"content-type": "application/json",
|
|
99
77
|
};
|
|
100
|
-
|
|
101
|
-
|
|
78
|
+
b.bp("/restapis/{restApiId}/deployments");
|
|
79
|
+
b.p("restApiId", () => input.restApiId, "{restApiId}", false);
|
|
102
80
|
let body;
|
|
103
81
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
104
82
|
cacheClusterEnabled: [],
|
|
@@ -110,71 +88,49 @@ const se_CreateDeploymentCommand = async (input, context) => {
|
|
|
110
88
|
tracingEnabled: [],
|
|
111
89
|
variables: (_) => (0, smithy_client_1._json)(_),
|
|
112
90
|
}));
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
hostname,
|
|
116
|
-
port,
|
|
117
|
-
method: "POST",
|
|
118
|
-
headers,
|
|
119
|
-
path: resolvedPath,
|
|
120
|
-
body,
|
|
121
|
-
});
|
|
91
|
+
b.m("POST").h(headers).b(body);
|
|
92
|
+
return b.build();
|
|
122
93
|
};
|
|
123
94
|
exports.se_CreateDeploymentCommand = se_CreateDeploymentCommand;
|
|
124
95
|
const se_CreateDocumentationPartCommand = async (input, context) => {
|
|
125
|
-
const
|
|
96
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
126
97
|
const headers = {
|
|
127
98
|
"content-type": "application/json",
|
|
128
99
|
};
|
|
129
|
-
|
|
130
|
-
|
|
100
|
+
b.bp("/restapis/{restApiId}/documentation/parts");
|
|
101
|
+
b.p("restApiId", () => input.restApiId, "{restApiId}", false);
|
|
131
102
|
let body;
|
|
132
103
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
133
104
|
location: (_) => (0, smithy_client_1._json)(_),
|
|
134
105
|
properties: [],
|
|
135
106
|
}));
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
hostname,
|
|
139
|
-
port,
|
|
140
|
-
method: "POST",
|
|
141
|
-
headers,
|
|
142
|
-
path: resolvedPath,
|
|
143
|
-
body,
|
|
144
|
-
});
|
|
107
|
+
b.m("POST").h(headers).b(body);
|
|
108
|
+
return b.build();
|
|
145
109
|
};
|
|
146
110
|
exports.se_CreateDocumentationPartCommand = se_CreateDocumentationPartCommand;
|
|
147
111
|
const se_CreateDocumentationVersionCommand = async (input, context) => {
|
|
148
|
-
const
|
|
112
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
149
113
|
const headers = {
|
|
150
114
|
"content-type": "application/json",
|
|
151
115
|
};
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "restApiId", () => input.restApiId, "{restApiId}", false);
|
|
116
|
+
b.bp("/restapis/{restApiId}/documentation/versions");
|
|
117
|
+
b.p("restApiId", () => input.restApiId, "{restApiId}", false);
|
|
155
118
|
let body;
|
|
156
119
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
157
120
|
description: [],
|
|
158
121
|
documentationVersion: [],
|
|
159
122
|
stageName: [],
|
|
160
123
|
}));
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
hostname,
|
|
164
|
-
port,
|
|
165
|
-
method: "POST",
|
|
166
|
-
headers,
|
|
167
|
-
path: resolvedPath,
|
|
168
|
-
body,
|
|
169
|
-
});
|
|
124
|
+
b.m("POST").h(headers).b(body);
|
|
125
|
+
return b.build();
|
|
170
126
|
};
|
|
171
127
|
exports.se_CreateDocumentationVersionCommand = se_CreateDocumentationVersionCommand;
|
|
172
128
|
const se_CreateDomainNameCommand = async (input, context) => {
|
|
173
|
-
const
|
|
129
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
174
130
|
const headers = {
|
|
175
131
|
"content-type": "application/json",
|
|
176
132
|
};
|
|
177
|
-
|
|
133
|
+
b.bp("/domainnames");
|
|
178
134
|
let body;
|
|
179
135
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
180
136
|
certificateArn: [],
|
|
@@ -191,24 +147,17 @@ const se_CreateDomainNameCommand = async (input, context) => {
|
|
|
191
147
|
securityPolicy: [],
|
|
192
148
|
tags: (_) => (0, smithy_client_1._json)(_),
|
|
193
149
|
}));
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
hostname,
|
|
197
|
-
port,
|
|
198
|
-
method: "POST",
|
|
199
|
-
headers,
|
|
200
|
-
path: resolvedPath,
|
|
201
|
-
body,
|
|
202
|
-
});
|
|
150
|
+
b.m("POST").h(headers).b(body);
|
|
151
|
+
return b.build();
|
|
203
152
|
};
|
|
204
153
|
exports.se_CreateDomainNameCommand = se_CreateDomainNameCommand;
|
|
205
154
|
const se_CreateModelCommand = async (input, context) => {
|
|
206
|
-
const
|
|
155
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
207
156
|
const headers = {
|
|
208
157
|
"content-type": "application/json",
|
|
209
158
|
};
|
|
210
|
-
|
|
211
|
-
|
|
159
|
+
b.bp("/restapis/{restApiId}/models");
|
|
160
|
+
b.p("restApiId", () => input.restApiId, "{restApiId}", false);
|
|
212
161
|
let body;
|
|
213
162
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
214
163
|
contentType: [],
|
|
@@ -216,71 +165,49 @@ const se_CreateModelCommand = async (input, context) => {
|
|
|
216
165
|
name: [],
|
|
217
166
|
schema: [],
|
|
218
167
|
}));
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
hostname,
|
|
222
|
-
port,
|
|
223
|
-
method: "POST",
|
|
224
|
-
headers,
|
|
225
|
-
path: resolvedPath,
|
|
226
|
-
body,
|
|
227
|
-
});
|
|
168
|
+
b.m("POST").h(headers).b(body);
|
|
169
|
+
return b.build();
|
|
228
170
|
};
|
|
229
171
|
exports.se_CreateModelCommand = se_CreateModelCommand;
|
|
230
172
|
const se_CreateRequestValidatorCommand = async (input, context) => {
|
|
231
|
-
const
|
|
173
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
232
174
|
const headers = {
|
|
233
175
|
"content-type": "application/json",
|
|
234
176
|
};
|
|
235
|
-
|
|
236
|
-
|
|
177
|
+
b.bp("/restapis/{restApiId}/requestvalidators");
|
|
178
|
+
b.p("restApiId", () => input.restApiId, "{restApiId}", false);
|
|
237
179
|
let body;
|
|
238
180
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
239
181
|
name: [],
|
|
240
182
|
validateRequestBody: [],
|
|
241
183
|
validateRequestParameters: [],
|
|
242
184
|
}));
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
hostname,
|
|
246
|
-
port,
|
|
247
|
-
method: "POST",
|
|
248
|
-
headers,
|
|
249
|
-
path: resolvedPath,
|
|
250
|
-
body,
|
|
251
|
-
});
|
|
185
|
+
b.m("POST").h(headers).b(body);
|
|
186
|
+
return b.build();
|
|
252
187
|
};
|
|
253
188
|
exports.se_CreateRequestValidatorCommand = se_CreateRequestValidatorCommand;
|
|
254
189
|
const se_CreateResourceCommand = async (input, context) => {
|
|
255
|
-
const
|
|
190
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
256
191
|
const headers = {
|
|
257
192
|
"content-type": "application/json",
|
|
258
193
|
};
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "parentId", () => input.parentId, "{parentId}", false);
|
|
194
|
+
b.bp("/restapis/{restApiId}/resources/{parentId}");
|
|
195
|
+
b.p("restApiId", () => input.restApiId, "{restApiId}", false);
|
|
196
|
+
b.p("parentId", () => input.parentId, "{parentId}", false);
|
|
263
197
|
let body;
|
|
264
198
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
265
199
|
pathPart: [],
|
|
266
200
|
}));
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
hostname,
|
|
270
|
-
port,
|
|
271
|
-
method: "POST",
|
|
272
|
-
headers,
|
|
273
|
-
path: resolvedPath,
|
|
274
|
-
body,
|
|
275
|
-
});
|
|
201
|
+
b.m("POST").h(headers).b(body);
|
|
202
|
+
return b.build();
|
|
276
203
|
};
|
|
277
204
|
exports.se_CreateResourceCommand = se_CreateResourceCommand;
|
|
278
205
|
const se_CreateRestApiCommand = async (input, context) => {
|
|
279
|
-
const
|
|
206
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
280
207
|
const headers = {
|
|
281
208
|
"content-type": "application/json",
|
|
282
209
|
};
|
|
283
|
-
|
|
210
|
+
b.bp("/restapis");
|
|
284
211
|
let body;
|
|
285
212
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
286
213
|
apiKeySource: [],
|
|
@@ -295,24 +222,17 @@ const se_CreateRestApiCommand = async (input, context) => {
|
|
|
295
222
|
tags: (_) => (0, smithy_client_1._json)(_),
|
|
296
223
|
version: [],
|
|
297
224
|
}));
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
hostname,
|
|
301
|
-
port,
|
|
302
|
-
method: "POST",
|
|
303
|
-
headers,
|
|
304
|
-
path: resolvedPath,
|
|
305
|
-
body,
|
|
306
|
-
});
|
|
225
|
+
b.m("POST").h(headers).b(body);
|
|
226
|
+
return b.build();
|
|
307
227
|
};
|
|
308
228
|
exports.se_CreateRestApiCommand = se_CreateRestApiCommand;
|
|
309
229
|
const se_CreateStageCommand = async (input, context) => {
|
|
310
|
-
const
|
|
230
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
311
231
|
const headers = {
|
|
312
232
|
"content-type": "application/json",
|
|
313
233
|
};
|
|
314
|
-
|
|
315
|
-
|
|
234
|
+
b.bp("/restapis/{restApiId}/stages");
|
|
235
|
+
b.p("restApiId", () => input.restApiId, "{restApiId}", false);
|
|
316
236
|
let body;
|
|
317
237
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
318
238
|
cacheClusterEnabled: [],
|
|
@@ -326,23 +246,16 @@ const se_CreateStageCommand = async (input, context) => {
|
|
|
326
246
|
tracingEnabled: [],
|
|
327
247
|
variables: (_) => (0, smithy_client_1._json)(_),
|
|
328
248
|
}));
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
hostname,
|
|
332
|
-
port,
|
|
333
|
-
method: "POST",
|
|
334
|
-
headers,
|
|
335
|
-
path: resolvedPath,
|
|
336
|
-
body,
|
|
337
|
-
});
|
|
249
|
+
b.m("POST").h(headers).b(body);
|
|
250
|
+
return b.build();
|
|
338
251
|
};
|
|
339
252
|
exports.se_CreateStageCommand = se_CreateStageCommand;
|
|
340
253
|
const se_CreateUsagePlanCommand = async (input, context) => {
|
|
341
|
-
const
|
|
254
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
342
255
|
const headers = {
|
|
343
256
|
"content-type": "application/json",
|
|
344
257
|
};
|
|
345
|
-
|
|
258
|
+
b.bp("/usageplans");
|
|
346
259
|
let body;
|
|
347
260
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
348
261
|
apiStages: (_) => se_ListOfApiStage(_, context),
|
|
@@ -352,46 +265,32 @@ const se_CreateUsagePlanCommand = async (input, context) => {
|
|
|
352
265
|
tags: (_) => (0, smithy_client_1._json)(_),
|
|
353
266
|
throttle: (_) => se_ThrottleSettings(_, context),
|
|
354
267
|
}));
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
hostname,
|
|
358
|
-
port,
|
|
359
|
-
method: "POST",
|
|
360
|
-
headers,
|
|
361
|
-
path: resolvedPath,
|
|
362
|
-
body,
|
|
363
|
-
});
|
|
268
|
+
b.m("POST").h(headers).b(body);
|
|
269
|
+
return b.build();
|
|
364
270
|
};
|
|
365
271
|
exports.se_CreateUsagePlanCommand = se_CreateUsagePlanCommand;
|
|
366
272
|
const se_CreateUsagePlanKeyCommand = async (input, context) => {
|
|
367
|
-
const
|
|
273
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
368
274
|
const headers = {
|
|
369
275
|
"content-type": "application/json",
|
|
370
276
|
};
|
|
371
|
-
|
|
372
|
-
|
|
277
|
+
b.bp("/usageplans/{usagePlanId}/keys");
|
|
278
|
+
b.p("usagePlanId", () => input.usagePlanId, "{usagePlanId}", false);
|
|
373
279
|
let body;
|
|
374
280
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
375
281
|
keyId: [],
|
|
376
282
|
keyType: [],
|
|
377
283
|
}));
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
hostname,
|
|
381
|
-
port,
|
|
382
|
-
method: "POST",
|
|
383
|
-
headers,
|
|
384
|
-
path: resolvedPath,
|
|
385
|
-
body,
|
|
386
|
-
});
|
|
284
|
+
b.m("POST").h(headers).b(body);
|
|
285
|
+
return b.build();
|
|
387
286
|
};
|
|
388
287
|
exports.se_CreateUsagePlanKeyCommand = se_CreateUsagePlanKeyCommand;
|
|
389
288
|
const se_CreateVpcLinkCommand = async (input, context) => {
|
|
390
|
-
const
|
|
289
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
391
290
|
const headers = {
|
|
392
291
|
"content-type": "application/json",
|
|
393
292
|
};
|
|
394
|
-
|
|
293
|
+
b.bp("/vpclinks");
|
|
395
294
|
let body;
|
|
396
295
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
397
296
|
description: [],
|
|
@@ -399,1542 +298,955 @@ const se_CreateVpcLinkCommand = async (input, context) => {
|
|
|
399
298
|
tags: (_) => (0, smithy_client_1._json)(_),
|
|
400
299
|
targetArns: (_) => (0, smithy_client_1._json)(_),
|
|
401
300
|
}));
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
hostname,
|
|
405
|
-
port,
|
|
406
|
-
method: "POST",
|
|
407
|
-
headers,
|
|
408
|
-
path: resolvedPath,
|
|
409
|
-
body,
|
|
410
|
-
});
|
|
301
|
+
b.m("POST").h(headers).b(body);
|
|
302
|
+
return b.build();
|
|
411
303
|
};
|
|
412
304
|
exports.se_CreateVpcLinkCommand = se_CreateVpcLinkCommand;
|
|
413
305
|
const se_DeleteApiKeyCommand = async (input, context) => {
|
|
414
|
-
const
|
|
306
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
415
307
|
const headers = {};
|
|
416
|
-
|
|
417
|
-
|
|
308
|
+
b.bp("/apikeys/{apiKey}");
|
|
309
|
+
b.p("apiKey", () => input.apiKey, "{apiKey}", false);
|
|
418
310
|
let body;
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
hostname,
|
|
422
|
-
port,
|
|
423
|
-
method: "DELETE",
|
|
424
|
-
headers,
|
|
425
|
-
path: resolvedPath,
|
|
426
|
-
body,
|
|
427
|
-
});
|
|
311
|
+
b.m("DELETE").h(headers).b(body);
|
|
312
|
+
return b.build();
|
|
428
313
|
};
|
|
429
314
|
exports.se_DeleteApiKeyCommand = se_DeleteApiKeyCommand;
|
|
430
315
|
const se_DeleteAuthorizerCommand = async (input, context) => {
|
|
431
|
-
const
|
|
316
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
432
317
|
const headers = {};
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "authorizerId", () => input.authorizerId, "{authorizerId}", false);
|
|
318
|
+
b.bp("/restapis/{restApiId}/authorizers/{authorizerId}");
|
|
319
|
+
b.p("restApiId", () => input.restApiId, "{restApiId}", false);
|
|
320
|
+
b.p("authorizerId", () => input.authorizerId, "{authorizerId}", false);
|
|
437
321
|
let body;
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
hostname,
|
|
441
|
-
port,
|
|
442
|
-
method: "DELETE",
|
|
443
|
-
headers,
|
|
444
|
-
path: resolvedPath,
|
|
445
|
-
body,
|
|
446
|
-
});
|
|
322
|
+
b.m("DELETE").h(headers).b(body);
|
|
323
|
+
return b.build();
|
|
447
324
|
};
|
|
448
325
|
exports.se_DeleteAuthorizerCommand = se_DeleteAuthorizerCommand;
|
|
449
326
|
const se_DeleteBasePathMappingCommand = async (input, context) => {
|
|
450
|
-
const
|
|
327
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
451
328
|
const headers = {};
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "basePath", () => input.basePath, "{basePath}", false);
|
|
329
|
+
b.bp("/domainnames/{domainName}/basepathmappings/{basePath}");
|
|
330
|
+
b.p("domainName", () => input.domainName, "{domainName}", false);
|
|
331
|
+
b.p("basePath", () => input.basePath, "{basePath}", false);
|
|
456
332
|
let body;
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
hostname,
|
|
460
|
-
port,
|
|
461
|
-
method: "DELETE",
|
|
462
|
-
headers,
|
|
463
|
-
path: resolvedPath,
|
|
464
|
-
body,
|
|
465
|
-
});
|
|
333
|
+
b.m("DELETE").h(headers).b(body);
|
|
334
|
+
return b.build();
|
|
466
335
|
};
|
|
467
336
|
exports.se_DeleteBasePathMappingCommand = se_DeleteBasePathMappingCommand;
|
|
468
337
|
const se_DeleteClientCertificateCommand = async (input, context) => {
|
|
469
|
-
const
|
|
338
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
470
339
|
const headers = {};
|
|
471
|
-
|
|
472
|
-
|
|
340
|
+
b.bp("/clientcertificates/{clientCertificateId}");
|
|
341
|
+
b.p("clientCertificateId", () => input.clientCertificateId, "{clientCertificateId}", false);
|
|
473
342
|
let body;
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
hostname,
|
|
477
|
-
port,
|
|
478
|
-
method: "DELETE",
|
|
479
|
-
headers,
|
|
480
|
-
path: resolvedPath,
|
|
481
|
-
body,
|
|
482
|
-
});
|
|
343
|
+
b.m("DELETE").h(headers).b(body);
|
|
344
|
+
return b.build();
|
|
483
345
|
};
|
|
484
346
|
exports.se_DeleteClientCertificateCommand = se_DeleteClientCertificateCommand;
|
|
485
347
|
const se_DeleteDeploymentCommand = async (input, context) => {
|
|
486
|
-
const
|
|
348
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
487
349
|
const headers = {};
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "deploymentId", () => input.deploymentId, "{deploymentId}", false);
|
|
350
|
+
b.bp("/restapis/{restApiId}/deployments/{deploymentId}");
|
|
351
|
+
b.p("restApiId", () => input.restApiId, "{restApiId}", false);
|
|
352
|
+
b.p("deploymentId", () => input.deploymentId, "{deploymentId}", false);
|
|
492
353
|
let body;
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
hostname,
|
|
496
|
-
port,
|
|
497
|
-
method: "DELETE",
|
|
498
|
-
headers,
|
|
499
|
-
path: resolvedPath,
|
|
500
|
-
body,
|
|
501
|
-
});
|
|
354
|
+
b.m("DELETE").h(headers).b(body);
|
|
355
|
+
return b.build();
|
|
502
356
|
};
|
|
503
357
|
exports.se_DeleteDeploymentCommand = se_DeleteDeploymentCommand;
|
|
504
358
|
const se_DeleteDocumentationPartCommand = async (input, context) => {
|
|
505
|
-
const
|
|
359
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
506
360
|
const headers = {};
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "documentationPartId", () => input.documentationPartId, "{documentationPartId}", false);
|
|
361
|
+
b.bp("/restapis/{restApiId}/documentation/parts/{documentationPartId}");
|
|
362
|
+
b.p("restApiId", () => input.restApiId, "{restApiId}", false);
|
|
363
|
+
b.p("documentationPartId", () => input.documentationPartId, "{documentationPartId}", false);
|
|
511
364
|
let body;
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
hostname,
|
|
515
|
-
port,
|
|
516
|
-
method: "DELETE",
|
|
517
|
-
headers,
|
|
518
|
-
path: resolvedPath,
|
|
519
|
-
body,
|
|
520
|
-
});
|
|
365
|
+
b.m("DELETE").h(headers).b(body);
|
|
366
|
+
return b.build();
|
|
521
367
|
};
|
|
522
368
|
exports.se_DeleteDocumentationPartCommand = se_DeleteDocumentationPartCommand;
|
|
523
369
|
const se_DeleteDocumentationVersionCommand = async (input, context) => {
|
|
524
|
-
const
|
|
370
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
525
371
|
const headers = {};
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "documentationVersion", () => input.documentationVersion, "{documentationVersion}", false);
|
|
372
|
+
b.bp("/restapis/{restApiId}/documentation/versions/{documentationVersion}");
|
|
373
|
+
b.p("restApiId", () => input.restApiId, "{restApiId}", false);
|
|
374
|
+
b.p("documentationVersion", () => input.documentationVersion, "{documentationVersion}", false);
|
|
530
375
|
let body;
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
hostname,
|
|
534
|
-
port,
|
|
535
|
-
method: "DELETE",
|
|
536
|
-
headers,
|
|
537
|
-
path: resolvedPath,
|
|
538
|
-
body,
|
|
539
|
-
});
|
|
376
|
+
b.m("DELETE").h(headers).b(body);
|
|
377
|
+
return b.build();
|
|
540
378
|
};
|
|
541
379
|
exports.se_DeleteDocumentationVersionCommand = se_DeleteDocumentationVersionCommand;
|
|
542
380
|
const se_DeleteDomainNameCommand = async (input, context) => {
|
|
543
|
-
const
|
|
381
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
544
382
|
const headers = {};
|
|
545
|
-
|
|
546
|
-
|
|
383
|
+
b.bp("/domainnames/{domainName}");
|
|
384
|
+
b.p("domainName", () => input.domainName, "{domainName}", false);
|
|
547
385
|
let body;
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
hostname,
|
|
551
|
-
port,
|
|
552
|
-
method: "DELETE",
|
|
553
|
-
headers,
|
|
554
|
-
path: resolvedPath,
|
|
555
|
-
body,
|
|
556
|
-
});
|
|
386
|
+
b.m("DELETE").h(headers).b(body);
|
|
387
|
+
return b.build();
|
|
557
388
|
};
|
|
558
389
|
exports.se_DeleteDomainNameCommand = se_DeleteDomainNameCommand;
|
|
559
390
|
const se_DeleteGatewayResponseCommand = async (input, context) => {
|
|
560
|
-
const
|
|
391
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
561
392
|
const headers = {};
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "responseType", () => input.responseType, "{responseType}", false);
|
|
393
|
+
b.bp("/restapis/{restApiId}/gatewayresponses/{responseType}");
|
|
394
|
+
b.p("restApiId", () => input.restApiId, "{restApiId}", false);
|
|
395
|
+
b.p("responseType", () => input.responseType, "{responseType}", false);
|
|
566
396
|
let body;
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
hostname,
|
|
570
|
-
port,
|
|
571
|
-
method: "DELETE",
|
|
572
|
-
headers,
|
|
573
|
-
path: resolvedPath,
|
|
574
|
-
body,
|
|
575
|
-
});
|
|
397
|
+
b.m("DELETE").h(headers).b(body);
|
|
398
|
+
return b.build();
|
|
576
399
|
};
|
|
577
400
|
exports.se_DeleteGatewayResponseCommand = se_DeleteGatewayResponseCommand;
|
|
578
401
|
const se_DeleteIntegrationCommand = async (input, context) => {
|
|
579
|
-
const
|
|
402
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
580
403
|
const headers = {};
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "httpMethod", () => input.httpMethod, "{httpMethod}", false);
|
|
404
|
+
b.bp("/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}/integration");
|
|
405
|
+
b.p("restApiId", () => input.restApiId, "{restApiId}", false);
|
|
406
|
+
b.p("resourceId", () => input.resourceId, "{resourceId}", false);
|
|
407
|
+
b.p("httpMethod", () => input.httpMethod, "{httpMethod}", false);
|
|
586
408
|
let body;
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
hostname,
|
|
590
|
-
port,
|
|
591
|
-
method: "DELETE",
|
|
592
|
-
headers,
|
|
593
|
-
path: resolvedPath,
|
|
594
|
-
body,
|
|
595
|
-
});
|
|
409
|
+
b.m("DELETE").h(headers).b(body);
|
|
410
|
+
return b.build();
|
|
596
411
|
};
|
|
597
412
|
exports.se_DeleteIntegrationCommand = se_DeleteIntegrationCommand;
|
|
598
413
|
const se_DeleteIntegrationResponseCommand = async (input, context) => {
|
|
599
|
-
const
|
|
414
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
600
415
|
const headers = {};
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "statusCode", () => input.statusCode, "{statusCode}", false);
|
|
416
|
+
b.bp("/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}/integration/responses/{statusCode}");
|
|
417
|
+
b.p("restApiId", () => input.restApiId, "{restApiId}", false);
|
|
418
|
+
b.p("resourceId", () => input.resourceId, "{resourceId}", false);
|
|
419
|
+
b.p("httpMethod", () => input.httpMethod, "{httpMethod}", false);
|
|
420
|
+
b.p("statusCode", () => input.statusCode, "{statusCode}", false);
|
|
607
421
|
let body;
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
hostname,
|
|
611
|
-
port,
|
|
612
|
-
method: "DELETE",
|
|
613
|
-
headers,
|
|
614
|
-
path: resolvedPath,
|
|
615
|
-
body,
|
|
616
|
-
});
|
|
422
|
+
b.m("DELETE").h(headers).b(body);
|
|
423
|
+
return b.build();
|
|
617
424
|
};
|
|
618
425
|
exports.se_DeleteIntegrationResponseCommand = se_DeleteIntegrationResponseCommand;
|
|
619
426
|
const se_DeleteMethodCommand = async (input, context) => {
|
|
620
|
-
const
|
|
427
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
621
428
|
const headers = {};
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "httpMethod", () => input.httpMethod, "{httpMethod}", false);
|
|
429
|
+
b.bp("/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}");
|
|
430
|
+
b.p("restApiId", () => input.restApiId, "{restApiId}", false);
|
|
431
|
+
b.p("resourceId", () => input.resourceId, "{resourceId}", false);
|
|
432
|
+
b.p("httpMethod", () => input.httpMethod, "{httpMethod}", false);
|
|
627
433
|
let body;
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
hostname,
|
|
631
|
-
port,
|
|
632
|
-
method: "DELETE",
|
|
633
|
-
headers,
|
|
634
|
-
path: resolvedPath,
|
|
635
|
-
body,
|
|
636
|
-
});
|
|
434
|
+
b.m("DELETE").h(headers).b(body);
|
|
435
|
+
return b.build();
|
|
637
436
|
};
|
|
638
437
|
exports.se_DeleteMethodCommand = se_DeleteMethodCommand;
|
|
639
438
|
const se_DeleteMethodResponseCommand = async (input, context) => {
|
|
640
|
-
const
|
|
439
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
641
440
|
const headers = {};
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "statusCode", () => input.statusCode, "{statusCode}", false);
|
|
441
|
+
b.bp("/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}/responses/{statusCode}");
|
|
442
|
+
b.p("restApiId", () => input.restApiId, "{restApiId}", false);
|
|
443
|
+
b.p("resourceId", () => input.resourceId, "{resourceId}", false);
|
|
444
|
+
b.p("httpMethod", () => input.httpMethod, "{httpMethod}", false);
|
|
445
|
+
b.p("statusCode", () => input.statusCode, "{statusCode}", false);
|
|
648
446
|
let body;
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
hostname,
|
|
652
|
-
port,
|
|
653
|
-
method: "DELETE",
|
|
654
|
-
headers,
|
|
655
|
-
path: resolvedPath,
|
|
656
|
-
body,
|
|
657
|
-
});
|
|
447
|
+
b.m("DELETE").h(headers).b(body);
|
|
448
|
+
return b.build();
|
|
658
449
|
};
|
|
659
450
|
exports.se_DeleteMethodResponseCommand = se_DeleteMethodResponseCommand;
|
|
660
451
|
const se_DeleteModelCommand = async (input, context) => {
|
|
661
|
-
const
|
|
452
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
662
453
|
const headers = {};
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
454
|
+
b.bp("/restapis/{restApiId}/models/{modelName}");
|
|
455
|
+
b.p("restApiId", () => input.restApiId, "{restApiId}", false);
|
|
456
|
+
b.p("modelName", () => input.modelName, "{modelName}", false);
|
|
666
457
|
let body;
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
hostname,
|
|
670
|
-
port,
|
|
671
|
-
method: "DELETE",
|
|
672
|
-
headers,
|
|
673
|
-
path: resolvedPath,
|
|
674
|
-
body,
|
|
675
|
-
});
|
|
458
|
+
b.m("DELETE").h(headers).b(body);
|
|
459
|
+
return b.build();
|
|
676
460
|
};
|
|
677
461
|
exports.se_DeleteModelCommand = se_DeleteModelCommand;
|
|
678
462
|
const se_DeleteRequestValidatorCommand = async (input, context) => {
|
|
679
|
-
const
|
|
463
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
680
464
|
const headers = {};
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "requestValidatorId", () => input.requestValidatorId, "{requestValidatorId}", false);
|
|
465
|
+
b.bp("/restapis/{restApiId}/requestvalidators/{requestValidatorId}");
|
|
466
|
+
b.p("restApiId", () => input.restApiId, "{restApiId}", false);
|
|
467
|
+
b.p("requestValidatorId", () => input.requestValidatorId, "{requestValidatorId}", false);
|
|
685
468
|
let body;
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
hostname,
|
|
689
|
-
port,
|
|
690
|
-
method: "DELETE",
|
|
691
|
-
headers,
|
|
692
|
-
path: resolvedPath,
|
|
693
|
-
body,
|
|
694
|
-
});
|
|
469
|
+
b.m("DELETE").h(headers).b(body);
|
|
470
|
+
return b.build();
|
|
695
471
|
};
|
|
696
472
|
exports.se_DeleteRequestValidatorCommand = se_DeleteRequestValidatorCommand;
|
|
697
473
|
const se_DeleteResourceCommand = async (input, context) => {
|
|
698
|
-
const
|
|
474
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
699
475
|
const headers = {};
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceId", () => input.resourceId, "{resourceId}", false);
|
|
476
|
+
b.bp("/restapis/{restApiId}/resources/{resourceId}");
|
|
477
|
+
b.p("restApiId", () => input.restApiId, "{restApiId}", false);
|
|
478
|
+
b.p("resourceId", () => input.resourceId, "{resourceId}", false);
|
|
704
479
|
let body;
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
hostname,
|
|
708
|
-
port,
|
|
709
|
-
method: "DELETE",
|
|
710
|
-
headers,
|
|
711
|
-
path: resolvedPath,
|
|
712
|
-
body,
|
|
713
|
-
});
|
|
480
|
+
b.m("DELETE").h(headers).b(body);
|
|
481
|
+
return b.build();
|
|
714
482
|
};
|
|
715
483
|
exports.se_DeleteResourceCommand = se_DeleteResourceCommand;
|
|
716
484
|
const se_DeleteRestApiCommand = async (input, context) => {
|
|
717
|
-
const
|
|
485
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
718
486
|
const headers = {};
|
|
719
|
-
|
|
720
|
-
|
|
487
|
+
b.bp("/restapis/{restApiId}");
|
|
488
|
+
b.p("restApiId", () => input.restApiId, "{restApiId}", false);
|
|
721
489
|
let body;
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
hostname,
|
|
725
|
-
port,
|
|
726
|
-
method: "DELETE",
|
|
727
|
-
headers,
|
|
728
|
-
path: resolvedPath,
|
|
729
|
-
body,
|
|
730
|
-
});
|
|
490
|
+
b.m("DELETE").h(headers).b(body);
|
|
491
|
+
return b.build();
|
|
731
492
|
};
|
|
732
493
|
exports.se_DeleteRestApiCommand = se_DeleteRestApiCommand;
|
|
733
494
|
const se_DeleteStageCommand = async (input, context) => {
|
|
734
|
-
const
|
|
495
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
735
496
|
const headers = {};
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
497
|
+
b.bp("/restapis/{restApiId}/stages/{stageName}");
|
|
498
|
+
b.p("restApiId", () => input.restApiId, "{restApiId}", false);
|
|
499
|
+
b.p("stageName", () => input.stageName, "{stageName}", false);
|
|
739
500
|
let body;
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
hostname,
|
|
743
|
-
port,
|
|
744
|
-
method: "DELETE",
|
|
745
|
-
headers,
|
|
746
|
-
path: resolvedPath,
|
|
747
|
-
body,
|
|
748
|
-
});
|
|
501
|
+
b.m("DELETE").h(headers).b(body);
|
|
502
|
+
return b.build();
|
|
749
503
|
};
|
|
750
504
|
exports.se_DeleteStageCommand = se_DeleteStageCommand;
|
|
751
505
|
const se_DeleteUsagePlanCommand = async (input, context) => {
|
|
752
|
-
const
|
|
506
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
753
507
|
const headers = {};
|
|
754
|
-
|
|
755
|
-
|
|
508
|
+
b.bp("/usageplans/{usagePlanId}");
|
|
509
|
+
b.p("usagePlanId", () => input.usagePlanId, "{usagePlanId}", false);
|
|
756
510
|
let body;
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
hostname,
|
|
760
|
-
port,
|
|
761
|
-
method: "DELETE",
|
|
762
|
-
headers,
|
|
763
|
-
path: resolvedPath,
|
|
764
|
-
body,
|
|
765
|
-
});
|
|
511
|
+
b.m("DELETE").h(headers).b(body);
|
|
512
|
+
return b.build();
|
|
766
513
|
};
|
|
767
514
|
exports.se_DeleteUsagePlanCommand = se_DeleteUsagePlanCommand;
|
|
768
515
|
const se_DeleteUsagePlanKeyCommand = async (input, context) => {
|
|
769
|
-
const
|
|
516
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
770
517
|
const headers = {};
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
518
|
+
b.bp("/usageplans/{usagePlanId}/keys/{keyId}");
|
|
519
|
+
b.p("usagePlanId", () => input.usagePlanId, "{usagePlanId}", false);
|
|
520
|
+
b.p("keyId", () => input.keyId, "{keyId}", false);
|
|
774
521
|
let body;
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
hostname,
|
|
778
|
-
port,
|
|
779
|
-
method: "DELETE",
|
|
780
|
-
headers,
|
|
781
|
-
path: resolvedPath,
|
|
782
|
-
body,
|
|
783
|
-
});
|
|
522
|
+
b.m("DELETE").h(headers).b(body);
|
|
523
|
+
return b.build();
|
|
784
524
|
};
|
|
785
525
|
exports.se_DeleteUsagePlanKeyCommand = se_DeleteUsagePlanKeyCommand;
|
|
786
526
|
const se_DeleteVpcLinkCommand = async (input, context) => {
|
|
787
|
-
const
|
|
527
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
788
528
|
const headers = {};
|
|
789
|
-
|
|
790
|
-
|
|
529
|
+
b.bp("/vpclinks/{vpcLinkId}");
|
|
530
|
+
b.p("vpcLinkId", () => input.vpcLinkId, "{vpcLinkId}", false);
|
|
791
531
|
let body;
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
hostname,
|
|
795
|
-
port,
|
|
796
|
-
method: "DELETE",
|
|
797
|
-
headers,
|
|
798
|
-
path: resolvedPath,
|
|
799
|
-
body,
|
|
800
|
-
});
|
|
532
|
+
b.m("DELETE").h(headers).b(body);
|
|
533
|
+
return b.build();
|
|
801
534
|
};
|
|
802
535
|
exports.se_DeleteVpcLinkCommand = se_DeleteVpcLinkCommand;
|
|
803
536
|
const se_FlushStageAuthorizersCacheCommand = async (input, context) => {
|
|
804
|
-
const
|
|
537
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
805
538
|
const headers = {};
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "stageName", () => input.stageName, "{stageName}", false);
|
|
539
|
+
b.bp("/restapis/{restApiId}/stages/{stageName}/cache/authorizers");
|
|
540
|
+
b.p("restApiId", () => input.restApiId, "{restApiId}", false);
|
|
541
|
+
b.p("stageName", () => input.stageName, "{stageName}", false);
|
|
810
542
|
let body;
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
hostname,
|
|
814
|
-
port,
|
|
815
|
-
method: "DELETE",
|
|
816
|
-
headers,
|
|
817
|
-
path: resolvedPath,
|
|
818
|
-
body,
|
|
819
|
-
});
|
|
543
|
+
b.m("DELETE").h(headers).b(body);
|
|
544
|
+
return b.build();
|
|
820
545
|
};
|
|
821
546
|
exports.se_FlushStageAuthorizersCacheCommand = se_FlushStageAuthorizersCacheCommand;
|
|
822
547
|
const se_FlushStageCacheCommand = async (input, context) => {
|
|
823
|
-
const
|
|
548
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
824
549
|
const headers = {};
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "stageName", () => input.stageName, "{stageName}", false);
|
|
550
|
+
b.bp("/restapis/{restApiId}/stages/{stageName}/cache/data");
|
|
551
|
+
b.p("restApiId", () => input.restApiId, "{restApiId}", false);
|
|
552
|
+
b.p("stageName", () => input.stageName, "{stageName}", false);
|
|
829
553
|
let body;
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
hostname,
|
|
833
|
-
port,
|
|
834
|
-
method: "DELETE",
|
|
835
|
-
headers,
|
|
836
|
-
path: resolvedPath,
|
|
837
|
-
body,
|
|
838
|
-
});
|
|
554
|
+
b.m("DELETE").h(headers).b(body);
|
|
555
|
+
return b.build();
|
|
839
556
|
};
|
|
840
557
|
exports.se_FlushStageCacheCommand = se_FlushStageCacheCommand;
|
|
841
558
|
const se_GenerateClientCertificateCommand = async (input, context) => {
|
|
842
|
-
const
|
|
559
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
843
560
|
const headers = {
|
|
844
561
|
"content-type": "application/json",
|
|
845
562
|
};
|
|
846
|
-
|
|
563
|
+
b.bp("/clientcertificates");
|
|
847
564
|
let body;
|
|
848
565
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
849
566
|
description: [],
|
|
850
567
|
tags: (_) => (0, smithy_client_1._json)(_),
|
|
851
568
|
}));
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
hostname,
|
|
855
|
-
port,
|
|
856
|
-
method: "POST",
|
|
857
|
-
headers,
|
|
858
|
-
path: resolvedPath,
|
|
859
|
-
body,
|
|
860
|
-
});
|
|
569
|
+
b.m("POST").h(headers).b(body);
|
|
570
|
+
return b.build();
|
|
861
571
|
};
|
|
862
572
|
exports.se_GenerateClientCertificateCommand = se_GenerateClientCertificateCommand;
|
|
863
573
|
const se_GetAccountCommand = async (input, context) => {
|
|
864
|
-
const
|
|
574
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
865
575
|
const headers = {
|
|
866
576
|
"content-type": "application/json",
|
|
867
577
|
};
|
|
868
|
-
|
|
578
|
+
b.bp("/account");
|
|
869
579
|
let body;
|
|
870
580
|
body = "";
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
hostname,
|
|
874
|
-
port,
|
|
875
|
-
method: "GET",
|
|
876
|
-
headers,
|
|
877
|
-
path: resolvedPath,
|
|
878
|
-
body,
|
|
879
|
-
});
|
|
581
|
+
b.m("GET").h(headers).b(body);
|
|
582
|
+
return b.build();
|
|
880
583
|
};
|
|
881
584
|
exports.se_GetAccountCommand = se_GetAccountCommand;
|
|
882
585
|
const se_GetApiKeyCommand = async (input, context) => {
|
|
883
|
-
const
|
|
586
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
884
587
|
const headers = {};
|
|
885
|
-
|
|
886
|
-
|
|
588
|
+
b.bp("/apikeys/{apiKey}");
|
|
589
|
+
b.p("apiKey", () => input.apiKey, "{apiKey}", false);
|
|
887
590
|
const query = (0, smithy_client_1.map)({
|
|
888
|
-
|
|
591
|
+
[_iV]: [() => input.includeValue !== void 0, () => input[_iV].toString()],
|
|
889
592
|
});
|
|
890
593
|
let body;
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
hostname,
|
|
894
|
-
port,
|
|
895
|
-
method: "GET",
|
|
896
|
-
headers,
|
|
897
|
-
path: resolvedPath,
|
|
898
|
-
query,
|
|
899
|
-
body,
|
|
900
|
-
});
|
|
594
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
595
|
+
return b.build();
|
|
901
596
|
};
|
|
902
597
|
exports.se_GetApiKeyCommand = se_GetApiKeyCommand;
|
|
903
598
|
const se_GetApiKeysCommand = async (input, context) => {
|
|
904
|
-
const
|
|
599
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
905
600
|
const headers = {};
|
|
906
|
-
|
|
601
|
+
b.bp("/apikeys");
|
|
907
602
|
const query = (0, smithy_client_1.map)({
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
603
|
+
[_p]: [, input[_p]],
|
|
604
|
+
[_l]: [() => input.limit !== void 0, () => input[_l].toString()],
|
|
605
|
+
[_n]: [, input[_nQ]],
|
|
606
|
+
[_cI]: [, input[_cI]],
|
|
607
|
+
[_iVn]: [() => input.includeValues !== void 0, () => input[_iVn].toString()],
|
|
913
608
|
});
|
|
914
609
|
let body;
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
hostname,
|
|
918
|
-
port,
|
|
919
|
-
method: "GET",
|
|
920
|
-
headers,
|
|
921
|
-
path: resolvedPath,
|
|
922
|
-
query,
|
|
923
|
-
body,
|
|
924
|
-
});
|
|
610
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
611
|
+
return b.build();
|
|
925
612
|
};
|
|
926
613
|
exports.se_GetApiKeysCommand = se_GetApiKeysCommand;
|
|
927
614
|
const se_GetAuthorizerCommand = async (input, context) => {
|
|
928
|
-
const
|
|
615
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
929
616
|
const headers = {};
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "authorizerId", () => input.authorizerId, "{authorizerId}", false);
|
|
617
|
+
b.bp("/restapis/{restApiId}/authorizers/{authorizerId}");
|
|
618
|
+
b.p("restApiId", () => input.restApiId, "{restApiId}", false);
|
|
619
|
+
b.p("authorizerId", () => input.authorizerId, "{authorizerId}", false);
|
|
934
620
|
let body;
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
hostname,
|
|
938
|
-
port,
|
|
939
|
-
method: "GET",
|
|
940
|
-
headers,
|
|
941
|
-
path: resolvedPath,
|
|
942
|
-
body,
|
|
943
|
-
});
|
|
621
|
+
b.m("GET").h(headers).b(body);
|
|
622
|
+
return b.build();
|
|
944
623
|
};
|
|
945
624
|
exports.se_GetAuthorizerCommand = se_GetAuthorizerCommand;
|
|
946
625
|
const se_GetAuthorizersCommand = async (input, context) => {
|
|
947
|
-
const
|
|
626
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
948
627
|
const headers = {};
|
|
949
|
-
|
|
950
|
-
|
|
628
|
+
b.bp("/restapis/{restApiId}/authorizers");
|
|
629
|
+
b.p("restApiId", () => input.restApiId, "{restApiId}", false);
|
|
951
630
|
const query = (0, smithy_client_1.map)({
|
|
952
|
-
|
|
953
|
-
|
|
631
|
+
[_p]: [, input[_p]],
|
|
632
|
+
[_l]: [() => input.limit !== void 0, () => input[_l].toString()],
|
|
954
633
|
});
|
|
955
634
|
let body;
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
hostname,
|
|
959
|
-
port,
|
|
960
|
-
method: "GET",
|
|
961
|
-
headers,
|
|
962
|
-
path: resolvedPath,
|
|
963
|
-
query,
|
|
964
|
-
body,
|
|
965
|
-
});
|
|
635
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
636
|
+
return b.build();
|
|
966
637
|
};
|
|
967
638
|
exports.se_GetAuthorizersCommand = se_GetAuthorizersCommand;
|
|
968
639
|
const se_GetBasePathMappingCommand = async (input, context) => {
|
|
969
|
-
const
|
|
640
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
970
641
|
const headers = {};
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "basePath", () => input.basePath, "{basePath}", false);
|
|
642
|
+
b.bp("/domainnames/{domainName}/basepathmappings/{basePath}");
|
|
643
|
+
b.p("domainName", () => input.domainName, "{domainName}", false);
|
|
644
|
+
b.p("basePath", () => input.basePath, "{basePath}", false);
|
|
975
645
|
let body;
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
hostname,
|
|
979
|
-
port,
|
|
980
|
-
method: "GET",
|
|
981
|
-
headers,
|
|
982
|
-
path: resolvedPath,
|
|
983
|
-
body,
|
|
984
|
-
});
|
|
646
|
+
b.m("GET").h(headers).b(body);
|
|
647
|
+
return b.build();
|
|
985
648
|
};
|
|
986
649
|
exports.se_GetBasePathMappingCommand = se_GetBasePathMappingCommand;
|
|
987
650
|
const se_GetBasePathMappingsCommand = async (input, context) => {
|
|
988
|
-
const
|
|
651
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
989
652
|
const headers = {};
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainName", () => input.domainName, "{domainName}", false);
|
|
653
|
+
b.bp("/domainnames/{domainName}/basepathmappings");
|
|
654
|
+
b.p("domainName", () => input.domainName, "{domainName}", false);
|
|
993
655
|
const query = (0, smithy_client_1.map)({
|
|
994
|
-
|
|
995
|
-
|
|
656
|
+
[_p]: [, input[_p]],
|
|
657
|
+
[_l]: [() => input.limit !== void 0, () => input[_l].toString()],
|
|
996
658
|
});
|
|
997
659
|
let body;
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
hostname,
|
|
1001
|
-
port,
|
|
1002
|
-
method: "GET",
|
|
1003
|
-
headers,
|
|
1004
|
-
path: resolvedPath,
|
|
1005
|
-
query,
|
|
1006
|
-
body,
|
|
1007
|
-
});
|
|
660
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
661
|
+
return b.build();
|
|
1008
662
|
};
|
|
1009
663
|
exports.se_GetBasePathMappingsCommand = se_GetBasePathMappingsCommand;
|
|
1010
664
|
const se_GetClientCertificateCommand = async (input, context) => {
|
|
1011
|
-
const
|
|
665
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1012
666
|
const headers = {};
|
|
1013
|
-
|
|
1014
|
-
|
|
667
|
+
b.bp("/clientcertificates/{clientCertificateId}");
|
|
668
|
+
b.p("clientCertificateId", () => input.clientCertificateId, "{clientCertificateId}", false);
|
|
1015
669
|
let body;
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
hostname,
|
|
1019
|
-
port,
|
|
1020
|
-
method: "GET",
|
|
1021
|
-
headers,
|
|
1022
|
-
path: resolvedPath,
|
|
1023
|
-
body,
|
|
1024
|
-
});
|
|
670
|
+
b.m("GET").h(headers).b(body);
|
|
671
|
+
return b.build();
|
|
1025
672
|
};
|
|
1026
673
|
exports.se_GetClientCertificateCommand = se_GetClientCertificateCommand;
|
|
1027
674
|
const se_GetClientCertificatesCommand = async (input, context) => {
|
|
1028
|
-
const
|
|
675
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1029
676
|
const headers = {};
|
|
1030
|
-
|
|
677
|
+
b.bp("/clientcertificates");
|
|
1031
678
|
const query = (0, smithy_client_1.map)({
|
|
1032
|
-
|
|
1033
|
-
|
|
679
|
+
[_p]: [, input[_p]],
|
|
680
|
+
[_l]: [() => input.limit !== void 0, () => input[_l].toString()],
|
|
1034
681
|
});
|
|
1035
682
|
let body;
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
hostname,
|
|
1039
|
-
port,
|
|
1040
|
-
method: "GET",
|
|
1041
|
-
headers,
|
|
1042
|
-
path: resolvedPath,
|
|
1043
|
-
query,
|
|
1044
|
-
body,
|
|
1045
|
-
});
|
|
683
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
684
|
+
return b.build();
|
|
1046
685
|
};
|
|
1047
686
|
exports.se_GetClientCertificatesCommand = se_GetClientCertificatesCommand;
|
|
1048
687
|
const se_GetDeploymentCommand = async (input, context) => {
|
|
1049
|
-
const
|
|
688
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1050
689
|
const headers = {};
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "deploymentId", () => input.deploymentId, "{deploymentId}", false);
|
|
690
|
+
b.bp("/restapis/{restApiId}/deployments/{deploymentId}");
|
|
691
|
+
b.p("restApiId", () => input.restApiId, "{restApiId}", false);
|
|
692
|
+
b.p("deploymentId", () => input.deploymentId, "{deploymentId}", false);
|
|
1055
693
|
const query = (0, smithy_client_1.map)({
|
|
1056
|
-
|
|
694
|
+
[_e]: [() => input.embed !== void 0, () => (input[_e] || []).map((_entry) => _entry)],
|
|
1057
695
|
});
|
|
1058
696
|
let body;
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
hostname,
|
|
1062
|
-
port,
|
|
1063
|
-
method: "GET",
|
|
1064
|
-
headers,
|
|
1065
|
-
path: resolvedPath,
|
|
1066
|
-
query,
|
|
1067
|
-
body,
|
|
1068
|
-
});
|
|
697
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
698
|
+
return b.build();
|
|
1069
699
|
};
|
|
1070
700
|
exports.se_GetDeploymentCommand = se_GetDeploymentCommand;
|
|
1071
701
|
const se_GetDeploymentsCommand = async (input, context) => {
|
|
1072
|
-
const
|
|
702
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1073
703
|
const headers = {};
|
|
1074
|
-
|
|
1075
|
-
|
|
704
|
+
b.bp("/restapis/{restApiId}/deployments");
|
|
705
|
+
b.p("restApiId", () => input.restApiId, "{restApiId}", false);
|
|
1076
706
|
const query = (0, smithy_client_1.map)({
|
|
1077
|
-
|
|
1078
|
-
|
|
707
|
+
[_p]: [, input[_p]],
|
|
708
|
+
[_l]: [() => input.limit !== void 0, () => input[_l].toString()],
|
|
1079
709
|
});
|
|
1080
710
|
let body;
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
hostname,
|
|
1084
|
-
port,
|
|
1085
|
-
method: "GET",
|
|
1086
|
-
headers,
|
|
1087
|
-
path: resolvedPath,
|
|
1088
|
-
query,
|
|
1089
|
-
body,
|
|
1090
|
-
});
|
|
711
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
712
|
+
return b.build();
|
|
1091
713
|
};
|
|
1092
714
|
exports.se_GetDeploymentsCommand = se_GetDeploymentsCommand;
|
|
1093
715
|
const se_GetDocumentationPartCommand = async (input, context) => {
|
|
1094
|
-
const
|
|
716
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1095
717
|
const headers = {};
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "documentationPartId", () => input.documentationPartId, "{documentationPartId}", false);
|
|
718
|
+
b.bp("/restapis/{restApiId}/documentation/parts/{documentationPartId}");
|
|
719
|
+
b.p("restApiId", () => input.restApiId, "{restApiId}", false);
|
|
720
|
+
b.p("documentationPartId", () => input.documentationPartId, "{documentationPartId}", false);
|
|
1100
721
|
let body;
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
hostname,
|
|
1104
|
-
port,
|
|
1105
|
-
method: "GET",
|
|
1106
|
-
headers,
|
|
1107
|
-
path: resolvedPath,
|
|
1108
|
-
body,
|
|
1109
|
-
});
|
|
722
|
+
b.m("GET").h(headers).b(body);
|
|
723
|
+
return b.build();
|
|
1110
724
|
};
|
|
1111
725
|
exports.se_GetDocumentationPartCommand = se_GetDocumentationPartCommand;
|
|
1112
726
|
const se_GetDocumentationPartsCommand = async (input, context) => {
|
|
1113
|
-
const
|
|
727
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1114
728
|
const headers = {};
|
|
1115
|
-
|
|
1116
|
-
|
|
729
|
+
b.bp("/restapis/{restApiId}/documentation/parts");
|
|
730
|
+
b.p("restApiId", () => input.restApiId, "{restApiId}", false);
|
|
1117
731
|
const query = (0, smithy_client_1.map)({
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
732
|
+
[_t]: [, input[_t]],
|
|
733
|
+
[_n]: [, input[_nQ]],
|
|
734
|
+
[_pa]: [, input[_pa]],
|
|
735
|
+
[_p]: [, input[_p]],
|
|
736
|
+
[_l]: [() => input.limit !== void 0, () => input[_l].toString()],
|
|
737
|
+
[_lS]: [, input[_lS]],
|
|
1124
738
|
});
|
|
1125
739
|
let body;
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
hostname,
|
|
1129
|
-
port,
|
|
1130
|
-
method: "GET",
|
|
1131
|
-
headers,
|
|
1132
|
-
path: resolvedPath,
|
|
1133
|
-
query,
|
|
1134
|
-
body,
|
|
1135
|
-
});
|
|
740
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
741
|
+
return b.build();
|
|
1136
742
|
};
|
|
1137
743
|
exports.se_GetDocumentationPartsCommand = se_GetDocumentationPartsCommand;
|
|
1138
744
|
const se_GetDocumentationVersionCommand = async (input, context) => {
|
|
1139
|
-
const
|
|
745
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1140
746
|
const headers = {};
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "documentationVersion", () => input.documentationVersion, "{documentationVersion}", false);
|
|
747
|
+
b.bp("/restapis/{restApiId}/documentation/versions/{documentationVersion}");
|
|
748
|
+
b.p("restApiId", () => input.restApiId, "{restApiId}", false);
|
|
749
|
+
b.p("documentationVersion", () => input.documentationVersion, "{documentationVersion}", false);
|
|
1145
750
|
let body;
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
hostname,
|
|
1149
|
-
port,
|
|
1150
|
-
method: "GET",
|
|
1151
|
-
headers,
|
|
1152
|
-
path: resolvedPath,
|
|
1153
|
-
body,
|
|
1154
|
-
});
|
|
751
|
+
b.m("GET").h(headers).b(body);
|
|
752
|
+
return b.build();
|
|
1155
753
|
};
|
|
1156
754
|
exports.se_GetDocumentationVersionCommand = se_GetDocumentationVersionCommand;
|
|
1157
755
|
const se_GetDocumentationVersionsCommand = async (input, context) => {
|
|
1158
|
-
const
|
|
756
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1159
757
|
const headers = {};
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "restApiId", () => input.restApiId, "{restApiId}", false);
|
|
758
|
+
b.bp("/restapis/{restApiId}/documentation/versions");
|
|
759
|
+
b.p("restApiId", () => input.restApiId, "{restApiId}", false);
|
|
1163
760
|
const query = (0, smithy_client_1.map)({
|
|
1164
|
-
|
|
1165
|
-
|
|
761
|
+
[_p]: [, input[_p]],
|
|
762
|
+
[_l]: [() => input.limit !== void 0, () => input[_l].toString()],
|
|
1166
763
|
});
|
|
1167
764
|
let body;
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
hostname,
|
|
1171
|
-
port,
|
|
1172
|
-
method: "GET",
|
|
1173
|
-
headers,
|
|
1174
|
-
path: resolvedPath,
|
|
1175
|
-
query,
|
|
1176
|
-
body,
|
|
1177
|
-
});
|
|
765
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
766
|
+
return b.build();
|
|
1178
767
|
};
|
|
1179
768
|
exports.se_GetDocumentationVersionsCommand = se_GetDocumentationVersionsCommand;
|
|
1180
769
|
const se_GetDomainNameCommand = async (input, context) => {
|
|
1181
|
-
const
|
|
770
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1182
771
|
const headers = {};
|
|
1183
|
-
|
|
1184
|
-
|
|
772
|
+
b.bp("/domainnames/{domainName}");
|
|
773
|
+
b.p("domainName", () => input.domainName, "{domainName}", false);
|
|
1185
774
|
let body;
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
hostname,
|
|
1189
|
-
port,
|
|
1190
|
-
method: "GET",
|
|
1191
|
-
headers,
|
|
1192
|
-
path: resolvedPath,
|
|
1193
|
-
body,
|
|
1194
|
-
});
|
|
775
|
+
b.m("GET").h(headers).b(body);
|
|
776
|
+
return b.build();
|
|
1195
777
|
};
|
|
1196
778
|
exports.se_GetDomainNameCommand = se_GetDomainNameCommand;
|
|
1197
779
|
const se_GetDomainNamesCommand = async (input, context) => {
|
|
1198
|
-
const
|
|
780
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1199
781
|
const headers = {};
|
|
1200
|
-
|
|
782
|
+
b.bp("/domainnames");
|
|
1201
783
|
const query = (0, smithy_client_1.map)({
|
|
1202
|
-
|
|
1203
|
-
|
|
784
|
+
[_p]: [, input[_p]],
|
|
785
|
+
[_l]: [() => input.limit !== void 0, () => input[_l].toString()],
|
|
1204
786
|
});
|
|
1205
787
|
let body;
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
hostname,
|
|
1209
|
-
port,
|
|
1210
|
-
method: "GET",
|
|
1211
|
-
headers,
|
|
1212
|
-
path: resolvedPath,
|
|
1213
|
-
query,
|
|
1214
|
-
body,
|
|
1215
|
-
});
|
|
788
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
789
|
+
return b.build();
|
|
1216
790
|
};
|
|
1217
791
|
exports.se_GetDomainNamesCommand = se_GetDomainNamesCommand;
|
|
1218
792
|
const se_GetExportCommand = async (input, context) => {
|
|
1219
|
-
const
|
|
793
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1220
794
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
1221
|
-
|
|
795
|
+
[_ac]: input[_a],
|
|
1222
796
|
});
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "exportType", () => input.exportType, "{exportType}", false);
|
|
797
|
+
b.bp("/restapis/{restApiId}/stages/{stageName}/exports/{exportType}");
|
|
798
|
+
b.p("restApiId", () => input.restApiId, "{restApiId}", false);
|
|
799
|
+
b.p("stageName", () => input.stageName, "{stageName}", false);
|
|
800
|
+
b.p("exportType", () => input.exportType, "{exportType}", false);
|
|
1228
801
|
const query = (0, smithy_client_1.map)({
|
|
1229
802
|
...(0, smithy_client_1.convertMap)(input.parameters),
|
|
1230
803
|
});
|
|
1231
804
|
let body;
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
hostname,
|
|
1235
|
-
port,
|
|
1236
|
-
method: "GET",
|
|
1237
|
-
headers,
|
|
1238
|
-
path: resolvedPath,
|
|
1239
|
-
query,
|
|
1240
|
-
body,
|
|
1241
|
-
});
|
|
805
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
806
|
+
return b.build();
|
|
1242
807
|
};
|
|
1243
808
|
exports.se_GetExportCommand = se_GetExportCommand;
|
|
1244
809
|
const se_GetGatewayResponseCommand = async (input, context) => {
|
|
1245
|
-
const
|
|
810
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1246
811
|
const headers = {};
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "responseType", () => input.responseType, "{responseType}", false);
|
|
812
|
+
b.bp("/restapis/{restApiId}/gatewayresponses/{responseType}");
|
|
813
|
+
b.p("restApiId", () => input.restApiId, "{restApiId}", false);
|
|
814
|
+
b.p("responseType", () => input.responseType, "{responseType}", false);
|
|
1251
815
|
let body;
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
hostname,
|
|
1255
|
-
port,
|
|
1256
|
-
method: "GET",
|
|
1257
|
-
headers,
|
|
1258
|
-
path: resolvedPath,
|
|
1259
|
-
body,
|
|
1260
|
-
});
|
|
816
|
+
b.m("GET").h(headers).b(body);
|
|
817
|
+
return b.build();
|
|
1261
818
|
};
|
|
1262
819
|
exports.se_GetGatewayResponseCommand = se_GetGatewayResponseCommand;
|
|
1263
820
|
const se_GetGatewayResponsesCommand = async (input, context) => {
|
|
1264
|
-
const
|
|
821
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1265
822
|
const headers = {};
|
|
1266
|
-
|
|
1267
|
-
|
|
823
|
+
b.bp("/restapis/{restApiId}/gatewayresponses");
|
|
824
|
+
b.p("restApiId", () => input.restApiId, "{restApiId}", false);
|
|
1268
825
|
const query = (0, smithy_client_1.map)({
|
|
1269
|
-
|
|
1270
|
-
|
|
826
|
+
[_p]: [, input[_p]],
|
|
827
|
+
[_l]: [() => input.limit !== void 0, () => input[_l].toString()],
|
|
1271
828
|
});
|
|
1272
829
|
let body;
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
hostname,
|
|
1276
|
-
port,
|
|
1277
|
-
method: "GET",
|
|
1278
|
-
headers,
|
|
1279
|
-
path: resolvedPath,
|
|
1280
|
-
query,
|
|
1281
|
-
body,
|
|
1282
|
-
});
|
|
830
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
831
|
+
return b.build();
|
|
1283
832
|
};
|
|
1284
833
|
exports.se_GetGatewayResponsesCommand = se_GetGatewayResponsesCommand;
|
|
1285
834
|
const se_GetIntegrationCommand = async (input, context) => {
|
|
1286
|
-
const
|
|
835
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1287
836
|
const headers = {};
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "httpMethod", () => input.httpMethod, "{httpMethod}", false);
|
|
837
|
+
b.bp("/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}/integration");
|
|
838
|
+
b.p("restApiId", () => input.restApiId, "{restApiId}", false);
|
|
839
|
+
b.p("resourceId", () => input.resourceId, "{resourceId}", false);
|
|
840
|
+
b.p("httpMethod", () => input.httpMethod, "{httpMethod}", false);
|
|
1293
841
|
let body;
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
hostname,
|
|
1297
|
-
port,
|
|
1298
|
-
method: "GET",
|
|
1299
|
-
headers,
|
|
1300
|
-
path: resolvedPath,
|
|
1301
|
-
body,
|
|
1302
|
-
});
|
|
842
|
+
b.m("GET").h(headers).b(body);
|
|
843
|
+
return b.build();
|
|
1303
844
|
};
|
|
1304
845
|
exports.se_GetIntegrationCommand = se_GetIntegrationCommand;
|
|
1305
846
|
const se_GetIntegrationResponseCommand = async (input, context) => {
|
|
1306
|
-
const
|
|
847
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1307
848
|
const headers = {};
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "statusCode", () => input.statusCode, "{statusCode}", false);
|
|
849
|
+
b.bp("/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}/integration/responses/{statusCode}");
|
|
850
|
+
b.p("restApiId", () => input.restApiId, "{restApiId}", false);
|
|
851
|
+
b.p("resourceId", () => input.resourceId, "{resourceId}", false);
|
|
852
|
+
b.p("httpMethod", () => input.httpMethod, "{httpMethod}", false);
|
|
853
|
+
b.p("statusCode", () => input.statusCode, "{statusCode}", false);
|
|
1314
854
|
let body;
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
hostname,
|
|
1318
|
-
port,
|
|
1319
|
-
method: "GET",
|
|
1320
|
-
headers,
|
|
1321
|
-
path: resolvedPath,
|
|
1322
|
-
body,
|
|
1323
|
-
});
|
|
855
|
+
b.m("GET").h(headers).b(body);
|
|
856
|
+
return b.build();
|
|
1324
857
|
};
|
|
1325
858
|
exports.se_GetIntegrationResponseCommand = se_GetIntegrationResponseCommand;
|
|
1326
859
|
const se_GetMethodCommand = async (input, context) => {
|
|
1327
|
-
const
|
|
860
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1328
861
|
const headers = {};
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "httpMethod", () => input.httpMethod, "{httpMethod}", false);
|
|
862
|
+
b.bp("/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}");
|
|
863
|
+
b.p("restApiId", () => input.restApiId, "{restApiId}", false);
|
|
864
|
+
b.p("resourceId", () => input.resourceId, "{resourceId}", false);
|
|
865
|
+
b.p("httpMethod", () => input.httpMethod, "{httpMethod}", false);
|
|
1334
866
|
let body;
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
hostname,
|
|
1338
|
-
port,
|
|
1339
|
-
method: "GET",
|
|
1340
|
-
headers,
|
|
1341
|
-
path: resolvedPath,
|
|
1342
|
-
body,
|
|
1343
|
-
});
|
|
867
|
+
b.m("GET").h(headers).b(body);
|
|
868
|
+
return b.build();
|
|
1344
869
|
};
|
|
1345
870
|
exports.se_GetMethodCommand = se_GetMethodCommand;
|
|
1346
871
|
const se_GetMethodResponseCommand = async (input, context) => {
|
|
1347
|
-
const
|
|
872
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1348
873
|
const headers = {};
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "statusCode", () => input.statusCode, "{statusCode}", false);
|
|
874
|
+
b.bp("/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}/responses/{statusCode}");
|
|
875
|
+
b.p("restApiId", () => input.restApiId, "{restApiId}", false);
|
|
876
|
+
b.p("resourceId", () => input.resourceId, "{resourceId}", false);
|
|
877
|
+
b.p("httpMethod", () => input.httpMethod, "{httpMethod}", false);
|
|
878
|
+
b.p("statusCode", () => input.statusCode, "{statusCode}", false);
|
|
1355
879
|
let body;
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
hostname,
|
|
1359
|
-
port,
|
|
1360
|
-
method: "GET",
|
|
1361
|
-
headers,
|
|
1362
|
-
path: resolvedPath,
|
|
1363
|
-
body,
|
|
1364
|
-
});
|
|
880
|
+
b.m("GET").h(headers).b(body);
|
|
881
|
+
return b.build();
|
|
1365
882
|
};
|
|
1366
883
|
exports.se_GetMethodResponseCommand = se_GetMethodResponseCommand;
|
|
1367
884
|
const se_GetModelCommand = async (input, context) => {
|
|
1368
|
-
const
|
|
885
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1369
886
|
const headers = {};
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
887
|
+
b.bp("/restapis/{restApiId}/models/{modelName}");
|
|
888
|
+
b.p("restApiId", () => input.restApiId, "{restApiId}", false);
|
|
889
|
+
b.p("modelName", () => input.modelName, "{modelName}", false);
|
|
1373
890
|
const query = (0, smithy_client_1.map)({
|
|
1374
|
-
|
|
891
|
+
[_f]: [() => input.flatten !== void 0, () => input[_f].toString()],
|
|
1375
892
|
});
|
|
1376
893
|
let body;
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
hostname,
|
|
1380
|
-
port,
|
|
1381
|
-
method: "GET",
|
|
1382
|
-
headers,
|
|
1383
|
-
path: resolvedPath,
|
|
1384
|
-
query,
|
|
1385
|
-
body,
|
|
1386
|
-
});
|
|
894
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
895
|
+
return b.build();
|
|
1387
896
|
};
|
|
1388
897
|
exports.se_GetModelCommand = se_GetModelCommand;
|
|
1389
898
|
const se_GetModelsCommand = async (input, context) => {
|
|
1390
|
-
const
|
|
899
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1391
900
|
const headers = {};
|
|
1392
|
-
|
|
1393
|
-
|
|
901
|
+
b.bp("/restapis/{restApiId}/models");
|
|
902
|
+
b.p("restApiId", () => input.restApiId, "{restApiId}", false);
|
|
1394
903
|
const query = (0, smithy_client_1.map)({
|
|
1395
|
-
|
|
1396
|
-
|
|
904
|
+
[_p]: [, input[_p]],
|
|
905
|
+
[_l]: [() => input.limit !== void 0, () => input[_l].toString()],
|
|
1397
906
|
});
|
|
1398
907
|
let body;
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
hostname,
|
|
1402
|
-
port,
|
|
1403
|
-
method: "GET",
|
|
1404
|
-
headers,
|
|
1405
|
-
path: resolvedPath,
|
|
1406
|
-
query,
|
|
1407
|
-
body,
|
|
1408
|
-
});
|
|
908
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
909
|
+
return b.build();
|
|
1409
910
|
};
|
|
1410
911
|
exports.se_GetModelsCommand = se_GetModelsCommand;
|
|
1411
912
|
const se_GetModelTemplateCommand = async (input, context) => {
|
|
1412
|
-
const
|
|
913
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1413
914
|
const headers = {};
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "modelName", () => input.modelName, "{modelName}", false);
|
|
915
|
+
b.bp("/restapis/{restApiId}/models/{modelName}/default_template");
|
|
916
|
+
b.p("restApiId", () => input.restApiId, "{restApiId}", false);
|
|
917
|
+
b.p("modelName", () => input.modelName, "{modelName}", false);
|
|
1418
918
|
let body;
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
hostname,
|
|
1422
|
-
port,
|
|
1423
|
-
method: "GET",
|
|
1424
|
-
headers,
|
|
1425
|
-
path: resolvedPath,
|
|
1426
|
-
body,
|
|
1427
|
-
});
|
|
919
|
+
b.m("GET").h(headers).b(body);
|
|
920
|
+
return b.build();
|
|
1428
921
|
};
|
|
1429
922
|
exports.se_GetModelTemplateCommand = se_GetModelTemplateCommand;
|
|
1430
923
|
const se_GetRequestValidatorCommand = async (input, context) => {
|
|
1431
|
-
const
|
|
924
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1432
925
|
const headers = {};
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "requestValidatorId", () => input.requestValidatorId, "{requestValidatorId}", false);
|
|
926
|
+
b.bp("/restapis/{restApiId}/requestvalidators/{requestValidatorId}");
|
|
927
|
+
b.p("restApiId", () => input.restApiId, "{restApiId}", false);
|
|
928
|
+
b.p("requestValidatorId", () => input.requestValidatorId, "{requestValidatorId}", false);
|
|
1437
929
|
let body;
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
hostname,
|
|
1441
|
-
port,
|
|
1442
|
-
method: "GET",
|
|
1443
|
-
headers,
|
|
1444
|
-
path: resolvedPath,
|
|
1445
|
-
body,
|
|
1446
|
-
});
|
|
930
|
+
b.m("GET").h(headers).b(body);
|
|
931
|
+
return b.build();
|
|
1447
932
|
};
|
|
1448
933
|
exports.se_GetRequestValidatorCommand = se_GetRequestValidatorCommand;
|
|
1449
934
|
const se_GetRequestValidatorsCommand = async (input, context) => {
|
|
1450
|
-
const
|
|
935
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1451
936
|
const headers = {};
|
|
1452
|
-
|
|
1453
|
-
|
|
937
|
+
b.bp("/restapis/{restApiId}/requestvalidators");
|
|
938
|
+
b.p("restApiId", () => input.restApiId, "{restApiId}", false);
|
|
1454
939
|
const query = (0, smithy_client_1.map)({
|
|
1455
|
-
|
|
1456
|
-
|
|
940
|
+
[_p]: [, input[_p]],
|
|
941
|
+
[_l]: [() => input.limit !== void 0, () => input[_l].toString()],
|
|
1457
942
|
});
|
|
1458
943
|
let body;
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
hostname,
|
|
1462
|
-
port,
|
|
1463
|
-
method: "GET",
|
|
1464
|
-
headers,
|
|
1465
|
-
path: resolvedPath,
|
|
1466
|
-
query,
|
|
1467
|
-
body,
|
|
1468
|
-
});
|
|
944
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
945
|
+
return b.build();
|
|
1469
946
|
};
|
|
1470
947
|
exports.se_GetRequestValidatorsCommand = se_GetRequestValidatorsCommand;
|
|
1471
948
|
const se_GetResourceCommand = async (input, context) => {
|
|
1472
|
-
const
|
|
949
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1473
950
|
const headers = {};
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceId", () => input.resourceId, "{resourceId}", false);
|
|
951
|
+
b.bp("/restapis/{restApiId}/resources/{resourceId}");
|
|
952
|
+
b.p("restApiId", () => input.restApiId, "{restApiId}", false);
|
|
953
|
+
b.p("resourceId", () => input.resourceId, "{resourceId}", false);
|
|
1478
954
|
const query = (0, smithy_client_1.map)({
|
|
1479
|
-
|
|
955
|
+
[_e]: [() => input.embed !== void 0, () => (input[_e] || []).map((_entry) => _entry)],
|
|
1480
956
|
});
|
|
1481
957
|
let body;
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
hostname,
|
|
1485
|
-
port,
|
|
1486
|
-
method: "GET",
|
|
1487
|
-
headers,
|
|
1488
|
-
path: resolvedPath,
|
|
1489
|
-
query,
|
|
1490
|
-
body,
|
|
1491
|
-
});
|
|
958
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
959
|
+
return b.build();
|
|
1492
960
|
};
|
|
1493
961
|
exports.se_GetResourceCommand = se_GetResourceCommand;
|
|
1494
962
|
const se_GetResourcesCommand = async (input, context) => {
|
|
1495
|
-
const
|
|
963
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1496
964
|
const headers = {};
|
|
1497
|
-
|
|
1498
|
-
|
|
965
|
+
b.bp("/restapis/{restApiId}/resources");
|
|
966
|
+
b.p("restApiId", () => input.restApiId, "{restApiId}", false);
|
|
1499
967
|
const query = (0, smithy_client_1.map)({
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
968
|
+
[_p]: [, input[_p]],
|
|
969
|
+
[_l]: [() => input.limit !== void 0, () => input[_l].toString()],
|
|
970
|
+
[_e]: [() => input.embed !== void 0, () => (input[_e] || []).map((_entry) => _entry)],
|
|
1503
971
|
});
|
|
1504
972
|
let body;
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
hostname,
|
|
1508
|
-
port,
|
|
1509
|
-
method: "GET",
|
|
1510
|
-
headers,
|
|
1511
|
-
path: resolvedPath,
|
|
1512
|
-
query,
|
|
1513
|
-
body,
|
|
1514
|
-
});
|
|
973
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
974
|
+
return b.build();
|
|
1515
975
|
};
|
|
1516
976
|
exports.se_GetResourcesCommand = se_GetResourcesCommand;
|
|
1517
977
|
const se_GetRestApiCommand = async (input, context) => {
|
|
1518
|
-
const
|
|
978
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1519
979
|
const headers = {};
|
|
1520
|
-
|
|
1521
|
-
|
|
980
|
+
b.bp("/restapis/{restApiId}");
|
|
981
|
+
b.p("restApiId", () => input.restApiId, "{restApiId}", false);
|
|
1522
982
|
let body;
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
hostname,
|
|
1526
|
-
port,
|
|
1527
|
-
method: "GET",
|
|
1528
|
-
headers,
|
|
1529
|
-
path: resolvedPath,
|
|
1530
|
-
body,
|
|
1531
|
-
});
|
|
983
|
+
b.m("GET").h(headers).b(body);
|
|
984
|
+
return b.build();
|
|
1532
985
|
};
|
|
1533
986
|
exports.se_GetRestApiCommand = se_GetRestApiCommand;
|
|
1534
987
|
const se_GetRestApisCommand = async (input, context) => {
|
|
1535
|
-
const
|
|
988
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1536
989
|
const headers = {};
|
|
1537
|
-
|
|
990
|
+
b.bp("/restapis");
|
|
1538
991
|
const query = (0, smithy_client_1.map)({
|
|
1539
|
-
|
|
1540
|
-
|
|
992
|
+
[_p]: [, input[_p]],
|
|
993
|
+
[_l]: [() => input.limit !== void 0, () => input[_l].toString()],
|
|
1541
994
|
});
|
|
1542
995
|
let body;
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
hostname,
|
|
1546
|
-
port,
|
|
1547
|
-
method: "GET",
|
|
1548
|
-
headers,
|
|
1549
|
-
path: resolvedPath,
|
|
1550
|
-
query,
|
|
1551
|
-
body,
|
|
1552
|
-
});
|
|
996
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
997
|
+
return b.build();
|
|
1553
998
|
};
|
|
1554
999
|
exports.se_GetRestApisCommand = se_GetRestApisCommand;
|
|
1555
1000
|
const se_GetSdkCommand = async (input, context) => {
|
|
1556
|
-
const
|
|
1001
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1557
1002
|
const headers = {};
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "sdkType", () => input.sdkType, "{sdkType}", false);
|
|
1003
|
+
b.bp("/restapis/{restApiId}/stages/{stageName}/sdks/{sdkType}");
|
|
1004
|
+
b.p("restApiId", () => input.restApiId, "{restApiId}", false);
|
|
1005
|
+
b.p("stageName", () => input.stageName, "{stageName}", false);
|
|
1006
|
+
b.p("sdkType", () => input.sdkType, "{sdkType}", false);
|
|
1563
1007
|
const query = (0, smithy_client_1.map)({
|
|
1564
1008
|
...(0, smithy_client_1.convertMap)(input.parameters),
|
|
1565
1009
|
});
|
|
1566
1010
|
let body;
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
hostname,
|
|
1570
|
-
port,
|
|
1571
|
-
method: "GET",
|
|
1572
|
-
headers,
|
|
1573
|
-
path: resolvedPath,
|
|
1574
|
-
query,
|
|
1575
|
-
body,
|
|
1576
|
-
});
|
|
1011
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
1012
|
+
return b.build();
|
|
1577
1013
|
};
|
|
1578
1014
|
exports.se_GetSdkCommand = se_GetSdkCommand;
|
|
1579
1015
|
const se_GetSdkTypeCommand = async (input, context) => {
|
|
1580
|
-
const
|
|
1016
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1581
1017
|
const headers = {};
|
|
1582
|
-
|
|
1583
|
-
|
|
1018
|
+
b.bp("/sdktypes/{id}");
|
|
1019
|
+
b.p("id", () => input.id, "{id}", false);
|
|
1584
1020
|
let body;
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
hostname,
|
|
1588
|
-
port,
|
|
1589
|
-
method: "GET",
|
|
1590
|
-
headers,
|
|
1591
|
-
path: resolvedPath,
|
|
1592
|
-
body,
|
|
1593
|
-
});
|
|
1021
|
+
b.m("GET").h(headers).b(body);
|
|
1022
|
+
return b.build();
|
|
1594
1023
|
};
|
|
1595
1024
|
exports.se_GetSdkTypeCommand = se_GetSdkTypeCommand;
|
|
1596
1025
|
const se_GetSdkTypesCommand = async (input, context) => {
|
|
1597
|
-
const
|
|
1026
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1598
1027
|
const headers = {};
|
|
1599
|
-
|
|
1028
|
+
b.bp("/sdktypes");
|
|
1600
1029
|
const query = (0, smithy_client_1.map)({
|
|
1601
|
-
|
|
1602
|
-
|
|
1030
|
+
[_p]: [, input[_p]],
|
|
1031
|
+
[_l]: [() => input.limit !== void 0, () => input[_l].toString()],
|
|
1603
1032
|
});
|
|
1604
1033
|
let body;
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
hostname,
|
|
1608
|
-
port,
|
|
1609
|
-
method: "GET",
|
|
1610
|
-
headers,
|
|
1611
|
-
path: resolvedPath,
|
|
1612
|
-
query,
|
|
1613
|
-
body,
|
|
1614
|
-
});
|
|
1034
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
1035
|
+
return b.build();
|
|
1615
1036
|
};
|
|
1616
1037
|
exports.se_GetSdkTypesCommand = se_GetSdkTypesCommand;
|
|
1617
1038
|
const se_GetStageCommand = async (input, context) => {
|
|
1618
|
-
const
|
|
1039
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1619
1040
|
const headers = {};
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1041
|
+
b.bp("/restapis/{restApiId}/stages/{stageName}");
|
|
1042
|
+
b.p("restApiId", () => input.restApiId, "{restApiId}", false);
|
|
1043
|
+
b.p("stageName", () => input.stageName, "{stageName}", false);
|
|
1623
1044
|
let body;
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
hostname,
|
|
1627
|
-
port,
|
|
1628
|
-
method: "GET",
|
|
1629
|
-
headers,
|
|
1630
|
-
path: resolvedPath,
|
|
1631
|
-
body,
|
|
1632
|
-
});
|
|
1045
|
+
b.m("GET").h(headers).b(body);
|
|
1046
|
+
return b.build();
|
|
1633
1047
|
};
|
|
1634
1048
|
exports.se_GetStageCommand = se_GetStageCommand;
|
|
1635
1049
|
const se_GetStagesCommand = async (input, context) => {
|
|
1636
|
-
const
|
|
1050
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1637
1051
|
const headers = {};
|
|
1638
|
-
|
|
1639
|
-
|
|
1052
|
+
b.bp("/restapis/{restApiId}/stages");
|
|
1053
|
+
b.p("restApiId", () => input.restApiId, "{restApiId}", false);
|
|
1640
1054
|
const query = (0, smithy_client_1.map)({
|
|
1641
|
-
|
|
1055
|
+
[_dI]: [, input[_dI]],
|
|
1642
1056
|
});
|
|
1643
1057
|
let body;
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
hostname,
|
|
1647
|
-
port,
|
|
1648
|
-
method: "GET",
|
|
1649
|
-
headers,
|
|
1650
|
-
path: resolvedPath,
|
|
1651
|
-
query,
|
|
1652
|
-
body,
|
|
1653
|
-
});
|
|
1058
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
1059
|
+
return b.build();
|
|
1654
1060
|
};
|
|
1655
1061
|
exports.se_GetStagesCommand = se_GetStagesCommand;
|
|
1656
1062
|
const se_GetTagsCommand = async (input, context) => {
|
|
1657
|
-
const
|
|
1063
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1658
1064
|
const headers = {};
|
|
1659
|
-
|
|
1660
|
-
|
|
1065
|
+
b.bp("/tags/{resourceArn}");
|
|
1066
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
1661
1067
|
const query = (0, smithy_client_1.map)({
|
|
1662
|
-
|
|
1663
|
-
|
|
1068
|
+
[_p]: [, input[_p]],
|
|
1069
|
+
[_l]: [() => input.limit !== void 0, () => input[_l].toString()],
|
|
1664
1070
|
});
|
|
1665
1071
|
let body;
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
hostname,
|
|
1669
|
-
port,
|
|
1670
|
-
method: "GET",
|
|
1671
|
-
headers,
|
|
1672
|
-
path: resolvedPath,
|
|
1673
|
-
query,
|
|
1674
|
-
body,
|
|
1675
|
-
});
|
|
1072
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
1073
|
+
return b.build();
|
|
1676
1074
|
};
|
|
1677
1075
|
exports.se_GetTagsCommand = se_GetTagsCommand;
|
|
1678
1076
|
const se_GetUsageCommand = async (input, context) => {
|
|
1679
|
-
const
|
|
1077
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1680
1078
|
const headers = {};
|
|
1681
|
-
|
|
1682
|
-
|
|
1079
|
+
b.bp("/usageplans/{usagePlanId}/usage");
|
|
1080
|
+
b.p("usagePlanId", () => input.usagePlanId, "{usagePlanId}", false);
|
|
1683
1081
|
const query = (0, smithy_client_1.map)({
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1082
|
+
[_kI]: [, input[_kI]],
|
|
1083
|
+
[_sD]: [, (0, smithy_client_1.expectNonNull)(input[_sD], `startDate`)],
|
|
1084
|
+
[_eD]: [, (0, smithy_client_1.expectNonNull)(input[_eD], `endDate`)],
|
|
1085
|
+
[_p]: [, input[_p]],
|
|
1086
|
+
[_l]: [() => input.limit !== void 0, () => input[_l].toString()],
|
|
1689
1087
|
});
|
|
1690
1088
|
let body;
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
hostname,
|
|
1694
|
-
port,
|
|
1695
|
-
method: "GET",
|
|
1696
|
-
headers,
|
|
1697
|
-
path: resolvedPath,
|
|
1698
|
-
query,
|
|
1699
|
-
body,
|
|
1700
|
-
});
|
|
1089
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
1090
|
+
return b.build();
|
|
1701
1091
|
};
|
|
1702
1092
|
exports.se_GetUsageCommand = se_GetUsageCommand;
|
|
1703
1093
|
const se_GetUsagePlanCommand = async (input, context) => {
|
|
1704
|
-
const
|
|
1094
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1705
1095
|
const headers = {};
|
|
1706
|
-
|
|
1707
|
-
|
|
1096
|
+
b.bp("/usageplans/{usagePlanId}");
|
|
1097
|
+
b.p("usagePlanId", () => input.usagePlanId, "{usagePlanId}", false);
|
|
1708
1098
|
let body;
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
hostname,
|
|
1712
|
-
port,
|
|
1713
|
-
method: "GET",
|
|
1714
|
-
headers,
|
|
1715
|
-
path: resolvedPath,
|
|
1716
|
-
body,
|
|
1717
|
-
});
|
|
1099
|
+
b.m("GET").h(headers).b(body);
|
|
1100
|
+
return b.build();
|
|
1718
1101
|
};
|
|
1719
1102
|
exports.se_GetUsagePlanCommand = se_GetUsagePlanCommand;
|
|
1720
1103
|
const se_GetUsagePlanKeyCommand = async (input, context) => {
|
|
1721
|
-
const
|
|
1104
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1722
1105
|
const headers = {};
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1106
|
+
b.bp("/usageplans/{usagePlanId}/keys/{keyId}");
|
|
1107
|
+
b.p("usagePlanId", () => input.usagePlanId, "{usagePlanId}", false);
|
|
1108
|
+
b.p("keyId", () => input.keyId, "{keyId}", false);
|
|
1726
1109
|
let body;
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
hostname,
|
|
1730
|
-
port,
|
|
1731
|
-
method: "GET",
|
|
1732
|
-
headers,
|
|
1733
|
-
path: resolvedPath,
|
|
1734
|
-
body,
|
|
1735
|
-
});
|
|
1110
|
+
b.m("GET").h(headers).b(body);
|
|
1111
|
+
return b.build();
|
|
1736
1112
|
};
|
|
1737
1113
|
exports.se_GetUsagePlanKeyCommand = se_GetUsagePlanKeyCommand;
|
|
1738
1114
|
const se_GetUsagePlanKeysCommand = async (input, context) => {
|
|
1739
|
-
const
|
|
1115
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1740
1116
|
const headers = {};
|
|
1741
|
-
|
|
1742
|
-
|
|
1117
|
+
b.bp("/usageplans/{usagePlanId}/keys");
|
|
1118
|
+
b.p("usagePlanId", () => input.usagePlanId, "{usagePlanId}", false);
|
|
1743
1119
|
const query = (0, smithy_client_1.map)({
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1120
|
+
[_p]: [, input[_p]],
|
|
1121
|
+
[_l]: [() => input.limit !== void 0, () => input[_l].toString()],
|
|
1122
|
+
[_n]: [, input[_nQ]],
|
|
1747
1123
|
});
|
|
1748
1124
|
let body;
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
hostname,
|
|
1752
|
-
port,
|
|
1753
|
-
method: "GET",
|
|
1754
|
-
headers,
|
|
1755
|
-
path: resolvedPath,
|
|
1756
|
-
query,
|
|
1757
|
-
body,
|
|
1758
|
-
});
|
|
1125
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
1126
|
+
return b.build();
|
|
1759
1127
|
};
|
|
1760
1128
|
exports.se_GetUsagePlanKeysCommand = se_GetUsagePlanKeysCommand;
|
|
1761
1129
|
const se_GetUsagePlansCommand = async (input, context) => {
|
|
1762
|
-
const
|
|
1130
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1763
1131
|
const headers = {};
|
|
1764
|
-
|
|
1132
|
+
b.bp("/usageplans");
|
|
1765
1133
|
const query = (0, smithy_client_1.map)({
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1134
|
+
[_p]: [, input[_p]],
|
|
1135
|
+
[_kI]: [, input[_kI]],
|
|
1136
|
+
[_l]: [() => input.limit !== void 0, () => input[_l].toString()],
|
|
1769
1137
|
});
|
|
1770
1138
|
let body;
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
hostname,
|
|
1774
|
-
port,
|
|
1775
|
-
method: "GET",
|
|
1776
|
-
headers,
|
|
1777
|
-
path: resolvedPath,
|
|
1778
|
-
query,
|
|
1779
|
-
body,
|
|
1780
|
-
});
|
|
1139
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
1140
|
+
return b.build();
|
|
1781
1141
|
};
|
|
1782
1142
|
exports.se_GetUsagePlansCommand = se_GetUsagePlansCommand;
|
|
1783
1143
|
const se_GetVpcLinkCommand = async (input, context) => {
|
|
1784
|
-
const
|
|
1144
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1785
1145
|
const headers = {};
|
|
1786
|
-
|
|
1787
|
-
|
|
1146
|
+
b.bp("/vpclinks/{vpcLinkId}");
|
|
1147
|
+
b.p("vpcLinkId", () => input.vpcLinkId, "{vpcLinkId}", false);
|
|
1788
1148
|
let body;
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
hostname,
|
|
1792
|
-
port,
|
|
1793
|
-
method: "GET",
|
|
1794
|
-
headers,
|
|
1795
|
-
path: resolvedPath,
|
|
1796
|
-
body,
|
|
1797
|
-
});
|
|
1149
|
+
b.m("GET").h(headers).b(body);
|
|
1150
|
+
return b.build();
|
|
1798
1151
|
};
|
|
1799
1152
|
exports.se_GetVpcLinkCommand = se_GetVpcLinkCommand;
|
|
1800
1153
|
const se_GetVpcLinksCommand = async (input, context) => {
|
|
1801
|
-
const
|
|
1154
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1802
1155
|
const headers = {};
|
|
1803
|
-
|
|
1156
|
+
b.bp("/vpclinks");
|
|
1804
1157
|
const query = (0, smithy_client_1.map)({
|
|
1805
|
-
|
|
1806
|
-
|
|
1158
|
+
[_p]: [, input[_p]],
|
|
1159
|
+
[_l]: [() => input.limit !== void 0, () => input[_l].toString()],
|
|
1807
1160
|
});
|
|
1808
1161
|
let body;
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
hostname,
|
|
1812
|
-
port,
|
|
1813
|
-
method: "GET",
|
|
1814
|
-
headers,
|
|
1815
|
-
path: resolvedPath,
|
|
1816
|
-
query,
|
|
1817
|
-
body,
|
|
1818
|
-
});
|
|
1162
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
1163
|
+
return b.build();
|
|
1819
1164
|
};
|
|
1820
1165
|
exports.se_GetVpcLinksCommand = se_GetVpcLinksCommand;
|
|
1821
1166
|
const se_ImportApiKeysCommand = async (input, context) => {
|
|
1822
|
-
const
|
|
1167
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1823
1168
|
const headers = {
|
|
1824
1169
|
"content-type": "application/octet-stream",
|
|
1825
1170
|
};
|
|
1826
|
-
|
|
1171
|
+
b.bp("/apikeys");
|
|
1827
1172
|
const query = (0, smithy_client_1.map)({
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1173
|
+
[_m]: [, "import"],
|
|
1174
|
+
[_fo]: [, (0, smithy_client_1.expectNonNull)(input[_fo], `format`)],
|
|
1175
|
+
[_fa]: [() => input.failOnWarnings !== void 0, () => input[_fOW].toString()],
|
|
1831
1176
|
});
|
|
1832
1177
|
let body;
|
|
1833
1178
|
if (input.body !== undefined) {
|
|
1834
1179
|
body = input.body;
|
|
1835
1180
|
}
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
hostname,
|
|
1839
|
-
port,
|
|
1840
|
-
method: "POST",
|
|
1841
|
-
headers,
|
|
1842
|
-
path: resolvedPath,
|
|
1843
|
-
query,
|
|
1844
|
-
body,
|
|
1845
|
-
});
|
|
1181
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
1182
|
+
return b.build();
|
|
1846
1183
|
};
|
|
1847
1184
|
exports.se_ImportApiKeysCommand = se_ImportApiKeysCommand;
|
|
1848
1185
|
const se_ImportDocumentationPartsCommand = async (input, context) => {
|
|
1849
|
-
const
|
|
1186
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1850
1187
|
const headers = {
|
|
1851
1188
|
"content-type": "application/octet-stream",
|
|
1852
1189
|
};
|
|
1853
|
-
|
|
1854
|
-
|
|
1190
|
+
b.bp("/restapis/{restApiId}/documentation/parts");
|
|
1191
|
+
b.p("restApiId", () => input.restApiId, "{restApiId}", false);
|
|
1855
1192
|
const query = (0, smithy_client_1.map)({
|
|
1856
|
-
|
|
1857
|
-
|
|
1193
|
+
[_m]: [, input[_m]],
|
|
1194
|
+
[_fa]: [() => input.failOnWarnings !== void 0, () => input[_fOW].toString()],
|
|
1858
1195
|
});
|
|
1859
1196
|
let body;
|
|
1860
1197
|
if (input.body !== undefined) {
|
|
1861
1198
|
body = input.body;
|
|
1862
1199
|
}
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
hostname,
|
|
1866
|
-
port,
|
|
1867
|
-
method: "PUT",
|
|
1868
|
-
headers,
|
|
1869
|
-
path: resolvedPath,
|
|
1870
|
-
query,
|
|
1871
|
-
body,
|
|
1872
|
-
});
|
|
1200
|
+
b.m("PUT").h(headers).q(query).b(body);
|
|
1201
|
+
return b.build();
|
|
1873
1202
|
};
|
|
1874
1203
|
exports.se_ImportDocumentationPartsCommand = se_ImportDocumentationPartsCommand;
|
|
1875
1204
|
const se_ImportRestApiCommand = async (input, context) => {
|
|
1876
|
-
const
|
|
1205
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1877
1206
|
const headers = {
|
|
1878
1207
|
"content-type": "application/octet-stream",
|
|
1879
1208
|
};
|
|
1880
|
-
|
|
1209
|
+
b.bp("/restapis");
|
|
1881
1210
|
const query = (0, smithy_client_1.map)({
|
|
1882
|
-
|
|
1211
|
+
[_m]: [, "import"],
|
|
1883
1212
|
...(0, smithy_client_1.convertMap)(input.parameters),
|
|
1884
|
-
|
|
1213
|
+
[_fa]: [() => input.failOnWarnings !== void 0, () => input[_fOW].toString()],
|
|
1885
1214
|
});
|
|
1886
1215
|
let body;
|
|
1887
1216
|
if (input.body !== undefined) {
|
|
1888
1217
|
body = input.body;
|
|
1889
1218
|
}
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
hostname,
|
|
1893
|
-
port,
|
|
1894
|
-
method: "POST",
|
|
1895
|
-
headers,
|
|
1896
|
-
path: resolvedPath,
|
|
1897
|
-
query,
|
|
1898
|
-
body,
|
|
1899
|
-
});
|
|
1219
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
1220
|
+
return b.build();
|
|
1900
1221
|
};
|
|
1901
1222
|
exports.se_ImportRestApiCommand = se_ImportRestApiCommand;
|
|
1902
1223
|
const se_PutGatewayResponseCommand = async (input, context) => {
|
|
1903
|
-
const
|
|
1224
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1904
1225
|
const headers = {
|
|
1905
1226
|
"content-type": "application/json",
|
|
1906
1227
|
};
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "responseType", () => input.responseType, "{responseType}", false);
|
|
1228
|
+
b.bp("/restapis/{restApiId}/gatewayresponses/{responseType}");
|
|
1229
|
+
b.p("restApiId", () => input.restApiId, "{restApiId}", false);
|
|
1230
|
+
b.p("responseType", () => input.responseType, "{responseType}", false);
|
|
1911
1231
|
let body;
|
|
1912
1232
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1913
1233
|
responseParameters: (_) => (0, smithy_client_1._json)(_),
|
|
1914
1234
|
responseTemplates: (_) => (0, smithy_client_1._json)(_),
|
|
1915
1235
|
statusCode: [],
|
|
1916
1236
|
}));
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
hostname,
|
|
1920
|
-
port,
|
|
1921
|
-
method: "PUT",
|
|
1922
|
-
headers,
|
|
1923
|
-
path: resolvedPath,
|
|
1924
|
-
body,
|
|
1925
|
-
});
|
|
1237
|
+
b.m("PUT").h(headers).b(body);
|
|
1238
|
+
return b.build();
|
|
1926
1239
|
};
|
|
1927
1240
|
exports.se_PutGatewayResponseCommand = se_PutGatewayResponseCommand;
|
|
1928
1241
|
const se_PutIntegrationCommand = async (input, context) => {
|
|
1929
|
-
const
|
|
1242
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1930
1243
|
const headers = {
|
|
1931
1244
|
"content-type": "application/json",
|
|
1932
1245
|
};
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "httpMethod", () => input.httpMethod, "{httpMethod}", false);
|
|
1246
|
+
b.bp("/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}/integration");
|
|
1247
|
+
b.p("restApiId", () => input.restApiId, "{restApiId}", false);
|
|
1248
|
+
b.p("resourceId", () => input.resourceId, "{resourceId}", false);
|
|
1249
|
+
b.p("httpMethod", () => input.httpMethod, "{httpMethod}", false);
|
|
1938
1250
|
let body;
|
|
1939
1251
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1940
1252
|
cacheKeyParameters: (_) => (0, smithy_client_1._json)(_),
|
|
@@ -1952,28 +1264,20 @@ const se_PutIntegrationCommand = async (input, context) => {
|
|
|
1952
1264
|
type: [],
|
|
1953
1265
|
uri: [],
|
|
1954
1266
|
}));
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
hostname,
|
|
1958
|
-
port,
|
|
1959
|
-
method: "PUT",
|
|
1960
|
-
headers,
|
|
1961
|
-
path: resolvedPath,
|
|
1962
|
-
body,
|
|
1963
|
-
});
|
|
1267
|
+
b.m("PUT").h(headers).b(body);
|
|
1268
|
+
return b.build();
|
|
1964
1269
|
};
|
|
1965
1270
|
exports.se_PutIntegrationCommand = se_PutIntegrationCommand;
|
|
1966
1271
|
const se_PutIntegrationResponseCommand = async (input, context) => {
|
|
1967
|
-
const
|
|
1272
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1968
1273
|
const headers = {
|
|
1969
1274
|
"content-type": "application/json",
|
|
1970
1275
|
};
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "statusCode", () => input.statusCode, "{statusCode}", false);
|
|
1276
|
+
b.bp("/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}/integration/responses/{statusCode}");
|
|
1277
|
+
b.p("restApiId", () => input.restApiId, "{restApiId}", false);
|
|
1278
|
+
b.p("resourceId", () => input.resourceId, "{resourceId}", false);
|
|
1279
|
+
b.p("httpMethod", () => input.httpMethod, "{httpMethod}", false);
|
|
1280
|
+
b.p("statusCode", () => input.statusCode, "{statusCode}", false);
|
|
1977
1281
|
let body;
|
|
1978
1282
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1979
1283
|
contentHandling: [],
|
|
@@ -1981,27 +1285,19 @@ const se_PutIntegrationResponseCommand = async (input, context) => {
|
|
|
1981
1285
|
responseTemplates: (_) => (0, smithy_client_1._json)(_),
|
|
1982
1286
|
selectionPattern: [],
|
|
1983
1287
|
}));
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
hostname,
|
|
1987
|
-
port,
|
|
1988
|
-
method: "PUT",
|
|
1989
|
-
headers,
|
|
1990
|
-
path: resolvedPath,
|
|
1991
|
-
body,
|
|
1992
|
-
});
|
|
1288
|
+
b.m("PUT").h(headers).b(body);
|
|
1289
|
+
return b.build();
|
|
1993
1290
|
};
|
|
1994
1291
|
exports.se_PutIntegrationResponseCommand = se_PutIntegrationResponseCommand;
|
|
1995
1292
|
const se_PutMethodCommand = async (input, context) => {
|
|
1996
|
-
const
|
|
1293
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1997
1294
|
const headers = {
|
|
1998
1295
|
"content-type": "application/json",
|
|
1999
1296
|
};
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "httpMethod", () => input.httpMethod, "{httpMethod}", false);
|
|
1297
|
+
b.bp("/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}");
|
|
1298
|
+
b.p("restApiId", () => input.restApiId, "{restApiId}", false);
|
|
1299
|
+
b.p("resourceId", () => input.resourceId, "{resourceId}", false);
|
|
1300
|
+
b.p("httpMethod", () => input.httpMethod, "{httpMethod}", false);
|
|
2005
1301
|
let body;
|
|
2006
1302
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
2007
1303
|
apiKeyRequired: [],
|
|
@@ -2013,103 +1309,72 @@ const se_PutMethodCommand = async (input, context) => {
|
|
|
2013
1309
|
requestParameters: (_) => (0, smithy_client_1._json)(_),
|
|
2014
1310
|
requestValidatorId: [],
|
|
2015
1311
|
}));
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
hostname,
|
|
2019
|
-
port,
|
|
2020
|
-
method: "PUT",
|
|
2021
|
-
headers,
|
|
2022
|
-
path: resolvedPath,
|
|
2023
|
-
body,
|
|
2024
|
-
});
|
|
1312
|
+
b.m("PUT").h(headers).b(body);
|
|
1313
|
+
return b.build();
|
|
2025
1314
|
};
|
|
2026
1315
|
exports.se_PutMethodCommand = se_PutMethodCommand;
|
|
2027
1316
|
const se_PutMethodResponseCommand = async (input, context) => {
|
|
2028
|
-
const
|
|
1317
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
2029
1318
|
const headers = {
|
|
2030
1319
|
"content-type": "application/json",
|
|
2031
1320
|
};
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "statusCode", () => input.statusCode, "{statusCode}", false);
|
|
1321
|
+
b.bp("/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}/responses/{statusCode}");
|
|
1322
|
+
b.p("restApiId", () => input.restApiId, "{restApiId}", false);
|
|
1323
|
+
b.p("resourceId", () => input.resourceId, "{resourceId}", false);
|
|
1324
|
+
b.p("httpMethod", () => input.httpMethod, "{httpMethod}", false);
|
|
1325
|
+
b.p("statusCode", () => input.statusCode, "{statusCode}", false);
|
|
2038
1326
|
let body;
|
|
2039
1327
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
2040
1328
|
responseModels: (_) => (0, smithy_client_1._json)(_),
|
|
2041
1329
|
responseParameters: (_) => (0, smithy_client_1._json)(_),
|
|
2042
1330
|
}));
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
hostname,
|
|
2046
|
-
port,
|
|
2047
|
-
method: "PUT",
|
|
2048
|
-
headers,
|
|
2049
|
-
path: resolvedPath,
|
|
2050
|
-
body,
|
|
2051
|
-
});
|
|
1331
|
+
b.m("PUT").h(headers).b(body);
|
|
1332
|
+
return b.build();
|
|
2052
1333
|
};
|
|
2053
1334
|
exports.se_PutMethodResponseCommand = se_PutMethodResponseCommand;
|
|
2054
1335
|
const se_PutRestApiCommand = async (input, context) => {
|
|
2055
|
-
const
|
|
1336
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
2056
1337
|
const headers = {
|
|
2057
1338
|
"content-type": "application/octet-stream",
|
|
2058
1339
|
};
|
|
2059
|
-
|
|
2060
|
-
|
|
1340
|
+
b.bp("/restapis/{restApiId}");
|
|
1341
|
+
b.p("restApiId", () => input.restApiId, "{restApiId}", false);
|
|
2061
1342
|
const query = (0, smithy_client_1.map)({
|
|
2062
1343
|
...(0, smithy_client_1.convertMap)(input.parameters),
|
|
2063
|
-
|
|
2064
|
-
|
|
1344
|
+
[_m]: [, input[_m]],
|
|
1345
|
+
[_fa]: [() => input.failOnWarnings !== void 0, () => input[_fOW].toString()],
|
|
2065
1346
|
});
|
|
2066
1347
|
let body;
|
|
2067
1348
|
if (input.body !== undefined) {
|
|
2068
1349
|
body = input.body;
|
|
2069
1350
|
}
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
hostname,
|
|
2073
|
-
port,
|
|
2074
|
-
method: "PUT",
|
|
2075
|
-
headers,
|
|
2076
|
-
path: resolvedPath,
|
|
2077
|
-
query,
|
|
2078
|
-
body,
|
|
2079
|
-
});
|
|
1351
|
+
b.m("PUT").h(headers).q(query).b(body);
|
|
1352
|
+
return b.build();
|
|
2080
1353
|
};
|
|
2081
1354
|
exports.se_PutRestApiCommand = se_PutRestApiCommand;
|
|
2082
1355
|
const se_TagResourceCommand = async (input, context) => {
|
|
2083
|
-
const
|
|
1356
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
2084
1357
|
const headers = {
|
|
2085
1358
|
"content-type": "application/json",
|
|
2086
1359
|
};
|
|
2087
|
-
|
|
2088
|
-
|
|
1360
|
+
b.bp("/tags/{resourceArn}");
|
|
1361
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
2089
1362
|
let body;
|
|
2090
1363
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
2091
1364
|
tags: (_) => (0, smithy_client_1._json)(_),
|
|
2092
1365
|
}));
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
hostname,
|
|
2096
|
-
port,
|
|
2097
|
-
method: "PUT",
|
|
2098
|
-
headers,
|
|
2099
|
-
path: resolvedPath,
|
|
2100
|
-
body,
|
|
2101
|
-
});
|
|
1366
|
+
b.m("PUT").h(headers).b(body);
|
|
1367
|
+
return b.build();
|
|
2102
1368
|
};
|
|
2103
1369
|
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
2104
1370
|
const se_TestInvokeAuthorizerCommand = async (input, context) => {
|
|
2105
|
-
const
|
|
1371
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
2106
1372
|
const headers = {
|
|
2107
1373
|
"content-type": "application/json",
|
|
2108
1374
|
};
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "authorizerId", () => input.authorizerId, "{authorizerId}", false);
|
|
1375
|
+
b.bp("/restapis/{restApiId}/authorizers/{authorizerId}");
|
|
1376
|
+
b.p("restApiId", () => input.restApiId, "{restApiId}", false);
|
|
1377
|
+
b.p("authorizerId", () => input.authorizerId, "{authorizerId}", false);
|
|
2113
1378
|
let body;
|
|
2114
1379
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
2115
1380
|
additionalContext: (_) => (0, smithy_client_1._json)(_),
|
|
@@ -2119,27 +1384,19 @@ const se_TestInvokeAuthorizerCommand = async (input, context) => {
|
|
|
2119
1384
|
pathWithQueryString: [],
|
|
2120
1385
|
stageVariables: (_) => (0, smithy_client_1._json)(_),
|
|
2121
1386
|
}));
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
hostname,
|
|
2125
|
-
port,
|
|
2126
|
-
method: "POST",
|
|
2127
|
-
headers,
|
|
2128
|
-
path: resolvedPath,
|
|
2129
|
-
body,
|
|
2130
|
-
});
|
|
1387
|
+
b.m("POST").h(headers).b(body);
|
|
1388
|
+
return b.build();
|
|
2131
1389
|
};
|
|
2132
1390
|
exports.se_TestInvokeAuthorizerCommand = se_TestInvokeAuthorizerCommand;
|
|
2133
1391
|
const se_TestInvokeMethodCommand = async (input, context) => {
|
|
2134
|
-
const
|
|
1392
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
2135
1393
|
const headers = {
|
|
2136
1394
|
"content-type": "application/json",
|
|
2137
1395
|
};
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "httpMethod", () => input.httpMethod, "{httpMethod}", false);
|
|
1396
|
+
b.bp("/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}");
|
|
1397
|
+
b.p("restApiId", () => input.restApiId, "{restApiId}", false);
|
|
1398
|
+
b.p("resourceId", () => input.resourceId, "{resourceId}", false);
|
|
1399
|
+
b.p("httpMethod", () => input.httpMethod, "{httpMethod}", false);
|
|
2143
1400
|
let body;
|
|
2144
1401
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
2145
1402
|
body: [],
|
|
@@ -2149,556 +1406,374 @@ const se_TestInvokeMethodCommand = async (input, context) => {
|
|
|
2149
1406
|
pathWithQueryString: [],
|
|
2150
1407
|
stageVariables: (_) => (0, smithy_client_1._json)(_),
|
|
2151
1408
|
}));
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
hostname,
|
|
2155
|
-
port,
|
|
2156
|
-
method: "POST",
|
|
2157
|
-
headers,
|
|
2158
|
-
path: resolvedPath,
|
|
2159
|
-
body,
|
|
2160
|
-
});
|
|
1409
|
+
b.m("POST").h(headers).b(body);
|
|
1410
|
+
return b.build();
|
|
2161
1411
|
};
|
|
2162
1412
|
exports.se_TestInvokeMethodCommand = se_TestInvokeMethodCommand;
|
|
2163
1413
|
const se_UntagResourceCommand = async (input, context) => {
|
|
2164
|
-
const
|
|
1414
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
2165
1415
|
const headers = {};
|
|
2166
|
-
|
|
2167
|
-
|
|
1416
|
+
b.bp("/tags/{resourceArn}");
|
|
1417
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
2168
1418
|
const query = (0, smithy_client_1.map)({
|
|
2169
|
-
|
|
1419
|
+
[_tK]: [
|
|
2170
1420
|
(0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
|
|
2171
|
-
() => (input
|
|
1421
|
+
() => (input[_tK] || []).map((_entry) => _entry),
|
|
2172
1422
|
],
|
|
2173
1423
|
});
|
|
2174
1424
|
let body;
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
hostname,
|
|
2178
|
-
port,
|
|
2179
|
-
method: "DELETE",
|
|
2180
|
-
headers,
|
|
2181
|
-
path: resolvedPath,
|
|
2182
|
-
query,
|
|
2183
|
-
body,
|
|
2184
|
-
});
|
|
1425
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
1426
|
+
return b.build();
|
|
2185
1427
|
};
|
|
2186
1428
|
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
2187
1429
|
const se_UpdateAccountCommand = async (input, context) => {
|
|
2188
|
-
const
|
|
1430
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
2189
1431
|
const headers = {
|
|
2190
1432
|
"content-type": "application/json",
|
|
2191
1433
|
};
|
|
2192
|
-
|
|
1434
|
+
b.bp("/account");
|
|
2193
1435
|
let body;
|
|
2194
1436
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
2195
1437
|
patchOperations: (_) => (0, smithy_client_1._json)(_),
|
|
2196
1438
|
}));
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
hostname,
|
|
2200
|
-
port,
|
|
2201
|
-
method: "PATCH",
|
|
2202
|
-
headers,
|
|
2203
|
-
path: resolvedPath,
|
|
2204
|
-
body,
|
|
2205
|
-
});
|
|
1439
|
+
b.m("PATCH").h(headers).b(body);
|
|
1440
|
+
return b.build();
|
|
2206
1441
|
};
|
|
2207
1442
|
exports.se_UpdateAccountCommand = se_UpdateAccountCommand;
|
|
2208
1443
|
const se_UpdateApiKeyCommand = async (input, context) => {
|
|
2209
|
-
const
|
|
1444
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
2210
1445
|
const headers = {
|
|
2211
1446
|
"content-type": "application/json",
|
|
2212
1447
|
};
|
|
2213
|
-
|
|
2214
|
-
|
|
1448
|
+
b.bp("/apikeys/{apiKey}");
|
|
1449
|
+
b.p("apiKey", () => input.apiKey, "{apiKey}", false);
|
|
2215
1450
|
let body;
|
|
2216
1451
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
2217
1452
|
patchOperations: (_) => (0, smithy_client_1._json)(_),
|
|
2218
1453
|
}));
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
hostname,
|
|
2222
|
-
port,
|
|
2223
|
-
method: "PATCH",
|
|
2224
|
-
headers,
|
|
2225
|
-
path: resolvedPath,
|
|
2226
|
-
body,
|
|
2227
|
-
});
|
|
1454
|
+
b.m("PATCH").h(headers).b(body);
|
|
1455
|
+
return b.build();
|
|
2228
1456
|
};
|
|
2229
1457
|
exports.se_UpdateApiKeyCommand = se_UpdateApiKeyCommand;
|
|
2230
1458
|
const se_UpdateAuthorizerCommand = async (input, context) => {
|
|
2231
|
-
const
|
|
1459
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
2232
1460
|
const headers = {
|
|
2233
1461
|
"content-type": "application/json",
|
|
2234
1462
|
};
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "authorizerId", () => input.authorizerId, "{authorizerId}", false);
|
|
1463
|
+
b.bp("/restapis/{restApiId}/authorizers/{authorizerId}");
|
|
1464
|
+
b.p("restApiId", () => input.restApiId, "{restApiId}", false);
|
|
1465
|
+
b.p("authorizerId", () => input.authorizerId, "{authorizerId}", false);
|
|
2239
1466
|
let body;
|
|
2240
1467
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
2241
1468
|
patchOperations: (_) => (0, smithy_client_1._json)(_),
|
|
2242
1469
|
}));
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
hostname,
|
|
2246
|
-
port,
|
|
2247
|
-
method: "PATCH",
|
|
2248
|
-
headers,
|
|
2249
|
-
path: resolvedPath,
|
|
2250
|
-
body,
|
|
2251
|
-
});
|
|
1470
|
+
b.m("PATCH").h(headers).b(body);
|
|
1471
|
+
return b.build();
|
|
2252
1472
|
};
|
|
2253
1473
|
exports.se_UpdateAuthorizerCommand = se_UpdateAuthorizerCommand;
|
|
2254
1474
|
const se_UpdateBasePathMappingCommand = async (input, context) => {
|
|
2255
|
-
const
|
|
1475
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
2256
1476
|
const headers = {
|
|
2257
1477
|
"content-type": "application/json",
|
|
2258
1478
|
};
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "basePath", () => input.basePath, "{basePath}", false);
|
|
1479
|
+
b.bp("/domainnames/{domainName}/basepathmappings/{basePath}");
|
|
1480
|
+
b.p("domainName", () => input.domainName, "{domainName}", false);
|
|
1481
|
+
b.p("basePath", () => input.basePath, "{basePath}", false);
|
|
2263
1482
|
let body;
|
|
2264
1483
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
2265
1484
|
patchOperations: (_) => (0, smithy_client_1._json)(_),
|
|
2266
1485
|
}));
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
hostname,
|
|
2270
|
-
port,
|
|
2271
|
-
method: "PATCH",
|
|
2272
|
-
headers,
|
|
2273
|
-
path: resolvedPath,
|
|
2274
|
-
body,
|
|
2275
|
-
});
|
|
1486
|
+
b.m("PATCH").h(headers).b(body);
|
|
1487
|
+
return b.build();
|
|
2276
1488
|
};
|
|
2277
1489
|
exports.se_UpdateBasePathMappingCommand = se_UpdateBasePathMappingCommand;
|
|
2278
1490
|
const se_UpdateClientCertificateCommand = async (input, context) => {
|
|
2279
|
-
const
|
|
1491
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
2280
1492
|
const headers = {
|
|
2281
1493
|
"content-type": "application/json",
|
|
2282
1494
|
};
|
|
2283
|
-
|
|
2284
|
-
|
|
1495
|
+
b.bp("/clientcertificates/{clientCertificateId}");
|
|
1496
|
+
b.p("clientCertificateId", () => input.clientCertificateId, "{clientCertificateId}", false);
|
|
2285
1497
|
let body;
|
|
2286
1498
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
2287
1499
|
patchOperations: (_) => (0, smithy_client_1._json)(_),
|
|
2288
1500
|
}));
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
hostname,
|
|
2292
|
-
port,
|
|
2293
|
-
method: "PATCH",
|
|
2294
|
-
headers,
|
|
2295
|
-
path: resolvedPath,
|
|
2296
|
-
body,
|
|
2297
|
-
});
|
|
1501
|
+
b.m("PATCH").h(headers).b(body);
|
|
1502
|
+
return b.build();
|
|
2298
1503
|
};
|
|
2299
1504
|
exports.se_UpdateClientCertificateCommand = se_UpdateClientCertificateCommand;
|
|
2300
1505
|
const se_UpdateDeploymentCommand = async (input, context) => {
|
|
2301
|
-
const
|
|
1506
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
2302
1507
|
const headers = {
|
|
2303
1508
|
"content-type": "application/json",
|
|
2304
1509
|
};
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "deploymentId", () => input.deploymentId, "{deploymentId}", false);
|
|
1510
|
+
b.bp("/restapis/{restApiId}/deployments/{deploymentId}");
|
|
1511
|
+
b.p("restApiId", () => input.restApiId, "{restApiId}", false);
|
|
1512
|
+
b.p("deploymentId", () => input.deploymentId, "{deploymentId}", false);
|
|
2309
1513
|
let body;
|
|
2310
1514
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
2311
1515
|
patchOperations: (_) => (0, smithy_client_1._json)(_),
|
|
2312
1516
|
}));
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
hostname,
|
|
2316
|
-
port,
|
|
2317
|
-
method: "PATCH",
|
|
2318
|
-
headers,
|
|
2319
|
-
path: resolvedPath,
|
|
2320
|
-
body,
|
|
2321
|
-
});
|
|
1517
|
+
b.m("PATCH").h(headers).b(body);
|
|
1518
|
+
return b.build();
|
|
2322
1519
|
};
|
|
2323
1520
|
exports.se_UpdateDeploymentCommand = se_UpdateDeploymentCommand;
|
|
2324
1521
|
const se_UpdateDocumentationPartCommand = async (input, context) => {
|
|
2325
|
-
const
|
|
1522
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
2326
1523
|
const headers = {
|
|
2327
1524
|
"content-type": "application/json",
|
|
2328
1525
|
};
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "documentationPartId", () => input.documentationPartId, "{documentationPartId}", false);
|
|
1526
|
+
b.bp("/restapis/{restApiId}/documentation/parts/{documentationPartId}");
|
|
1527
|
+
b.p("restApiId", () => input.restApiId, "{restApiId}", false);
|
|
1528
|
+
b.p("documentationPartId", () => input.documentationPartId, "{documentationPartId}", false);
|
|
2333
1529
|
let body;
|
|
2334
1530
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
2335
1531
|
patchOperations: (_) => (0, smithy_client_1._json)(_),
|
|
2336
1532
|
}));
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
hostname,
|
|
2340
|
-
port,
|
|
2341
|
-
method: "PATCH",
|
|
2342
|
-
headers,
|
|
2343
|
-
path: resolvedPath,
|
|
2344
|
-
body,
|
|
2345
|
-
});
|
|
1533
|
+
b.m("PATCH").h(headers).b(body);
|
|
1534
|
+
return b.build();
|
|
2346
1535
|
};
|
|
2347
1536
|
exports.se_UpdateDocumentationPartCommand = se_UpdateDocumentationPartCommand;
|
|
2348
1537
|
const se_UpdateDocumentationVersionCommand = async (input, context) => {
|
|
2349
|
-
const
|
|
1538
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
2350
1539
|
const headers = {
|
|
2351
1540
|
"content-type": "application/json",
|
|
2352
1541
|
};
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "documentationVersion", () => input.documentationVersion, "{documentationVersion}", false);
|
|
1542
|
+
b.bp("/restapis/{restApiId}/documentation/versions/{documentationVersion}");
|
|
1543
|
+
b.p("restApiId", () => input.restApiId, "{restApiId}", false);
|
|
1544
|
+
b.p("documentationVersion", () => input.documentationVersion, "{documentationVersion}", false);
|
|
2357
1545
|
let body;
|
|
2358
1546
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
2359
1547
|
patchOperations: (_) => (0, smithy_client_1._json)(_),
|
|
2360
1548
|
}));
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
hostname,
|
|
2364
|
-
port,
|
|
2365
|
-
method: "PATCH",
|
|
2366
|
-
headers,
|
|
2367
|
-
path: resolvedPath,
|
|
2368
|
-
body,
|
|
2369
|
-
});
|
|
1549
|
+
b.m("PATCH").h(headers).b(body);
|
|
1550
|
+
return b.build();
|
|
2370
1551
|
};
|
|
2371
1552
|
exports.se_UpdateDocumentationVersionCommand = se_UpdateDocumentationVersionCommand;
|
|
2372
1553
|
const se_UpdateDomainNameCommand = async (input, context) => {
|
|
2373
|
-
const
|
|
1554
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
2374
1555
|
const headers = {
|
|
2375
1556
|
"content-type": "application/json",
|
|
2376
1557
|
};
|
|
2377
|
-
|
|
2378
|
-
|
|
1558
|
+
b.bp("/domainnames/{domainName}");
|
|
1559
|
+
b.p("domainName", () => input.domainName, "{domainName}", false);
|
|
2379
1560
|
let body;
|
|
2380
1561
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
2381
1562
|
patchOperations: (_) => (0, smithy_client_1._json)(_),
|
|
2382
1563
|
}));
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
hostname,
|
|
2386
|
-
port,
|
|
2387
|
-
method: "PATCH",
|
|
2388
|
-
headers,
|
|
2389
|
-
path: resolvedPath,
|
|
2390
|
-
body,
|
|
2391
|
-
});
|
|
1564
|
+
b.m("PATCH").h(headers).b(body);
|
|
1565
|
+
return b.build();
|
|
2392
1566
|
};
|
|
2393
1567
|
exports.se_UpdateDomainNameCommand = se_UpdateDomainNameCommand;
|
|
2394
1568
|
const se_UpdateGatewayResponseCommand = async (input, context) => {
|
|
2395
|
-
const
|
|
1569
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
2396
1570
|
const headers = {
|
|
2397
1571
|
"content-type": "application/json",
|
|
2398
1572
|
};
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "responseType", () => input.responseType, "{responseType}", false);
|
|
1573
|
+
b.bp("/restapis/{restApiId}/gatewayresponses/{responseType}");
|
|
1574
|
+
b.p("restApiId", () => input.restApiId, "{restApiId}", false);
|
|
1575
|
+
b.p("responseType", () => input.responseType, "{responseType}", false);
|
|
2403
1576
|
let body;
|
|
2404
1577
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
2405
1578
|
patchOperations: (_) => (0, smithy_client_1._json)(_),
|
|
2406
1579
|
}));
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
hostname,
|
|
2410
|
-
port,
|
|
2411
|
-
method: "PATCH",
|
|
2412
|
-
headers,
|
|
2413
|
-
path: resolvedPath,
|
|
2414
|
-
body,
|
|
2415
|
-
});
|
|
1580
|
+
b.m("PATCH").h(headers).b(body);
|
|
1581
|
+
return b.build();
|
|
2416
1582
|
};
|
|
2417
1583
|
exports.se_UpdateGatewayResponseCommand = se_UpdateGatewayResponseCommand;
|
|
2418
1584
|
const se_UpdateIntegrationCommand = async (input, context) => {
|
|
2419
|
-
const
|
|
1585
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
2420
1586
|
const headers = {
|
|
2421
1587
|
"content-type": "application/json",
|
|
2422
1588
|
};
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "httpMethod", () => input.httpMethod, "{httpMethod}", false);
|
|
1589
|
+
b.bp("/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}/integration");
|
|
1590
|
+
b.p("restApiId", () => input.restApiId, "{restApiId}", false);
|
|
1591
|
+
b.p("resourceId", () => input.resourceId, "{resourceId}", false);
|
|
1592
|
+
b.p("httpMethod", () => input.httpMethod, "{httpMethod}", false);
|
|
2428
1593
|
let body;
|
|
2429
1594
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
2430
1595
|
patchOperations: (_) => (0, smithy_client_1._json)(_),
|
|
2431
1596
|
}));
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
hostname,
|
|
2435
|
-
port,
|
|
2436
|
-
method: "PATCH",
|
|
2437
|
-
headers,
|
|
2438
|
-
path: resolvedPath,
|
|
2439
|
-
body,
|
|
2440
|
-
});
|
|
1597
|
+
b.m("PATCH").h(headers).b(body);
|
|
1598
|
+
return b.build();
|
|
2441
1599
|
};
|
|
2442
1600
|
exports.se_UpdateIntegrationCommand = se_UpdateIntegrationCommand;
|
|
2443
1601
|
const se_UpdateIntegrationResponseCommand = async (input, context) => {
|
|
2444
|
-
const
|
|
1602
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
2445
1603
|
const headers = {
|
|
2446
1604
|
"content-type": "application/json",
|
|
2447
1605
|
};
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "statusCode", () => input.statusCode, "{statusCode}", false);
|
|
1606
|
+
b.bp("/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}/integration/responses/{statusCode}");
|
|
1607
|
+
b.p("restApiId", () => input.restApiId, "{restApiId}", false);
|
|
1608
|
+
b.p("resourceId", () => input.resourceId, "{resourceId}", false);
|
|
1609
|
+
b.p("httpMethod", () => input.httpMethod, "{httpMethod}", false);
|
|
1610
|
+
b.p("statusCode", () => input.statusCode, "{statusCode}", false);
|
|
2454
1611
|
let body;
|
|
2455
1612
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
2456
1613
|
patchOperations: (_) => (0, smithy_client_1._json)(_),
|
|
2457
1614
|
}));
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
hostname,
|
|
2461
|
-
port,
|
|
2462
|
-
method: "PATCH",
|
|
2463
|
-
headers,
|
|
2464
|
-
path: resolvedPath,
|
|
2465
|
-
body,
|
|
2466
|
-
});
|
|
1615
|
+
b.m("PATCH").h(headers).b(body);
|
|
1616
|
+
return b.build();
|
|
2467
1617
|
};
|
|
2468
1618
|
exports.se_UpdateIntegrationResponseCommand = se_UpdateIntegrationResponseCommand;
|
|
2469
1619
|
const se_UpdateMethodCommand = async (input, context) => {
|
|
2470
|
-
const
|
|
1620
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
2471
1621
|
const headers = {
|
|
2472
1622
|
"content-type": "application/json",
|
|
2473
1623
|
};
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "httpMethod", () => input.httpMethod, "{httpMethod}", false);
|
|
1624
|
+
b.bp("/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}");
|
|
1625
|
+
b.p("restApiId", () => input.restApiId, "{restApiId}", false);
|
|
1626
|
+
b.p("resourceId", () => input.resourceId, "{resourceId}", false);
|
|
1627
|
+
b.p("httpMethod", () => input.httpMethod, "{httpMethod}", false);
|
|
2479
1628
|
let body;
|
|
2480
1629
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
2481
1630
|
patchOperations: (_) => (0, smithy_client_1._json)(_),
|
|
2482
1631
|
}));
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
hostname,
|
|
2486
|
-
port,
|
|
2487
|
-
method: "PATCH",
|
|
2488
|
-
headers,
|
|
2489
|
-
path: resolvedPath,
|
|
2490
|
-
body,
|
|
2491
|
-
});
|
|
1632
|
+
b.m("PATCH").h(headers).b(body);
|
|
1633
|
+
return b.build();
|
|
2492
1634
|
};
|
|
2493
1635
|
exports.se_UpdateMethodCommand = se_UpdateMethodCommand;
|
|
2494
1636
|
const se_UpdateMethodResponseCommand = async (input, context) => {
|
|
2495
|
-
const
|
|
1637
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
2496
1638
|
const headers = {
|
|
2497
1639
|
"content-type": "application/json",
|
|
2498
1640
|
};
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "statusCode", () => input.statusCode, "{statusCode}", false);
|
|
1641
|
+
b.bp("/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}/responses/{statusCode}");
|
|
1642
|
+
b.p("restApiId", () => input.restApiId, "{restApiId}", false);
|
|
1643
|
+
b.p("resourceId", () => input.resourceId, "{resourceId}", false);
|
|
1644
|
+
b.p("httpMethod", () => input.httpMethod, "{httpMethod}", false);
|
|
1645
|
+
b.p("statusCode", () => input.statusCode, "{statusCode}", false);
|
|
2505
1646
|
let body;
|
|
2506
1647
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
2507
1648
|
patchOperations: (_) => (0, smithy_client_1._json)(_),
|
|
2508
1649
|
}));
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
hostname,
|
|
2512
|
-
port,
|
|
2513
|
-
method: "PATCH",
|
|
2514
|
-
headers,
|
|
2515
|
-
path: resolvedPath,
|
|
2516
|
-
body,
|
|
2517
|
-
});
|
|
1650
|
+
b.m("PATCH").h(headers).b(body);
|
|
1651
|
+
return b.build();
|
|
2518
1652
|
};
|
|
2519
1653
|
exports.se_UpdateMethodResponseCommand = se_UpdateMethodResponseCommand;
|
|
2520
1654
|
const se_UpdateModelCommand = async (input, context) => {
|
|
2521
|
-
const
|
|
1655
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
2522
1656
|
const headers = {
|
|
2523
1657
|
"content-type": "application/json",
|
|
2524
1658
|
};
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
1659
|
+
b.bp("/restapis/{restApiId}/models/{modelName}");
|
|
1660
|
+
b.p("restApiId", () => input.restApiId, "{restApiId}", false);
|
|
1661
|
+
b.p("modelName", () => input.modelName, "{modelName}", false);
|
|
2528
1662
|
let body;
|
|
2529
1663
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
2530
1664
|
patchOperations: (_) => (0, smithy_client_1._json)(_),
|
|
2531
1665
|
}));
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
hostname,
|
|
2535
|
-
port,
|
|
2536
|
-
method: "PATCH",
|
|
2537
|
-
headers,
|
|
2538
|
-
path: resolvedPath,
|
|
2539
|
-
body,
|
|
2540
|
-
});
|
|
1666
|
+
b.m("PATCH").h(headers).b(body);
|
|
1667
|
+
return b.build();
|
|
2541
1668
|
};
|
|
2542
1669
|
exports.se_UpdateModelCommand = se_UpdateModelCommand;
|
|
2543
1670
|
const se_UpdateRequestValidatorCommand = async (input, context) => {
|
|
2544
|
-
const
|
|
1671
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
2545
1672
|
const headers = {
|
|
2546
1673
|
"content-type": "application/json",
|
|
2547
1674
|
};
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "requestValidatorId", () => input.requestValidatorId, "{requestValidatorId}", false);
|
|
1675
|
+
b.bp("/restapis/{restApiId}/requestvalidators/{requestValidatorId}");
|
|
1676
|
+
b.p("restApiId", () => input.restApiId, "{restApiId}", false);
|
|
1677
|
+
b.p("requestValidatorId", () => input.requestValidatorId, "{requestValidatorId}", false);
|
|
2552
1678
|
let body;
|
|
2553
1679
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
2554
1680
|
patchOperations: (_) => (0, smithy_client_1._json)(_),
|
|
2555
1681
|
}));
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
hostname,
|
|
2559
|
-
port,
|
|
2560
|
-
method: "PATCH",
|
|
2561
|
-
headers,
|
|
2562
|
-
path: resolvedPath,
|
|
2563
|
-
body,
|
|
2564
|
-
});
|
|
1682
|
+
b.m("PATCH").h(headers).b(body);
|
|
1683
|
+
return b.build();
|
|
2565
1684
|
};
|
|
2566
1685
|
exports.se_UpdateRequestValidatorCommand = se_UpdateRequestValidatorCommand;
|
|
2567
1686
|
const se_UpdateResourceCommand = async (input, context) => {
|
|
2568
|
-
const
|
|
1687
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
2569
1688
|
const headers = {
|
|
2570
1689
|
"content-type": "application/json",
|
|
2571
1690
|
};
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceId", () => input.resourceId, "{resourceId}", false);
|
|
1691
|
+
b.bp("/restapis/{restApiId}/resources/{resourceId}");
|
|
1692
|
+
b.p("restApiId", () => input.restApiId, "{restApiId}", false);
|
|
1693
|
+
b.p("resourceId", () => input.resourceId, "{resourceId}", false);
|
|
2576
1694
|
let body;
|
|
2577
1695
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
2578
1696
|
patchOperations: (_) => (0, smithy_client_1._json)(_),
|
|
2579
1697
|
}));
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
hostname,
|
|
2583
|
-
port,
|
|
2584
|
-
method: "PATCH",
|
|
2585
|
-
headers,
|
|
2586
|
-
path: resolvedPath,
|
|
2587
|
-
body,
|
|
2588
|
-
});
|
|
1698
|
+
b.m("PATCH").h(headers).b(body);
|
|
1699
|
+
return b.build();
|
|
2589
1700
|
};
|
|
2590
1701
|
exports.se_UpdateResourceCommand = se_UpdateResourceCommand;
|
|
2591
1702
|
const se_UpdateRestApiCommand = async (input, context) => {
|
|
2592
|
-
const
|
|
1703
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
2593
1704
|
const headers = {
|
|
2594
1705
|
"content-type": "application/json",
|
|
2595
1706
|
};
|
|
2596
|
-
|
|
2597
|
-
|
|
1707
|
+
b.bp("/restapis/{restApiId}");
|
|
1708
|
+
b.p("restApiId", () => input.restApiId, "{restApiId}", false);
|
|
2598
1709
|
let body;
|
|
2599
1710
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
2600
1711
|
patchOperations: (_) => (0, smithy_client_1._json)(_),
|
|
2601
1712
|
}));
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
hostname,
|
|
2605
|
-
port,
|
|
2606
|
-
method: "PATCH",
|
|
2607
|
-
headers,
|
|
2608
|
-
path: resolvedPath,
|
|
2609
|
-
body,
|
|
2610
|
-
});
|
|
1713
|
+
b.m("PATCH").h(headers).b(body);
|
|
1714
|
+
return b.build();
|
|
2611
1715
|
};
|
|
2612
1716
|
exports.se_UpdateRestApiCommand = se_UpdateRestApiCommand;
|
|
2613
1717
|
const se_UpdateStageCommand = async (input, context) => {
|
|
2614
|
-
const
|
|
1718
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
2615
1719
|
const headers = {
|
|
2616
1720
|
"content-type": "application/json",
|
|
2617
1721
|
};
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
|
|
1722
|
+
b.bp("/restapis/{restApiId}/stages/{stageName}");
|
|
1723
|
+
b.p("restApiId", () => input.restApiId, "{restApiId}", false);
|
|
1724
|
+
b.p("stageName", () => input.stageName, "{stageName}", false);
|
|
2621
1725
|
let body;
|
|
2622
1726
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
2623
1727
|
patchOperations: (_) => (0, smithy_client_1._json)(_),
|
|
2624
1728
|
}));
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
hostname,
|
|
2628
|
-
port,
|
|
2629
|
-
method: "PATCH",
|
|
2630
|
-
headers,
|
|
2631
|
-
path: resolvedPath,
|
|
2632
|
-
body,
|
|
2633
|
-
});
|
|
1729
|
+
b.m("PATCH").h(headers).b(body);
|
|
1730
|
+
return b.build();
|
|
2634
1731
|
};
|
|
2635
1732
|
exports.se_UpdateStageCommand = se_UpdateStageCommand;
|
|
2636
1733
|
const se_UpdateUsageCommand = async (input, context) => {
|
|
2637
|
-
const
|
|
1734
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
2638
1735
|
const headers = {
|
|
2639
1736
|
"content-type": "application/json",
|
|
2640
1737
|
};
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "keyId", () => input.keyId, "{keyId}", false);
|
|
1738
|
+
b.bp("/usageplans/{usagePlanId}/keys/{keyId}/usage");
|
|
1739
|
+
b.p("usagePlanId", () => input.usagePlanId, "{usagePlanId}", false);
|
|
1740
|
+
b.p("keyId", () => input.keyId, "{keyId}", false);
|
|
2645
1741
|
let body;
|
|
2646
1742
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
2647
1743
|
patchOperations: (_) => (0, smithy_client_1._json)(_),
|
|
2648
1744
|
}));
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
hostname,
|
|
2652
|
-
port,
|
|
2653
|
-
method: "PATCH",
|
|
2654
|
-
headers,
|
|
2655
|
-
path: resolvedPath,
|
|
2656
|
-
body,
|
|
2657
|
-
});
|
|
1745
|
+
b.m("PATCH").h(headers).b(body);
|
|
1746
|
+
return b.build();
|
|
2658
1747
|
};
|
|
2659
1748
|
exports.se_UpdateUsageCommand = se_UpdateUsageCommand;
|
|
2660
1749
|
const se_UpdateUsagePlanCommand = async (input, context) => {
|
|
2661
|
-
const
|
|
1750
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
2662
1751
|
const headers = {
|
|
2663
1752
|
"content-type": "application/json",
|
|
2664
1753
|
};
|
|
2665
|
-
|
|
2666
|
-
|
|
1754
|
+
b.bp("/usageplans/{usagePlanId}");
|
|
1755
|
+
b.p("usagePlanId", () => input.usagePlanId, "{usagePlanId}", false);
|
|
2667
1756
|
let body;
|
|
2668
1757
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
2669
1758
|
patchOperations: (_) => (0, smithy_client_1._json)(_),
|
|
2670
1759
|
}));
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
hostname,
|
|
2674
|
-
port,
|
|
2675
|
-
method: "PATCH",
|
|
2676
|
-
headers,
|
|
2677
|
-
path: resolvedPath,
|
|
2678
|
-
body,
|
|
2679
|
-
});
|
|
1760
|
+
b.m("PATCH").h(headers).b(body);
|
|
1761
|
+
return b.build();
|
|
2680
1762
|
};
|
|
2681
1763
|
exports.se_UpdateUsagePlanCommand = se_UpdateUsagePlanCommand;
|
|
2682
1764
|
const se_UpdateVpcLinkCommand = async (input, context) => {
|
|
2683
|
-
const
|
|
1765
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
2684
1766
|
const headers = {
|
|
2685
1767
|
"content-type": "application/json",
|
|
2686
1768
|
};
|
|
2687
|
-
|
|
2688
|
-
|
|
1769
|
+
b.bp("/vpclinks/{vpcLinkId}");
|
|
1770
|
+
b.p("vpcLinkId", () => input.vpcLinkId, "{vpcLinkId}", false);
|
|
2689
1771
|
let body;
|
|
2690
1772
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
2691
1773
|
patchOperations: (_) => (0, smithy_client_1._json)(_),
|
|
2692
1774
|
}));
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
hostname,
|
|
2696
|
-
port,
|
|
2697
|
-
method: "PATCH",
|
|
2698
|
-
headers,
|
|
2699
|
-
path: resolvedPath,
|
|
2700
|
-
body,
|
|
2701
|
-
});
|
|
1775
|
+
b.m("PATCH").h(headers).b(body);
|
|
1776
|
+
return b.build();
|
|
2702
1777
|
};
|
|
2703
1778
|
exports.se_UpdateVpcLinkCommand = se_UpdateVpcLinkCommand;
|
|
2704
1779
|
const de_CreateApiKeyCommand = async (output, context) => {
|
|
@@ -5355,8 +4430,8 @@ const de_GetExportCommand = async (output, context) => {
|
|
|
5355
4430
|
}
|
|
5356
4431
|
const contents = (0, smithy_client_1.map)({
|
|
5357
4432
|
$metadata: deserializeMetadata(output),
|
|
5358
|
-
|
|
5359
|
-
|
|
4433
|
+
[_cT]: [, output.headers[_ct]],
|
|
4434
|
+
[_cD]: [, output.headers[_cd]],
|
|
5360
4435
|
});
|
|
5361
4436
|
const data = await (0, smithy_client_1.collectBody)(output.body, context);
|
|
5362
4437
|
contents.body = data;
|
|
@@ -6102,8 +5177,8 @@ const de_GetSdkCommand = async (output, context) => {
|
|
|
6102
5177
|
}
|
|
6103
5178
|
const contents = (0, smithy_client_1.map)({
|
|
6104
5179
|
$metadata: deserializeMetadata(output),
|
|
6105
|
-
|
|
6106
|
-
|
|
5180
|
+
[_cT]: [, output.headers[_ct]],
|
|
5181
|
+
[_cD]: [, output.headers[_cd]],
|
|
6107
5182
|
});
|
|
6108
5183
|
const data = await (0, smithy_client_1.collectBody)(output.body, context);
|
|
6109
5184
|
contents.body = data;
|
|
@@ -8650,7 +7725,7 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
8650
7725
|
};
|
|
8651
7726
|
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
8652
7727
|
const contents = (0, smithy_client_1.map)({
|
|
8653
|
-
|
|
7728
|
+
[_rAS]: [, parsedOutput.headers[_ra]],
|
|
8654
7729
|
});
|
|
8655
7730
|
const data = parsedOutput.body;
|
|
8656
7731
|
const doc = (0, smithy_client_1.take)(data, {
|
|
@@ -8678,7 +7753,7 @@ const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
8678
7753
|
};
|
|
8679
7754
|
const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
8680
7755
|
const contents = (0, smithy_client_1.map)({
|
|
8681
|
-
|
|
7756
|
+
[_rAS]: [, parsedOutput.headers[_ra]],
|
|
8682
7757
|
});
|
|
8683
7758
|
const data = parsedOutput.body;
|
|
8684
7759
|
const doc = (0, smithy_client_1.take)(data, {
|
|
@@ -8693,7 +7768,7 @@ const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
|
8693
7768
|
};
|
|
8694
7769
|
const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
|
|
8695
7770
|
const contents = (0, smithy_client_1.map)({
|
|
8696
|
-
|
|
7771
|
+
[_rAS]: [, parsedOutput.headers[_ra]],
|
|
8697
7772
|
});
|
|
8698
7773
|
const data = parsedOutput.body;
|
|
8699
7774
|
const doc = (0, smithy_client_1.take)(data, {
|
|
@@ -9011,6 +8086,35 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
9011
8086
|
value !== "" &&
|
|
9012
8087
|
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
9013
8088
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
8089
|
+
const _a = "accepts";
|
|
8090
|
+
const _ac = "accept";
|
|
8091
|
+
const _cD = "contentDisposition";
|
|
8092
|
+
const _cI = "customerId";
|
|
8093
|
+
const _cT = "contentType";
|
|
8094
|
+
const _cd = "content-disposition";
|
|
8095
|
+
const _ct = "content-type";
|
|
8096
|
+
const _dI = "deploymentId";
|
|
8097
|
+
const _e = "embed";
|
|
8098
|
+
const _eD = "endDate";
|
|
8099
|
+
const _f = "flatten";
|
|
8100
|
+
const _fOW = "failOnWarnings";
|
|
8101
|
+
const _fa = "failonwarnings";
|
|
8102
|
+
const _fo = "format";
|
|
8103
|
+
const _iV = "includeValue";
|
|
8104
|
+
const _iVn = "includeValues";
|
|
8105
|
+
const _kI = "keyId";
|
|
8106
|
+
const _l = "limit";
|
|
8107
|
+
const _lS = "locationStatus";
|
|
8108
|
+
const _m = "mode";
|
|
8109
|
+
const _n = "name";
|
|
8110
|
+
const _nQ = "nameQuery";
|
|
8111
|
+
const _p = "position";
|
|
8112
|
+
const _pa = "path";
|
|
8113
|
+
const _rAS = "retryAfterSeconds";
|
|
8114
|
+
const _ra = "retry-after";
|
|
8115
|
+
const _sD = "startDate";
|
|
8116
|
+
const _t = "type";
|
|
8117
|
+
const _tK = "tagKeys";
|
|
9014
8118
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
9015
8119
|
if (encoded.length) {
|
|
9016
8120
|
return JSON.parse(encoded);
|