# CfnImageProps

Properties for defining a `CfnImage`.

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

- Source: Generated at build time

## 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 cfnImageProps: sagemaker.CfnImageProps = {
  imageName: 'imageName',
  imageRoleArn: 'imageRoleArn',

  // the properties below are optional
  imageDescription: 'imageDescription',
  imageDisplayName: 'imageDisplayName',
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
```

Python:

```python
from aws_cdk import CfnTag
# 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_props = sagemaker.CfnImageProps(
    image_name="imageName",
    image_role_arn="imageRoleArn",

    # the properties below are optional
    image_description="imageDescription",
    image_display_name="imageDisplayName",
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)
```

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.*;

CfnImageProps cfnImageProps = CfnImageProps.builder()
        .imageName("imageName")
        .imageRoleArn("imageRoleArn")

        // the properties below are optional
        .imageDescription("imageDescription")
        .imageDisplayName("imageDisplayName")
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .build()))
        .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 cfnImageProps = new CfnImageProps {
    ImageName = "imageName",
    ImageRoleArn = "imageRoleArn",

    // the properties below are optional
    ImageDescription = "imageDescription",
    ImageDisplayName = "imageDisplayName",
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } }
};
```

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"

cfnImageProps := &CfnImageProps{
	ImageName: jsii.String("imageName"),
	ImageRoleArn: jsii.String("imageRoleArn"),

	// the properties below are optional
	ImageDescription: jsii.String("imageDescription"),
	ImageDisplayName: jsii.String("imageDisplayName"),
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}
```

## Properties

- `imageDescription`: string — The description of the image.

- `imageDisplayName`: string — The display name of the image.

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

  *Pattern* : `^\S(.*\S)?$`

- `imageName`: string (required) — The name of the Image. Must be unique by region in your account.

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

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

- `imageRoleArn`: string (required) — The Amazon Resource Name (ARN) of an IAM role that enables Amazon SageMaker to perform tasks on your behalf.

  *Length Constraints* : Minimum length of 20. Maximum length of 2048.

  *Pattern* : `^arn:aws[a-z\-]*:iam::\d{12}:role/?[a-zA-Z_0-9+=,.@\-_/]+$`

- `tags`: [CfnTag](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — A list of key-value pairs to apply to this resource.

  *Array Members* : Minimum number of 0 items. Maximum number of 50 items.
