describe_volume_attribute
async
¶
describe_volume_attribute(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = None,
attribute: Optional[VolumeAttributeName] = None,
volume_id: Optional[VolumeId] = None,
dry_run: Optional[Boolean] = None,
) -> DescribeVolumeAttributeResult
Describes the specified attribute of the specified volume. You can specify only one attribute at a time.
For more information about EBS volumes, see Amazon EBS volumes in the Amazon EBS User Guide.
Parameters:
-
attribute(Optional[VolumeAttributeName], default:None) –The attribute of the volume. This parameter is required.
-
volume_id(Optional[VolumeId], default:None) –The ID of the volume.
-
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 a volume attribute
This example describes the autoEnableIo attribute of the volume with the ID vol-049df61146c4d7901.
>>> await client.describe_volume_attribute(volume_id='vol-049df61146c4d7901', attribute='autoEnableIO')
Source code in docs_src/capo_ec2/_services/async_ec2.py
36803 36804 36805 36806 36807 36808 36809 36810 36811 36812 36813 36814 36815 36816 36817 36818 36819 36820 36821 36822 36823 36824 36825 36826 36827 36828 36829 36830 36831 36832 36833 36834 36835 36836 36837 36838 36839 36840 36841 36842 36843 36844 36845 36846 36847 36848 36849 36850 36851 36852 36853 36854 36855 36856 36857 36858 36859 36860 36861 36862 36863 36864 | |