Request to stop an edge packaging job.
Parameters:
-
edge_packaging_job_name
(Optional[EntityName], default:
None
)
–
The name of the edge packaging job.
Raises:
Source code in docs_src/capo_sagemaker/_services/async_sage_maker.py
| async def stop_edge_packaging_job(
self,
*,
config_overrides: Optional[AsyncSageMakerClientConfig] = None,
edge_packaging_job_name: Optional[
"capo_sagemaker.types.entity_name.EntityName"
] = None,
) -> None:
"""<p>Request to stop an edge packaging job.</p>
Args:
edge_packaging_job_name: <p>The name of the edge packaging job.</p>
Raises:
capo_sagemaker.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_sagemaker.types.stop_edge_packaging_job_request.StopEdgePackagingJobRequest]",
) -> AsyncOperationResponse[None]:
import capo_sagemaker._operations.sage_maker.stop_edge_packaging_job
(
output,
http_response,
) = await capo_sagemaker._operations.sage_maker.stop_edge_packaging_job.async_stop_edge_packaging_job(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("StopEdgePackagingJob")
)
input_: capo_sagemaker.types.stop_edge_packaging_job_request.StopEdgePackagingJobRequest = {}
if edge_packaging_job_name is not None:
input_["edge_packaging_job_name"] = edge_packaging_job_name
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|