@aws-sdk/client-lambda 3.474.0 → 3.477.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,21 +3,20 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.se_PublishVersionCommand = exports.se_PublishLayerVersionCommand = exports.se_ListVersionsByFunctionCommand = exports.se_ListTagsCommand = exports.se_ListProvisionedConcurrencyConfigsCommand = exports.se_ListLayerVersionsCommand = exports.se_ListLayersCommand = exports.se_ListFunctionUrlConfigsCommand = exports.se_ListFunctionsByCodeSigningConfigCommand = exports.se_ListFunctionsCommand = exports.se_ListFunctionEventInvokeConfigsCommand = exports.se_ListEventSourceMappingsCommand = exports.se_ListCodeSigningConfigsCommand = exports.se_ListAliasesCommand = exports.se_InvokeWithResponseStreamCommand = exports.se_InvokeAsyncCommand = exports.se_InvokeCommand = exports.se_GetRuntimeManagementConfigCommand = exports.se_GetProvisionedConcurrencyConfigCommand = exports.se_GetPolicyCommand = exports.se_GetLayerVersionPolicyCommand = exports.se_GetLayerVersionByArnCommand = exports.se_GetLayerVersionCommand = exports.se_GetFunctionUrlConfigCommand = exports.se_GetFunctionEventInvokeConfigCommand = exports.se_GetFunctionConfigurationCommand = exports.se_GetFunctionConcurrencyCommand = exports.se_GetFunctionCodeSigningConfigCommand = exports.se_GetFunctionCommand = exports.se_GetEventSourceMappingCommand = exports.se_GetCodeSigningConfigCommand = exports.se_GetAliasCommand = exports.se_GetAccountSettingsCommand = exports.se_DeleteProvisionedConcurrencyConfigCommand = exports.se_DeleteLayerVersionCommand = exports.se_DeleteFunctionUrlConfigCommand = exports.se_DeleteFunctionEventInvokeConfigCommand = exports.se_DeleteFunctionConcurrencyCommand = exports.se_DeleteFunctionCodeSigningConfigCommand = exports.se_DeleteFunctionCommand = exports.se_DeleteEventSourceMappingCommand = exports.se_DeleteCodeSigningConfigCommand = exports.se_DeleteAliasCommand = exports.se_CreateFunctionUrlConfigCommand = exports.se_CreateFunctionCommand = exports.se_CreateEventSourceMappingCommand = exports.se_CreateCodeSigningConfigCommand = exports.se_CreateAliasCommand = exports.se_AddPermissionCommand = exports.se_AddLayerVersionPermissionCommand = void 0;
4
4
  exports.de_InvokeCommand = exports.de_GetRuntimeManagementConfigCommand = exports.de_GetProvisionedConcurrencyConfigCommand = exports.de_GetPolicyCommand = exports.de_GetLayerVersionPolicyCommand = exports.de_GetLayerVersionByArnCommand = exports.de_GetLayerVersionCommand = exports.de_GetFunctionUrlConfigCommand = exports.de_GetFunctionEventInvokeConfigCommand = exports.de_GetFunctionConfigurationCommand = exports.de_GetFunctionConcurrencyCommand = exports.de_GetFunctionCodeSigningConfigCommand = exports.de_GetFunctionCommand = exports.de_GetEventSourceMappingCommand = exports.de_GetCodeSigningConfigCommand = exports.de_GetAliasCommand = exports.de_GetAccountSettingsCommand = exports.de_DeleteProvisionedConcurrencyConfigCommand = exports.de_DeleteLayerVersionCommand = exports.de_DeleteFunctionUrlConfigCommand = exports.de_DeleteFunctionEventInvokeConfigCommand = exports.de_DeleteFunctionConcurrencyCommand = exports.de_DeleteFunctionCodeSigningConfigCommand = exports.de_DeleteFunctionCommand = exports.de_DeleteEventSourceMappingCommand = exports.de_DeleteCodeSigningConfigCommand = exports.de_DeleteAliasCommand = exports.de_CreateFunctionUrlConfigCommand = exports.de_CreateFunctionCommand = exports.de_CreateEventSourceMappingCommand = exports.de_CreateCodeSigningConfigCommand = exports.de_CreateAliasCommand = exports.de_AddPermissionCommand = exports.de_AddLayerVersionPermissionCommand = exports.se_UpdateFunctionUrlConfigCommand = exports.se_UpdateFunctionEventInvokeConfigCommand = exports.se_UpdateFunctionConfigurationCommand = exports.se_UpdateFunctionCodeCommand = exports.se_UpdateEventSourceMappingCommand = exports.se_UpdateCodeSigningConfigCommand = exports.se_UpdateAliasCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_RemovePermissionCommand = exports.se_RemoveLayerVersionPermissionCommand = exports.se_PutRuntimeManagementConfigCommand = exports.se_PutProvisionedConcurrencyConfigCommand = exports.se_PutFunctionEventInvokeConfigCommand = exports.se_PutFunctionConcurrencyCommand = exports.se_PutFunctionCodeSigningConfigCommand = void 0;
5
5
  exports.de_UpdateFunctionUrlConfigCommand = exports.de_UpdateFunctionEventInvokeConfigCommand = exports.de_UpdateFunctionConfigurationCommand = exports.de_UpdateFunctionCodeCommand = exports.de_UpdateEventSourceMappingCommand = exports.de_UpdateCodeSigningConfigCommand = exports.de_UpdateAliasCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_RemovePermissionCommand = exports.de_RemoveLayerVersionPermissionCommand = exports.de_PutRuntimeManagementConfigCommand = exports.de_PutProvisionedConcurrencyConfigCommand = exports.de_PutFunctionEventInvokeConfigCommand = exports.de_PutFunctionConcurrencyCommand = exports.de_PutFunctionCodeSigningConfigCommand = exports.de_PublishVersionCommand = exports.de_PublishLayerVersionCommand = exports.de_ListVersionsByFunctionCommand = exports.de_ListTagsCommand = exports.de_ListProvisionedConcurrencyConfigsCommand = exports.de_ListLayerVersionsCommand = exports.de_ListLayersCommand = exports.de_ListFunctionUrlConfigsCommand = exports.de_ListFunctionsByCodeSigningConfigCommand = exports.de_ListFunctionsCommand = exports.de_ListFunctionEventInvokeConfigsCommand = exports.de_ListEventSourceMappingsCommand = exports.de_ListCodeSigningConfigsCommand = exports.de_ListAliasesCommand = exports.de_InvokeWithResponseStreamCommand = exports.de_InvokeAsyncCommand = void 0;
6
- const protocol_http_1 = require("@smithy/protocol-http");
6
+ const core_1 = require("@smithy/core");
7
7
  const smithy_client_1 = require("@smithy/smithy-client");
8
8
  const LambdaServiceException_1 = require("../models/LambdaServiceException");
9
9
  const models_0_1 = require("../models/models_0");
10
10
  const se_AddLayerVersionPermissionCommand = async (input, context) => {
11
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
11
+ const b = (0, core_1.requestBuilder)(input, context);
12
12
  const headers = {
13
13
  "content-type": "application/json",
14
14
  };
15
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
16
- "/2018-10-31/layers/{LayerName}/versions/{VersionNumber}/policy";
17
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "LayerName", () => input.LayerName, "{LayerName}", false);
18
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VersionNumber", () => input.VersionNumber.toString(), "{VersionNumber}", false);
15
+ b.bp("/2018-10-31/layers/{LayerName}/versions/{VersionNumber}/policy");
16
+ b.p("LayerName", () => input.LayerName, "{LayerName}", false);
17
+ b.p("VersionNumber", () => input.VersionNumber.toString(), "{VersionNumber}", false);
19
18
  const query = (0, smithy_client_1.map)({
20
- RevisionId: [, input.RevisionId],
19
+ [_RI]: [, input[_RI]],
21
20
  });
22
21
  let body;
23
22
  body = JSON.stringify((0, smithy_client_1.take)(input, {
@@ -26,28 +25,19 @@ const se_AddLayerVersionPermissionCommand = async (input, context) => {
26
25
  Principal: [],
27
26
  StatementId: [],
28
27
  }));
29
- return new protocol_http_1.HttpRequest({
30
- protocol,
31
- hostname,
32
- port,
33
- method: "POST",
34
- headers,
35
- path: resolvedPath,
36
- query,
37
- body,
38
- });
28
+ b.m("POST").h(headers).q(query).b(body);
29
+ return b.build();
39
30
  };
40
31
  exports.se_AddLayerVersionPermissionCommand = se_AddLayerVersionPermissionCommand;
41
32
  const se_AddPermissionCommand = async (input, context) => {
42
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
33
+ const b = (0, core_1.requestBuilder)(input, context);
43
34
  const headers = {
44
35
  "content-type": "application/json",
45
36
  };
46
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
47
- "/2015-03-31/functions/{FunctionName}/policy";
48
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FunctionName", () => input.FunctionName, "{FunctionName}", false);
37
+ b.bp("/2015-03-31/functions/{FunctionName}/policy");
38
+ b.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
49
39
  const query = (0, smithy_client_1.map)({
50
- Qualifier: [, input.Qualifier],
40
+ [_Q]: [, input[_Q]],
51
41
  });
52
42
  let body;
53
43
  body = JSON.stringify((0, smithy_client_1.take)(input, {
@@ -61,26 +51,17 @@ const se_AddPermissionCommand = async (input, context) => {
61
51
  SourceArn: [],
62
52
  StatementId: [],
63
53
  }));
64
- return new protocol_http_1.HttpRequest({
65
- protocol,
66
- hostname,
67
- port,
68
- method: "POST",
69
- headers,
70
- path: resolvedPath,
71
- query,
72
- body,
73
- });
54
+ b.m("POST").h(headers).q(query).b(body);
55
+ return b.build();
74
56
  };
75
57
  exports.se_AddPermissionCommand = se_AddPermissionCommand;
76
58
  const se_CreateAliasCommand = async (input, context) => {
77
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
59
+ const b = (0, core_1.requestBuilder)(input, context);
78
60
  const headers = {
79
61
  "content-type": "application/json",
80
62
  };
81
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
82
- "/2015-03-31/functions/{FunctionName}/aliases";
83
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FunctionName", () => input.FunctionName, "{FunctionName}", false);
63
+ b.bp("/2015-03-31/functions/{FunctionName}/aliases");
64
+ b.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
84
65
  let body;
85
66
  body = JSON.stringify((0, smithy_client_1.take)(input, {
86
67
  Description: [],
@@ -88,46 +69,32 @@ const se_CreateAliasCommand = async (input, context) => {
88
69
  Name: [],
89
70
  RoutingConfig: (_) => se_AliasRoutingConfiguration(_, context),
90
71
  }));
91
- return new protocol_http_1.HttpRequest({
92
- protocol,
93
- hostname,
94
- port,
95
- method: "POST",
96
- headers,
97
- path: resolvedPath,
98
- body,
99
- });
72
+ b.m("POST").h(headers).b(body);
73
+ return b.build();
100
74
  };
101
75
  exports.se_CreateAliasCommand = se_CreateAliasCommand;
102
76
  const se_CreateCodeSigningConfigCommand = async (input, context) => {
103
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
77
+ const b = (0, core_1.requestBuilder)(input, context);
104
78
  const headers = {
105
79
  "content-type": "application/json",
106
80
  };
107
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-04-22/code-signing-configs";
81
+ b.bp("/2020-04-22/code-signing-configs");
108
82
  let body;
109
83
  body = JSON.stringify((0, smithy_client_1.take)(input, {
110
84
  AllowedPublishers: (_) => (0, smithy_client_1._json)(_),
111
85
  CodeSigningPolicies: (_) => (0, smithy_client_1._json)(_),
112
86
  Description: [],
113
87
  }));
114
- return new protocol_http_1.HttpRequest({
115
- protocol,
116
- hostname,
117
- port,
118
- method: "POST",
119
- headers,
120
- path: resolvedPath,
121
- body,
122
- });
88
+ b.m("POST").h(headers).b(body);
89
+ return b.build();
123
90
  };
124
91
  exports.se_CreateCodeSigningConfigCommand = se_CreateCodeSigningConfigCommand;
125
92
  const se_CreateEventSourceMappingCommand = async (input, context) => {
126
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
93
+ const b = (0, core_1.requestBuilder)(input, context);
127
94
  const headers = {
128
95
  "content-type": "application/json",
129
96
  };
130
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-03-31/event-source-mappings";
97
+ b.bp("/2015-03-31/event-source-mappings");
131
98
  let body;
132
99
  body = JSON.stringify((0, smithy_client_1.take)(input, {
133
100
  AmazonManagedKafkaEventSourceConfig: (_) => (0, smithy_client_1._json)(_),
@@ -154,23 +121,16 @@ const se_CreateEventSourceMappingCommand = async (input, context) => {
154
121
  Topics: (_) => (0, smithy_client_1._json)(_),
155
122
  TumblingWindowInSeconds: [],
156
123
  }));
157
- return new protocol_http_1.HttpRequest({
158
- protocol,
159
- hostname,
160
- port,
161
- method: "POST",
162
- headers,
163
- path: resolvedPath,
164
- body,
165
- });
124
+ b.m("POST").h(headers).b(body);
125
+ return b.build();
166
126
  };
167
127
  exports.se_CreateEventSourceMappingCommand = se_CreateEventSourceMappingCommand;
168
128
  const se_CreateFunctionCommand = async (input, context) => {
169
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
129
+ const b = (0, core_1.requestBuilder)(input, context);
170
130
  const headers = {
171
131
  "content-type": "application/json",
172
132
  };
173
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-03-31/functions";
133
+ b.bp("/2015-03-31/functions");
174
134
  let body;
175
135
  body = JSON.stringify((0, smithy_client_1.take)(input, {
176
136
  Architectures: (_) => (0, smithy_client_1._json)(_),
@@ -198,26 +158,19 @@ const se_CreateFunctionCommand = async (input, context) => {
198
158
  TracingConfig: (_) => (0, smithy_client_1._json)(_),
199
159
  VpcConfig: (_) => (0, smithy_client_1._json)(_),
200
160
  }));
201
- return new protocol_http_1.HttpRequest({
202
- protocol,
203
- hostname,
204
- port,
205
- method: "POST",
206
- headers,
207
- path: resolvedPath,
208
- body,
209
- });
161
+ b.m("POST").h(headers).b(body);
162
+ return b.build();
210
163
  };
211
164
  exports.se_CreateFunctionCommand = se_CreateFunctionCommand;
212
165
  const se_CreateFunctionUrlConfigCommand = async (input, context) => {
213
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
166
+ const b = (0, core_1.requestBuilder)(input, context);
214
167
  const headers = {
215
168
  "content-type": "application/json",
216
169
  };
217
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2021-10-31/functions/{FunctionName}/url";
218
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FunctionName", () => input.FunctionName, "{FunctionName}", false);
170
+ b.bp("/2021-10-31/functions/{FunctionName}/url");
171
+ b.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
219
172
  const query = (0, smithy_client_1.map)({
220
- Qualifier: [, input.Qualifier],
173
+ [_Q]: [, input[_Q]],
221
174
  });
222
175
  let body;
223
176
  body = JSON.stringify((0, smithy_client_1.take)(input, {
@@ -225,893 +178,547 @@ const se_CreateFunctionUrlConfigCommand = async (input, context) => {
225
178
  Cors: (_) => (0, smithy_client_1._json)(_),
226
179
  InvokeMode: [],
227
180
  }));
228
- return new protocol_http_1.HttpRequest({
229
- protocol,
230
- hostname,
231
- port,
232
- method: "POST",
233
- headers,
234
- path: resolvedPath,
235
- query,
236
- body,
237
- });
181
+ b.m("POST").h(headers).q(query).b(body);
182
+ return b.build();
238
183
  };
239
184
  exports.se_CreateFunctionUrlConfigCommand = se_CreateFunctionUrlConfigCommand;
240
185
  const se_DeleteAliasCommand = async (input, context) => {
241
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
186
+ const b = (0, core_1.requestBuilder)(input, context);
242
187
  const headers = {};
243
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
244
- "/2015-03-31/functions/{FunctionName}/aliases/{Name}";
245
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FunctionName", () => input.FunctionName, "{FunctionName}", false);
246
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
188
+ b.bp("/2015-03-31/functions/{FunctionName}/aliases/{Name}");
189
+ b.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
190
+ b.p("Name", () => input.Name, "{Name}", false);
247
191
  let body;
248
- return new protocol_http_1.HttpRequest({
249
- protocol,
250
- hostname,
251
- port,
252
- method: "DELETE",
253
- headers,
254
- path: resolvedPath,
255
- body,
256
- });
192
+ b.m("DELETE").h(headers).b(body);
193
+ return b.build();
257
194
  };
258
195
  exports.se_DeleteAliasCommand = se_DeleteAliasCommand;
259
196
  const se_DeleteCodeSigningConfigCommand = async (input, context) => {
260
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
197
+ const b = (0, core_1.requestBuilder)(input, context);
261
198
  const headers = {};
262
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
263
- "/2020-04-22/code-signing-configs/{CodeSigningConfigArn}";
264
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CodeSigningConfigArn", () => input.CodeSigningConfigArn, "{CodeSigningConfigArn}", false);
199
+ b.bp("/2020-04-22/code-signing-configs/{CodeSigningConfigArn}");
200
+ b.p("CodeSigningConfigArn", () => input.CodeSigningConfigArn, "{CodeSigningConfigArn}", false);
265
201
  let body;
266
- return new protocol_http_1.HttpRequest({
267
- protocol,
268
- hostname,
269
- port,
270
- method: "DELETE",
271
- headers,
272
- path: resolvedPath,
273
- body,
274
- });
202
+ b.m("DELETE").h(headers).b(body);
203
+ return b.build();
275
204
  };
276
205
  exports.se_DeleteCodeSigningConfigCommand = se_DeleteCodeSigningConfigCommand;
277
206
  const se_DeleteEventSourceMappingCommand = async (input, context) => {
278
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
207
+ const b = (0, core_1.requestBuilder)(input, context);
279
208
  const headers = {};
280
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-03-31/event-source-mappings/{UUID}";
281
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "UUID", () => input.UUID, "{UUID}", false);
209
+ b.bp("/2015-03-31/event-source-mappings/{UUID}");
210
+ b.p("UUID", () => input.UUID, "{UUID}", false);
282
211
  let body;
283
- return new protocol_http_1.HttpRequest({
284
- protocol,
285
- hostname,
286
- port,
287
- method: "DELETE",
288
- headers,
289
- path: resolvedPath,
290
- body,
291
- });
212
+ b.m("DELETE").h(headers).b(body);
213
+ return b.build();
292
214
  };
293
215
  exports.se_DeleteEventSourceMappingCommand = se_DeleteEventSourceMappingCommand;
294
216
  const se_DeleteFunctionCommand = async (input, context) => {
295
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
217
+ const b = (0, core_1.requestBuilder)(input, context);
296
218
  const headers = {};
297
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-03-31/functions/{FunctionName}";
298
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FunctionName", () => input.FunctionName, "{FunctionName}", false);
219
+ b.bp("/2015-03-31/functions/{FunctionName}");
220
+ b.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
299
221
  const query = (0, smithy_client_1.map)({
300
- Qualifier: [, input.Qualifier],
222
+ [_Q]: [, input[_Q]],
301
223
  });
302
224
  let body;
303
- return new protocol_http_1.HttpRequest({
304
- protocol,
305
- hostname,
306
- port,
307
- method: "DELETE",
308
- headers,
309
- path: resolvedPath,
310
- query,
311
- body,
312
- });
225
+ b.m("DELETE").h(headers).q(query).b(body);
226
+ return b.build();
313
227
  };
314
228
  exports.se_DeleteFunctionCommand = se_DeleteFunctionCommand;
315
229
  const se_DeleteFunctionCodeSigningConfigCommand = async (input, context) => {
316
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
230
+ const b = (0, core_1.requestBuilder)(input, context);
317
231
  const headers = {};
318
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
319
- "/2020-06-30/functions/{FunctionName}/code-signing-config";
320
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FunctionName", () => input.FunctionName, "{FunctionName}", false);
232
+ b.bp("/2020-06-30/functions/{FunctionName}/code-signing-config");
233
+ b.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
321
234
  let body;
322
- return new protocol_http_1.HttpRequest({
323
- protocol,
324
- hostname,
325
- port,
326
- method: "DELETE",
327
- headers,
328
- path: resolvedPath,
329
- body,
330
- });
235
+ b.m("DELETE").h(headers).b(body);
236
+ return b.build();
331
237
  };
332
238
  exports.se_DeleteFunctionCodeSigningConfigCommand = se_DeleteFunctionCodeSigningConfigCommand;
333
239
  const se_DeleteFunctionConcurrencyCommand = async (input, context) => {
334
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
240
+ const b = (0, core_1.requestBuilder)(input, context);
335
241
  const headers = {};
336
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
337
- "/2017-10-31/functions/{FunctionName}/concurrency";
338
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FunctionName", () => input.FunctionName, "{FunctionName}", false);
242
+ b.bp("/2017-10-31/functions/{FunctionName}/concurrency");
243
+ b.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
339
244
  let body;
340
- return new protocol_http_1.HttpRequest({
341
- protocol,
342
- hostname,
343
- port,
344
- method: "DELETE",
345
- headers,
346
- path: resolvedPath,
347
- body,
348
- });
245
+ b.m("DELETE").h(headers).b(body);
246
+ return b.build();
349
247
  };
350
248
  exports.se_DeleteFunctionConcurrencyCommand = se_DeleteFunctionConcurrencyCommand;
351
249
  const se_DeleteFunctionEventInvokeConfigCommand = async (input, context) => {
352
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
250
+ const b = (0, core_1.requestBuilder)(input, context);
353
251
  const headers = {};
354
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
355
- "/2019-09-25/functions/{FunctionName}/event-invoke-config";
356
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FunctionName", () => input.FunctionName, "{FunctionName}", false);
252
+ b.bp("/2019-09-25/functions/{FunctionName}/event-invoke-config");
253
+ b.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
357
254
  const query = (0, smithy_client_1.map)({
358
- Qualifier: [, input.Qualifier],
255
+ [_Q]: [, input[_Q]],
359
256
  });
360
257
  let body;
361
- return new protocol_http_1.HttpRequest({
362
- protocol,
363
- hostname,
364
- port,
365
- method: "DELETE",
366
- headers,
367
- path: resolvedPath,
368
- query,
369
- body,
370
- });
258
+ b.m("DELETE").h(headers).q(query).b(body);
259
+ return b.build();
371
260
  };
372
261
  exports.se_DeleteFunctionEventInvokeConfigCommand = se_DeleteFunctionEventInvokeConfigCommand;
373
262
  const se_DeleteFunctionUrlConfigCommand = async (input, context) => {
374
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
263
+ const b = (0, core_1.requestBuilder)(input, context);
375
264
  const headers = {};
376
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2021-10-31/functions/{FunctionName}/url";
377
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FunctionName", () => input.FunctionName, "{FunctionName}", false);
265
+ b.bp("/2021-10-31/functions/{FunctionName}/url");
266
+ b.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
378
267
  const query = (0, smithy_client_1.map)({
379
- Qualifier: [, input.Qualifier],
268
+ [_Q]: [, input[_Q]],
380
269
  });
381
270
  let body;
382
- return new protocol_http_1.HttpRequest({
383
- protocol,
384
- hostname,
385
- port,
386
- method: "DELETE",
387
- headers,
388
- path: resolvedPath,
389
- query,
390
- body,
391
- });
271
+ b.m("DELETE").h(headers).q(query).b(body);
272
+ return b.build();
392
273
  };
393
274
  exports.se_DeleteFunctionUrlConfigCommand = se_DeleteFunctionUrlConfigCommand;
394
275
  const se_DeleteLayerVersionCommand = async (input, context) => {
395
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
276
+ const b = (0, core_1.requestBuilder)(input, context);
396
277
  const headers = {};
397
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
398
- "/2018-10-31/layers/{LayerName}/versions/{VersionNumber}";
399
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "LayerName", () => input.LayerName, "{LayerName}", false);
400
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VersionNumber", () => input.VersionNumber.toString(), "{VersionNumber}", false);
278
+ b.bp("/2018-10-31/layers/{LayerName}/versions/{VersionNumber}");
279
+ b.p("LayerName", () => input.LayerName, "{LayerName}", false);
280
+ b.p("VersionNumber", () => input.VersionNumber.toString(), "{VersionNumber}", false);
401
281
  let body;
402
- return new protocol_http_1.HttpRequest({
403
- protocol,
404
- hostname,
405
- port,
406
- method: "DELETE",
407
- headers,
408
- path: resolvedPath,
409
- body,
410
- });
282
+ b.m("DELETE").h(headers).b(body);
283
+ return b.build();
411
284
  };
412
285
  exports.se_DeleteLayerVersionCommand = se_DeleteLayerVersionCommand;
413
286
  const se_DeleteProvisionedConcurrencyConfigCommand = async (input, context) => {
414
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
287
+ const b = (0, core_1.requestBuilder)(input, context);
415
288
  const headers = {};
416
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
417
- "/2019-09-30/functions/{FunctionName}/provisioned-concurrency";
418
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FunctionName", () => input.FunctionName, "{FunctionName}", false);
289
+ b.bp("/2019-09-30/functions/{FunctionName}/provisioned-concurrency");
290
+ b.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
419
291
  const query = (0, smithy_client_1.map)({
420
- Qualifier: [, (0, smithy_client_1.expectNonNull)(input.Qualifier, `Qualifier`)],
292
+ [_Q]: [, (0, smithy_client_1.expectNonNull)(input[_Q], `Qualifier`)],
421
293
  });
422
294
  let body;
423
- return new protocol_http_1.HttpRequest({
424
- protocol,
425
- hostname,
426
- port,
427
- method: "DELETE",
428
- headers,
429
- path: resolvedPath,
430
- query,
431
- body,
432
- });
295
+ b.m("DELETE").h(headers).q(query).b(body);
296
+ return b.build();
433
297
  };
434
298
  exports.se_DeleteProvisionedConcurrencyConfigCommand = se_DeleteProvisionedConcurrencyConfigCommand;
435
299
  const se_GetAccountSettingsCommand = async (input, context) => {
436
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
300
+ const b = (0, core_1.requestBuilder)(input, context);
437
301
  const headers = {
438
302
  "content-type": "application/json",
439
303
  };
440
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2016-08-19/account-settings";
304
+ b.bp("/2016-08-19/account-settings");
441
305
  let body;
442
306
  body = "";
443
- return new protocol_http_1.HttpRequest({
444
- protocol,
445
- hostname,
446
- port,
447
- method: "GET",
448
- headers,
449
- path: resolvedPath,
450
- body,
451
- });
307
+ b.m("GET").h(headers).b(body);
308
+ return b.build();
452
309
  };
453
310
  exports.se_GetAccountSettingsCommand = se_GetAccountSettingsCommand;
454
311
  const se_GetAliasCommand = async (input, context) => {
455
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
312
+ const b = (0, core_1.requestBuilder)(input, context);
456
313
  const headers = {};
457
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
458
- "/2015-03-31/functions/{FunctionName}/aliases/{Name}";
459
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FunctionName", () => input.FunctionName, "{FunctionName}", false);
460
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
314
+ b.bp("/2015-03-31/functions/{FunctionName}/aliases/{Name}");
315
+ b.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
316
+ b.p("Name", () => input.Name, "{Name}", false);
461
317
  let body;
462
- return new protocol_http_1.HttpRequest({
463
- protocol,
464
- hostname,
465
- port,
466
- method: "GET",
467
- headers,
468
- path: resolvedPath,
469
- body,
470
- });
318
+ b.m("GET").h(headers).b(body);
319
+ return b.build();
471
320
  };
472
321
  exports.se_GetAliasCommand = se_GetAliasCommand;
473
322
  const se_GetCodeSigningConfigCommand = async (input, context) => {
474
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
323
+ const b = (0, core_1.requestBuilder)(input, context);
475
324
  const headers = {};
476
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
477
- "/2020-04-22/code-signing-configs/{CodeSigningConfigArn}";
478
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CodeSigningConfigArn", () => input.CodeSigningConfigArn, "{CodeSigningConfigArn}", false);
325
+ b.bp("/2020-04-22/code-signing-configs/{CodeSigningConfigArn}");
326
+ b.p("CodeSigningConfigArn", () => input.CodeSigningConfigArn, "{CodeSigningConfigArn}", false);
479
327
  let body;
480
- return new protocol_http_1.HttpRequest({
481
- protocol,
482
- hostname,
483
- port,
484
- method: "GET",
485
- headers,
486
- path: resolvedPath,
487
- body,
488
- });
328
+ b.m("GET").h(headers).b(body);
329
+ return b.build();
489
330
  };
490
331
  exports.se_GetCodeSigningConfigCommand = se_GetCodeSigningConfigCommand;
491
332
  const se_GetEventSourceMappingCommand = async (input, context) => {
492
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
333
+ const b = (0, core_1.requestBuilder)(input, context);
493
334
  const headers = {};
494
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-03-31/event-source-mappings/{UUID}";
495
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "UUID", () => input.UUID, "{UUID}", false);
335
+ b.bp("/2015-03-31/event-source-mappings/{UUID}");
336
+ b.p("UUID", () => input.UUID, "{UUID}", false);
496
337
  let body;
497
- return new protocol_http_1.HttpRequest({
498
- protocol,
499
- hostname,
500
- port,
501
- method: "GET",
502
- headers,
503
- path: resolvedPath,
504
- body,
505
- });
338
+ b.m("GET").h(headers).b(body);
339
+ return b.build();
506
340
  };
507
341
  exports.se_GetEventSourceMappingCommand = se_GetEventSourceMappingCommand;
508
342
  const se_GetFunctionCommand = async (input, context) => {
509
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
343
+ const b = (0, core_1.requestBuilder)(input, context);
510
344
  const headers = {};
511
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-03-31/functions/{FunctionName}";
512
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FunctionName", () => input.FunctionName, "{FunctionName}", false);
345
+ b.bp("/2015-03-31/functions/{FunctionName}");
346
+ b.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
513
347
  const query = (0, smithy_client_1.map)({
514
- Qualifier: [, input.Qualifier],
348
+ [_Q]: [, input[_Q]],
515
349
  });
516
350
  let body;
517
- return new protocol_http_1.HttpRequest({
518
- protocol,
519
- hostname,
520
- port,
521
- method: "GET",
522
- headers,
523
- path: resolvedPath,
524
- query,
525
- body,
526
- });
351
+ b.m("GET").h(headers).q(query).b(body);
352
+ return b.build();
527
353
  };
528
354
  exports.se_GetFunctionCommand = se_GetFunctionCommand;
529
355
  const se_GetFunctionCodeSigningConfigCommand = async (input, context) => {
530
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
356
+ const b = (0, core_1.requestBuilder)(input, context);
531
357
  const headers = {};
532
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
533
- "/2020-06-30/functions/{FunctionName}/code-signing-config";
534
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FunctionName", () => input.FunctionName, "{FunctionName}", false);
358
+ b.bp("/2020-06-30/functions/{FunctionName}/code-signing-config");
359
+ b.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
535
360
  let body;
536
- return new protocol_http_1.HttpRequest({
537
- protocol,
538
- hostname,
539
- port,
540
- method: "GET",
541
- headers,
542
- path: resolvedPath,
543
- body,
544
- });
361
+ b.m("GET").h(headers).b(body);
362
+ return b.build();
545
363
  };
546
364
  exports.se_GetFunctionCodeSigningConfigCommand = se_GetFunctionCodeSigningConfigCommand;
547
365
  const se_GetFunctionConcurrencyCommand = async (input, context) => {
548
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
366
+ const b = (0, core_1.requestBuilder)(input, context);
549
367
  const headers = {};
550
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
551
- "/2019-09-30/functions/{FunctionName}/concurrency";
552
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FunctionName", () => input.FunctionName, "{FunctionName}", false);
368
+ b.bp("/2019-09-30/functions/{FunctionName}/concurrency");
369
+ b.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
553
370
  let body;
554
- return new protocol_http_1.HttpRequest({
555
- protocol,
556
- hostname,
557
- port,
558
- method: "GET",
559
- headers,
560
- path: resolvedPath,
561
- body,
562
- });
371
+ b.m("GET").h(headers).b(body);
372
+ return b.build();
563
373
  };
564
374
  exports.se_GetFunctionConcurrencyCommand = se_GetFunctionConcurrencyCommand;
565
375
  const se_GetFunctionConfigurationCommand = async (input, context) => {
566
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
376
+ const b = (0, core_1.requestBuilder)(input, context);
567
377
  const headers = {};
568
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
569
- "/2015-03-31/functions/{FunctionName}/configuration";
570
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FunctionName", () => input.FunctionName, "{FunctionName}", false);
378
+ b.bp("/2015-03-31/functions/{FunctionName}/configuration");
379
+ b.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
571
380
  const query = (0, smithy_client_1.map)({
572
- Qualifier: [, input.Qualifier],
381
+ [_Q]: [, input[_Q]],
573
382
  });
574
383
  let body;
575
- return new protocol_http_1.HttpRequest({
576
- protocol,
577
- hostname,
578
- port,
579
- method: "GET",
580
- headers,
581
- path: resolvedPath,
582
- query,
583
- body,
584
- });
384
+ b.m("GET").h(headers).q(query).b(body);
385
+ return b.build();
585
386
  };
586
387
  exports.se_GetFunctionConfigurationCommand = se_GetFunctionConfigurationCommand;
587
388
  const se_GetFunctionEventInvokeConfigCommand = async (input, context) => {
588
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
389
+ const b = (0, core_1.requestBuilder)(input, context);
589
390
  const headers = {};
590
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
591
- "/2019-09-25/functions/{FunctionName}/event-invoke-config";
592
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FunctionName", () => input.FunctionName, "{FunctionName}", false);
391
+ b.bp("/2019-09-25/functions/{FunctionName}/event-invoke-config");
392
+ b.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
593
393
  const query = (0, smithy_client_1.map)({
594
- Qualifier: [, input.Qualifier],
394
+ [_Q]: [, input[_Q]],
595
395
  });
596
396
  let body;
597
- return new protocol_http_1.HttpRequest({
598
- protocol,
599
- hostname,
600
- port,
601
- method: "GET",
602
- headers,
603
- path: resolvedPath,
604
- query,
605
- body,
606
- });
397
+ b.m("GET").h(headers).q(query).b(body);
398
+ return b.build();
607
399
  };
608
400
  exports.se_GetFunctionEventInvokeConfigCommand = se_GetFunctionEventInvokeConfigCommand;
609
401
  const se_GetFunctionUrlConfigCommand = async (input, context) => {
610
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
402
+ const b = (0, core_1.requestBuilder)(input, context);
611
403
  const headers = {};
612
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2021-10-31/functions/{FunctionName}/url";
613
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FunctionName", () => input.FunctionName, "{FunctionName}", false);
404
+ b.bp("/2021-10-31/functions/{FunctionName}/url");
405
+ b.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
614
406
  const query = (0, smithy_client_1.map)({
615
- Qualifier: [, input.Qualifier],
407
+ [_Q]: [, input[_Q]],
616
408
  });
617
409
  let body;
618
- return new protocol_http_1.HttpRequest({
619
- protocol,
620
- hostname,
621
- port,
622
- method: "GET",
623
- headers,
624
- path: resolvedPath,
625
- query,
626
- body,
627
- });
410
+ b.m("GET").h(headers).q(query).b(body);
411
+ return b.build();
628
412
  };
629
413
  exports.se_GetFunctionUrlConfigCommand = se_GetFunctionUrlConfigCommand;
630
414
  const se_GetLayerVersionCommand = async (input, context) => {
631
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
415
+ const b = (0, core_1.requestBuilder)(input, context);
632
416
  const headers = {};
633
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
634
- "/2018-10-31/layers/{LayerName}/versions/{VersionNumber}";
635
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "LayerName", () => input.LayerName, "{LayerName}", false);
636
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VersionNumber", () => input.VersionNumber.toString(), "{VersionNumber}", false);
417
+ b.bp("/2018-10-31/layers/{LayerName}/versions/{VersionNumber}");
418
+ b.p("LayerName", () => input.LayerName, "{LayerName}", false);
419
+ b.p("VersionNumber", () => input.VersionNumber.toString(), "{VersionNumber}", false);
637
420
  let body;
638
- return new protocol_http_1.HttpRequest({
639
- protocol,
640
- hostname,
641
- port,
642
- method: "GET",
643
- headers,
644
- path: resolvedPath,
645
- body,
646
- });
421
+ b.m("GET").h(headers).b(body);
422
+ return b.build();
647
423
  };
648
424
  exports.se_GetLayerVersionCommand = se_GetLayerVersionCommand;
649
425
  const se_GetLayerVersionByArnCommand = async (input, context) => {
650
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
426
+ const b = (0, core_1.requestBuilder)(input, context);
651
427
  const headers = {};
652
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2018-10-31/layers";
428
+ b.bp("/2018-10-31/layers");
653
429
  const query = (0, smithy_client_1.map)({
654
- find: [, "LayerVersion"],
655
- Arn: [, (0, smithy_client_1.expectNonNull)(input.Arn, `Arn`)],
430
+ [_f]: [, "LayerVersion"],
431
+ [_A]: [, (0, smithy_client_1.expectNonNull)(input[_A], `Arn`)],
656
432
  });
657
433
  let body;
658
- return new protocol_http_1.HttpRequest({
659
- protocol,
660
- hostname,
661
- port,
662
- method: "GET",
663
- headers,
664
- path: resolvedPath,
665
- query,
666
- body,
667
- });
434
+ b.m("GET").h(headers).q(query).b(body);
435
+ return b.build();
668
436
  };
669
437
  exports.se_GetLayerVersionByArnCommand = se_GetLayerVersionByArnCommand;
670
438
  const se_GetLayerVersionPolicyCommand = async (input, context) => {
671
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
439
+ const b = (0, core_1.requestBuilder)(input, context);
672
440
  const headers = {};
673
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
674
- "/2018-10-31/layers/{LayerName}/versions/{VersionNumber}/policy";
675
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "LayerName", () => input.LayerName, "{LayerName}", false);
676
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VersionNumber", () => input.VersionNumber.toString(), "{VersionNumber}", false);
441
+ b.bp("/2018-10-31/layers/{LayerName}/versions/{VersionNumber}/policy");
442
+ b.p("LayerName", () => input.LayerName, "{LayerName}", false);
443
+ b.p("VersionNumber", () => input.VersionNumber.toString(), "{VersionNumber}", false);
677
444
  let body;
678
- return new protocol_http_1.HttpRequest({
679
- protocol,
680
- hostname,
681
- port,
682
- method: "GET",
683
- headers,
684
- path: resolvedPath,
685
- body,
686
- });
445
+ b.m("GET").h(headers).b(body);
446
+ return b.build();
687
447
  };
