@aws-sdk/client-auditmanager 3.476.0 → 3.478.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/dist-cjs/pagination/GetChangeLogsPaginator.js +2 -24
  2. package/dist-cjs/pagination/GetDelegationsPaginator.js +2 -24
  3. package/dist-cjs/pagination/GetEvidenceByEvidenceFolderPaginator.js +2 -24
  4. package/dist-cjs/pagination/GetEvidenceFoldersByAssessmentControlPaginator.js +2 -24
  5. package/dist-cjs/pagination/GetEvidenceFoldersByAssessmentPaginator.js +2 -24
  6. package/dist-cjs/pagination/ListAssessmentControlInsightsByControlDomainPaginator.js +2 -24
  7. package/dist-cjs/pagination/ListAssessmentFrameworkShareRequestsPaginator.js +2 -24
  8. package/dist-cjs/pagination/ListAssessmentFrameworksPaginator.js +2 -24
  9. package/dist-cjs/pagination/ListAssessmentReportsPaginator.js +2 -24
  10. package/dist-cjs/pagination/ListAssessmentsPaginator.js +2 -24
  11. package/dist-cjs/pagination/ListControlDomainInsightsByAssessmentPaginator.js +2 -24
  12. package/dist-cjs/pagination/ListControlDomainInsightsPaginator.js +2 -24
  13. package/dist-cjs/pagination/ListControlInsightsByControlDomainPaginator.js +2 -24
  14. package/dist-cjs/pagination/ListControlsPaginator.js +2 -24
  15. package/dist-cjs/pagination/ListKeywordsForDataSourcePaginator.js +2 -24
  16. package/dist-cjs/pagination/ListNotificationsPaginator.js +2 -24
  17. package/dist-cjs/protocols/Aws_restJson1.js +361 -819
  18. package/dist-es/pagination/GetChangeLogsPaginator.js +2 -23
  19. package/dist-es/pagination/GetDelegationsPaginator.js +2 -23
  20. package/dist-es/pagination/GetEvidenceByEvidenceFolderPaginator.js +2 -23
  21. package/dist-es/pagination/GetEvidenceFoldersByAssessmentControlPaginator.js +2 -23
  22. package/dist-es/pagination/GetEvidenceFoldersByAssessmentPaginator.js +2 -23
  23. package/dist-es/pagination/ListAssessmentControlInsightsByControlDomainPaginator.js +2 -23
  24. package/dist-es/pagination/ListAssessmentFrameworkShareRequestsPaginator.js +2 -23
  25. package/dist-es/pagination/ListAssessmentFrameworksPaginator.js +2 -23
  26. package/dist-es/pagination/ListAssessmentReportsPaginator.js +2 -23
  27. package/dist-es/pagination/ListAssessmentsPaginator.js +2 -23
  28. package/dist-es/pagination/ListControlDomainInsightsByAssessmentPaginator.js +2 -23
  29. package/dist-es/pagination/ListControlDomainInsightsPaginator.js +2 -23
  30. package/dist-es/pagination/ListControlInsightsByControlDomainPaginator.js +2 -23
  31. package/dist-es/pagination/ListControlsPaginator.js +2 -23
  32. package/dist-es/pagination/ListKeywordsForDataSourcePaginator.js +2 -23
  33. package/dist-es/pagination/ListNotificationsPaginator.js +2 -23
  34. package/dist-es/protocols/Aws_restJson1.js +362 -820
  35. package/dist-types/pagination/GetChangeLogsPaginator.d.ts +1 -1
  36. package/dist-types/pagination/GetDelegationsPaginator.d.ts +1 -1
  37. package/dist-types/pagination/GetEvidenceByEvidenceFolderPaginator.d.ts +1 -1
  38. package/dist-types/pagination/GetEvidenceFoldersByAssessmentControlPaginator.d.ts +1 -1
  39. package/dist-types/pagination/GetEvidenceFoldersByAssessmentPaginator.d.ts +1 -1
  40. package/dist-types/pagination/ListAssessmentControlInsightsByControlDomainPaginator.d.ts +1 -1
  41. package/dist-types/pagination/ListAssessmentFrameworkShareRequestsPaginator.d.ts +1 -1
  42. package/dist-types/pagination/ListAssessmentFrameworksPaginator.d.ts +1 -1
  43. package/dist-types/pagination/ListAssessmentReportsPaginator.d.ts +1 -1
  44. package/dist-types/pagination/ListAssessmentsPaginator.d.ts +1 -1
  45. package/dist-types/pagination/ListControlDomainInsightsByAssessmentPaginator.d.ts +1 -1
  46. package/dist-types/pagination/ListControlDomainInsightsPaginator.d.ts +1 -1
  47. package/dist-types/pagination/ListControlInsightsByControlDomainPaginator.d.ts +1 -1
  48. package/dist-types/pagination/ListControlsPaginator.d.ts +1 -1
  49. package/dist-types/pagination/ListKeywordsForDataSourcePaginator.d.ts +1 -1
  50. package/dist-types/pagination/ListNotificationsPaginator.d.ts +1 -1
  51. package/dist-types/ts3.4/pagination/GetChangeLogsPaginator.d.ts +3 -3
  52. package/dist-types/ts3.4/pagination/GetDelegationsPaginator.d.ts +3 -3
  53. package/dist-types/ts3.4/pagination/GetEvidenceByEvidenceFolderPaginator.d.ts +3 -3
  54. package/dist-types/ts3.4/pagination/GetEvidenceFoldersByAssessmentControlPaginator.d.ts +3 -3
  55. package/dist-types/ts3.4/pagination/GetEvidenceFoldersByAssessmentPaginator.d.ts +3 -3
  56. package/dist-types/ts3.4/pagination/ListAssessmentControlInsightsByControlDomainPaginator.d.ts +3 -3
  57. package/dist-types/ts3.4/pagination/ListAssessmentFrameworkShareRequestsPaginator.d.ts +3 -3
  58. package/dist-types/ts3.4/pagination/ListAssessmentFrameworksPaginator.d.ts +3 -3
  59. package/dist-types/ts3.4/pagination/ListAssessmentReportsPaginator.d.ts +3 -3
  60. package/dist-types/ts3.4/pagination/ListAssessmentsPaginator.d.ts +3 -3
  61. package/dist-types/ts3.4/pagination/ListControlDomainInsightsByAssessmentPaginator.d.ts +3 -3
  62. package/dist-types/ts3.4/pagination/ListControlDomainInsightsPaginator.d.ts +3 -3
  63. package/dist-types/ts3.4/pagination/ListControlInsightsByControlDomainPaginator.d.ts +3 -3
  64. package/dist-types/ts3.4/pagination/ListControlsPaginator.d.ts +3 -3
  65. package/dist-types/ts3.4/pagination/ListKeywordsForDataSourcePaginator.d.ts +3 -3
  66. package/dist-types/ts3.4/pagination/ListNotificationsPaginator.d.ts +3 -3
  67. package/package.json +7 -6
@@ -1,147 +1,101 @@
1
- import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
2
- import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, take, withBaseException, } from "@smithy/smithy-client";
1
+ import { requestBuilder as rb } from "@smithy/core";
2
+ import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
3
3
  import { AuditManagerServiceException as __BaseException } from "../models/AuditManagerServiceException";
