list_image_packages
¶
list_image_packages(
image_build_version_arn: ImageBuildVersionArn,
*,
config_overrides: Optional[imagebuilderClientConfig] = None,
max_results: Optional[RestrictedInteger] = None,
next_token: Optional[PaginationToken] = None,
) -> ListImagePackagesResponse
Lists the packages that are associated with an image build version, as determined by Amazon Web Services Systems Manager Inventory at build time.
Parameters:
-
image_build_version_arn(ImageBuildVersionArn) –The Amazon Resource Name (ARN) of the image build version whose packages you want to list. The value must be a full build version ARN.
-
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.
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.
-
ResourceNotFoundException–At least one of the resources referenced by your request does not exist.
-
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 the packages in an image build version The following example lists the operating system packages that Image Builder detected in the specified image build version.
>>> client.list_image_packages(image_build_version_arn='arn:aws:imagebuilder:us-west-2:111122223333:image/my-example-recipe/1.0.0/1')
Source code in docs_src/capo_imagebuilder/_services/imagebuilder.py
3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 | |