688
448
  exports.se_GetLayerVersionPolicyCommand = se_GetLayerVersionPolicyCommand;
689
449
  const se_GetPolicyCommand = async (input, context) => {
690
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
450
+ const b = (0, core_1.requestBuilder)(input, context);
691
451
  const headers = {};
692
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
693
- "/2015-03-31/functions/{FunctionName}/policy";
694
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FunctionName", () => input.FunctionName, "{FunctionName}", false);
452
+ b.bp("/2015-03-31/functions/{FunctionName}/policy");
453
+ b.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
695
454
  const query = (0, smithy_client_1.map)({
696
- Qualifier: [, input.Qualifier],
455
+ [_Q]: [, input[_Q]],
697
456
  });
698
457
  let body;
699
- return new protocol_http_1.HttpRequest({
700
- protocol,
701
- hostname,
702
- port,
703
- method: "GET",
704
- headers,
705
- path: resolvedPath,
706
- query,
707
- body,
708
- });
458
+ b.m("GET").h(headers).q(query).b(body);
459
+ return b.build();
709
460
  };
710
461
  exports.se_GetPolicyCommand = se_GetPolicyCommand;
711
462
  const se_GetProvisionedConcurrencyConfigCommand = async (input, context) => {
712
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
463
+ const b = (0, core_1.requestBuilder)(input, context);
713
464
  const headers = {};
714
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
715
- "/2019-09-30/functions/{FunctionName}/provisioned-concurrency";
716
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FunctionName", () => input.FunctionName, "{FunctionName}", false);
465
+ b.bp("/2019-09-30/functions/{FunctionName}/provisioned-concurrency");
466
+ b.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
717
467
  const query = (0, smithy_client_1.map)({
718
- Qualifier: [, (0, smithy_client_1.expectNonNull)(input.Qualifier, `Qualifier`)],
468
+ [_Q]: [, (0, smithy_client_1.expectNonNull)(input[_Q], `Qualifier`)],
719
469
  });
720
470
  let body;
721
- return new protocol_http_1.HttpRequest({
722
- protocol,
723
- hostname,
724
- port,
725
- method: "GET",
726
- headers,
727
- path: resolvedPath,
728
- query,
729
- body,
730
- });
471
+ b.m("GET").h(headers).q(query).b(body);
472
+ return b.build();
731
473
  };
