update_notebook_instance_lifecycle_config
async
¶
update_notebook_instance_lifecycle_config(
*,
config_overrides: Optional[AsyncSageMakerClientConfig] = None,
notebook_instance_lifecycle_config_name: Optional[
NotebookInstanceLifecycleConfigName
] = None,
on_create: Optional[NotebookInstanceLifecycleConfigList] = None,
on_start: Optional[NotebookInstanceLifecycleConfigList] = None,
) -> UpdateNotebookInstanceLifecycleConfigOutput
Updates a notebook instance lifecycle configuration created with the CreateNotebookInstanceLifecycleConfig API.
Updates to lifecycle configurations affect all notebook instances using that configuration upon their next start. Lifecycle configuration scripts execute with root access and the notebook instance's IAM execution role privileges. Grant this permission only to trusted principals. See Customize a Notebook Instance Using a Lifecycle Configuration Script for security best practices.
Parameters:
-
notebook_instance_lifecycle_config_name(Optional[NotebookInstanceLifecycleConfigName], default:None) –The name of the lifecycle configuration.
-
on_create(Optional[NotebookInstanceLifecycleConfigList], default:None) –The shell script that runs only once, when you create a notebook instance. The shell script must be a base64-encoded string.
-
on_start(Optional[NotebookInstanceLifecycleConfigList], default:None) –The shell script that runs every time you start a notebook instance, including when you create the notebook instance. The shell script must be a base64-encoded string.
Raises:
-
ResourceLimitExceeded–You have exceeded an SageMaker resource limit. For example, you might have too many training jobs created.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_sagemaker/_services/async_sage_maker.py
34955 34956 34957 34958 34959 34960 34961 34962 34963 34964 34965 34966 34967 34968 34969 34970 34971 34972 34973 34974 34975 34976 34977 34978 34979 34980 34981 34982 34983 34984 34985 34986 34987 34988 34989 34990 34991 34992 34993 34994 34995 34996 34997 34998 34999 35000 35001 35002 35003 35004 35005 35006 35007 35008 35009 35010 35011 35012 35013 35014 35015 | |