batch_delete_delegation_by_assessment

AuditManager.Client.batch_delete_delegation_by_assessment(**kwargs)

Deletes a batch of delegations for an assessment in Audit Manager.

See also: AWS API Documentation

Request Syntax

response = client.batch_delete_delegation_by_assessment(
    delegationIds=[
        'string',
    ],
    assessmentId='string'
)
Parameters
  • delegationIds (list) --

    [REQUIRED]

    The identifiers for the delegations.

    • (string) --
  • assessmentId (string) --

    [REQUIRED]

    The identifier for the assessment.

Return type

dict

Returns

Response Syntax

{
    'errors': [
        {
            'delegationId': 'string',
            'errorCode': 'string',
            'errorMessage': 'string'
        },
    ]
}

Response Structure

  • (dict) --

    • errors (list) --

      A list of errors that the BatchDeleteDelegationByAssessment API returned.

      • (dict) --

        An error entity for the BatchDeleteDelegationByAssessment API. This is used to provide more meaningful errors than a simple string message.

        • delegationId (string) --

          The identifier for the delegation.

        • errorCode (string) --

          The error code that the BatchDeleteDelegationByAssessment API returned.

        • errorMessage (string) --

          The error message that the BatchDeleteDelegationByAssessment API returned.

Exceptions

  • AuditManager.Client.exceptions.ResourceNotFoundException
  • AuditManager.Client.exceptions.AccessDeniedException
  • AuditManager.Client.exceptions.ValidationException
  • AuditManager.Client.exceptions.InternalServerException