Class CfnDomain.ResourceSpecProperty.Builder
java.lang.Object
software.amazon.awscdk.services.sagemaker.CfnDomain.ResourceSpecProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDomain.ResourceSpecProperty>
- Enclosing interface:
CfnDomain.ResourceSpecProperty
@Stability(Stable)
public static final class CfnDomain.ResourceSpecProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDomain.ResourceSpecProperty>
A builder for
CfnDomain.ResourceSpecProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.instanceType(String instanceType) Sets the value ofCfnDomain.ResourceSpecProperty.getInstanceType()lifecycleConfigArn(String lifecycleConfigArn) Sets the value ofCfnDomain.ResourceSpecProperty.getLifecycleConfigArn()sageMakerImageArn(String sageMakerImageArn) Sets the value ofCfnDomain.ResourceSpecProperty.getSageMakerImageArn()sageMakerImageVersionArn(String sageMakerImageVersionArn) Sets the value ofCfnDomain.ResourceSpecProperty.getSageMakerImageVersionArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
instanceType
Sets the value ofCfnDomain.ResourceSpecProperty.getInstanceType()- Parameters:
instanceType- The instance type that the image version runs on.JupyterServer apps only support the
systemvalue.For KernelGateway apps , the
systemvalue is translated toml.t3.medium. KernelGateway apps also support all other values for available instance types.- Returns:
this
-
lifecycleConfigArn
@Stability(Stable) public CfnDomain.ResourceSpecProperty.Builder lifecycleConfigArn(String lifecycleConfigArn) Sets the value ofCfnDomain.ResourceSpecProperty.getLifecycleConfigArn()- Parameters:
lifecycleConfigArn- The Amazon Resource Name (ARN) of the Lifecycle Configuration attached to the Resource.- Returns:
this
-
sageMakerImageArn
@Stability(Stable) public CfnDomain.ResourceSpecProperty.Builder sageMakerImageArn(String sageMakerImageArn) Sets the value ofCfnDomain.ResourceSpecProperty.getSageMakerImageArn()- Parameters:
sageMakerImageArn- The ARN of the SageMaker AI image that the image version belongs to.- Returns:
this
-
sageMakerImageVersionArn
@Stability(Stable) public CfnDomain.ResourceSpecProperty.Builder sageMakerImageVersionArn(String sageMakerImageVersionArn) Sets the value ofCfnDomain.ResourceSpecProperty.getSageMakerImageVersionArn()- Parameters:
sageMakerImageVersionArn- The ARN of the image version created on the instance. To clear the value set forSageMakerImageVersionArn, passNoneas the value.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDomain.ResourceSpecProperty>- Returns:
- a new instance of
CfnDomain.ResourceSpecProperty - Throws:
NullPointerException- if any required attribute was not provided
-