Skip to content
v2.273.0

ResourceSpecProperty Struct ​

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 and SageMakerImageArn are passed, SageMakerImageVersionArn is used. Any updates to SageMakerImageArn will not take effect if SageMakerImageVersionArn already exists in the ResourceSpec because SageMakerImageVersionArn always takes precedence. To clear the value set for SageMakerImageVersionArn , pass None as the value.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_sagemaker as sagemaker } from 'aws-cdk-lib';
const resourceSpecProperty: sagemaker.CfnUserProfile.ResourceSpecProperty = {
  instanceType: 'instanceType',
  lifecycleConfigArn: 'lifecycleConfigArn',
  sageMakerImageArn: 'sageMakerImageArn',
  sageMakerImageVersionArn: 'sageMakerImageVersionArn',
  trainingPlanArn: 'trainingPlanArn',
};

Properties ​

instanceTypestringinstance_typestrinstanceTypeStringInstanceTypestringInstanceType*string#
The instance type that the image version runs on.

JupyterServer apps only support the system value.

For KernelGateway apps , the system value is translated to ml.t3.medium . KernelGateway apps also support all other values for available instance types.

lifecycleConfigArnstringlifecycle_config_arnstrlifecycleConfigArnStringLifecycleConfigArnstringLifecycleConfigArn*string#
The Amazon Resource Name (ARN) of the Lifecycle Configuration attached to the Resource.
sageMakerImageArnstringsage_maker_image_arnstrsageMakerImageArnStringSageMakerImageArnstringSageMakerImageArn*string#
The ARN of the SageMaker AI image that the image version belongs to.
sageMakerImageVersionArnstringsage_maker_image_version_arnstrsageMakerImageVersionArnStringSageMakerImageVersionArnstringSageMakerImageVersionArn*string#
The ARN of the image version created on the instance.

To clear the value set for SageMakerImageVersionArn , pass None as the value.

trainingPlanArnstringtraining_plan_arnstrtrainingPlanArnStringTrainingPlanArnstringTrainingPlanArn*string#
The Amazon Resource Name (ARN) of the training plan to use for the ResourceSpec.