@aws-sdk/client-wellarchitected 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,131 +3,96 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.se_ListReviewTemplatesCommand = exports.se_ListReviewTemplateAnswersCommand = exports.se_ListProfileSharesCommand = exports.se_ListProfilesCommand = exports.se_ListProfileNotificationsCommand = exports.se_ListNotificationsCommand = exports.se_ListMilestonesCommand = exports.se_ListLensSharesCommand = exports.se_ListLensReviewsCommand = exports.se_ListLensReviewImprovementsCommand = exports.se_ListLensesCommand = exports.se_ListCheckSummariesCommand = exports.se_ListCheckDetailsCommand = exports.se_ListAnswersCommand = exports.se_ImportLensCommand = exports.se_GetWorkloadCommand = exports.se_GetReviewTemplateLensReviewCommand = exports.se_GetReviewTemplateAnswerCommand = exports.se_GetReviewTemplateCommand = exports.se_GetProfileTemplateCommand = exports.se_GetProfileCommand = exports.se_GetMilestoneCommand = exports.se_GetLensVersionDifferenceCommand = exports.se_GetLensReviewReportCommand = exports.se_GetLensReviewCommand = exports.se_GetLensCommand = exports.se_GetConsolidatedReportCommand = exports.se_GetAnswerCommand = exports.se_ExportLensCommand = exports.se_DisassociateProfilesCommand = exports.se_DisassociateLensesCommand = exports.se_DeleteWorkloadShareCommand = exports.se_DeleteWorkloadCommand = exports.se_DeleteTemplateShareCommand = exports.se_DeleteReviewTemplateCommand = exports.se_DeleteProfileShareCommand = exports.se_DeleteProfileCommand = exports.se_DeleteLensShareCommand = exports.se_DeleteLensCommand = exports.se_CreateWorkloadShareCommand = exports.se_CreateWorkloadCommand = exports.se_CreateTemplateShareCommand = exports.se_CreateReviewTemplateCommand = exports.se_CreateProfileShareCommand = exports.se_CreateProfileCommand = exports.se_CreateMilestoneCommand = exports.se_CreateLensVersionCommand = exports.se_CreateLensShareCommand = exports.se_AssociateProfilesCommand = exports.se_AssociateLensesCommand = void 0;
4
4
  exports.de_GetProfileCommand = exports.de_GetMilestoneCommand = exports.de_GetLensVersionDifferenceCommand = exports.de_GetLensReviewReportCommand = exports.de_GetLensReviewCommand = exports.de_GetLensCommand = exports.de_GetConsolidatedReportCommand = exports.de_GetAnswerCommand = exports.de_ExportLensCommand = exports.de_DisassociateProfilesCommand = exports.de_DisassociateLensesCommand = exports.de_DeleteWorkloadShareCommand = exports.de_DeleteWorkloadCommand = exports.de_DeleteTemplateShareCommand = exports.de_DeleteReviewTemplateCommand = exports.de_DeleteProfileShareCommand = exports.de_DeleteProfileCommand = exports.de_DeleteLensShareCommand = exports.de_DeleteLensCommand = exports.de_CreateWorkloadShareCommand = exports.de_CreateWorkloadCommand = exports.de_CreateTemplateShareCommand = exports.de_CreateReviewTemplateCommand = exports.de_CreateProfileShareCommand = exports.de_CreateProfileCommand = exports.de_CreateMilestoneCommand = exports.de_CreateLensVersionCommand = exports.de_CreateLensShareCommand = exports.de_AssociateProfilesCommand = exports.de_AssociateLensesCommand = exports.se_UpgradeReviewTemplateLensReviewCommand = exports.se_UpgradeProfileVersionCommand = exports.se_UpgradeLensReviewCommand = exports.se_UpdateWorkloadShareCommand = exports.se_UpdateWorkloadCommand = exports.se_UpdateShareInvitationCommand = exports.se_UpdateReviewTemplateLensReviewCommand = exports.se_UpdateReviewTemplateAnswerCommand = exports.se_UpdateReviewTemplateCommand = exports.se_UpdateProfileCommand = exports.se_UpdateLensReviewCommand = exports.se_UpdateGlobalSettingsCommand = exports.se_UpdateAnswerCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_ListWorkloadSharesCommand = exports.se_ListWorkloadsCommand = exports.se_ListTemplateSharesCommand = exports.se_ListTagsForResourceCommand = exports.se_ListShareInvitationsCommand = void 0;
5
5
  exports.de_UpgradeReviewTemplateLensReviewCommand = exports.de_UpgradeProfileVersionCommand = exports.de_UpgradeLensReviewCommand = exports.de_UpdateWorkloadShareCommand = exports.de_UpdateWorkloadCommand = exports.de_UpdateShareInvitationCommand = exports.de_UpdateReviewTemplateLensReviewCommand = exports.de_UpdateReviewTemplateAnswerCommand = exports.de_UpdateReviewTemplateCommand = exports.de_UpdateProfileCommand = exports.de_UpdateLensReviewCommand = exports.de_UpdateGlobalSettingsCommand = exports.de_UpdateAnswerCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_ListWorkloadSharesCommand = exports.de_ListWorkloadsCommand = exports.de_ListTemplateSharesCommand = exports.de_ListTagsForResourceCommand = exports.de_ListShareInvitationsCommand = exports.de_ListReviewTemplatesCommand = exports.de_ListReviewTemplateAnswersCommand = exports.de_ListProfileSharesCommand = exports.de_ListProfilesCommand = exports.de_ListProfileNotificationsCommand = exports.de_ListNotificationsCommand = exports.de_ListMilestonesCommand = exports.de_ListLensSharesCommand = exports.de_ListLensReviewsCommand = exports.de_ListLensReviewImprovementsCommand = exports.de_ListLensesCommand = exports.de_ListCheckSummariesCommand = exports.de_ListCheckDetailsCommand = exports.de_ListAnswersCommand = exports.de_ImportLensCommand = exports.de_GetWorkloadCommand = exports.de_GetReviewTemplateLensReviewCommand = exports.de_GetReviewTemplateAnswerCommand = exports.de_GetReviewTemplateCommand = exports.de_GetProfileTemplateCommand = 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 uuid_1 = require("uuid");
9
9
  const models_0_1 = require("../models/models_0");
10
10
  const WellArchitectedServiceException_1 = require("../models/WellArchitectedServiceException");
11
11
  const se_AssociateLensesCommand = async (input, context) => {
12
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
12
+ const b = (0, core_1.requestBuilder)(input, context);
13
13
  const headers = {
14
14
  "content-type": "application/json",
15
15
  };
16
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workloads/{WorkloadId}/associateLenses";
17
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
16
+ b.bp("/workloads/{WorkloadId}/associateLenses");
17
+ b.p("WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
18
18
  let body;
19
19
  body = JSON.stringify((0, smithy_client_1.take)(input, {
20
20
  LensAliases: (_) => (0, smithy_client_1._json)(_),
21
21
  }));
22
- return new protocol_http_1.HttpRequest({
23
- protocol,
24
- hostname,
25
- port,
26
- method: "PATCH",
27
- headers,
28
- path: resolvedPath,
29
- body,
30
- });
22
+ b.m("PATCH").h(headers).b(body);
23
+ return b.build();
31
24
  };
32
25
  exports.se_AssociateLensesCommand = se_AssociateLensesCommand;
33
26
  const se_AssociateProfilesCommand = async (input, context) => {
34
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
27
+ const b = (0, core_1.requestBuilder)(input, context);
35
28
  const headers = {
36
29
  "content-type": "application/json",
37
30
  };
38
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workloads/{WorkloadId}/associateProfiles";
39
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
31
+ b.bp("/workloads/{WorkloadId}/associateProfiles");
32
+ b.p("WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
40
33
  let body;
41
34
  body = JSON.stringify((0, smithy_client_1.take)(input, {
42
35
  ProfileArns: (_) => (0, smithy_client_1._json)(_),
43
36
  }));
44
- return new protocol_http_1.HttpRequest({
45
- protocol,
46
- hostname,
47
- port,
48
- method: "PATCH",
49
- headers,
50
- path: resolvedPath,
51
- body,
52
- });
37
+ b.m("PATCH").h(headers).b(body);
38
+ return b.build();
53
39
  };
54
40
  exports.se_AssociateProfilesCommand = se_AssociateProfilesCommand;
55
41
  const se_CreateLensShareCommand = async (input, context) => {
56
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
42
+ const b = (0, core_1.requestBuilder)(input, context);
57
43
  const headers = {
58
44
  "content-type": "application/json",
59
45
  };
60
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/lenses/{LensAlias}/shares";
61
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "LensAlias", () => input.LensAlias, "{LensAlias}", false);
46
+ b.bp("/lenses/{LensAlias}/shares");
47
+ b.p("LensAlias", () => input.LensAlias, "{LensAlias}", false);
62
48
  let body;
63
49
  body = JSON.stringify((0, smithy_client_1.take)(input, {
64
50
  ClientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
65
51
  SharedWith: [],
66
52
  }));
67
- return new protocol_http_1.HttpRequest({
68
- protocol,
69
- hostname,
70
- port,
71
- method: "POST",
72
- headers,
73
- path: resolvedPath,
74
- body,
75
- });
53
+ b.m("POST").h(headers).b(body);
54
+ return b.build();
76
55
  };
77
56
  exports.se_CreateLensShareCommand = se_CreateLensShareCommand;
78
57
  const se_CreateLensVersionCommand = async (input, context) => {
79
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
58
+ const b = (0, core_1.requestBuilder)(input, context);
80
59
  const headers = {
81
60
  "content-type": "application/json",
82
61
  };
83
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/lenses/{LensAlias}/versions";
84
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "LensAlias", () => input.LensAlias, "{LensAlias}", false);
62
+ b.bp("/lenses/{LensAlias}/versions");
63
+ b.p("LensAlias", () => input.LensAlias, "{LensAlias}", false);
85
64
  let body;
86
65
  body = JSON.stringify((0, smithy_client_1.take)(input, {
87
66
  ClientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
88
67
  IsMajorVersion: [],
89
68
  LensVersion: [],
90
69
  }));
91
- return new protocol_http_1.HttpRequest({
92
- protocol,
93
- hostname,
94
- port,
95
- method: "POST",
96
- headers,
97
- path: resolvedPath,
98
- body,
99
- });
70
+ b.m("POST").h(headers).b(body);
71
+ return b.build();
100
72
  };
101
73
  exports.se_CreateLensVersionCommand = se_CreateLensVersionCommand;
