Class NotebookInstanceLifecycleHook
- java.lang.Object
-
- software.amazon.awssdk.services.sagemaker.model.NotebookInstanceLifecycleHook
-
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<NotebookInstanceLifecycleHook.Builder,NotebookInstanceLifecycleHook>
@Generated("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 Amazon 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:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
NotebookInstanceLifecycleHook.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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)
boolean
equalsBySdkFields(Object obj)
<T> Optional<T>
getValueForField(String fieldName, Class<T> clazz)
int
hashCode()
Map<String,SdkField<?>>
sdkFieldNameToField()
List<SdkField<?>>
sdkFields()
static Class<? extends NotebookInstanceLifecycleHook.Builder>
serializableBuilderClass()
NotebookInstanceLifecycleHook.Builder
toBuilder()
String
toString()
Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
content
public final String content()
A base64-encoded string that contains a shell script for a notebook instance lifecycle configuration.
- Returns:
- A base64-encoded string that contains a shell script for a notebook instance lifecycle configuration.
-
toBuilder
public NotebookInstanceLifecycleHook.Builder toBuilder()
- Specified by:
toBuilder
in interfaceToCopyableBuilder<NotebookInstanceLifecycleHook.Builder,NotebookInstanceLifecycleHook>
-
builder
public static NotebookInstanceLifecycleHook.Builder builder()
-
serializableBuilderClass
public static Class<? extends NotebookInstanceLifecycleHook.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFields
in interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToField
in interfaceSdkPojo
-
-