Returns information for an existing domain export.
Parameters:
-
export_arn
(ExportArn)
–
Unique ARN identifier of the export.
Raises:
Examples:
Get export details
>>> client.get_export(export_arn='arn:aws:sdb:us-east-1:123456789012:export/abc123')
Source code in docs_src/capo_simpledbv2/_services/simple_d_bv2.py
| def get_export(
self,
export_arn: "capo_simpledbv2.types.export_arn.ExportArn",
*,
config_overrides: Optional[SimpleDBv2ClientConfig] = 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
>>> client.get_export(export_arn='arn:aws:sdb:us-east-1:123456789012:export/abc123')
"""
def _handler(
req: "OperationRequest[capo_simpledbv2.types.get_export_request.GetExportRequest]",
) -> OperationResponse[
"capo_simpledbv2.types.get_export_response.GetExportResponse"
]:
import capo_simpledbv2._operations.simple_d_bv2.get_export
output, http_response = (
capo_simpledbv2._operations.simple_d_bv2.get_export.get_export(
req.options, req.input
)
)
return OperationResponse(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 = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|