/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SageMaker { namespace Model { /** *

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.

See Also:

AWS * API Reference

*/ class NotebookInstanceLifecycleHook { public: AWS_SAGEMAKER_API NotebookInstanceLifecycleHook(); AWS_SAGEMAKER_API NotebookInstanceLifecycleHook(Aws::Utils::Json::JsonView jsonValue); AWS_SAGEMAKER_API NotebookInstanceLifecycleHook& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

A base64-encoded string that contains a shell script for a notebook instance * lifecycle configuration.

*/ inline const Aws::String& GetContent() const{ return m_content; } /** *

A base64-encoded string that contains a shell script for a notebook instance * lifecycle configuration.

*/ inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; } /** *

A base64-encoded string that contains a shell script for a notebook instance * lifecycle configuration.

*/ inline void SetContent(const Aws::String& value) { m_contentHasBeenSet = true; m_content = value; } /** *

A base64-encoded string that contains a shell script for a notebook instance * lifecycle configuration.

*/ inline void SetContent(Aws::String&& value) { m_contentHasBeenSet = true; m_content = std::move(value); } /** *

A base64-encoded string that contains a shell script for a notebook instance * lifecycle configuration.

*/ inline void SetContent(const char* value) { m_contentHasBeenSet = true; m_content.assign(value); } /** *

A base64-encoded string that contains a shell script for a notebook instance * lifecycle configuration.

*/ inline NotebookInstanceLifecycleHook& WithContent(const Aws::String& value) { SetContent(value); return *this;} /** *

A base64-encoded string that contains a shell script for a notebook instance * lifecycle configuration.

*/ inline NotebookInstanceLifecycleHook& WithContent(Aws::String&& value) { SetContent(std::move(value)); return *this;} /** *

A base64-encoded string that contains a shell script for a notebook instance * lifecycle configuration.

*/ inline NotebookInstanceLifecycleHook& WithContent(const char* value) { SetContent(value); return *this;} private: Aws::String m_content; bool m_contentHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws