list_image_versions
¶
list_image_versions(
*,
config_overrides: Optional[SageMakerClientConfig] = 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/sage_maker.py
22598 22599 22600 22601 22602 22603 22604 22605 22606 22607 22608 22609 22610 22611 22612 22613 22614 22615 22616 22617 22618 22619 22620 22621 22622 22623 22624 22625 22626 22627 22628 22629 22630 22631 22632 22633 22634 22635 22636 22637 22638 22639 22640 22641 22642 22643 22644 22645 22646 22647 22648 22649 22650 22651 22652 22653 22654 22655 22656 22657 22658 22659 22660 22661 22662 22663 22664 22665 22666 22667 22668 22669 22670 22671 22672 22673 22674 22675 22676 22677 22678 22679 22680 22681 22682 22683 22684 22685 | |