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
34507 34508 34509 34510 34511 34512 34513 34514 34515 34516 34517 34518 34519 34520 34521 34522 34523 34524 34525 34526 34527 34528 34529 34530 34531 34532 34533 34534 34535 34536 34537 34538 34539 34540 34541 34542 34543 34544 34545 34546 34547 34548 34549 34550 34551 34552 34553 34554 34555 34556 34557 34558 34559 34560 34561 34562 34563 34564 34565 34566 | |