Skip to content

stop_edge_packaging_job

stop_edge_packaging_job(
    *,
    config_overrides: Optional[SageMakerClientConfig] = None,
    edge_packaging_job_name: Optional[EntityName] = None,
) -> None

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/sage_maker.py
def stop_edge_packaging_job(
    self,
    *,
    config_overrides: Optional[SageMakerClientConfig] = 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.
    """

    def _handler(
        req: "OperationRequest[capo_sagemaker.types.stop_edge_packaging_job_request.StopEdgePackagingJobRequest]",
    ) -> OperationResponse[None]:
        import capo_sagemaker._operations.sage_maker.stop_edge_packaging_job

        output, http_response = (
            capo_sagemaker._operations.sage_maker.stop_edge_packaging_job.stop_edge_packaging_job(
                req.options, req.input
            )
        )
        return OperationResponse(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 = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output