describe_image_usage_report_entries
async
¶
describe_image_usage_report_entries(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = 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/async_ec2.py
26215 26216 26217 26218 26219 26220 26221 26222 26223 26224 26225 26226 26227 26228 26229 26230 26231 26232 26233 26234 26235 26236 26237 26238 26239 26240 26241 26242 26243 26244 26245 26246 26247 26248 26249 26250 26251 26252 26253 26254 26255 26256 26257 26258 26259 26260 26261 26262 26263 26264 26265 26266 26267 26268 26269 26270 26271 26272 26273 26274 26275 26276 26277 26278 26279 26280 26281 26282 26283 26284 | |