102
74
  const se_CreateMilestoneCommand = async (input, context) => {
103
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
75
+ const b = (0, core_1.requestBuilder)(input, context);
104
76
  const headers = {
105
77
  "content-type": "application/json",
106
78
  };
107
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workloads/{WorkloadId}/milestones";
108
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
79
+ b.bp("/workloads/{WorkloadId}/milestones");
80
+ b.p("WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
109
81
  let body;
110
82
  body = JSON.stringify((0, smithy_client_1.take)(input, {
111
83
  ClientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
112
84
  MilestoneName: [],
113
85
  }));
114
- return new protocol_http_1.HttpRequest({
115
- protocol,
116
- hostname,
117
- port,
118
- method: "POST",
119
- headers,
120
- path: resolvedPath,
121
- body,
122
- });
86
+ b.m("POST").h(headers).b(body);
87
+ return b.build();
123
88
  };
124
89
  exports.se_CreateMilestoneCommand = se_CreateMilestoneCommand;
125
90
  const se_CreateProfileCommand = async (input, context) => {
126
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
91
+ const b = (0, core_1.requestBuilder)(input, context);
127
92
  const headers = {
128
93
  "content-type": "application/json",
129
94
  };
130
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/profiles";
95
+ b.bp("/profiles");
131
96
  let body;
132
97
  body = JSON.stringify((0, smithy_client_1.take)(input, {
133
98
  ClientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
@@ -136,46 +101,32 @@ const se_CreateProfileCommand = async (input, context) => {
136
101
  ProfileQuestions: (_) => (0, smithy_client_1._json)(_),
137
102
  Tags: (_) => (0, smithy_client_1._json)(_),
138
103
  }));
139
- return new protocol_http_1.HttpRequest({
140
- protocol,
141
- hostname,
142
- port,
143
- method: "POST",
144
- headers,
145
- path: resolvedPath,
146
- body,
147
- });
104
+ b.m("POST").h(headers).b(body);
105
+ return b.build();
148
106
  };
149
107
  exports.se_CreateProfileCommand = se_CreateProfileCommand;
150
108
  const se_CreateProfileShareCommand = async (input, context) => {
151
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
109
+ const b = (0, core_1.requestBuilder)(input, context);
152
110
  const headers = {
153
111
  "content-type": "application/json",
154
112
  };
155
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/profiles/{ProfileArn}/shares";
156
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ProfileArn", () => input.ProfileArn, "{ProfileArn}", false);
113
+ b.bp("/profiles/{ProfileArn}/shares");
114
+ b.p("ProfileArn", () => input.ProfileArn, "{ProfileArn}", false);
157
115
  let body;
158
116
  body = JSON.stringify((0, smithy_client_1.take)(input, {
159
117
  ClientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
160
118
  SharedWith: [],
161
119
  }));
162
- return new protocol_http_1.HttpRequest({
163
- protocol,
164
- hostname,
165
- port,
166
- method: "POST",
167
- headers,
168
- path: resolvedPath,
169
- body,
170
- });
120
+ b.m("POST").h(headers).b(body);
121
+ return b.build();
171
122
  };
172
123
  exports.se_CreateProfileShareCommand = se_CreateProfileShareCommand;
173
124
  const se_CreateReviewTemplateCommand = async (input, context) => {
174
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
125
+ const b = (0, core_1.requestBuilder)(input, context);
175
126
  const headers = {
176
127
  "content-type": "application/json",
177
128
  };
178
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/reviewTemplates";
129
+ b.bp("/reviewTemplates");
179
130
  let body;
180
131
  body = JSON.stringify((0, smithy_client_1.take)(input, {
181
132
  ClientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
@@ -185,46 +136,32 @@ const se_CreateReviewTemplateCommand = async (input, context) => {
185
136
  Tags: (_) => (0, smithy_client_1._json)(_),
186
137
  TemplateName: [],
187
138
  }));
188
- return new protocol_http_1.HttpRequest({
189
- protocol,
190
- hostname,
191
- port,
192
- method: "POST",
193
- headers,
194
- path: resolvedPath,
195
- body,
196
- });
139
+ b.m("POST").h(headers).b(body);
140
+ return b.build();
197
141
  };
198
142
  exports.se_CreateReviewTemplateCommand = se_CreateReviewTemplateCommand;
199
143
  const se_CreateTemplateShareCommand = async (input, context) => {
200
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
144
+ const b = (0, core_1.requestBuilder)(input, context);
201
145
  const headers = {
202
146
  "content-type": "application/json",
203
147
  };
204
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/templates/shares/{TemplateArn}";
205
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
148
+ b.bp("/templates/shares/{TemplateArn}");
149
+ b.p("TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
206
150
  let body;
207
151
  body = JSON.stringify((0, smithy_client_1.take)(input, {
208
152
  ClientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
209
153
  SharedWith: [],
210
154
  }));
211
- return new protocol_http_1.HttpRequest({
212
- protocol,
213
- hostname,
214
- port,
215
- method: "POST",
216
- headers,
217
- path: resolvedPath,
218
- body,
219
- });
155
+ b.m("POST").h(headers).b(body);
156
+ return b.build();
220
157
  };
221
158
  exports.se_CreateTemplateShareCommand = se_CreateTemplateShareCommand;
222
159
  const se_CreateWorkloadCommand = async (input, context) => {
223
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
160
+ const b = (0, core_1.requestBuilder)(input, context);
224
161
  const headers = {
225
162
  "content-type": "application/json",
226
163
  };
227
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workloads";
164
+ b.bp("/workloads");
228
165
  let body;
229
166
  body = JSON.stringify((0, smithy_client_1.take)(input, {
230
167
  AccountIds: (_) => (0, smithy_client_1._json)(_),
@@ -247,558 +184,349 @@ const se_CreateWorkloadCommand = async (input, context) => {
247
184
  Tags: (_) => (0, smithy_client_1._json)(_),
248
185
  WorkloadName: [],
249
186
  }));
250
- return new protocol_http_1.HttpRequest({
251
- protocol,
252
- hostname,
253
- port,
254
- method: "POST",
255
- headers,
256
- path: resolvedPath,
257
- body,
258
- });
187
+ b.m("POST").h(headers).b(body);
188
+ return b.build();
259
189
  };
260
190
  exports.se_CreateWorkloadCommand = se_CreateWorkloadCommand;
261
191
  const se_CreateWorkloadShareCommand = async (input, context) => {
262
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
192
+ const b = (0, core_1.requestBuilder)(input, context);
263
193
  const headers = {
264
194
  "content-type": "application/json",
265
195
  };
266
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workloads/{WorkloadId}/shares";
267
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
196
+ b.bp("/workloads/{WorkloadId}/shares");
197
+ b.p("WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
268
198
  let body;
269
199
  body = JSON.stringify((0, smithy_client_1.take)(input, {
270
200
  ClientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
271
201
  PermissionType: [],
272
202
  SharedWith: [],
273
203
  }));
274
- return new protocol_http_1.HttpRequest({
275
- protocol,
276
- hostname,
277
- port,
278
- method: "POST",
279
- headers,
280
- path: resolvedPath,
281
- body,
282
- });
204
+ b.m("POST").h(headers).b(body);
205
+ return b.build();
283
206
  };
284
207
  exports.se_CreateWorkloadShareCommand = se_CreateWorkloadShareCommand;
285
208
  const se_DeleteLensCommand = async (input, context) => {
286
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
209
+ const b = (0, core_1.requestBuilder)(input, context);
287
210
  const headers = {};
288
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/lenses/{LensAlias}";
289
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "LensAlias", () => input.LensAlias, "{LensAlias}", false);
211
+ b.bp("/lenses/{LensAlias}");
212
+ b.p("LensAlias", () => input.LensAlias, "{LensAlias}", false);
290
213
  const query = (0, smithy_client_1.map)({
291
- ClientRequestToken: [, (0, smithy_client_1.expectNonNull)(input.ClientRequestToken, `ClientRequestToken`)],
292
- LensStatus: [, (0, smithy_client_1.expectNonNull)(input.LensStatus, `LensStatus`)],
214
+ [_CRT]: [, (0, smithy_client_1.expectNonNull)(input[_CRT], `ClientRequestToken`)],
215
+ [_LS]: [, (0, smithy_client_1.expectNonNull)(input[_LS], `LensStatus`)],
293
216
  });
294
217
  let body;
295
- return new protocol_http_1.HttpRequest({
296
- protocol,
297
- hostname,
298
- port,
299
- method: "DELETE",
300
- headers,
301
- path: resolvedPath,
302
- query,
303
- body,
304
- });
218
+ b.m("DELETE").h(headers).q(query).b(body);
219
+ return b.build();
305
220
  };
306
221
  exports.se_DeleteLensCommand = se_DeleteLensCommand;
307
222
  const se_DeleteLensShareCommand = async (input, context) => {
308
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
223
+ const b = (0, core_1.requestBuilder)(input, context);
309
224
  const headers = {};
310
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/lenses/{LensAlias}/shares/{ShareId}";
311
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ShareId", () => input.ShareId, "{ShareId}", false);
312
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "LensAlias", () => input.LensAlias, "{LensAlias}", false);
225
+ b.bp("/lenses/{LensAlias}/shares/{ShareId}");
226
+ b.p("ShareId", () => input.ShareId, "{ShareId}", false);
227
+ b.p("LensAlias", () => input.LensAlias, "{LensAlias}", false);
313
228
  const query = (0, smithy_client_1.map)({
314
- ClientRequestToken: [, (0, smithy_client_1.expectNonNull)(input.ClientRequestToken, `ClientRequestToken`)],
229
+ [_CRT]: [, (0, smithy_client_1.expectNonNull)(input[_CRT], `ClientRequestToken`)],
315
230
  });
316
231
  let body;
317
- return new protocol_http_1.HttpRequest({
318
- protocol,
319
- hostname,
320
- port,
321
- method: "DELETE",
322
- headers,
323
- path: resolvedPath,
324
- query,
325
- body,
326
- });
232
+ b.m("DELETE").h(headers).q(query).b(body);
233
+ return b.build();
327
234
  };
328
235
  exports.se_DeleteLensShareCommand = se_DeleteLensShareCommand;
329
236
  const se_DeleteProfileCommand = async (input, context) => {
330
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
237
+ const b = (0, core_1.requestBuilder)(input, context);
331
238
  const headers = {};
332
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/profiles/{ProfileArn}";
333
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ProfileArn", () => input.ProfileArn, "{ProfileArn}", false);
239
+ b.bp("/profiles/{ProfileArn}");
240
+ b.p("ProfileArn", () => input.ProfileArn, "{ProfileArn}", false);
334
241
  const query = (0, smithy_client_1.map)({
335
- ClientRequestToken: [, (0, smithy_client_1.expectNonNull)(input.ClientRequestToken, `ClientRequestToken`)],
242
+ [_CRT]: [, (0, smithy_client_1.expectNonNull)(input[_CRT], `ClientRequestToken`)],
336
243
  });
337
244
  let body;
338
- return new protocol_http_1.HttpRequest({
339
- protocol,
340
- hostname,
341
- port,
342
- method: "DELETE",
343
- headers,
344
- path: resolvedPath,
345
- query,
346
- body,
347
- });
245
+ b.m("DELETE").h(headers).q(query).b(body);
246
+ return b.build();
348
247
  };
349
248
  exports.se_DeleteProfileCommand = se_DeleteProfileCommand;
350
249
  const se_DeleteProfileShareCommand = async (input, context) => {
351
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
250
+ const b = (0, core_1.requestBuilder)(input, context);
352
251
  const headers = {};
353
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/profiles/{ProfileArn}/shares/{ShareId}";
354
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ShareId", () => input.ShareId, "{ShareId}", false);
355
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ProfileArn", () => input.ProfileArn, "{ProfileArn}", false);
252
+ b.bp("/profiles/{ProfileArn}/shares/{ShareId}");
253
+ b.p("ShareId", () => input.ShareId, "{ShareId}", false);
254
+ b.p("ProfileArn", () => input.ProfileArn, "{ProfileArn}", false);
356
255
  const query = (0, smithy_client_1.map)({
357
- ClientRequestToken: [, (0, smithy_client_1.expectNonNull)(input.ClientRequestToken, `ClientRequestToken`)],
256
+ [_CRT]: [, (0, smithy_client_1.expectNonNull)(input[_CRT], `ClientRequestToken`)],
358
257
  });
359
258
  let body;
360
- return new protocol_http_1.HttpRequest({
361
- protocol,
362
- hostname,
363
- port,
364
- method: "DELETE",
365
- headers,
366
- path: resolvedPath,
367
- query,
368
- body,
369
- });
259
+ b.m("DELETE").h(headers).q(query).b(body);
260
+ return b.build();
370
261
  };
371
262
  exports.se_DeleteProfileShareCommand = se_DeleteProfileShareCommand;
372
263
  const se_DeleteReviewTemplateCommand = async (input, context) => {
373
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
264
+ const b = (0, core_1.requestBuilder)(input, context);
374
265
  const headers = {};
375
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/reviewTemplates/{TemplateArn}";
376
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
266
+ b.bp("/reviewTemplates/{TemplateArn}");
267
+ b.p("TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
377
268
  const query = (0, smithy_client_1.map)({
378
- ClientRequestToken: [, (0, smithy_client_1.expectNonNull)(input.ClientRequestToken, `ClientRequestToken`)],
269
+ [_CRT]: [, (0, smithy_client_1.expectNonNull)(input[_CRT], `ClientRequestToken`)],
379
270
  });
380
271
  let body;
381
- return new protocol_http_1.HttpRequest({
382
- protocol,
383
- hostname,
384
- port,
385
- method: "DELETE",
386
- headers,
387
- path: resolvedPath,
388
- query,
389
- body,
390
- });
272
+ b.m("DELETE").h(headers).q(query).b(body);
273
+ return b.build();
391
274
  };
392
275
  exports.se_DeleteReviewTemplateCommand = se_DeleteReviewTemplateCommand;
393
276
  const se_DeleteTemplateShareCommand = async (input, context) => {
394
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
277
+ const b = (0, core_1.requestBuilder)(input, context);
395
278
  const headers = {};
396
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/templates/shares/{TemplateArn}/{ShareId}";
397
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ShareId", () => input.ShareId, "{ShareId}", false);
398
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
279
+ b.bp("/templates/shares/{TemplateArn}/{ShareId}");
280
+ b.p("ShareId", () => input.ShareId, "{ShareId}", false);
281
+ b.p("TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
399
282
  const query = (0, smithy_client_1.map)({
400
- ClientRequestToken: [, (0, smithy_client_1.expectNonNull)(input.ClientRequestToken, `ClientRequestToken`)],
283
+ [_CRT]: [, (0, smithy_client_1.expectNonNull)(input[_CRT], `ClientRequestToken`)],
401
284
  });
402
285
  let body;
403
- return new protocol_http_1.HttpRequest({
404
- protocol,
405
- hostname,
406
- port,
407
- method: "DELETE",
408
- headers,
409
- path: resolvedPath,
410
- query,
411
- body,
412
- });
286
+ b.m("DELETE").h(headers).q(query).b(body);
287
+ return b.build();
413
288
  };
414
289
  exports.se_DeleteTemplateShareCommand = se_DeleteTemplateShareCommand;
415
290
  const se_DeleteWorkloadCommand = async (input, context) => {
416
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
291
+ const b = (0, core_1.requestBuilder)(input, context);
417
292
  const headers = {};
418
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workloads/{WorkloadId}";
419
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
293
+ b.bp("/workloads/{WorkloadId}");
294
+ b.p("WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
420
295
  const query = (0, smithy_client_1.map)({
421
- ClientRequestToken: [, (0, smithy_client_1.expectNonNull)(input.ClientRequestToken, `ClientRequestToken`)],
296
+ [_CRT]: [, (0, smithy_client_1.expectNonNull)(input[_CRT], `ClientRequestToken`)],
422
297
  });
423
298
  let body;
424
- return new protocol_http_1.HttpRequest({
425
- protocol,
426
- hostname,
427
- port,
428
- method: "DELETE",
429
- headers,
430
- path: resolvedPath,
431
- query,
432
- body,
433
- });
299
+ b.m("DELETE").h(headers).q(query).b(body);
300
+ return b.build();
434
301
  };
435
302
  exports.se_DeleteWorkloadCommand = se_DeleteWorkloadCommand;
436
303
  const se_DeleteWorkloadShareCommand = async (input, context) => {
437
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
304
+ const b = (0, core_1.requestBuilder)(input, context);
438
305
  const headers = {};
439
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workloads/{WorkloadId}/shares/{ShareId}";
440
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ShareId", () => input.ShareId, "{ShareId}", false);
441
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
306
+ b.bp("/workloads/{WorkloadId}/shares/{ShareId}");
307
+ b.p("ShareId", () => input.ShareId, "{ShareId}", false);
308
+ b.p("WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
442
309
  const query = (0, smithy_client_1.map)({
443
- ClientRequestToken: [, (0, smithy_client_1.expectNonNull)(input.ClientRequestToken, `ClientRequestToken`)],
310
+ [_CRT]: [, (0, smithy_client_1.expectNonNull)(input[_CRT], `ClientRequestToken`)],
444
311
  });
445
312
  let body;
446
- return new protocol_http_1.HttpRequest({
447
- protocol,
448
- hostname,
449
- port,
450
- method: "DELETE",
451
- headers,
452
- path: resolvedPath,
453
- query,
454
- body,
455
- });
313
+ b.m("DELETE").h(headers).q(query).b(body);
314
+ return b.build();
456
315
  };
457
316
  exports.se_DeleteWorkloadShareCommand = se_DeleteWorkloadShareCommand;
458
317
  const se_DisassociateLensesCommand = async (input, context) => {
459
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
318
+ const b = (0, core_1.requestBuilder)(input, context);
460
319
  const headers = {
461
320
  "content-type": "application/json",
462
321
  };
463
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
464
- "/workloads/{WorkloadId}/disassociateLenses";
465
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
322
+ b.bp("/workloads/{WorkloadId}/disassociateLenses");
323
+ b.p("WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
466
324
  let body;
467
325
  body = JSON.stringify((0, smithy_client_1.take)(input, {
468
326
  LensAliases: (_) => (0, smithy_client_1._json)(_),
469
327
  }));
470
- return new protocol_http_1.HttpRequest({
471
- protocol,
472
- hostname,
473
- port,
474
- method: "PATCH",
475
- headers,
476
- path: resolvedPath,
477
- body,
478
- });
328
+ b.m("PATCH").h(headers).b(body);
329
+ return b.build();
479
330
  };
480
331
  exports.se_DisassociateLensesCommand = se_DisassociateLensesCommand;
481
332
  const se_DisassociateProfilesCommand = async (input, context) => {
482
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
333
+ const b = (0, core_1.requestBuilder)(input, context);
483
334
  const headers = {
484
335
  "content-type": "application/json",
485
336
  };
486
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
487
- "/workloads/{WorkloadId}/disassociateProfiles";
488
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
337
+ b.bp("/workloads/{WorkloadId}/disassociateProfiles");
338
+ b.p("WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
489
339
  let body;
490
340
  body = JSON.stringify((0, smithy_client_1.take)(input, {
491
341
  ProfileArns: (_) => (0, smithy_client_1._json)(_),
492
342
  }));
493
- return new protocol_http_1.HttpRequest({
494
- protocol,
495
- hostname,
496
- port,
497
- method: "PATCH",
498
- headers,
499
- path: resolvedPath,
500
- body,
501
- });
343
+ b.m("PATCH").h(headers).b(body);
344
+ return b.build();
502
345
  };
503
346
  exports.se_DisassociateProfilesCommand = se_DisassociateProfilesCommand;
504
347
  const se_ExportLensCommand = async (input, context) => {
505
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
348
+ const b = (0, core_1.requestBuilder)(input, context);
506
349
  const headers = {};
507
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/lenses/{LensAlias}/export";
508
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "LensAlias", () => input.LensAlias, "{LensAlias}", false);
350
+ b.bp("/lenses/{LensAlias}/export");
351
+ b.p("LensAlias", () => input.LensAlias, "{LensAlias}", false);
509
352
  const query = (0, smithy_client_1.map)({
510
- LensVersion: [, input.LensVersion],
353
+ [_LV]: [, input[_LV]],
511
354
  });
512
355
  let body;
513
- return new protocol_http_1.HttpRequest({
514
- protocol,
515
- hostname,
516
- port,
517
- method: "GET",
518
- headers,
519
- path: resolvedPath,
520
- query,
521
- body,
522
- });
356
+ b.m("GET").h(headers).q(query).b(body);
357
+ return b.build();
523
358
  };
524
359
  exports.se_ExportLensCommand = se_ExportLensCommand;
525
360
  const se_GetAnswerCommand = async (input, context) => {
526
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
361
+ const b = (0, core_1.requestBuilder)(input, context);
527
362
  const headers = {};
528
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
529
- "/workloads/{WorkloadId}/lensReviews/{LensAlias}/answers/{QuestionId}";
530
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
531
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "LensAlias", () => input.LensAlias, "{LensAlias}", false);
532
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "QuestionId", () => input.QuestionId, "{QuestionId}", false);
363
+ b.bp("/workloads/{WorkloadId}/lensReviews/{LensAlias}/answers/{QuestionId}");
364
+ b.p("WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
365
+ b.p("LensAlias", () => input.LensAlias, "{LensAlias}", false);
366
+ b.p("QuestionId", () => input.QuestionId, "{QuestionId}", false);
533
367
  const query = (0, smithy_client_1.map)({
534
- MilestoneNumber: [() => input.MilestoneNumber !== void 0, () => input.MilestoneNumber.toString()],
368
+ [_MN]: [() => input.MilestoneNumber !== void 0, () => input[_MN].toString()],
535
369
  });
536
370
  let body;
537
- return new protocol_http_1.HttpRequest({
538
- protocol,
539
- hostname,
540
- port,
541
- method: "GET",
542
- headers,
543
- path: resolvedPath,
544
- query,
545
- body,
546
- });
371
+ b.m("GET").h(headers).q(query).b(body);
372
+ return b.build();
547
373
  };
548
374
  exports.se_GetAnswerCommand = se_GetAnswerCommand;
549
375
  const se_GetConsolidatedReportCommand = async (input, context) => {
550
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
376
+ const b = (0, core_1.requestBuilder)(input, context);
551
377
  const headers = {};
552
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/consolidatedReport";
378
+ b.bp("/consolidatedReport");
553
379
  const query = (0, smithy_client_1.map)({
554
- Format: [, (0, smithy_client_1.expectNonNull)(input.Format, `Format`)],
555
- IncludeSharedResources: [
556
- () => input.IncludeSharedResources !== void 0,
557
- () => input.IncludeSharedResources.toString(),
558
- ],
559
- NextToken: [, input.NextToken],
560
- MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
380
+ [_F]: [, (0, smithy_client_1.expectNonNull)(input[_F], `Format`)],
381
+ [_ISR]: [() => input.IncludeSharedResources !== void 0, () => input[_ISR].toString()],
382
+ [_NT]: [, input[_NT]],
383
+ [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
561
384
  });
562
385
  let body;
563
- return new protocol_http_1.HttpRequest({
564
- protocol,
565
- hostname,
566
- port,
567
- method: "GET",
568
- headers,
569
- path: resolvedPath,
570
- query,
571
- body,
572
- });
386
+ b.m("GET").h(headers).q(query).b(body);
387
+ return b.build();
573
388
  };
574
389
  exports.se_GetConsolidatedReportCommand = se_GetConsolidatedReportCommand;
575
390
  const se_GetLensCommand = async (input, context) => {
576
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
391
+ const b = (0, core_1.requestBuilder)(input, context);
577
392
  const headers = {};
578
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/lenses/{LensAlias}";
579
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "LensAlias", () => input.LensAlias, "{LensAlias}", false);
393
+ b.bp("/lenses/{LensAlias}");
394
+ b.p("LensAlias", () => input.LensAlias, "{LensAlias}", false);
580
395
  const query = (0, smithy_client_1.map)({
581
- LensVersion: [, input.LensVersion],
396
+ [_LV]: [, input[_LV]],
582
397
  });
583
398
  let body;
584
- return new protocol_http_1.HttpRequest({
585
- protocol,
586
- hostname,
587
- port,
588
- method: "GET",
589
- headers,
590
- path: resolvedPath,
591
- query,
592
- body,
593
- });
399
+ b.m("GET").h(headers).q(query).b(body);
400
+ return b.build();
594
401
  };
595
402
  exports.se_GetLensCommand = se_GetLensCommand;
596
403
  const se_GetLensReviewCommand = async (input, context) => {
597
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
404
+ const b = (0, core_1.requestBuilder)(input, context);
598
405
  const headers = {};
599
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
600
- "/workloads/{WorkloadId}/lensReviews/{LensAlias}";
601
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
602
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "LensAlias", () => input.LensAlias, "{LensAlias}", false);
406
+ b.bp("/workloads/{WorkloadId}/lensReviews/{LensAlias}");
407
+ b.p("WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
408
+ b.p("LensAlias", () => input.LensAlias, "{LensAlias}", false);
603
409
  const query = (0, smithy_client_1.map)({
604
- MilestoneNumber: [() => input.MilestoneNumber !== void 0, () => input.MilestoneNumber.toString()],
410
+ [_MN]: [() => input.MilestoneNumber !== void 0, () => input[_MN].toString()],
605
411
  });
606
412
  let body;
607
- return new protocol_http_1.HttpRequest({
608
- protocol,
609
- hostname,
610
- port,
611
- method: "GET",
612
- headers,
613
- path: resolvedPath,
614
- query,
615
- body,
616
- });
413
+ b.m("GET").h(headers).q(query).b(body);
414
+ return b.build();
617
415
  };
618
416
  exports.se_GetLensReviewCommand = se_GetLensReviewCommand;
619
417
  const se_GetLensReviewReportCommand = async (input, context) => {
620
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
418
+ const b = (0, core_1.requestBuilder)(input, context);
621
419
  const headers = {};
622
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
623
- "/workloads/{WorkloadId}/lensReviews/{LensAlias}/report";
624
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
625
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "LensAlias", () => input.LensAlias, "{LensAlias}", false);
420
+ b.bp("/workloads/{WorkloadId}/lensReviews/{LensAlias}/report");
421
+ b.p("WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
422
+ b.p("LensAlias", () => input.LensAlias, "{LensAlias}", false);
626
423
  const query = (0, smithy_client_1.map)({
627
- MilestoneNumber: [() => input.MilestoneNumber !== void 0, () => input.MilestoneNumber.toString()],
424
+ [_MN]: [() => input.MilestoneNumber !== void 0, () => input[_MN].toString()],
628
425
  });
629
426
  let body;
630
- return new protocol_http_1.HttpRequest({
631
- protocol,
632
- hostname,
633
- port,
634
- method: "GET",
635
- headers,
636
- path: resolvedPath,
637
- query,
638
- body,
639
- });
427
+ b.m("GET").h(headers).q(query).b(body);
428
+ return b.build();
640
429
  };
641
430
  exports.se_GetLensReviewReportCommand = se_GetLensReviewReportCommand;
642
431
  const se_GetLensVersionDifferenceCommand = async (input, context) => {
643
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
432
+ const b = (0, core_1.requestBuilder)(input, context);
644
433
  const headers = {};
645
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/lenses/{LensAlias}/versionDifference";
646
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "LensAlias", () => input.LensAlias, "{LensAlias}", false);
434
+ b.bp("/lenses/{LensAlias}/versionDifference");
435
+ b.p("LensAlias", () => input.LensAlias, "{LensAlias}", false);
647
436
  const query = (0, smithy_client_1.map)({
648
- BaseLensVersion: [, input.BaseLensVersion],
649
- TargetLensVersion: [, input.TargetLensVersion],
437
+ [_BLV]: [, input[_BLV]],
438
+ [_TLV]: [, input[_TLV]],
650
439
  });
651
440
  let body;
652
- return new protocol_http_1.HttpRequest({
653
- protocol,
654
- hostname,
655
- port,
656
- method: "GET",
657
- headers,
658
- path: resolvedPath,
659
- query,
660
- body,
661
- });
441
+ b.m("GET").h(headers).q(query).b(body);
442
+ return b.build();
662
443
  };
663
444
  exports.se_GetLensVersionDifferenceCommand = se_GetLensVersionDifferenceCommand;
664
445
  const se_GetMilestoneCommand = async (input, context) => {
665
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
446
+ const b = (0, core_1.requestBuilder)(input, context);
666
447
  const headers = {};
667
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
668
- "/workloads/{WorkloadId}/milestones/{MilestoneNumber}";
669
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
670
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "MilestoneNumber", () => input.MilestoneNumber.toString(), "{MilestoneNumber}", false);
448
+ b.bp("/workloads/{WorkloadId}/milestones/{MilestoneNumber}");
449
+ b.p("WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
450
+ b.p("MilestoneNumber", () => input.MilestoneNumber.toString(), "{MilestoneNumber}", false);
671
451
  let body;
672
- return new protocol_http_1.HttpRequest({
673
- protocol,
674
- hostname,
675
- port,
676
- method: "GET",
677
- headers,
678
- path: resolvedPath,
679
- body,
680
- });
452
+ b.m("GET").h(headers).b(body);
453
+ return b.build();
681
454
  };
682
455
  exports.se_GetMilestoneCommand = se_GetMilestoneCommand;
683
456
  const se_GetProfileCommand = async (input, context) => {
684
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
457
+ const b = (0, core_1.requestBuilder)(input, context);
685
458
  const headers = {};
686
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/profiles/{ProfileArn}";
687
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ProfileArn", () => input.ProfileArn, "{ProfileArn}", false);
459
+ b.bp("/profiles/{ProfileArn}");
460
+ b.p("ProfileArn", () => input.ProfileArn, "{ProfileArn}", false);
688
461
  const query = (0, smithy_client_1.map)({
689
- ProfileVersion: [, input.ProfileVersion],
462
+ [_PV]: [, input[_PV]],
690
463
  });
691
464
  let body;
692
- return new protocol_http_1.HttpRequest({
693
- protocol,
694
- hostname,
695
- port,
696
- method: "GET",
697
- headers,
698
- path: resolvedPath,
699
- query,
700
- body,
701
- });
465
+ b.m("GET").h(headers).q(query).b(body);
466
+ return b.build();
702
467
  };
703
468
  exports.se_GetProfileCommand = se_GetProfileCommand;
704
469
  const se_GetProfileTemplateCommand = async (input, context) => {
705
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
470
+ const b = (0, core_1.requestBuilder)(input, context);
706
471
  const headers = {
707
472
  "content-type": "application/json",
708
473
  };
709
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/profileTemplate";
474
+ b.bp("/profileTemplate");
710
475
  let body;
711
476
  body = "";
712
- return new protocol_http_1.HttpRequest({
713
- protocol,
714
- hostname,
715
- port,
716
- method: "GET",
717
- headers,
718
- path: resolvedPath,
719
- body,
720
- });
477
+ b.m("GET").h(headers).b(body);
478
+ return b.build();
721
479
  };
722
480
  exports.se_GetProfileTemplateCommand = se_GetProfileTemplateCommand;
723
481
  const se_GetReviewTemplateCommand = async (input, context) => {
724
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
482
+ const b = (0, core_1.requestBuilder)(input, context);
725
483
  const headers = {};
726
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/reviewTemplates/{TemplateArn}";
727
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
484
+ b.bp("/reviewTemplates/{TemplateArn}");
485
+ b.p("TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
728
486
  let body;
729
- return new protocol_http_1.HttpRequest({
730
- protocol,
731
- hostname,
732
- port,
733
- method: "GET",
734
- headers,
735
- path: resolvedPath,
736
- body,
737
- });
487
+ b.m("GET").h(headers).b(body);
488
+ return b.build();
738
489
  };
739
490
  exports.se_GetReviewTemplateCommand = se_GetReviewTemplateCommand;
740
491
  const se_GetReviewTemplateAnswerCommand = async (input, context) => {
741
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
492
+ const b = (0, core_1.requestBuilder)(input, context);
742
493
  const headers = {};
743
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
744
- "/reviewTemplates/{TemplateArn}/lensReviews/{LensAlias}/answers/{QuestionId}";
745
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
746
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "LensAlias", () => input.LensAlias, "{LensAlias}", false);
747
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "QuestionId", () => input.QuestionId, "{QuestionId}", false);
494
+ b.bp("/reviewTemplates/{TemplateArn}/lensReviews/{LensAlias}/answers/{QuestionId}");
495
+ b.p("TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
496
+ b.p("LensAlias", () => input.LensAlias, "{LensAlias}", false);
497
+ b.p("QuestionId", () => input.QuestionId, "{QuestionId}", false);
748
498
  let body;
749
- return new protocol_http_1.HttpRequest({
750
- protocol,
751
- hostname,
752
- port,
753
- method: "GET",
754
- headers,
755
- path: resolvedPath,
756
- body,
757
- });
499
+ b.m("GET").h(headers).b(body);
500
+ return b.build();
758
501
  };
759
502
  exports.se_GetReviewTemplateAnswerCommand = se_GetReviewTemplateAnswerCommand;
760
503
  const se_GetReviewTemplateLensReviewCommand = async (input, context) => {
761
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
504
+ const b = (0, core_1.requestBuilder)(input, context);
762
505
  const headers = {};
763
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
764
- "/reviewTemplates/{TemplateArn}/lensReviews/{LensAlias}";
765
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
766
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "LensAlias", () => input.LensAlias, "{LensAlias}", false);
506
+ b.bp("/reviewTemplates/{TemplateArn}/lensReviews/{LensAlias}");
507
+ b.p("TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
508
+ b.p("LensAlias", () => input.LensAlias, "{LensAlias}", false);
767
509
  let body;
768
- return new protocol_http_1.HttpRequest({
769
- protocol,
770
- hostname,
771
- port,
772
- method: "GET",
773
- headers,
774
- path: resolvedPath,
775
- body,
776
- });
510
+ b.m("GET").h(headers).b(body);
511
+ return b.build();
777
512
  };
778
513
  exports.se_GetReviewTemplateLensReviewCommand = se_GetReviewTemplateLensReviewCommand;
779
514
  const se_GetWorkloadCommand = async (input, context) => {
780
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
515
+ const b = (0, core_1.requestBuilder)(input, context);
781
516
  const headers = {};
782
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workloads/{WorkloadId}";
783
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
517
+ b.bp("/workloads/{WorkloadId}");
518
+ b.p("WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
784
519
  let body;
785
- return new protocol_http_1.HttpRequest({
786
- protocol,
787
- hostname,
788
- port,
789
- method: "GET",
790
- headers,
791
- path: resolvedPath,
792
- body,
793
- });
520
+ b.m("GET").h(headers).b(body);
521
+ return b.build();
794
522
  };
795
523
  exports.se_GetWorkloadCommand = se_GetWorkloadCommand;
796
524
  const se_ImportLensCommand = async (input, context) => {
797
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
525
+ const b = (0, core_1.requestBuilder)(input, context);
798
526
  const headers = {
799
527
  "content-type": "application/json",
800
528
  };
801
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/importLens";
529
+ b.bp("/importLens");
802
530
  let body;
803
531
  body = JSON.stringify((0, smithy_client_1.take)(input, {
804
532
  ClientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
@@ -806,51 +534,35 @@ const se_ImportLensCommand = async (input, context) => {
806
534
  LensAlias: [],
807
535
  Tags: (_) => (0, smithy_client_1._json)(_),
808
536
  }));
809
- return new protocol_http_1.HttpRequest({
810
- protocol,
811
- hostname,
812
- port,
813
- method: "PUT",
814
- headers,
815
- path: resolvedPath,
816
- body,
817
- });
537
+ b.m("PUT").h(headers).b(body);
538
+ return b.build();
818
539
  };
819
540
  exports.se_ImportLensCommand = se_ImportLensCommand;
820
541
  const se_ListAnswersCommand = async (input, context) => {
821
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
542
+ const b = (0, core_1.requestBuilder)(input, context);
822
543
  const headers = {};
823
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
824
- "/workloads/{WorkloadId}/lensReviews/{LensAlias}/answers";
825
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
826
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "LensAlias", () => input.LensAlias, "{LensAlias}", false);
544
+ b.bp("/workloads/{WorkloadId}/lensReviews/{LensAlias}/answers");
545
+ b.p("WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
546
+ b.p("LensAlias", () => input.LensAlias, "{LensAlias}", false);
827
547
  const query = (0, smithy_client_1.map)({
828
- PillarId: [, input.PillarId],
829
- MilestoneNumber: [() => input.MilestoneNumber !== void 0, () => input.MilestoneNumber.toString()],
830
- NextToken: [, input.NextToken],
831
- MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
832
- QuestionPriority: [, input.QuestionPriority],
548
+ [_PI]: [, input[_PI]],
549
+ [_MN]: [() => input.MilestoneNumber !== void 0, () => input[_MN].toString()],
550
+ [_NT]: [, input[_NT]],
551
+ [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
552
+ [_QP]: [, input[_QP]],
833
553
  });
834
554
  let body;
835
- return new protocol_http_1.HttpRequest({
836
- protocol,
837
- hostname,
838
- port,
839
- method: "GET",
840
- headers,
841
- path: resolvedPath,
842
- query,
843
- body,
844
- });
555
+ b.m("GET").h(headers).q(query).b(body);
556
+ return b.build();
845
557
  };
846
558
  exports.se_ListAnswersCommand = se_ListAnswersCommand;
847
559
  const se_ListCheckDetailsCommand = async (input, context) => {
848
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
560
+ const b = (0, core_1.requestBuilder)(input, context);
849
561
  const headers = {
850
562
  "content-type": "application/json",
851
563
  };
852
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workloads/{WorkloadId}/checks";
853
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
564
+ b.bp("/workloads/{WorkloadId}/checks");
565
+ b.p("WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
854
566
  let body;
855
567
  body = JSON.stringify((0, smithy_client_1.take)(input, {
856
568
  ChoiceId: [],
@@ -860,24 +572,17 @@ const se_ListCheckDetailsCommand = async (input, context) => {
860
572
  PillarId: [],
861
573
  QuestionId: [],
862
574
  }));
863
- return new protocol_http_1.HttpRequest({
864
- protocol,
865
- hostname,
866
- port,
867
- method: "POST",
868
- headers,
869
- path: resolvedPath,
870
- body,
871
- });
575
+ b.m("POST").h(headers).b(body);
576
+ return b.build();
872
577
  };
873
578
  exports.se_ListCheckDetailsCommand = se_ListCheckDetailsCommand;
874
579
  const se_ListCheckSummariesCommand = async (input, context) => {
875
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
580
+ const b = (0, core_1.requestBuilder)(input, context);
876
581
  const headers = {
877
582
  "content-type": "application/json",
878
583
  };
879
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workloads/{WorkloadId}/checkSummaries";
880
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
584
+ b.bp("/workloads/{WorkloadId}/checkSummaries");
585
+ b.p("WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
881
586
  let body;
882
587
  body = JSON.stringify((0, smithy_client_1.take)(input, {
883
588
  ChoiceId: [],
@@ -887,145 +592,97 @@ const se_ListCheckSummariesCommand = async (input, context) => {
887
592
  PillarId: [],
888
593
  QuestionId: [],
889
594
  }));
890
- return new protocol_http_1.HttpRequest({
891
- protocol,
892
- hostname,
893
- port,
894
- method: "POST",
895
- headers,
896
- path: resolvedPath,
897
- body,
898
- });
595
+ b.m("POST").h(headers).b(body);
596
+ return b.build();
899
597
  };
900
598
  exports.se_ListCheckSummariesCommand = se_ListCheckSummariesCommand;
901
599
  const se_ListLensesCommand = async (input, context) => {
902
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
600
+ const b = (0, core_1.requestBuilder)(input, context);
903
601
  const headers = {};
904
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/lenses";
602
+ b.bp("/lenses");
905
603
  const query = (0, smithy_client_1.map)({
906
- NextToken: [, input.NextToken],
907
- MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
908
- LensType: [, input.LensType],
909
- LensStatus: [, input.LensStatus],
910
- LensName: [, input.LensName],
604
+ [_NT]: [, input[_NT]],
605
+ [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
606
+ [_LT]: [, input[_LT]],
607
+ [_LS]: [, input[_LS]],
608
+ [_LN]: [, input[_LN]],
911
609
  });
912
610
  let body;
913
- return new protocol_http_1.HttpRequest({
914
- protocol,
915
- hostname,
916
- port,
917
- method: "GET",
918
- headers,
919
- path: resolvedPath,
920
- query,
921
- body,
922
- });
611
+ b.m("GET").h(headers).q(query).b(body);
612
+ return b.build();
923
613
  };
924
614
  exports.se_ListLensesCommand = se_ListLensesCommand;
925
615
  const se_ListLensReviewImprovementsCommand = async (input, context) => {
926
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
616
+ const b = (0, core_1.requestBuilder)(input, context);
927
617
  const headers = {};
928
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
929
- "/workloads/{WorkloadId}/lensReviews/{LensAlias}/improvements";
930
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
931
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "LensAlias", () => input.LensAlias, "{LensAlias}", false);
618
+ b.bp("/workloads/{WorkloadId}/lensReviews/{LensAlias}/improvements");
619
+ b.p("WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
620
+ b.p("LensAlias", () => input.LensAlias, "{LensAlias}", false);
932
621
  const query = (0, smithy_client_1.map)({
933
- PillarId: [, input.PillarId],
934
- MilestoneNumber: [() => input.MilestoneNumber !== void 0, () => input.MilestoneNumber.toString()],
935
- NextToken: [, input.NextToken],
936
- MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
937
- QuestionPriority: [, input.QuestionPriority],
622
+ [_PI]: [, input[_PI]],
623
+ [_MN]: [() => input.MilestoneNumber !== void 0, () => input[_MN].toString()],
624
+ [_NT]: [, input[_NT]],
625
+ [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
626
+ [_QP]: [, input[_QP]],
938
627
  });
939
628
  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
- });
629
+ b.m("GET").h(headers).q(query).b(body);
630
+ return b.build();
950
631
  };
951
632
  exports.se_ListLensReviewImprovementsCommand = se_ListLensReviewImprovementsCommand;
952
633
  const se_ListLensReviewsCommand = async (input, context) => {
953
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
634
+ const b = (0, core_1.requestBuilder)(input, context);
954
635
  const headers = {};
955
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workloads/{WorkloadId}/lensReviews";
956
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
636
+ b.bp("/workloads/{WorkloadId}/lensReviews");
637
+ b.p("WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
957
638
  const query = (0, smithy_client_1.map)({
958
- MilestoneNumber: [() => input.MilestoneNumber !== void 0, () => input.MilestoneNumber.toString()],
959
- NextToken: [, input.NextToken],
960
- MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
639
+ [_MN]: [() => input.MilestoneNumber !== void 0, () => input[_MN].toString()],
640
+ [_NT]: [, input[_NT]],
641
+ [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
961
642
  });
962
643
  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
- });
644
+ b.m("GET").h(headers).q(query).b(body);
645
+ return b.build();
973
646
  };
974
647
  exports.se_ListLensReviewsCommand = se_ListLensReviewsCommand;
975
648
  const se_ListLensSharesCommand = async (input, context) => {
976
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
649
+ const b = (0, core_1.requestBuilder)(input, context);
977
650
  const headers = {};
978
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/lenses/{LensAlias}/shares";
979
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "LensAlias", () => input.LensAlias, "{LensAlias}", false);
651
+ b.bp("/lenses/{LensAlias}/shares");
652
+ b.p("LensAlias", () => input.LensAlias, "{LensAlias}", false);
980
653
  const query = (0, smithy_client_1.map)({
981
- SharedWithPrefix: [, input.SharedWithPrefix],
982
- NextToken: [, input.NextToken],
983
- MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
984
- Status: [, input.Status],
654
+ [_SWP]: [, input[_SWP]],
655
+ [_NT]: [, input[_NT]],
656
+ [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
657
+ [_S]: [, input[_S]],
985
658
  });
986
659
  let body;
987
- return new protocol_http_1.HttpRequest({
988
- protocol,
989
- hostname,
990
- port,
991
- method: "GET",
992
- headers,
993
- path: resolvedPath,
994
- query,
995
- body,
996
- });
660
+ b.m("GET").h(headers).q(query).b(body);
661
+ return b.build();
997
662
  };
998
663
  exports.se_ListLensSharesCommand = se_ListLensSharesCommand;
999
664
  const se_ListMilestonesCommand = async (input, context) => {
1000
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
665
+ const b = (0, core_1.requestBuilder)(input, context);
1001
666
  const headers = {
1002
667
  "content-type": "application/json",
1003
668
  };
1004
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1005
- "/workloads/{WorkloadId}/milestonesSummaries";
1006
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
669
+ b.bp("/workloads/{WorkloadId}/milestonesSummaries");
670
+ b.p("WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
1007
671
  let body;
1008
672
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1009
673
  MaxResults: [],
1010
674
  NextToken: [],
1011
675
  }));
1012
- return new protocol_http_1.HttpRequest({
1013
- protocol,
1014
- hostname,
1015
- port,
1016
- method: "POST",
1017
- headers,
1018
- path: resolvedPath,
1019
- body,
1020
- });
676
+ b.m("POST").h(headers).b(body);
677
+ return b.build();
1021
678
  };
1022
679
  exports.se_ListMilestonesCommand = se_ListMilestonesCommand;
1023
680
  const se_ListNotificationsCommand = async (input, context) => {
1024
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
681
+ const b = (0, core_1.requestBuilder)(input, context);
1025
682
  const headers = {
1026
683
  "content-type": "application/json",
1027
684
  };
1028
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/notifications";
685
+ b.bp("/notifications");
1029
686
  let body;
1030
687
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1031
688
  MaxResults: [],
@@ -1033,302 +690,200 @@ const se_ListNotificationsCommand = async (input, context) => {
1033
690
  ResourceArn: [],
1034
691
  WorkloadId: [],
1035
692
  }));
1036
- return new protocol_http_1.HttpRequest({
1037
- protocol,
1038
- hostname,
1039
- port,
1040
- method: "POST",
1041
- headers,
1042
- path: resolvedPath,
1043
- body,
1044
- });
693
+ b.m("POST").h(headers).b(body);
694
+ return b.build();
1045
695
  };
1046
696
  exports.se_ListNotificationsCommand = se_ListNotificationsCommand;
1047
697
  const se_ListProfileNotificationsCommand = async (input, context) => {
1048
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
698
+ const b = (0, core_1.requestBuilder)(input, context);
1049
699
  const headers = {};
1050
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/profileNotifications";
700
+ b.bp("/profileNotifications");
1051
701
  const query = (0, smithy_client_1.map)({
1052
- WorkloadId: [, input.WorkloadId],
1053
- NextToken: [, input.NextToken],
1054
- MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
702
+ [_WI]: [, input[_WI]],
703
+ [_NT]: [, input[_NT]],
704
+ [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
1055
705
  });
1056
706
  let body;
1057
- return new protocol_http_1.HttpRequest({
1058
- protocol,
1059
- hostname,
1060
- port,
1061
- method: "GET",
1062
- headers,
1063
- path: resolvedPath,
1064
- query,
1065
- body,
1066
- });
707
+ b.m("GET").h(headers).q(query).b(body);
708
+ return b.build();
1067
709
  };
1068
710
  exports.se_ListProfileNotificationsCommand = se_ListProfileNotificationsCommand;
1069
711
  const se_ListProfilesCommand = async (input, context) => {
1070
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
712
+ const b = (0, core_1.requestBuilder)(input, context);
1071
713
  const headers = {};
1072
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/profileSummaries";
714
+ b.bp("/profileSummaries");
1073
715
  const query = (0, smithy_client_1.map)({
1074
- ProfileNamePrefix: [, input.ProfileNamePrefix],
1075
- ProfileOwnerType: [, input.ProfileOwnerType],
1076
- NextToken: [, input.NextToken],
1077
- MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
716
+ [_PNP]: [, input[_PNP]],
717
+ [_POT]: [, input[_POT]],
718
+ [_NT]: [, input[_NT]],
719
+ [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
1078
720
  });
1079
721
  let body;
1080
- return new protocol_http_1.HttpRequest({
1081
- protocol,
1082
- hostname,
1083
- port,
1084
- method: "GET",
1085
- headers,
1086
- path: resolvedPath,
1087
- query,
1088
- body,
1089
- });
722
+ b.m("GET").h(headers).q(query).b(body);
723
+ return b.build();
1090
724
  };
1091
725
  exports.se_ListProfilesCommand = se_ListProfilesCommand;
1092
726
  const se_ListProfileSharesCommand = async (input, context) => {
1093
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
727
+ const b = (0, core_1.requestBuilder)(input, context);
1094
728
  const headers = {};
1095
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/profiles/{ProfileArn}/shares";
1096
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ProfileArn", () => input.ProfileArn, "{ProfileArn}", false);
729
+ b.bp("/profiles/{ProfileArn}/shares");
730
+ b.p("ProfileArn", () => input.ProfileArn, "{ProfileArn}", false);
1097
731
  const query = (0, smithy_client_1.map)({
1098
- SharedWithPrefix: [, input.SharedWithPrefix],
1099
- NextToken: [, input.NextToken],
1100
- MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
1101
- Status: [, input.Status],
732
+ [_SWP]: [, input[_SWP]],
733
+ [_NT]: [, input[_NT]],
734
+ [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
735
+ [_S]: [, input[_S]],
1102
736
  });
1103
737
  let body;
1104
- return new protocol_http_1.HttpRequest({
1105
- protocol,
1106
- hostname,
1107
- port,
1108
- method: "GET",
1109
- headers,
1110
- path: resolvedPath,
1111
- query,
1112
- body,
1113
- });
738
+ b.m("GET").h(headers).q(query).b(body);
739
+ return b.build();
1114
740
  };
1115
741
  exports.se_ListProfileSharesCommand = se_ListProfileSharesCommand;
1116
742
  const se_ListReviewTemplateAnswersCommand = async (input, context) => {
1117
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
743
+ const b = (0, core_1.requestBuilder)(input, context);
1118
744
  const headers = {};
1119
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1120
- "/reviewTemplates/{TemplateArn}/lensReviews/{LensAlias}/answers";
1121
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
1122
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "LensAlias", () => input.LensAlias, "{LensAlias}", false);
745
+ b.bp("/reviewTemplates/{TemplateArn}/lensReviews/{LensAlias}/answers");
746
+ b.p("TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
747
+ b.p("LensAlias", () => input.LensAlias, "{LensAlias}", false);
1123
748
  const query = (0, smithy_client_1.map)({
1124
- PillarId: [, input.PillarId],
1125
- NextToken: [, input.NextToken],
1126
- MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
749
+ [_PI]: [, input[_PI]],
750
+ [_NT]: [, input[_NT]],
751
+ [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
1127
752
  });
1128
753
  let body;
1129
- return new protocol_http_1.HttpRequest({
1130
- protocol,
1131
- hostname,
1132
- port,
1133
- method: "GET",
1134
- headers,
1135
- path: resolvedPath,
1136
- query,
1137
- body,
1138
- });
754
+ b.m("GET").h(headers).q(query).b(body);
755
+ return b.build();
1139
756
  };
1140
757
  exports.se_ListReviewTemplateAnswersCommand = se_ListReviewTemplateAnswersCommand;
1141
758
  const se_ListReviewTemplatesCommand = async (input, context) => {
1142
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
759
+ const b = (0, core_1.requestBuilder)(input, context);
1143
760
  const headers = {};
1144
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/reviewTemplates";
761
+ b.bp("/reviewTemplates");
1145
762
  const query = (0, smithy_client_1.map)({
1146
- NextToken: [, input.NextToken],
1147
- MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
763
+ [_NT]: [, input[_NT]],
764
+ [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
1148
765
  });
1149
766
  let body;
1150
- return new protocol_http_1.HttpRequest({
1151
- protocol,
1152
- hostname,
1153
- port,
1154
- method: "GET",
1155
- headers,
1156
- path: resolvedPath,
1157
- query,
1158
- body,
1159
- });
767
+ b.m("GET").h(headers).q(query).b(body);
768
+ return b.build();
1160
769
  };
1161
770
  exports.se_ListReviewTemplatesCommand = se_ListReviewTemplatesCommand;
1162
771
  const se_ListShareInvitationsCommand = async (input, context) => {
1163
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
772
+ const b = (0, core_1.requestBuilder)(input, context);
1164
773
  const headers = {};
1165
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/shareInvitations";
774
+ b.bp("/shareInvitations");
1166
775
  const query = (0, smithy_client_1.map)({
1167
- WorkloadNamePrefix: [, input.WorkloadNamePrefix],
1168
- LensNamePrefix: [, input.LensNamePrefix],
1169
- ShareResourceType: [, input.ShareResourceType],
1170
- NextToken: [, input.NextToken],
1171
- MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
1172
- ProfileNamePrefix: [, input.ProfileNamePrefix],
1173
- TemplateNamePrefix: [, input.TemplateNamePrefix],
776
+ [_WNP]: [, input[_WNP]],
777
+ [_LNP]: [, input[_LNP]],
778
+ [_SRT]: [, input[_SRT]],
779
+ [_NT]: [, input[_NT]],
780
+ [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
781
+ [_PNP]: [, input[_PNP]],
782
+ [_TNP]: [, input[_TNP]],
1174
783
  });
1175
784
  let body;
1176
- return new protocol_http_1.HttpRequest({
1177
- protocol,
1178
- hostname,
1179
- port,
1180
- method: "GET",
1181
- headers,
1182
- path: resolvedPath,
1183
- query,
1184
- body,
1185
- });
785
+ b.m("GET").h(headers).q(query).b(body);
786
+ return b.build();
1186
787
  };
1187
788
  exports.se_ListShareInvitationsCommand = se_ListShareInvitationsCommand;
1188
789
  const se_ListTagsForResourceCommand = async (input, context) => {
1189
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
790
+ const b = (0, core_1.requestBuilder)(input, context);
1190
791
  const headers = {};
1191
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{WorkloadArn}";
1192
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "WorkloadArn", () => input.WorkloadArn, "{WorkloadArn}", false);
792
+ b.bp("/tags/{WorkloadArn}");
793
+ b.p("WorkloadArn", () => input.WorkloadArn, "{WorkloadArn}", false);
1193
794
  let body;
1194
- return new protocol_http_1.HttpRequest({
1195
- protocol,
1196
- hostname,
1197
- port,
1198
- method: "GET",
1199
- headers,
1200
- path: resolvedPath,
1201
- body,
1202
- });
795
+ b.m("GET").h(headers).b(body);
796
+ return b.build();
1203
797
  };
1204
798
  exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
1205
799
  const se_ListTemplateSharesCommand = async (input, context) => {
1206
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
800
+ const b = (0, core_1.requestBuilder)(input, context);
1207
801
  const headers = {};
1208
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/templates/shares/{TemplateArn}";
1209
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
802
+ b.bp("/templates/shares/{TemplateArn}");
803
+ b.p("TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
1210
804
  const query = (0, smithy_client_1.map)({
1211
- SharedWithPrefix: [, input.SharedWithPrefix],
1212
- NextToken: [, input.NextToken],
1213
- MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
1214
- Status: [, input.Status],
805
+ [_SWP]: [, input[_SWP]],
806
+ [_NT]: [, input[_NT]],
807
+ [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
808
+ [_S]: [, input[_S]],
1215
809
  });
1216
810
  let body;
1217
- return new protocol_http_1.HttpRequest({
1218
- protocol,
1219
- hostname,
1220
- port,
1221
- method: "GET",
1222
- headers,
1223
- path: resolvedPath,
1224
- query,
1225
- body,
1226
- });
811
+ b.m("GET").h(headers).q(query).b(body);
812
+ return b.build();
1227
813
  };
1228
814
  exports.se_ListTemplateSharesCommand = se_ListTemplateSharesCommand;
1229
815
  const se_ListWorkloadsCommand = async (input, context) => {
1230
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
816
+ const b = (0, core_1.requestBuilder)(input, context);
1231
817
  const headers = {
1232
818
  "content-type": "application/json",
1233
819
  };
1234
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workloadsSummaries";
820
+ b.bp("/workloadsSummaries");
1235
821
  let body;
1236
822
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1237
823
  MaxResults: [],
1238
824
  NextToken: [],
1239
825
  WorkloadNamePrefix: [],
1240
826
  }));
1241
- return new protocol_http_1.HttpRequest({
1242
- protocol,
1243
- hostname,
1244
- port,
1245
- method: "POST",
1246
- headers,
1247
- path: resolvedPath,
1248
- body,
1249
- });
827
+ b.m("POST").h(headers).b(body);
828
+ return b.build();
1250
829
  };
1251
830
  exports.se_ListWorkloadsCommand = se_ListWorkloadsCommand;
1252
831
  const se_ListWorkloadSharesCommand = async (input, context) => {
1253
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
832
+ const b = (0, core_1.requestBuilder)(input, context);
1254
833
  const headers = {};
1255
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workloads/{WorkloadId}/shares";
1256
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
834
+ b.bp("/workloads/{WorkloadId}/shares");
835
+ b.p("WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
1257
836
  const query = (0, smithy_client_1.map)({
1258
- SharedWithPrefix: [, input.SharedWithPrefix],
1259
- NextToken: [, input.NextToken],
1260
- MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
1261
- Status: [, input.Status],
837
+ [_SWP]: [, input[_SWP]],
838
+ [_NT]: [, input[_NT]],
839
+ [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
840
+ [_S]: [, input[_S]],
1262
841
  });
1263
842
  let body;
1264
- return new protocol_http_1.HttpRequest({
1265
- protocol,
1266
- hostname,
1267
- port,
1268
- method: "GET",
1269
- headers,
1270
- path: resolvedPath,
1271
- query,
1272
- body,
1273
- });
843
+ b.m("GET").h(headers).q(query).b(body);
844
+ return b.build();
1274
845
  };
1275
846
  exports.se_ListWorkloadSharesCommand = se_ListWorkloadSharesCommand;
1276
847
  const se_TagResourceCommand = async (input, context) => {
1277
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
848
+ const b = (0, core_1.requestBuilder)(input, context);
1278
849
  const headers = {
1279
850
  "content-type": "application/json",
1280
851
  };
1281
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{WorkloadArn}";
1282
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "WorkloadArn", () => input.WorkloadArn, "{WorkloadArn}", false);
852
+ b.bp("/tags/{WorkloadArn}");
853
+ b.p("WorkloadArn", () => input.WorkloadArn, "{WorkloadArn}", false);
1283
854
  let body;
1284
855
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1285
856
  Tags: (_) => (0, smithy_client_1._json)(_),
1286
857
  }));
1287
- return new protocol_http_1.HttpRequest({
1288
- protocol,
1289
- hostname,
1290
- port,
1291
- method: "POST",
1292
- headers,
1293
- path: resolvedPath,
1294
- body,
1295
- });
858
+ b.m("POST").h(headers).b(body);
859
+ return b.build();
1296
860
  };
1297
861
  exports.se_TagResourceCommand = se_TagResourceCommand;
1298
862
  const se_UntagResourceCommand = async (input, context) => {
1299
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
863
+ const b = (0, core_1.requestBuilder)(input, context);
1300
864
  const headers = {};
1301
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{WorkloadArn}";
1302
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "WorkloadArn", () => input.WorkloadArn, "{WorkloadArn}", false);
865
+ b.bp("/tags/{WorkloadArn}");
866
+ b.p("WorkloadArn", () => input.WorkloadArn, "{WorkloadArn}", false);
1303
867
  const query = (0, smithy_client_1.map)({
1304
- tagKeys: [
868
+ [_tK]: [
1305
869
  (0, smithy_client_1.expectNonNull)(input.TagKeys, `TagKeys`) != null,
1306
- () => (input.TagKeys || []).map((_entry) => _entry),
870
+ () => (input[_TK] || []).map((_entry) => _entry),
1307
871
  ],
1308
872
  });
1309
873
  let body;
1310
- return new protocol_http_1.HttpRequest({
1311
- protocol,
1312
- hostname,
1313
- port,
1314
- method: "DELETE",
1315
- headers,
1316
- path: resolvedPath,
1317
- query,
1318
- body,
1319
- });
874
+ b.m("DELETE").h(headers).q(query).b(body);
875
+ return b.build();
1320
876
  };
1321
877
  exports.se_UntagResourceCommand = se_UntagResourceCommand;
1322
878
  const se_UpdateAnswerCommand = async (input, context) => {
1323
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
879
+ const b = (0, core_1.requestBuilder)(input, context);
1324
880
  const headers = {
1325
881
  "content-type": "application/json",
1326
882
  };
1327
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1328
- "/workloads/{WorkloadId}/lensReviews/{LensAlias}/answers/{QuestionId}";
1329
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
1330
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "LensAlias", () => input.LensAlias, "{LensAlias}", false);
1331
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "QuestionId", () => input.QuestionId, "{QuestionId}", false);
883
+ b.bp("/workloads/{WorkloadId}/lensReviews/{LensAlias}/answers/{QuestionId}");
884
+ b.p("WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
885
+ b.p("LensAlias", () => input.LensAlias, "{LensAlias}", false);
886
+ b.p("QuestionId", () => input.QuestionId, "{QuestionId}", false);
1332
887
  let body;
1333
888
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1334
889
  ChoiceUpdates: (_) => (0, smithy_client_1._json)(_),
@@ -1337,94 +892,65 @@ const se_UpdateAnswerCommand = async (input, context) => {
1337
892
  Reason: [],
1338
893
  SelectedChoices: (_) => (0, smithy_client_1._json)(_),
1339
894
  }));
1340
- return new protocol_http_1.HttpRequest({
1341
- protocol,
1342
- hostname,
1343
- port,
1344
- method: "PATCH",
1345
- headers,
1346
- path: resolvedPath,
1347
- body,
1348
- });
895
+ b.m("PATCH").h(headers).b(body);
896
+ return b.build();
1349
897
  };
1350
898
  exports.se_UpdateAnswerCommand = se_UpdateAnswerCommand;
1351
899
  const se_UpdateGlobalSettingsCommand = async (input, context) => {
1352
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
900
+ const b = (0, core_1.requestBuilder)(input, context);
1353
901
  const headers = {
1354
902
  "content-type": "application/json",
1355
903
  };
1356
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/global-settings";
904
+ b.bp("/global-settings");
1357
905
  let body;
1358
906
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1359
907
  DiscoveryIntegrationStatus: [],
1360
908
  OrganizationSharingStatus: [],
1361
909
  }));
1362
- return new protocol_http_1.HttpRequest({
1363
- protocol,
1364
- hostname,
1365
- port,
1366
- method: "PATCH",
1367
- headers,
1368
- path: resolvedPath,
1369
- body,
1370
- });
910
+ b.m("PATCH").h(headers).b(body);
911
+ return b.build();
1371
912
  };
1372
913
  exports.se_UpdateGlobalSettingsCommand = se_UpdateGlobalSettingsCommand;
1373
914
  const se_UpdateLensReviewCommand = async (input, context) => {
1374
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
915
+ const b = (0, core_1.requestBuilder)(input, context);
1375
916
  const headers = {
1376
917
  "content-type": "application/json",
1377
918
  };
1378
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1379
- "/workloads/{WorkloadId}/lensReviews/{LensAlias}";
1380
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
1381
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "LensAlias", () => input.LensAlias, "{LensAlias}", false);
919
+ b.bp("/workloads/{WorkloadId}/lensReviews/{LensAlias}");
920
+ b.p("WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
921
+ b.p("LensAlias", () => input.LensAlias, "{LensAlias}", false);
1382
922
  let body;
1383
923
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1384
924
  LensNotes: [],
1385
925
  PillarNotes: (_) => (0, smithy_client_1._json)(_),
1386
926
  }));
1387
- return new protocol_http_1.HttpRequest({
1388
- protocol,
1389
- hostname,
1390
- port,
1391
- method: "PATCH",
1392
- headers,
1393
- path: resolvedPath,
1394
- body,
1395
- });
927
+ b.m("PATCH").h(headers).b(body);
928
+ return b.build();
1396
929
  };
1397
930
  exports.se_UpdateLensReviewCommand = se_UpdateLensReviewCommand;
1398
931
  const se_UpdateProfileCommand = async (input, context) => {
1399
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
932
+ const b = (0, core_1.requestBuilder)(input, context);
1400
933
  const headers = {
1401
934
  "content-type": "application/json",
1402
935
  };
1403
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/profiles/{ProfileArn}";
1404
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ProfileArn", () => input.ProfileArn, "{ProfileArn}", false);
936
+ b.bp("/profiles/{ProfileArn}");
937
+ b.p("ProfileArn", () => input.ProfileArn, "{ProfileArn}", false);
1405
938
  let body;
1406
939
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1407
940
  ProfileDescription: [],
1408
941
  ProfileQuestions: (_) => (0, smithy_client_1._json)(_),
1409
942
  }));
1410
- return new protocol_http_1.HttpRequest({
1411
- protocol,
1412
- hostname,
1413
- port,
1414
- method: "PATCH",
1415
- headers,
1416
- path: resolvedPath,
1417
- body,
1418
- });
943
+ b.m("PATCH").h(headers).b(body);
944
+ return b.build();
1419
945
  };
