update_notebook_instance_lifecycle_config
¶
update_notebook_instance_lifecycle_config(
*,
config_overrides: Optional[SageMakerClientConfig] = 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/sage_maker.py
31215 31216 31217 31218 31219 31220 31221 31222 31223 31224 31225 31226 31227 31228 31229 31230 31231 31232 31233 31234 31235 31236 31237 31238 31239 31240 31241 31242 31243 31244 31245 31246 31247 31248 31249 31250 31251 31252 31253 31254 31255 31256 31257 31258 31259 31260 31261 31262 31263 31264 31265 31266 31267 31268 31269 31270 31271 31272 31273 31274 | |