libZSservicesZSamazonka-sagemakerZSamazonka-sagemaker
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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

Creating a Request

data CreateNotebookInstanceLifecycleConfig Source #

Constructors

CreateNotebookInstanceLifecycleConfig' 

Fields

Instances

Instances details
Eq CreateNotebookInstanceLifecycleConfig Source # 
Instance details

Defined in Amazonka.SageMaker.CreateNotebookInstanceLifecycleConfig

Read CreateNotebookInstanceLifecycleConfig Source # 
Instance details

Defined in Amazonka.SageMaker.CreateNotebookInstanceLifecycleConfig

Show CreateNotebookInstanceLifecycleConfig Source # 
Instance details

Defined in Amazonka.SageMaker.CreateNotebookInstanceLifecycleConfig

Generic CreateNotebookInstanceLifecycleConfig Source # 
Instance details

Defined in Amazonka.SageMaker.CreateNotebookInstanceLifecycleConfig

NFData CreateNotebookInstanceLifecycleConfig Source # 
Instance details

Defined in Amazonka.SageMaker.CreateNotebookInstanceLifecycleConfig

Hashable CreateNotebookInstanceLifecycleConfig Source # 
Instance details

Defined in Amazonka.SageMaker.CreateNotebookInstanceLifecycleConfig

ToJSON CreateNotebookInstanceLifecycleConfig Source # 
Instance details

Defined in Amazonka.SageMaker.CreateNotebookInstanceLifecycleConfig

AWSRequest CreateNotebookInstanceLifecycleConfig Source # 
Instance details

Defined in Amazonka.SageMaker.CreateNotebookInstanceLifecycleConfig

ToHeaders CreateNotebookInstanceLifecycleConfig Source # 
Instance details

Defined in Amazonka.SageMaker.CreateNotebookInstanceLifecycleConfig

ToPath CreateNotebookInstanceLifecycleConfig Source # 
Instance details

Defined in Amazonka.SageMaker.CreateNotebookInstanceLifecycleConfig

ToQuery CreateNotebookInstanceLifecycleConfig Source # 
Instance details

Defined in Amazonka.SageMaker.CreateNotebookInstanceLifecycleConfig

type Rep CreateNotebookInstanceLifecycleConfig Source # 
Instance details

Defined in Amazonka.SageMaker.CreateNotebookInstanceLifecycleConfig

type Rep CreateNotebookInstanceLifecycleConfig = D1 ('MetaData "CreateNotebookInstanceLifecycleConfig" "Amazonka.SageMaker.CreateNotebookInstanceLifecycleConfig" "libZSservicesZSamazonka-sagemakerZSamazonka-sagemaker" 'False) (C1 ('MetaCons "CreateNotebookInstanceLifecycleConfig'" 'PrefixI 'True) (S1 ('MetaSel ('Just "onCreate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [NotebookInstanceLifecycleHook])) :*: (S1 ('MetaSel ('Just "onStart") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [NotebookInstanceLifecycleHook])) :*: S1 ('MetaSel ('Just "notebookInstanceLifecycleConfigName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse CreateNotebookInstanceLifecycleConfig Source # 
Instance details

Defined in Amazonka.SageMaker.CreateNotebookInstanceLifecycleConfig

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.

$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.

Destructuring the Response

data CreateNotebookInstanceLifecycleConfigResponse Source #

Constructors

CreateNotebookInstanceLifecycleConfigResponse' 

Fields

Instances

Instances details
Eq CreateNotebookInstanceLifecycleConfigResponse Source # 
Instance details

Defined in Amazonka.SageMaker.CreateNotebookInstanceLifecycleConfig

Read CreateNotebookInstanceLifecycleConfigResponse Source # 
Instance details

Defined in Amazonka.SageMaker.CreateNotebookInstanceLifecycleConfig

Show CreateNotebookInstanceLifecycleConfigResponse Source # 
Instance details

Defined in Amazonka.SageMaker.CreateNotebookInstanceLifecycleConfig

Generic CreateNotebookInstanceLifecycleConfigResponse Source # 
Instance details

Defined in Amazonka.SageMaker.CreateNotebookInstanceLifecycleConfig

NFData CreateNotebookInstanceLifecycleConfigResponse Source # 
Instance details

Defined in Amazonka.SageMaker.CreateNotebookInstanceLifecycleConfig

type Rep CreateNotebookInstanceLifecycleConfigResponse Source # 
Instance details

Defined in Amazonka.SageMaker.CreateNotebookInstanceLifecycleConfig

type Rep CreateNotebookInstanceLifecycleConfigResponse = D1 ('MetaData "CreateNotebookInstanceLifecycleConfigResponse" "Amazonka.SageMaker.CreateNotebookInstanceLifecycleConfig" "libZSservicesZSamazonka-sagemakerZSamazonka-sagemaker" '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)))

Response Lenses