list_image_versions
async
¶
list_image_versions(
*,
config_overrides: Optional[AsyncSageMakerClientConfig] = None,
creation_time_after: Optional[Timestamp] = None,
creation_time_before: Optional[Timestamp] = None,
image_name: Optional[ImageName] = None,
last_modified_time_after: Optional[Timestamp] = None,
last_modified_time_before: Optional[Timestamp] = None,
max_results: Optional[MaxResults] = None,
next_token: Optional[NextToken] = None,
sort_by: Optional[ImageVersionSortBy] = None,
sort_order: Optional[ImageVersionSortOrder] = None,
) -> ListImageVersionsResponse
Lists the versions of a specified image and their properties. The list can be filtered by creation time or modified time.
Parameters:
-
creation_time_after(Optional[Timestamp], default:None) –A filter that returns only versions created on or after the specified time.
-
creation_time_before(Optional[Timestamp], default:None) –A filter that returns only versions created on or before the specified time.
-
image_name(Optional[ImageName], default:None) –The name of the image to list the versions of.
-
last_modified_time_after(Optional[Timestamp], default:None) –A filter that returns only versions modified on or after the specified time.
-
last_modified_time_before(Optional[Timestamp], default:None) –A filter that returns only versions modified on or before the specified time.
-
max_results(Optional[MaxResults], default:None) –The maximum number of versions to return in the response. The default value is 10.
-
next_token(Optional[NextToken], default:None) –If the previous call to
ListImageVersionsdidn't return the full set of versions, the call returns a token for getting the next set of versions. -
sort_by(Optional[ImageVersionSortBy], default:None) –The property used to sort results. The default value is
CREATION_TIME. -
sort_order(Optional[ImageVersionSortOrder], default:None) –The sort order. The default value is
DESCENDING.
Raises:
-
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
22907 22908 22909 22910 22911 22912 22913 22914 22915 22916 22917 22918 22919 22920 22921 22922 22923 22924 22925 22926 22927 22928 22929 22930 22931 22932 22933 22934 22935 22936 22937 22938 22939 22940 22941 22942 22943 22944 22945 22946 22947 22948 22949 22950 22951 22952 22953 22954 22955 22956 22957 22958 22959 22960 22961 22962 22963 22964 22965 22966 22967 22968 22969 22970 22971 22972 22973 22974 22975 22976 22977 22978 22979 22980 22981 22982 22983 22984 22985 22986 22987 22988 22989 22990 22991 22992 22993 22994 22995 | |