list_images
async
¶
list_images(
*,
config_overrides: Optional[AsyncimagebuilderClientConfig] = None,
owner: Optional[Ownership] = None,
filters: Optional[FilterList] = None,
by_name: Optional[Boolean] = None,
max_results: Optional[RestrictedInteger] = None,
next_token: Optional[PaginationToken] = None,
include_deprecated: Optional[NullableBoolean] = None,
) -> ListImagesResponse
Returns the list of images that you have access to.
Parameters:
-
owner(Optional[Ownership], default:None) –Filters the list to images owned by you, by Amazon, or shared with you by other accounts. By default, only your account's images are returned.
-
filters(Optional[FilterList], default:None) –Use the following filters to streamline results:
-
name -
osVersion -
platform -
type -
version
-
-
by_name(Optional[Boolean], default:None) –Specifies whether to return one entry per image name, with all versions of each image aggregated. Defaults to
false, which returns one entry per image version. You can't combine this option with theversionfilter. -
max_results(Optional[RestrictedInteger], default:None) –The maximum number of items to return in a single request.
-
next_token(Optional[PaginationToken], default:None) –A token to specify where to start paginating. Use the
nextTokenvalue from a previously truncated response. -
include_deprecated(Optional[NullableBoolean], default:None) –Specifies whether to include deprecated Amazon-managed images in the results. Deprecated images that you own are always returned. Defaults to
false.
Raises:
-
CallRateLimitExceededException–You have exceeded the permitted request rate for the Amazon EC2 APIs that Image Builder calls on your behalf. Retry with an increasing or variable delay between requests.
-
ClientException–A generic client error. This error usually indicates that the request failed a validation check, such as when a downstream service rejects a configured value.
-
ForbiddenException–You are not authorized to perform the requested operation.
-
InvalidPaginationTokenException–You have provided an invalid pagination token in your request.
-
InvalidRequestException–The request is malformed or otherwise invalid. Verify the request and try again.
-
ServiceException–An internal server error occurred while Image Builder processed the request. Retrying the request may succeed.
-
ServiceUnavailableException–The service is unable to process your request at this time.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
List images that you own The following example lists the image versions that you own. Setting byName to false returns each image version as its own entry, instead of grouping build versions under their image name.
Source code in docs_src/capo_imagebuilder/_services/async_imagebuilder.py
4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 | |