create_image_version
async
¶
create_image_version(
*,
config_overrides: Optional[AsyncSageMakerClientConfig] = 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/async_sage_maker.py
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 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 | |