@aws-sdk/client-amplify 3.476.0 → 3.477.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,16 +2,16 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.de_GenerateAccessLogsCommand = exports.de_DeleteWebhookCommand = exports.de_DeleteJobCommand = exports.de_DeleteDomainAssociationCommand = exports.de_DeleteBranchCommand = exports.de_DeleteBackendEnvironmentCommand = exports.de_DeleteAppCommand = exports.de_CreateWebhookCommand = exports.de_CreateDomainAssociationCommand = exports.de_CreateDeploymentCommand = exports.de_CreateBranchCommand = exports.de_CreateBackendEnvironmentCommand = exports.de_CreateAppCommand = exports.se_UpdateWebhookCommand = exports.se_UpdateDomainAssociationCommand = exports.se_UpdateBranchCommand = exports.se_UpdateAppCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StopJobCommand = exports.se_StartJobCommand = exports.se_StartDeploymentCommand = exports.se_ListWebhooksCommand = exports.se_ListTagsForResourceCommand = exports.se_ListJobsCommand = exports.se_ListDomainAssociationsCommand = exports.se_ListBranchesCommand = exports.se_ListBackendEnvironmentsCommand = exports.se_ListArtifactsCommand = exports.se_ListAppsCommand = exports.se_GetWebhookCommand = exports.se_GetJobCommand = exports.se_GetDomainAssociationCommand = exports.se_GetBranchCommand = exports.se_GetBackendEnvironmentCommand = exports.se_GetArtifactUrlCommand = exports.se_GetAppCommand = exports.se_GenerateAccessLogsCommand = exports.se_DeleteWebhookCommand = exports.se_DeleteJobCommand = exports.se_DeleteDomainAssociationCommand = exports.se_DeleteBranchCommand = exports.se_DeleteBackendEnvironmentCommand = exports.se_DeleteAppCommand = exports.se_CreateWebhookCommand = exports.se_CreateDomainAssociationCommand = exports.se_CreateDeploymentCommand = exports.se_CreateBranchCommand = exports.se_CreateBackendEnvironmentCommand = exports.se_CreateAppCommand = void 0;
4
4
  exports.de_UpdateWebhookCommand = exports.de_UpdateDomainAssociationCommand = exports.de_UpdateBranchCommand = exports.de_UpdateAppCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StopJobCommand = exports.de_StartJobCommand = exports.de_StartDeploymentCommand = exports.de_ListWebhooksCommand = exports.de_ListTagsForResourceCommand = exports.de_ListJobsCommand = exports.de_ListDomainAssociationsCommand = exports.de_ListBranchesCommand = exports.de_ListBackendEnvironmentsCommand = exports.de_ListArtifactsCommand = exports.de_ListAppsCommand = exports.de_GetWebhookCommand = exports.de_GetJobCommand = exports.de_GetDomainAssociationCommand = exports.de_GetBranchCommand = exports.de_GetBackendEnvironmentCommand = exports.de_GetArtifactUrlCommand = exports.de_GetAppCommand = void 0;
5
- const protocol_http_1 = require("@smithy/protocol-http");
5
+ const core_1 = require("@smithy/core");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  const AmplifyServiceException_1 = require("../models/AmplifyServiceException");
8
8
  const models_0_1 = require("../models/models_0");
9
9
  const se_CreateAppCommand = async (input, context) => {
10
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
10
+ const b = (0, core_1.requestBuilder)(input, context);
11
11
  const headers = {
12
12
  "content-type": "application/json",
13
13
  };
14
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/apps";
14
+ b.bp("/apps");
15
15
  let body;
16
16
  body = JSON.stringify((0, smithy_client_1.take)(input, {
17
17
  accessToken: [],
@@ -34,48 +34,34 @@ const se_CreateAppCommand = async (input, context) => {
34
34
  repository: [],
35
35
  tags: (_) => (0, smithy_client_1._json)(_),
36
36
  }));
37
- return new protocol_http_1.HttpRequest({
38
- protocol,
39
- hostname,
40
- port,
41
- method: "POST",
42
- headers,
43
- path: resolvedPath,
44
- body,
45
- });
37
+ b.m("POST").h(headers).b(body);
38
+ return b.build();
46
39
  };
47
40
  exports.se_CreateAppCommand = se_CreateAppCommand;
48
41
  const se_CreateBackendEnvironmentCommand = async (input, context) => {
49
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
42
+ const b = (0, core_1.requestBuilder)(input, context);
50
43
  const headers = {
51
44
  "content-type": "application/json",
52
45
  };
53
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/apps/{appId}/backendenvironments";
54
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "appId", () => input.appId, "{appId}", false);
46
+ b.bp("/apps/{appId}/backendenvironments");
47
+ b.p("appId", () => input.appId, "{appId}", false);
55
48
  let body;
56
49
  body = JSON.stringify((0, smithy_client_1.take)(input, {
57
50
  deploymentArtifacts: [],
58
51
  environmentName: [],
59
52
  stackName: [],
60
53
  }));
61
- return new protocol_http_1.HttpRequest({
62
- protocol,
63
- hostname,
64
- port,
65
- method: "POST",
66
- headers,
67
- path: resolvedPath,
68
- body,
69
- });
54
+ b.m("POST").h(headers).b(body);
55
+ return b.build();
70
56
  };
71
57
  exports.se_CreateBackendEnvironmentCommand = se_CreateBackendEnvironmentCommand;