732
474
  exports.se_GetProvisionedConcurrencyConfigCommand = se_GetProvisionedConcurrencyConfigCommand;
733
475
  const se_GetRuntimeManagementConfigCommand = async (input, context) => {
734
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
476
+ const b = (0, core_1.requestBuilder)(input, context);
735
477
  const headers = {};
736
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
737
- "/2021-07-20/functions/{FunctionName}/runtime-management-config";
738
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FunctionName", () => input.FunctionName, "{FunctionName}", false);
478
+ b.bp("/2021-07-20/functions/{FunctionName}/runtime-management-config");
479
+ b.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
739
480
  const query = (0, smithy_client_1.map)({
740
- Qualifier: [, input.Qualifier],
481
+ [_Q]: [, input[_Q]],
741
482
  });
742
483
  let body;
743
- return new protocol_http_1.HttpRequest({
744
- protocol,
745
- hostname,
746
- port,
747
- method: "GET",
748
- headers,
749
- path: resolvedPath,
750
- query,
751
- body,
752
- });
484
+ b.m("GET").h(headers).q(query).b(body);
485
+ return b.build();
753
486
  };
754
487
  exports.se_GetRuntimeManagementConfigCommand = se_GetRuntimeManagementConfigCommand;
755
488
  const se_InvokeCommand = async (input, context) => {
756
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
489
+ const b = (0, core_1.requestBuilder)(input, context);
757
490
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
758
491
  "content-type": "application/octet-stream",
759
- "x-amz-invocation-type": input.InvocationType,
760
- "x-amz-log-type": input.LogType,
761
- "x-amz-client-context": input.ClientContext,
492
+ [_xait]: input[_IT],
493
+ [_xalt]: input[_LT],
494
+ [_xacc]: input[_CC],
762
495
  });
763
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
764
- "/2015-03-31/functions/{FunctionName}/invocations";
765
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FunctionName", () => input.FunctionName, "{FunctionName}", false);
496
+ b.bp("/2015-03-31/functions/{FunctionName}/invocations");
497
+ b.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
766
498
  const query = (0, smithy_client_1.map)({
767
- Qualifier: [, input.Qualifier],
499
+ [_Q]: [, input[_Q]],
768
500
  });
769
501
  let body;
770
502
  if (input.Payload !== undefined) {
771
503
  body = input.Payload;
772
504
  }
773
- return new protocol_http_1.HttpRequest({
774
- protocol,
775
- hostname,
776
- port,
777
- method: "POST",
778
- headers,
779
- path: resolvedPath,
780
- query,
781
- body,
782
- });
505
+ b.m("POST").h(headers).q(query).b(body);
506
+ return b.build();
783
507
  };
784
508
  exports.se_InvokeCommand = se_InvokeCommand;
785
509
  const se_InvokeAsyncCommand = async (input, context) => {
786
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
510
+ const b = (0, core_1.requestBuilder)(input, context);
787
511
  const headers = {
788
512
  "content-type": "application/octet-stream",
789
513
  };
790
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
791
- "/2014-11-13/functions/{FunctionName}/invoke-async";
792
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FunctionName", () => input.FunctionName, "{FunctionName}", false);
514
+ b.bp("/2014-11-13/functions/{FunctionName}/invoke-async");
515
+ b.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
793
516
  let body;
794
517
  if (input.InvokeArgs !== undefined) {
795
518
  body = input.InvokeArgs;
796
519
  }
797
- return new protocol_http_1.HttpRequest({
798
- protocol,
799
- hostname,
800
- port,
801
- method: "POST",
802
- headers,
803
- path: resolvedPath,
804
- body,
805
- });
520
+ b.m("POST").h(headers).b(body);
521
+ return b.build();
806
522
  };
