@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class NotebookInstanceLifecycleHook extends Object implements Serializable, Cloneable, StructuredPojo
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.
| Constructor and Description | 
|---|
| NotebookInstanceLifecycleHook() | 
| Modifier and Type | Method and Description | 
|---|---|
| NotebookInstanceLifecycleHook | clone() | 
| boolean | equals(Object obj) | 
| String | getContent()
 A base64-encoded string that contains a shell script for a notebook instance lifecycle configuration. | 
| int | hashCode() | 
| void | marshall(ProtocolMarshaller protocolMarshaller)Marshalls this structured data using the given  ProtocolMarshaller. | 
| void | setContent(String content)
 A base64-encoded string that contains a shell script for a notebook instance lifecycle configuration. | 
| String | toString()Returns a string representation of this object. | 
| NotebookInstanceLifecycleHook | withContent(String content)
 A base64-encoded string that contains a shell script for a notebook instance lifecycle configuration. | 
public void setContent(String content)
A base64-encoded string that contains a shell script for a notebook instance lifecycle configuration.
content - A base64-encoded string that contains a shell script for a notebook instance lifecycle configuration.public String getContent()
A base64-encoded string that contains a shell script for a notebook instance lifecycle configuration.
public NotebookInstanceLifecycleHook withContent(String content)
A base64-encoded string that contains a shell script for a notebook instance lifecycle configuration.
content - A base64-encoded string that contains a shell script for a notebook instance lifecycle configuration.public String toString()
toString in class ObjectObject.toString()public NotebookInstanceLifecycleHook clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.