@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.
- package/dist-cjs/pagination/GetChangeLogsPaginator.js +2 -24
- package/dist-cjs/pagination/GetDelegationsPaginator.js +2 -24
- package/dist-cjs/pagination/GetEvidenceByEvidenceFolderPaginator.js +2 -24
- package/dist-cjs/pagination/GetEvidenceFoldersByAssessmentControlPaginator.js +2 -24
- package/dist-cjs/pagination/GetEvidenceFoldersByAssessmentPaginator.js +2 -24
- package/dist-cjs/pagination/ListAssessmentControlInsightsByControlDomainPaginator.js +2 -24
- package/dist-cjs/pagination/ListAssessmentFrameworkShareRequestsPaginator.js +2 -24
- package/dist-cjs/pagination/ListAssessmentFrameworksPaginator.js +2 -24
- package/dist-cjs/pagination/ListAssessmentReportsPaginator.js +2 -24
- package/dist-cjs/pagination/ListAssessmentsPaginator.js +2 -24
- package/dist-cjs/pagination/ListControlDomainInsightsByAssessmentPaginator.js +2 -24
- package/dist-cjs/pagination/ListControlDomainInsightsPaginator.js +2 -24
- package/dist-cjs/pagination/ListControlInsightsByControlDomainPaginator.js +2 -24
- package/dist-cjs/pagination/ListControlsPaginator.js +2 -24
- package/dist-cjs/pagination/ListKeywordsForDataSourcePaginator.js +2 -24
- package/dist-cjs/pagination/ListNotificationsPaginator.js +2 -24
- package/dist-cjs/protocols/Aws_restJson1.js +361 -819
- package/dist-es/pagination/GetChangeLogsPaginator.js +2 -23
- package/dist-es/pagination/GetDelegationsPaginator.js +2 -23
- package/dist-es/pagination/GetEvidenceByEvidenceFolderPaginator.js +2 -23
- package/dist-es/pagination/GetEvidenceFoldersByAssessmentControlPaginator.js +2 -23
- package/dist-es/pagination/GetEvidenceFoldersByAssessmentPaginator.js +2 -23
- package/dist-es/pagination/ListAssessmentControlInsightsByControlDomainPaginator.js +2 -23
- package/dist-es/pagination/ListAssessmentFrameworkShareRequestsPaginator.js +2 -23
- package/dist-es/pagination/ListAssessmentFrameworksPaginator.js +2 -23
- package/dist-es/pagination/ListAssessmentReportsPaginator.js +2 -23
- package/dist-es/pagination/ListAssessmentsPaginator.js +2 -23
- package/dist-es/pagination/ListControlDomainInsightsByAssessmentPaginator.js +2 -23
- package/dist-es/pagination/ListControlDomainInsightsPaginator.js +2 -23
- package/dist-es/pagination/ListControlInsightsByControlDomainPaginator.js +2 -23
- package/dist-es/pagination/ListControlsPaginator.js +2 -23
- package/dist-es/pagination/ListKeywordsForDataSourcePaginator.js +2 -23
- package/dist-es/pagination/ListNotificationsPaginator.js +2 -23
- package/dist-es/protocols/Aws_restJson1.js +362 -820
- package/dist-types/pagination/GetChangeLogsPaginator.d.ts +1 -1
- package/dist-types/pagination/GetDelegationsPaginator.d.ts +1 -1
- package/dist-types/pagination/GetEvidenceByEvidenceFolderPaginator.d.ts +1 -1
- package/dist-types/pagination/GetEvidenceFoldersByAssessmentControlPaginator.d.ts +1 -1
- package/dist-types/pagination/GetEvidenceFoldersByAssessmentPaginator.d.ts +1 -1
- package/dist-types/pagination/ListAssessmentControlInsightsByControlDomainPaginator.d.ts +1 -1
- package/dist-types/pagination/ListAssessmentFrameworkShareRequestsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListAssessmentFrameworksPaginator.d.ts +1 -1
- package/dist-types/pagination/ListAssessmentReportsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListAssessmentsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListControlDomainInsightsByAssessmentPaginator.d.ts +1 -1
- package/dist-types/pagination/ListControlDomainInsightsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListControlInsightsByControlDomainPaginator.d.ts +1 -1
- package/dist-types/pagination/ListControlsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListKeywordsForDataSourcePaginator.d.ts +1 -1
- package/dist-types/pagination/ListNotificationsPaginator.d.ts +1 -1
- package/dist-types/ts3.4/pagination/GetChangeLogsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/GetDelegationsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/GetEvidenceByEvidenceFolderPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/GetEvidenceFoldersByAssessmentControlPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/GetEvidenceFoldersByAssessmentPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListAssessmentControlInsightsByControlDomainPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListAssessmentFrameworkShareRequestsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListAssessmentFrameworksPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListAssessmentReportsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListAssessmentsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListControlDomainInsightsByAssessmentPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListControlDomainInsightsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListControlInsightsByControlDomainPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListControlsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListKeywordsForDataSourcePaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListNotificationsPaginator.d.ts +3 -3
- package/package.json +7 -6
|
@@ -1,147 +1,101 @@
|
|
|
1
|
-
import {
|
|
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,
|
|
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
|
|
6
|
+
const b = rb(input, context);
|
|
7
7
|
const headers = {
|
|
8
8
|
"content-type": "application/json",
|
|
9
9
|
};
|
|
10
|
-
|
|
11
|
-
|
|
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
|
-
|
|
18
|
-
|
|
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
|
|
20
|
+
const b = rb(input, context);
|
|
29
21
|
const headers = {
|
|
30
22
|
"content-type": "application/json",
|
|
31
23
|
};
|
|
32
|
-
|
|
33
|
-
|
|
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
|
-
|
|
41
|
-
|
|
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
|
|
35
|
+
const b = rb(input, context);
|
|
52
36
|
const headers = {
|
|
53
37
|
"content-type": "application/json",
|
|
54
38
|
};
|
|
55
|
-
|
|
56
|
-
|
|
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
|
-
|
|
62
|
-
|
|
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
|
|
49
|
+
const b = rb(input, context);
|
|
73
50
|
const headers = {
|
|
74
51
|
"content-type": "application/json",
|
|
75
52
|
};
|
|
76
|
-
|
|
77
|
-
|
|
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
|
-
|
|
83
|
-
|
|
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
|
|
63
|
+
const b = rb(input, context);
|
|
94
64
|
const headers = {
|
|
95
65
|
"content-type": "application/json",
|
|
96
66
|
};
|
|
97
|
-
|
|
98
|
-
|
|
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
|
-
|
|
106
|
-
|
|
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
|
|
78
|
+
const b = rb(input, context);
|
|
117
79
|
const headers = {
|
|
118
80
|
"content-type": "application/json",
|
|
119
81
|
};
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
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
|
-
|
|
130
|
-
|
|
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
|
|
94
|
+
const b = rb(input, context);
|
|
141
95
|
const headers = {
|
|
142
96
|
"content-type": "application/json",
|
|
143
97
|
};
|
|
144
|
-
|
|
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
|
-
|
|
156
|
-
|
|
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
|
|
113
|
+
const b = rb(input, context);
|
|
167
114
|
const headers = {
|
|
168
115
|
"content-type": "application/json",
|
|
169
116
|
};
|
|
170
|
-
|
|
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
|
-
|
|
180
|
-
|
|
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
|
|
130
|
+
const b = rb(input, context);
|
|
191
131
|
const headers = {
|
|
192
132
|
"content-type": "application/json",
|
|
193
133
|
};
|
|
194
|
-
|
|
195
|
-
|
|
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
|
-
|
|
203
|
-
|
|
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
|
|
146
|
+
const b = rb(input, context);
|
|
214
147
|
const headers = {
|
|
215
148
|
"content-type": "application/json",
|
|
216
149
|
};
|
|
217
|
-
|
|
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
|
-
|
|
229
|
-
|
|
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
|
|
165
|
+
const b = rb(input, context);
|
|
240
166
|
const headers = {};
|
|
241
|
-
|
|
242
|
-
|
|
167
|
+
b.bp("/assessments/{assessmentId}");
|
|
168
|
+
b.p("assessmentId", () => input.assessmentId, "{assessmentId}", false);
|
|
243
169
|
let body;
|
|
244
|
-
|
|
245
|
-
|
|
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
|
|
174
|
+
const b = rb(input, context);
|
|
256
175
|
const headers = {};
|
|
257
|
-
|
|
258
|
-
|
|
176
|
+
b.bp("/assessmentFrameworks/{frameworkId}");
|
|
177
|
+
b.p("frameworkId", () => input.frameworkId, "{frameworkId}", false);
|
|
259
178
|
let body;
|
|
260
|
-
|
|
261
|
-
|
|
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
|
|
183
|
+
const b = rb(input, context);
|
|
272
184
|
const headers = {};
|
|
273
|
-
|
|
274
|
-
|
|
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
|
-
|
|
188
|
+
[_rT]: [, __expectNonNull(input[_rT], `requestType`)],
|
|
278
189
|
});
|
|
279
190
|
let body;
|
|
280
|
-
|
|
281
|
-
|
|
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
|
|
195
|
+
const b = rb(input, context);
|
|
293
196
|
const headers = {};
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
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
|
-
|
|
300
|
-
|
|
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
|
|
205
|
+
const b = rb(input, context);
|
|
311
206
|
const headers = {};
|
|
312
|
-
|
|
313
|
-
|
|
207
|
+
b.bp("/controls/{controlId}");
|
|
208
|
+
b.p("controlId", () => input.controlId, "{controlId}", false);
|
|
314
209
|
let body;
|
|
315
|
-
|
|
316
|
-
|
|
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
|
|
214
|
+
const b = rb(input, context);
|
|
327
215
|
const headers = {
|
|
328
216
|
"content-type": "application/json",
|
|
329
217
|
};
|
|
330
|
-
|
|
218
|
+
b.bp("/account/deregisterAccount");
|
|
331
219
|
let body;
|
|
332
220
|
body = "";
|
|
333
|
-
|
|
334
|
-
|
|
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
|
|
225
|
+
const b = rb(input, context);
|
|
345
226
|
const headers = {
|
|
346
227
|
"content-type": "application/json",
|
|
347
228
|
};
|
|
348
|
-
|
|
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
|
-
|
|
355
|
-
|
|
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
|
|
238
|
+
const b = rb(input, context);
|
|
366
239
|
const headers = {
|
|
367
240
|
"content-type": "application/json",
|
|
368
241
|
};
|
|
369
|
-
|
|
370
|
-
|
|
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
|
-
|
|
377
|
-
|
|
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
|
|
252
|
+
const b = rb(input, context);
|
|
388
253
|
const headers = {
|
|
389
254
|
"content-type": "application/json",
|
|
390
255
|
};
|
|
391
|
-
|
|
256
|
+
b.bp("/account/status");
|
|
392
257
|
let body;
|
|
393
258
|
body = "";
|
|
394
|
-
|
|
395
|
-
|
|
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
|
|
263
|
+
const b = rb(input, context);
|
|
406
264
|
const headers = {};
|
|
407
|
-
|
|
408
|
-
|
|
265
|
+
b.bp("/assessments/{assessmentId}");
|
|
266
|
+
b.p("assessmentId", () => input.assessmentId, "{assessmentId}", false);
|
|
409
267
|
let body;
|
|
410
|
-
|
|
411
|
-
|
|
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
|
|
272
|
+
const b = rb(input, context);
|
|
422
273
|
const headers = {};
|
|
423
|
-
|
|
424
|
-
|
|
274
|
+
b.bp("/assessmentFrameworks/{frameworkId}");
|
|
275
|
+
b.p("frameworkId", () => input.frameworkId, "{frameworkId}", false);
|
|
425
276
|
let body;
|
|
426
|
-
|
|
427
|
-
|
|
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
|
|
281
|
+
const b = rb(input, context);
|
|
438
282
|
const headers = {};
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
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
|
-
|
|
445
|
-
|
|
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
|
|
291
|
+
const b = rb(input, context);
|
|
456
292
|
const headers = {};
|
|
457
|
-
|
|
458
|
-
|
|
293
|
+
b.bp("/assessments/{assessmentId}/changelogs");
|
|
294
|
+
b.p("assessmentId", () => input.assessmentId, "{assessmentId}", false);
|
|
459
295
|
const query = map({
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
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
|
-
|
|
467
|
-
|
|
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
|
|
306
|
+
const b = rb(input, context);
|
|
479
307
|
const headers = {};
|
|
480
|
-
|
|
481
|
-
|
|
308
|
+
b.bp("/controls/{controlId}");
|
|
309
|
+
b.p("controlId", () => input.controlId, "{controlId}", false);
|
|
482
310
|
let body;
|
|
483
|
-
|
|
484
|
-
|
|
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
|
|
315
|
+
const b = rb(input, context);
|
|
495
316
|
const headers = {};
|
|
496
|
-
|
|
317
|
+
b.bp("/delegations");
|
|
497
318
|
const query = map({
|
|
498
|
-
|
|
499
|
-
|
|
319
|
+
[_nT]: [, input[_nT]],
|
|
320
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
500
321
|
});
|
|
501
322
|
let body;
|
|
502
|
-
|
|
503
|
-
|
|
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
|
|
327
|
+
const b = rb(input, context);
|
|
515
328
|
const headers = {};
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
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
|
-
|
|
524
|
-
|
|
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
|
|
339
|
+
const b = rb(input, context);
|
|
535
340
|
const headers = {};
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
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
|
-
|
|
543
|
-
|
|
346
|
+
[_nT]: [, input[_nT]],
|
|
347
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
544
348
|
});
|
|
545
349
|
let body;
|
|
546
|
-
|
|
547
|
-
|
|
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
|
|
354
|
+
const b = rb(input, context);
|
|
559
355
|
const headers = {};
|
|
560
|
-
|
|
356
|
+
b.bp("/evidenceFileUploadUrl");
|
|
561
357
|
const query = map({
|
|
562
|
-
|
|
358
|
+
[_fN]: [, __expectNonNull(input[_fN], `fileName`)],
|
|
563
359
|
});
|
|
564
360
|
let body;
|
|
565
|
-
|
|
566
|
-
|
|
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
|
|
365
|
+
const b = rb(input, context);
|
|
578
366
|
const headers = {};
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
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
|
-
|
|
586
|
-
|
|
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
|
|
376
|
+
const b = rb(input, context);
|
|
597
377
|
const headers = {};
|
|
598
|
-
|
|
599
|
-
|
|
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
|
-
|
|
603
|
-
|
|
381
|
+
[_nT]: [, input[_nT]],
|
|
382
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
604
383
|
});
|
|
605
384
|
let body;
|
|
606
|
-
|
|
607
|
-
|
|
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
|
|
389
|
+
const b = rb(input, context);
|
|
619
390
|
const headers = {};
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
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
|
-
|
|
627
|
-
|
|
396
|
+
[_nT]: [, input[_nT]],
|
|
397
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
628
398
|
});
|
|
629
399
|
let body;
|
|
630
|
-
|
|
631
|
-
|
|
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
|
|
404
|
+
const b = rb(input, context);
|
|
643
405
|
const headers = {
|
|
644
406
|
"content-type": "application/json",
|
|
645
407
|
};
|
|
646
|
-
|
|
408
|
+
b.bp("/insights");
|
|
647
409
|
let body;
|
|
648
410
|
body = "";
|
|
649
|
-
|
|
650
|
-
|
|
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
|
|
415
|
+
const b = rb(input, context);
|
|
661
416
|
const headers = {};
|
|
662
|
-
|
|
663
|
-
|
|
417
|
+
b.bp("/insights/assessments/{assessmentId}");
|
|
418
|
+
b.p("assessmentId", () => input.assessmentId, "{assessmentId}", false);
|
|
664
419
|
let body;
|
|
665
|
-
|
|
666
|
-
|
|
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
|
|
424
|
+
const b = rb(input, context);
|
|
677
425
|
const headers = {
|
|
678
426
|
"content-type": "application/json",
|
|
679
427
|
};
|
|
680
|
-
|
|
428
|
+
b.bp("/account/organizationAdminAccount");
|
|
681
429
|
let body;
|
|
682
430
|
body = "";
|
|
683
|
-
|
|
684
|
-
|
|
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
|
|
435
|
+
const b = rb(input, context);
|
|
695
436
|
const headers = {
|
|
696
437
|
"content-type": "application/json",
|
|
697
438
|
};
|
|
698
|
-
|
|
439
|
+
b.bp("/services");
|
|
699
440
|
let body;
|
|
700
441
|
body = "";
|
|
701
|
-
|
|
702
|
-
|
|
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
|
|
446
|
+
const b = rb(input, context);
|
|
713
447
|
const headers = {};
|
|
714
|
-
|
|
715
|
-
|
|
448
|
+
b.bp("/settings/{attribute}");
|
|
449
|
+
b.p("attribute", () => input.attribute, "{attribute}", false);
|
|
716
450
|
let body;
|
|
717
|
-
|
|
718
|
-
|
|
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
|
|
455
|
+
const b = rb(input, context);
|
|
729
456
|
const headers = {};
|
|
730
|
-
|
|
457
|
+
b.bp("/insights/controls-by-assessment");
|
|
731
458
|
const query = map({
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
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
|
-
|
|
739
|
-
|
|
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
|
|
469
|
+
const b = rb(input, context);
|
|
751
470
|
const headers = {};
|
|
752
|
-
|
|
471
|
+
b.bp("/assessmentFrameworks");
|
|
753
472
|
const query = map({
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
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
|
-
|
|
760
|
-
|
|
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
|
|
482
|
+
const b = rb(input, context);
|
|
772
483
|
const headers = {};
|
|
773
|
-
|
|
484
|
+
b.bp("/assessmentFrameworkShareRequests");
|
|
774
485
|
const query = map({
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
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
|
-
|
|
781
|
-
|
|
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
|
|
495
|
+
const b = rb(input, context);
|
|
793
496
|
const headers = {};
|
|
794
|
-
|
|
497
|
+
b.bp("/assessmentReports");
|
|
795
498
|
const query = map({
|
|
796
|
-
|
|
797
|
-
|
|
499
|
+
[_nT]: [, input[_nT]],
|
|
500
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
798
501
|
});
|
|
799
502
|
let body;
|
|
800
|
-
|
|
801
|
-
|
|
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
|
|
507
|
+
const b = rb(input, context);
|
|
813
508
|
const headers = {};
|
|
814
|
-
|
|
509
|
+
b.bp("/assessments");
|
|
815
510
|
const query = map({
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
511
|
+
[_s]: [, input[_s]],
|
|
512
|
+
[_nT]: [, input[_nT]],
|
|
513
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
819
514
|
});
|
|
820
515
|
let body;
|
|
821
|
-
|
|
822
|
-
|
|
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
|
|
520
|
+
const b = rb(input, context);
|
|
834
521
|
const headers = {};
|
|
835
|
-
|
|
522
|
+
b.bp("/insights/control-domains");
|
|
836
523
|
const query = map({
|
|
837
|
-
|
|
838
|
-
|
|
524
|
+
[_nT]: [, input[_nT]],
|
|
525
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
839
526
|
});
|
|
840
527
|
let body;
|
|
841
|
-
|
|
842
|
-
|
|
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
|
|
532
|
+
const b = rb(input, context);
|
|
854
533
|
const headers = {};
|
|
855
|
-
|
|
534
|
+
b.bp("/insights/control-domains-by-assessment");
|
|
856
535
|
const query = map({
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
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
|
-
|
|
863
|
-
|
|
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
|
|
545
|
+
const b = rb(input, context);
|
|
875
546
|
const headers = {};
|
|
876
|
-
|
|
547
|
+
b.bp("/insights/controls");
|
|
877
548
|
const query = map({
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
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
|
-
|
|
884
|
-
|
|
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
|
|
558
|
+
const b = rb(input, context);
|
|
896
559
|
const headers = {};
|
|
897
|
-
|
|
560
|
+
b.bp("/controls");
|
|
898
561
|
const query = map({
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
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
|
-
|
|
905
|
-
|
|
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
|
|
571
|
+
const b = rb(input, context);
|
|
917
572
|
const headers = {};
|
|
918
|
-
|
|
573
|
+
b.bp("/dataSourceKeywords");
|
|
919
574
|
const query = map({
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
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
|
-
|
|
926
|
-
|
|
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
|
|
584
|
+
const b = rb(input, context);
|
|
938
585
|
const headers = {};
|
|
939
|
-
|
|
586
|
+
b.bp("/notifications");
|
|
940
587
|
const query = map({
|
|
941
|
-
|
|
942
|
-
|
|
588
|
+
[_nT]: [, input[_nT]],
|
|
589
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
943
590
|
});
|
|
944
591
|
let body;
|
|
945
|
-
|
|
946
|
-
|
|
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
|
|
596
|
+
const b = rb(input, context);
|
|
958
597
|
const headers = {};
|
|
959
|
-
|
|
960
|
-
|
|
598
|
+
b.bp("/tags/{resourceArn}");
|
|
599
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
961
600
|
let body;
|
|
962
|
-
|
|
963
|
-
|
|
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
|
|
605
|
+
const b = rb(input, context);
|
|
974
606
|
const headers = {
|
|
975
607
|
"content-type": "application/json",
|
|
976
608
|
};
|
|
977
|
-
|
|
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
|
-
|
|
984
|
-
|
|
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
|
|
619
|
+
const b = rb(input, context);
|
|
995
620
|
const headers = {
|
|
996
621
|
"content-type": "application/json",
|
|
997
622
|
};
|
|
998
|
-
|
|
623
|
+
b.bp("/account/registerOrganizationAdminAccount");
|
|
999
624
|
let body;
|
|
1000
625
|
body = JSON.stringify(take(input, {
|
|
1001
626
|
adminAccountId: [],
|
|
1002
627
|
}));
|
|
1003
|
-
|
|
1004
|
-
|
|
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
|
|
632
|
+
const b = rb(input, context);
|
|
1015
633
|
const headers = {
|
|
1016
634
|
"content-type": "application/json",
|
|
1017
635
|
};
|
|
1018
|
-
|
|
1019
|
-
|
|
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
|
-
|
|
1028
|
-
|
|
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
|
|
648
|
+
const b = rb(input, context);
|
|
1039
649
|
const headers = {
|
|
1040
650
|
"content-type": "application/json",
|
|
1041
651
|
};
|
|
1042
|
-
|
|
1043
|
-
|
|
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
|
-
|
|
1049
|
-
|
|
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
|
|
662
|
+
const b = rb(input, context);
|
|
1060
663
|
const headers = {};
|
|
1061
|
-
|
|
1062
|
-
|
|
664
|
+
b.bp("/tags/{resourceArn}");
|
|
665
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
1063
666
|
const query = map({
|
|
1064
|
-
|
|
667
|
+
[_tK]: [
|
|
1065
668
|
__expectNonNull(input.tagKeys, `tagKeys`) != null,
|
|
1066
|
-
() => (input
|
|
669
|
+
() => (input[_tK] || []).map((_entry) => _entry),
|
|
1067
670
|
],
|
|
1068
671
|
});
|
|
1069
672
|
let body;
|
|
1070
|
-
|
|
1071
|
-
|
|
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
|
|
677
|
+
const b = rb(input, context);
|
|
1083
678
|
const headers = {
|
|
1084
679
|
"content-type": "application/json",
|
|
1085
680
|
};
|
|
1086
|
-
|
|
1087
|
-
|
|
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
|
-
|
|
1097
|
-
|
|
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
|
|
695
|
+
const b = rb(input, context);
|
|
1108
696
|
const headers = {
|
|
1109
697
|
"content-type": "application/json",
|
|
1110
698
|
};
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
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
|
-
|
|
1122
|
-
|
|
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
|
|
712
|
+
const b = rb(input, context);
|
|
1133
713
|
const headers = {
|
|
1134
714
|
"content-type": "application/json",
|
|
1135
715
|
};
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
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
|
-
|
|
1146
|
-
|
|
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
|
|
728
|
+
const b = rb(input, context);
|
|
1157
729
|
const headers = {
|
|
1158
730
|
"content-type": "application/json",
|
|
1159
731
|
};
|
|
1160
|
-
|
|
1161
|
-
|
|
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
|
-
|
|
1170
|
-
|
|
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
|
|
745
|
+
const b = rb(input, context);
|
|
1181
746
|
const headers = {
|
|
1182
747
|
"content-type": "application/json",
|
|
1183
748
|
};
|
|
1184
|
-
|
|
1185
|
-
|
|
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
|
-
|
|
1193
|
-
|
|
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
|
|
760
|
+
const b = rb(input, context);
|
|
1204
761
|
const headers = {
|
|
1205
762
|
"content-type": "application/json",
|
|
1206
763
|
};
|
|
1207
|
-
|
|
1208
|
-
|
|
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
|
-
|
|
1214
|
-
|
|
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
|
|
774
|
+
const b = rb(input, context);
|
|
1225
775
|
const headers = {
|
|
1226
776
|
"content-type": "application/json",
|
|
1227
777
|
};
|
|
1228
|
-
|
|
1229
|
-
|
|
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
|
-
|
|
1240
|
-
|
|
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
|
|
793
|
+
const b = rb(input, context);
|
|
1251
794
|
const headers = {
|
|
1252
795
|
"content-type": "application/json",
|
|
1253
796
|
};
|
|
1254
|
-
|
|
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
|
-
|
|
1266
|
-
|
|
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
|
|
812
|
+
const b = rb(input, context);
|
|
1277
813
|
const headers = {
|
|
1278
814
|
"content-type": "application/json",
|
|
1279
815
|
};
|
|
1280
|
-
|
|
816
|
+
b.bp("/assessmentReports/integrity");
|
|
1281
817
|
let body;
|
|
1282
818
|
body = JSON.stringify(take(input, {
|
|
1283
819
|
s3RelativePath: [],
|
|
1284
820
|
}));
|
|
1285
|
-
|
|
1286
|
-
|
|
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);
|