Class CfnCluster.ClusterLifeCycleConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.sagemaker.CfnCluster.ClusterLifeCycleConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCluster.ClusterLifeCycleConfigProperty>
- Enclosing interface:
CfnCluster.ClusterLifeCycleConfigProperty
@Stability(Stable)
public static final class CfnCluster.ClusterLifeCycleConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCluster.ClusterLifeCycleConfigProperty>
A builder for
CfnCluster.ClusterLifeCycleConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnCluster.ClusterLifeCycleConfigProperty.getOnCreate()onInitComplete(String onInitComplete) Sets the value ofCfnCluster.ClusterLifeCycleConfigProperty.getOnInitComplete()sourceS3Uri(String sourceS3Uri) Sets the value ofCfnCluster.ClusterLifeCycleConfigProperty.getSourceS3Uri()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
onCreate
@Stability(Stable) public CfnCluster.ClusterLifeCycleConfigProperty.Builder onCreate(String onCreate) Sets the value ofCfnCluster.ClusterLifeCycleConfigProperty.getOnCreate()- Parameters:
onCreate- The file name of the entrypoint script of lifecycle scripts underSourceS3Uri. This entrypoint script runs during cluster creation.- Returns:
this
-
onInitComplete
@Stability(Stable) public CfnCluster.ClusterLifeCycleConfigProperty.Builder onInitComplete(String onInitComplete) Sets the value ofCfnCluster.ClusterLifeCycleConfigProperty.getOnInitComplete()- Parameters:
onInitComplete- The file name of the extension script under SourceS3Uri. This script runs after HyperPod configures the default software on the instance. Mutually exclusive with OnCreate.- Returns:
this
-
sourceS3Uri
@Stability(Stable) public CfnCluster.ClusterLifeCycleConfigProperty.Builder sourceS3Uri(String sourceS3Uri) Sets the value ofCfnCluster.ClusterLifeCycleConfigProperty.getSourceS3Uri()- Parameters:
sourceS3Uri- An Amazon S3 bucket path where your lifecycle scripts are stored.Make sure that the S3 bucket path starts with
s3://sagemaker-. The IAM role for SageMaker HyperPod has the managedAmazonSageMakerClusterInstanceRolePolicyattached, which allows access to S3 buckets with the specific prefixsagemaker-.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnCluster.ClusterLifeCycleConfigProperty>- Returns:
- a new instance of
CfnCluster.ClusterLifeCycleConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-