Skip to content

validate_assessment_report_integrity

validate_assessment_report_integrity(
    s3_relative_path: S3Url,
    *,
    config_overrides: Optional[AuditManagerClientConfig] = None,
) -> ValidateAssessmentReportIntegrityResponse

Validates the integrity of an assessment report in Audit Manager.

Parameters:

  • s3_relative_path (S3Url) –

    The relative path of the Amazon S3 bucket that the assessment report 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/audit_manager.py
def validate_assessment_report_integrity(
    self,
    s3_relative_path: "capo_auditmanager.types.s3_url.S3Url",
    *,
    config_overrides: Optional[AuditManagerClientConfig] = None,
) -> "capo_auditmanager.types.validate_assessment_report_integrity_response.ValidateAssessmentReportIntegrityResponse":
    """<p> Validates the integrity of an assessment report in Audit Manager. </p>

    Args:
        s3_relative_path: <p> The relative path of the Amazon S3 bucket that the assessment report 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.
    """

    def _handler(
        req: "OperationRequest[capo_auditmanager.types.validate_assessment_report_integrity_request.ValidateAssessmentReportIntegrityRequest]",
    ) -> OperationResponse[
        "capo_auditmanager.types.validate_assessment_report_integrity_response.ValidateAssessmentReportIntegrityResponse"
    ]:
        import capo_auditmanager._operations.bedrock_assessment_manager_lambda.validate_assessment_report_integrity

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

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("ValidateAssessmentReportIntegrity")
    )
    input_: capo_auditmanager.types.validate_assessment_report_integrity_request.ValidateAssessmentReportIntegrityRequest = {
        "s3_relative_path": s3_relative_path
    }

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