807
523
  exports.se_InvokeAsyncCommand = se_InvokeAsyncCommand;
808
524
  const se_InvokeWithResponseStreamCommand = async (input, context) => {
809
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
525
+ const b = (0, core_1.requestBuilder)(input, context);
810
526
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
811
527
  "content-type": "application/octet-stream",
812
- "x-amz-invocation-type": input.InvocationType,
813
- "x-amz-log-type": input.LogType,
814
- "x-amz-client-context": input.ClientContext,
528
+ [_xait]: input[_IT],
529
+ [_xalt]: input[_LT],
530
+ [_xacc]: input[_CC],
815
531
  });
816
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
817
- "/2021-11-15/functions/{FunctionName}/response-streaming-invocations";
818
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FunctionName", () => input.FunctionName, "{FunctionName}", false);
532
+ b.bp("/2021-11-15/functions/{FunctionName}/response-streaming-invocations");
533
+ b.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
819
534
  const query = (0, smithy_client_1.map)({
820
- Qualifier: [, input.Qualifier],
535
+ [_Q]: [, input[_Q]],
821
536
  });
822
537
  let body;
823
538
  if (input.Payload !== undefined) {
824
539
  body = input.Payload;
825
540
  }
826
- return new protocol_http_1.HttpRequest({
827
- protocol,
828
- hostname,
829
- port,
830
- method: "POST",
831
- headers,
832
- path: resolvedPath,
833
- query,
834
- body,
835
- });
541
+ b.m("POST").h(headers).q(query).b(body);
542
+ return b.build();
836
543
  };
837
544
  exports.se_InvokeWithResponseStreamCommand = se_InvokeWithResponseStreamCommand;
838
545
  const se_ListAliasesCommand = async (input, context) => {
839
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
546
+ const b = (0, core_1.requestBuilder)(input, context);
840
547
  const headers = {};
841
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
842
- "/2015-03-31/functions/{FunctionName}/aliases";
843
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FunctionName", () => input.FunctionName, "{FunctionName}", false);
548
+ b.bp("/2015-03-31/functions/{FunctionName}/aliases");
549
+ b.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
844
550
  const query = (0, smithy_client_1.map)({
845
- FunctionVersion: [, input.FunctionVersion],
846
- Marker: [, input.Marker],
847
- MaxItems: [() => input.MaxItems !== void 0, () => input.MaxItems.toString()],
551
+ [_FV]: [, input[_FV]],
552
+ [_M]: [, input[_M]],
553
+ [_MI]: [() => input.MaxItems !== void 0, () => input[_MI].toString()],
848
554
  });
849
555
  let body;
850
- return new protocol_http_1.HttpRequest({
851
- protocol,
852
- hostname,
853
- port,
854
- method: "GET",
855
- headers,
856
- path: resolvedPath,
857
- query,
858
- body,
859
- });
556
+ b.m("GET").h(headers).q(query).b(body);
557
+ return b.build();
860
558
  };
861
559
  exports.se_ListAliasesCommand = se_ListAliasesCommand;
862
560
  const se_ListCodeSigningConfigsCommand = async (input, context) => {
863
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
561
+ const b = (0, core_1.requestBuilder)(input, context);
864
562
  const headers = {};
865
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-04-22/code-signing-configs";
563
+ b.bp("/2020-04-22/code-signing-configs");
866
564
  const query = (0, smithy_client_1.map)({
867
- Marker: [, input.Marker],
868
- MaxItems: [() => input.MaxItems !== void 0, () => input.MaxItems.toString()],
565
+ [_M]: [, input[_M]],
566
+ [_MI]: [() => input.MaxItems !== void 0, () => input[_MI].toString()],
869
567
  });
870
568
  let body;
871
- return new protocol_http_1.HttpRequest({
872
- protocol,
873
- hostname,
874
- port,
875
- method: "GET",
876
- headers,
877
- path: resolvedPath,
878
- query,
879
- body,
880
- });
569
+ b.m("GET").h(headers).q(query).b(body);
570
+ return b.build();
881
571
  };
882
572
  exports.se_ListCodeSigningConfigsCommand = se_ListCodeSigningConfigsCommand;
883
573
  const se_ListEventSourceMappingsCommand = async (input, context) => {
884
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
574
+ const b = (0, core_1.requestBuilder)(input, context);
885
575
  const headers = {};
886
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-03-31/event-source-mappings";
576
+ b.bp("/2015-03-31/event-source-mappings");
887
577
  const query = (0, smithy_client_1.map)({
888
- EventSourceArn: [, input.EventSourceArn],
889
- FunctionName: [, input.FunctionName],
890
- Marker: [, input.Marker],
891
- MaxItems: [() => input.MaxItems !== void 0, () => input.MaxItems.toString()],
578
+ [_ESA]: [, input[_ESA]],
579
+ [_FN]: [, input[_FN]],
580
+ [_M]: [, input[_M]],
581
+ [_MI]: [() => input.MaxItems !== void 0, () => input[_MI].toString()],
892
582
  });
893
583
  let body;
894
- return new protocol_http_1.HttpRequest({
895
- protocol,
896
- hostname,
897
- port,
898
- method: "GET",
899
- headers,
900
- path: resolvedPath,
901
- query,
902
- body,
903
- });
584
+ b.m("GET").h(headers).q(query).b(body);
585
+ return b.build();
904
586
  };
905
587
  exports.se_ListEventSourceMappingsCommand = se_ListEventSourceMappingsCommand;
906
588
  const se_ListFunctionEventInvokeConfigsCommand = async (input, context) => {
907
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
589
+ const b = (0, core_1.requestBuilder)(input, context);
908
590
  const headers = {};
909
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
910
- "/2019-09-25/functions/{FunctionName}/event-invoke-config/list";
911
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FunctionName", () => input.FunctionName, "{FunctionName}", false);
591
+ b.bp("/2019-09-25/functions/{FunctionName}/event-invoke-config/list");
592
+ b.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
912
593
  const query = (0, smithy_client_1.map)({
913
- Marker: [, input.Marker],
914
- MaxItems: [() => input.MaxItems !== void 0, () => input.MaxItems.toString()],
594
+ [_M]: [, input[_M]],
595
+ [_MI]: [() => input.MaxItems !== void 0, () => input[_MI].toString()],
915
596
  });
916
597
  let body;
917
- return new protocol_http_1.HttpRequest({
918
- protocol,
919
- hostname,
920
- port,
921
- method: "GET",
922
- headers,
923
- path: resolvedPath,
924
- query,
925
- body,
926
- });
598
+ b.m("GET").h(headers).q(query).b(body);
599
+ return b.build();
927
600
  };
928
601
  exports.se_ListFunctionEventInvokeConfigsCommand = se_ListFunctionEventInvokeConfigsCommand;
929
602
  const se_ListFunctionsCommand = async (input, context) => {
930
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
603
+ const b = (0, core_1.requestBuilder)(input, context);
931
604
  const headers = {};
932
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-03-31/functions";
605
+ b.bp("/2015-03-31/functions");
933
606
  const query = (0, smithy_client_1.map)({
934
- MasterRegion: [, input.MasterRegion],
935
- FunctionVersion: [, input.FunctionVersion],
936
- Marker: [, input.Marker],
937
- MaxItems: [() => input.MaxItems !== void 0, () => input.MaxItems.toString()],
607
+ [_MR]: [, input[_MR]],
608
+ [_FV]: [, input[_FV]],
609
+ [_M]: [, input[_M]],
610
+ [_MI]: [() => input.MaxItems !== void 0, () => input[_MI].toString()],
938
611
  });
939
612
  let body;
940
- return new protocol_http_1.HttpRequest({
941
- protocol,
942
- hostname,
943
- port,
944
- method: "GET",
945
- headers,
946
- path: resolvedPath,
947
- query,
948
- body,
949
- });
613
+ b.m("GET").h(headers).q(query).b(body);
614
+ return b.build();
950
615
  };
951
616
  exports.se_ListFunctionsCommand = se_ListFunctionsCommand;
952
617
  const se_ListFunctionsByCodeSigningConfigCommand = async (input, context) => {
953
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
618
+ const b = (0, core_1.requestBuilder)(input, context);
954
619
  const headers = {};
955
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
956
- "/2020-04-22/code-signing-configs/{CodeSigningConfigArn}/functions";
957
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CodeSigningConfigArn", () => input.CodeSigningConfigArn, "{CodeSigningConfigArn}", false);
620
+ b.bp("/2020-04-22/code-signing-configs/{CodeSigningConfigArn}/functions");
621
+ b.p("CodeSigningConfigArn", () => input.CodeSigningConfigArn, "{CodeSigningConfigArn}", false);
958
622
  const query = (0, smithy_client_1.map)({
959
- Marker: [, input.Marker],
960
- MaxItems: [() => input.MaxItems !== void 0, () => input.MaxItems.toString()],
623
+ [_M]: [, input[_M]],
624
+ [_MI]: [() => input.MaxItems !== void 0, () => input[_MI].toString()],
961
625
  });
962
626
  let body;
963
- return new protocol_http_1.HttpRequest({
964
- protocol,
965
- hostname,
966
- port,
967
- method: "GET",
968
- headers,
969
- path: resolvedPath,
970
- query,
971
- body,
972
- });
627
+ b.m("GET").h(headers).q(query).b(body);
628
+ return b.build();
973
629
  };
974
630
  exports.se_ListFunctionsByCodeSigningConfigCommand = se_ListFunctionsByCodeSigningConfigCommand;
975
631
  const se_ListFunctionUrlConfigsCommand = async (input, context) => {
976
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
632
+ const b = (0, core_1.requestBuilder)(input, context);
977
633
  const headers = {};
978
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2021-10-31/functions/{FunctionName}/urls";
979
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FunctionName", () => input.FunctionName, "{FunctionName}", false);
634
+ b.bp("/2021-10-31/functions/{FunctionName}/urls");
635
+ b.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
980
636
  const query = (0, smithy_client_1.map)({
981
- Marker: [, input.Marker],
982
- MaxItems: [() => input.MaxItems !== void 0, () => input.MaxItems.toString()],
637
+ [_M]: [, input[_M]],
638
+ [_MI]: [() => input.MaxItems !== void 0, () => input[_MI].toString()],
983
639
  });
984
640
  let body;
985
- return new protocol_http_1.HttpRequest({
986
- protocol,
987
- hostname,
988
- port,
989
- method: "GET",
990
- headers,
991
- path: resolvedPath,
992
- query,
993
- body,
994
- });
641
+ b.m("GET").h(headers).q(query).b(body);
642
+ return b.build();
995
643
  };
996
644
  exports.se_ListFunctionUrlConfigsCommand = se_ListFunctionUrlConfigsCommand;
997
645
  const se_ListLayersCommand = async (input, context) => {
998
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
646
+ const b = (0, core_1.requestBuilder)(input, context);
999
647
  const headers = {};
1000
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2018-10-31/layers";
648
+ b.bp("/2018-10-31/layers");
1001
649
  const query = (0, smithy_client_1.map)({
1002
- CompatibleRuntime: [, input.CompatibleRuntime],
1003
- Marker: [, input.Marker],
1004
- MaxItems: [() => input.MaxItems !== void 0, () => input.MaxItems.toString()],
1005
- CompatibleArchitecture: [, input.CompatibleArchitecture],
650
+ [_CR]: [, input[_CR]],
651
+ [_M]: [, input[_M]],
652
+ [_MI]: [() => input.MaxItems !== void 0, () => input[_MI].toString()],
653
+ [_CA]: [, input[_CA]],
1006
654
  });
1007
655
  let body;
1008
- return new protocol_http_1.HttpRequest({
1009
- protocol,
1010
- hostname,
1011
- port,
1012
- method: "GET",
1013
- headers,
1014
- path: resolvedPath,
1015
- query,
1016
- body,
1017
- });
656
+ b.m("GET").h(headers).q(query).b(body);
657
+ return b.build();
1018
658
  };