72
58
  const se_CreateBranchCommand = async (input, context) => {
73
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
59
+ const b = (0, core_1.requestBuilder)(input, context);
74
60
  const headers = {
75
61
  "content-type": "application/json",
76
62
  };
77
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/apps/{appId}/branches";
78
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "appId", () => input.appId, "{appId}", false);
63
+ b.bp("/apps/{appId}/branches");
64
+ b.p("appId", () => input.appId, "{appId}", false);
79
65
  let body;
80
66
  body = JSON.stringify((0, smithy_client_1.take)(input, {
81
67
  backend: (_) => (0, smithy_client_1._json)(_),
@@ -97,48 +83,33 @@ const se_CreateBranchCommand = async (input, context) => {
97
83
  tags: (_) => (0, smithy_client_1._json)(_),
98
84
  ttl: [],
99
85
  }));
100
- return new protocol_http_1.HttpRequest({
101
- protocol,
102
- hostname,
103
- port,
104
- method: "POST",
105
- headers,
106
- path: resolvedPath,
107
- body,
108
- });
86
+ b.m("POST").h(headers).b(body);
87
+ return b.build();
109
88
  };
110
89
  exports.se_CreateBranchCommand = se_CreateBranchCommand;
111
90
  const se_CreateDeploymentCommand = async (input, context) => {
112
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
91
+ const b = (0, core_1.requestBuilder)(input, context);
113
92
  const headers = {
114
93
  "content-type": "application/json",
115
94
  };
116
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
117
- "/apps/{appId}/branches/{branchName}/deployments";
118
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "appId", () => input.appId, "{appId}", false);
119
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "branchName", () => input.branchName, "{branchName}", false);
95
+ b.bp("/apps/{appId}/branches/{branchName}/deployments");
96
+ b.p("appId", () => input.appId, "{appId}", false);
97
+ b.p("branchName", () => input.branchName, "{branchName}", false);
120
98
  let body;
121
99
  body = JSON.stringify((0, smithy_client_1.take)(input, {
122
100
  fileMap: (_) => (0, smithy_client_1._json)(_),
123
101
  }));
124
- return new protocol_http_1.HttpRequest({
125
- protocol,
126
- hostname,
127
- port,
128
- method: "POST",
129
- headers,
130
- path: resolvedPath,
131
- body,
132
- });
102
+ b.m("POST").h(headers).b(body);
103
+ return b.build();
133
104
  };
134
105
  exports.se_CreateDeploymentCommand = se_CreateDeploymentCommand;
135
106
  const se_CreateDomainAssociationCommand = async (input, context) => {
136
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
107
+ const b = (0, core_1.requestBuilder)(input, context);
137
108
  const headers = {
138
109
  "content-type": "application/json",
139
110
  };
140
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/apps/{appId}/domains";
141
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "appId", () => input.appId, "{appId}", false);
111
+ b.bp("/apps/{appId}/domains");
112
+ b.p("appId", () => input.appId, "{appId}", false);
142
113
  let body;
143
114
  body = JSON.stringify((0, smithy_client_1.take)(input, {
144
115
  autoSubDomainCreationPatterns: (_) => (0, smithy_client_1._json)(_),
@@ -147,507 +118,319 @@ const se_CreateDomainAssociationCommand = async (input, context) => {
147
118
  enableAutoSubDomain: [],
148
119
  subDomainSettings: (_) => (0, smithy_client_1._json)(_),
149
120
  }));
150
- return new protocol_http_1.HttpRequest({
151
- protocol,
152
- hostname,
153
- port,
154
- method: "POST",
155
- headers,
156
- path: resolvedPath,
157
- body,
158
- });
121
+ b.m("POST").h(headers).b(body);
122
+ return b.build();
159
123
  };
160
124
  exports.se_CreateDomainAssociationCommand = se_CreateDomainAssociationCommand;
161
125
  const se_CreateWebhookCommand = async (input, context) => {
162
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
126
+ const b = (0, core_1.requestBuilder)(input, context);
163
127
  const headers = {
164
128
  "content-type": "application/json",
165
129
  };
166
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/apps/{appId}/webhooks";
167
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "appId", () => input.appId, "{appId}", false);
130
+ b.bp("/apps/{appId}/webhooks");
131
+ b.p("appId", () => input.appId, "{appId}", false);
168
132
  let body;
169
133
  body = JSON.stringify((0, smithy_client_1.take)(input, {
170
134
  branchName: [],
171
135
  description: [],
172
136
  }));
173
- return new protocol_http_1.HttpRequest({
174
- protocol,
175
- hostname,
176
- port,
177
- method: "POST",
178
- headers,
179
- path: resolvedPath,
180
- body,
181
- });
137
+ b.m("POST").h(headers).b(body);
138
+ return b.build();
182
139
  };
183
140
  exports.se_CreateWebhookCommand = se_CreateWebhookCommand;
184
141
  const se_DeleteAppCommand = async (input, context) => {
185
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
142
+ const b = (0, core_1.requestBuilder)(input, context);
186
143
  const headers = {};
187
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/apps/{appId}";
188
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "appId", () => input.appId, "{appId}", false);
144
+ b.bp("/apps/{appId}");
145
+ b.p("appId", () => input.appId, "{appId}", false);
189
146
  let body;
190
- return new protocol_http_1.HttpRequest({
191
- protocol,
192
- hostname,
193
- port,
194
- method: "DELETE",
195
- headers,
196
- path: resolvedPath,
197
- body,
198
- });
147
+ b.m("DELETE").h(headers).b(body);
148
+ return b.build();
199
149
  };
