| Copyright | (c) 2013-2018 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 |
| Language | Haskell2010 |
Network.AWS.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:usrsbin:usr/bin .
View CloudWatch Logs for notebook instance lifecycle configurations in log group awssagemaker/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 'notebook-lifecycle-config' .
Synopsis
- createNotebookInstanceLifecycleConfig :: Text -> CreateNotebookInstanceLifecycleConfig
- data CreateNotebookInstanceLifecycleConfig
- cnilcOnCreate :: Lens' CreateNotebookInstanceLifecycleConfig [NotebookInstanceLifecycleHook]
- cnilcOnStart :: Lens' CreateNotebookInstanceLifecycleConfig [NotebookInstanceLifecycleHook]
- cnilcNotebookInstanceLifecycleConfigName :: Lens' CreateNotebookInstanceLifecycleConfig Text
- createNotebookInstanceLifecycleConfigResponse :: Int -> CreateNotebookInstanceLifecycleConfigResponse
- data CreateNotebookInstanceLifecycleConfigResponse
- cnilcrsNotebookInstanceLifecycleConfigARN :: Lens' CreateNotebookInstanceLifecycleConfigResponse (Maybe Text)
- cnilcrsResponseStatus :: Lens' CreateNotebookInstanceLifecycleConfigResponse Int
Creating a Request
createNotebookInstanceLifecycleConfig Source #
Creates a value of CreateNotebookInstanceLifecycleConfig with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cnilcOnCreate- A shell script that runs only once, when you create a notebook instance.cnilcOnStart- A shell script that runs every time you start a notebook instance, including when you create the notebook instance.cnilcNotebookInstanceLifecycleConfigName- The name of the lifecycle configuration.
data CreateNotebookInstanceLifecycleConfig Source #
See: createNotebookInstanceLifecycleConfig smart constructor.
Instances
Request Lenses
cnilcOnCreate :: Lens' CreateNotebookInstanceLifecycleConfig [NotebookInstanceLifecycleHook] Source #
A shell script that runs only once, when you create a notebook instance.
cnilcOnStart :: Lens' CreateNotebookInstanceLifecycleConfig [NotebookInstanceLifecycleHook] Source #
A shell script that runs every time you start a notebook instance, including when you create the notebook instance.
cnilcNotebookInstanceLifecycleConfigName :: Lens' CreateNotebookInstanceLifecycleConfig Text Source #
The name of the lifecycle configuration.
Destructuring the Response
createNotebookInstanceLifecycleConfigResponse Source #
Creates a value of CreateNotebookInstanceLifecycleConfigResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cnilcrsNotebookInstanceLifecycleConfigARN- The Amazon Resource Name (ARN) of the lifecycle configuration.cnilcrsResponseStatus- -- | The response status code.
data CreateNotebookInstanceLifecycleConfigResponse Source #
See: createNotebookInstanceLifecycleConfigResponse smart constructor.
Instances
Response Lenses
cnilcrsNotebookInstanceLifecycleConfigARN :: Lens' CreateNotebookInstanceLifecycleConfigResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the lifecycle configuration.
cnilcrsResponseStatus :: Lens' CreateNotebookInstanceLifecycleConfigResponse Int Source #
- - | The response status code.