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 |
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 #
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.
CreateNotebookInstanceLifecycleConfigResponse' | |
|
Instances
Generic CreateNotebookInstanceLifecycleConfigResponse Source # | |
Read CreateNotebookInstanceLifecycleConfigResponse Source # | |
Show CreateNotebookInstanceLifecycleConfigResponse Source # | |
NFData CreateNotebookInstanceLifecycleConfigResponse Source # | |
Eq CreateNotebookInstanceLifecycleConfigResponse Source # | |
type Rep CreateNotebookInstanceLifecycleConfigResponse Source # | |
Defined in Amazonka.SageMaker.CreateNotebookInstanceLifecycleConfig type Rep CreateNotebookInstanceLifecycleConfigResponse = D1 ('MetaData "CreateNotebookInstanceLifecycleConfigResponse" "Amazonka.SageMaker.CreateNotebookInstanceLifecycleConfig" "amazonka-sagemaker-2.0-9SyrKZ4KqhsL1qX9u3ILA3" 'False) (C1 ('MetaCons "CreateNotebookInstanceLifecycleConfigResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "notebookInstanceLifecycleConfigArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
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:
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.