Skip to content

get_export async

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

Returns information for an existing domain export.

Parameters:

  • export_arn (ExportArn) –

    Unique ARN identifier of the export.

Raises:

Examples:

Get export details

>>> await client.get_export(export_arn='arn:aws:sdb:us-east-1:123456789012:export/abc123')
Source code in docs_src/capo_simpledbv2/_services/async_simple_d_bv2.py
async def get_export(
    self,
    export_arn: "capo_simpledbv2.types.export_arn.ExportArn",
    *,
    config_overrides: Optional[AsyncSimpleDBv2ClientConfig] = None,
) -> "capo_simpledbv2.types.get_export_response.GetExportResponse":
    """Returns information for an existing domain export.

    Args:
        export_arn: Unique ARN identifier of the export.

    Raises:
        capo_simpledbv2.errors.invalid_parameter_value_exception.InvalidParameterValueException: The specified parameter value is not valid.
        capo_simpledbv2.errors.no_such_export_exception.NoSuchExportException: Export with specified ARN does not exist.
        capo_simpledbv2.errors.UnknownServiceError: The service returned an error code this client does not model.

    Examples:
        Get export details

        >>> await client.get_export(export_arn='arn:aws:sdb:us-east-1:123456789012:export/abc123')
    """

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

        (
            output,
            http_response,
        ) = await capo_simpledbv2._operations.simple_d_bv2.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_simpledbv2.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