# CfnImageVersionProps

Properties for defining a `CfnImageVersion`.

Used as props by: [CfnImageVersion](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_sagemaker.CfnImageVersion.html)

- Source: Generated at build time
- Type last changed: v2.163.0 · 22 Oct 2024

## Example

TypeScript:

```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 cfnImageVersionProps: sagemaker.CfnImageVersionProps = {
  baseImage: 'baseImage',
  imageName: 'imageName',

  // the properties below are optional
  alias: 'alias',
  aliases: ['aliases'],
  horovod: false,
  jobType: 'jobType',
  mlFramework: 'mlFramework',
  processor: 'processor',
  programmingLang: 'programmingLang',
  releaseNotes: 'releaseNotes',
  vendorGuidance: 'vendorGuidance',
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_sagemaker as sagemaker

cfn_image_version_props = sagemaker.CfnImageVersionProps(
    base_image="baseImage",
    image_name="imageName",

    # the properties below are optional
    alias="alias",
    aliases=["aliases"],
    horovod=False,
    job_type="jobType",
    ml_framework="mlFramework",
    processor="processor",
    programming_lang="programmingLang",
    release_notes="releaseNotes",
    vendor_guidance="vendorGuidance"
)
```

Java:

```java
// 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.*;

CfnImageVersionProps cfnImageVersionProps = CfnImageVersionProps.builder()
        .baseImage("baseImage")
        .imageName("imageName")

        // the properties below are optional
        .alias("alias")
        .aliases(List.of("aliases"))
        .horovod(false)
        .jobType("jobType")
        .mlFramework("mlFramework")
        .processor("processor")
        .programmingLang("programmingLang")
        .releaseNotes("releaseNotes")
        .vendorGuidance("vendorGuidance")
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Sagemaker;

var cfnImageVersionProps = new CfnImageVersionProps {
    BaseImage = "baseImage",
    ImageName = "imageName",

    // the properties below are optional
    Alias = "alias",
    Aliases = new [] { "aliases" },
    Horovod = false,
    JobType = "jobType",
    MlFramework = "mlFramework",
    Processor = "processor",
    ProgrammingLang = "programmingLang",
    ReleaseNotes = "releaseNotes",
    VendorGuidance = "vendorGuidance"
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnImageVersionProps := &CfnImageVersionProps{
	BaseImage: jsii.String("baseImage"),
	ImageName: jsii.String("imageName"),

	// the properties below are optional
	Alias: jsii.String("alias"),
	Aliases: []*string{
		jsii.String("aliases"),
	},
	Horovod: jsii.Boolean(false),
	JobType: jsii.String("jobType"),
	MlFramework: jsii.String("mlFramework"),
	Processor: jsii.String("processor"),
	ProgrammingLang: jsii.String("programmingLang"),
	ReleaseNotes: jsii.String("releaseNotes"),
	VendorGuidance: jsii.String("vendorGuidance"),
}
```

## Properties

- `alias`: string — The alias of the image version.

- `aliases`: string[] — List of aliases for the image version.

- `baseImage`: string (required) — The container image that the SageMaker image version is based on.

- `horovod`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — Indicates Horovod compatibility.

- `imageName`: string (required) — The name of the parent image.

  *Length Constraints* : Minimum length of 1. Maximum length of 63.

  *Pattern* : `^[a-zA-Z0-9]([-.]?[a-zA-Z0-9]){0,62}$`

- `jobType`: string — Indicates SageMaker job type compatibility.

- `mlFramework`: string — The machine learning framework vended in the image version.

- `processor`: string — Indicates CPU or GPU compatibility.

- `programmingLang`: string — The supported programming language and its version.

- `releaseNotes`: string — The maintainer description of the image version.

- `vendorGuidance`: string — The availability of the image version specified by the maintainer.
