Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Creates a lifecycle configuration that you can associate with a notebook instance. A lifecycle configuration is a collection of shell scripts that run when you create or start a notebook instance.
Each lifecycle configuration script has a limit of 16384 characters.
The value of the $PATH
environment variable that is available to both
scripts is /sbin:bin:/usr/sbin:/usr/bin
.
View CloudWatch Logs for notebook instance lifecycle configurations in
log group /aws/sagemaker/NotebookInstances
in log stream
[notebook-instance-name]/[LifecycleConfigHook]
.
Lifecycle configuration scripts cannot run for longer than 5 minutes. If a script runs for longer than 5 minutes, it fails and the notebook instance is not created or started.
For information about notebook instance lifestyle configurations, see Step 2.1: (Optional) Customize a Notebook Instance.
Synopsis
- data CreateNotebookInstanceLifecycleConfig = CreateNotebookInstanceLifecycleConfig' {}
- newCreateNotebookInstanceLifecycleConfig :: Text -> CreateNotebookInstanceLifecycleConfig
- createNotebookInstanceLifecycleConfig_onCreate :: Lens' CreateNotebookInstanceLifecycleConfig (Maybe [NotebookInstanceLifecycleHook])
- createNotebookInstanceLifecycleConfig_onStart :: Lens' CreateNotebookInstanceLifecycleConfig (Maybe [NotebookInstanceLifecycleHook])
- createNotebookInstanceLifecycleConfig_notebookInstanceLifecycleConfigName :: Lens' CreateNotebookInstanceLifecycleConfig Text
- data CreateNotebookInstanceLifecycleConfigResponse = CreateNotebookInstanceLifecycleConfigResponse' {}
- newCreateNotebookInstanceLifecycleConfigResponse :: Int -> CreateNotebookInstanceLifecycleConfigResponse
- createNotebookInstanceLifecycleConfigResponse_notebookInstanceLifecycleConfigArn :: Lens' CreateNotebookInstanceLifecycleConfigResponse (Maybe Text)
- createNotebookInstanceLifecycleConfigResponse_httpStatus :: Lens' CreateNotebookInstanceLifecycleConfigResponse Int
Creating a Request
data CreateNotebookInstanceLifecycleConfig Source #
See: newCreateNotebookInstanceLifecycleConfig
smart constructor.
CreateNotebookInstanceLifecycleConfig' | |
|
Instances
newCreateNotebookInstanceLifecycleConfig Source #
:: Text |
|
-> CreateNotebookInstanceLifecycleConfig |
Create a value of CreateNotebookInstanceLifecycleConfig
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:onCreate:CreateNotebookInstanceLifecycleConfig'
, createNotebookInstanceLifecycleConfig_onCreate
- A shell script that runs only once, when you create a notebook instance.
The shell script must be a base64-encoded string.
$sel:onStart:CreateNotebookInstanceLifecycleConfig'
, createNotebookInstanceLifecycleConfig_onStart
- A 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.
$sel:notebookInstanceLifecycleConfigName:CreateNotebookInstanceLifecycleConfig'
, createNotebookInstanceLifecycleConfig_notebookInstanceLifecycleConfigName
- The name of the lifecycle configuration.
Request Lenses
createNotebookInstanceLifecycleConfig_onCreate :: Lens' CreateNotebookInstanceLifecycleConfig (Maybe [NotebookInstanceLifecycleHook]) Source #
A shell script that runs only once, when you create a notebook instance. The shell script must be a base64-encoded string.
createNotebookInstanceLifecycleConfig_onStart :: Lens' CreateNotebookInstanceLifecycleConfig (Maybe [NotebookInstanceLifecycleHook]) Source #
A 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.
createNotebookInstanceLifecycleConfig_notebookInstanceLifecycleConfigName :: Lens' CreateNotebookInstanceLifecycleConfig Text Source #
The name of the lifecycle configuration.
Destructuring the Response
data CreateNotebookInstanceLifecycleConfigResponse Source #
See: newCreateNotebookInstanceLifecycleConfigResponse
smart constructor.
CreateNotebookInstanceLifecycleConfigResponse' | |
|
Instances
newCreateNotebookInstanceLifecycleConfigResponse Source #
:: Int |
|
-> CreateNotebookInstanceLifecycleConfigResponse |
Create a value of CreateNotebookInstanceLifecycleConfigResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:notebookInstanceLifecycleConfigArn:CreateNotebookInstanceLifecycleConfigResponse'
, createNotebookInstanceLifecycleConfigResponse_notebookInstanceLifecycleConfigArn
- The Amazon Resource Name (ARN) of the lifecycle configuration.
$sel:httpStatus:CreateNotebookInstanceLifecycleConfigResponse'
, createNotebookInstanceLifecycleConfigResponse_httpStatus
- The response's http status code.
Response Lenses
createNotebookInstanceLifecycleConfigResponse_notebookInstanceLifecycleConfigArn :: Lens' CreateNotebookInstanceLifecycleConfigResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the lifecycle configuration.
createNotebookInstanceLifecycleConfigResponse_httpStatus :: Lens' CreateNotebookInstanceLifecycleConfigResponse Int Source #
The response's http status code.