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.

DescribeNotebookInstanceLifecycleConfigOutput

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

type DescribeNotebookInstanceLifecycleConfigOutput struct { CreationTime *time.Time `type:"timestamp"` LastModifiedTime *time.Time `type:"timestamp"` NotebookInstanceLifecycleConfigArn *string `type:"string"` NotebookInstanceLifecycleConfigName *string `type:"string"` OnCreate []*NotebookInstanceLifecycleHook `type:"list"` OnStart []*NotebookInstanceLifecycleHook `type:"list"` }

CreationTime

Type: *time.Time

A timestamp that tells when the lifecycle configuration was created.

LastModifiedTime

Type: *time.Time

A timestamp that tells when the lifecycle configuration was last modified.

NotebookInstanceLifecycleConfigArn

Type: *string

The Amazon Resource Name (ARN) of the lifecycle configuration.

NotebookInstanceLifecycleConfigName

Type: *string

The name of the lifecycle configuration.

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 DescribeNotebookInstanceLifecycleConfigOutput) GoString() string

GoString returns the string representation

SetCreationTime

func (s *DescribeNotebookInstanceLifecycleConfigOutput) SetCreationTime(v time.Time) *DescribeNotebookInstanceLifecycleConfigOutput

SetCreationTime sets the CreationTime field's value.

SetLastModifiedTime

func (s *DescribeNotebookInstanceLifecycleConfigOutput) SetLastModifiedTime(v time.Time) *DescribeNotebookInstanceLifecycleConfigOutput

SetLastModifiedTime sets the LastModifiedTime field's value.

SetNotebookInstanceLifecycleConfigArn

func (s *DescribeNotebookInstanceLifecycleConfigOutput) SetNotebookInstanceLifecycleConfigArn(v string) *DescribeNotebookInstanceLifecycleConfigOutput

SetNotebookInstanceLifecycleConfigArn sets the NotebookInstanceLifecycleConfigArn field's value.

SetNotebookInstanceLifecycleConfigName

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

SetNotebookInstanceLifecycleConfigName sets the NotebookInstanceLifecycleConfigName field's value.

SetOnCreate

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

SetOnCreate sets the OnCreate field's value.

SetOnStart

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

SetOnStart sets the OnStart field's value.

String

func (s DescribeNotebookInstanceLifecycleConfigOutput) String() string

String returns the string representation

On this page: