Skip to content

batch_associate_assessment_report_evidence

batch_associate_assessment_report_evidence(
    assessment_id: UUID,
    evidence_folder_id: UUID,
    evidence_ids: EvidenceIds,
    *,
    config_overrides: Optional[AuditManagerClientConfig] = None,
) -> BatchAssociateAssessmentReportEvidenceResponse

Associates a list of evidence to an assessment report in an Audit Manager assessment.

Parameters:

  • assessment_id (UUID) –

    The identifier for the assessment.

  • evidence_folder_id (UUID) –

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

  • evidence_ids (EvidenceIds) –

    The list of evidence identifiers.

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/audit_manager.py
def batch_associate_assessment_report_evidence(
    self,
    assessment_id: "capo_auditmanager.types.uuid.UUID",
    evidence_folder_id: "capo_auditmanager.types.uuid.UUID",
    evidence_ids: "capo_auditmanager.types.evidence_ids.EvidenceIds",
    *,
    config_overrides: Optional[AuditManagerClientConfig] = None,
) -> "capo_auditmanager.types.batch_associate_assessment_report_evidence_response.BatchAssociateAssessmentReportEvidenceResponse":
    """<p> Associates a list of evidence to an assessment report in an Audit Manager assessment. </p>

    Args:
        assessment_id: <p> The identifier for the assessment. </p>
        evidence_folder_id: <p> The identifier for the folder that the evidence is stored in. </p>
        evidence_ids: <p> The list of evidence identifiers. </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.
    """

    def _handler(
        req: "OperationRequest[capo_auditmanager.types.batch_associate_assessment_report_evidence_request.BatchAssociateAssessmentReportEvidenceRequest]",
    ) -> OperationResponse[
        "capo_auditmanager.types.batch_associate_assessment_report_evidence_response.BatchAssociateAssessmentReportEvidenceResponse"
    ]:
        import capo_auditmanager._operations.bedrock_assessment_manager_lambda.batch_associate_assessment_report_evidence

        output, http_response = (
            capo_auditmanager._operations.bedrock_assessment_manager_lambda.batch_associate_assessment_report_evidence.batch_associate_assessment_report_evidence(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("BatchAssociateAssessmentReportEvidence")
    )
    input_: capo_auditmanager.types.batch_associate_assessment_report_evidence_request.BatchAssociateAssessmentReportEvidenceRequest = {
        "assessment_id": assessment_id,
        "evidence_folder_id": evidence_folder_id,
        "evidence_ids": evidence_ids,
    }

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output