Gets the status of the specified upload.
Parameters:
-
upload_id
(UploadId)
–
The ID of the upload. This value is returned by the UploadEntityDefinitions action.
Raises:
Source code in docs_src/capo_iotthingsgraph/_services/async_io_t_things_graph.py
| async def get_upload_status(
self,
upload_id: "capo_iotthingsgraph.types.upload_id.UploadId",
*,
config_overrides: Optional[AsyncIoTThingsGraphClientConfig] = None,
) -> "capo_iotthingsgraph.types.get_upload_status_response.GetUploadStatusResponse":
"""<p>Gets the status of the specified upload.</p>
Args:
upload_id: <p>The ID of the upload. This value is returned by the <code>UploadEntityDefinitions</code> action.</p>
Raises:
capo_iotthingsgraph.errors.internal_failure_exception.InternalFailureException: <p></p>
capo_iotthingsgraph.errors.invalid_request_exception.InvalidRequestException: <p></p>
capo_iotthingsgraph.errors.resource_not_found_exception.ResourceNotFoundException: <p></p>
capo_iotthingsgraph.errors.throttling_exception.ThrottlingException: <p></p>
capo_iotthingsgraph.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_iotthingsgraph.types.get_upload_status_request.GetUploadStatusRequest]",
) -> AsyncOperationResponse[
"capo_iotthingsgraph.types.get_upload_status_response.GetUploadStatusResponse"
]:
import capo_iotthingsgraph._operations.iot_things_graph_front_end_service.get_upload_status
(
output,
http_response,
) = await capo_iotthingsgraph._operations.iot_things_graph_front_end_service.get_upload_status.async_get_upload_status(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("GetUploadStatus")
)
input_: capo_iotthingsgraph.types.get_upload_status_request.GetUploadStatusRequest = {
"upload_id": upload_id
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|