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
4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 | |