create_image
async
¶
create_image(
*,
config_overrides: Optional[AsyncSageMakerClientConfig] = 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/async_sage_maker.py
5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 | |