200
150
  exports.se_DeleteAppCommand = se_DeleteAppCommand;
201
151
  const se_DeleteBackendEnvironmentCommand = async (input, context) => {
202
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
152
+ const b = (0, core_1.requestBuilder)(input, context);
203
153
  const headers = {};
204
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
205
- "/apps/{appId}/backendenvironments/{environmentName}";
206
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "appId", () => input.appId, "{appId}", false);
207
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "environmentName", () => input.environmentName, "{environmentName}", false);
154
+ b.bp("/apps/{appId}/backendenvironments/{environmentName}");
155
+ b.p("appId", () => input.appId, "{appId}", false);
156
+ b.p("environmentName", () => input.environmentName, "{environmentName}", false);
208
157
  let body;
209
- return new protocol_http_1.HttpRequest({
210
- protocol,
211
- hostname,
212
- port,
213
- method: "DELETE",
214
- headers,
215
- path: resolvedPath,
216
- body,
217
- });
158
+ b.m("DELETE").h(headers).b(body);
159
+ return b.build();
218
160
  };
219
161
  exports.se_DeleteBackendEnvironmentCommand = se_DeleteBackendEnvironmentCommand;
220
162
  const se_DeleteBranchCommand = async (input, context) => {
221
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
163
+ const b = (0, core_1.requestBuilder)(input, context);
222
164
  const headers = {};
223
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/apps/{appId}/branches/{branchName}";
224
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "appId", () => input.appId, "{appId}", false);
225
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "branchName", () => input.branchName, "{branchName}", false);
165
+ b.bp("/apps/{appId}/branches/{branchName}");
166
+ b.p("appId", () => input.appId, "{appId}", false);
167
+ b.p("branchName", () => input.branchName, "{branchName}", false);
226
168
  let body;
227
- return new protocol_http_1.HttpRequest({
228
- protocol,
229
- hostname,
230
- port,
231
- method: "DELETE",
232
- headers,
233
- path: resolvedPath,
234
- body,
235
- });
169
+ b.m("DELETE").h(headers).b(body);
170
+ return b.build();
236
171
  };
237
172
  exports.se_DeleteBranchCommand = se_DeleteBranchCommand;
238
173
  const se_DeleteDomainAssociationCommand = async (input, context) => {
239
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
174
+ const b = (0, core_1.requestBuilder)(input, context);
240
175
  const headers = {};
241
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/apps/{appId}/domains/{domainName}";
242
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "appId", () => input.appId, "{appId}", false);
243
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainName", () => input.domainName, "{domainName}", false);
176
+ b.bp("/apps/{appId}/domains/{domainName}");
177
+ b.p("appId", () => input.appId, "{appId}", false);
178
+ b.p("domainName", () => input.domainName, "{domainName}", false);
244
179
  let body;
245
- return new protocol_http_1.HttpRequest({
246
- protocol,
247
- hostname,
248
- port,
249
- method: "DELETE",
250
- headers,
251
- path: resolvedPath,
252
- body,
253
- });
180
+ b.m("DELETE").h(headers).b(body);
181
+ return b.build();
254
182
  };
255
183
  exports.se_DeleteDomainAssociationCommand = se_DeleteDomainAssociationCommand;
256
184
  const se_DeleteJobCommand = async (input, context) => {
257
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
185
+ const b = (0, core_1.requestBuilder)(input, context);
258
186
  const headers = {};
259
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
260
- "/apps/{appId}/branches/{branchName}/jobs/{jobId}";
261
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "appId", () => input.appId, "{appId}", false);
262
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "branchName", () => input.branchName, "{branchName}", false);
263
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "jobId", () => input.jobId, "{jobId}", false);
187
+ b.bp("/apps/{appId}/branches/{branchName}/jobs/{jobId}");
188
+ b.p("appId", () => input.appId, "{appId}", false);
189
+ b.p("branchName", () => input.branchName, "{branchName}", false);
190
+ b.p("jobId", () => input.jobId, "{jobId}", false);
264
191
  let body;
265
- return new protocol_http_1.HttpRequest({
266
- protocol,
267
- hostname,
268
- port,
269
- method: "DELETE",
270
- headers,
271
- path: resolvedPath,
272
- body,
273
- });
192
+ b.m("DELETE").h(headers).b(body);
193
+ return b.build();
274
194
  };
275
195
  exports.se_DeleteJobCommand = se_DeleteJobCommand;
276
196
  const se_DeleteWebhookCommand = async (input, context) => {
277
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
197
+ const b = (0, core_1.requestBuilder)(input, context);
278
198
  const headers = {};
279
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/webhooks/{webhookId}";
280
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "webhookId", () => input.webhookId, "{webhookId}", false);
199
+ b.bp("/webhooks/{webhookId}");
200
+ b.p("webhookId", () => input.webhookId, "{webhookId}", false);
281
201
  let body;
282
- return new protocol_http_1.HttpRequest({
283
- protocol,
284
- hostname,
285
- port,
286
- method: "DELETE",
287
- headers,
288
- path: resolvedPath,
289
- body,
290
- });
202
+ b.m("DELETE").h(headers).b(body);
203
+ return b.build();
291
204
  };
292
205
  exports.se_DeleteWebhookCommand = se_DeleteWebhookCommand;
