describe_volume_attribute
¶
describe_volume_attribute(
*,
config_overrides: Optional[EC2ClientConfig] = 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.
Source code in docs_src/capo_ec2/_services/ec2.py
36324 36325 36326 36327 36328 36329 36330 36331 36332 36333 36334 36335 36336 36337 36338 36339 36340 36341 36342 36343 36344 36345 36346 36347 36348 36349 36350 36351 36352 36353 36354 36355 36356 36357 36358 36359 36360 36361 36362 36363 36364 36365 36366 36367 36368 36369 36370 36371 36372 36373 36374 36375 36376 36377 36378 36379 36380 36381 36382 36383 36384 | |