Struct aws_sdk_sagemaker::client::fluent_builders::CreateNotebookInstanceLifecycleConfig [−][src]
pub struct CreateNotebookInstanceLifecycleConfig<C = DynConnector, M = AwsMiddleware, R = Standard> { /* fields omitted */ }
Expand description
Fluent builder constructing a request to CreateNotebookInstanceLifecycleConfig
.
Creates a lifecycle configuration that you can associate with a notebook instance. A lifecycle configuration is a collection of shell scripts that run when you create or start a notebook instance.
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.
Implementations
impl<C, M, R> CreateNotebookInstanceLifecycleConfig<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> CreateNotebookInstanceLifecycleConfig<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<CreateNotebookInstanceLifecycleConfigOutput, SdkError<CreateNotebookInstanceLifecycleConfigError>> where
R::Policy: SmithyRetryPolicy<CreateNotebookInstanceLifecycleConfigInputOperationOutputAlias, CreateNotebookInstanceLifecycleConfigOutput, CreateNotebookInstanceLifecycleConfigError, CreateNotebookInstanceLifecycleConfigInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<CreateNotebookInstanceLifecycleConfigOutput, SdkError<CreateNotebookInstanceLifecycleConfigError>> where
R::Policy: SmithyRetryPolicy<CreateNotebookInstanceLifecycleConfigInputOperationOutputAlias, CreateNotebookInstanceLifecycleConfigOutput, CreateNotebookInstanceLifecycleConfigError, CreateNotebookInstanceLifecycleConfigInputOperationRetryAlias>,
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
The name of the lifecycle configuration.
The name of the lifecycle configuration.
Appends an item to OnCreate
.
To override the contents of this collection use set_on_create
.
A shell script that runs only once, when you create a notebook instance. The shell script must be a base64-encoded string.
A shell script that runs only once, when you create a notebook instance. The shell script must be a base64-encoded string.
Appends an item to OnStart
.
To override the contents of this collection use set_on_start
.
A shell script that runs every time you start a notebook instance, including when you create the notebook instance. The shell script must be a base64-encoded string.
A shell script that runs every time you start a notebook instance, including when you create the notebook instance. The shell script must be a base64-encoded string.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !RefUnwindSafe for CreateNotebookInstanceLifecycleConfig<C, M, R>
impl<C, M, R> Send for CreateNotebookInstanceLifecycleConfig<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for CreateNotebookInstanceLifecycleConfig<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for CreateNotebookInstanceLifecycleConfig<C, M, R>
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !UnwindSafe for CreateNotebookInstanceLifecycleConfig<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more