Skip to content
v2.275.0

CfnImageProps Struct ​

Properties for defining a CfnImage.

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

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

Properties ​

imageDescriptionoptionalstringimage_descriptionoptionalstrimageDescriptionoptionalStringImageDescriptionoptionalstringImageDescriptionoptional*string#
The description of the image.
imageDisplayNameoptionalstringimage_display_nameoptionalstrimageDisplayNameoptionalStringImageDisplayNameoptionalstringImageDisplayNameoptional*string#
The display name of the image.

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

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

imageNamestringimage_namestrimageNameStringImageNamestringImageName*stringrequired#
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}$

imageRoleArnstringimage_role_arnstrimageRoleArnStringImageRoleArnstringImageRoleArn*stringrequired#
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+=,.@\-_/]+$

tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag#
A list of key-value pairs to apply to this resource.

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