Deletes a notebook instance lifecycle configuration.
Parameters:
Raises:
Source code in docs_src/capo_sagemaker/_services/async_sage_maker.py
| async def delete_notebook_instance_lifecycle_config(
self,
*,
config_overrides: Optional[AsyncSageMakerClientConfig] = None,
notebook_instance_lifecycle_config_name: Optional[
"capo_sagemaker.types.notebook_instance_lifecycle_config_name.NotebookInstanceLifecycleConfigName"
] = None,
) -> None:
"""<p>Deletes a notebook instance lifecycle configuration.</p>
Args:
notebook_instance_lifecycle_config_name: <p>The name of the lifecycle configuration to delete.</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.delete_notebook_instance_lifecycle_config_input.DeleteNotebookInstanceLifecycleConfigInput]",
) -> AsyncOperationResponse[None]:
import capo_sagemaker._operations.sage_maker.delete_notebook_instance_lifecycle_config
(
output,
http_response,
) = await capo_sagemaker._operations.sage_maker.delete_notebook_instance_lifecycle_config.async_delete_notebook_instance_lifecycle_config(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DeleteNotebookInstanceLifecycleConfig")
)
input_: capo_sagemaker.types.delete_notebook_instance_lifecycle_config_input.DeleteNotebookInstanceLifecycleConfigInput = {}
if notebook_instance_lifecycle_config_name is not None:
input_["notebook_instance_lifecycle_config_name"] = (
notebook_instance_lifecycle_config_name
)
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|