Skip to content

get_export async

get_export(
    export_arn: Arn,
    *,
    config_overrides: Optional[AsyncBCMDataExportsClientConfig] = None,
) -> GetExportResponse

Views the definition of an existing data export.

Parameters:

  • export_arn (Arn) –

    The Amazon Resource Name (ARN) for this export.

Raises:

Source code in docs_src/capo_bcm_data_exports/_services/async_bcm_data_exports.py
async def get_export(
    self,
    export_arn: "capo_bcm_data_exports.types.arn.Arn",
    *,
    config_overrides: Optional[AsyncBCMDataExportsClientConfig] = None,
) -> "capo_bcm_data_exports.types.get_export_response.GetExportResponse":
    """<p>Views the definition of an existing data export.</p>

    Args:
        export_arn: <p>The Amazon Resource Name (ARN) for this export.</p>

    Raises:
        capo_bcm_data_exports.errors.internal_server_exception.InternalServerException: <p>An error on the server occurred during the processing of your request. Try again later.</p>
        capo_bcm_data_exports.errors.resource_not_found_exception.ResourceNotFoundException: <p>The specified Amazon Resource Name (ARN) in the request doesn't exist.</p>
        capo_bcm_data_exports.errors.throttling_exception.ThrottlingException: <p>The request was denied due to request throttling.</p>
        capo_bcm_data_exports.errors.validation_exception.ValidationException: <p>The input fails to satisfy the constraints specified by an Amazon Web Services service.</p>
        capo_bcm_data_exports.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_bcm_data_exports.types.get_export_request.GetExportRequest]",
    ) -> AsyncOperationResponse[
        "capo_bcm_data_exports.types.get_export_response.GetExportResponse"
    ]:
        import capo_bcm_data_exports._operations.aws_billing_and_cost_management_data_exports.get_export

        (
            output,
            http_response,
        ) = await capo_bcm_data_exports._operations.aws_billing_and_cost_management_data_exports.get_export.async_get_export(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("GetExport")
    )
    input_: capo_bcm_data_exports.types.get_export_request.GetExportRequest = {
        "export_arn": export_arn
    }

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