describe_image_references
async
¶
describe_image_references(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = 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/async_ec2.py
25981 25982 25983 25984 25985 25986 25987 25988 25989 25990 25991 25992 25993 25994 25995 25996 25997 25998 25999 26000 26001 26002 26003 26004 26005 26006 26007 26008 26009 26010 26011 26012 26013 26014 26015 26016 26017 26018 26019 26020 26021 26022 26023 26024 26025 26026 26027 26028 26029 26030 26031 26032 26033 26034 26035 26036 26037 26038 26039 26040 26041 26042 26043 26044 26045 26046 26047 26048 26049 26050 26051 26052 | |