list_images
¶
list_images(
*,
config_overrides: Optional[imagebuilderClientConfig] = 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/imagebuilder.py
4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 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 | |