293
206
  const se_GenerateAccessLogsCommand = async (input, context) => {
294
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
207
+ const b = (0, core_1.requestBuilder)(input, context);
295
208
  const headers = {
296
209
  "content-type": "application/json",
297
210
  };
298
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/apps/{appId}/accesslogs";
299
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "appId", () => input.appId, "{appId}", false);
211
+ b.bp("/apps/{appId}/accesslogs");
212
+ b.p("appId", () => input.appId, "{appId}", false);
300
213
  let body;
301
214
  body = JSON.stringify((0, smithy_client_1.take)(input, {
302
215
  domainName: [],
303
216
  endTime: (_) => Math.round(_.getTime() / 1000),
304
217
  startTime: (_) => Math.round(_.getTime() / 1000),
305
218
  }));
306
- return new protocol_http_1.HttpRequest({
307
- protocol,
308
- hostname,
309
- port,
310
- method: "POST",
311
- headers,
312
- path: resolvedPath,
313
- body,
314
- });
219
+ b.m("POST").h(headers).b(body);
220
+ return b.build();
315
221
  };
316
222
  exports.se_GenerateAccessLogsCommand = se_GenerateAccessLogsCommand;
317
223
  const se_GetAppCommand = async (input, context) => {
318
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
224
+ const b = (0, core_1.requestBuilder)(input, context);
319
225
  const headers = {};
320
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/apps/{appId}";
321
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "appId", () => input.appId, "{appId}", false);
226
+ b.bp("/apps/{appId}");
227
+ b.p("appId", () => input.appId, "{appId}", false);
322
228
  let body;
323
- return new protocol_http_1.HttpRequest({
324
- protocol,
325
- hostname,
326
- port,
327
- method: "GET",
328
- headers,
329
- path: resolvedPath,
330
- body,
331
- });
229
+ b.m("GET").h(headers).b(body);
230
+ return b.build();
332
231
  };
333
232
  exports.se_GetAppCommand = se_GetAppCommand;
334
233
  const se_GetArtifactUrlCommand = async (input, context) => {
335
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
234
+ const b = (0, core_1.requestBuilder)(input, context);
336
235
  const headers = {};
337
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/artifacts/{artifactId}";
338
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "artifactId", () => input.artifactId, "{artifactId}", false);
236
+ b.bp("/artifacts/{artifactId}");
237
+ b.p("artifactId", () => input.artifactId, "{artifactId}", false);
339
238
  let body;
340
- return new protocol_http_1.HttpRequest({
341
- protocol,
342
- hostname,
343
- port,
344
- method: "GET",
345
- headers,
346
- path: resolvedPath,
347
- body,
348
- });
239
+ b.m("GET").h(headers).b(body);
240
+ return b.build();
349
241
  };
350
242
  exports.se_GetArtifactUrlCommand = se_GetArtifactUrlCommand;
351
243
  const se_GetBackendEnvironmentCommand = async (input, context) => {
352
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
244
+ const b = (0, core_1.requestBuilder)(input, context);
353
245
  const headers = {};
354
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
355
- "/apps/{appId}/backendenvironments/{environmentName}";
356
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "appId", () => input.appId, "{appId}", false);
357
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "environmentName", () => input.environmentName, "{environmentName}", false);
246
+ b.bp("/apps/{appId}/backendenvironments/{environmentName}");
247
+ b.p("appId", () => input.appId, "{appId}", false);
248
+ b.p("environmentName", () => input.environmentName, "{environmentName}", false);
358
249
  let body;
359
- return new protocol_http_1.HttpRequest({
360
- protocol,
361
- hostname,
362
- port,
363
- method: "GET",
364
- headers,
365
- path: resolvedPath,
366
- body,
367
- });
250
+ b.m("GET").h(headers).b(body);
251
+ return b.build();
368
252
  };
369
253
  exports.se_GetBackendEnvironmentCommand = se_GetBackendEnvironmentCommand;
370
254
  const se_GetBranchCommand = async (input, context) => {
371
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
255
+ const b = (0, core_1.requestBuilder)(input, context);
372
256
  const headers = {};
373
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/apps/{appId}/branches/{branchName}";
374
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "appId", () => input.appId, "{appId}", false);
375
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "branchName", () => input.branchName, "{branchName}", false);
257
+ b.bp("/apps/{appId}/branches/{branchName}");
258
+ b.p("appId", () => input.appId, "{appId}", false);
259
+ b.p("branchName", () => input.branchName, "{branchName}", false);
376
260
  let body;
377
- return new protocol_http_1.HttpRequest({
378
- protocol,
379
- hostname,
380
- port,
381
- method: "GET",
382
- headers,
383
- path: resolvedPath,
384
- body,
385
- });
261
+ b.m("GET").h(headers).b(body);
262
+ return b.build();
386
263
  };
387
264
  exports.se_GetBranchCommand = se_GetBranchCommand;
388
265
  const se_GetDomainAssociationCommand = async (input, context) => {
389
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
266
+ const b = (0, core_1.requestBuilder)(input, context);
390
267
  const headers = {};
391
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/apps/{appId}/domains/{domainName}";
392
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "appId", () => input.appId, "{appId}", false);
393
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainName", () => input.domainName, "{domainName}", false);
268
+ b.bp("/apps/{appId}/domains/{domainName}");
269
+ b.p("appId", () => input.appId, "{appId}", false);
270
+ b.p("domainName", () => input.domainName, "{domainName}", false);
394
271
  let body;
395
- return new protocol_http_1.HttpRequest({
396
- protocol,
397
- hostname,
398
- port,
399
- method: "GET",
400
- headers,
401
- path: resolvedPath,
402
- body,
403
- });
272
+ b.m("GET").h(headers).b(body);
273
+ return b.build();
404
274
  };
405
275
  exports.se_GetDomainAssociationCommand = se_GetDomainAssociationCommand;
406
276
  const se_GetJobCommand = async (input, context) => {
407
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
277
+ const b = (0, core_1.requestBuilder)(input, context);
408
278
  const headers = {};
409
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
410
- "/apps/{appId}/branches/{branchName}/jobs/{jobId}";
411
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "appId", () => input.appId, "{appId}", false);
412
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "branchName", () => input.branchName, "{branchName}", false);
413
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "jobId", () => input.jobId, "{jobId}", false);
279
+ b.bp("/apps/{appId}/branches/{branchName}/jobs/{jobId}");
280
+ b.p("appId", () => input.appId, "{appId}", false);
281
+ b.p("branchName", () => input.branchName, "{branchName}", false);
282
+ b.p("jobId", () => input.jobId, "{jobId}", false);
414
283
  let body;
415
- return new protocol_http_1.HttpRequest({
416
- protocol,
417
- hostname,
418
- port,
419
- method: "GET",
420
- headers,
421
- path: resolvedPath,
422
- body,
423
- });
284
+ b.m("GET").h(headers).b(body);
285
+ return b.build();
424
286
  };
425
287
  exports.se_GetJobCommand = se_GetJobCommand;
426
288
  const se_GetWebhookCommand = async (input, context) => {
427
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
289
+ const b = (0, core_1.requestBuilder)(input, context);
428
290
  const headers = {};
429
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/webhooks/{webhookId}";
430
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "webhookId", () => input.webhookId, "{webhookId}", false);
291
+ b.bp("/webhooks/{webhookId}");
292
+ b.p("webhookId", () => input.webhookId, "{webhookId}", false);
431
293
  let body;
432
- return new protocol_http_1.HttpRequest({
433
- protocol,
434
- hostname,
435
- port,
436
- method: "GET",
437
- headers,
438
- path: resolvedPath,
439
- body,
440
- });
294
+ b.m("GET").h(headers).b(body);
295
+ return b.build();
441
296
  };
442
297
  exports.se_GetWebhookCommand = se_GetWebhookCommand;
443
298
  const se_ListAppsCommand = async (input, context) => {
444
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
299
+ const b = (0, core_1.requestBuilder)(input, context);
445
300
  const headers = {};
446
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/apps";
301
+ b.bp("/apps");
447
302
  const query = (0, smithy_client_1.map)({
448
- nextToken: [, input.nextToken],
449
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
303
+ [_nT]: [, input[_nT]],
304
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
450
305
  });
451
306
  let body;
452
- return new protocol_http_1.HttpRequest({
453
- protocol,
454
- hostname,
455
- port,
456
- method: "GET",
457
- headers,
458
- path: resolvedPath,
459
- query,
460
- body,
461
- });
307
+ b.m("GET").h(headers).q(query).b(body);
308
+ return b.build();
462
309
  };
463
310
  exports.se_ListAppsCommand = se_ListAppsCommand;
464
311
  const se_ListArtifactsCommand = async (input, context) => {
465
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
312
+ const b = (0, core_1.requestBuilder)(input, context);
466
313
  const headers = {};
467
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
468
- "/apps/{appId}/branches/{branchName}/jobs/{jobId}/artifacts";
469
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "appId", () => input.appId, "{appId}", false);
470
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "branchName", () => input.branchName, "{branchName}", false);
471
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "jobId", () => input.jobId, "{jobId}", false);
314
+ b.bp("/apps/{appId}/branches/{branchName}/jobs/{jobId}/artifacts");
315
+ b.p("appId", () => input.appId, "{appId}", false);
316
+ b.p("branchName", () => input.branchName, "{branchName}", false);
317
+ b.p("jobId", () => input.jobId, "{jobId}", false);
472
318
  const query = (0, smithy_client_1.map)({
473
- nextToken: [, input.nextToken],
474
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
319
+ [_nT]: [, input[_nT]],
320
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
475
321
  });
476
322
  let body;
477
- return new protocol_http_1.HttpRequest({
478
- protocol,
479
- hostname,
480
- port,
481
- method: "GET",
482
- headers,
483
- path: resolvedPath,
484
- query,
485
- body,
486
- });
323
+ b.m("GET").h(headers).q(query).b(body);
324
+ return b.build();
487
325
  };
488
326
  exports.se_ListArtifactsCommand = se_ListArtifactsCommand;
489
327
  const se_ListBackendEnvironmentsCommand = async (input, context) => {
490
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
328
+ const b = (0, core_1.requestBuilder)(input, context);
491
329
  const headers = {};
492
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/apps/{appId}/backendenvironments";
493
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "appId", () => input.appId, "{appId}", false);
330
+ b.bp("/apps/{appId}/backendenvironments");
331
+ b.p("appId", () => input.appId, "{appId}", false);
494
332
  const query = (0, smithy_client_1.map)({
495
- environmentName: [, input.environmentName],
496
- nextToken: [, input.nextToken],
497
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
333
+ [_eN]: [, input[_eN]],
334
+ [_nT]: [, input[_nT]],
335
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
498
336
  });
499
337
  let body;
500
- return new protocol_http_1.HttpRequest({
501
- protocol,
502
- hostname,
503
- port,
504
- method: "GET",
505
- headers,
506
- path: resolvedPath,
507
- query,
508
- body,
509
- });
338
+ b.m("GET").h(headers).q(query).b(body);
339
+ return b.build();
510
340
  };
