Deletes an edge deployment plan if (and only if) all the stages in the plan are inactive or there are no stages in the plan.
Parameters:
-
edge_deployment_plan_name
(Optional[EntityName], default:
None
)
–
The name of the edge deployment plan to delete.
Raises:
Source code in docs_src/capo_sagemaker/_services/sage_maker.py
| def delete_edge_deployment_plan(
self,
*,
config_overrides: Optional[SageMakerClientConfig] = None,
edge_deployment_plan_name: Optional[
"capo_sagemaker.types.entity_name.EntityName"
] = None,
) -> None:
"""<p>Deletes an edge deployment plan if (and only if) all the stages in the plan are inactive or there are no stages in the plan.</p>
Args:
edge_deployment_plan_name: <p>The name of the edge deployment plan to delete.</p>
Raises:
capo_sagemaker.errors.resource_in_use.ResourceInUse: <p>Resource being accessed is in use.</p>
capo_sagemaker.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_sagemaker.types.delete_edge_deployment_plan_request.DeleteEdgeDeploymentPlanRequest]",
) -> OperationResponse[None]:
import capo_sagemaker._operations.sage_maker.delete_edge_deployment_plan
output, http_response = (
capo_sagemaker._operations.sage_maker.delete_edge_deployment_plan.delete_edge_deployment_plan(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DeleteEdgeDeploymentPlan")
)
input_: capo_sagemaker.types.delete_edge_deployment_plan_request.DeleteEdgeDeploymentPlanRequest = {}
if edge_deployment_plan_name is not None:
input_["edge_deployment_plan_name"] = edge_deployment_plan_name
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|