AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

UpdateNotebookInstanceLifecycleConfigInput

import "github.com/aws/aws-sdk-go/service/sagemaker"

type UpdateNotebookInstanceLifecycleConfigInput struct { NotebookInstanceLifecycleConfigName *string `type:"string" required:"true"` OnCreate []*NotebookInstanceLifecycleHook `type:"list"` OnStart []*NotebookInstanceLifecycleHook `type:"list"` }

NotebookInstanceLifecycleConfigName

Type: *string

The name of the lifecycle configuration.

NotebookInstanceLifecycleConfigName is a required field

OnCreate

Contains the notebook instance lifecycle configuration script.

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 (https://docs.aws.amazon.com/sagemaker/latest/dg/notebook-lifecycle-config.html).

OnStart

Contains the notebook instance lifecycle configuration script.

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 (https://docs.aws.amazon.com/sagemaker/latest/dg/notebook-lifecycle-config.html).

Method

GoString

func (s UpdateNotebookInstanceLifecycleConfigInput) GoString() string

GoString returns the string representation

SetNotebookInstanceLifecycleConfigName

func (s *UpdateNotebookInstanceLifecycleConfigInput) SetNotebookInstanceLifecycleConfigName(v string) *UpdateNotebookInstanceLifecycleConfigInput

SetNotebookInstanceLifecycleConfigName sets the NotebookInstanceLifecycleConfigName field's value.

SetOnCreate

func (s *UpdateNotebookInstanceLifecycleConfigInput) SetOnCreate(v []*NotebookInstanceLifecycleHook) *UpdateNotebookInstanceLifecycleConfigInput

SetOnCreate sets the OnCreate field's value.

SetOnStart

func (s *UpdateNotebookInstanceLifecycleConfigInput) SetOnStart(v []*NotebookInstanceLifecycleHook) *UpdateNotebookInstanceLifecycleConfigInput

SetOnStart sets the OnStart field's value.

String

func (s UpdateNotebookInstanceLifecycleConfigInput) String() string

String returns the string representation

Validate

func (s *UpdateNotebookInstanceLifecycleConfigInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

On this page: