Interface CfnApp.ResourceSpecProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnApp.ResourceSpecProperty.Jsii$Proxy
- Enclosing class:
CfnApp
@Stability(Stable)
public static interface CfnApp.ResourceSpecProperty
extends software.amazon.jsii.JsiiSerializable
Specifies the ARN's of a SageMaker AI image and SageMaker AI image version, and the instance type that the version runs on.
When both
SageMakerImageVersionArn
andSageMakerImageArn
are passed,SageMakerImageVersionArn
is used. Any updates toSageMakerImageArn
will not take effect ifSageMakerImageVersionArn
already exists in theResourceSpec
becauseSageMakerImageVersionArn
always takes precedence. To clear the value set forSageMakerImageVersionArn
, passNone
as the value.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.sagemaker.*; ResourceSpecProperty resourceSpecProperty = ResourceSpecProperty.builder() .instanceType("instanceType") .lifecycleConfigArn("lifecycleConfigArn") .sageMakerImageArn("sageMakerImageArn") .sageMakerImageVersionArn("sageMakerImageVersionArn") .build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class
A builder forCfnApp.ResourceSpecProperty
static final class
An implementation forCfnApp.ResourceSpecProperty
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default String
The instance type that the image version runs on.default String
The Amazon Resource Name (ARN) of the Lifecycle Configuration attached to the Resource.default String
The ARN of the SageMaker AI image that the image version belongs to.default String
The ARN of the image version created on the instance.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getInstanceType
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.- See Also:
-
getLifecycleConfigArn
The Amazon Resource Name (ARN) of the Lifecycle Configuration attached to the Resource.- See Also:
-
getSageMakerImageArn
The ARN of the SageMaker AI image that the image version belongs to.- See Also:
-
getSageMakerImageVersionArn
The ARN of the image version created on the instance.To clear the value set for
SageMakerImageVersionArn
, passNone
as the value.- See Also:
-
builder
-