1420
946
  exports.se_UpdateProfileCommand = se_UpdateProfileCommand;
1421
947
  const se_UpdateReviewTemplateCommand = async (input, context) => {
1422
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
948
+ const b = (0, core_1.requestBuilder)(input, context);
1423
949
  const headers = {
1424
950
  "content-type": "application/json",
1425
951
  };
1426
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/reviewTemplates/{TemplateArn}";
1427
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
952
+ b.bp("/reviewTemplates/{TemplateArn}");
953
+ b.p("TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
1428
954
  let body;
1429
955
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1430
956
  Description: [],
@@ -1433,27 +959,19 @@ const se_UpdateReviewTemplateCommand = async (input, context) => {
1433
959
  Notes: [],
1434
960
  TemplateName: [],
1435
961
  }));
1436
- return new protocol_http_1.HttpRequest({
1437
- protocol,
1438
- hostname,
1439
- port,
1440
- method: "PATCH",
1441
- headers,
1442
- path: resolvedPath,
1443
- body,
1444
- });
962
+ b.m("PATCH").h(headers).b(body);
963
+ return b.build();
1445
964
  };
1446
965
  exports.se_UpdateReviewTemplateCommand = se_UpdateReviewTemplateCommand;
1447
966
  const se_UpdateReviewTemplateAnswerCommand = async (input, context) => {
1448
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
967
+ const b = (0, core_1.requestBuilder)(input, context);
1449
968
  const headers = {
1450
969
  "content-type": "application/json",
1451
970
  };
1452
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1453
- "/reviewTemplates/{TemplateArn}/lensReviews/{LensAlias}/answers/{QuestionId}";
1454
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
1455
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "LensAlias", () => input.LensAlias, "{LensAlias}", false);
1456
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "QuestionId", () => input.QuestionId, "{QuestionId}", false);
971
+ b.bp("/reviewTemplates/{TemplateArn}/lensReviews/{LensAlias}/answers/{QuestionId}");
972
+ b.p("TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
973
+ b.p("LensAlias", () => input.LensAlias, "{LensAlias}", false);
974
+ b.p("QuestionId", () => input.QuestionId, "{QuestionId}", false);
1457
975
  let body;
1458
976
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1459
977
  ChoiceUpdates: (_) => (0, smithy_client_1._json)(_),
@@ -1462,71 +980,49 @@ const se_UpdateReviewTemplateAnswerCommand = async (input, context) => {
1462
980
  Reason: [],
1463
981
  SelectedChoices: (_) => (0, smithy_client_1._json)(_),
1464
982
  }));
1465
- return new protocol_http_1.HttpRequest({
1466
- protocol,
1467
- hostname,
1468
- port,
1469
- method: "PATCH",
1470
- headers,
1471
- path: resolvedPath,
1472
- body,
1473
- });
983
+ b.m("PATCH").h(headers).b(body);
984
+ return b.build();
1474
985
  };
1475
986
  exports.se_UpdateReviewTemplateAnswerCommand = se_UpdateReviewTemplateAnswerCommand;
1476
987
  const se_UpdateReviewTemplateLensReviewCommand = async (input, context) => {
1477
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
988
+ const b = (0, core_1.requestBuilder)(input, context);
1478
989
  const headers = {
1479
990
  "content-type": "application/json",
1480
991
  };
1481
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1482
- "/reviewTemplates/{TemplateArn}/lensReviews/{LensAlias}";
1483
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
1484
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "LensAlias", () => input.LensAlias, "{LensAlias}", false);
992
+ b.bp("/reviewTemplates/{TemplateArn}/lensReviews/{LensAlias}");
993
+ b.p("TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
994
+ b.p("LensAlias", () => input.LensAlias, "{LensAlias}", false);
1485
995
  let body;
1486
996
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1487
997
  LensNotes: [],
1488
998
  PillarNotes: (_) => (0, smithy_client_1._json)(_),
1489
999
  }));
1490
- return new protocol_http_1.HttpRequest({
1491
- protocol,
1492
- hostname,
1493
- port,
1494
- method: "PATCH",
1495
- headers,
1496
- path: resolvedPath,
1497
- body,
1498
- });
1000
+ b.m("PATCH").h(headers).b(body);
1001
+ return b.build();
1499
1002
  };
1500
1003
  exports.se_UpdateReviewTemplateLensReviewCommand = se_UpdateReviewTemplateLensReviewCommand;
1501
1004
  const se_UpdateShareInvitationCommand = async (input, context) => {
1502
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1005
+ const b = (0, core_1.requestBuilder)(input, context);
1503
1006
  const headers = {
1504
1007
  "content-type": "application/json",
1505
1008
  };
1506
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/shareInvitations/{ShareInvitationId}";
1507
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ShareInvitationId", () => input.ShareInvitationId, "{ShareInvitationId}", false);
1009
+ b.bp("/shareInvitations/{ShareInvitationId}");
1010
+ b.p("ShareInvitationId", () => input.ShareInvitationId, "{ShareInvitationId}", false);
1508
1011
  let body;
1509
1012
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1510
1013
  ShareInvitationAction: [],
1511
1014
  }));
1512
- return new protocol_http_1.HttpRequest({
1513
- protocol,
1514
- hostname,
1515
- port,
1516
- method: "PATCH",
1517
- headers,
1518
- path: resolvedPath,
1519
- body,
1520
- });
1015
+ b.m("PATCH").h(headers).b(body);
1016
+ return b.build();
1521
1017
  };
