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
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnCluster.ClusterLifeCycleConfigProperty.getOnCreate()
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 parameter is required. This entrypoint script runs during cluster creation.- 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. This parameter is required.Make sure that the S3 bucket path starts with
s3://sagemaker-
. The IAM role for SageMaker HyperPod has the managedAmazonSageMakerClusterInstanceRolePolicy
attached, which allows access to S3 buckets with the specific prefixsagemaker-
.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnCluster.ClusterLifeCycleConfigProperty>
- Returns:
- a new instance of
CfnCluster.ClusterLifeCycleConfigProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-