describe_image_attribute
¶
describe_image_attribute(
*,
config_overrides: Optional[EC2ClientConfig] = 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/ec2.py
25567 25568 25569 25570 25571 25572 25573 25574 25575 25576 25577 25578 25579 25580 25581 25582 25583 25584 25585 25586 25587 25588 25589 25590 25591 25592 25593 25594 25595 25596 25597 25598 25599 25600 25601 25602 25603 25604 25605 25606 25607 25608 25609 25610 25611 25612 25613 25614 25615 25616 25617 25618 25619 25620 25621 25622 25623 | |