1019
659
  exports.se_ListLayersCommand = se_ListLayersCommand;
1020
660
  const se_ListLayerVersionsCommand = async (input, context) => {
1021
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
661
+ const b = (0, core_1.requestBuilder)(input, context);
1022
662
  const headers = {};
1023
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2018-10-31/layers/{LayerName}/versions";
1024
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "LayerName", () => input.LayerName, "{LayerName}", false);
663
+ b.bp("/2018-10-31/layers/{LayerName}/versions");
664
+ b.p("LayerName", () => input.LayerName, "{LayerName}", false);
1025
665
  const query = (0, smithy_client_1.map)({
1026
- CompatibleRuntime: [, input.CompatibleRuntime],
1027
- Marker: [, input.Marker],
1028
- MaxItems: [() => input.MaxItems !== void 0, () => input.MaxItems.toString()],
1029
- CompatibleArchitecture: [, input.CompatibleArchitecture],
666
+ [_CR]: [, input[_CR]],
667
+ [_M]: [, input[_M]],
668
+ [_MI]: [() => input.MaxItems !== void 0, () => input[_MI].toString()],
669
+ [_CA]: [, input[_CA]],
1030
670
  });
1031
671
  let body;
1032
- return new protocol_http_1.HttpRequest({
1033
- protocol,
1034
- hostname,
1035
- port,
1036
- method: "GET",
1037
- headers,
1038
- path: resolvedPath,
1039
- query,
1040
- body,
1041
- });
672
+ b.m("GET").h(headers).q(query).b(body);
673
+ return b.build();
1042
674
  };
1043
675
  exports.se_ListLayerVersionsCommand = se_ListLayerVersionsCommand;
1044
676
  const se_ListProvisionedConcurrencyConfigsCommand = async (input, context) => {
1045
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
677
+ const b = (0, core_1.requestBuilder)(input, context);
1046
678
  const headers = {};
1047
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1048
- "/2019-09-30/functions/{FunctionName}/provisioned-concurrency";
1049
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FunctionName", () => input.FunctionName, "{FunctionName}", false);
679
+ b.bp("/2019-09-30/functions/{FunctionName}/provisioned-concurrency");
680
+ b.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
1050
681
  const query = (0, smithy_client_1.map)({
1051
- List: [, "ALL"],
1052
- Marker: [, input.Marker],
1053
- MaxItems: [() => input.MaxItems !== void 0, () => input.MaxItems.toString()],
682
+ [_L]: [, "ALL"],
683
+ [_M]: [, input[_M]],
684
+ [_MI]: [() => input.MaxItems !== void 0, () => input[_MI].toString()],
1054
685
  });
1055
686
  let body;
1056
- return new protocol_http_1.HttpRequest({
1057
- protocol,
1058
- hostname,
1059
- port,
1060
- method: "GET",
1061
- headers,
1062
- path: resolvedPath,
1063
- query,
1064
- body,
1065
- });
687
+ b.m("GET").h(headers).q(query).b(body);
688
+ return b.build();
1066
689
  };
1067
690
  exports.se_ListProvisionedConcurrencyConfigsCommand = se_ListProvisionedConcurrencyConfigsCommand;
1068
691
  const se_ListTagsCommand = async (input, context) => {
1069
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
692
+ const b = (0, core_1.requestBuilder)(input, context);
1070
693
  const headers = {};
1071
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2017-03-31/tags/{Resource}";
1072
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Resource", () => input.Resource, "{Resource}", false);
694
+ b.bp("/2017-03-31/tags/{Resource}");
695
+ b.p("Resource", () => input.Resource, "{Resource}", false);
1073
696
  let body;
1074
- return new protocol_http_1.HttpRequest({
1075
- protocol,
1076
- hostname,
1077
- port,
1078
- method: "GET",
1079
- headers,
1080
- path: resolvedPath,
1081
- body,
1082
- });
697
+ b.m("GET").h(headers).b(body);
698
+ return b.build();
1083
699
  };
1084
700
  exports.se_ListTagsCommand = se_ListTagsCommand;
1085
701
  const se_ListVersionsByFunctionCommand = async (input, context) => {
1086
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
702
+ const b = (0, core_1.requestBuilder)(input, context);
1087
703
  const headers = {};
1088
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1089
- "/2015-03-31/functions/{FunctionName}/versions";
1090
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FunctionName", () => input.FunctionName, "{FunctionName}", false);
704
+ b.bp("/2015-03-31/functions/{FunctionName}/versions");
705
+ b.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
1091
706
  const query = (0, smithy_client_1.map)({
1092
- Marker: [, input.Marker],
1093
- MaxItems: [() => input.MaxItems !== void 0, () => input.MaxItems.toString()],
707
+ [_M]: [, input[_M]],
708
+ [_MI]: [() => input.MaxItems !== void 0, () => input[_MI].toString()],
1094
709
  });
1095
710
  let body;
1096
- return new protocol_http_1.HttpRequest({
1097
- protocol,
1098
- hostname,
1099
- port,
1100
- method: "GET",
1101
- headers,
1102
- path: resolvedPath,
1103
- query,
1104
- body,
1105
- });
711
+ b.m("GET").h(headers).q(query).b(body);
712
+ return b.build();
1106
713
  };
1107
714
  exports.se_ListVersionsByFunctionCommand = se_ListVersionsByFunctionCommand;
1108
715
  const se_PublishLayerVersionCommand = async (input, context) => {
1109
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
716
+ const b = (0, core_1.requestBuilder)(input, context);
1110
717
  const headers = {
1111
718
  "content-type": "application/json",
1112
719
  };
1113
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2018-10-31/layers/{LayerName}/versions";
1114
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "LayerName", () => input.LayerName, "{LayerName}", false);
720
+ b.bp("/2018-10-31/layers/{LayerName}/versions");
721
+ b.p("LayerName", () => input.LayerName, "{LayerName}", false);
1115
722
  let body;
1116
723
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1117
724
  CompatibleArchitectures: (_) => (0, smithy_client_1._json)(_),
@@ -1120,98 +727,66 @@ const se_PublishLayerVersionCommand = async (input, context) => {
1120
727
  Description: [],
1121
728
  LicenseInfo: [],
1122
729
  }));
1123
- return new protocol_http_1.HttpRequest({
1124
- protocol,
1125
- hostname,
1126
- port,
1127
- method: "POST",
1128
- headers,
1129
- path: resolvedPath,
1130
- body,
1131
- });
730
+ b.m("POST").h(headers).b(body);
731
+ return b.build();
1132
732
  };
1133
733
  exports.se_PublishLayerVersionCommand = se_PublishLayerVersionCommand;
1134
734
  const se_PublishVersionCommand = async (input, context) => {
1135
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
735
+ const b = (0, core_1.requestBuilder)(input, context);
1136
736
  const headers = {
1137
737
  "content-type": "application/json",
1138
738
  };
1139
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1140
- "/2015-03-31/functions/{FunctionName}/versions";
1141
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FunctionName", () => input.FunctionName, "{FunctionName}", false);
739
+ b.bp("/2015-03-31/functions/{FunctionName}/versions");
740
+ b.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
1142
741
  let body;
1143
742
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1144
743
  CodeSha256: [],
1145
744
  Description: [],
1146
745
  RevisionId: [],
1147
746
  }));
1148
- return new protocol_http_1.HttpRequest({
1149
- protocol,
1150
- hostname,
1151
- port,
1152
- method: "POST",
1153
- headers,
1154
- path: resolvedPath,
1155
- body,
1156
- });
747
+ b.m("POST").h(headers).b(body);
748
+ return b.build();
1157
749
  };
1158
750
  exports.se_PublishVersionCommand = se_PublishVersionCommand;
1159
751
  const se_PutFunctionCodeSigningConfigCommand = async (input, context) => {
1160
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
752
+ const b = (0, core_1.requestBuilder)(input, context);
1161
753
  const headers = {
1162
754
  "content-type": "application/json",
1163
755
  };
1164
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1165
- "/2020-06-30/functions/{FunctionName}/code-signing-config";
1166
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FunctionName", () => input.FunctionName, "{FunctionName}", false);
756
+ b.bp("/2020-06-30/functions/{FunctionName}/code-signing-config");
757
+ b.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
1167
758
  let body;
1168
759
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1169
760
  CodeSigningConfigArn: [],
1170
761
  }));
1171
- return new protocol_http_1.HttpRequest({
1172
- protocol,
1173
- hostname,
1174
- port,
1175
- method: "PUT",
1176
- headers,
1177
- path: resolvedPath,
1178
- body,
1179
- });
762
+ b.m("PUT").h(headers).b(body);
763
+ return b.build();
1180
764
  };
1181
765
  exports.se_PutFunctionCodeSigningConfigCommand = se_PutFunctionCodeSigningConfigCommand;
1182
766
  const se_PutFunctionConcurrencyCommand = async (input, context) => {
1183
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
767
+ const b = (0, core_1.requestBuilder)(input, context);
1184
768
  const headers = {
1185
769
  "content-type": "application/json",
1186
770
  };
1187
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1188
- "/2017-10-31/functions/{FunctionName}/concurrency";
1189
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FunctionName", () => input.FunctionName, "{FunctionName}", false);
771
+ b.bp("/2017-10-31/functions/{FunctionName}/concurrency");
772
+ b.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
1190
773
  let body;
1191
774
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1192
775
  ReservedConcurrentExecutions: [],
1193
776
  }));
1194
- return new protocol_http_1.HttpRequest({
1195
- protocol,
1196
- hostname,
1197
- port,
1198
- method: "PUT",
1199
- headers,
1200
- path: resolvedPath,
1201
- body,
1202
- });
777
+ b.m("PUT").h(headers).b(body);
778
+ return b.build();
1203
779
  };
1204
780
  exports.se_PutFunctionConcurrencyCommand = se_PutFunctionConcurrencyCommand;
