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