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