1205
781
  const se_PutFunctionEventInvokeConfigCommand = async (input, context) => {
1206
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
782
+ const b = (0, core_1.requestBuilder)(input, context);
1207
783
  const headers = {
1208
784
  "content-type": "application/json",
1209
785
  };
1210
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1211
- "/2019-09-25/functions/{FunctionName}/event-invoke-config";
1212
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FunctionName", () => input.FunctionName, "{FunctionName}", false);
786
+ b.bp("/2019-09-25/functions/{FunctionName}/event-invoke-config");
787
+ b.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
1213
788
  const query = (0, smithy_client_1.map)({
1214
- Qualifier: [, input.Qualifier],
789
+ [_Q]: [, input[_Q]],
1215
790
  });
1216
791
  let body;
1217
792
  body = JSON.stringify((0, smithy_client_1.take)(input, {
@@ -1219,176 +794,116 @@ const se_PutFunctionEventInvokeConfigCommand = async (input, context) => {
1219
794
  MaximumEventAgeInSeconds: [],
1220
795
  MaximumRetryAttempts: [],
1221
796
  }));
1222
- return new protocol_http_1.HttpRequest({
1223
- protocol,
1224
- hostname,
1225
- port,
1226
- method: "PUT",
1227
- headers,
1228
- path: resolvedPath,
1229
- query,
1230
- body,
1231
- });
797
+ b.m("PUT").h(headers).q(query).b(body);
798
+ return b.build();
1232
799
  };
1233
800
  exports.se_PutFunctionEventInvokeConfigCommand = se_PutFunctionEventInvokeConfigCommand;
1234
801
  const se_PutProvisionedConcurrencyConfigCommand = async (input, context) => {
1235
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
802
+ const b = (0, core_1.requestBuilder)(input, context);
1236
803
  const headers = {
1237
804
  "content-type": "application/json",
1238
805
  };
1239
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1240
- "/2019-09-30/functions/{FunctionName}/provisioned-concurrency";
1241
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FunctionName", () => input.FunctionName, "{FunctionName}", false);
806
+ b.bp("/2019-09-30/functions/{FunctionName}/provisioned-concurrency");
807
+ b.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
1242
808
  const query = (0, smithy_client_1.map)({
1243
- Qualifier: [, (0, smithy_client_1.expectNonNull)(input.Qualifier, `Qualifier`)],
809
+ [_Q]: [, (0, smithy_client_1.expectNonNull)(input[_Q], `Qualifier`)],
1244
810
  });
1245
811
  let body;
1246
812
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1247
813
  ProvisionedConcurrentExecutions: [],
1248
814
  }));
1249
- return new protocol_http_1.HttpRequest({
1250
- protocol,
1251
- hostname,
1252
- port,
1253
- method: "PUT",
1254
- headers,
1255
- path: resolvedPath,
1256
- query,
1257
- body,
1258
- });
815
+ b.m("PUT").h(headers).q(query).b(body);
816
+ return b.build();
1259
817
  };
1260
818
  exports.se_PutProvisionedConcurrencyConfigCommand = se_PutProvisionedConcurrencyConfigCommand;
1261
819
  const se_PutRuntimeManagementConfigCommand = async (input, context) => {
1262
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
820
+ const b = (0, core_1.requestBuilder)(input, context);
1263
821
  const headers = {
1264
822
  "content-type": "application/json",
1265
823
  };
1266
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1267
- "/2021-07-20/functions/{FunctionName}/runtime-management-config";
1268
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FunctionName", () => input.FunctionName, "{FunctionName}", false);
824
+ b.bp("/2021-07-20/functions/{FunctionName}/runtime-management-config");
825
+ b.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
1269
826
  const query = (0, smithy_client_1.map)({
1270
- Qualifier: [, input.Qualifier],
827
+ [_Q]: [, input[_Q]],
1271
828
  });
1272
829
  let body;
1273
830
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1274
831
  RuntimeVersionArn: [],
1275
832
  UpdateRuntimeOn: [],
1276
833
  }));
1277
- return new protocol_http_1.HttpRequest({
1278
- protocol,
1279
- hostname,
1280
- port,
1281
- method: "PUT",
1282
- headers,
1283
- path: resolvedPath,
1284
- query,
1285
- body,
1286
- });
834
+ b.m("PUT").h(headers).q(query).b(body);
835
+ return b.build();
1287
836
  };
1288
837
  exports.se_PutRuntimeManagementConfigCommand = se_PutRuntimeManagementConfigCommand;
1289
838
  const se_RemoveLayerVersionPermissionCommand = async (input, context) => {
1290
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
839
+ const b = (0, core_1.requestBuilder)(input, context);
1291
840
  const headers = {};
1292
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1293
- "/2018-10-31/layers/{LayerName}/versions/{VersionNumber}/policy/{StatementId}";
1294
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "LayerName", () => input.LayerName, "{LayerName}", false);
1295
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VersionNumber", () => input.VersionNumber.toString(), "{VersionNumber}", false);
1296
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "StatementId", () => input.StatementId, "{StatementId}", false);
841
+ b.bp("/2018-10-31/layers/{LayerName}/versions/{VersionNumber}/policy/{StatementId}");
842
+ b.p("LayerName", () => input.LayerName, "{LayerName}", false);
843
+ b.p("VersionNumber", () => input.VersionNumber.toString(), "{VersionNumber}", false);
844
+ b.p("StatementId", () => input.StatementId, "{StatementId}", false);
1297
845
  const query = (0, smithy_client_1.map)({
1298
- RevisionId: [, input.RevisionId],
846
+ [_RI]: [, input[_RI]],
1299
847
  });
1300
848
  let body;
1301
- return new protocol_http_1.HttpRequest({
1302
- protocol,
1303
- hostname,
1304
- port,
1305
- method: "DELETE",
1306
- headers,
1307
- path: resolvedPath,
1308
- query,
1309
- body,
1310
- });
849
+ b.m("DELETE").h(headers).q(query).b(body);
850
+ return b.build();
1311
851
  };
1312
852
  exports.se_RemoveLayerVersionPermissionCommand = se_RemoveLayerVersionPermissionCommand;
1313
853
  const se_RemovePermissionCommand = async (input, context) => {
1314
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
854
+ const b = (0, core_1.requestBuilder)(input, context);
1315
855
  const headers = {};
1316
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1317
- "/2015-03-31/functions/{FunctionName}/policy/{StatementId}";
1318
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FunctionName", () => input.FunctionName, "{FunctionName}", false);
1319
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "StatementId", () => input.StatementId, "{StatementId}", false);
856
+ b.bp("/2015-03-31/functions/{FunctionName}/policy/{StatementId}");
857
+ b.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
858
+ b.p("StatementId", () => input.StatementId, "{StatementId}", false);
1320
859
  const query = (0, smithy_client_1.map)({
1321
- Qualifier: [, input.Qualifier],
1322
- RevisionId: [, input.RevisionId],
860
+ [_Q]: [, input[_Q]],
861
+ [_RI]: [, input[_RI]],
1323
862
  });
1324
863
  let body;
1325
- return new protocol_http_1.HttpRequest({
1326
- protocol,
1327
- hostname,
1328
- port,
1329
- method: "DELETE",
1330
- headers,
1331
- path: resolvedPath,
1332
- query,
1333
- body,
1334
- });
864
+ b.m("DELETE").h(headers).q(query).b(body);
865
+ return b.build();
1335
866
  };
1336
867
  exports.se_RemovePermissionCommand = se_RemovePermissionCommand;
1337
868
  const se_TagResourceCommand = async (input, context) => {
1338
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
869
+ const b = (0, core_1.requestBuilder)(input, context);
1339
870
  const headers = {
1340
871
  "content-type": "application/json",
1341
872
  };
1342
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2017-03-31/tags/{Resource}";
1343
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Resource", () => input.Resource, "{Resource}", false);
873
+ b.bp("/2017-03-31/tags/{Resource}");
874
+ b.p("Resource", () => input.Resource, "{Resource}", false);
1344
875
  let body;
1345
876
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1346
877
  Tags: (_) => (0, smithy_client_1._json)(_),
1347
878
  }));
1348
- return new protocol_http_1.HttpRequest({
1349
- protocol,
1350
- hostname,
1351
- port,
1352
- method: "POST",
1353
- headers,
1354
- path: resolvedPath,
1355
- body,
1356
- });
879
+ b.m("POST").h(headers).b(body);
880
+ return b.build();
1357
881
  };
1358
882
  exports.se_TagResourceCommand = se_TagResourceCommand;
1359
883
  const se_UntagResourceCommand = async (input, context) => {
1360
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
884
+ const b = (0, core_1.requestBuilder)(input, context);
1361
885
  const headers = {};
1362
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2017-03-31/tags/{Resource}";
1363
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Resource", () => input.Resource, "{Resource}", false);
886
+ b.bp("/2017-03-31/tags/{Resource}");
887
+ b.p("Resource", () => input.Resource, "{Resource}", false);
1364
888
  const query = (0, smithy_client_1.map)({
1365
- tagKeys: [
889
+ [_tK]: [
1366
890
  (0, smithy_client_1.expectNonNull)(input.TagKeys, `TagKeys`) != null,
1367
- () => (input.TagKeys || []).map((_entry) => _entry),
891
+ () => (input[_TK] || []).map((_entry) => _entry),
1368
892
  ],
1369
893
  });
1370
894
  let body;
1371
- return new protocol_http_1.HttpRequest({
1372
- protocol,
1373
- hostname,
1374
- port,
1375
- method: "DELETE",
1376
- headers,
1377
- path: resolvedPath,
1378
- query,
1379
- body,
1380
- });
895
+ b.m("DELETE").h(headers).q(query).b(body);
896
+ return b.build();
1381
897
  };
1382
898
  exports.se_UntagResourceCommand = se_UntagResourceCommand;
1383
899
  const se_UpdateAliasCommand = async (input, context) => {
1384
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
900
+ const b = (0, core_1.requestBuilder)(input, context);
1385
901
  const headers = {
1386
902
  "content-type": "application/json",
1387
903
  };
1388
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1389
- "/2015-03-31/functions/{FunctionName}/aliases/{Name}";
1390
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FunctionName", () => input.FunctionName, "{FunctionName}", false);
1391
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
904
+ b.bp("/2015-03-31/functions/{FunctionName}/aliases/{Name}");
905
+ b.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
906
+ b.p("Name", () => input.Name, "{Name}", false);
1392
907
  let body;
1393
908
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1394
909
  Description: [],
@@ -1396,49 +911,34 @@ const se_UpdateAliasCommand = async (input, context) => {
1396
911
  RevisionId: [],
1397
912
  RoutingConfig: (_) => se_AliasRoutingConfiguration(_, context),
1398
913
  }));
1399
- return new protocol_http_1.HttpRequest({
1400
- protocol,
1401
- hostname,
1402
- port,
1403
- method: "PUT",
1404
- headers,
1405
- path: resolvedPath,
1406
- body,
1407
- });
914
+ b.m("PUT").h(headers).b(body);
915
+ return b.build();
1408
916
  };
1409
917
  exports.se_UpdateAliasCommand = se_UpdateAliasCommand;
1410
918
  const se_UpdateCodeSigningConfigCommand = async (input, context) => {
1411
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
919
+ const b = (0, core_1.requestBuilder)(input, context);
1412
920
  const headers = {
1413
921
  "content-type": "application/json",
1414
922
  };
1415
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1416
- "/2020-04-22/code-signing-configs/{CodeSigningConfigArn}";
1417
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CodeSigningConfigArn", () => input.CodeSigningConfigArn, "{CodeSigningConfigArn}", false);
923
+ b.bp("/2020-04-22/code-signing-configs/{CodeSigningConfigArn}");
924
+ b.p("CodeSigningConfigArn", () => input.CodeSigningConfigArn, "{CodeSigningConfigArn}", false);
1418
925
  let body;
1419
926
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1420
927
  AllowedPublishers: (_) => (0, smithy_client_1._json)(_),
1421
928
  CodeSigningPolicies: (_) => (0, smithy_client_1._json)(_),
1422
929
  Description: [],
1423
930
  }));
