# ResourceSpecProperty

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.

- Source: Generated code
- Type last changed: v2.264.0 · 10 Aug 2026

## 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

- `instanceType`: 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.

- `lifecycleConfigArn`: string — The Amazon Resource Name (ARN) of the Lifecycle Configuration attached to the Resource.

- `sageMakerImageArn`: string — The ARN of the SageMaker AI image that the image version belongs to.

- `sageMakerImageVersionArn`: string — The ARN of the image version created on the instance.

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

- `trainingPlanArn`: string — The Amazon Resource Name (ARN) of the training plan to use for the ResourceSpec.
