- Navigation GuideYou are on a Command (operation) page with structural examples. Use the navigation breadcrumb if you would like to return to the Client landing page.
BatchDeleteDelegationByAssessmentCommand
Deletes a batch of delegations for an assessment in Audit Manager.
Example Syntax
Use a bare-bones client and the command you need to make an API call.
import { AuditManagerClient, BatchDeleteDelegationByAssessmentCommand } from "@aws-sdk/client-auditmanager"; // ES Modules import
// const { AuditManagerClient, BatchDeleteDelegationByAssessmentCommand } = require("@aws-sdk/client-auditmanager"); // CommonJS import
const client = new AuditManagerClient(config);
const input = { // BatchDeleteDelegationByAssessmentRequest
delegationIds: [ // DelegationIds // required
"STRING_VALUE",
],
assessmentId: "STRING_VALUE", // required
};
const command = new BatchDeleteDelegationByAssessmentCommand(input);
const response = await client.send(command);
// { // BatchDeleteDelegationByAssessmentResponse
// errors: [ // BatchDeleteDelegationByAssessmentErrors
// { // BatchDeleteDelegationByAssessmentError
// delegationId: "STRING_VALUE",
// errorCode: "STRING_VALUE",
// errorMessage: "STRING_VALUE",
// },
// ],
// };
BatchDeleteDelegationByAssessmentCommand Input
See BatchDeleteDelegationByAssessmentCommandInput for more details
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
assessmentId Required | string | undefined | The identifier for the assessment. |
delegationIds Required | string[] | undefined | The identifiers for the delegations. |
BatchDeleteDelegationByAssessmentCommand Output
See BatchDeleteDelegationByAssessmentCommandOutput for details
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
$metadata Required | ResponseMetadata | Metadata pertaining to this request. |
errors | BatchDeleteDelegationByAssessmentError[] | undefined | A list of errors that the |
Throws
Name | Fault | Details |
---|
Name | Fault | Details |
---|---|---|
AccessDeniedException | client | Your account isn't registered with Audit Manager. Check the delegated administrator setup on the Audit Manager settings page, and try again. |
InternalServerException | server | An internal service error occurred during the processing of your request. Try again later. |
ResourceNotFoundException | client | The resource that's specified in the request can't be found. |
ValidationException | client | The request has invalid or missing parameters. |
AuditManagerServiceException | Base exception class for all service exceptions from AuditManager service. |