Update Notebook Instance Lifecycle Config
| sagemaker_update_notebook_instance_lifecycle_config | R Documentation |
Updates a notebook instance lifecycle configuration created with the CreateNotebookInstanceLifecycleConfig API¶
Description¶
Updates a notebook instance lifecycle configuration created with the
create_notebook_instance_lifecycle_config 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.
Usage¶
sagemaker_update_notebook_instance_lifecycle_config(
NotebookInstanceLifecycleConfigName, OnCreate, OnStart)
Arguments¶
NotebookInstanceLifecycleConfigName |
[required] The name of the lifecycle configuration. |
OnCreate |
The shell script that runs only once, when you create a notebook instance. The shell script must be a base64-encoded string. |
OnStart |
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. |
Value¶
An empty list.
Request syntax¶
svc$update_notebook_instance_lifecycle_config(
NotebookInstanceLifecycleConfigName = "string",
OnCreate = list(
list(
Content = "string"
)
),
OnStart = list(
list(
Content = "string"
)
)
)