Skip to content

get_assessment_report_export

get_assessment_report_export(
    environment_arn: EnvironmentArn,
    project: ProjectName,
    export_id: ExportId,
    *,
    config_overrides: Optional[AssuranceClientConfig] = None,
) -> GetAssessmentReportExportOutput

Gets the status of an assessment report export.

Parameters:

  • environment_arn (EnvironmentArn) –

    The ARN of the environment.

  • project (ProjectName) –

    The project the export belongs to.

  • export_id (ExportId) –

    The identifier of the export.

Raises:

Examples:

Get an assessment report export

>>> client.get_assessment_report_export(environment_arn='arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111', export_id='a3f29c1d4b5e4a7c8d9e1a2b3c4d5e6f', project='payments-prod')
Source code in docs_src/capo_assurance/_services/assurance.py
def get_assessment_report_export(
    self,
    environment_arn: "capo_assurance.types.environment_arn.EnvironmentArn",
    project: "capo_assurance.types.project_name.ProjectName",
    export_id: "capo_assurance.types.export_id.ExportId",
    *,
    config_overrides: Optional[AssuranceClientConfig] = None,
) -> "capo_assurance.types.get_assessment_report_export_output.GetAssessmentReportExportOutput":
    """<p>Gets the status of an assessment report export.</p>

    Args:
        environment_arn: <p>The ARN of the environment.</p>
        project: <p>The project the export belongs to.</p>
        export_id: <p>The identifier of the export.</p>

    Raises:
        capo_assurance.errors.access_denied_exception.AccessDeniedException: <p>You do not have sufficient access to perform this action. This error occurs when the request is unauthenticated, or is authenticated but lacks permission to invoke the operation.</p>
        capo_assurance.errors.internal_server_exception.InternalServerException: <p>An internal server error occurred.</p>
        capo_assurance.errors.resource_not_found_exception.ResourceNotFoundException: <p>The requested resource was not found.</p>
        capo_assurance.errors.throttling_exception.ThrottlingException: <p>The request was throttled.</p>
        capo_assurance.errors.validation_exception.ValidationException: <p>The request failed validation.</p>
        capo_assurance.errors.UnknownServiceError: The service returned an error code this client does not model.

    Examples:
        Get an assessment report export

        >>> client.get_assessment_report_export(environment_arn='arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111', export_id='a3f29c1d4b5e4a7c8d9e1a2b3c4d5e6f', project='payments-prod')
    """

    def _handler(
        req: "OperationRequest[capo_assurance.types.get_assessment_report_export_input.GetAssessmentReportExportInput]",
    ) -> OperationResponse[
        "capo_assurance.types.get_assessment_report_export_output.GetAssessmentReportExportOutput"
    ]:
        import capo_assurance._operations.assurance.get_assessment_report_export

        output, http_response = (
            capo_assurance._operations.assurance.get_assessment_report_export.get_assessment_report_export(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    def _redact_output(
        output: "capo_assurance.types.get_assessment_report_export_output.GetAssessmentReportExportOutput",
    ) -> dict[str, Any]:
        import capo_assurance.types.get_assessment_report_export_output

        return capo_assurance.types.get_assessment_report_export_output.redact_sensitive(
            output
        )

    interceptors_, options_ = self.operation_options(
        config_overrides,
        OperationLogging("GetAssessmentReportExport", redact_output=_redact_output),
    )
    input_: capo_assurance.types.get_assessment_report_export_input.GetAssessmentReportExportInput = {
        "environment_arn": environment_arn,
        "project": project,
        "export_id": export_id,
    }

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