describe_snapshot_attribute
async
¶
describe_snapshot_attribute(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = None,
attribute: Optional[SnapshotAttributeName] = None,
snapshot_id: Optional[SnapshotId] = None,
dry_run: Optional[Boolean] = None,
) -> DescribeSnapshotAttributeResult
Describes the specified attribute of the specified snapshot. You can specify only one attribute at a time.
For more information about EBS snapshots, see Amazon EBS snapshots in the Amazon EBS User Guide.
Parameters:
-
attribute(Optional[SnapshotAttributeName], default:None) –The snapshot attribute you would like to view.
-
snapshot_id(Optional[SnapshotId], default:None) –The ID of the EBS snapshot.
-
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 snapshot attributes
This example describes the createVolumePermission attribute on a snapshot with the snapshot ID of snap-066877671789bd71b.
>>> await client.describe_snapshot_attribute(snapshot_id='snap-066877671789bd71b', attribute='createVolumePermission')
Source code in docs_src/capo_ec2/_services/async_ec2.py
33590 33591 33592 33593 33594 33595 33596 33597 33598 33599 33600 33601 33602 33603 33604 33605 33606 33607 33608 33609 33610 33611 33612 33613 33614 33615 33616 33617 33618 33619 33620 33621 33622 33623 33624 33625 33626 33627 33628 33629 33630 33631 33632 33633 33634 33635 33636 33637 33638 33639 33640 33641 33642 33643 33644 33645 33646 33647 33648 33649 | |