describe_image_references
¶
describe_image_references(
*,
config_overrides: Optional[EC2ClientConfig] = None,
image_ids: Optional[DescribeImageReferencesImageIdStringList] = None,
include_all_resource_types: Optional[Boolean] = None,
resource_types: Optional[ResourceTypeRequestList] = None,
next_token: Optional[String] = None,
dry_run: Optional[Boolean] = None,
max_results: Optional[DescribeImageReferencesMaxResults] = None,
) -> DescribeImageReferencesResult
Describes your Amazon Web Services resources that are referencing the specified images.
For more information, see Identify your resources referencing specified AMIs in the Amazon EC2 User Guide.
Parameters:
-
image_ids(Optional[DescribeImageReferencesImageIdStringList], default:None) –The IDs of the images to check for resource references.
-
include_all_resource_types(Optional[Boolean], default:None) –Specifies whether to check all supported Amazon Web Services resource types for image references. When specified, default values are applied for
ResourceTypeOptions. For the default values, see How AMI reference checks work in the Amazon EC2 User Guide. If you also specifyResourceTypeswithResourceTypeOptions, your specified values override the default values.Supported resource types:
ec2:Instance|ec2:LaunchTemplate|ssm:Parameter|imagebuilder:ImageRecipe|imagebuilder:ContainerRecipeEither
IncludeAllResourceTypesorResourceTypesmust be specified. -
resource_types(Optional[ResourceTypeRequestList], default:None) –The Amazon Web Services resource types to check for image references.
Either
IncludeAllResourceTypesorResourceTypesmust be specified. -
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.
-
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[DescribeImageReferencesMaxResults], 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
25625 25626 25627 25628 25629 25630 25631 25632 25633 25634 25635 25636 25637 25638 25639 25640 25641 25642 25643 25644 25645 25646 25647 25648 25649 25650 25651 25652 25653 25654 25655 25656 25657 25658 25659 25660 25661 25662 25663 25664 25665 25666 25667 25668 25669 25670 25671 25672 25673 25674 25675 25676 25677 25678 25679 25680 25681 25682 25683 25684 25685 25686 25687 25688 25689 25690 25691 25692 25693 25694 25695 | |