511
341
  exports.se_ListBackendEnvironmentsCommand = se_ListBackendEnvironmentsCommand;
512
342
  const se_ListBranchesCommand = async (input, context) => {
513
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
343
+ const b = (0, core_1.requestBuilder)(input, context);
514
344
  const headers = {};
515
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/apps/{appId}/branches";
516
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "appId", () => input.appId, "{appId}", false);
345
+ b.bp("/apps/{appId}/branches");
346
+ b.p("appId", () => input.appId, "{appId}", false);
517
347
  const query = (0, smithy_client_1.map)({
518
- nextToken: [, input.nextToken],
519
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
348
+ [_nT]: [, input[_nT]],
349
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
520
350
  });
521
351
  let body;
522
- return new protocol_http_1.HttpRequest({
523
- protocol,
524
- hostname,
525
- port,
526
- method: "GET",
527
- headers,
528
- path: resolvedPath,
529
- query,
530
- body,
531
- });
352
+ b.m("GET").h(headers).q(query).b(body);
353
+ return b.build();
532
354
  };
533
355
  exports.se_ListBranchesCommand = se_ListBranchesCommand;
534
356
  const se_ListDomainAssociationsCommand = async (input, context) => {
535
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
357
+ const b = (0, core_1.requestBuilder)(input, context);
536
358
  const headers = {};
537
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/apps/{appId}/domains";
538
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "appId", () => input.appId, "{appId}", false);
359
+ b.bp("/apps/{appId}/domains");
360
+ b.p("appId", () => input.appId, "{appId}", false);
539
361
  const query = (0, smithy_client_1.map)({
540
- nextToken: [, input.nextToken],
541
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
362
+ [_nT]: [, input[_nT]],
363
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
542
364
  });
543
365
  let body;
544
- return new protocol_http_1.HttpRequest({
545
- protocol,
546
- hostname,
547
- port,
548
- method: "GET",
549
- headers,
550
- path: resolvedPath,
551
- query,
552
- body,
553
- });
366
+ b.m("GET").h(headers).q(query).b(body);
367
+ return b.build();
554
368
  };
555
369
  exports.se_ListDomainAssociationsCommand = se_ListDomainAssociationsCommand;
556
370
  const se_ListJobsCommand = async (input, context) => {
557
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
371
+ const b = (0, core_1.requestBuilder)(input, context);
558
372
  const headers = {};
559
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/apps/{appId}/branches/{branchName}/jobs";
560
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "appId", () => input.appId, "{appId}", false);
561
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "branchName", () => input.branchName, "{branchName}", false);
373
+ b.bp("/apps/{appId}/branches/{branchName}/jobs");
374
+ b.p("appId", () => input.appId, "{appId}", false);
375
+ b.p("branchName", () => input.branchName, "{branchName}", false);
562
376
  const query = (0, smithy_client_1.map)({
563
- nextToken: [, input.nextToken],
564
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
377
+ [_nT]: [, input[_nT]],
378
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
565
379
  });
566
380
  let body;
567
- return new protocol_http_1.HttpRequest({
568
- protocol,
569
- hostname,
570
- port,
571
- method: "GET",
572
- headers,
573
- path: resolvedPath,
574
- query,
575
- body,
576
- });
381
+ b.m("GET").h(headers).q(query).b(body);
382
+ return b.build();
577
383
  };
578
384
  exports.se_ListJobsCommand = se_ListJobsCommand;
579
385
  const se_ListTagsForResourceCommand = async (input, context) => {
580
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
386
+ const b = (0, core_1.requestBuilder)(input, context);
581
387
  const headers = {};
582
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
583
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
388
+ b.bp("/tags/{resourceArn}");
389
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
584
390
  let body;
585
- return new protocol_http_1.HttpRequest({
586
- protocol,
587
- hostname,
588
- port,
589
- method: "GET",
590
- headers,
591
- path: resolvedPath,
592
- body,
593
- });
391
+ b.m("GET").h(headers).b(body);
392
+ return b.build();
594
393
  };
595
394
  exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
596
395
  const se_ListWebhooksCommand = async (input, context) => {
597
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
396
+ const b = (0, core_1.requestBuilder)(input, context);
598
397
  const headers = {};
599
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/apps/{appId}/webhooks";
600
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "appId", () => input.appId, "{appId}", false);
398
+ b.bp("/apps/{appId}/webhooks");
399
+ b.p("appId", () => input.appId, "{appId}", false);
601
400
  const query = (0, smithy_client_1.map)({
602
- nextToken: [, input.nextToken],
603
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
401
+ [_nT]: [, input[_nT]],
402
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
604
403
  });
605
404
  let body;
606
- return new protocol_http_1.HttpRequest({
607
- protocol,
608
- hostname,
609
- port,
610
- method: "GET",
611
- headers,
612
- path: resolvedPath,
613
- query,
614
- body,
615
- });
405
+ b.m("GET").h(headers).q(query).b(body);
406
+ return b.build();
616
407
  };
617
408
  exports.se_ListWebhooksCommand = se_ListWebhooksCommand;
