create_image
¶
create_image(
*,
config_overrides: Optional[SageMakerClientConfig] = None,
description: Optional[ImageDescription] = None,
display_name: Optional[ImageDisplayName] = None,
image_name: Optional[ImageName] = None,
role_arn: Optional[RoleArn] = None,
tags: Optional[TagList] = None,
) -> CreateImageResponse
Creates a custom SageMaker AI image. A SageMaker AI image is a set of image versions. Each image version represents a container image stored in Amazon ECR. For more information, see Bring your own SageMaker AI image.
Parameters:
-
description(Optional[ImageDescription], default:None) –The description of the image.
-
display_name(Optional[ImageDisplayName], default:None) –The display name of the image. If not provided,
ImageNameis displayed. -
image_name(Optional[ImageName], default:None) –The name of the image. Must be unique to your account.
-
role_arn(Optional[RoleArn], default:None) –The ARN of an IAM role that enables Amazon SageMaker AI to perform tasks on your behalf.
-
tags(Optional[TagList], default:None) –A list of tags to apply to the image.
Raises:
-
ResourceInUse–Resource being accessed is in use.
-
ResourceLimitExceeded–You have exceeded an SageMaker resource limit. For example, you might have too many training jobs created.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_sagemaker/_services/sage_maker.py
5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 | |