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
31621 31622 31623 31624 31625 31626 31627 31628 31629 31630 31631 31632 31633 31634 31635 31636 31637 31638 31639 31640 31641 31642 31643 31644 31645 31646 31647 31648 31649 31650 31651 31652 31653 31654 31655 31656 31657 31658 31659 31660 31661 31662 31663 31664 31665 31666 31667 31668 31669 31670 31671 31672 31673 31674 31675 31676 31677 31678 31679 31680 31681 | |