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
$PATHenvironment 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/NotebookInstancesin 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 interfaceNotebookInstanceLifecycleHook.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static NotebookInstanceLifecycleHook.Builderbuilder()Stringcontent()A base64-encoded string that contains a shell script for a notebook instance lifecycle configuration.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()List<SdkField<?>>sdkFields()static Class<? extends NotebookInstanceLifecycleHook.Builder>serializableBuilderClass()NotebookInstanceLifecycleHook.BuildertoBuilder()StringtoString()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:
toBuilderin 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:
equalsBySdkFieldsin 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.
-
-