618
409
  const se_StartDeploymentCommand = async (input, context) => {
619
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
410
+ const b = (0, core_1.requestBuilder)(input, context);
620
411
  const headers = {
621
412
  "content-type": "application/json",
622
413
  };
623
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
624
- "/apps/{appId}/branches/{branchName}/deployments/start";
625
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "appId", () => input.appId, "{appId}", false);
626
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "branchName", () => input.branchName, "{branchName}", false);
414
+ b.bp("/apps/{appId}/branches/{branchName}/deployments/start");
415
+ b.p("appId", () => input.appId, "{appId}", false);
416
+ b.p("branchName", () => input.branchName, "{branchName}", false);
627
417
  let body;
628
418
  body = JSON.stringify((0, smithy_client_1.take)(input, {
629
419
  jobId: [],
630
420
  sourceUrl: [],
631
421
  }));
632
- return new protocol_http_1.HttpRequest({
633
- protocol,
634
- hostname,
635
- port,
636
- method: "POST",
637
- headers,
638
- path: resolvedPath,
639
- body,
640
- });
422
+ b.m("POST").h(headers).b(body);
423
+ return b.build();
641
424
  };
642
425
  exports.se_StartDeploymentCommand = se_StartDeploymentCommand;
643
426
  const se_StartJobCommand = async (input, context) => {
644
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
427
+ const b = (0, core_1.requestBuilder)(input, context);
645
428
  const headers = {
646
429
  "content-type": "application/json",
647
430
  };
648
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/apps/{appId}/branches/{branchName}/jobs";
649
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "appId", () => input.appId, "{appId}", false);
650
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "branchName", () => input.branchName, "{branchName}", false);
431
+ b.bp("/apps/{appId}/branches/{branchName}/jobs");
432
+ b.p("appId", () => input.appId, "{appId}", false);
433
+ b.p("branchName", () => input.branchName, "{branchName}", false);
651
434
  let body;
652
435
  body = JSON.stringify((0, smithy_client_1.take)(input, {
653
436
  commitId: [],
@@ -657,90 +440,60 @@ const se_StartJobCommand = async (input, context) => {
657
440
  jobReason: [],
658
441
  jobType: [],
659
442
  }));
660
- return new protocol_http_1.HttpRequest({
661
- protocol,
662
- hostname,
663
- port,
664
- method: "POST",
665
- headers,
666
- path: resolvedPath,
667
- body,
668
- });
443
+ b.m("POST").h(headers).b(body);
444
+ return b.build();
669
445
  };
670
446
  exports.se_StartJobCommand = se_StartJobCommand;
671
447
  const se_StopJobCommand = async (input, context) => {
672
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
448
+ const b = (0, core_1.requestBuilder)(input, context);
673
449
  const headers = {};
674
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
675
- "/apps/{appId}/branches/{branchName}/jobs/{jobId}/stop";
676
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "appId", () => input.appId, "{appId}", false);
677
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "branchName", () => input.branchName, "{branchName}", false);
678
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "jobId", () => input.jobId, "{jobId}", false);
450
+ b.bp("/apps/{appId}/branches/{branchName}/jobs/{jobId}/stop");
451
+ b.p("appId", () => input.appId, "{appId}", false);
452
+ b.p("branchName", () => input.branchName, "{branchName}", false);
453
+ b.p("jobId", () => input.jobId, "{jobId}", false);
679
454
  let body;
680
- return new protocol_http_1.HttpRequest({
681
- protocol,
682
- hostname,
683
- port,
684
- method: "DELETE",
685
- headers,
686
- path: resolvedPath,
687
- body,
688
- });
455
+ b.m("DELETE").h(headers).b(body);
456
+ return b.build();
689
457
  };
690
458
  exports.se_StopJobCommand = se_StopJobCommand;
691
459
  const se_TagResourceCommand = async (input, context) => {
692
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
460
+ const b = (0, core_1.requestBuilder)(input, context);
693
461
  const headers = {
694
462
  "content-type": "application/json",
695
463
  };
696
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
697
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
464
+ b.bp("/tags/{resourceArn}");
465
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
698
466
  let body;
699
467
  body = JSON.stringify((0, smithy_client_1.take)(input, {
700
468
  tags: (_) => (0, smithy_client_1._json)(_),
701
469
  }));
702
- return new protocol_http_1.HttpRequest({
703
- protocol,
704
- hostname,
705
- port,
706
- method: "POST",
707
- headers,
708
- path: resolvedPath,
709
- body,
710
- });
470
+ b.m("POST").h(headers).b(body);
471
+ return b.build();
711
472
  };
712
473
  exports.se_TagResourceCommand = se_TagResourceCommand;
