@Generated(value="software.amazon.awssdk:codegen") public final class NotebookInstanceLifecycleHook extends Object implements SdkPojo, Serializable, ToCopyableBuilder<NotebookInstanceLifecycleHook.Builder,NotebookInstanceLifecycleHook>
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.
Modifier and Type | Class and Description |
---|---|
static interface |
NotebookInstanceLifecycleHook.Builder |
Modifier and Type | Method and Description |
---|---|
static NotebookInstanceLifecycleHook.Builder |
builder() |
String |
content()
A base64-encoded string that contains a shell script for a notebook instance lifecycle configuration.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends NotebookInstanceLifecycleHook.Builder> |
serializableBuilderClass() |
NotebookInstanceLifecycleHook.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public String content()
A base64-encoded string that contains a shell script for a notebook instance lifecycle configuration.
public NotebookInstanceLifecycleHook.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<NotebookInstanceLifecycleHook.Builder,NotebookInstanceLifecycleHook>
public static NotebookInstanceLifecycleHook.Builder builder()
public static Class<? extends NotebookInstanceLifecycleHook.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.