1522
1018
  exports.se_UpdateShareInvitationCommand = se_UpdateShareInvitationCommand;
1523
1019
  const se_UpdateWorkloadCommand = async (input, context) => {
1524
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1020
+ const b = (0, core_1.requestBuilder)(input, context);
1525
1021
  const headers = {
1526
1022
  "content-type": "application/json",
1527
1023
  };
1528
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workloads/{WorkloadId}";
1529
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
1024
+ b.bp("/workloads/{WorkloadId}");
1025
+ b.p("WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
1530
1026
  let body;
1531
1027
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1532
1028
  AccountIds: (_) => (0, smithy_client_1._json)(_),
@@ -1546,112 +1042,74 @@ const se_UpdateWorkloadCommand = async (input, context) => {
1546
1042
  ReviewOwner: [],
1547
1043
  WorkloadName: [],
1548
1044
  }));
1549
- return new protocol_http_1.HttpRequest({
1550
- protocol,
1551
- hostname,
1552
- port,
1553
- method: "PATCH",
1554
- headers,
1555
- path: resolvedPath,
1556
- body,
1557
- });
1045
+ b.m("PATCH").h(headers).b(body);
1046
+ return b.build();
1558
1047
  };
1559
1048
  exports.se_UpdateWorkloadCommand = se_UpdateWorkloadCommand;
