| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.SageMaker.CreateNotebookInstanceLifecycleConfig
Description
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.
Constructors
| CreateNotebookInstanceLifecycleConfig' | |
Fields
| |
Instances
newCreateNotebookInstanceLifecycleConfig Source #
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.
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.
Constructors
| CreateNotebookInstanceLifecycleConfigResponse' | |
Fields
| |
Instances
newCreateNotebookInstanceLifecycleConfigResponse Source #
Arguments
| :: 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:
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.