4
4
  import { AccessDeniedException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
5
5
  export const se_AssociateAssessmentReportEvidenceFolderCommand = async (input, context) => {
6
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
6
+ const b = rb(input, context);
7
7
  const headers = {
8
8
  "content-type": "application/json",
9
9
  };
10
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
11
- "/assessments/{assessmentId}/associateToAssessmentReport";
12
- resolvedPath = __resolvedPath(resolvedPath, input, "assessmentId", () => input.assessmentId, "{assessmentId}", false);
10
+ b.bp("/assessments/{assessmentId}/associateToAssessmentReport");
11
+ b.p("assessmentId", () => input.assessmentId, "{assessmentId}", false);
13
12
  let body;
14
13
  body = JSON.stringify(take(input, {
15
14
  evidenceFolderId: [],
16
15
  }));
17
- return new __HttpRequest({
18
- protocol,
19
- hostname,
20
- port,
21
- method: "PUT",
22
- headers,
23
- path: resolvedPath,
24
- body,
25
- });
16
+ b.m("PUT").h(headers).b(body);
17
+ return b.build();
26
18
  };
27
19
  export const se_BatchAssociateAssessmentReportEvidenceCommand = async (input, context) => {
28
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
20
+ const b = rb(input, context);
29
21
  const headers = {
30
22
  "content-type": "application/json",
31
23
  };
32
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
33
- "/assessments/{assessmentId}/batchAssociateToAssessmentReport";
34
- resolvedPath = __resolvedPath(resolvedPath, input, "assessmentId", () => input.assessmentId, "{assessmentId}", false);
24
+ b.bp("/assessments/{assessmentId}/batchAssociateToAssessmentReport");
25
+ b.p("assessmentId", () => input.assessmentId, "{assessmentId}", false);
35
26
  let body;
36
27
  body = JSON.stringify(take(input, {
37
28
  evidenceFolderId: [],
38
29
  evidenceIds: (_) => _json(_),
39
30
  }));
40
- return new __HttpRequest({
41
- protocol,
42
- hostname,
43
- port,
44
- method: "PUT",
45
- headers,
46
- path: resolvedPath,
47
- body,
48
- });
31
+ b.m("PUT").h(headers).b(body);
32
+ return b.build();
49
33
  };
50
34
  export const se_BatchCreateDelegationByAssessmentCommand = async (input, context) => {
51
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
35
+ const b = rb(input, context);
52
36
  const headers = {
53
37
  "content-type": "application/json",
54
38
  };
55
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assessments/{assessmentId}/delegations";
56
- resolvedPath = __resolvedPath(resolvedPath, input, "assessmentId", () => input.assessmentId, "{assessmentId}", false);
39
+ b.bp("/assessments/{assessmentId}/delegations");
40
+ b.p("assessmentId", () => input.assessmentId, "{assessmentId}", false);
57
41
  let body;
58
42
  body = JSON.stringify(take(input, {
59
43
  createDelegationRequests: (_) => _json(_),
60
44
  }));
61
- return new __HttpRequest({
62
- protocol,
63
- hostname,
64
- port,
65
- method: "POST",
66
- headers,
67
- path: resolvedPath,
68
- body,
69
- });
45
+ b.m("POST").h(headers).b(body);
46
+ return b.build();
70
47
  };
71
48
  export const se_BatchDeleteDelegationByAssessmentCommand = async (input, context) => {
72
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
49
+ const b = rb(input, context);
73
50
  const headers = {
74
51
  "content-type": "application/json",
75
52
  };
76
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assessments/{assessmentId}/delegations";
77
- resolvedPath = __resolvedPath(resolvedPath, input, "assessmentId", () => input.assessmentId, "{assessmentId}", false);
53
+ b.bp("/assessments/{assessmentId}/delegations");
54
+ b.p("assessmentId", () => input.assessmentId, "{assessmentId}", false);
78
55
  let body;
79
56
  body = JSON.stringify(take(input, {
80
57
  delegationIds: (_) => _json(_),
81
58
  }));
82
- return new __HttpRequest({
83
- protocol,
84
- hostname,
85
- port,
86
- method: "PUT",
87
- headers,
88
- path: resolvedPath,
89
- body,
90
- });
59
+ b.m("PUT").h(headers).b(body);
60
+ return b.build();
91
61
  };
92
62
  export const se_BatchDisassociateAssessmentReportEvidenceCommand = async (input, context) => {
93
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
63
+ const b = rb(input, context);
94
64
  const headers = {
95
65
  "content-type": "application/json",
96
66
  };
97
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
98
- "/assessments/{assessmentId}/batchDisassociateFromAssessmentReport";
99
- resolvedPath = __resolvedPath(resolvedPath, input, "assessmentId", () => input.assessmentId, "{assessmentId}", false);
67
+ b.bp("/assessments/{assessmentId}/batchDisassociateFromAssessmentReport");
68
+ b.p("assessmentId", () => input.assessmentId, "{assessmentId}", false);
100
69
  let body;
101
70
  body = JSON.stringify(take(input, {
102
71
  evidenceFolderId: [],
103
72
  evidenceIds: (_) => _json(_),
104
73
  }));
105
- return new __HttpRequest({
106
- protocol,
107
- hostname,
108
- port,
109
- method: "PUT",
110
- headers,
111
- path: resolvedPath,
112
- body,
113
- });
74
+ b.m("PUT").h(headers).b(body);
75
+ return b.build();
114
76
  };
115
77
  export const se_BatchImportEvidenceToAssessmentControlCommand = async (input, context) => {
116
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
78
+ const b = rb(input, context);
117
79
  const headers = {
118
80
  "content-type": "application/json",
119
81
  };
120
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
121
- "/assessments/{assessmentId}/controlSets/{controlSetId}/controls/{controlId}/evidence";
122
- resolvedPath = __resolvedPath(resolvedPath, input, "assessmentId", () => input.assessmentId, "{assessmentId}", false);
123
- resolvedPath = __resolvedPath(resolvedPath, input, "controlSetId", () => input.controlSetId, "{controlSetId}", false);
124
- resolvedPath = __resolvedPath(resolvedPath, input, "controlId", () => input.controlId, "{controlId}", false);
82
+ b.bp("/assessments/{assessmentId}/controlSets/{controlSetId}/controls/{controlId}/evidence");
83
+ b.p("assessmentId", () => input.assessmentId, "{assessmentId}", false);
84
+ b.p("controlSetId", () => input.controlSetId, "{controlSetId}", false);
85
+ b.p("controlId", () => input.controlId, "{controlId}", false);
125
86
  let body;
126
87
  body = JSON.stringify(take(input, {
127
88
  manualEvidence: (_) => _json(_),
128
89
  }));
129
- return new __HttpRequest({
130
- protocol,
131
- hostname,
132
- port,
133
- method: "POST",
134
- headers,
135
- path: resolvedPath,
136
- body,
137
- });
90
+ b.m("POST").h(headers).b(body);
91
+ return b.build();
138
92
  };
139
93
  export const se_CreateAssessmentCommand = async (input, context) => {
140
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
94
+ const b = rb(input, context);
141
95
  const headers = {
142
96
  "content-type": "application/json",
143
97
  };
144
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assessments";
98
+ b.bp("/assessments");
145
99
  let body;
146
100
  body = JSON.stringify(take(input, {
147
101
  assessmentReportsDestination: (_) => _json(_),
@@ -152,22 +106,15 @@ export const se_CreateAssessmentCommand = async (input, context) => {
152
106
  scope: (_) => _json(_),
153
107
  tags: (_) => _json(_),
154
108
  }));
155
- return new __HttpRequest({
156
- protocol,
157
- hostname,
158
- port,
159
- method: "POST",
160
- headers,
161
- path: resolvedPath,
162
- body,
163
- });
109
+ b.m("POST").h(headers).b(body);
110
+ return b.build();
164
111
  };
165
112
  export const se_CreateAssessmentFrameworkCommand = async (input, context) => {
166
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
113
+ const b = rb(input, context);
167
114
  const headers = {
168
115
  "content-type": "application/json",
169
116
  };
170
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assessmentFrameworks";
117
+ b.bp("/assessmentFrameworks");
171
118
  let body;
172
119
  body = JSON.stringify(take(input, {
173
120
  complianceType: [],
@@ -176,45 +123,31 @@ export const se_CreateAssessmentFrameworkCommand = async (input, context) => {
176
123
  name: [],
177
124
  tags: (_) => _json(_),
178
125
  }));
179
- return new __HttpRequest({
180
- protocol,
181
- hostname,
182
- port,
183
- method: "POST",
184
- headers,
185
- path: resolvedPath,
186
- body,
187
- });
126
+ b.m("POST").h(headers).b(body);
127
+ return b.build();
188
128
  };
189
129
  export const se_CreateAssessmentReportCommand = async (input, context) => {
190
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
130
+ const b = rb(input, context);
191
131
  const headers = {
192
132
  "content-type": "application/json",
193
133
  };
194
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assessments/{assessmentId}/reports";
195
- resolvedPath = __resolvedPath(resolvedPath, input, "assessmentId", () => input.assessmentId, "{assessmentId}", false);
134
+ b.bp("/assessments/{assessmentId}/reports");
135
+ b.p("assessmentId", () => input.assessmentId, "{assessmentId}", false);
196
136
  let body;
197
137
  body = JSON.stringify(take(input, {
198
138
  description: [],
199
139
  name: [],
200
140
  queryStatement: [],
201
141
  }));
202
- return new __HttpRequest({
203
- protocol,
204
- hostname,
205
- port,
206
- method: "POST",
207
- headers,
208
- path: resolvedPath,
209
- body,
210
- });
142
+ b.m("POST").h(headers).b(body);
143
+ return b.build();
211
144
  };
212
145
  export const se_CreateControlCommand = async (input, context) => {
213
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
146
+ const b = rb(input, context);
214
147
  const headers = {
215
148
  "content-type": "application/json",
216
149
  };
217
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/controls";
150
+ b.bp("/controls");
218
151
  let body;
219
152
  body = JSON.stringify(take(input, {
220
153
  actionPlanInstructions: [],
@@ -225,866 +158,528 @@ export const se_CreateControlCommand = async (input, context) => {
225
158
  tags: (_) => _json(_),
226
159
  testingInformation: [],
227
160
  }));
228
- return new __HttpRequest({
229
- protocol,
230
- hostname,
231
- port,
232
- method: "POST",
233
- headers,
234
- path: resolvedPath,
235
- body,
236
- });
161
+ b.m("POST").h(headers).b(body);
162
+ return b.build();
237
163
  };
238
164
  export const se_DeleteAssessmentCommand = async (input, context) => {
239
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
165
+ const b = rb(input, context);
240
166
  const headers = {};
241
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assessments/{assessmentId}";
242
- resolvedPath = __resolvedPath(resolvedPath, input, "assessmentId", () => input.assessmentId, "{assessmentId}", false);
167
+ b.bp("/assessments/{assessmentId}");
168
+ b.p("assessmentId", () => input.assessmentId, "{assessmentId}", false);
243
169
  let body;
244
- return new __HttpRequest({
245
- protocol,
246
- hostname,
247
- port,
248
- method: "DELETE",
249
- headers,
250
- path: resolvedPath,
251
- body,
252
- });
170
+ b.m("DELETE").h(headers).b(body);
171
+ return b.build();
253
172
  };
254
173
  export const se_DeleteAssessmentFrameworkCommand = async (input, context) => {
255
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
174
+ const b = rb(input, context);
256
175
  const headers = {};
257
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assessmentFrameworks/{frameworkId}";
258
- resolvedPath = __resolvedPath(resolvedPath, input, "frameworkId", () => input.frameworkId, "{frameworkId}", false);
176
+ b.bp("/assessmentFrameworks/{frameworkId}");
177
+ b.p("frameworkId", () => input.frameworkId, "{frameworkId}", false);
259
178
  let body;
260
- return new __HttpRequest({
261
- protocol,
262
- hostname,
263
- port,
264
- method: "DELETE",
265
- headers,
266
- path: resolvedPath,
267
- body,
268
- });
179
+ b.m("DELETE").h(headers).b(body);
180
+ return b.build();
269
181
  };
270
182
  export const se_DeleteAssessmentFrameworkShareCommand = async (input, context) => {
271
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
183
+ const b = rb(input, context);
272
184
  const headers = {};
273
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
274
- "/assessmentFrameworkShareRequests/{requestId}";
275
- resolvedPath = __resolvedPath(resolvedPath, input, "requestId", () => input.requestId, "{requestId}", false);
185
+ b.bp("/assessmentFrameworkShareRequests/{requestId}");
186
+ b.p("requestId", () => input.requestId, "{requestId}", false);
276
187
  const query = map({
277
- requestType: [, __expectNonNull(input.requestType, `requestType`)],
188
+ [_rT]: [, __expectNonNull(input[_rT], `requestType`)],
278
189
  });
279
190
  let body;
280
- return new __HttpRequest({
281
- protocol,
282
- hostname,
283
- port,
284
- method: "DELETE",
285
- headers,
286
- path: resolvedPath,
287
- query,
288
- body,
289
- });
191
+ b.m("DELETE").h(headers).q(query).b(body);
192
+ return b.build();
290
193
  };
291
194
  export const se_DeleteAssessmentReportCommand = async (input, context) => {
292
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
195
+ const b = rb(input, context);
293
196
  const headers = {};
294
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
295
- "/assessments/{assessmentId}/reports/{assessmentReportId}";
296
- resolvedPath = __resolvedPath(resolvedPath, input, "assessmentId", () => input.assessmentId, "{assessmentId}", false);
297
- resolvedPath = __resolvedPath(resolvedPath, input, "assessmentReportId", () => input.assessmentReportId, "{assessmentReportId}", false);
197
+ b.bp("/assessments/{assessmentId}/reports/{assessmentReportId}");
198
+ b.p("assessmentId", () => input.assessmentId, "{assessmentId}", false);
199
+ b.p("assessmentReportId", () => input.assessmentReportId, "{assessmentReportId}", false);
298
200
  let body;
299
- return new __HttpRequest({
300
- protocol,
301
- hostname,
302
- port,
303
- method: "DELETE",
304
- headers,
305
- path: resolvedPath,
306
- body,
307
- });
201
+ b.m("DELETE").h(headers).b(body);
202
+ return b.build();
308
203
  };
309
204
  export const se_DeleteControlCommand = async (input, context) => {
310
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
205
+ const b = rb(input, context);
311
206
  const headers = {};
312
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/controls/{controlId}";
313
- resolvedPath = __resolvedPath(resolvedPath, input, "controlId", () => input.controlId, "{controlId}", false);
207
+ b.bp("/controls/{controlId}");
208
+ b.p("controlId", () => input.controlId, "{controlId}", false);
314
209
  let body;
315
- return new __HttpRequest({
316
- protocol,
317
- hostname,
318
- port,
319
- method: "DELETE",
320
- headers,
321
- path: resolvedPath,
322
- body,
323
- });
210
+ b.m("DELETE").h(headers).b(body);
211
+ return b.build();
324
212
  };
325
213
  export const se_DeregisterAccountCommand = async (input, context) => {
326
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
214
+ const b = rb(input, context);
327
215
  const headers = {
328
216
  "content-type": "application/json",
329
217
  };
330
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/account/deregisterAccount";
218
+ b.bp("/account/deregisterAccount");
331
219
  let body;
332
220
  body = "";
333
- return new __HttpRequest({
334
- protocol,
335
- hostname,
336
- port,
337
- method: "POST",
338
- headers,
339
- path: resolvedPath,
340
- body,
341
- });
221
+ b.m("POST").h(headers).b(body);
222
+ return b.build();
342
223
  };
343
224
  export const se_DeregisterOrganizationAdminAccountCommand = async (input, context) => {
344
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
225
+ const b = rb(input, context);
345
226
  const headers = {
346
227
  "content-type": "application/json",
347
228
  };
348
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
349
- "/account/deregisterOrganizationAdminAccount";
229
+ b.bp("/account/deregisterOrganizationAdminAccount");
350
230
  let body;
351
231
  body = JSON.stringify(take(input, {
352
232
  adminAccountId: [],
353
233
  }));
354
- return new __HttpRequest({
355
- protocol,
356
- hostname,
357
- port,
358
- method: "POST",
359
- headers,
360
- path: resolvedPath,
361
- body,
362
- });
234
+ b.m("POST").h(headers).b(body);
235
+ return b.build();
363
236
  };
364
237
  export const se_DisassociateAssessmentReportEvidenceFolderCommand = async (input, context) => {
365
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
238
+ const b = rb(input, context);
366
239
  const headers = {
367
240
  "content-type": "application/json",
368
241
  };
369
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
370
- "/assessments/{assessmentId}/disassociateFromAssessmentReport";
371
- resolvedPath = __resolvedPath(resolvedPath, input, "assessmentId", () => input.assessmentId, "{assessmentId}", false);
242
+ b.bp("/assessments/{assessmentId}/disassociateFromAssessmentReport");
243
+ b.p("assessmentId", () => input.assessmentId, "{assessmentId}", false);
372
244
  let body;
373
245
  body = JSON.stringify(take(input, {
374
246
  evidenceFolderId: [],
375
247
  }));
376
- return new __HttpRequest({
377
- protocol,
378
- hostname,
379
- port,
380
- method: "PUT",
381
- headers,
382
- path: resolvedPath,
383
- body,
384
- });
248
+ b.m("PUT").h(headers).b(body);
249
+ return b.build();
385
250
  };
386
251
  export const se_GetAccountStatusCommand = async (input, context) => {
387
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
252
+ const b = rb(input, context);
388
253
  const headers = {
389
254
  "content-type": "application/json",
390
255
  };
391
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/account/status";
256
+ b.bp("/account/status");
392
257
  let body;
393
258
  body = "";
394
- return new __HttpRequest({
395
- protocol,
396
- hostname,
397
- port,
398
- method: "GET",
399
- headers,
400
- path: resolvedPath,
401
- body,
402
- });
259
+ b.m("GET").h(headers).b(body);
260
+ return b.build();
403
261
  };
404
262
  export const se_GetAssessmentCommand = async (input, context) => {
405
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
263
+ const b = rb(input, context);
406
264
  const headers = {};
407
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assessments/{assessmentId}";
408
- resolvedPath = __resolvedPath(resolvedPath, input, "assessmentId", () => input.assessmentId, "{assessmentId}", false);
265
+ b.bp("/assessments/{assessmentId}");
266
+ b.p("assessmentId", () => input.assessmentId, "{assessmentId}", false);
409
267
  let body;
410
- return new __HttpRequest({
411
- protocol,
412
- hostname,
413
- port,
414
- method: "GET",
415
- headers,
416
- path: resolvedPath,
417
- body,
418
- });
268
+ b.m("GET").h(headers).b(body);
269
+ return b.build();
419
270
  };
420
271
  export const se_GetAssessmentFrameworkCommand = async (input, context) => {
421
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
272
+ const b = rb(input, context);
422
273
  const headers = {};
423
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assessmentFrameworks/{frameworkId}";
424
- resolvedPath = __resolvedPath(resolvedPath, input, "frameworkId", () => input.frameworkId, "{frameworkId}", false);
274
+ b.bp("/assessmentFrameworks/{frameworkId}");
275
+ b.p("frameworkId", () => input.frameworkId, "{frameworkId}", false);
425
276
  let body;
426
- return new __HttpRequest({
427
- protocol,
428
- hostname,
429
- port,
430
- method: "GET",
431
- headers,
432
- path: resolvedPath,
433
- body,
434
- });
277
+ b.m("GET").h(headers).b(body);
278
+ return b.build();
435
279
  };
436
280
  export const se_GetAssessmentReportUrlCommand = async (input, context) => {
437
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
281
+ const b = rb(input, context);
438
282
  const headers = {};
439
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
440
- "/assessments/{assessmentId}/reports/{assessmentReportId}/url";
441
- resolvedPath = __resolvedPath(resolvedPath, input, "assessmentReportId", () => input.assessmentReportId, "{assessmentReportId}", false);
442
- resolvedPath = __resolvedPath(resolvedPath, input, "assessmentId", () => input.assessmentId, "{assessmentId}", false);
283
+ b.bp("/assessments/{assessmentId}/reports/{assessmentReportId}/url");
284
+ b.p("assessmentReportId", () => input.assessmentReportId, "{assessmentReportId}", false);
285
+ b.p("assessmentId", () => input.assessmentId, "{assessmentId}", false);
443
286
  let body;
444
- return new __HttpRequest({
445
- protocol,
446
- hostname,
447
- port,
448
- method: "GET",
449
- headers,
450
- path: resolvedPath,
451
- body,
452
- });
287
+ b.m("GET").h(headers).b(body);
288
+ return b.build();
453
289
  };
454
290
  export const se_GetChangeLogsCommand = async (input, context) => {
455
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
291
+ const b = rb(input, context);
456
292
  const headers = {};
457
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assessments/{assessmentId}/changelogs";
458
- resolvedPath = __resolvedPath(resolvedPath, input, "assessmentId", () => input.assessmentId, "{assessmentId}", false);
293
+ b.bp("/assessments/{assessmentId}/changelogs");
294
+ b.p("assessmentId", () => input.assessmentId, "{assessmentId}", false);
459
295
  const query = map({
460
- controlSetId: [, input.controlSetId],
461
- controlId: [, input.controlId],
462
- nextToken: [, input.nextToken],
463
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
296
+ [_cSI]: [, input[_cSI]],
297
+ [_cI]: [, input[_cI]],
298
+ [_nT]: [, input[_nT]],
299
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
464
300
  });
465
301
  let body;
466
- return new __HttpRequest({
467
- protocol,
468
- hostname,
469
- port,
470
- method: "GET",
471
- headers,
472
- path: resolvedPath,
473
- query,
474
- body,
475
- });
302
+ b.m("GET").h(headers).q(query).b(body);
303
+ return b.build();
476
304
  };
477
305
  export const se_GetControlCommand = async (input, context) => {
478
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
306
+ const b = rb(input, context);
479
307
  const headers = {};
480
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/controls/{controlId}";
481
- resolvedPath = __resolvedPath(resolvedPath, input, "controlId", () => input.controlId, "{controlId}", false);
308
+ b.bp("/controls/{controlId}");
309
+ b.p("controlId", () => input.controlId, "{controlId}", false);
482
310
  let body;
483
- return new __HttpRequest({
484
- protocol,
485
- hostname,
486
- port,
487
- method: "GET",
488
- headers,
489
- path: resolvedPath,
490
- body,
491
- });
311
+ b.m("GET").h(headers).b(body);
312
+ return b.build();
492
313
  };
493
314
  export const se_GetDelegationsCommand = async (input, context) => {
494
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
315
+ const b = rb(input, context);
495
316
  const headers = {};
496
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/delegations";
317
+ b.bp("/delegations");
497
318
  const query = map({
498
- nextToken: [, input.nextToken],
499
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
319
+ [_nT]: [, input[_nT]],
320
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
500
321
  });
501
322
  let body;
502
- return new __HttpRequest({
503
- protocol,
504
- hostname,
505
- port,
506
- method: "GET",
507
- headers,
508
- path: resolvedPath,
509
- query,
510
- body,
511
- });
323
+ b.m("GET").h(headers).q(query).b(body);
324
+ return b.build();
512
325
  };
513
326
  export const se_GetEvidenceCommand = async (input, context) => {
514
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
327
+ const b = rb(input, context);
515
328
  const headers = {};
516
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
517
- "/assessments/{assessmentId}/controlSets/{controlSetId}/evidenceFolders/{evidenceFolderId}/evidence/{evidenceId}";
518
- resolvedPath = __resolvedPath(resolvedPath, input, "assessmentId", () => input.assessmentId, "{assessmentId}", false);
519
- resolvedPath = __resolvedPath(resolvedPath, input, "controlSetId", () => input.controlSetId, "{controlSetId}", false);
520
- resolvedPath = __resolvedPath(resolvedPath, input, "evidenceFolderId", () => input.evidenceFolderId, "{evidenceFolderId}", false);
521
- resolvedPath = __resolvedPath(resolvedPath, input, "evidenceId", () => input.evidenceId, "{evidenceId}", false);
329
+ b.bp("/assessments/{assessmentId}/controlSets/{controlSetId}/evidenceFolders/{evidenceFolderId}/evidence/{evidenceId}");
330
+ b.p("assessmentId", () => input.assessmentId, "{assessmentId}", false);
331
+ b.p("controlSetId", () => input.controlSetId, "{controlSetId}", false);
332
+ b.p("evidenceFolderId", () => input.evidenceFolderId, "{evidenceFolderId}", false);
333
+ b.p("evidenceId", () => input.evidenceId, "{evidenceId}", false);
522
334
  let body;
523
- return new __HttpRequest({
524
- protocol,
525
- hostname,
526
- port,
527
- method: "GET",
528
- headers,
529
- path: resolvedPath,
530
- body,
531
- });
335
+ b.m("GET").h(headers).b(body);
336
+ return b.build();
532
337
  };
533
338
  export const se_GetEvidenceByEvidenceFolderCommand = async (input, context) => {
534
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
339
+ const b = rb(input, context);
535
340
  const headers = {};
536
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
537
- "/assessments/{assessmentId}/controlSets/{controlSetId}/evidenceFolders/{evidenceFolderId}/evidence";
538
- resolvedPath = __resolvedPath(resolvedPath, input, "assessmentId", () => input.assessmentId, "{assessmentId}", false);
539
- resolvedPath = __resolvedPath(resolvedPath, input, "controlSetId", () => input.controlSetId, "{controlSetId}", false);
540
- resolvedPath = __resolvedPath(resolvedPath, input, "evidenceFolderId", () => input.evidenceFolderId, "{evidenceFolderId}", false);
341
+ b.bp("/assessments/{assessmentId}/controlSets/{controlSetId}/evidenceFolders/{evidenceFolderId}/evidence");
342
+ b.p("assessmentId", () => input.assessmentId, "{assessmentId}", false);
343
+ b.p("controlSetId", () => input.controlSetId, "{controlSetId}", false);
344
+ b.p("evidenceFolderId", () => input.evidenceFolderId, "{evidenceFolderId}", false);
541
345
  const query = map({
542
- nextToken: [, input.nextToken],
543
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
346
+ [_nT]: [, input[_nT]],
347
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
544
348
  });
545
349
  let body;
546
- return new __HttpRequest({
547
- protocol,
548
- hostname,
549
- port,
550
- method: "GET",
551
- headers,
552
- path: resolvedPath,
553
- query,
554
- body,
555
- });
350
+ b.m("GET").h(headers).q(query).b(body);
351
+ return b.build();
556
352
  };
557
353
  export const se_GetEvidenceFileUploadUrlCommand = async (input, context) => {
558
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
354
+ const b = rb(input, context);
559
355
  const headers = {};
560
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/evidenceFileUploadUrl";
356
+ b.bp("/evidenceFileUploadUrl");
561
357
  const query = map({
562
- fileName: [, __expectNonNull(input.fileName, `fileName`)],
358
+ [_fN]: [, __expectNonNull(input[_fN], `fileName`)],
563
359
  });
564
360
  let body;
565
- return new __HttpRequest({
566
- protocol,
567
- hostname,
568
- port,
569
- method: "GET",
570
- headers,
571
- path: resolvedPath,
572
- query,
573
- body,
574
- });
361
+ b.m("GET").h(headers).q(query).b(body);
362
+ return b.build();
575
363
  };
576
364
  export const se_GetEvidenceFolderCommand = async (input, context) => {
577
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
365
+ const b = rb(input, context);
578
366
  const headers = {};
579
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
580
- "/assessments/{assessmentId}/controlSets/{controlSetId}/evidenceFolders/{evidenceFolderId}";
581
- resolvedPath = __resolvedPath(resolvedPath, input, "assessmentId", () => input.assessmentId, "{assessmentId}", false);
582
- resolvedPath = __resolvedPath(resolvedPath, input, "controlSetId", () => input.controlSetId, "{controlSetId}", false);
583
- resolvedPath = __resolvedPath(resolvedPath, input, "evidenceFolderId", () => input.evidenceFolderId, "{evidenceFolderId}", false);
367
+ b.bp("/assessments/{assessmentId}/controlSets/{controlSetId}/evidenceFolders/{evidenceFolderId}");
368
+ b.p("assessmentId", () => input.assessmentId, "{assessmentId}", false);
369
+ b.p("controlSetId", () => input.controlSetId, "{controlSetId}", false);
370
+ b.p("evidenceFolderId", () => input.evidenceFolderId, "{evidenceFolderId}", false);
584
371
  let body;
585
- return new __HttpRequest({
586
- protocol,
587
- hostname,
588
- port,
589
- method: "GET",
590
- headers,
591
- path: resolvedPath,
592
- body,
593
- });
372
+ b.m("GET").h(headers).b(body);
373
+ return b.build();
594
374
  };
595
375
  export const se_GetEvidenceFoldersByAssessmentCommand = async (input, context) => {
596
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
376
+ const b = rb(input, context);
597
377
  const headers = {};
598
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
599
- "/assessments/{assessmentId}/evidenceFolders";
600
- resolvedPath = __resolvedPath(resolvedPath, input, "assessmentId", () => input.assessmentId, "{assessmentId}", false);
378
+ b.bp("/assessments/{assessmentId}/evidenceFolders");
379
+ b.p("assessmentId", () => input.assessmentId, "{assessmentId}", false);
601
380
  const query = map({
602
- nextToken: [, input.nextToken],
603
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
381
+ [_nT]: [, input[_nT]],
382
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
604
383
  });
605
384
  let body;
606
- return new __HttpRequest({
607
- protocol,
608
- hostname,
609
- port,
610
- method: "GET",
611
- headers,
612
- path: resolvedPath,
613
- query,
614
- body,
615
- });
385
+ b.m("GET").h(headers).q(query).b(body);
386
+ return b.build();
616
387
  };
617
388
  export const se_GetEvidenceFoldersByAssessmentControlCommand = async (input, context) => {
618
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
389
+ const b = rb(input, context);
619
390
  const headers = {};
620
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
621
- "/assessments/{assessmentId}/evidenceFolders-by-assessment-control/{controlSetId}/{controlId}";
622
- resolvedPath = __resolvedPath(resolvedPath, input, "assessmentId", () => input.assessmentId, "{assessmentId}", false);
623
- resolvedPath = __resolvedPath(resolvedPath, input, "controlSetId", () => input.controlSetId, "{controlSetId}", false);
624
- resolvedPath = __resolvedPath(resolvedPath, input, "controlId", () => input.controlId, "{controlId}", false);
391
+ b.bp("/assessments/{assessmentId}/evidenceFolders-by-assessment-control/{controlSetId}/{controlId}");
392
+ b.p("assessmentId", () => input.assessmentId, "{assessmentId}", false);
393
+ b.p("controlSetId", () => input.controlSetId, "{controlSetId}", false);
394
+ b.p("controlId", () => input.controlId, "{controlId}", false);
625
395
  const query = map({
626
- nextToken: [, input.nextToken],
627
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
396
+ [_nT]: [, input[_nT]],
397
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
628
398
  });
629
399
  let body;
630
- return new __HttpRequest({
631
- protocol,
632
- hostname,
633
- port,
634
- method: "GET",
635
- headers,
636
- path: resolvedPath,
637
- query,
638
- body,
639
- });
400
+ b.m("GET").h(headers).q(query).b(body);
401
+ return b.build();
640
402
  };
641
403
  export const se_GetInsightsCommand = async (input, context) => {
642
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
404
+ const b = rb(input, context);
643
405
  const headers = {
644
406
  "content-type": "application/json",
645
407
  };
646
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/insights";
408
+ b.bp("/insights");
647
409
  let body;
648
410
  body = "";
649
- return new __HttpRequest({
650
- protocol,
651
- hostname,
652
- port,
653
- method: "GET",
654
- headers,
655
- path: resolvedPath,
656
- body,
657
- });
411
+ b.m("GET").h(headers).b(body);
412
+ return b.build();
658
413
  };
659
414
  export const se_GetInsightsByAssessmentCommand = async (input, context) => {
660
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
415
+ const b = rb(input, context);
661
416
  const headers = {};
662
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/insights/assessments/{assessmentId}";
663
- resolvedPath = __resolvedPath(resolvedPath, input, "assessmentId", () => input.assessmentId, "{assessmentId}", false);
417
+ b.bp("/insights/assessments/{assessmentId}");
418
+ b.p("assessmentId", () => input.assessmentId, "{assessmentId}", false);
664
419
  let body;
665
- return new __HttpRequest({
666
- protocol,
667
- hostname,
668
- port,
669
- method: "GET",
670
- headers,
671
- path: resolvedPath,
672
- body,
673
- });
420
+ b.m("GET").h(headers).b(body);
421
+ return b.build();
674
422
  };
675
423
  export const se_GetOrganizationAdminAccountCommand = async (input, context) => {
676
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
424
+ const b = rb(input, context);
677
425
  const headers = {
678
426
  "content-type": "application/json",
679
427
  };
680
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/account/organizationAdminAccount";
428
+ b.bp("/account/organizationAdminAccount");
681
429
  let body;
682
430
  body = "";
683
- return new __HttpRequest({
684
- protocol,
685
- hostname,
686
- port,
687
- method: "GET",
688
- headers,
689
- path: resolvedPath,
690
- body,
691
- });
431
+ b.m("GET").h(headers).b(body);
432
+ return b.build();
692
433
  };
693
434
  export const se_GetServicesInScopeCommand = async (input, context) => {
694
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
435
+ const b = rb(input, context);
695
436
  const headers = {
696
437
  "content-type": "application/json",
697
438
  };
698
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/services";
439
+ b.bp("/services");
699
440
  let body;
700
441
  body = "";
701
- return new __HttpRequest({
702
- protocol,
703
- hostname,
704
- port,
705
- method: "GET",
706
- headers,
707
- path: resolvedPath,
708
- body,
709
- });
442
+ b.m("GET").h(headers).b(body);
443
+ return b.build();
710
444
  };
711
445
  export const se_GetSettingsCommand = async (input, context) => {
712
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
446
+ const b = rb(input, context);
713
447
  const headers = {};
714
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/settings/{attribute}";
715
- resolvedPath = __resolvedPath(resolvedPath, input, "attribute", () => input.attribute, "{attribute}", false);
448
+ b.bp("/settings/{attribute}");
449
+ b.p("attribute", () => input.attribute, "{attribute}", false);
716
450
  let body;
717
- return new __HttpRequest({
718
- protocol,
719
- hostname,
720
- port,
721
- method: "GET",
722
- headers,
723
- path: resolvedPath,
724
- body,
725
- });
451
+ b.m("GET").h(headers).b(body);
452
+ return b.build();
726
453
  };
727
454
  export const se_ListAssessmentControlInsightsByControlDomainCommand = async (input, context) => {
728
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
455
+ const b = rb(input, context);
729
456
  const headers = {};
730
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/insights/controls-by-assessment";
457
+ b.bp("/insights/controls-by-assessment");
731
458
  const query = map({
732
- controlDomainId: [, __expectNonNull(input.controlDomainId, `controlDomainId`)],
733
- assessmentId: [, __expectNonNull(input.assessmentId, `assessmentId`)],
734
- nextToken: [, input.nextToken],
735
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
459
+ [_cDI]: [, __expectNonNull(input[_cDI], `controlDomainId`)],
460
+ [_aI]: [, __expectNonNull(input[_aI], `assessmentId`)],
461
+ [_nT]: [, input[_nT]],
462
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
736
463
  });
737
464
  let body;
738
- return new __HttpRequest({
739
- protocol,
740
- hostname,
741
- port,
742
- method: "GET",
743
- headers,
744
- path: resolvedPath,
745
- query,
746
- body,
747
- });
465
+ b.m("GET").h(headers).q(query).b(body);
466
+ return b.build();
748
467
  };
749
468
  export const se_ListAssessmentFrameworksCommand = async (input, context) => {
750
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
469
+ const b = rb(input, context);
751
470
  const headers = {};
752
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assessmentFrameworks";
471
+ b.bp("/assessmentFrameworks");
753
472
  const query = map({
754
- frameworkType: [, __expectNonNull(input.frameworkType, `frameworkType`)],
755
- nextToken: [, input.nextToken],
756
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
473
+ [_fT]: [, __expectNonNull(input[_fT], `frameworkType`)],
474
+ [_nT]: [, input[_nT]],
475
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
757
476
  });
758
477
  let body;
759
- return new __HttpRequest({
760
- protocol,
761
- hostname,
762
- port,
763
- method: "GET",
764
- headers,
765
- path: resolvedPath,
766
- query,
767
- body,
768
- });
478
+ b.m("GET").h(headers).q(query).b(body);
479
+ return b.build();
769
480
  };
770
481
  export const se_ListAssessmentFrameworkShareRequestsCommand = async (input, context) => {
771
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
482
+ const b = rb(input, context);
772
483
  const headers = {};
773
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assessmentFrameworkShareRequests";
484
+ b.bp("/assessmentFrameworkShareRequests");
774
485
  const query = map({
775
- requestType: [, __expectNonNull(input.requestType, `requestType`)],
776
- nextToken: [, input.nextToken],
777
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
486
+ [_rT]: [, __expectNonNull(input[_rT], `requestType`)],
487
+ [_nT]: [, input[_nT]],
488
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
778
489
  });
779
490
  let body;
780
- return new __HttpRequest({
781
- protocol,
782
- hostname,
783
- port,
784
- method: "GET",
785
- headers,
786
- path: resolvedPath,
787
- query,
788
- body,
789
- });
491
+ b.m("GET").h(headers).q(query).b(body);
492
+ return b.build();
790
493
  };
791
494
  export const se_ListAssessmentReportsCommand = async (input, context) => {
792
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
495
+ const b = rb(input, context);
793
496
  const headers = {};
794
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assessmentReports";
497
+ b.bp("/assessmentReports");
795
498
  const query = map({
796
- nextToken: [, input.nextToken],
797
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
499
+ [_nT]: [, input[_nT]],
500
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
798
501
  });
799
502
  let body;
800
- return new __HttpRequest({
801
- protocol,
802
- hostname,
803
- port,
804
- method: "GET",
805
- headers,
806
- path: resolvedPath,
807
- query,
808
- body,
809
- });
503
+ b.m("GET").h(headers).q(query).b(body);
504
+ return b.build();
810
505
  };
811
506
  export const se_ListAssessmentsCommand = async (input, context) => {
812
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
507
+ const b = rb(input, context);
813
508
  const headers = {};
814
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assessments";
509
+ b.bp("/assessments");
815
510
  const query = map({
816
- status: [, input.status],
817
- nextToken: [, input.nextToken],
818
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
511
+ [_s]: [, input[_s]],
512
+ [_nT]: [, input[_nT]],
513
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
819
514
  });
820
515
  let body;
821
- return new __HttpRequest({
822
- protocol,
823
- hostname,
824
- port,
825
- method: "GET",
826
- headers,
827
- path: resolvedPath,
828
- query,
829
- body,
830
- });
516
+ b.m("GET").h(headers).q(query).b(body);
517
+ return b.build();
831
518
  };
832
519
  export const se_ListControlDomainInsightsCommand = async (input, context) => {
833
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
520
+ const b = rb(input, context);
834
521
  const headers = {};
835
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/insights/control-domains";
522
+ b.bp("/insights/control-domains");
836
523
  const query = map({
837
- nextToken: [, input.nextToken],
838
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
524
+ [_nT]: [, input[_nT]],
525
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
839
526
  });
840
527
  let body;
841
- return new __HttpRequest({
842
- protocol,
843
- hostname,
844
- port,
845
- method: "GET",
846
- headers,
847
- path: resolvedPath,
848
- query,
849
- body,
850
- });
528
+ b.m("GET").h(headers).q(query).b(body);
529
+ return b.build();
851
530
  };
852
531
  export const se_ListControlDomainInsightsByAssessmentCommand = async (input, context) => {
853
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
532
+ const b = rb(input, context);
854
533
  const headers = {};
855
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/insights/control-domains-by-assessment";
534
+ b.bp("/insights/control-domains-by-assessment");
856
535
  const query = map({
857
- assessmentId: [, __expectNonNull(input.assessmentId, `assessmentId`)],
858
- nextToken: [, input.nextToken],
859
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
536
+ [_aI]: [, __expectNonNull(input[_aI], `assessmentId`)],
537
+ [_nT]: [, input[_nT]],
538
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
860
539
  });
861
540
  let body;
862
- return new __HttpRequest({
863
- protocol,
864
- hostname,
865
- port,
866
- method: "GET",
867
- headers,
868
- path: resolvedPath,
869
- query,
870
- body,
871
- });
541
+ b.m("GET").h(headers).q(query).b(body);
542
+ return b.build();
872
543
  };
873
544
  export const se_ListControlInsightsByControlDomainCommand = async (input, context) => {
874
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
545
+ const b = rb(input, context);
875
546
  const headers = {};
876
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/insights/controls";
547
+ b.bp("/insights/controls");
877
548
  const query = map({
878
- controlDomainId: [, __expectNonNull(input.controlDomainId, `controlDomainId`)],
879
- nextToken: [, input.nextToken],
880
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
549
+ [_cDI]: [, __expectNonNull(input[_cDI], `controlDomainId`)],
550
+ [_nT]: [, input[_nT]],
551
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
881
552
  });
882
553
  let body;
883
- return new __HttpRequest({
884
- protocol,
885
- hostname,
886
- port,
887
- method: "GET",
888
- headers,
889
- path: resolvedPath,
890
- query,
891
- body,
892
- });
554
+ b.m("GET").h(headers).q(query).b(body);
555
+ return b.build();
893
556
  };
894
557
  export const se_ListControlsCommand = async (input, context) => {
895
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
558
+ const b = rb(input, context);
896
559
  const headers = {};
897
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/controls";
560
+ b.bp("/controls");
898
561
  const query = map({
899
- controlType: [, __expectNonNull(input.controlType, `controlType`)],
900
- nextToken: [, input.nextToken],
901
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
562
+ [_cT]: [, __expectNonNull(input[_cT], `controlType`)],
563
+ [_nT]: [, input[_nT]],
564
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
902
565
  });
903
566
  let body;
904
- return new __HttpRequest({
905
- protocol,
906
- hostname,
907
- port,
908
- method: "GET",
909
- headers,
910
- path: resolvedPath,
911
- query,
912
- body,
913
- });
567
+ b.m("GET").h(headers).q(query).b(body);
568
+ return b.build();
914
569
  };
915
570
  export const se_ListKeywordsForDataSourceCommand = async (input, context) => {
916
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
571
+ const b = rb(input, context);
917
572
  const headers = {};
918
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/dataSourceKeywords";
573
+ b.bp("/dataSourceKeywords");
919
574
  const query = map({
920
- source: [, __expectNonNull(input.source, `source`)],
921
- nextToken: [, input.nextToken],
922
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
575
+ [_so]: [, __expectNonNull(input[_so], `source`)],
576
+ [_nT]: [, input[_nT]],
577
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
923
578
  });
924
579
  let body;
925
- return new __HttpRequest({
926
- protocol,
927
- hostname,
928
- port,
929
- method: "GET",
930
- headers,
931
- path: resolvedPath,
932
- query,
933
- body,
934
- });
580
+ b.m("GET").h(headers).q(query).b(body);
581
+ return b.build();
935
582
  };
936
583
  export const se_ListNotificationsCommand = async (input, context) => {
937
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
584
+ const b = rb(input, context);
938
585
  const headers = {};
939
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/notifications";
586
+ b.bp("/notifications");
940
587
  const query = map({
941
- nextToken: [, input.nextToken],
942
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
588
+ [_nT]: [, input[_nT]],
589
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
943
590
  });
944
591
  let body;
945
- return new __HttpRequest({
946
- protocol,
947
- hostname,
948
- port,
949
- method: "GET",
950
- headers,
951
- path: resolvedPath,
952
- query,
953
- body,
954
- });
592
+ b.m("GET").h(headers).q(query).b(body);
593
+ return b.build();
955
594
  };
956
595
  export const se_ListTagsForResourceCommand = async (input, context) => {
957
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
596
+ const b = rb(input, context);
958
597
  const headers = {};
959
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
960
- resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
598
+ b.bp("/tags/{resourceArn}");
599
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
961
600
  let body;
962
- return new __HttpRequest({
963
- protocol,
964
- hostname,
965
- port,
966
- method: "GET",
967
- headers,
968
- path: resolvedPath,
969
- body,
970
- });
601
+ b.m("GET").h(headers).b(body);
602
+ return b.build();
971
603
  };
972
604
  export const se_RegisterAccountCommand = async (input, context) => {
973
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
605
+ const b = rb(input, context);
974
606
  const headers = {
975
607
  "content-type": "application/json",
976
608
  };
977
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/account/registerAccount";
609
+ b.bp("/account/registerAccount");
978
610
  let body;
979
611
  body = JSON.stringify(take(input, {
980
612
  delegatedAdminAccount: [],
981
613
  kmsKey: [],
982
614
  }));
983
- return new __HttpRequest({
984
- protocol,
985
- hostname,
986
- port,
987
- method: "POST",
988
- headers,
989
- path: resolvedPath,
990
- body,
991
- });
615
+ b.m("POST").h(headers).b(body);
616
+ return b.build();
992
617
  };
993
618
  export const se_RegisterOrganizationAdminAccountCommand = async (input, context) => {
994
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
619
+ const b = rb(input, context);
995
620
  const headers = {
996
621
  "content-type": "application/json",
997
622
  };
998
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/account/registerOrganizationAdminAccount";
623
+ b.bp("/account/registerOrganizationAdminAccount");
999
624
  let body;
1000
625
  body = JSON.stringify(take(input, {
1001
626
  adminAccountId: [],
1002
627
  }));
1003
- return new __HttpRequest({
1004
- protocol,
1005
- hostname,
1006
- port,
1007
- method: "POST",
1008
- headers,
1009
- path: resolvedPath,
1010
- body,
1011
- });
628
+ b.m("POST").h(headers).b(body);
629
+ return b.build();
1012
630
  };
1013
631
  export const se_StartAssessmentFrameworkShareCommand = async (input, context) => {
1014
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
632
+ const b = rb(input, context);
1015
633
  const headers = {
1016
634
  "content-type": "application/json",
1017
635
  };
1018
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1019
- "/assessmentFrameworks/{frameworkId}/shareRequests";
1020
- resolvedPath = __resolvedPath(resolvedPath, input, "frameworkId", () => input.frameworkId, "{frameworkId}", false);
636
+ b.bp("/assessmentFrameworks/{frameworkId}/shareRequests");
637
+ b.p("frameworkId", () => input.frameworkId, "{frameworkId}", false);
1021
638
  let body;
1022
639
  body = JSON.stringify(take(input, {
1023
640
  comment: [],
1024
641
  destinationAccount: [],
1025
642
  destinationRegion: [],
1026
643
  }));
1027
- return new __HttpRequest({
1028
- protocol,
1029
- hostname,
1030
- port,
1031
- method: "POST",
1032
- headers,
1033
- path: resolvedPath,
1034
- body,
1035
- });
644
+ b.m("POST").h(headers).b(body);
645
+ return b.build();
1036
646
  };
1037
647
  export const se_TagResourceCommand = async (input, context) => {
1038
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
648
+ const b = rb(input, context);
1039
649
  const headers = {
1040
650
  "content-type": "application/json",
1041
651
  };
1042
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
1043
- resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
652
+ b.bp("/tags/{resourceArn}");
653
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
1044
654
  let body;
1045
655
  body = JSON.stringify(take(input, {
1046
656
  tags: (_) => _json(_),
1047
657
  }));
1048
- return new __HttpRequest({
1049
- protocol,
1050
- hostname,
1051
- port,
1052
- method: "POST",
1053
- headers,
1054
- path: resolvedPath,
1055
- body,
1056
- });
658
+ b.m("POST").h(headers).b(body);
659
+ return b.build();
1057
660
  };
1058
661
  export const se_UntagResourceCommand = async (input, context) => {
1059
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
662
+ const b = rb(input, context);
1060
663
  const headers = {};
1061
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
1062
- resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
664
+ b.bp("/tags/{resourceArn}");
665
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
1063
666
  const query = map({
1064
- tagKeys: [
667
+ [_tK]: [
1065
668
  __expectNonNull(input.tagKeys, `tagKeys`) != null,
1066
- () => (input.tagKeys || []).map((_entry) => _entry),
669
+ () => (input[_tK] || []).map((_entry) => _entry),
1067
670
  ],
1068
671
  });
1069
672
  let body;
1070
- return new __HttpRequest({
1071
- protocol,
1072
- hostname,
1073
- port,
1074
- method: "DELETE",
1075
- headers,
1076
- path: resolvedPath,
1077
- query,
1078
- body,
1079
- });
673
+ b.m("DELETE").h(headers).q(query).b(body);
674
+ return b.build();
1080
675
  };
1081
676
  export const se_UpdateAssessmentCommand = async (input, context) => {
1082
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
677
+ const b = rb(input, context);
1083
678
  const headers = {
1084
679
  "content-type": "application/json",
1085
680
  };
1086
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assessments/{assessmentId}";
1087
- resolvedPath = __resolvedPath(resolvedPath, input, "assessmentId", () => input.assessmentId, "{assessmentId}", false);
681
+ b.bp("/assessments/{assessmentId}");
682
+ b.p("assessmentId", () => input.assessmentId, "{assessmentId}", false);
1088
683
  let body;
1089
684
  body = JSON.stringify(take(input, {
1090
685
  assessmentDescription: [],
@@ -1093,72 +688,49 @@ export const se_UpdateAssessmentCommand = async (input, context) => {
1093
688
  roles: (_) => _json(_),
1094
689
  scope: (_) => _json(_),
1095
690
  }));
1096
- return new __HttpRequest({
1097
- protocol,
1098
- hostname,
1099
- port,
1100
- method: "PUT",
1101
- headers,
1102
- path: resolvedPath,
1103
- body,
1104
- });
691
+ b.m("PUT").h(headers).b(body);
692
+ return b.build();
1105
693
  };
1106
694
  export const se_UpdateAssessmentControlCommand = async (input, context) => {
1107
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
695
+ const b = rb(input, context);
1108
696
  const headers = {
1109
697
  "content-type": "application/json",
1110
698
  };
1111
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1112
- "/assessments/{assessmentId}/controlSets/{controlSetId}/controls/{controlId}";
1113
- resolvedPath = __resolvedPath(resolvedPath, input, "assessmentId", () => input.assessmentId, "{assessmentId}", false);
1114
- resolvedPath = __resolvedPath(resolvedPath, input, "controlSetId", () => input.controlSetId, "{controlSetId}", false);
1115
- resolvedPath = __resolvedPath(resolvedPath, input, "controlId", () => input.controlId, "{controlId}", false);
699
+ b.bp("/assessments/{assessmentId}/controlSets/{controlSetId}/controls/{controlId}");
700
+ b.p("assessmentId", () => input.assessmentId, "{assessmentId}", false);
701
+ b.p("controlSetId", () => input.controlSetId, "{controlSetId}", false);
702
+ b.p("controlId", () => input.controlId, "{controlId}", false);
1116
703
  let body;
1117
704
  body = JSON.stringify(take(input, {
1118
705
  commentBody: [],
1119
706
  controlStatus: [],
1120
707
  }));
1121
- return new __HttpRequest({
1122
- protocol,
1123
- hostname,
1124
- port,
1125
- method: "PUT",
1126
- headers,
1127
- path: resolvedPath,
1128
- body,
1129
- });
708
+ b.m("PUT").h(headers).b(body);
709
+ return b.build();
1130
710
  };
1131
711
  export const se_UpdateAssessmentControlSetStatusCommand = async (input, context) => {
1132
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
712
+ const b = rb(input, context);
1133
713
  const headers = {
1134
714
  "content-type": "application/json",
1135
715
  };
1136
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1137
- "/assessments/{assessmentId}/controlSets/{controlSetId}/status";
1138
- resolvedPath = __resolvedPath(resolvedPath, input, "assessmentId", () => input.assessmentId, "{assessmentId}", false);
1139
- resolvedPath = __resolvedPath(resolvedPath, input, "controlSetId", () => input.controlSetId, "{controlSetId}", false);
716
+ b.bp("/assessments/{assessmentId}/controlSets/{controlSetId}/status");
717
+ b.p("assessmentId", () => input.assessmentId, "{assessmentId}", false);
718
+ b.p("controlSetId", () => input.controlSetId, "{controlSetId}", false);
1140
719
  let body;
1141
720
  body = JSON.stringify(take(input, {
1142
721
  comment: [],
1143
722
  status: [],
1144
723
  }));
1145
- return new __HttpRequest({
1146
- protocol,
1147
- hostname,
1148
- port,
1149
- method: "PUT",
1150
- headers,
1151
- path: resolvedPath,
1152
- body,
1153
- });
724
+ b.m("PUT").h(headers).b(body);
725
+ return b.build();
1154
726
  };
1155
727
  export const se_UpdateAssessmentFrameworkCommand = async (input, context) => {
1156
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
728
+ const b = rb(input, context);
1157
729
  const headers = {
1158
730
  "content-type": "application/json",
1159
731
  };
1160
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assessmentFrameworks/{frameworkId}";
1161
- resolvedPath = __resolvedPath(resolvedPath, input, "frameworkId", () => input.frameworkId, "{frameworkId}", false);
732
+ b.bp("/assessmentFrameworks/{frameworkId}");
733
+ b.p("frameworkId", () => input.frameworkId, "{frameworkId}", false);
1162
734
  let body;
1163
735
  body = JSON.stringify(take(input, {
1164
736
  complianceType: [],
@@ -1166,67 +738,45 @@ export const se_UpdateAssessmentFrameworkCommand = async (input, context) => {
1166
738
  description: [],
1167
739
  name: [],
1168
740
  }));
1169
- return new __HttpRequest({
1170
- protocol,
1171
- hostname,
1172
- port,
1173
- method: "PUT",
1174
- headers,
1175
- path: resolvedPath,
1176
- body,
1177
- });
741
+ b.m("PUT").h(headers).b(body);
742
+ return b.build();
1178
743
  };
1179
744
  export const se_UpdateAssessmentFrameworkShareCommand = async (input, context) => {
1180
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
745
+ const b = rb(input, context);
1181
746
  const headers = {
1182
747
  "content-type": "application/json",
1183
748
  };
1184
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1185
- "/assessmentFrameworkShareRequests/{requestId}";
1186
- resolvedPath = __resolvedPath(resolvedPath, input, "requestId", () => input.requestId, "{requestId}", false);
749
+ b.bp("/assessmentFrameworkShareRequests/{requestId}");
750
+ b.p("requestId", () => input.requestId, "{requestId}", false);
1187
751
  let body;
1188
752
  body = JSON.stringify(take(input, {
1189
753
  action: [],
1190
754
  requestType: [],
1191
755
  }));
1192
- return new __HttpRequest({
1193
- protocol,
1194
- hostname,
1195
- port,
1196
- method: "PUT",
1197
- headers,
1198
- path: resolvedPath,
1199
- body,
1200
- });
756
+ b.m("PUT").h(headers).b(body);
757
+ return b.build();
1201
758
  };
1202
759
  export const se_UpdateAssessmentStatusCommand = async (input, context) => {
1203
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
760
+ const b = rb(input, context);
1204
761
  const headers = {
1205
762
  "content-type": "application/json",
1206
763
  };
1207
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assessments/{assessmentId}/status";
1208
- resolvedPath = __resolvedPath(resolvedPath, input, "assessmentId", () => input.assessmentId, "{assessmentId}", false);
764
+ b.bp("/assessments/{assessmentId}/status");
765
+ b.p("assessmentId", () => input.assessmentId, "{assessmentId}", false);
1209
766
  let body;
1210
767
  body = JSON.stringify(take(input, {
1211
768
  status: [],
1212
769
  }));
1213
- return new __HttpRequest({
1214
- protocol,
1215
- hostname,
1216
- port,
1217
- method: "PUT",
1218
- headers,
1219
- path: resolvedPath,
1220
- body,
1221
- });
770
+ b.m("PUT").h(headers).b(body);
771
+ return b.build();
1222
772
  };
1223
773
  export const se_UpdateControlCommand = async (input, context) => {
1224
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
774
+ const b = rb(input, context);
1225
775
  const headers = {
1226
776
  "content-type": "application/json",
1227
777
  };
1228
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/controls/{controlId}";
1229
- resolvedPath = __resolvedPath(resolvedPath, input, "controlId", () => input.controlId, "{controlId}", false);
778
+ b.bp("/controls/{controlId}");
779
+ b.p("controlId", () => input.controlId, "{controlId}", false);
1230
780
  let body;
1231
781
  body = JSON.stringify(take(input, {
1232
782
  actionPlanInstructions: [],
@@ -1236,22 +786,15 @@ export const se_UpdateControlCommand = async (input, context) => {
1236
786
  name: [],
1237
787
  testingInformation: [],
1238
788
  }));
1239
- return new __HttpRequest({
1240
- protocol,
1241
- hostname,
1242
- port,
1243
- method: "PUT",
1244
- headers,
1245
- path: resolvedPath,
1246
- body,
1247
- });
789
+ b.m("PUT").h(headers).b(body);
790
+ return b.build();
1248
791
  };
1249
792
  export const se_UpdateSettingsCommand = async (input, context) => {
1250
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
793
+ const b = rb(input, context);
1251
794
  const headers = {
1252
795
  "content-type": "application/json",
1253
796
  };
1254
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/settings";
797
+ b.bp("/settings");
1255
798
  let body;
1256
799
  body = JSON.stringify(take(input, {
1257
800
  defaultAssessmentReportsDestination: (_) => _json(_),
@@ -1262,35 +805,21 @@ export const se_UpdateSettingsCommand = async (input, context) => {
1262
805
  kmsKey: [],
1263
806
  snsTopic: [],
1264
807
  }));
1265
- return new __HttpRequest({
1266
- protocol,
1267
- hostname,
1268
- port,
1269
- method: "PUT",
1270
- headers,
1271
- path: resolvedPath,
1272
- body,
1273
- });
808
+ b.m("PUT").h(headers).b(body);
809
+ return b.build();
1274
810
  };
1275
811
  export const se_ValidateAssessmentReportIntegrityCommand = async (input, context) => {
1276
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
812
+ const b = rb(input, context);
1277
813
  const headers = {
1278
814
  "content-type": "application/json",
1279
815
  };
1280
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assessmentReports/integrity";
816
+ b.bp("/assessmentReports/integrity");
1281
817
  let body;
1282
818
  body = JSON.stringify(take(input, {
1283
819
  s3RelativePath: [],
1284
820
  }));
1285
- return new __HttpRequest({
1286
- protocol,
1287
- hostname,
1288
- port,
1289
- method: "POST",
1290
- headers,
1291
- path: resolvedPath,
1292
- body,
1293
- });
821
+ b.m("POST").h(headers).b(body);
822
+ return b.build();
1294
823
  };
1295
824
  export const de_AssociateAssessmentReportEvidenceFolderCommand = async (output, context) => {
1296
825
  if (output.statusCode !== 200 && output.statusCode >= 300) {
@@ -4416,6 +3945,19 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
4416
3945
  value !== "" &&
4417
3946
  (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
4418
3947
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
3948
+ const _aI = "assessmentId";
3949
+ const _cDI = "controlDomainId";
3950
+ const _cI = "controlId";
3951
+ const _cSI = "controlSetId";
3952
+ const _cT = "controlType";
3953
+ const _fN = "fileName";
3954
+ const _fT = "frameworkType";
3955
+ const _mR = "maxResults";
3956
+ const _nT = "nextToken";
3957
+ const _rT = "requestType";
3958
+ const _s = "status";
3959
+ const _so = "source";
3960
+ const _tK = "tagKeys";
4419
3961
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
4420
3962
  if (encoded.length) {
4421
3963
  return JSON.parse(encoded);