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
20531 20532 20533 20534 20535 20536 20537 20538 20539 20540 20541 20542 20543 20544 20545 20546 20547 20548 20549 20550 20551 20552 20553 20554 20555 20556 20557 20558 20559 20560 20561 20562 20563 20564 20565 20566 20567 20568 20569 20570 20571 20572 20573 20574 20575 20576 20577 20578 20579 20580 20581 20582 20583 20584 20585 20586 20587 20588 20589 20590 20591 20592 20593 20594 20595 20596 20597 20598 20599 20600 20601 20602 20603 20604 20605 20606 20607 20608 20609 20610 20611 20612 20613 20614 20615 20616 20617 20618 20619 | |