@aws-sdk/client-migration-hub-refactor-spaces 3.476.0 → 3.478.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.
@@ -1,19 +1,18 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.de_UpdateRouteCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_PutResourcePolicyCommand = exports.de_ListTagsForResourceCommand = exports.de_ListServicesCommand = exports.de_ListRoutesCommand = exports.de_ListEnvironmentVpcsCommand = exports.de_ListEnvironmentsCommand = exports.de_ListApplicationsCommand = exports.de_GetServiceCommand = exports.de_GetRouteCommand = exports.de_GetResourcePolicyCommand = exports.de_GetEnvironmentCommand = exports.de_GetApplicationCommand = exports.de_DeleteServiceCommand = exports.de_DeleteRouteCommand = exports.de_DeleteResourcePolicyCommand = exports.de_DeleteEnvironmentCommand = exports.de_DeleteApplicationCommand = exports.de_CreateServiceCommand = exports.de_CreateRouteCommand = exports.de_CreateEnvironmentCommand = exports.de_CreateApplicationCommand = exports.se_UpdateRouteCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_PutResourcePolicyCommand = exports.se_ListTagsForResourceCommand = exports.se_ListServicesCommand = exports.se_ListRoutesCommand = exports.se_ListEnvironmentVpcsCommand = exports.se_ListEnvironmentsCommand = exports.se_ListApplicationsCommand = exports.se_GetServiceCommand = exports.se_GetRouteCommand = exports.se_GetResourcePolicyCommand = exports.se_GetEnvironmentCommand = exports.se_GetApplicationCommand = exports.se_DeleteServiceCommand = exports.se_DeleteRouteCommand = exports.se_DeleteResourcePolicyCommand = exports.se_DeleteEnvironmentCommand = exports.se_DeleteApplicationCommand = exports.se_CreateServiceCommand = exports.se_CreateRouteCommand = exports.se_CreateEnvironmentCommand = exports.se_CreateApplicationCommand = void 0;
4
- const protocol_http_1 = require("@smithy/protocol-http");
4
+ const core_1 = require("@smithy/core");
5
5
  const smithy_client_1 = require("@smithy/smithy-client");
6
6
  const uuid_1 = require("uuid");
7
7
  const MigrationHubRefactorSpacesServiceException_1 = require("../models/MigrationHubRefactorSpacesServiceException");
8
8
  const models_0_1 = require("../models/models_0");
9
9
  const se_CreateApplicationCommand = 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
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
15
- "/environments/{EnvironmentIdentifier}/applications";
16
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
14
+ b.bp("/environments/{EnvironmentIdentifier}/applications");
15
+ b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
17
16
  let body;
18
17
  body = JSON.stringify((0, smithy_client_1.take)(input, {
19
18
  ApiGatewayProxy: (_) => (0, smithy_client_1._json)(_),
@@ -23,23 +22,16 @@ const se_CreateApplicationCommand = async (input, context) => {
23
22
  Tags: (_) => (0, smithy_client_1._json)(_),
24
23
  VpcId: [],
25
24
  }));
26
- return new protocol_http_1.HttpRequest({
27
- protocol,
28
- hostname,
29
- port,
30
- method: "POST",
31
- headers,
32
- path: resolvedPath,
33
- body,
34
- });
25
+ b.m("POST").h(headers).b(body);
26
+ return b.build();
35
27
  };
36
28
  exports.se_CreateApplicationCommand = se_CreateApplicationCommand;
