describe_image_usage_report_entries
¶
describe_image_usage_report_entries(
*,
config_overrides: Optional[EC2ClientConfig] = None,
image_ids: Optional[DescribeImageUsageReportsImageIdStringList] = None,
report_ids: Optional[ImageUsageReportIdStringList] = None,
next_token: Optional[String] = None,
filters: Optional[FilterList] = None,
dry_run: Optional[Boolean] = None,
max_results: Optional[DescribeImageUsageReportEntriesMaxResults] = None,
) -> DescribeImageUsageReportEntriesResult
Describes the entries in image usage reports, showing how your images are used across other Amazon Web Services accounts.
For more information, see View your AMI usage in the Amazon EC2 User Guide.
Parameters:
-
image_ids(Optional[DescribeImageUsageReportsImageIdStringList], default:None) –The IDs of the images for filtering the report entries. If specified, only report entries containing these images are returned.
-
report_ids(Optional[ImageUsageReportIdStringList], default:None) –The IDs of the usage reports.
-
next_token(Optional[String], default:None) –The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.
-
filters(Optional[FilterList], default:None) –The filters.
-
account-id- A 12-digit Amazon Web Services account ID. -
creation-time- The time when the report was created, in the ISO 8601 format in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ), for example,2025-11-29T11:04:43.305Z. You can use a wildcard (*), for example,2025-11-29T*, which matches an entire day. -
resource-type- The resource type (ec2:Instance|ec2:LaunchTemplate).
-
-
dry_run(Optional[Boolean], default:None) –Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is
DryRunOperation. Otherwise, it isUnauthorizedOperation. -
max_results(Optional[DescribeImageUsageReportEntriesMaxResults], default:None) –The maximum number of items to return for this request. To get the next page of items, make another request with the token returned in the output. For more information, see Pagination.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_ec2/_services/ec2.py
25857 25858 25859 25860 25861 25862 25863 25864 25865 25866 25867 25868 25869 25870 25871 25872 25873 25874 25875 25876 25877 25878 25879 25880 25881 25882 25883 25884 25885 25886 25887 25888 25889 25890 25891 25892 25893 25894 25895 25896 25897 25898 25899 25900 25901 25902 25903 25904 25905 25906 25907 25908 25909 25910 25911 25912 25913 25914 25915 25916 25917 25918 25919 25920 25921 25922 25923 25924 25925 | |