713
474
  const se_UntagResourceCommand = async (input, context) => {
714
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
475
+ const b = (0, core_1.requestBuilder)(input, context);
715
476
  const headers = {};
716
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
717
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
477
+ b.bp("/tags/{resourceArn}");
478
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
718
479
  const query = (0, smithy_client_1.map)({
719
- tagKeys: [
480
+ [_tK]: [
720
481
  (0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
721
- () => (input.tagKeys || []).map((_entry) => _entry),
482
+ () => (input[_tK] || []).map((_entry) => _entry),
722
483
  ],
723
484
  });
724
485
  let body;
725
- return new protocol_http_1.HttpRequest({
726
- protocol,
727
- hostname,
728
- port,
729
- method: "DELETE",
730
- headers,
731
- path: resolvedPath,
732
- query,
733
- body,
734
- });
486
+ b.m("DELETE").h(headers).q(query).b(body);
487
+ return b.build();
735
488
  };
736
489
  exports.se_UntagResourceCommand = se_UntagResourceCommand;
737
490
  const se_UpdateAppCommand = async (input, context) => {
738
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
491
+ const b = (0, core_1.requestBuilder)(input, context);
739
492
  const headers = {
740
493
  "content-type": "application/json",
741
494
  };
742
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/apps/{appId}";
743
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "appId", () => input.appId, "{appId}", false);
495
+ b.bp("/apps/{appId}");
496
+ b.p("appId", () => input.appId, "{appId}", false);
744
497
  let body;
745
498
  body = JSON.stringify((0, smithy_client_1.take)(input, {
746
499
  accessToken: [],
@@ -762,25 +515,18 @@ const se_UpdateAppCommand = async (input, context) => {
762
515
  platform: [],
763
516
  repository: [],
764
517
  }));
765
- return new protocol_http_1.HttpRequest({
766
- protocol,
767
- hostname,
768
- port,
769
- method: "POST",
770
- headers,
771
- path: resolvedPath,
772
- body,
773
- });
518
+ b.m("POST").h(headers).b(body);
519
+ return b.build();
774
520
  };
775
521
  exports.se_UpdateAppCommand = se_UpdateAppCommand;
776
522
  const se_UpdateBranchCommand = async (input, context) => {
777
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
523
+ const b = (0, core_1.requestBuilder)(input, context);
778
524
  const headers = {
779
525
  "content-type": "application/json",
780
526
  };
781
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/apps/{appId}/branches/{branchName}";
782
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "appId", () => input.appId, "{appId}", false);
783
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "branchName", () => input.branchName, "{branchName}", false);
527
+ b.bp("/apps/{appId}/branches/{branchName}");
528
+ b.p("appId", () => input.appId, "{appId}", false);
529
+ b.p("branchName", () => input.branchName, "{branchName}", false);
784
530
  let body;
785
531
  body = JSON.stringify((0, smithy_client_1.take)(input, {
786
532
  backend: (_) => (0, smithy_client_1._json)(_),
@@ -800,25 +546,18 @@ const se_UpdateBranchCommand = async (input, context) => {
800
546
  stage: [],
801
547
  ttl: [],
802
548
  }));
803
- return new protocol_http_1.HttpRequest({
804
- protocol,
805
- hostname,
806
- port,
807
- method: "POST",
808
- headers,
809
- path: resolvedPath,
810
- body,
811
- });
549
+ b.m("POST").h(headers).b(body);
550
+ return b.build();
812
551
  };
813
552
  exports.se_UpdateBranchCommand = se_UpdateBranchCommand;
814
553
  const se_UpdateDomainAssociationCommand = async (input, context) => {
815
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
554
+ const b = (0, core_1.requestBuilder)(input, context);
816
555
  const headers = {
817
556
  "content-type": "application/json",
818
557
  };
819
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/apps/{appId}/domains/{domainName}";
820
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "appId", () => input.appId, "{appId}", false);
821
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainName", () => input.domainName, "{domainName}", false);
558
+ b.bp("/apps/{appId}/domains/{domainName}");
559
+ b.p("appId", () => input.appId, "{appId}", false);
560
+ b.p("domainName", () => input.domainName, "{domainName}", false);
822
561
  let body;
823
562
  body = JSON.stringify((0, smithy_client_1.take)(input, {
824
563
  autoSubDomainCreationPatterns: (_) => (0, smithy_client_1._json)(_),
@@ -826,38 +565,24 @@ const se_UpdateDomainAssociationCommand = async (input, context) => {
826
565
  enableAutoSubDomain: [],
827
566
  subDomainSettings: (_) => (0, smithy_client_1._json)(_),
828
567
  }));
829
- return new protocol_http_1.HttpRequest({
830
- protocol,
831
- hostname,
832
- port,
833
- method: "POST",
834
- headers,
835
- path: resolvedPath,
836
- body,
837
- });
568
+ b.m("POST").h(headers).b(body);
569
+ return b.build();
838
570
  };
839
571
  exports.se_UpdateDomainAssociationCommand = se_UpdateDomainAssociationCommand;
840
572
  const se_UpdateWebhookCommand = async (input, context) => {
841
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
573
+ const b = (0, core_1.requestBuilder)(input, context);
842
574
  const headers = {
843
575
  "content-type": "application/json",
844
576
  };
845
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/webhooks/{webhookId}";
846
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "webhookId", () => input.webhookId, "{webhookId}", false);
577
+ b.bp("/webhooks/{webhookId}");
578
+ b.p("webhookId", () => input.webhookId, "{webhookId}", false);
847
579
  let body;
848
580
  body = JSON.stringify((0, smithy_client_1.take)(input, {
849
581
  branchName: [],
850
582
  description: [],
851
583
  }));
852
- return new protocol_http_1.HttpRequest({
853
- protocol,
854
- hostname,
855
- port,
856
- method: "POST",
857
- headers,
858
- path: resolvedPath,
859
- body,
860
- });
584
+ b.m("POST").h(headers).b(body);
585
+ return b.build();
861
586
  };
862
587
  exports.se_UpdateWebhookCommand = se_UpdateWebhookCommand;
863
588
  const de_CreateAppCommand = async (output, context) => {
@@ -2777,6 +2502,10 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
2777
2502
  value !== "" &&
2778
2503
  (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
2779
2504
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
2505
+ const _eN = "environmentName";
2506
+ const _mR = "maxResults";
2507
+ const _nT = "nextToken";
2508
+ const _tK = "tagKeys";
2780
2509
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
2781
2510
  if (encoded.length) {
2782
2511
  return JSON.parse(encoded);