Describes the entries in image usage reports, showing how your images are used across other Amazon Web Services accounts¶
Description¶
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.
Usage¶
ec2_describe_image_usage_report_entries(ImageIds, ReportIds, NextToken,
Filters, DryRun, MaxResults)
Arguments¶
-
ImageIdsThe IDs of the images for filtering the report entries. If specified, only report entries containing these images are returned.
-
ReportIdsThe IDs of the usage reports.
-
NextTokenThe token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.
-
FiltersThe 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).
-
DryRunChecks 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. -
MaxResultsThe 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.
Value¶
A list with the following syntax:
list(
NextToken = "string",
ImageUsageReportEntries = list(
list(
ResourceType = "string",
ReportId = "string",
UsageCount = 123,
AccountId = "string",
ImageId = "string",
ReportCreationTime = as.POSIXct(
"2015-01-01"
)
)
)
)