Class CfnClusterPropsMixin.ClusterLifeCycleConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.sagemaker.mixins.CfnClusterPropsMixin.ClusterLifeCycleConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnClusterPropsMixin.ClusterLifeCycleConfigProperty>
- Enclosing interface:
CfnClusterPropsMixin.ClusterLifeCycleConfigProperty
@Stability(Stable)
public static final class CfnClusterPropsMixin.ClusterLifeCycleConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnClusterPropsMixin.ClusterLifeCycleConfigProperty>
A builder for
CfnClusterPropsMixin.ClusterLifeCycleConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnClusterPropsMixin.ClusterLifeCycleConfigProperty.getOnCreate()sourceS3Uri(String sourceS3Uri) Sets the value ofCfnClusterPropsMixin.ClusterLifeCycleConfigProperty.getSourceS3Uri()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
onCreate
@Stability(Stable) public CfnClusterPropsMixin.ClusterLifeCycleConfigProperty.Builder onCreate(String onCreate) Sets the value ofCfnClusterPropsMixin.ClusterLifeCycleConfigProperty.getOnCreate()- Parameters:
onCreate- The file name of the entrypoint script of lifecycle scripts underSourceS3Uri. This entrypoint script runs during cluster creation.- Returns:
this
-
sourceS3Uri
@Stability(Stable) public CfnClusterPropsMixin.ClusterLifeCycleConfigProperty.Builder sourceS3Uri(String sourceS3Uri) Sets the value ofCfnClusterPropsMixin.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<CfnClusterPropsMixin.ClusterLifeCycleConfigProperty>- Returns:
- a new instance of
CfnClusterPropsMixin.ClusterLifeCycleConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-