Retrieves a specified export task.
Parameters:
-
task_identifier
(ExportTaskId)
–
The unique identifier of the export task.
Raises:
Source code in docs_src/capo_neptune_graph/_services/neptune_graph.py
| def get_export_task(
self,
task_identifier: "capo_neptune_graph.types.export_task_id.ExportTaskId",
*,
config_overrides: Optional[NeptuneGraphClientConfig] = None,
) -> "capo_neptune_graph.types.get_export_task_output.GetExportTaskOutput":
"""<p>Retrieves a specified export task.</p>
Args:
task_identifier: <p>The unique identifier of the export task.</p>
Raises:
capo_neptune_graph.errors.internal_server_exception.InternalServerException: <p>A failure occurred on the server.</p>
capo_neptune_graph.errors.resource_not_found_exception.ResourceNotFoundException: <p>A specified resource could not be located.</p>
capo_neptune_graph.errors.throttling_exception.ThrottlingException: <p>The exception was interrupted by throttling.</p>
capo_neptune_graph.errors.validation_exception.ValidationException: <p>A resource could not be validated.</p>
capo_neptune_graph.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_neptune_graph.types.get_export_task_input.GetExportTaskInput]",
) -> OperationResponse[
"capo_neptune_graph.types.get_export_task_output.GetExportTaskOutput"
]:
import capo_neptune_graph._operations.amazon_neptune_graph.get_export_task
output, http_response = (
capo_neptune_graph._operations.amazon_neptune_graph.get_export_task.get_export_task(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("GetExportTask")
)
input_: capo_neptune_graph.types.get_export_task_input.GetExportTaskInput = {
"task_identifier": task_identifier
}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|