1424
- return new protocol_http_1.HttpRequest({
1425
- protocol,
1426
- hostname,
1427
- port,
1428
- method: "PUT",
1429
- headers,
1430
- path: resolvedPath,
1431
- body,
1432
- });
931
+ b.m("PUT").h(headers).b(body);
932
+ return b.build();
1433
933
  };
1434
934
  exports.se_UpdateCodeSigningConfigCommand = se_UpdateCodeSigningConfigCommand;
1435
935
  const se_UpdateEventSourceMappingCommand = async (input, context) => {
1436
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
936
+ const b = (0, core_1.requestBuilder)(input, context);
1437
937
  const headers = {
1438
938
  "content-type": "application/json",
1439
939
  };
1440
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-03-31/event-source-mappings/{UUID}";
1441
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "UUID", () => input.UUID, "{UUID}", false);
940
+ b.bp("/2015-03-31/event-source-mappings/{UUID}");
941
+ b.p("UUID", () => input.UUID, "{UUID}", false);
1442
942
  let body;
1443
943
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1444
944
  BatchSize: [],
@@ -1457,24 +957,17 @@ const se_UpdateEventSourceMappingCommand = async (input, context) => {
1457
957
  SourceAccessConfigurations: (_) => (0, smithy_client_1._json)(_),
1458
958
  TumblingWindowInSeconds: [],
1459
959
  }));
1460
- return new protocol_http_1.HttpRequest({
1461
- protocol,
1462
- hostname,
1463
- port,
1464
- method: "PUT",
1465
- headers,
1466
- path: resolvedPath,
1467
- body,
1468
- });
960
+ b.m("PUT").h(headers).b(body);
961
+ return b.build();
1469
962
  };
1470
963
  exports.se_UpdateEventSourceMappingCommand = se_UpdateEventSourceMappingCommand;
1471
964
  const se_UpdateFunctionCodeCommand = async (input, context) => {
1472
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
965
+ const b = (0, core_1.requestBuilder)(input, context);
1473
966
  const headers = {
1474
967
  "content-type": "application/json",
1475
968
  };
1476
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-03-31/functions/{FunctionName}/code";
1477
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FunctionName", () => input.FunctionName, "{FunctionName}", false);
969
+ b.bp("/2015-03-31/functions/{FunctionName}/code");
970
+ b.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
1478
971
  let body;
1479
972
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1480
973
  Architectures: (_) => (0, smithy_client_1._json)(_),
@@ -1487,25 +980,17 @@ const se_UpdateFunctionCodeCommand = async (input, context) => {
1487
980
  S3ObjectVersion: [],
1488
981
  ZipFile: (_) => context.base64Encoder(_),
1489
982
  }));
1490
- return new protocol_http_1.HttpRequest({
1491
- protocol,
1492
- hostname,
1493
- port,
1494
- method: "PUT",
1495
- headers,
1496
- path: resolvedPath,
1497
- body,
1498
- });
983
+ b.m("PUT").h(headers).b(body);
984
+ return b.build();
1499
985
  };
1500
986
  exports.se_UpdateFunctionCodeCommand = se_UpdateFunctionCodeCommand;
1501
987
  const se_UpdateFunctionConfigurationCommand = async (input, context) => {
1502
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
988
+ const b = (0, core_1.requestBuilder)(input, context);
1503
989
  const headers = {
1504
990
  "content-type": "application/json",
1505
991
  };
1506
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1507
- "/2015-03-31/functions/{FunctionName}/configuration";
1508
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FunctionName", () => input.FunctionName, "{FunctionName}", false);
992
+ b.bp("/2015-03-31/functions/{FunctionName}/configuration");
993
+ b.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
1509
994
  let body;
1510
995
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1511
996
  DeadLetterConfig: (_) => (0, smithy_client_1._json)(_),
@@ -1527,27 +1012,19 @@ const se_UpdateFunctionConfigurationCommand = async (input, context) => {
1527
1012
  TracingConfig: (_) => (0, smithy_client_1._json)(_),
1528
1013
  VpcConfig: (_) => (0, smithy_client_1._json)(_),
1529
1014
  }));
1530
- return new protocol_http_1.HttpRequest({
1531
- protocol,
1532
- hostname,
1533
- port,
1534
- method: "PUT",
1535
- headers,
1536
- path: resolvedPath,
1537
- body,
1538
- });
1015
+ b.m("PUT").h(headers).b(body);
1016
+ return b.build();
1539
1017
  };
1540
1018
  exports.se_UpdateFunctionConfigurationCommand = se_UpdateFunctionConfigurationCommand;
1541
1019
  const se_UpdateFunctionEventInvokeConfigCommand = async (input, context) => {
1542
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1020
+ const b = (0, core_1.requestBuilder)(input, context);
1543
1021
  const headers = {
1544
1022
  "content-type": "application/json",
1545
1023
  };
1546
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1547
- "/2019-09-25/functions/{FunctionName}/event-invoke-config";
1548
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FunctionName", () => input.FunctionName, "{FunctionName}", false);
1024
+ b.bp("/2019-09-25/functions/{FunctionName}/event-invoke-config");
1025
+ b.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
1549
1026
  const query = (0, smithy_client_1.map)({
1550
- Qualifier: [, input.Qualifier],
1027
+ [_Q]: [, input[_Q]],
1551
1028
  });
1552
1029
  let body;
1553
1030
  body = JSON.stringify((0, smithy_client_1.take)(input, {
@@ -1555,27 +1032,19 @@ const se_UpdateFunctionEventInvokeConfigCommand = async (input, context) => {
1555
1032
  MaximumEventAgeInSeconds: [],
1556
1033
  MaximumRetryAttempts: [],
1557
1034
  }));
1558
- return new protocol_http_1.HttpRequest({
1559
- protocol,
1560
- hostname,
1561
- port,
1562
- method: "POST",
1563
- headers,
1564
- path: resolvedPath,
1565
- query,
1566
- body,
1567
- });
1035
+ b.m("POST").h(headers).q(query).b(body);
1036
+ return b.build();
1568
1037
  };
1569
1038
  exports.se_UpdateFunctionEventInvokeConfigCommand = se_UpdateFunctionEventInvokeConfigCommand;
1570
1039
  const se_UpdateFunctionUrlConfigCommand = async (input, context) => {
1571
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1040
+ const b = (0, core_1.requestBuilder)(input, context);
1572
1041
  const headers = {
1573
1042
  "content-type": "application/json",
1574
1043
  };
1575
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2021-10-31/functions/{FunctionName}/url";
1576
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FunctionName", () => input.FunctionName, "{FunctionName}", false);
1044
+ b.bp("/2021-10-31/functions/{FunctionName}/url");
1045
+ b.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
1577
1046
  const query = (0, smithy_client_1.map)({
1578
- Qualifier: [, input.Qualifier],
1047
+ [_Q]: [, input[_Q]],
1579
1048
  });
1580
1049
  let body;
1581
1050
  body = JSON.stringify((0, smithy_client_1.take)(input, {
@@ -1583,16 +1052,8 @@ const se_UpdateFunctionUrlConfigCommand = async (input, context) => {
1583
1052
  Cors: (_) => (0, smithy_client_1._json)(_),
1584
1053
  InvokeMode: [],
1585
1054
  }));
1586
- return new protocol_http_1.HttpRequest({
1587
- protocol,
1588
- hostname,
1589
- port,
1590
- method: "PUT",
1591
- headers,
1592
- path: resolvedPath,
1593
- query,
1594
- body,
1595
- });
1055
+ b.m("PUT").h(headers).q(query).b(body);
1056
+ return b.build();
1596
1057
  };
1597
1058
  exports.se_UpdateFunctionUrlConfigCommand = se_UpdateFunctionUrlConfigCommand;
1598
1059
  const de_AddLayerVersionPermissionCommand = async (output, context) => {
@@ -3236,9 +2697,9 @@ const de_InvokeCommand = async (output, context) => {
3236
2697
  }
3237
2698
  const contents = (0, smithy_client_1.map)({
3238
2699
  $metadata: deserializeMetadata(output),
3239
- FunctionError: [, output.headers["x-amz-function-error"]],
3240
- LogResult: [, output.headers["x-amz-log-result"]],
3241
- ExecutedVersion: [, output.headers["x-amz-executed-version"]],
2700
+ [_FE]: [, output.headers[_xafe]],
2701
+ [_LR]: [, output.headers[_xalr]],
2702
+ [_EV]: [, output.headers[_xaev]],
3242
2703
  });
3243
2704
  const data = await (0, smithy_client_1.collectBody)(output.body, context);
3244
2705
  contents.Payload = data;
@@ -3405,8 +2866,8 @@ const de_InvokeWithResponseStreamCommand = async (output, context) => {
3405
2866
  }
3406
2867
  const contents = (0, smithy_client_1.map)({
3407
2868
  $metadata: deserializeMetadata(output),
3408
- ExecutedVersion: [, output.headers["x-amz-executed-version"]],
3409
- ResponseStreamContentType: [, output.headers["content-type"]],
2869
+ [_EV]: [, output.headers[_xaev]],
2870
+ [_RSCT]: [, output.headers[_ct]],
3410
2871
  });
3411
2872
  const data = output.body;
3412
2873
  contents.EventStream = de_InvokeWithResponseStreamResponseEvent(data, context);
@@ -5556,7 +5017,7 @@ const de_SubnetIPAddressLimitReachedExceptionRes = async (parsedOutput, context)
5556
5017
  };
5557
5018
  const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
5558
5019
  const contents = (0, smithy_client_1.map)({
5559
- retryAfterSeconds: [, parsedOutput.headers["retry-after"]],
5020
+ [_rAS]: [, parsedOutput.headers[_ra]],
5560
5021
  });
5561
5022
  const data = parsedOutput.body;
5562
5023
  const doc = (0, smithy_client_1.take)(data, {
@@ -5742,6 +5203,37 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
5742
5203
  value !== "" &&
5743
5204
  (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
5744
5205
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
5206
+ const _A = "Arn";
5207
+ const _CA = "CompatibleArchitecture";
5208
+ const _CC = "ClientContext";
5209
+ const _CR = "CompatibleRuntime";
5210
+ const _ESA = "EventSourceArn";
5211
+ const _EV = "ExecutedVersion";
5212
+ const _FE = "FunctionError";
5213
+ const _FN = "FunctionName";
5214
+ const _FV = "FunctionVersion";
5215
+ const _IT = "InvocationType";
5216
+ const _L = "List";
5217
+ const _LR = "LogResult";
5218
+ const _LT = "LogType";
5219
+ const _M = "Marker";
5220
+ const _MI = "MaxItems";
5221
+ const _MR = "MasterRegion";
5222
+ const _Q = "Qualifier";
5223
+ const _RI = "RevisionId";
5224
+ const _RSCT = "ResponseStreamContentType";
5225
+ const _TK = "TagKeys";
5226
+ const _ct = "content-type";
5227
+ const _f = "find";
5228
+ const _rAS = "retryAfterSeconds";
5229
+ const _ra = "retry-after";
5230
+ const _tK = "tagKeys";
5231
+ const _xacc = "x-amz-client-context";
5232
+ const _xaev = "x-amz-executed-version";
5233
+ const _xafe = "x-amz-function-error";
5234
+ const _xait = "x-amz-invocation-type";
5235
+ const _xalr = "x-amz-log-result";
5236
+ const _xalt = "x-amz-log-type";
5745
5237
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
5746
5238
  if (encoded.length) {
5747
5239
  return JSON.parse(encoded);