@aws-sdk/client-auditmanager 3.352.0 → 3.353.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/README.md +8 -0
- package/dist-cjs/AuditManager.js +2 -0
- package/dist-cjs/commands/GetEvidenceFileUploadUrlCommand.js +46 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/models/models_0.js +20 -14
- package/dist-cjs/protocols/Aws_restJson1.js +71 -3
- package/dist-es/AuditManager.js +2 -0
- package/dist-es/commands/GetEvidenceFileUploadUrlCommand.js +42 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_0.js +18 -12
- package/dist-es/protocols/Aws_restJson1.js +66 -0
- package/dist-types/AuditManager.d.ts +7 -0
- package/dist-types/AuditManagerClient.d.ts +3 -2
- package/dist-types/commands/BatchImportEvidenceToAssessmentControlCommand.d.ts +18 -7
- package/dist-types/commands/CreateAssessmentFrameworkCommand.d.ts +1 -1
- package/dist-types/commands/CreateControlCommand.d.ts +2 -2
- package/dist-types/commands/DeleteControlCommand.d.ts +6 -0
- package/dist-types/commands/GetAccountStatusCommand.d.ts +1 -1
- package/dist-types/commands/GetAssessmentCommand.d.ts +1 -1
- package/dist-types/commands/GetAssessmentFrameworkCommand.d.ts +2 -2
- package/dist-types/commands/GetAssessmentReportUrlCommand.d.ts +1 -1
- package/dist-types/commands/GetChangeLogsCommand.d.ts +1 -1
- package/dist-types/commands/GetControlCommand.d.ts +2 -2
- package/dist-types/commands/GetDelegationsCommand.d.ts +1 -1
- package/dist-types/commands/GetEvidenceByEvidenceFolderCommand.d.ts +1 -1
- package/dist-types/commands/GetEvidenceCommand.d.ts +1 -1
- package/dist-types/commands/GetEvidenceFileUploadUrlCommand.d.ts +105 -0
- package/dist-types/commands/GetEvidenceFolderCommand.d.ts +1 -2
- package/dist-types/commands/GetEvidenceFoldersByAssessmentCommand.d.ts +1 -2
- package/dist-types/commands/GetEvidenceFoldersByAssessmentControlCommand.d.ts +1 -1
- package/dist-types/commands/GetOrganizationAdminAccountCommand.d.ts +1 -1
- package/dist-types/commands/GetServicesInScopeCommand.d.ts +2 -2
- package/dist-types/commands/GetSettingsCommand.d.ts +6 -2
- package/dist-types/commands/UpdateAssessmentFrameworkCommand.d.ts +1 -1
- package/dist-types/commands/UpdateControlCommand.d.ts +2 -2
- package/dist-types/commands/UpdateSettingsCommand.d.ts +8 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +206 -45
- package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
- package/dist-types/ts3.4/AuditManager.d.ts +17 -0
- package/dist-types/ts3.4/AuditManagerClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/GetEvidenceFileUploadUrlCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +30 -7
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
- package/package.json +11 -11
package/README.md
CHANGED
|
@@ -453,6 +453,14 @@ GetEvidenceByEvidenceFolder
|
|
|
453
453
|
|
|
454
454
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-auditmanager/classes/getevidencebyevidencefoldercommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-auditmanager/interfaces/getevidencebyevidencefoldercommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-auditmanager/interfaces/getevidencebyevidencefoldercommandoutput.html)
|
|
455
455
|
|
|
456
|
+
</details>
|
|
457
|
+
<details>
|
|
458
|
+
<summary>
|
|
459
|
+
GetEvidenceFileUploadUrl
|
|
460
|
+
</summary>
|
|
461
|
+
|
|
462
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-auditmanager/classes/getevidencefileuploadurlcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-auditmanager/interfaces/getevidencefileuploadurlcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-auditmanager/interfaces/getevidencefileuploadurlcommandoutput.html)
|
|
463
|
+
|
|
456
464
|
</details>
|
|
457
465
|
<details>
|
|
458
466
|
<summary>
|
package/dist-cjs/AuditManager.js
CHANGED
|
@@ -30,6 +30,7 @@ const GetControlCommand_1 = require("./commands/GetControlCommand");
|
|
|
30
30
|
const GetDelegationsCommand_1 = require("./commands/GetDelegationsCommand");
|
|
31
31
|
const GetEvidenceByEvidenceFolderCommand_1 = require("./commands/GetEvidenceByEvidenceFolderCommand");
|
|
32
32
|
const GetEvidenceCommand_1 = require("./commands/GetEvidenceCommand");
|
|
33
|
+
const GetEvidenceFileUploadUrlCommand_1 = require("./commands/GetEvidenceFileUploadUrlCommand");
|
|
33
34
|
const GetEvidenceFolderCommand_1 = require("./commands/GetEvidenceFolderCommand");
|
|
34
35
|
const GetEvidenceFoldersByAssessmentCommand_1 = require("./commands/GetEvidenceFoldersByAssessmentCommand");
|
|
35
36
|
const GetEvidenceFoldersByAssessmentControlCommand_1 = require("./commands/GetEvidenceFoldersByAssessmentControlCommand");
|
|
@@ -92,6 +93,7 @@ const commands = {
|
|
|
92
93
|
GetDelegationsCommand: GetDelegationsCommand_1.GetDelegationsCommand,
|
|
93
94
|
GetEvidenceCommand: GetEvidenceCommand_1.GetEvidenceCommand,
|
|
94
95
|
GetEvidenceByEvidenceFolderCommand: GetEvidenceByEvidenceFolderCommand_1.GetEvidenceByEvidenceFolderCommand,
|
|
96
|
+
GetEvidenceFileUploadUrlCommand: GetEvidenceFileUploadUrlCommand_1.GetEvidenceFileUploadUrlCommand,
|
|
95
97
|
GetEvidenceFolderCommand: GetEvidenceFolderCommand_1.GetEvidenceFolderCommand,
|
|
96
98
|
GetEvidenceFoldersByAssessmentCommand: GetEvidenceFoldersByAssessmentCommand_1.GetEvidenceFoldersByAssessmentCommand,
|
|
97
99
|
GetEvidenceFoldersByAssessmentControlCommand: GetEvidenceFoldersByAssessmentControlCommand_1.GetEvidenceFoldersByAssessmentControlCommand,
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetEvidenceFileUploadUrlCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
9
|
+
class GetEvidenceFileUploadUrlCommand extends smithy_client_1.Command {
|
|
10
|
+
static getEndpointParameterInstructions() {
|
|
11
|
+
return {
|
|
12
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
13
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
14
|
+
Region: { type: "builtInParams", name: "region" },
|
|
15
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
constructor(input) {
|
|
19
|
+
super();
|
|
20
|
+
this.input = input;
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetEvidenceFileUploadUrlCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "AuditManagerClient";
|
|
28
|
+
const commandName = "GetEvidenceFileUploadUrlCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: (_) => _,
|
|
34
|
+
outputFilterSensitiveLog: (_) => _,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_restJson1_1.se_GetEvidenceFileUploadUrlCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_restJson1_1.de_GetEvidenceFileUploadUrlCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.GetEvidenceFileUploadUrlCommand = GetEvidenceFileUploadUrlCommand;
|
|
@@ -28,6 +28,7 @@ tslib_1.__exportStar(require("./GetControlCommand"), exports);
|
|
|
28
28
|
tslib_1.__exportStar(require("./GetDelegationsCommand"), exports);
|
|
29
29
|
tslib_1.__exportStar(require("./GetEvidenceByEvidenceFolderCommand"), exports);
|
|
30
30
|
tslib_1.__exportStar(require("./GetEvidenceCommand"), exports);
|
|
31
|
+
tslib_1.__exportStar(require("./GetEvidenceFileUploadUrlCommand"), exports);
|
|
31
32
|
tslib_1.__exportStar(require("./GetEvidenceFolderCommand"), exports);
|
|
32
33
|
tslib_1.__exportStar(require("./GetEvidenceFoldersByAssessmentCommand"), exports);
|
|
33
34
|
tslib_1.__exportStar(require("./GetEvidenceFoldersByAssessmentControlCommand"), exports);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ShareRequestAction = exports.
|
|
3
|
+
exports.ShareRequestAction = exports.EvidenceFinderEnablementStatus = exports.EvidenceFinderBackfillStatus = exports.DeleteResources = exports.ExportDestinationType = exports.SettingAttribute = exports.ObjectTypeEnum = exports.ShareRequestType = exports.ControlType = exports.SourceType = exports.SourceSetUpOption = exports.KeywordInputType = exports.SourceFrequency = exports.ServiceQuotaExceededException = exports.ThrottlingException = exports.ValidationException = exports.ValidationExceptionReason = exports.ResourceNotFoundException = exports.InternalServerException = exports.AssessmentReportStatus = exports.ShareRequestStatus = exports.FrameworkType = exports.AssessmentStatus = exports.AssessmentReportDestinationType = exports.ControlSetStatus = exports.DelegationStatus = exports.RoleType = exports.ControlStatus = exports.ControlResponse = exports.ActionEnum = exports.AccountStatus = exports.AccessDeniedException = void 0;
|
|
4
4
|
const AuditManagerServiceException_1 = require("./AuditManagerServiceException");
|
|
5
5
|
class AccessDeniedException extends AuditManagerServiceException_1.AuditManagerServiceException {
|
|
6
6
|
constructor(opts) {
|
|
@@ -130,6 +130,19 @@ class ValidationException extends AuditManagerServiceException_1.AuditManagerSer
|
|
|
130
130
|
}
|
|
131
131
|
}
|
|
132
132
|
exports.ValidationException = ValidationException;
|
|
133
|
+
class ThrottlingException extends AuditManagerServiceException_1.AuditManagerServiceException {
|
|
134
|
+
constructor(opts) {
|
|
135
|
+
super({
|
|
136
|
+
name: "ThrottlingException",
|
|
137
|
+
$fault: "client",
|
|
138
|
+
...opts,
|
|
139
|
+
});
|
|
140
|
+
this.name = "ThrottlingException";
|
|
141
|
+
this.$fault = "client";
|
|
142
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
exports.ThrottlingException = ThrottlingException;
|
|
133
146
|
class ServiceQuotaExceededException extends AuditManagerServiceException_1.AuditManagerServiceException {
|
|
134
147
|
constructor(opts) {
|
|
135
148
|
super({
|
|
@@ -149,7 +162,9 @@ exports.SourceFrequency = {
|
|
|
149
162
|
WEEKLY: "WEEKLY",
|
|
150
163
|
};
|
|
151
164
|
exports.KeywordInputType = {
|
|
165
|
+
INPUT_TEXT: "INPUT_TEXT",
|
|
152
166
|
SELECT_FROM_LIST: "SELECT_FROM_LIST",
|
|
167
|
+
UPLOAD_FILE: "UPLOAD_FILE",
|
|
153
168
|
};
|
|
154
169
|
exports.SourceSetUpOption = {
|
|
155
170
|
PROCEDURAL_CONTROLS_MAPPING: "Procedural_Controls_Mapping",
|
|
@@ -180,12 +195,16 @@ exports.ObjectTypeEnum = {
|
|
|
180
195
|
exports.SettingAttribute = {
|
|
181
196
|
ALL: "ALL",
|
|
182
197
|
DEFAULT_ASSESSMENT_REPORTS_DESTINATION: "DEFAULT_ASSESSMENT_REPORTS_DESTINATION",
|
|
198
|
+
DEFAULT_EXPORT_DESTINATION: "DEFAULT_EXPORT_DESTINATION",
|
|
183
199
|
DEFAULT_PROCESS_OWNERS: "DEFAULT_PROCESS_OWNERS",
|
|
184
200
|
DEREGISTRATION_POLICY: "DEREGISTRATION_POLICY",
|
|
185
201
|
EVIDENCE_FINDER_ENABLEMENT: "EVIDENCE_FINDER_ENABLEMENT",
|
|
186
202
|
IS_AWS_ORG_ENABLED: "IS_AWS_ORG_ENABLED",
|
|
187
203
|
SNS_TOPIC: "SNS_TOPIC",
|
|
188
204
|
};
|
|
205
|
+
exports.ExportDestinationType = {
|
|
206
|
+
S3: "S3",
|
|
207
|
+
};
|
|
189
208
|
exports.DeleteResources = {
|
|
190
209
|
ALL: "ALL",
|
|
191
210
|
DEFAULT: "DEFAULT",
|
|
@@ -201,19 +220,6 @@ exports.EvidenceFinderEnablementStatus = {
|
|
|
201
220
|
ENABLED: "ENABLED",
|
|
202
221
|
ENABLE_IN_PROGRESS: "ENABLE_IN_PROGRESS",
|
|
203
222
|
};
|
|
204
|
-
class ThrottlingException extends AuditManagerServiceException_1.AuditManagerServiceException {
|
|
205
|
-
constructor(opts) {
|
|
206
|
-
super({
|
|
207
|
-
name: "ThrottlingException",
|
|
208
|
-
$fault: "client",
|
|
209
|
-
...opts,
|
|
210
|
-
});
|
|
211
|
-
this.name = "ThrottlingException";
|
|
212
|
-
this.$fault = "client";
|
|
213
|
-
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
exports.ThrottlingException = ThrottlingException;
|
|
217
223
|
exports.ShareRequestAction = {
|
|
218
224
|
ACCEPT: "ACCEPT",
|
|
219
225
|
DECLINE: "DECLINE",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.de_ValidateAssessmentReportIntegrityCommand = exports.de_UpdateSettingsCommand = exports.de_UpdateControlCommand = exports.de_UpdateAssessmentStatusCommand = exports.de_UpdateAssessmentFrameworkShareCommand = exports.de_UpdateAssessmentFrameworkCommand = exports.de_UpdateAssessmentControlSetStatusCommand = exports.de_UpdateAssessmentControlCommand = exports.de_UpdateAssessmentCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StartAssessmentFrameworkShareCommand = exports.de_RegisterOrganizationAdminAccountCommand = exports.de_RegisterAccountCommand = exports.de_ListTagsForResourceCommand = exports.de_ListNotificationsCommand = exports.de_ListKeywordsForDataSourceCommand = exports.de_ListControlsCommand = exports.de_ListControlInsightsByControlDomainCommand = exports.de_ListControlDomainInsightsByAssessmentCommand = exports.de_ListControlDomainInsightsCommand = exports.de_ListAssessmentsCommand = void 0;
|
|
3
|
+
exports.se_RegisterOrganizationAdminAccountCommand = exports.se_RegisterAccountCommand = exports.se_ListTagsForResourceCommand = exports.se_ListNotificationsCommand = exports.se_ListKeywordsForDataSourceCommand = exports.se_ListControlsCommand = exports.se_ListControlInsightsByControlDomainCommand = exports.se_ListControlDomainInsightsByAssessmentCommand = exports.se_ListControlDomainInsightsCommand = exports.se_ListAssessmentsCommand = exports.se_ListAssessmentReportsCommand = exports.se_ListAssessmentFrameworkShareRequestsCommand = exports.se_ListAssessmentFrameworksCommand = exports.se_ListAssessmentControlInsightsByControlDomainCommand = exports.se_GetSettingsCommand = exports.se_GetServicesInScopeCommand = exports.se_GetOrganizationAdminAccountCommand = exports.se_GetInsightsByAssessmentCommand = exports.se_GetInsightsCommand = exports.se_GetEvidenceFoldersByAssessmentControlCommand = exports.se_GetEvidenceFoldersByAssessmentCommand = exports.se_GetEvidenceFolderCommand = exports.se_GetEvidenceFileUploadUrlCommand = exports.se_GetEvidenceByEvidenceFolderCommand = exports.se_GetEvidenceCommand = exports.se_GetDelegationsCommand = exports.se_GetControlCommand = exports.se_GetChangeLogsCommand = exports.se_GetAssessmentReportUrlCommand = exports.se_GetAssessmentFrameworkCommand = exports.se_GetAssessmentCommand = exports.se_GetAccountStatusCommand = exports.se_DisassociateAssessmentReportEvidenceFolderCommand = exports.se_DeregisterOrganizationAdminAccountCommand = exports.se_DeregisterAccountCommand = exports.se_DeleteControlCommand = exports.se_DeleteAssessmentReportCommand = exports.se_DeleteAssessmentFrameworkShareCommand = exports.se_DeleteAssessmentFrameworkCommand = exports.se_DeleteAssessmentCommand = exports.se_CreateControlCommand = exports.se_CreateAssessmentReportCommand = exports.se_CreateAssessmentFrameworkCommand = exports.se_CreateAssessmentCommand = exports.se_BatchImportEvidenceToAssessmentControlCommand = exports.se_BatchDisassociateAssessmentReportEvidenceCommand = exports.se_BatchDeleteDelegationByAssessmentCommand = exports.se_BatchCreateDelegationByAssessmentCommand = exports.se_BatchAssociateAssessmentReportEvidenceCommand = exports.se_AssociateAssessmentReportEvidenceFolderCommand = void 0;
|
|
4
|
+
exports.de_ListAssessmentFrameworksCommand = exports.de_ListAssessmentControlInsightsByControlDomainCommand = exports.de_GetSettingsCommand = exports.de_GetServicesInScopeCommand = exports.de_GetOrganizationAdminAccountCommand = exports.de_GetInsightsByAssessmentCommand = exports.de_GetInsightsCommand = exports.de_GetEvidenceFoldersByAssessmentControlCommand = exports.de_GetEvidenceFoldersByAssessmentCommand = exports.de_GetEvidenceFolderCommand = exports.de_GetEvidenceFileUploadUrlCommand = exports.de_GetEvidenceByEvidenceFolderCommand = exports.de_GetEvidenceCommand = exports.de_GetDelegationsCommand = exports.de_GetControlCommand = exports.de_GetChangeLogsCommand = exports.de_GetAssessmentReportUrlCommand = exports.de_GetAssessmentFrameworkCommand = exports.de_GetAssessmentCommand = exports.de_GetAccountStatusCommand = exports.de_DisassociateAssessmentReportEvidenceFolderCommand = exports.de_DeregisterOrganizationAdminAccountCommand = exports.de_DeregisterAccountCommand = exports.de_DeleteControlCommand = exports.de_DeleteAssessmentReportCommand = exports.de_DeleteAssessmentFrameworkShareCommand = exports.de_DeleteAssessmentFrameworkCommand = exports.de_DeleteAssessmentCommand = exports.de_CreateControlCommand = exports.de_CreateAssessmentReportCommand = exports.de_CreateAssessmentFrameworkCommand = exports.de_CreateAssessmentCommand = exports.de_BatchImportEvidenceToAssessmentControlCommand = exports.de_BatchDisassociateAssessmentReportEvidenceCommand = exports.de_BatchDeleteDelegationByAssessmentCommand = exports.de_BatchCreateDelegationByAssessmentCommand = exports.de_BatchAssociateAssessmentReportEvidenceCommand = exports.de_AssociateAssessmentReportEvidenceFolderCommand = exports.se_ValidateAssessmentReportIntegrityCommand = exports.se_UpdateSettingsCommand = exports.se_UpdateControlCommand = exports.se_UpdateAssessmentStatusCommand = exports.se_UpdateAssessmentFrameworkShareCommand = exports.se_UpdateAssessmentFrameworkCommand = exports.se_UpdateAssessmentControlSetStatusCommand = exports.se_UpdateAssessmentControlCommand = exports.se_UpdateAssessmentCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StartAssessmentFrameworkShareCommand = void 0;
|
|
5
|
+
exports.de_ValidateAssessmentReportIntegrityCommand = exports.de_UpdateSettingsCommand = exports.de_UpdateControlCommand = exports.de_UpdateAssessmentStatusCommand = exports.de_UpdateAssessmentFrameworkShareCommand = exports.de_UpdateAssessmentFrameworkCommand = exports.de_UpdateAssessmentControlSetStatusCommand = exports.de_UpdateAssessmentControlCommand = exports.de_UpdateAssessmentCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StartAssessmentFrameworkShareCommand = exports.de_RegisterOrganizationAdminAccountCommand = exports.de_RegisterAccountCommand = exports.de_ListTagsForResourceCommand = exports.de_ListNotificationsCommand = exports.de_ListKeywordsForDataSourceCommand = exports.de_ListControlsCommand = exports.de_ListControlInsightsByControlDomainCommand = exports.de_ListControlDomainInsightsByAssessmentCommand = exports.de_ListControlDomainInsightsCommand = exports.de_ListAssessmentsCommand = exports.de_ListAssessmentReportsCommand = exports.de_ListAssessmentFrameworkShareRequestsCommand = void 0;
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
7
|
const protocol_http_1 = require("@smithy/protocol-http");
|
|
8
8
|
const AuditManagerServiceException_1 = require("../models/AuditManagerServiceException");
|
|
@@ -586,6 +586,26 @@ const se_GetEvidenceByEvidenceFolderCommand = async (input, context) => {
|
|
|
586
586
|
});
|
|
587
587
|
};
|
|
588
588
|
exports.se_GetEvidenceByEvidenceFolderCommand = se_GetEvidenceByEvidenceFolderCommand;
|
|
589
|
+
const se_GetEvidenceFileUploadUrlCommand = async (input, context) => {
|
|
590
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
591
|
+
const headers = {};
|
|
592
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/evidenceFileUploadUrl";
|
|
593
|
+
const query = (0, smithy_client_1.map)({
|
|
594
|
+
fileName: [, (0, smithy_client_1.expectNonNull)(input.fileName, `fileName`)],
|
|
595
|
+
});
|
|
596
|
+
let body;
|
|
597
|
+
return new protocol_http_1.HttpRequest({
|
|
598
|
+
protocol,
|
|
599
|
+
hostname,
|
|
600
|
+
port,
|
|
601
|
+
method: "GET",
|
|
602
|
+
headers,
|
|
603
|
+
path: resolvedPath,
|
|
604
|
+
query,
|
|
605
|
+
body,
|
|
606
|
+
});
|
|
607
|
+
};
|
|
608
|
+
exports.se_GetEvidenceFileUploadUrlCommand = se_GetEvidenceFileUploadUrlCommand;
|
|
589
609
|
const se_GetEvidenceFolderCommand = async (input, context) => {
|
|
590
610
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
591
611
|
const headers = {};
|
|
@@ -1300,6 +1320,7 @@ const se_UpdateSettingsCommand = async (input, context) => {
|
|
|
1300
1320
|
let body;
|
|
1301
1321
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1302
1322
|
defaultAssessmentReportsDestination: (_) => (0, smithy_client_1._json)(_),
|
|
1323
|
+
defaultExportDestination: (_) => (0, smithy_client_1._json)(_),
|
|
1303
1324
|
defaultProcessOwners: (_) => (0, smithy_client_1._json)(_),
|
|
1304
1325
|
deregistrationPolicy: (_) => (0, smithy_client_1._json)(_),
|
|
1305
1326
|
evidenceFinderEnabled: [],
|
|
@@ -1583,6 +1604,9 @@ const de_BatchImportEvidenceToAssessmentControlCommandError = async (output, con
|
|
|
1583
1604
|
case "ResourceNotFoundException":
|
|
1584
1605
|
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
1585
1606
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1607
|
+
case "ThrottlingException":
|
|
1608
|
+
case "com.amazonaws.auditmanager#ThrottlingException":
|
|
1609
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1586
1610
|
case "ValidationException":
|
|
1587
1611
|
case "com.amazonaws.auditmanager#ValidationException":
|
|
1588
1612
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
@@ -2471,6 +2495,50 @@ const de_GetEvidenceByEvidenceFolderCommandError = async (output, context) => {
|
|
|
2471
2495
|
});
|
|
2472
2496
|
}
|
|
2473
2497
|
};
|
|
2498
|
+
const de_GetEvidenceFileUploadUrlCommand = async (output, context) => {
|
|
2499
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2500
|
+
return de_GetEvidenceFileUploadUrlCommandError(output, context);
|
|
2501
|
+
}
|
|
2502
|
+
const contents = (0, smithy_client_1.map)({
|
|
2503
|
+
$metadata: deserializeMetadata(output),
|
|
2504
|
+
});
|
|
2505
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2506
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2507
|
+
evidenceFileName: smithy_client_1.expectString,
|
|
2508
|
+
uploadUrl: smithy_client_1.expectString,
|
|
2509
|
+
});
|
|
2510
|
+
Object.assign(contents, doc);
|
|
2511
|
+
return contents;
|
|
2512
|
+
};
|
|
2513
|
+
exports.de_GetEvidenceFileUploadUrlCommand = de_GetEvidenceFileUploadUrlCommand;
|
|
2514
|
+
const de_GetEvidenceFileUploadUrlCommandError = async (output, context) => {
|
|
2515
|
+
const parsedOutput = {
|
|
2516
|
+
...output,
|
|
2517
|
+
body: await parseErrorBody(output.body, context),
|
|
2518
|
+
};
|
|
2519
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2520
|
+
switch (errorCode) {
|
|
2521
|
+
case "AccessDeniedException":
|
|
2522
|
+
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
2523
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2524
|
+
case "InternalServerException":
|
|
2525
|
+
case "com.amazonaws.auditmanager#InternalServerException":
|
|
2526
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2527
|
+
case "ThrottlingException":
|
|
2528
|
+
case "com.amazonaws.auditmanager#ThrottlingException":
|
|
2529
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2530
|
+
case "ValidationException":
|
|
2531
|
+
case "com.amazonaws.auditmanager#ValidationException":
|
|
2532
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2533
|
+
default:
|
|
2534
|
+
const parsedBody = parsedOutput.body;
|
|
2535
|
+
return throwDefaultError({
|
|
2536
|
+
output,
|
|
2537
|
+
parsedBody,
|
|
2538
|
+
errorCode,
|
|
2539
|
+
});
|
|
2540
|
+
}
|
|
2541
|
+
};
|
|
2474
2542
|
const de_GetEvidenceFolderCommand = async (output, context) => {
|
|
2475
2543
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2476
2544
|
return de_GetEvidenceFolderCommandError(output, context);
|
package/dist-es/AuditManager.js
CHANGED
|
@@ -27,6 +27,7 @@ import { GetControlCommand } from "./commands/GetControlCommand";
|
|
|
27
27
|
import { GetDelegationsCommand, } from "./commands/GetDelegationsCommand";
|
|
28
28
|
import { GetEvidenceByEvidenceFolderCommand, } from "./commands/GetEvidenceByEvidenceFolderCommand";
|
|
29
29
|
import { GetEvidenceCommand } from "./commands/GetEvidenceCommand";
|
|
30
|
+
import { GetEvidenceFileUploadUrlCommand, } from "./commands/GetEvidenceFileUploadUrlCommand";
|
|
30
31
|
import { GetEvidenceFolderCommand, } from "./commands/GetEvidenceFolderCommand";
|
|
31
32
|
import { GetEvidenceFoldersByAssessmentCommand, } from "./commands/GetEvidenceFoldersByAssessmentCommand";
|
|
32
33
|
import { GetEvidenceFoldersByAssessmentControlCommand, } from "./commands/GetEvidenceFoldersByAssessmentControlCommand";
|
|
@@ -89,6 +90,7 @@ const commands = {
|
|
|
89
90
|
GetDelegationsCommand,
|
|
90
91
|
GetEvidenceCommand,
|
|
91
92
|
GetEvidenceByEvidenceFolderCommand,
|
|
93
|
+
GetEvidenceFileUploadUrlCommand,
|
|
92
94
|
GetEvidenceFolderCommand,
|
|
93
95
|
GetEvidenceFoldersByAssessmentCommand,
|
|
94
96
|
GetEvidenceFoldersByAssessmentControlCommand,
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { de_GetEvidenceFileUploadUrlCommand, se_GetEvidenceFileUploadUrlCommand } from "../protocols/Aws_restJson1";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class GetEvidenceFileUploadUrlCommand extends $Command {
|
|
7
|
+
static getEndpointParameterInstructions() {
|
|
8
|
+
return {
|
|
9
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
10
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
11
|
+
Region: { type: "builtInParams", name: "region" },
|
|
12
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
constructor(input) {
|
|
16
|
+
super();
|
|
17
|
+
this.input = input;
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, GetEvidenceFileUploadUrlCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "AuditManagerClient";
|
|
25
|
+
const commandName = "GetEvidenceFileUploadUrlCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: (_) => _,
|
|
31
|
+
outputFilterSensitiveLog: (_) => _,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return se_GetEvidenceFileUploadUrlCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return de_GetEvidenceFileUploadUrlCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -25,6 +25,7 @@ export * from "./GetControlCommand";
|
|
|
25
25
|
export * from "./GetDelegationsCommand";
|
|
26
26
|
export * from "./GetEvidenceByEvidenceFolderCommand";
|
|
27
27
|
export * from "./GetEvidenceCommand";
|
|
28
|
+
export * from "./GetEvidenceFileUploadUrlCommand";
|
|
28
29
|
export * from "./GetEvidenceFolderCommand";
|
|
29
30
|
export * from "./GetEvidenceFoldersByAssessmentCommand";
|
|
30
31
|
export * from "./GetEvidenceFoldersByAssessmentControlCommand";
|
|
@@ -123,6 +123,18 @@ export class ValidationException extends __BaseException {
|
|
|
123
123
|
this.fields = opts.fields;
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
|
+
export class ThrottlingException extends __BaseException {
|
|
127
|
+
constructor(opts) {
|
|
128
|
+
super({
|
|
129
|
+
name: "ThrottlingException",
|
|
130
|
+
$fault: "client",
|
|
131
|
+
...opts,
|
|
132
|
+
});
|
|
133
|
+
this.name = "ThrottlingException";
|
|
134
|
+
this.$fault = "client";
|
|
135
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
126
138
|
export class ServiceQuotaExceededException extends __BaseException {
|
|
127
139
|
constructor(opts) {
|
|
128
140
|
super({
|
|
@@ -141,7 +153,9 @@ export const SourceFrequency = {
|
|
|
141
153
|
WEEKLY: "WEEKLY",
|
|
142
154
|
};
|
|
143
155
|
export const KeywordInputType = {
|
|
156
|
+
INPUT_TEXT: "INPUT_TEXT",
|
|
144
157
|
SELECT_FROM_LIST: "SELECT_FROM_LIST",
|
|
158
|
+
UPLOAD_FILE: "UPLOAD_FILE",
|
|
145
159
|
};
|
|
146
160
|
export const SourceSetUpOption = {
|
|
147
161
|
PROCEDURAL_CONTROLS_MAPPING: "Procedural_Controls_Mapping",
|
|
@@ -172,12 +186,16 @@ export const ObjectTypeEnum = {
|
|
|
172
186
|
export const SettingAttribute = {
|
|
173
187
|
ALL: "ALL",
|
|
174
188
|
DEFAULT_ASSESSMENT_REPORTS_DESTINATION: "DEFAULT_ASSESSMENT_REPORTS_DESTINATION",
|
|
189
|
+
DEFAULT_EXPORT_DESTINATION: "DEFAULT_EXPORT_DESTINATION",
|
|
175
190
|
DEFAULT_PROCESS_OWNERS: "DEFAULT_PROCESS_OWNERS",
|
|
176
191
|
DEREGISTRATION_POLICY: "DEREGISTRATION_POLICY",
|
|
177
192
|
EVIDENCE_FINDER_ENABLEMENT: "EVIDENCE_FINDER_ENABLEMENT",
|
|
178
193
|
IS_AWS_ORG_ENABLED: "IS_AWS_ORG_ENABLED",
|
|
179
194
|
SNS_TOPIC: "SNS_TOPIC",
|
|
180
195
|
};
|
|
196
|
+
export const ExportDestinationType = {
|
|
197
|
+
S3: "S3",
|
|
198
|
+
};
|
|
181
199
|
export const DeleteResources = {
|
|
182
200
|
ALL: "ALL",
|
|
183
201
|
DEFAULT: "DEFAULT",
|
|
@@ -193,18 +211,6 @@ export const EvidenceFinderEnablementStatus = {
|
|
|
193
211
|
ENABLED: "ENABLED",
|
|
194
212
|
ENABLE_IN_PROGRESS: "ENABLE_IN_PROGRESS",
|
|
195
213
|
};
|
|
196
|
-
export class ThrottlingException extends __BaseException {
|
|
197
|
-
constructor(opts) {
|
|
198
|
-
super({
|
|
199
|
-
name: "ThrottlingException",
|
|
200
|
-
$fault: "client",
|
|
201
|
-
...opts,
|
|
202
|
-
});
|
|
203
|
-
this.name = "ThrottlingException";
|
|
204
|
-
this.$fault = "client";
|
|
205
|
-
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
214
|
export const ShareRequestAction = {
|
|
209
215
|
ACCEPT: "ACCEPT",
|
|
210
216
|
DECLINE: "DECLINE",
|
|
@@ -554,6 +554,25 @@ export const se_GetEvidenceByEvidenceFolderCommand = async (input, context) => {
|
|
|
554
554
|
body,
|
|
555
555
|
});
|
|
556
556
|
};
|
|
557
|
+
export const se_GetEvidenceFileUploadUrlCommand = async (input, context) => {
|
|
558
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
559
|
+
const headers = {};
|
|
560
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/evidenceFileUploadUrl";
|
|
561
|
+
const query = map({
|
|
562
|
+
fileName: [, __expectNonNull(input.fileName, `fileName`)],
|
|
563
|
+
});
|
|
564
|
+
let body;
|
|
565
|
+
return new __HttpRequest({
|
|
566
|
+
protocol,
|
|
567
|
+
hostname,
|
|
568
|
+
port,
|
|
569
|
+
method: "GET",
|
|
570
|
+
headers,
|
|
571
|
+
path: resolvedPath,
|
|
572
|
+
query,
|
|
573
|
+
body,
|
|
574
|
+
});
|
|
575
|
+
};
|
|
557
576
|
export const se_GetEvidenceFolderCommand = async (input, context) => {
|
|
558
577
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
559
578
|
const headers = {};
|
|
@@ -1236,6 +1255,7 @@ export const se_UpdateSettingsCommand = async (input, context) => {
|
|
|
1236
1255
|
let body;
|
|
1237
1256
|
body = JSON.stringify(take(input, {
|
|
1238
1257
|
defaultAssessmentReportsDestination: (_) => _json(_),
|
|
1258
|
+
defaultExportDestination: (_) => _json(_),
|
|
1239
1259
|
defaultProcessOwners: (_) => _json(_),
|
|
1240
1260
|
deregistrationPolicy: (_) => _json(_),
|
|
1241
1261
|
evidenceFinderEnabled: [],
|
|
@@ -1511,6 +1531,9 @@ const de_BatchImportEvidenceToAssessmentControlCommandError = async (output, con
|
|
|
1511
1531
|
case "ResourceNotFoundException":
|
|
1512
1532
|
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
1513
1533
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1534
|
+
case "ThrottlingException":
|
|
1535
|
+
case "com.amazonaws.auditmanager#ThrottlingException":
|
|
1536
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1514
1537
|
case "ValidationException":
|
|
1515
1538
|
case "com.amazonaws.auditmanager#ValidationException":
|
|
1516
1539
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
@@ -2378,6 +2401,49 @@ const de_GetEvidenceByEvidenceFolderCommandError = async (output, context) => {
|
|
|
2378
2401
|
});
|
|
2379
2402
|
}
|
|
2380
2403
|
};
|
|
2404
|
+
export const de_GetEvidenceFileUploadUrlCommand = async (output, context) => {
|
|
2405
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2406
|
+
return de_GetEvidenceFileUploadUrlCommandError(output, context);
|
|
2407
|
+
}
|
|
2408
|
+
const contents = map({
|
|
2409
|
+
$metadata: deserializeMetadata(output),
|
|
2410
|
+
});
|
|
2411
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2412
|
+
const doc = take(data, {
|
|
2413
|
+
evidenceFileName: __expectString,
|
|
2414
|
+
uploadUrl: __expectString,
|
|
2415
|
+
});
|
|
2416
|
+
Object.assign(contents, doc);
|
|
2417
|
+
return contents;
|
|
2418
|
+
};
|
|
2419
|
+
const de_GetEvidenceFileUploadUrlCommandError = async (output, context) => {
|
|
2420
|
+
const parsedOutput = {
|
|
2421
|
+
...output,
|
|
2422
|
+
body: await parseErrorBody(output.body, context),
|
|
2423
|
+
};
|
|
2424
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2425
|
+
switch (errorCode) {
|
|
2426
|
+
case "AccessDeniedException":
|
|
2427
|
+
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
2428
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2429
|
+
case "InternalServerException":
|
|
2430
|
+
case "com.amazonaws.auditmanager#InternalServerException":
|
|
2431
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2432
|
+
case "ThrottlingException":
|
|
2433
|
+
case "com.amazonaws.auditmanager#ThrottlingException":
|
|
2434
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2435
|
+
case "ValidationException":
|
|
2436
|
+
case "com.amazonaws.auditmanager#ValidationException":
|
|
2437
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2438
|
+
default:
|
|
2439
|
+
const parsedBody = parsedOutput.body;
|
|
2440
|
+
return throwDefaultError({
|
|
2441
|
+
output,
|
|
2442
|
+
parsedBody,
|
|
2443
|
+
errorCode,
|
|
2444
|
+
});
|
|
2445
|
+
}
|
|
2446
|
+
};
|
|
2381
2447
|
export const de_GetEvidenceFolderCommand = async (output, context) => {
|
|
2382
2448
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2383
2449
|
return de_GetEvidenceFolderCommandError(output, context);
|
|
@@ -27,6 +27,7 @@ import { GetControlCommandInput, GetControlCommandOutput } from "./commands/GetC
|
|
|
27
27
|
import { GetDelegationsCommandInput, GetDelegationsCommandOutput } from "./commands/GetDelegationsCommand";
|
|
28
28
|
import { GetEvidenceByEvidenceFolderCommandInput, GetEvidenceByEvidenceFolderCommandOutput } from "./commands/GetEvidenceByEvidenceFolderCommand";
|
|
29
29
|
import { GetEvidenceCommandInput, GetEvidenceCommandOutput } from "./commands/GetEvidenceCommand";
|
|
30
|
+
import { GetEvidenceFileUploadUrlCommandInput, GetEvidenceFileUploadUrlCommandOutput } from "./commands/GetEvidenceFileUploadUrlCommand";
|
|
30
31
|
import { GetEvidenceFolderCommandInput, GetEvidenceFolderCommandOutput } from "./commands/GetEvidenceFolderCommand";
|
|
31
32
|
import { GetEvidenceFoldersByAssessmentCommandInput, GetEvidenceFoldersByAssessmentCommandOutput } from "./commands/GetEvidenceFoldersByAssessmentCommand";
|
|
32
33
|
import { GetEvidenceFoldersByAssessmentControlCommandInput, GetEvidenceFoldersByAssessmentControlCommandOutput } from "./commands/GetEvidenceFoldersByAssessmentControlCommand";
|
|
@@ -224,6 +225,12 @@ export interface AuditManager {
|
|
|
224
225
|
getEvidenceByEvidenceFolder(args: GetEvidenceByEvidenceFolderCommandInput, options?: __HttpHandlerOptions): Promise<GetEvidenceByEvidenceFolderCommandOutput>;
|
|
225
226
|
getEvidenceByEvidenceFolder(args: GetEvidenceByEvidenceFolderCommandInput, cb: (err: any, data?: GetEvidenceByEvidenceFolderCommandOutput) => void): void;
|
|
226
227
|
getEvidenceByEvidenceFolder(args: GetEvidenceByEvidenceFolderCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetEvidenceByEvidenceFolderCommandOutput) => void): void;
|
|
228
|
+
/**
|
|
229
|
+
* @see {@link GetEvidenceFileUploadUrlCommand}
|
|
230
|
+
*/
|
|
231
|
+
getEvidenceFileUploadUrl(args: GetEvidenceFileUploadUrlCommandInput, options?: __HttpHandlerOptions): Promise<GetEvidenceFileUploadUrlCommandOutput>;
|
|
232
|
+
getEvidenceFileUploadUrl(args: GetEvidenceFileUploadUrlCommandInput, cb: (err: any, data?: GetEvidenceFileUploadUrlCommandOutput) => void): void;
|
|
233
|
+
getEvidenceFileUploadUrl(args: GetEvidenceFileUploadUrlCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetEvidenceFileUploadUrlCommandOutput) => void): void;
|
|
227
234
|
/**
|
|
228
235
|
* @see {@link GetEvidenceFolderCommand}
|
|
229
236
|
*/
|
|
@@ -35,6 +35,7 @@ import { GetControlCommandInput, GetControlCommandOutput } from "./commands/GetC
|
|
|
35
35
|
import { GetDelegationsCommandInput, GetDelegationsCommandOutput } from "./commands/GetDelegationsCommand";
|
|
36
36
|
import { GetEvidenceByEvidenceFolderCommandInput, GetEvidenceByEvidenceFolderCommandOutput } from "./commands/GetEvidenceByEvidenceFolderCommand";
|
|
37
37
|
import { GetEvidenceCommandInput, GetEvidenceCommandOutput } from "./commands/GetEvidenceCommand";
|
|
38
|
+
import { GetEvidenceFileUploadUrlCommandInput, GetEvidenceFileUploadUrlCommandOutput } from "./commands/GetEvidenceFileUploadUrlCommand";
|
|
38
39
|
import { GetEvidenceFolderCommandInput, GetEvidenceFolderCommandOutput } from "./commands/GetEvidenceFolderCommand";
|
|
39
40
|
import { GetEvidenceFoldersByAssessmentCommandInput, GetEvidenceFoldersByAssessmentCommandOutput } from "./commands/GetEvidenceFoldersByAssessmentCommand";
|
|
40
41
|
import { GetEvidenceFoldersByAssessmentControlCommandInput, GetEvidenceFoldersByAssessmentControlCommandOutput } from "./commands/GetEvidenceFoldersByAssessmentControlCommand";
|
|
@@ -74,11 +75,11 @@ export { __Client };
|
|
|
74
75
|
/**
|
|
75
76
|
* @public
|
|
76
77
|
*/
|
|
77
|
-
export type ServiceInputTypes = AssociateAssessmentReportEvidenceFolderCommandInput | BatchAssociateAssessmentReportEvidenceCommandInput | BatchCreateDelegationByAssessmentCommandInput | BatchDeleteDelegationByAssessmentCommandInput | BatchDisassociateAssessmentReportEvidenceCommandInput | BatchImportEvidenceToAssessmentControlCommandInput | CreateAssessmentCommandInput | CreateAssessmentFrameworkCommandInput | CreateAssessmentReportCommandInput | CreateControlCommandInput | DeleteAssessmentCommandInput | DeleteAssessmentFrameworkCommandInput | DeleteAssessmentFrameworkShareCommandInput | DeleteAssessmentReportCommandInput | DeleteControlCommandInput | DeregisterAccountCommandInput | DeregisterOrganizationAdminAccountCommandInput | DisassociateAssessmentReportEvidenceFolderCommandInput | GetAccountStatusCommandInput | GetAssessmentCommandInput | GetAssessmentFrameworkCommandInput | GetAssessmentReportUrlCommandInput | GetChangeLogsCommandInput | GetControlCommandInput | GetDelegationsCommandInput | GetEvidenceByEvidenceFolderCommandInput | GetEvidenceCommandInput | GetEvidenceFolderCommandInput | GetEvidenceFoldersByAssessmentCommandInput | GetEvidenceFoldersByAssessmentControlCommandInput | GetInsightsByAssessmentCommandInput | GetInsightsCommandInput | GetOrganizationAdminAccountCommandInput | GetServicesInScopeCommandInput | GetSettingsCommandInput | ListAssessmentControlInsightsByControlDomainCommandInput | ListAssessmentFrameworkShareRequestsCommandInput | ListAssessmentFrameworksCommandInput | ListAssessmentReportsCommandInput | ListAssessmentsCommandInput | ListControlDomainInsightsByAssessmentCommandInput | ListControlDomainInsightsCommandInput | ListControlInsightsByControlDomainCommandInput | ListControlsCommandInput | ListKeywordsForDataSourceCommandInput | ListNotificationsCommandInput | ListTagsForResourceCommandInput | RegisterAccountCommandInput | RegisterOrganizationAdminAccountCommandInput | StartAssessmentFrameworkShareCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateAssessmentCommandInput | UpdateAssessmentControlCommandInput | UpdateAssessmentControlSetStatusCommandInput | UpdateAssessmentFrameworkCommandInput | UpdateAssessmentFrameworkShareCommandInput | UpdateAssessmentStatusCommandInput | UpdateControlCommandInput | UpdateSettingsCommandInput | ValidateAssessmentReportIntegrityCommandInput;
|
|
78
|
+
export type ServiceInputTypes = AssociateAssessmentReportEvidenceFolderCommandInput | BatchAssociateAssessmentReportEvidenceCommandInput | BatchCreateDelegationByAssessmentCommandInput | BatchDeleteDelegationByAssessmentCommandInput | BatchDisassociateAssessmentReportEvidenceCommandInput | BatchImportEvidenceToAssessmentControlCommandInput | CreateAssessmentCommandInput | CreateAssessmentFrameworkCommandInput | CreateAssessmentReportCommandInput | CreateControlCommandInput | DeleteAssessmentCommandInput | DeleteAssessmentFrameworkCommandInput | DeleteAssessmentFrameworkShareCommandInput | DeleteAssessmentReportCommandInput | DeleteControlCommandInput | DeregisterAccountCommandInput | DeregisterOrganizationAdminAccountCommandInput | DisassociateAssessmentReportEvidenceFolderCommandInput | GetAccountStatusCommandInput | GetAssessmentCommandInput | GetAssessmentFrameworkCommandInput | GetAssessmentReportUrlCommandInput | GetChangeLogsCommandInput | GetControlCommandInput | GetDelegationsCommandInput | GetEvidenceByEvidenceFolderCommandInput | GetEvidenceCommandInput | GetEvidenceFileUploadUrlCommandInput | GetEvidenceFolderCommandInput | GetEvidenceFoldersByAssessmentCommandInput | GetEvidenceFoldersByAssessmentControlCommandInput | GetInsightsByAssessmentCommandInput | GetInsightsCommandInput | GetOrganizationAdminAccountCommandInput | GetServicesInScopeCommandInput | GetSettingsCommandInput | ListAssessmentControlInsightsByControlDomainCommandInput | ListAssessmentFrameworkShareRequestsCommandInput | ListAssessmentFrameworksCommandInput | ListAssessmentReportsCommandInput | ListAssessmentsCommandInput | ListControlDomainInsightsByAssessmentCommandInput | ListControlDomainInsightsCommandInput | ListControlInsightsByControlDomainCommandInput | ListControlsCommandInput | ListKeywordsForDataSourceCommandInput | ListNotificationsCommandInput | ListTagsForResourceCommandInput | RegisterAccountCommandInput | RegisterOrganizationAdminAccountCommandInput | StartAssessmentFrameworkShareCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateAssessmentCommandInput | UpdateAssessmentControlCommandInput | UpdateAssessmentControlSetStatusCommandInput | UpdateAssessmentFrameworkCommandInput | UpdateAssessmentFrameworkShareCommandInput | UpdateAssessmentStatusCommandInput | UpdateControlCommandInput | UpdateSettingsCommandInput | ValidateAssessmentReportIntegrityCommandInput;
|
|
78
79
|
/**
|
|
79
80
|
* @public
|
|
80
81
|
*/
|
|
81
|
-
export type ServiceOutputTypes = AssociateAssessmentReportEvidenceFolderCommandOutput | BatchAssociateAssessmentReportEvidenceCommandOutput | BatchCreateDelegationByAssessmentCommandOutput | BatchDeleteDelegationByAssessmentCommandOutput | BatchDisassociateAssessmentReportEvidenceCommandOutput | BatchImportEvidenceToAssessmentControlCommandOutput | CreateAssessmentCommandOutput | CreateAssessmentFrameworkCommandOutput | CreateAssessmentReportCommandOutput | CreateControlCommandOutput | DeleteAssessmentCommandOutput | DeleteAssessmentFrameworkCommandOutput | DeleteAssessmentFrameworkShareCommandOutput | DeleteAssessmentReportCommandOutput | DeleteControlCommandOutput | DeregisterAccountCommandOutput | DeregisterOrganizationAdminAccountCommandOutput | DisassociateAssessmentReportEvidenceFolderCommandOutput | GetAccountStatusCommandOutput | GetAssessmentCommandOutput | GetAssessmentFrameworkCommandOutput | GetAssessmentReportUrlCommandOutput | GetChangeLogsCommandOutput | GetControlCommandOutput | GetDelegationsCommandOutput | GetEvidenceByEvidenceFolderCommandOutput | GetEvidenceCommandOutput | GetEvidenceFolderCommandOutput | GetEvidenceFoldersByAssessmentCommandOutput | GetEvidenceFoldersByAssessmentControlCommandOutput | GetInsightsByAssessmentCommandOutput | GetInsightsCommandOutput | GetOrganizationAdminAccountCommandOutput | GetServicesInScopeCommandOutput | GetSettingsCommandOutput | ListAssessmentControlInsightsByControlDomainCommandOutput | ListAssessmentFrameworkShareRequestsCommandOutput | ListAssessmentFrameworksCommandOutput | ListAssessmentReportsCommandOutput | ListAssessmentsCommandOutput | ListControlDomainInsightsByAssessmentCommandOutput | ListControlDomainInsightsCommandOutput | ListControlInsightsByControlDomainCommandOutput | ListControlsCommandOutput | ListKeywordsForDataSourceCommandOutput | ListNotificationsCommandOutput | ListTagsForResourceCommandOutput | RegisterAccountCommandOutput | RegisterOrganizationAdminAccountCommandOutput | StartAssessmentFrameworkShareCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateAssessmentCommandOutput | UpdateAssessmentControlCommandOutput | UpdateAssessmentControlSetStatusCommandOutput | UpdateAssessmentFrameworkCommandOutput | UpdateAssessmentFrameworkShareCommandOutput | UpdateAssessmentStatusCommandOutput | UpdateControlCommandOutput | UpdateSettingsCommandOutput | ValidateAssessmentReportIntegrityCommandOutput;
|
|
82
|
+
export type ServiceOutputTypes = AssociateAssessmentReportEvidenceFolderCommandOutput | BatchAssociateAssessmentReportEvidenceCommandOutput | BatchCreateDelegationByAssessmentCommandOutput | BatchDeleteDelegationByAssessmentCommandOutput | BatchDisassociateAssessmentReportEvidenceCommandOutput | BatchImportEvidenceToAssessmentControlCommandOutput | CreateAssessmentCommandOutput | CreateAssessmentFrameworkCommandOutput | CreateAssessmentReportCommandOutput | CreateControlCommandOutput | DeleteAssessmentCommandOutput | DeleteAssessmentFrameworkCommandOutput | DeleteAssessmentFrameworkShareCommandOutput | DeleteAssessmentReportCommandOutput | DeleteControlCommandOutput | DeregisterAccountCommandOutput | DeregisterOrganizationAdminAccountCommandOutput | DisassociateAssessmentReportEvidenceFolderCommandOutput | GetAccountStatusCommandOutput | GetAssessmentCommandOutput | GetAssessmentFrameworkCommandOutput | GetAssessmentReportUrlCommandOutput | GetChangeLogsCommandOutput | GetControlCommandOutput | GetDelegationsCommandOutput | GetEvidenceByEvidenceFolderCommandOutput | GetEvidenceCommandOutput | GetEvidenceFileUploadUrlCommandOutput | GetEvidenceFolderCommandOutput | GetEvidenceFoldersByAssessmentCommandOutput | GetEvidenceFoldersByAssessmentControlCommandOutput | GetInsightsByAssessmentCommandOutput | GetInsightsCommandOutput | GetOrganizationAdminAccountCommandOutput | GetServicesInScopeCommandOutput | GetSettingsCommandOutput | ListAssessmentControlInsightsByControlDomainCommandOutput | ListAssessmentFrameworkShareRequestsCommandOutput | ListAssessmentFrameworksCommandOutput | ListAssessmentReportsCommandOutput | ListAssessmentsCommandOutput | ListControlDomainInsightsByAssessmentCommandOutput | ListControlDomainInsightsCommandOutput | ListControlInsightsByControlDomainCommandOutput | ListControlsCommandOutput | ListKeywordsForDataSourceCommandOutput | ListNotificationsCommandOutput | ListTagsForResourceCommandOutput | RegisterAccountCommandOutput | RegisterOrganizationAdminAccountCommandOutput | StartAssessmentFrameworkShareCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateAssessmentCommandOutput | UpdateAssessmentControlCommandOutput | UpdateAssessmentControlSetStatusCommandOutput | UpdateAssessmentFrameworkCommandOutput | UpdateAssessmentFrameworkShareCommandOutput | UpdateAssessmentStatusCommandOutput | UpdateControlCommandOutput | UpdateSettingsCommandOutput | ValidateAssessmentReportIntegrityCommandOutput;
|
|
82
83
|
/**
|
|
83
84
|
* @public
|
|
84
85
|
*/
|
|
@@ -23,16 +23,20 @@ export interface BatchImportEvidenceToAssessmentControlCommandOutput extends Bat
|
|
|
23
23
|
}
|
|
24
24
|
/**
|
|
25
25
|
* @public
|
|
26
|
-
* <p>
|
|
27
|
-
* You can
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
* assessment. For instructions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateBucket.html">CreateBucket</a> and <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutObject.html">PutObject</a> in
|
|
31
|
-
* the <i>Amazon Simple Storage Service API Reference.</i>
|
|
32
|
-
* </p>
|
|
26
|
+
* <p>Adds one or more pieces of evidence to a control in an Audit Manager assessment. </p>
|
|
27
|
+
* <p>You can import manual evidence from any S3 bucket by specifying the S3 URI of the
|
|
28
|
+
* object. You can also upload a file from your browser, or enter plain text in response to a
|
|
29
|
+
* risk assessment question. </p>
|
|
33
30
|
* <p>The following restrictions apply to this action:</p>
|
|
34
31
|
* <ul>
|
|
35
32
|
* <li>
|
|
33
|
+
* <p>
|
|
34
|
+
* <code>manualEvidence</code> can be only one of the following:
|
|
35
|
+
* <code>evidenceFileName</code>, <code>s3ResourcePath</code>, or
|
|
36
|
+
* <code>textResponse</code>
|
|
37
|
+
* </p>
|
|
38
|
+
* </li>
|
|
39
|
+
* <li>
|
|
36
40
|
* <p>Maximum size of an individual evidence file: 100 MB</p>
|
|
37
41
|
* </li>
|
|
38
42
|
* <li>
|
|
@@ -58,6 +62,8 @@ export interface BatchImportEvidenceToAssessmentControlCommandOutput extends Bat
|
|
|
58
62
|
* manualEvidence: [ // ManualEvidenceList // required
|
|
59
63
|
* { // ManualEvidence
|
|
60
64
|
* s3ResourcePath: "STRING_VALUE",
|
|
65
|
+
* textResponse: "STRING_VALUE",
|
|
66
|
+
* evidenceFileName: "STRING_VALUE",
|
|
61
67
|
* },
|
|
62
68
|
* ],
|
|
63
69
|
* };
|
|
@@ -68,6 +74,8 @@ export interface BatchImportEvidenceToAssessmentControlCommandOutput extends Bat
|
|
|
68
74
|
* // { // BatchImportEvidenceToAssessmentControlError
|
|
69
75
|
* // manualEvidence: { // ManualEvidence
|
|
70
76
|
* // s3ResourcePath: "STRING_VALUE",
|
|
77
|
+
* // textResponse: "STRING_VALUE",
|
|
78
|
+
* // evidenceFileName: "STRING_VALUE",
|
|
71
79
|
* // },
|
|
72
80
|
* // errorCode: "STRING_VALUE",
|
|
73
81
|
* // errorMessage: "STRING_VALUE",
|
|
@@ -94,6 +102,9 @@ export interface BatchImportEvidenceToAssessmentControlCommandOutput extends Bat
|
|
|
94
102
|
* @throws {@link ResourceNotFoundException} (client fault)
|
|
95
103
|
* <p> The resource that's specified in the request can't be found. </p>
|
|
96
104
|
*
|
|
105
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
106
|
+
* <p>The request was denied due to request throttling.</p>
|
|
107
|
+
*
|
|
97
108
|
* @throws {@link ValidationException} (client fault)
|
|
98
109
|
* <p> The request has invalid or missing parameters. </p>
|
|
99
110
|
*
|