1560
1049
  const se_UpdateWorkloadShareCommand = async (input, context) => {
1561
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1050
+ const b = (0, core_1.requestBuilder)(input, context);
1562
1051
  const headers = {
1563
1052
  "content-type": "application/json",
1564
1053
  };
1565
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workloads/{WorkloadId}/shares/{ShareId}";
1566
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ShareId", () => input.ShareId, "{ShareId}", false);
1567
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
1054
+ b.bp("/workloads/{WorkloadId}/shares/{ShareId}");
1055
+ b.p("ShareId", () => input.ShareId, "{ShareId}", false);
1056
+ b.p("WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
1568
1057
  let body;
1569
1058
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1570
1059
  PermissionType: [],
1571
1060
  }));
1572
- return new protocol_http_1.HttpRequest({
1573
- protocol,
1574
- hostname,
1575
- port,
1576
- method: "PATCH",
1577
- headers,
1578
- path: resolvedPath,
1579
- body,
1580
- });
1061
+ b.m("PATCH").h(headers).b(body);
1062
+ return b.build();
1581
1063
  };
1582
1064
  exports.se_UpdateWorkloadShareCommand = se_UpdateWorkloadShareCommand;
1583
1065
  const se_UpgradeLensReviewCommand = async (input, context) => {
1584
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1066
+ const b = (0, core_1.requestBuilder)(input, context);
1585
1067
  const headers = {
1586
1068
  "content-type": "application/json",
1587
1069
  };
1588
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1589
- "/workloads/{WorkloadId}/lensReviews/{LensAlias}/upgrade";
1590
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
1591
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "LensAlias", () => input.LensAlias, "{LensAlias}", false);
1070
+ b.bp("/workloads/{WorkloadId}/lensReviews/{LensAlias}/upgrade");
1071
+ b.p("WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
1072
+ b.p("LensAlias", () => input.LensAlias, "{LensAlias}", false);
1592
1073
  let body;
1593
1074
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1594
1075
  ClientRequestToken: [],
1595
1076
  MilestoneName: [],
1596
1077
  }));
