describe_image_attribute
async
¶
describe_image_attribute(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = None,
attribute: Optional[ImageAttributeName] = None,
image_id: Optional[ImageId] = None,
dry_run: Optional[Boolean] = None,
) -> ImageAttribute
Describes the specified attribute of the specified AMI. You can specify only one attribute at a time.
The order of the elements in the response, including those within nested structures, might vary. Applications should not assume the elements appear in a particular order.
Parameters:
-
attribute(Optional[ImageAttributeName], default:None) –The AMI attribute.
Note: The
blockDeviceMappingattribute is deprecated. Using this attribute returns theClient.AuthFailureerror. To get information about the block device mappings for an AMI, describe the image instead. -
image_id(Optional[ImageId], default:None) –The ID of the AMI.
-
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.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To describe the launch permissions for an AMI This example describes the launch permissions for the specified AMI.
Source code in docs_src/capo_ec2/_services/async_ec2.py
25922 25923 25924 25925 25926 25927 25928 25929 25930 25931 25932 25933 25934 25935 25936 25937 25938 25939 25940 25941 25942 25943 25944 25945 25946 25947 25948 25949 25950 25951 25952 25953 25954 25955 25956 25957 25958 25959 25960 25961 25962 25963 25964 25965 25966 25967 25968 25969 25970 25971 25972 25973 25974 25975 25976 25977 25978 25979 | |