# AWS::SageMaker::ImageVersion Resource Type definition for AWS::SageMaker::ImageVersion ## Syntax To declare this entity in your AWS CloudFormation template, use the following syntax: ### JSON
{
"Type" : "AWS::SageMaker::ImageVersion",
"Properties" : {
"ImageName" : String,
"BaseImage" : String,
}
}
### YAML
Type: AWS::SageMaker::ImageVersion
Properties:
ImageName: String
BaseImage: String
## Properties
#### ImageName
The name of the image this version belongs to.
_Required_: Yes
_Type_: String
_Minimum_: 1
_Maximum_: 63
_Pattern_: ^[A-Za-z0-9]([-.]?[A-Za-z0-9])*$
_Update requires_: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)
#### BaseImage
The registry path of the container image on which this image version is based.
_Required_: Yes
_Type_: String
_Minimum_: 1
_Maximum_: 255
_Pattern_: .+
_Update requires_: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)
## Return Values
### Ref
When you pass the logical ID of this resource to the intrinsic `Ref` function, Ref returns the ImageVersionArn.
### Fn::GetAtt
The `Fn::GetAtt` intrinsic function returns a value for a specified attribute of this type. The following are the available attributes and sample return values.
For more information about using the `Fn::GetAtt` intrinsic function, see [Fn::GetAtt](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-getatt.html).
#### ImageVersionArn
The Amazon Resource Name (ARN) of the image version.
#### ImageArn
The Amazon Resource Name (ARN) of the parent image.
#### Version
The version number of the image version.
#### ContainerImage
The registry path of the container image that contains this image version.