1597
- return new protocol_http_1.HttpRequest({
1598
- protocol,
1599
- hostname,
1600
- port,
1601
- method: "PUT",
1602
- headers,
1603
- path: resolvedPath,
1604
- body,
1605
- });
1078
+ b.m("PUT").h(headers).b(body);
1079
+ return b.build();
1606
1080
  };
1607
1081
  exports.se_UpgradeLensReviewCommand = se_UpgradeLensReviewCommand;
1608
1082
  const se_UpgradeProfileVersionCommand = async (input, context) => {
1609
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1083
+ const b = (0, core_1.requestBuilder)(input, context);
1610
1084
  const headers = {
1611
1085
  "content-type": "application/json",
1612
1086
  };
1613
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1614
- "/workloads/{WorkloadId}/profiles/{ProfileArn}/upgrade";
1615
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
1616
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ProfileArn", () => input.ProfileArn, "{ProfileArn}", false);
1087
+ b.bp("/workloads/{WorkloadId}/profiles/{ProfileArn}/upgrade");
1088
+ b.p("WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
1089
+ b.p("ProfileArn", () => input.ProfileArn, "{ProfileArn}", false);
1617
1090
  let body;
1618
1091
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1619
1092
  ClientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
1620
1093
  MilestoneName: [],
1621
1094
  }));
1622
- return new protocol_http_1.HttpRequest({
1623
- protocol,
1624
- hostname,
1625
- port,
1626
- method: "PUT",
1627
- headers,
1628
- path: resolvedPath,
1629
- body,
1630
- });
1095
+ b.m("PUT").h(headers).b(body);
1096
+ return b.build();
1631
1097
  };
1632
1098
  exports.se_UpgradeProfileVersionCommand = se_UpgradeProfileVersionCommand;
1633
1099
  const se_UpgradeReviewTemplateLensReviewCommand = async (input, context) => {
1634
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1100
+ const b = (0, core_1.requestBuilder)(input, context);
1635
1101
  const headers = {
1636
1102
  "content-type": "application/json",
1637
1103
  };
1638
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1639
- "/reviewTemplates/{TemplateArn}/lensReviews/{LensAlias}/upgrade";
1640
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
1641
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "LensAlias", () => input.LensAlias, "{LensAlias}", false);
1104
+ b.bp("/reviewTemplates/{TemplateArn}/lensReviews/{LensAlias}/upgrade");
1105
+ b.p("TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
1106
+ b.p("LensAlias", () => input.LensAlias, "{LensAlias}", false);
1642
1107
  let body;
1643
1108
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1644
1109
  ClientRequestToken: [],
1645
1110
  }));
1646
- return new protocol_http_1.HttpRequest({
1647
- protocol,
1648
- hostname,
1649
- port,
1650
- method: "PUT",
1651
- headers,
1652
- path: resolvedPath,
1653
- body,
1654
- });
1111
+ b.m("PUT").h(headers).b(body);
1112
+ return b.build();
1655
1113
  };
1656
1114
  exports.se_UpgradeReviewTemplateLensReviewCommand = se_UpgradeReviewTemplateLensReviewCommand;
1657
1115
  const de_AssociateLensesCommand = async (output, context) => {
@@ -5360,6 +4818,32 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
5360
4818
  value !== "" &&
5361
4819
  (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
5362
4820
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
4821
+ const _BLV = "BaseLensVersion";
4822
+ const _CRT = "ClientRequestToken";
4823
+ const _F = "Format";
4824
+ const _ISR = "IncludeSharedResources";
4825
+ const _LN = "LensName";
4826
+ const _LNP = "LensNamePrefix";
4827
+ const _LS = "LensStatus";
4828
+ const _LT = "LensType";
4829
+ const _LV = "LensVersion";
4830
+ const _MN = "MilestoneNumber";
4831
+ const _MR = "MaxResults";
4832
+ const _NT = "NextToken";
4833
+ const _PI = "PillarId";
4834
+ const _PNP = "ProfileNamePrefix";
4835
+ const _POT = "ProfileOwnerType";
4836
+ const _PV = "ProfileVersion";
4837
+ const _QP = "QuestionPriority";
4838
+ const _S = "Status";
4839
+ const _SRT = "ShareResourceType";
4840
+ const _SWP = "SharedWithPrefix";
4841
+ const _TK = "TagKeys";
4842
+ const _TLV = "TargetLensVersion";
4843
+ const _TNP = "TemplateNamePrefix";
4844
+ const _WI = "WorkloadId";
4845
+ const _WNP = "WorkloadNamePrefix";
4846
+ const _tK = "tagKeys";
5363
4847
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
5364
4848
  if (encoded.length) {
5365
4849
  return JSON.parse(encoded);