@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:41.949Z") @Stability(value=Stable) public class CfnNotebookInstanceLifecycleConfig extends CfnResource implements IInspectable
The AWS::SageMaker::NotebookInstanceLifecycleConfig resource creates shell scripts that run when you create and/or start a notebook instance. For information about notebook instance lifecycle configurations, see Customize a Notebook Instance in the Amazon SageMaker Developer Guide .
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.sagemaker.*;
CfnNotebookInstanceLifecycleConfig cfnNotebookInstanceLifecycleConfig = CfnNotebookInstanceLifecycleConfig.Builder.create(this, "MyCfnNotebookInstanceLifecycleConfig")
.notebookInstanceLifecycleConfigName("notebookInstanceLifecycleConfigName")
.onCreate(List.of(NotebookInstanceLifecycleHookProperty.builder()
.content("content")
.build()))
.onStart(List.of(NotebookInstanceLifecycleHookProperty.builder()
.content("content")
.build()))
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnNotebookInstanceLifecycleConfig.Builder
A fluent builder for
CfnNotebookInstanceLifecycleConfig. |
static interface |
CfnNotebookInstanceLifecycleConfig.NotebookInstanceLifecycleHookProperty
Specifies the notebook instance lifecycle configuration script.
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnNotebookInstanceLifecycleConfig(software.constructs.Construct scope,
String id)
Create a new `AWS::SageMaker::NotebookInstanceLifecycleConfig`.
|
|
CfnNotebookInstanceLifecycleConfig(software.constructs.Construct scope,
String id,
CfnNotebookInstanceLifecycleConfigProps props)
Create a new `AWS::SageMaker::NotebookInstanceLifecycleConfig`.
|
protected |
CfnNotebookInstanceLifecycleConfig(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnNotebookInstanceLifecycleConfig(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAttrNotebookInstanceLifecycleConfigName()
The name of the lifecycle configuration, such as `MyLifecycleConfig` .
|
protected Map<String,Object> |
getCfnProperties() |
String |
getNotebookInstanceLifecycleConfigName()
The name of the lifecycle configuration.
|
Object |
getOnCreate()
A shell script that runs only once, when you create a notebook instance.
|
Object |
getOnStart()
A shell script that runs every time you start a notebook instance, including when you create the notebook instance.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setNotebookInstanceLifecycleConfigName(String value)
The name of the lifecycle configuration.
|
void |
setOnCreate(IResolvable value)
A shell script that runs only once, when you create a notebook instance.
|
void |
setOnCreate(List<Object> value)
A shell script that runs only once, when you create a notebook instance.
|
void |
setOnStart(IResolvable value)
A shell script that runs every time you start a notebook instance, including when you create the notebook instance.
|
void |
setOnStart(List<Object> value)
A shell script that runs every time you start a notebook instance, including when you create the notebook instance.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnNotebookInstanceLifecycleConfig(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnNotebookInstanceLifecycleConfig(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnNotebookInstanceLifecycleConfig(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@Nullable
CfnNotebookInstanceLifecycleConfigProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties.@Stability(value=Stable)
public CfnNotebookInstanceLifecycleConfig(@NotNull
software.constructs.Construct scope,
@NotNull
String id)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public String getAttrNotebookInstanceLifecycleConfigName()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @Nullable public String getNotebookInstanceLifecycleConfigName()
@Stability(value=Stable)
public void setNotebookInstanceLifecycleConfigName(@Nullable
String value)
@Stability(value=Stable) @Nullable public Object getOnCreate()
The shell script must be a base64-encoded string.
@Stability(value=Stable)
public void setOnCreate(@Nullable
IResolvable value)
The shell script must be a base64-encoded string.
@Stability(value=Stable)
public void setOnCreate(@Nullable
List<Object> value)
The shell script must be a base64-encoded string.
@Stability(value=Stable) @Nullable public Object getOnStart()
The shell script must be a base64-encoded string.
@Stability(value=Stable)
public void setOnStart(@Nullable
IResolvable value)
The shell script must be a base64-encoded string.
Copyright © 2022. All rights reserved.