create_image_version
¶
create_image_version(
*,
config_overrides: Optional[SageMakerClientConfig] = None,
base_image: Optional[ImageBaseImage] = None,
client_token: Optional[ClientToken] = None,
image_name: Optional[ImageName] = None,
aliases: Optional[SageMakerImageVersionAliases] = None,
vendor_guidance: Optional[VendorGuidance] = None,
job_type: Optional[JobType] = None,
ml_framework: Optional[MLFramework] = None,
programming_lang: Optional[ProgrammingLang] = None,
processor: Optional[Processor] = None,
horovod: Optional[Horovod] = None,
release_notes: Optional[ReleaseNotes] = None,
) -> CreateImageVersionResponse
Creates a version of the SageMaker AI image specified by ImageName. The version represents the Amazon ECR container image specified by BaseImage.
Parameters:
-
base_image(Optional[ImageBaseImage], default:None) –The registry path of the container image to use as the starting point for this version. The path is an Amazon ECR URI in the following format:
<acct-id>.dkr.ecr.<region>.amazonaws.com/<repo-name[:tag] or [@digest]> -
client_token(Optional[ClientToken], default:None) –A unique ID. If not specified, the Amazon Web Services CLI and Amazon Web Services SDKs, such as the SDK for Python (Boto3), add a unique value to the call.
-
image_name(Optional[ImageName], default:None) –The
ImageNameof theImageto create a version of. -
aliases(Optional[SageMakerImageVersionAliases], default:None) –A list of aliases created with the image version.
-
vendor_guidance(Optional[VendorGuidance], default:None) –The stability of the image version, specified by the maintainer.
-
NOT_PROVIDED: The maintainers did not provide a status for image version stability. -
STABLE: The image version is stable. -
TO_BE_ARCHIVED: The image version is set to be archived. Custom image versions that are set to be archived are automatically archived after three months. -
ARCHIVED: The image version is archived. Archived image versions are not searchable and are no longer actively supported.
-
-
job_type(Optional[JobType], default:None) –Indicates SageMaker AI job type compatibility.
-
TRAINING: The image version is compatible with SageMaker AI training jobs. -
INFERENCE: The image version is compatible with SageMaker AI inference jobs. -
NOTEBOOK_KERNEL: The image version is compatible with SageMaker AI notebook kernels.
-
-
ml_framework(Optional[MLFramework], default:None) –The machine learning framework vended in the image version.
-
programming_lang(Optional[ProgrammingLang], default:None) –The supported programming language and its version.
-
processor(Optional[Processor], default:None) –Indicates CPU or GPU compatibility.
-
CPU: The image version is compatible with CPU. -
GPU: The image version is compatible with GPU.
-
-
horovod(Optional[Horovod], default:None) –Indicates Horovod compatibility.
-
release_notes(Optional[ReleaseNotes], default:None) –The maintainer description of the image version.
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.
-
ResourceNotFound–Resource being access is not found.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_sagemaker/_services/sage_maker.py
4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 | |