@aws-sdk/client-auditmanager 3.200.0 → 3.201.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/CHANGELOG.md +11 -0
- package/dist-cjs/endpoint/EndpointParameters.js +2 -3
- package/dist-cjs/protocols/Aws_restJson1.js +68 -72
- package/dist-cjs/runtimeConfig.browser.js +16 -16
- package/dist-cjs/runtimeConfig.js +20 -19
- package/dist-cjs/runtimeConfig.native.js +1 -2
- package/dist-cjs/runtimeConfig.shared.js +8 -11
- package/package.json +33 -33
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.201.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.200.0...v3.201.0) (2022-11-01)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* end support for Node.js 12.x ([#4123](https://github.com/aws/aws-sdk-js-v3/issues/4123)) ([83f913e](https://github.com/aws/aws-sdk-js-v3/commit/83f913ec2ac3878d8726c6964f585550dc5caf3e))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [3.200.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.199.0...v3.200.0) (2022-10-31)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @aws-sdk/client-auditmanager
|
|
@@ -2,11 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.resolveClientEndpointParameters = void 0;
|
|
4
4
|
const resolveClientEndpointParameters = (options) => {
|
|
5
|
-
var _a, _b;
|
|
6
5
|
return {
|
|
7
6
|
...options,
|
|
8
|
-
useDualstackEndpoint:
|
|
9
|
-
useFipsEndpoint:
|
|
7
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
8
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
10
9
|
defaultSigningName: "auditmanager",
|
|
11
10
|
};
|
|
12
11
|
};
|
|
@@ -12,7 +12,7 @@ const serializeAws_restJson1AssociateAssessmentReportEvidenceFolderCommand = asy
|
|
|
12
12
|
const headers = {
|
|
13
13
|
"content-type": "application/json",
|
|
14
14
|
};
|
|
15
|
-
let resolvedPath = `${
|
|
15
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
16
16
|
"/assessments/{assessmentId}/associateToAssessmentReport";
|
|
17
17
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assessmentId", () => input.assessmentId, "{assessmentId}", false);
|
|
18
18
|
let body;
|
|
@@ -35,7 +35,7 @@ const serializeAws_restJson1BatchAssociateAssessmentReportEvidenceCommand = asyn
|
|
|
35
35
|
const headers = {
|
|
36
36
|
"content-type": "application/json",
|
|
37
37
|
};
|
|
38
|
-
let resolvedPath = `${
|
|
38
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
39
39
|
"/assessments/{assessmentId}/batchAssociateToAssessmentReport";
|
|
40
40
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assessmentId", () => input.assessmentId, "{assessmentId}", false);
|
|
41
41
|
let body;
|
|
@@ -59,7 +59,7 @@ const serializeAws_restJson1BatchCreateDelegationByAssessmentCommand = async (in
|
|
|
59
59
|
const headers = {
|
|
60
60
|
"content-type": "application/json",
|
|
61
61
|
};
|
|
62
|
-
let resolvedPath = `${
|
|
62
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assessments/{assessmentId}/delegations";
|
|
63
63
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assessmentId", () => input.assessmentId, "{assessmentId}", false);
|
|
64
64
|
let body;
|
|
65
65
|
body = JSON.stringify({
|
|
@@ -83,7 +83,7 @@ const serializeAws_restJson1BatchDeleteDelegationByAssessmentCommand = async (in
|
|
|
83
83
|
const headers = {
|
|
84
84
|
"content-type": "application/json",
|
|
85
85
|
};
|
|
86
|
-
let resolvedPath = `${
|
|
86
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assessments/{assessmentId}/delegations";
|
|
87
87
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assessmentId", () => input.assessmentId, "{assessmentId}", false);
|
|
88
88
|
let body;
|
|
89
89
|
body = JSON.stringify({
|
|
@@ -107,7 +107,7 @@ const serializeAws_restJson1BatchDisassociateAssessmentReportEvidenceCommand = a
|
|
|
107
107
|
const headers = {
|
|
108
108
|
"content-type": "application/json",
|
|
109
109
|
};
|
|
110
|
-
let resolvedPath = `${
|
|
110
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
111
111
|
"/assessments/{assessmentId}/batchDisassociateFromAssessmentReport";
|
|
112
112
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assessmentId", () => input.assessmentId, "{assessmentId}", false);
|
|
113
113
|
let body;
|
|
@@ -131,7 +131,7 @@ const serializeAws_restJson1BatchImportEvidenceToAssessmentControlCommand = asyn
|
|
|
131
131
|
const headers = {
|
|
132
132
|
"content-type": "application/json",
|
|
133
133
|
};
|
|
134
|
-
let resolvedPath = `${
|
|
134
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
135
135
|
"/assessments/{assessmentId}/controlSets/{controlSetId}/controls/{controlId}/evidence";
|
|
136
136
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assessmentId", () => input.assessmentId, "{assessmentId}", false);
|
|
137
137
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "controlSetId", () => input.controlSetId, "{controlSetId}", false);
|
|
@@ -158,7 +158,7 @@ const serializeAws_restJson1CreateAssessmentCommand = async (input, context) =>
|
|
|
158
158
|
const headers = {
|
|
159
159
|
"content-type": "application/json",
|
|
160
160
|
};
|
|
161
|
-
const resolvedPath = `${
|
|
161
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assessments";
|
|
162
162
|
let body;
|
|
163
163
|
body = JSON.stringify({
|
|
164
164
|
...(input.assessmentReportsDestination != null && {
|
|
@@ -187,7 +187,7 @@ const serializeAws_restJson1CreateAssessmentFrameworkCommand = async (input, con
|
|
|
187
187
|
const headers = {
|
|
188
188
|
"content-type": "application/json",
|
|
189
189
|
};
|
|
190
|
-
const resolvedPath = `${
|
|
190
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assessmentFrameworks";
|
|
191
191
|
let body;
|
|
192
192
|
body = JSON.stringify({
|
|
193
193
|
...(input.complianceType != null && { complianceType: input.complianceType }),
|
|
@@ -214,7 +214,7 @@ const serializeAws_restJson1CreateAssessmentReportCommand = async (input, contex
|
|
|
214
214
|
const headers = {
|
|
215
215
|
"content-type": "application/json",
|
|
216
216
|
};
|
|
217
|
-
let resolvedPath = `${
|
|
217
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assessments/{assessmentId}/reports";
|
|
218
218
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assessmentId", () => input.assessmentId, "{assessmentId}", false);
|
|
219
219
|
let body;
|
|
220
220
|
body = JSON.stringify({
|
|
@@ -237,7 +237,7 @@ const serializeAws_restJson1CreateControlCommand = async (input, context) => {
|
|
|
237
237
|
const headers = {
|
|
238
238
|
"content-type": "application/json",
|
|
239
239
|
};
|
|
240
|
-
const resolvedPath = `${
|
|
240
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/controls";
|
|
241
241
|
let body;
|
|
242
242
|
body = JSON.stringify({
|
|
243
243
|
...(input.actionPlanInstructions != null && { actionPlanInstructions: input.actionPlanInstructions }),
|
|
@@ -264,7 +264,7 @@ exports.serializeAws_restJson1CreateControlCommand = serializeAws_restJson1Creat
|
|
|
264
264
|
const serializeAws_restJson1DeleteAssessmentCommand = async (input, context) => {
|
|
265
265
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
266
266
|
const headers = {};
|
|
267
|
-
let resolvedPath = `${
|
|
267
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assessments/{assessmentId}";
|
|
268
268
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assessmentId", () => input.assessmentId, "{assessmentId}", false);
|
|
269
269
|
let body;
|
|
270
270
|
return new protocol_http_1.HttpRequest({
|
|
@@ -281,7 +281,7 @@ exports.serializeAws_restJson1DeleteAssessmentCommand = serializeAws_restJson1De
|
|
|
281
281
|
const serializeAws_restJson1DeleteAssessmentFrameworkCommand = async (input, context) => {
|
|
282
282
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
283
283
|
const headers = {};
|
|
284
|
-
let resolvedPath = `${
|
|
284
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assessmentFrameworks/{frameworkId}";
|
|
285
285
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "frameworkId", () => input.frameworkId, "{frameworkId}", false);
|
|
286
286
|
let body;
|
|
287
287
|
return new protocol_http_1.HttpRequest({
|
|
@@ -298,7 +298,7 @@ exports.serializeAws_restJson1DeleteAssessmentFrameworkCommand = serializeAws_re
|
|
|
298
298
|
const serializeAws_restJson1DeleteAssessmentFrameworkShareCommand = async (input, context) => {
|
|
299
299
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
300
300
|
const headers = {};
|
|
301
|
-
let resolvedPath = `${
|
|
301
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
302
302
|
"/assessmentFrameworkShareRequests/{requestId}";
|
|
303
303
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "requestId", () => input.requestId, "{requestId}", false);
|
|
304
304
|
const query = map({
|
|
@@ -320,7 +320,7 @@ exports.serializeAws_restJson1DeleteAssessmentFrameworkShareCommand = serializeA
|
|
|
320
320
|
const serializeAws_restJson1DeleteAssessmentReportCommand = async (input, context) => {
|
|
321
321
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
322
322
|
const headers = {};
|
|
323
|
-
let resolvedPath = `${
|
|
323
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
324
324
|
"/assessments/{assessmentId}/reports/{assessmentReportId}";
|
|
325
325
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assessmentId", () => input.assessmentId, "{assessmentId}", false);
|
|
326
326
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assessmentReportId", () => input.assessmentReportId, "{assessmentReportId}", false);
|
|
@@ -339,7 +339,7 @@ exports.serializeAws_restJson1DeleteAssessmentReportCommand = serializeAws_restJ
|
|
|
339
339
|
const serializeAws_restJson1DeleteControlCommand = async (input, context) => {
|
|
340
340
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
341
341
|
const headers = {};
|
|
342
|
-
let resolvedPath = `${
|
|
342
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/controls/{controlId}";
|
|
343
343
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "controlId", () => input.controlId, "{controlId}", false);
|
|
344
344
|
let body;
|
|
345
345
|
return new protocol_http_1.HttpRequest({
|
|
@@ -358,7 +358,7 @@ const serializeAws_restJson1DeregisterAccountCommand = async (input, context) =>
|
|
|
358
358
|
const headers = {
|
|
359
359
|
"content-type": "application/json",
|
|
360
360
|
};
|
|
361
|
-
const resolvedPath = `${
|
|
361
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/account/deregisterAccount";
|
|
362
362
|
let body;
|
|
363
363
|
body = "";
|
|
364
364
|
return new protocol_http_1.HttpRequest({
|
|
@@ -377,7 +377,7 @@ const serializeAws_restJson1DeregisterOrganizationAdminAccountCommand = async (i
|
|
|
377
377
|
const headers = {
|
|
378
378
|
"content-type": "application/json",
|
|
379
379
|
};
|
|
380
|
-
const resolvedPath = `${
|
|
380
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
381
381
|
"/account/deregisterOrganizationAdminAccount";
|
|
382
382
|
let body;
|
|
383
383
|
body = JSON.stringify({
|
|
@@ -399,7 +399,7 @@ const serializeAws_restJson1DisassociateAssessmentReportEvidenceFolderCommand =
|
|
|
399
399
|
const headers = {
|
|
400
400
|
"content-type": "application/json",
|
|
401
401
|
};
|
|
402
|
-
let resolvedPath = `${
|
|
402
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
403
403
|
"/assessments/{assessmentId}/disassociateFromAssessmentReport";
|
|
404
404
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assessmentId", () => input.assessmentId, "{assessmentId}", false);
|
|
405
405
|
let body;
|
|
@@ -422,7 +422,7 @@ const serializeAws_restJson1GetAccountStatusCommand = async (input, context) =>
|
|
|
422
422
|
const headers = {
|
|
423
423
|
"content-type": "application/json",
|
|
424
424
|
};
|
|
425
|
-
const resolvedPath = `${
|
|
425
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/account/status";
|
|
426
426
|
let body;
|
|
427
427
|
body = "";
|
|
428
428
|
return new protocol_http_1.HttpRequest({
|
|
@@ -439,7 +439,7 @@ exports.serializeAws_restJson1GetAccountStatusCommand = serializeAws_restJson1Ge
|
|
|
439
439
|
const serializeAws_restJson1GetAssessmentCommand = async (input, context) => {
|
|
440
440
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
441
441
|
const headers = {};
|
|
442
|
-
let resolvedPath = `${
|
|
442
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assessments/{assessmentId}";
|
|
443
443
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assessmentId", () => input.assessmentId, "{assessmentId}", false);
|
|
444
444
|
let body;
|
|
445
445
|
return new protocol_http_1.HttpRequest({
|
|
@@ -456,7 +456,7 @@ exports.serializeAws_restJson1GetAssessmentCommand = serializeAws_restJson1GetAs
|
|
|
456
456
|
const serializeAws_restJson1GetAssessmentFrameworkCommand = async (input, context) => {
|
|
457
457
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
458
458
|
const headers = {};
|
|
459
|
-
let resolvedPath = `${
|
|
459
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assessmentFrameworks/{frameworkId}";
|
|
460
460
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "frameworkId", () => input.frameworkId, "{frameworkId}", false);
|
|
461
461
|
let body;
|
|
462
462
|
return new protocol_http_1.HttpRequest({
|
|
@@ -473,7 +473,7 @@ exports.serializeAws_restJson1GetAssessmentFrameworkCommand = serializeAws_restJ
|
|
|
473
473
|
const serializeAws_restJson1GetAssessmentReportUrlCommand = async (input, context) => {
|
|
474
474
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
475
475
|
const headers = {};
|
|
476
|
-
let resolvedPath = `${
|
|
476
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
477
477
|
"/assessments/{assessmentId}/reports/{assessmentReportId}/url";
|
|
478
478
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assessmentReportId", () => input.assessmentReportId, "{assessmentReportId}", false);
|
|
479
479
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assessmentId", () => input.assessmentId, "{assessmentId}", false);
|
|
@@ -492,7 +492,7 @@ exports.serializeAws_restJson1GetAssessmentReportUrlCommand = serializeAws_restJ
|
|
|
492
492
|
const serializeAws_restJson1GetChangeLogsCommand = async (input, context) => {
|
|
493
493
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
494
494
|
const headers = {};
|
|
495
|
-
let resolvedPath = `${
|
|
495
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assessments/{assessmentId}/changelogs";
|
|
496
496
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assessmentId", () => input.assessmentId, "{assessmentId}", false);
|
|
497
497
|
const query = map({
|
|
498
498
|
controlSetId: [, input.controlSetId],
|
|
@@ -516,7 +516,7 @@ exports.serializeAws_restJson1GetChangeLogsCommand = serializeAws_restJson1GetCh
|
|
|
516
516
|
const serializeAws_restJson1GetControlCommand = async (input, context) => {
|
|
517
517
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
518
518
|
const headers = {};
|
|
519
|
-
let resolvedPath = `${
|
|
519
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/controls/{controlId}";
|
|
520
520
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "controlId", () => input.controlId, "{controlId}", false);
|
|
521
521
|
let body;
|
|
522
522
|
return new protocol_http_1.HttpRequest({
|
|
@@ -533,7 +533,7 @@ exports.serializeAws_restJson1GetControlCommand = serializeAws_restJson1GetContr
|
|
|
533
533
|
const serializeAws_restJson1GetDelegationsCommand = async (input, context) => {
|
|
534
534
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
535
535
|
const headers = {};
|
|
536
|
-
const resolvedPath = `${
|
|
536
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/delegations";
|
|
537
537
|
const query = map({
|
|
538
538
|
nextToken: [, input.nextToken],
|
|
539
539
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
@@ -554,7 +554,7 @@ exports.serializeAws_restJson1GetDelegationsCommand = serializeAws_restJson1GetD
|
|
|
554
554
|
const serializeAws_restJson1GetEvidenceCommand = async (input, context) => {
|
|
555
555
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
556
556
|
const headers = {};
|
|
557
|
-
let resolvedPath = `${
|
|
557
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
558
558
|
"/assessments/{assessmentId}/controlSets/{controlSetId}/evidenceFolders/{evidenceFolderId}/evidence/{evidenceId}";
|
|
559
559
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assessmentId", () => input.assessmentId, "{assessmentId}", false);
|
|
560
560
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "controlSetId", () => input.controlSetId, "{controlSetId}", false);
|
|
@@ -575,7 +575,7 @@ exports.serializeAws_restJson1GetEvidenceCommand = serializeAws_restJson1GetEvid
|
|
|
575
575
|
const serializeAws_restJson1GetEvidenceByEvidenceFolderCommand = async (input, context) => {
|
|
576
576
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
577
577
|
const headers = {};
|
|
578
|
-
let resolvedPath = `${
|
|
578
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
579
579
|
"/assessments/{assessmentId}/controlSets/{controlSetId}/evidenceFolders/{evidenceFolderId}/evidence";
|
|
580
580
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assessmentId", () => input.assessmentId, "{assessmentId}", false);
|
|
581
581
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "controlSetId", () => input.controlSetId, "{controlSetId}", false);
|
|
@@ -600,7 +600,7 @@ exports.serializeAws_restJson1GetEvidenceByEvidenceFolderCommand = serializeAws_
|
|
|
600
600
|
const serializeAws_restJson1GetEvidenceFolderCommand = async (input, context) => {
|
|
601
601
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
602
602
|
const headers = {};
|
|
603
|
-
let resolvedPath = `${
|
|
603
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
604
604
|
"/assessments/{assessmentId}/controlSets/{controlSetId}/evidenceFolders/{evidenceFolderId}";
|
|
605
605
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assessmentId", () => input.assessmentId, "{assessmentId}", false);
|
|
606
606
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "controlSetId", () => input.controlSetId, "{controlSetId}", false);
|
|
@@ -620,7 +620,7 @@ exports.serializeAws_restJson1GetEvidenceFolderCommand = serializeAws_restJson1G
|
|
|
620
620
|
const serializeAws_restJson1GetEvidenceFoldersByAssessmentCommand = async (input, context) => {
|
|
621
621
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
622
622
|
const headers = {};
|
|
623
|
-
let resolvedPath = `${
|
|
623
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
624
624
|
"/assessments/{assessmentId}/evidenceFolders";
|
|
625
625
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assessmentId", () => input.assessmentId, "{assessmentId}", false);
|
|
626
626
|
const query = map({
|
|
@@ -643,7 +643,7 @@ exports.serializeAws_restJson1GetEvidenceFoldersByAssessmentCommand = serializeA
|
|
|
643
643
|
const serializeAws_restJson1GetEvidenceFoldersByAssessmentControlCommand = async (input, context) => {
|
|
644
644
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
645
645
|
const headers = {};
|
|
646
|
-
let resolvedPath = `${
|
|
646
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
647
647
|
"/assessments/{assessmentId}/evidenceFolders-by-assessment-control/{controlSetId}/{controlId}";
|
|
648
648
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assessmentId", () => input.assessmentId, "{assessmentId}", false);
|
|
649
649
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "controlSetId", () => input.controlSetId, "{controlSetId}", false);
|
|
@@ -670,7 +670,7 @@ const serializeAws_restJson1GetInsightsCommand = async (input, context) => {
|
|
|
670
670
|
const headers = {
|
|
671
671
|
"content-type": "application/json",
|
|
672
672
|
};
|
|
673
|
-
const resolvedPath = `${
|
|
673
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/insights";
|
|
674
674
|
let body;
|
|
675
675
|
body = "";
|
|
676
676
|
return new protocol_http_1.HttpRequest({
|
|
@@ -687,7 +687,7 @@ exports.serializeAws_restJson1GetInsightsCommand = serializeAws_restJson1GetInsi
|
|
|
687
687
|
const serializeAws_restJson1GetInsightsByAssessmentCommand = async (input, context) => {
|
|
688
688
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
689
689
|
const headers = {};
|
|
690
|
-
let resolvedPath = `${
|
|
690
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/insights/assessments/{assessmentId}";
|
|
691
691
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assessmentId", () => input.assessmentId, "{assessmentId}", false);
|
|
692
692
|
let body;
|
|
693
693
|
return new protocol_http_1.HttpRequest({
|
|
@@ -706,7 +706,7 @@ const serializeAws_restJson1GetOrganizationAdminAccountCommand = async (input, c
|
|
|
706
706
|
const headers = {
|
|
707
707
|
"content-type": "application/json",
|
|
708
708
|
};
|
|
709
|
-
const resolvedPath = `${
|
|
709
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/account/organizationAdminAccount";
|
|
710
710
|
let body;
|
|
711
711
|
body = "";
|
|
712
712
|
return new protocol_http_1.HttpRequest({
|
|
@@ -725,7 +725,7 @@ const serializeAws_restJson1GetServicesInScopeCommand = async (input, context) =
|
|
|
725
725
|
const headers = {
|
|
726
726
|
"content-type": "application/json",
|
|
727
727
|
};
|
|
728
|
-
const resolvedPath = `${
|
|
728
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/services";
|
|
729
729
|
let body;
|
|
730
730
|
body = "";
|
|
731
731
|
return new protocol_http_1.HttpRequest({
|
|
@@ -742,7 +742,7 @@ exports.serializeAws_restJson1GetServicesInScopeCommand = serializeAws_restJson1
|
|
|
742
742
|
const serializeAws_restJson1GetSettingsCommand = async (input, context) => {
|
|
743
743
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
744
744
|
const headers = {};
|
|
745
|
-
let resolvedPath = `${
|
|
745
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/settings/{attribute}";
|
|
746
746
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "attribute", () => input.attribute, "{attribute}", false);
|
|
747
747
|
let body;
|
|
748
748
|
return new protocol_http_1.HttpRequest({
|
|
@@ -759,7 +759,7 @@ exports.serializeAws_restJson1GetSettingsCommand = serializeAws_restJson1GetSett
|
|
|
759
759
|
const serializeAws_restJson1ListAssessmentControlInsightsByControlDomainCommand = async (input, context) => {
|
|
760
760
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
761
761
|
const headers = {};
|
|
762
|
-
const resolvedPath = `${
|
|
762
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/insights/controls-by-assessment";
|
|
763
763
|
const query = map({
|
|
764
764
|
controlDomainId: [, input.controlDomainId],
|
|
765
765
|
assessmentId: [, input.assessmentId],
|
|
@@ -782,7 +782,7 @@ exports.serializeAws_restJson1ListAssessmentControlInsightsByControlDomainComman
|
|
|
782
782
|
const serializeAws_restJson1ListAssessmentFrameworksCommand = async (input, context) => {
|
|
783
783
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
784
784
|
const headers = {};
|
|
785
|
-
const resolvedPath = `${
|
|
785
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assessmentFrameworks";
|
|
786
786
|
const query = map({
|
|
787
787
|
frameworkType: [, input.frameworkType],
|
|
788
788
|
nextToken: [, input.nextToken],
|
|
@@ -804,7 +804,7 @@ exports.serializeAws_restJson1ListAssessmentFrameworksCommand = serializeAws_res
|
|
|
804
804
|
const serializeAws_restJson1ListAssessmentFrameworkShareRequestsCommand = async (input, context) => {
|
|
805
805
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
806
806
|
const headers = {};
|
|
807
|
-
const resolvedPath = `${
|
|
807
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assessmentFrameworkShareRequests";
|
|
808
808
|
const query = map({
|
|
809
809
|
requestType: [, input.requestType],
|
|
810
810
|
nextToken: [, input.nextToken],
|
|
@@ -826,7 +826,7 @@ exports.serializeAws_restJson1ListAssessmentFrameworkShareRequestsCommand = seri
|
|
|
826
826
|
const serializeAws_restJson1ListAssessmentReportsCommand = async (input, context) => {
|
|
827
827
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
828
828
|
const headers = {};
|
|
829
|
-
const resolvedPath = `${
|
|
829
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assessmentReports";
|
|
830
830
|
const query = map({
|
|
831
831
|
nextToken: [, input.nextToken],
|
|
832
832
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
@@ -847,7 +847,7 @@ exports.serializeAws_restJson1ListAssessmentReportsCommand = serializeAws_restJs
|
|
|
847
847
|
const serializeAws_restJson1ListAssessmentsCommand = async (input, context) => {
|
|
848
848
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
849
849
|
const headers = {};
|
|
850
|
-
const resolvedPath = `${
|
|
850
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assessments";
|
|
851
851
|
const query = map({
|
|
852
852
|
status: [, input.status],
|
|
853
853
|
nextToken: [, input.nextToken],
|
|
@@ -869,7 +869,7 @@ exports.serializeAws_restJson1ListAssessmentsCommand = serializeAws_restJson1Lis
|
|
|
869
869
|
const serializeAws_restJson1ListControlDomainInsightsCommand = async (input, context) => {
|
|
870
870
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
871
871
|
const headers = {};
|
|
872
|
-
const resolvedPath = `${
|
|
872
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/insights/control-domains";
|
|
873
873
|
const query = map({
|
|
874
874
|
nextToken: [, input.nextToken],
|
|
875
875
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
@@ -890,7 +890,7 @@ exports.serializeAws_restJson1ListControlDomainInsightsCommand = serializeAws_re
|
|
|
890
890
|
const serializeAws_restJson1ListControlDomainInsightsByAssessmentCommand = async (input, context) => {
|
|
891
891
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
892
892
|
const headers = {};
|
|
893
|
-
const resolvedPath = `${
|
|
893
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/insights/control-domains-by-assessment";
|
|
894
894
|
const query = map({
|
|
895
895
|
assessmentId: [, input.assessmentId],
|
|
896
896
|
nextToken: [, input.nextToken],
|
|
@@ -912,7 +912,7 @@ exports.serializeAws_restJson1ListControlDomainInsightsByAssessmentCommand = ser
|
|
|
912
912
|
const serializeAws_restJson1ListControlInsightsByControlDomainCommand = async (input, context) => {
|
|
913
913
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
914
914
|
const headers = {};
|
|
915
|
-
const resolvedPath = `${
|
|
915
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/insights/controls";
|
|
916
916
|
const query = map({
|
|
917
917
|
controlDomainId: [, input.controlDomainId],
|
|
918
918
|
nextToken: [, input.nextToken],
|
|
@@ -934,7 +934,7 @@ exports.serializeAws_restJson1ListControlInsightsByControlDomainCommand = serial
|
|
|
934
934
|
const serializeAws_restJson1ListControlsCommand = async (input, context) => {
|
|
935
935
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
936
936
|
const headers = {};
|
|
937
|
-
const resolvedPath = `${
|
|
937
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/controls";
|
|
938
938
|
const query = map({
|
|
939
939
|
controlType: [, input.controlType],
|
|
940
940
|
nextToken: [, input.nextToken],
|
|
@@ -956,7 +956,7 @@ exports.serializeAws_restJson1ListControlsCommand = serializeAws_restJson1ListCo
|
|
|
956
956
|
const serializeAws_restJson1ListKeywordsForDataSourceCommand = async (input, context) => {
|
|
957
957
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
958
958
|
const headers = {};
|
|
959
|
-
const resolvedPath = `${
|
|
959
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/dataSourceKeywords";
|
|
960
960
|
const query = map({
|
|
961
961
|
source: [, input.source],
|
|
962
962
|
nextToken: [, input.nextToken],
|
|
@@ -978,7 +978,7 @@ exports.serializeAws_restJson1ListKeywordsForDataSourceCommand = serializeAws_re
|
|
|
978
978
|
const serializeAws_restJson1ListNotificationsCommand = async (input, context) => {
|
|
979
979
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
980
980
|
const headers = {};
|
|
981
|
-
const resolvedPath = `${
|
|
981
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/notifications";
|
|
982
982
|
const query = map({
|
|
983
983
|
nextToken: [, input.nextToken],
|
|
984
984
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
@@ -999,7 +999,7 @@ exports.serializeAws_restJson1ListNotificationsCommand = serializeAws_restJson1L
|
|
|
999
999
|
const serializeAws_restJson1ListTagsForResourceCommand = async (input, context) => {
|
|
1000
1000
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1001
1001
|
const headers = {};
|
|
1002
|
-
let resolvedPath = `${
|
|
1002
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
1003
1003
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
1004
1004
|
let body;
|
|
1005
1005
|
return new protocol_http_1.HttpRequest({
|
|
@@ -1018,7 +1018,7 @@ const serializeAws_restJson1RegisterAccountCommand = async (input, context) => {
|
|
|
1018
1018
|
const headers = {
|
|
1019
1019
|
"content-type": "application/json",
|
|
1020
1020
|
};
|
|
1021
|
-
const resolvedPath = `${
|
|
1021
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/account/registerAccount";
|
|
1022
1022
|
let body;
|
|
1023
1023
|
body = JSON.stringify({
|
|
1024
1024
|
...(input.delegatedAdminAccount != null && { delegatedAdminAccount: input.delegatedAdminAccount }),
|
|
@@ -1040,7 +1040,7 @@ const serializeAws_restJson1RegisterOrganizationAdminAccountCommand = async (inp
|
|
|
1040
1040
|
const headers = {
|
|
1041
1041
|
"content-type": "application/json",
|
|
1042
1042
|
};
|
|
1043
|
-
const resolvedPath = `${
|
|
1043
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/account/registerOrganizationAdminAccount";
|
|
1044
1044
|
let body;
|
|
1045
1045
|
body = JSON.stringify({
|
|
1046
1046
|
...(input.adminAccountId != null && { adminAccountId: input.adminAccountId }),
|
|
@@ -1061,7 +1061,7 @@ const serializeAws_restJson1StartAssessmentFrameworkShareCommand = async (input,
|
|
|
1061
1061
|
const headers = {
|
|
1062
1062
|
"content-type": "application/json",
|
|
1063
1063
|
};
|
|
1064
|
-
let resolvedPath = `${
|
|
1064
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1065
1065
|
"/assessmentFrameworks/{frameworkId}/shareRequests";
|
|
1066
1066
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "frameworkId", () => input.frameworkId, "{frameworkId}", false);
|
|
1067
1067
|
let body;
|
|
@@ -1086,7 +1086,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
1086
1086
|
const headers = {
|
|
1087
1087
|
"content-type": "application/json",
|
|
1088
1088
|
};
|
|
1089
|
-
let resolvedPath = `${
|
|
1089
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
1090
1090
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
1091
1091
|
let body;
|
|
1092
1092
|
body = JSON.stringify({
|
|
@@ -1106,7 +1106,7 @@ exports.serializeAws_restJson1TagResourceCommand = serializeAws_restJson1TagReso
|
|
|
1106
1106
|
const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
1107
1107
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1108
1108
|
const headers = {};
|
|
1109
|
-
let resolvedPath = `${
|
|
1109
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
1110
1110
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
1111
1111
|
const query = map({
|
|
1112
1112
|
tagKeys: [() => input.tagKeys !== void 0, () => (input.tagKeys || []).map((_entry) => _entry)],
|
|
@@ -1129,7 +1129,7 @@ const serializeAws_restJson1UpdateAssessmentCommand = async (input, context) =>
|
|
|
1129
1129
|
const headers = {
|
|
1130
1130
|
"content-type": "application/json",
|
|
1131
1131
|
};
|
|
1132
|
-
let resolvedPath = `${
|
|
1132
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assessments/{assessmentId}";
|
|
1133
1133
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assessmentId", () => input.assessmentId, "{assessmentId}", false);
|
|
1134
1134
|
let body;
|
|
1135
1135
|
body = JSON.stringify({
|
|
@@ -1157,7 +1157,7 @@ const serializeAws_restJson1UpdateAssessmentControlCommand = async (input, conte
|
|
|
1157
1157
|
const headers = {
|
|
1158
1158
|
"content-type": "application/json",
|
|
1159
1159
|
};
|
|
1160
|
-
let resolvedPath = `${
|
|
1160
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1161
1161
|
"/assessments/{assessmentId}/controlSets/{controlSetId}/controls/{controlId}";
|
|
1162
1162
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assessmentId", () => input.assessmentId, "{assessmentId}", false);
|
|
1163
1163
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "controlSetId", () => input.controlSetId, "{controlSetId}", false);
|
|
@@ -1183,7 +1183,7 @@ const serializeAws_restJson1UpdateAssessmentControlSetStatusCommand = async (inp
|
|
|
1183
1183
|
const headers = {
|
|
1184
1184
|
"content-type": "application/json",
|
|
1185
1185
|
};
|
|
1186
|
-
let resolvedPath = `${
|
|
1186
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1187
1187
|
"/assessments/{assessmentId}/controlSets/{controlSetId}/status";
|
|
1188
1188
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assessmentId", () => input.assessmentId, "{assessmentId}", false);
|
|
1189
1189
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "controlSetId", () => input.controlSetId, "{controlSetId}", false);
|
|
@@ -1208,7 +1208,7 @@ const serializeAws_restJson1UpdateAssessmentFrameworkCommand = async (input, con
|
|
|
1208
1208
|
const headers = {
|
|
1209
1209
|
"content-type": "application/json",
|
|
1210
1210
|
};
|
|
1211
|
-
let resolvedPath = `${
|
|
1211
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assessmentFrameworks/{frameworkId}";
|
|
1212
1212
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "frameworkId", () => input.frameworkId, "{frameworkId}", false);
|
|
1213
1213
|
let body;
|
|
1214
1214
|
body = JSON.stringify({
|
|
@@ -1235,7 +1235,7 @@ const serializeAws_restJson1UpdateAssessmentFrameworkShareCommand = async (input
|
|
|
1235
1235
|
const headers = {
|
|
1236
1236
|
"content-type": "application/json",
|
|
1237
1237
|
};
|
|
1238
|
-
let resolvedPath = `${
|
|
1238
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1239
1239
|
"/assessmentFrameworkShareRequests/{requestId}";
|
|
1240
1240
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "requestId", () => input.requestId, "{requestId}", false);
|
|
1241
1241
|
let body;
|
|
@@ -1259,7 +1259,7 @@ const serializeAws_restJson1UpdateAssessmentStatusCommand = async (input, contex
|
|
|
1259
1259
|
const headers = {
|
|
1260
1260
|
"content-type": "application/json",
|
|
1261
1261
|
};
|
|
1262
|
-
let resolvedPath = `${
|
|
1262
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assessments/{assessmentId}/status";
|
|
1263
1263
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assessmentId", () => input.assessmentId, "{assessmentId}", false);
|
|
1264
1264
|
let body;
|
|
1265
1265
|
body = JSON.stringify({
|
|
@@ -1281,7 +1281,7 @@ const serializeAws_restJson1UpdateControlCommand = async (input, context) => {
|
|
|
1281
1281
|
const headers = {
|
|
1282
1282
|
"content-type": "application/json",
|
|
1283
1283
|
};
|
|
1284
|
-
let resolvedPath = `${
|
|
1284
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/controls/{controlId}";
|
|
1285
1285
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "controlId", () => input.controlId, "{controlId}", false);
|
|
1286
1286
|
let body;
|
|
1287
1287
|
body = JSON.stringify({
|
|
@@ -1310,7 +1310,7 @@ const serializeAws_restJson1UpdateSettingsCommand = async (input, context) => {
|
|
|
1310
1310
|
const headers = {
|
|
1311
1311
|
"content-type": "application/json",
|
|
1312
1312
|
};
|
|
1313
|
-
const resolvedPath = `${
|
|
1313
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/settings";
|
|
1314
1314
|
let body;
|
|
1315
1315
|
body = JSON.stringify({
|
|
1316
1316
|
...(input.defaultAssessmentReportsDestination != null && {
|
|
@@ -1338,7 +1338,7 @@ const serializeAws_restJson1ValidateAssessmentReportIntegrityCommand = async (in
|
|
|
1338
1338
|
const headers = {
|
|
1339
1339
|
"content-type": "application/json",
|
|
1340
1340
|
};
|
|
1341
|
-
const resolvedPath = `${
|
|
1341
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assessmentReports/integrity";
|
|
1342
1342
|
let body;
|
|
1343
1343
|
body = JSON.stringify({
|
|
1344
1344
|
...(input.s3RelativePath != null && { s3RelativePath: input.s3RelativePath }),
|
|
@@ -5184,15 +5184,12 @@ const deserializeAws_restJson1ValidationExceptionFieldList = (output, context) =
|
|
|
5184
5184
|
});
|
|
5185
5185
|
return retVal;
|
|
5186
5186
|
};
|
|
5187
|
-
const deserializeMetadata = (output) => {
|
|
5188
|
-
|
|
5189
|
-
|
|
5190
|
-
|
|
5191
|
-
|
|
5192
|
-
|
|
5193
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
5194
|
-
});
|
|
5195
|
-
};
|
|
5187
|
+
const deserializeMetadata = (output) => ({
|
|
5188
|
+
httpStatusCode: output.statusCode,
|
|
5189
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
5190
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
5191
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
5192
|
+
});
|
|
5196
5193
|
const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
5197
5194
|
if (streamBody instanceof Uint8Array) {
|
|
5198
5195
|
return Promise.resolve(streamBody);
|
|
@@ -5212,9 +5209,8 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
5212
5209
|
return {};
|
|
5213
5210
|
});
|
|
5214
5211
|
const parseErrorBody = async (errorBody, context) => {
|
|
5215
|
-
var _a;
|
|
5216
5212
|
const value = await parseBody(errorBody, context);
|
|
5217
|
-
value.message =
|
|
5213
|
+
value.message = value.message ?? value.Message;
|
|
5218
5214
|
return value;
|
|
5219
5215
|
};
|
|
5220
5216
|
const loadRestJsonErrorCode = (output, data) => {
|
|
@@ -16,7 +16,6 @@ const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
|
16
16
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
17
17
|
const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
|
|
18
18
|
const getRuntimeConfig = (config) => {
|
|
19
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
20
19
|
const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config);
|
|
21
20
|
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
22
21
|
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
@@ -25,21 +24,22 @@ const getRuntimeConfig = (config) => {
|
|
|
25
24
|
...config,
|
|
26
25
|
runtime: "browser",
|
|
27
26
|
defaultsMode,
|
|
28
|
-
base64Decoder:
|
|
29
|
-
base64Encoder:
|
|
30
|
-
bodyLengthChecker:
|
|
31
|
-
credentialDefaultProvider:
|
|
32
|
-
defaultUserAgentProvider:
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
27
|
+
base64Decoder: config?.base64Decoder ?? util_base64_browser_1.fromBase64,
|
|
28
|
+
base64Encoder: config?.base64Encoder ?? util_base64_browser_1.toBase64,
|
|
29
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_browser_1.calculateBodyLength,
|
|
30
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
31
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
32
|
+
(0, util_user_agent_browser_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
33
|
+
maxAttempts: config?.maxAttempts ?? middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
|
|
34
|
+
region: config?.region ?? (0, invalid_dependency_1.invalidProvider)("Region is missing"),
|
|
35
|
+
requestHandler: config?.requestHandler ?? new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
|
|
36
|
+
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
|
|
37
|
+
sha256: config?.sha256 ?? sha256_browser_1.Sha256,
|
|
38
|
+
streamCollector: config?.streamCollector ?? fetch_http_handler_1.streamCollector,
|
|
39
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
40
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_FIPS_ENDPOINT)),
|
|
41
|
+
utf8Decoder: config?.utf8Decoder ?? util_utf8_browser_1.fromUtf8,
|
|
42
|
+
utf8Encoder: config?.utf8Encoder ?? util_utf8_browser_1.toUtf8,
|
|
43
43
|
};
|
|
44
44
|
};
|
|
45
45
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -19,7 +19,6 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
19
19
|
const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
|
|
20
20
|
const smithy_client_2 = require("@aws-sdk/smithy-client");
|
|
21
21
|
const getRuntimeConfig = (config) => {
|
|
22
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
23
22
|
(0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version);
|
|
24
23
|
const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
|
|
25
24
|
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
@@ -29,24 +28,26 @@ const getRuntimeConfig = (config) => {
|
|
|
29
28
|
...config,
|
|
30
29
|
runtime: "node",
|
|
31
30
|
defaultsMode,
|
|
32
|
-
base64Decoder:
|
|
33
|
-
base64Encoder:
|
|
34
|
-
bodyLengthChecker:
|
|
35
|
-
credentialDefaultProvider:
|
|
36
|
-
defaultUserAgentProvider:
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
31
|
+
base64Decoder: config?.base64Decoder ?? util_base64_node_1.fromBase64,
|
|
32
|
+
base64Encoder: config?.base64Encoder ?? util_base64_node_1.toBase64,
|
|
33
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
|
|
34
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? (0, client_sts_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider),
|
|
35
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
36
|
+
(0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
37
|
+
maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
38
|
+
region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
39
|
+
requestHandler: config?.requestHandler ?? new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
|
|
40
|
+
retryMode: config?.retryMode ??
|
|
41
|
+
(0, node_config_provider_1.loadConfig)({
|
|
42
|
+
...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
43
|
+
default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
|
|
44
|
+
}),
|
|
45
|
+
sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
|
|
46
|
+
streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
|
|
47
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
|
48
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
|
|
49
|
+
utf8Decoder: config?.utf8Decoder ?? util_utf8_node_1.fromUtf8,
|
|
50
|
+
utf8Encoder: config?.utf8Encoder ?? util_utf8_node_1.toUtf8,
|
|
50
51
|
};
|
|
51
52
|
};
|
|
52
53
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -4,13 +4,12 @@ exports.getRuntimeConfig = void 0;
|
|
|
4
4
|
const sha256_js_1 = require("@aws-crypto/sha256-js");
|
|
5
5
|
const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
|
|
6
6
|
const getRuntimeConfig = (config) => {
|
|
7
|
-
var _a;
|
|
8
7
|
const browserDefaults = (0, runtimeConfig_browser_1.getRuntimeConfig)(config);
|
|
9
8
|
return {
|
|
10
9
|
...browserDefaults,
|
|
11
10
|
...config,
|
|
12
11
|
runtime: "react-native",
|
|
13
|
-
sha256:
|
|
12
|
+
sha256: config?.sha256 ?? sha256_js_1.Sha256,
|
|
14
13
|
};
|
|
15
14
|
};
|
|
16
15
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -3,15 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getRuntimeConfig = void 0;
|
|
4
4
|
const url_parser_1 = require("@aws-sdk/url-parser");
|
|
5
5
|
const endpointResolver_1 = require("./endpoint/endpointResolver");
|
|
6
|
-
const getRuntimeConfig = (config) => {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
urlParser: (_e = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _e !== void 0 ? _e : url_parser_1.parseUrl,
|
|
15
|
-
});
|
|
16
|
-
};
|
|
6
|
+
const getRuntimeConfig = (config) => ({
|
|
7
|
+
apiVersion: "2017-07-25",
|
|
8
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
9
|
+
endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
|
|
10
|
+
logger: config?.logger ?? {},
|
|
11
|
+
serviceId: config?.serviceId ?? "AuditManager",
|
|
12
|
+
urlParser: config?.urlParser ?? url_parser_1.parseUrl,
|
|
13
|
+
});
|
|
17
14
|
exports.getRuntimeConfig = getRuntimeConfig;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-auditmanager",
|
|
3
3
|
"description": "AWS SDK for JavaScript Auditmanager Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.201.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -19,44 +19,44 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
21
21
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
22
|
-
"@aws-sdk/client-sts": "3.
|
|
23
|
-
"@aws-sdk/config-resolver": "3.
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
26
|
-
"@aws-sdk/hash-node": "3.
|
|
27
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
28
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
29
|
-
"@aws-sdk/middleware-endpoint": "3.
|
|
30
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
31
|
-
"@aws-sdk/middleware-logger": "3.
|
|
32
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
33
|
-
"@aws-sdk/middleware-retry": "3.
|
|
34
|
-
"@aws-sdk/middleware-serde": "3.
|
|
35
|
-
"@aws-sdk/middleware-signing": "3.
|
|
36
|
-
"@aws-sdk/middleware-stack": "3.
|
|
37
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
38
|
-
"@aws-sdk/node-config-provider": "3.
|
|
39
|
-
"@aws-sdk/node-http-handler": "3.
|
|
40
|
-
"@aws-sdk/protocol-http": "3.
|
|
41
|
-
"@aws-sdk/smithy-client": "3.
|
|
42
|
-
"@aws-sdk/types": "3.
|
|
43
|
-
"@aws-sdk/url-parser": "3.
|
|
22
|
+
"@aws-sdk/client-sts": "3.201.0",
|
|
23
|
+
"@aws-sdk/config-resolver": "3.201.0",
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.201.0",
|
|
25
|
+
"@aws-sdk/fetch-http-handler": "3.201.0",
|
|
26
|
+
"@aws-sdk/hash-node": "3.201.0",
|
|
27
|
+
"@aws-sdk/invalid-dependency": "3.201.0",
|
|
28
|
+
"@aws-sdk/middleware-content-length": "3.201.0",
|
|
29
|
+
"@aws-sdk/middleware-endpoint": "3.201.0",
|
|
30
|
+
"@aws-sdk/middleware-host-header": "3.201.0",
|
|
31
|
+
"@aws-sdk/middleware-logger": "3.201.0",
|
|
32
|
+
"@aws-sdk/middleware-recursion-detection": "3.201.0",
|
|
33
|
+
"@aws-sdk/middleware-retry": "3.201.0",
|
|
34
|
+
"@aws-sdk/middleware-serde": "3.201.0",
|
|
35
|
+
"@aws-sdk/middleware-signing": "3.201.0",
|
|
36
|
+
"@aws-sdk/middleware-stack": "3.201.0",
|
|
37
|
+
"@aws-sdk/middleware-user-agent": "3.201.0",
|
|
38
|
+
"@aws-sdk/node-config-provider": "3.201.0",
|
|
39
|
+
"@aws-sdk/node-http-handler": "3.201.0",
|
|
40
|
+
"@aws-sdk/protocol-http": "3.201.0",
|
|
41
|
+
"@aws-sdk/smithy-client": "3.201.0",
|
|
42
|
+
"@aws-sdk/types": "3.201.0",
|
|
43
|
+
"@aws-sdk/url-parser": "3.201.0",
|
|
44
44
|
"@aws-sdk/util-base64-browser": "3.188.0",
|
|
45
|
-
"@aws-sdk/util-base64-node": "3.
|
|
45
|
+
"@aws-sdk/util-base64-node": "3.201.0",
|
|
46
46
|
"@aws-sdk/util-body-length-browser": "3.188.0",
|
|
47
|
-
"@aws-sdk/util-body-length-node": "3.
|
|
48
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
49
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
50
|
-
"@aws-sdk/util-endpoints": "3.
|
|
51
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
52
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
47
|
+
"@aws-sdk/util-body-length-node": "3.201.0",
|
|
48
|
+
"@aws-sdk/util-defaults-mode-browser": "3.201.0",
|
|
49
|
+
"@aws-sdk/util-defaults-mode-node": "3.201.0",
|
|
50
|
+
"@aws-sdk/util-endpoints": "3.201.0",
|
|
51
|
+
"@aws-sdk/util-user-agent-browser": "3.201.0",
|
|
52
|
+
"@aws-sdk/util-user-agent-node": "3.201.0",
|
|
53
53
|
"@aws-sdk/util-utf8-browser": "3.188.0",
|
|
54
|
-
"@aws-sdk/util-utf8-node": "3.
|
|
54
|
+
"@aws-sdk/util-utf8-node": "3.201.0",
|
|
55
55
|
"tslib": "^2.3.1"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@aws-sdk/service-client-documentation-generator": "3.188.0",
|
|
59
|
-
"@tsconfig/
|
|
59
|
+
"@tsconfig/node14": "1.0.3",
|
|
60
60
|
"@types/node": "^12.7.5",
|
|
61
61
|
"concurrently": "7.0.0",
|
|
62
62
|
"downlevel-dts": "0.10.1",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
}
|
|
71
71
|
},
|
|
72
72
|
"engines": {
|
|
73
|
-
"node": ">=
|
|
73
|
+
"node": ">=14.0.0"
|
|
74
74
|
},
|
|
75
75
|
"typesVersions": {
|
|
76
76
|
"<4.0": {
|