Skip to content

get_evidence_folder async

get_evidence_folder(
    assessment_id: UUID,
    control_set_id: ControlSetId,
    evidence_folder_id: UUID,
    *,
    config_overrides: Optional[AsyncAuditManagerClientConfig] = None,
) -> GetEvidenceFolderResponse

Gets an evidence folder from a specified assessment in Audit Manager.

Parameters:

  • assessment_id (UUID) –

    The unique identifier for the assessment.

  • control_set_id (ControlSetId) –

    The unique identifier for the control set.

  • evidence_folder_id (UUID) –

    The unique identifier for the folder that the evidence is stored in.

Raises:

  • AccessDeniedException –

    Your account isn't registered with Audit Manager. Check the delegated administrator setup on the Audit Manager settings page, and try again.

  • InternalServerException –

    An internal service error occurred during the processing of your request. Try again later.

  • ResourceNotFoundException –

    The resource that's specified in the request can't be found.

  • ValidationException –

    The request has invalid or missing parameters.

  • UnknownServiceError –

    The service returned an error code this client does not model.

Source code in docs_src/capo_auditmanager/_services/async_audit_manager.py
async def get_evidence_folder(
    self,
    assessment_id: "capo_auditmanager.types.uuid.UUID",
    control_set_id: "capo_auditmanager.types.control_set_id.ControlSetId",
    evidence_folder_id: "capo_auditmanager.types.uuid.UUID",
    *,
    config_overrides: Optional[AsyncAuditManagerClientConfig] = None,
) -> (
    "capo_auditmanager.types.get_evidence_folder_response.GetEvidenceFolderResponse"
):
    """<p> Gets an evidence folder from a specified assessment in Audit Manager. </p>

    Args:
        assessment_id: <p> The unique identifier for the assessment. </p>
        control_set_id: <p> The unique identifier for the control set. </p>
        evidence_folder_id: <p> The unique identifier for the folder that the evidence is stored in. </p>

    Raises:
        capo_auditmanager.errors.access_denied_exception.AccessDeniedException: <p> Your account isn't registered with Audit Manager. Check the delegated administrator setup on the Audit Manager settings page, and try again. </p>
        capo_auditmanager.errors.internal_server_exception.InternalServerException: <p> An internal service error occurred during the processing of your request. Try again later. </p>
        capo_auditmanager.errors.resource_not_found_exception.ResourceNotFoundException: <p> The resource that's specified in the request can't be found. </p>
        capo_auditmanager.errors.validation_exception.ValidationException: <p> The request has invalid or missing parameters. </p>
        capo_auditmanager.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_auditmanager.types.get_evidence_folder_request.GetEvidenceFolderRequest]",
    ) -> AsyncOperationResponse[
        "capo_auditmanager.types.get_evidence_folder_response.GetEvidenceFolderResponse"
    ]:
        import capo_auditmanager._operations.bedrock_assessment_manager_lambda.get_evidence_folder

        (
            output,
            http_response,
        ) = await capo_auditmanager._operations.bedrock_assessment_manager_lambda.get_evidence_folder.async_get_evidence_folder(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("GetEvidenceFolder")
    )
    input_: capo_auditmanager.types.get_evidence_folder_request.GetEvidenceFolderRequest = {
        "assessment_id": assessment_id,
        "control_set_id": control_set_id,
        "evidence_folder_id": evidence_folder_id,
    }

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output