37
29
  const se_CreateEnvironmentCommand = async (input, context) => {
38
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
30
+ const b = (0, core_1.requestBuilder)(input, context);
39
31
  const headers = {
40
32
  "content-type": "application/json",
41
33
  };
42
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/environments";
34
+ b.bp("/environments");
43
35
  let body;
44
36
  body = JSON.stringify((0, smithy_client_1.take)(input, {
45
37
  ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
@@ -48,26 +40,18 @@ const se_CreateEnvironmentCommand = async (input, context) => {
48
40
  NetworkFabricType: [],
49
41
  Tags: (_) => (0, smithy_client_1._json)(_),
50
42
  }));
51
- return new protocol_http_1.HttpRequest({
52
- protocol,
53
- hostname,
54
- port,
55
- method: "POST",
56
- headers,
57
- path: resolvedPath,
58
- body,
59
- });
43
+ b.m("POST").h(headers).b(body);
44
+ return b.build();
60
45
  };
61
46
  exports.se_CreateEnvironmentCommand = se_CreateEnvironmentCommand;
62
47
  const se_CreateRouteCommand = async (input, context) => {
63
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
48
+ const b = (0, core_1.requestBuilder)(input, context);
64
49
  const headers = {
65
50
  "content-type": "application/json",
66
51
  };
67
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
68
- "/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}/routes";
69
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
70
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationIdentifier", () => input.ApplicationIdentifier, "{ApplicationIdentifier}", false);
52
+ b.bp("/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}/routes");
53
+ b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
54
+ b.p("ApplicationIdentifier", () => input.ApplicationIdentifier, "{ApplicationIdentifier}", false);
71
55
  let body;
72
56
  body = JSON.stringify((0, smithy_client_1.take)(input, {
73
57
  ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
@@ -77,26 +61,18 @@ const se_CreateRouteCommand = async (input, context) => {
77
61
  Tags: (_) => (0, smithy_client_1._json)(_),
78
62
  UriPathRoute: (_) => (0, smithy_client_1._json)(_),
79
63
  }));
80
- return new protocol_http_1.HttpRequest({
81
- protocol,
82
- hostname,
83
- port,
84
- method: "POST",
85
- headers,
86
- path: resolvedPath,
87
- body,
88
- });
64
+ b.m("POST").h(headers).b(body);
65
+ return b.build();
89
66
  };
90
67
  exports.se_CreateRouteCommand = se_CreateRouteCommand;
91
68
  const se_CreateServiceCommand = async (input, context) => {
92
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
69
+ const b = (0, core_1.requestBuilder)(input, context);
93
70
  const headers = {
94
71
  "content-type": "application/json",
95
72
  };
96
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
97
- "/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}/services";
98
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
99
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationIdentifier", () => input.ApplicationIdentifier, "{ApplicationIdentifier}", false);
73
+ b.bp("/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}/services");
74
+ b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
75
+ b.p("ApplicationIdentifier", () => input.ApplicationIdentifier, "{ApplicationIdentifier}", false);
100
76
  let body;
101
77
  body = JSON.stringify((0, smithy_client_1.take)(input, {
102
78
  ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
@@ -108,426 +84,262 @@ const se_CreateServiceCommand = async (input, context) => {
108
84
  UrlEndpoint: (_) => (0, smithy_client_1._json)(_),
109
85
  VpcId: [],
110
86
  }));
111
- return new protocol_http_1.HttpRequest({
112
- protocol,
113
- hostname,
114
- port,
115
- method: "POST",
116
- headers,
117
- path: resolvedPath,
118
- body,
119
- });
87
+ b.m("POST").h(headers).b(body);
88
+ return b.build();
120
89
  };
121
90
  exports.se_CreateServiceCommand = se_CreateServiceCommand;
122
91
  const se_DeleteApplicationCommand = async (input, context) => {
123
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
92
+ const b = (0, core_1.requestBuilder)(input, context);
124
93
  const headers = {};
125
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
126
- "/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}";
127
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
128
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationIdentifier", () => input.ApplicationIdentifier, "{ApplicationIdentifier}", false);
94
+ b.bp("/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}");
95
+ b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
96
+ b.p("ApplicationIdentifier", () => input.ApplicationIdentifier, "{ApplicationIdentifier}", false);
129
97
  let body;
130
- return new protocol_http_1.HttpRequest({
131
- protocol,
132
- hostname,
133
- port,
134
- method: "DELETE",
135
- headers,
136
- path: resolvedPath,
137
- body,
138
- });
98
+ b.m("DELETE").h(headers).b(body);
99
+ return b.build();
139
100
  };
140
101
  exports.se_DeleteApplicationCommand = se_DeleteApplicationCommand;
141
102
  const se_DeleteEnvironmentCommand = async (input, context) => {
142
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
103
+ const b = (0, core_1.requestBuilder)(input, context);
143
104
  const headers = {};
144
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/environments/{EnvironmentIdentifier}";
145
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
105
+ b.bp("/environments/{EnvironmentIdentifier}");
106
+ b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
146
107
  let body;
147
- return new protocol_http_1.HttpRequest({
148
- protocol,
149
- hostname,
150
- port,
151
- method: "DELETE",
152
- headers,
153
- path: resolvedPath,
154
- body,
155
- });
108
+ b.m("DELETE").h(headers).b(body);
109
+ return b.build();
156
110
  };
157
111
  exports.se_DeleteEnvironmentCommand = se_DeleteEnvironmentCommand;
158
112
  const se_DeleteResourcePolicyCommand = async (input, context) => {
159
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
113
+ const b = (0, core_1.requestBuilder)(input, context);
160
114
  const headers = {};
161
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/resourcepolicy/{Identifier}";
162
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Identifier", () => input.Identifier, "{Identifier}", false);
115
+ b.bp("/resourcepolicy/{Identifier}");
116
+ b.p("Identifier", () => input.Identifier, "{Identifier}", false);
163
117
  let body;
164
- return new protocol_http_1.HttpRequest({
165
- protocol,
166
- hostname,
167
- port,
168
- method: "DELETE",
169
- headers,
170
- path: resolvedPath,
171
- body,
172
- });
118
+ b.m("DELETE").h(headers).b(body);
119
+ return b.build();
173
120
  };
174
121
  exports.se_DeleteResourcePolicyCommand = se_DeleteResourcePolicyCommand;
175
122
  const se_DeleteRouteCommand = async (input, context) => {
176
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
123
+ const b = (0, core_1.requestBuilder)(input, context);
177
124
  const headers = {};
178
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
179
- "/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}/routes/{RouteIdentifier}";
180
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
181
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationIdentifier", () => input.ApplicationIdentifier, "{ApplicationIdentifier}", false);
182
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RouteIdentifier", () => input.RouteIdentifier, "{RouteIdentifier}", false);
125
+ b.bp("/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}/routes/{RouteIdentifier}");
126
+ b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
127
+ b.p("ApplicationIdentifier", () => input.ApplicationIdentifier, "{ApplicationIdentifier}", false);
128
+ b.p("RouteIdentifier", () => input.RouteIdentifier, "{RouteIdentifier}", false);
183
129
  let body;
184
- return new protocol_http_1.HttpRequest({
185
- protocol,
186
- hostname,
187
- port,
188
- method: "DELETE",
189
- headers,
190
- path: resolvedPath,
191
- body,
192
- });
130
+ b.m("DELETE").h(headers).b(body);
131
+ return b.build();
193
132
  };
194
133
  exports.se_DeleteRouteCommand = se_DeleteRouteCommand;
195
134
  const se_DeleteServiceCommand = async (input, context) => {
196
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
135
+ const b = (0, core_1.requestBuilder)(input, context);
197
136
  const headers = {};
198
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
199
- "/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}/services/{ServiceIdentifier}";
200
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
201
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationIdentifier", () => input.ApplicationIdentifier, "{ApplicationIdentifier}", false);
202
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ServiceIdentifier", () => input.ServiceIdentifier, "{ServiceIdentifier}", false);
137
+ b.bp("/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}/services/{ServiceIdentifier}");
138
+ b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
139
+ b.p("ApplicationIdentifier", () => input.ApplicationIdentifier, "{ApplicationIdentifier}", false);
140
+ b.p("ServiceIdentifier", () => input.ServiceIdentifier, "{ServiceIdentifier}", false);
203
141
  let body;
204
- return new protocol_http_1.HttpRequest({
205
- protocol,
206
- hostname,
207
- port,
208
- method: "DELETE",
209
- headers,
210
- path: resolvedPath,
211
- body,
212
- });
142
+ b.m("DELETE").h(headers).b(body);
143
+ return b.build();
213
144
  };
214
145
  exports.se_DeleteServiceCommand = se_DeleteServiceCommand;
215
146
  const se_GetApplicationCommand = async (input, context) => {
216
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
147
+ const b = (0, core_1.requestBuilder)(input, context);
217
148
  const headers = {};
218
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
219
- "/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}";
220
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
221
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationIdentifier", () => input.ApplicationIdentifier, "{ApplicationIdentifier}", false);
149
+ b.bp("/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}");
150
+ b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
151
+ b.p("ApplicationIdentifier", () => input.ApplicationIdentifier, "{ApplicationIdentifier}", false);
222
152
  let body;
223
- return new protocol_http_1.HttpRequest({
224
- protocol,
225
- hostname,
226
- port,
227
- method: "GET",
228
- headers,
229
- path: resolvedPath,
230
- body,
231
- });
153
+ b.m("GET").h(headers).b(body);
154
+ return b.build();
232
155
  };
233
156
  exports.se_GetApplicationCommand = se_GetApplicationCommand;
234
157
  const se_GetEnvironmentCommand = async (input, context) => {
235
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
158
+ const b = (0, core_1.requestBuilder)(input, context);
236
159
  const headers = {};
237
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/environments/{EnvironmentIdentifier}";
238
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
160
+ b.bp("/environments/{EnvironmentIdentifier}");
161
+ b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
239
162
  let body;
240
- return new protocol_http_1.HttpRequest({
241
- protocol,
242
- hostname,
243
- port,
244
- method: "GET",
245
- headers,
246
- path: resolvedPath,
247
- body,
248
- });
163
+ b.m("GET").h(headers).b(body);
164
+ return b.build();
249
165
  };
250
166
  exports.se_GetEnvironmentCommand = se_GetEnvironmentCommand;
251
167
  const se_GetResourcePolicyCommand = async (input, context) => {
252
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
168
+ const b = (0, core_1.requestBuilder)(input, context);
253
169
  const headers = {};
254
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/resourcepolicy/{Identifier}";
255
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Identifier", () => input.Identifier, "{Identifier}", false);
170
+ b.bp("/resourcepolicy/{Identifier}");
171
+ b.p("Identifier", () => input.Identifier, "{Identifier}", false);
256
172
  let body;
257
- return new protocol_http_1.HttpRequest({
258
- protocol,
259
- hostname,
260
- port,
261
- method: "GET",
262
- headers,
263
- path: resolvedPath,
264
- body,
265
- });
173
+ b.m("GET").h(headers).b(body);
174
+ return b.build();
266
175
  };
267
176
  exports.se_GetResourcePolicyCommand = se_GetResourcePolicyCommand;
268
177
  const se_GetRouteCommand = async (input, context) => {
269
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
178
+ const b = (0, core_1.requestBuilder)(input, context);
270
179
  const headers = {};
271
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
272
- "/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}/routes/{RouteIdentifier}";
273
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
274
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationIdentifier", () => input.ApplicationIdentifier, "{ApplicationIdentifier}", false);
275
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RouteIdentifier", () => input.RouteIdentifier, "{RouteIdentifier}", false);
180
+ b.bp("/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}/routes/{RouteIdentifier}");
181
+ b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
182
+ b.p("ApplicationIdentifier", () => input.ApplicationIdentifier, "{ApplicationIdentifier}", false);
183
+ b.p("RouteIdentifier", () => input.RouteIdentifier, "{RouteIdentifier}", false);
276
184
  let body;
277
- return new protocol_http_1.HttpRequest({
278
- protocol,
279
- hostname,
280
- port,
281
- method: "GET",
282
- headers,
283
- path: resolvedPath,
284
- body,
285
- });
185
+ b.m("GET").h(headers).b(body);
186
+ return b.build();
286
187
  };
287
188
  exports.se_GetRouteCommand = se_GetRouteCommand;
288
189
  const se_GetServiceCommand = async (input, context) => {
289
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
190
+ const b = (0, core_1.requestBuilder)(input, context);
290
191
  const headers = {};
291
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
292
- "/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}/services/{ServiceIdentifier}";
293
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
294
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationIdentifier", () => input.ApplicationIdentifier, "{ApplicationIdentifier}", false);
295
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ServiceIdentifier", () => input.ServiceIdentifier, "{ServiceIdentifier}", false);
192
+ b.bp("/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}/services/{ServiceIdentifier}");
193
+ b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
194
+ b.p("ApplicationIdentifier", () => input.ApplicationIdentifier, "{ApplicationIdentifier}", false);
195
+ b.p("ServiceIdentifier", () => input.ServiceIdentifier, "{ServiceIdentifier}", false);
296
196
  let body;
297
- return new protocol_http_1.HttpRequest({
298
- protocol,
299
- hostname,
300
- port,
301
- method: "GET",
302
- headers,
303
- path: resolvedPath,
304
- body,
305
- });
197
+ b.m("GET").h(headers).b(body);
198
+ return b.build();
306
199
  };
307
200
  exports.se_GetServiceCommand = se_GetServiceCommand;
308
201
  const se_ListApplicationsCommand = async (input, context) => {
309
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
202
+ const b = (0, core_1.requestBuilder)(input, context);
310
203
  const headers = {};
311
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
312
- "/environments/{EnvironmentIdentifier}/applications";
313
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
204
+ b.bp("/environments/{EnvironmentIdentifier}/applications");
205
+ b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
314
206
  const query = (0, smithy_client_1.map)({
315
- nextToken: [, input.NextToken],
316
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
207
+ [_nT]: [, input[_NT]],
208
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
317
209
  });
318
210
  let body;
319
- return new protocol_http_1.HttpRequest({
320
- protocol,
321
- hostname,
322
- port,
323
- method: "GET",
324
- headers,
325
- path: resolvedPath,
326
- query,
327
- body,
328
- });
211
+ b.m("GET").h(headers).q(query).b(body);
212
+ return b.build();
329
213
  };
330
214
  exports.se_ListApplicationsCommand = se_ListApplicationsCommand;
331
215
  const se_ListEnvironmentsCommand = async (input, context) => {
332
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
216
+ const b = (0, core_1.requestBuilder)(input, context);
333
217
  const headers = {};
334
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/environments";
218
+ b.bp("/environments");
335
219
  const query = (0, smithy_client_1.map)({
336
- nextToken: [, input.NextToken],
337
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
220
+ [_nT]: [, input[_NT]],
221
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
338
222
  });
339
223
  let body;
340
- return new protocol_http_1.HttpRequest({
341
- protocol,
342
- hostname,
343
- port,
344
- method: "GET",
345
- headers,
346
- path: resolvedPath,
347
- query,
348
- body,
349
- });
224
+ b.m("GET").h(headers).q(query).b(body);
225
+ return b.build();
350
226
  };
351
227
  exports.se_ListEnvironmentsCommand = se_ListEnvironmentsCommand;
352
228
  const se_ListEnvironmentVpcsCommand = async (input, context) => {
353
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
229
+ const b = (0, core_1.requestBuilder)(input, context);
354
230
  const headers = {};
355
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
356
- "/environments/{EnvironmentIdentifier}/vpcs";
357
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
231
+ b.bp("/environments/{EnvironmentIdentifier}/vpcs");
232
+ b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
358
233
  const query = (0, smithy_client_1.map)({
359
- nextToken: [, input.NextToken],
360
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
234
+ [_nT]: [, input[_NT]],
235
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
361
236
  });
362
237
  let body;
363
- return new protocol_http_1.HttpRequest({
364
- protocol,
365
- hostname,
366
- port,
367
- method: "GET",
368
- headers,
369
- path: resolvedPath,
370
- query,
371
- body,
372
- });
238
+ b.m("GET").h(headers).q(query).b(body);
239
+ return b.build();
373
240
  };
374
241
  exports.se_ListEnvironmentVpcsCommand = se_ListEnvironmentVpcsCommand;
375
242
  const se_ListRoutesCommand = async (input, context) => {
376
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
243
+ const b = (0, core_1.requestBuilder)(input, context);
377
244
  const headers = {};
378
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
379
- "/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}/routes";
380
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
381
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationIdentifier", () => input.ApplicationIdentifier, "{ApplicationIdentifier}", false);
245
+ b.bp("/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}/routes");
246
+ b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
247
+ b.p("ApplicationIdentifier", () => input.ApplicationIdentifier, "{ApplicationIdentifier}", false);
382
248
  const query = (0, smithy_client_1.map)({
383
- nextToken: [, input.NextToken],
384
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
249
+ [_nT]: [, input[_NT]],
250
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
385
251
  });
386
252
  let body;
387
- return new protocol_http_1.HttpRequest({
388
- protocol,
389
- hostname,
390
- port,
391
- method: "GET",
392
- headers,
393
- path: resolvedPath,
394
- query,
395
- body,
396
- });
253
+ b.m("GET").h(headers).q(query).b(body);
254
+ return b.build();
397
255
  };
398
256
  exports.se_ListRoutesCommand = se_ListRoutesCommand;
399
257
  const se_ListServicesCommand = async (input, context) => {
400
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
258
+ const b = (0, core_1.requestBuilder)(input, context);
401
259
  const headers = {};
402
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
403
- "/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}/services";
404
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
405
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationIdentifier", () => input.ApplicationIdentifier, "{ApplicationIdentifier}", false);
260
+ b.bp("/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}/services");
261
+ b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
262
+ b.p("ApplicationIdentifier", () => input.ApplicationIdentifier, "{ApplicationIdentifier}", false);
406
263
  const query = (0, smithy_client_1.map)({
407
- nextToken: [, input.NextToken],
408
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
264
+ [_nT]: [, input[_NT]],
265
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
409
266
  });
410
267
  let body;
411
- return new protocol_http_1.HttpRequest({
412
- protocol,
413
- hostname,
414
- port,
415
- method: "GET",
416
- headers,
417
- path: resolvedPath,
418
- query,
419
- body,
420
- });
268
+ b.m("GET").h(headers).q(query).b(body);
269
+ return b.build();
421
270
  };
422
271
  exports.se_ListServicesCommand = se_ListServicesCommand;
423
272
  const se_ListTagsForResourceCommand = async (input, context) => {
424
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
273
+ const b = (0, core_1.requestBuilder)(input, context);
425
274
  const headers = {};
426
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
427
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
275
+ b.bp("/tags/{ResourceArn}");
276
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
428
277
  let body;
429
- return new protocol_http_1.HttpRequest({
430
- protocol,
431
- hostname,
432
- port,
433
- method: "GET",
434
- headers,
435
- path: resolvedPath,
436
- body,
437
- });
278
+ b.m("GET").h(headers).b(body);
279
+ return b.build();
438
280
  };
439
281
  exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
440
282
  const se_PutResourcePolicyCommand = async (input, context) => {
441
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
283
+ const b = (0, core_1.requestBuilder)(input, context);
442
284
  const headers = {
443
285
  "content-type": "application/json",
444
286
  };
445
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/resourcepolicy";
287
+ b.bp("/resourcepolicy");
446
288
  let body;
447
289
  body = JSON.stringify((0, smithy_client_1.take)(input, {
448
290
  Policy: [],
449
291
  ResourceArn: [],
450
292
  }));
451
- return new protocol_http_1.HttpRequest({
452
- protocol,
453
- hostname,
454
- port,
455
- method: "PUT",
456
- headers,
457
- path: resolvedPath,
458
- body,
459
- });
293
+ b.m("PUT").h(headers).b(body);
294
+ return b.build();
460
295
  };
461
296
  exports.se_PutResourcePolicyCommand = se_PutResourcePolicyCommand;
462
297
  const se_TagResourceCommand = async (input, context) => {
463
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
298
+ const b = (0, core_1.requestBuilder)(input, context);
464
299
  const headers = {
465
300
  "content-type": "application/json",
466
301
  };
467
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
468
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
302
+ b.bp("/tags/{ResourceArn}");
303
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
469
304
  let body;
470
305
  body = JSON.stringify((0, smithy_client_1.take)(input, {
471
306
  Tags: (_) => (0, smithy_client_1._json)(_),
472
307
  }));
473
- return new protocol_http_1.HttpRequest({
474
- protocol,
475
- hostname,
476
- port,
477
- method: "POST",
478
- headers,
479
- path: resolvedPath,
480
- body,
481
- });
308
+ b.m("POST").h(headers).b(body);
309
+ return b.build();
482
310
  };
483
311
  exports.se_TagResourceCommand = se_TagResourceCommand;
484
312
  const se_UntagResourceCommand = async (input, context) => {
485
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
313
+ const b = (0, core_1.requestBuilder)(input, context);
486
314
  const headers = {};
487
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
488
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
315
+ b.bp("/tags/{ResourceArn}");
316
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
489
317
  const query = (0, smithy_client_1.map)({
490
- tagKeys: [
318
+ [_tK]: [
491
319
  (0, smithy_client_1.expectNonNull)(input.TagKeys, `TagKeys`) != null,
492
- () => (input.TagKeys || []).map((_entry) => _entry),
320
+ () => (input[_TK] || []).map((_entry) => _entry),
493
321
  ],
494
322
  });
495
323
  let body;
496
- return new protocol_http_1.HttpRequest({
497
- protocol,
498
- hostname,
499
- port,
500
- method: "DELETE",
501
- headers,
502
- path: resolvedPath,
503
- query,
504
- body,
505
- });
324
+ b.m("DELETE").h(headers).q(query).b(body);
325
+ return b.build();
506
326
  };
507
327
  exports.se_UntagResourceCommand = se_UntagResourceCommand;
508
328
  const se_UpdateRouteCommand = async (input, context) => {
509
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
329
+ const b = (0, core_1.requestBuilder)(input, context);
510
330
  const headers = {
511
331
  "content-type": "application/json",
512
332
  };
513
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
514
- "/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}/routes/{RouteIdentifier}";
515
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
516
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationIdentifier", () => input.ApplicationIdentifier, "{ApplicationIdentifier}", false);
517
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RouteIdentifier", () => input.RouteIdentifier, "{RouteIdentifier}", false);
333
+ b.bp("/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}/routes/{RouteIdentifier}");
334
+ b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
335
+ b.p("ApplicationIdentifier", () => input.ApplicationIdentifier, "{ApplicationIdentifier}", false);
336
+ b.p("RouteIdentifier", () => input.RouteIdentifier, "{RouteIdentifier}", false);
518
337
  let body;
519
338
  body = JSON.stringify((0, smithy_client_1.take)(input, {
520
339
  ActivationState: [],
521
340
  }));
522
- return new protocol_http_1.HttpRequest({
523
- protocol,
524
- hostname,
525
- port,
526
- method: "PATCH",
527
- headers,
528
- path: resolvedPath,
529
- body,
530
- });
341
+ b.m("PATCH").h(headers).b(body);
342
+ return b.build();
531
343
  };
532
344
  exports.se_UpdateRouteCommand = se_UpdateRouteCommand;
533
345
  const de_CreateApplicationCommand = async (output, context) => {
@@ -1880,10 +1692,7 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
1880
1692
  };
1881
1693
  const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
1882
1694
  const contents = (0, smithy_client_1.map)({
1883
- RetryAfterSeconds: [
1884
- () => void 0 !== parsedOutput.headers["retry-after"],
1885
- () => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers["retry-after"]),
1886
- ],
1695
+ [_RAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers[_ra])],
1887
1696
  });
1888
1697
  const data = parsedOutput.body;
1889
1698
  const doc = (0, smithy_client_1.take)(data, {
@@ -2051,6 +1860,14 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
2051
1860
  value !== "" &&
2052
1861
  (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
2053
1862
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
1863
+ const _MR = "MaxResults";
1864
+ const _NT = "NextToken";
1865
+ const _RAS = "RetryAfterSeconds";
1866
+ const _TK = "TagKeys";
1867
+ const _mR = "maxResults";
1868
+ const _nT = "nextToken";
1869
+ const _ra = "retry-after";
1870
+ const _tK = "tagKeys";
2054
1871
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
2055
1872
  if (encoded.length) {
2056
1873
  return JSON.parse(encoded);