reset_snapshot_attribute
async
¶
reset_snapshot_attribute(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = None,
attribute: Optional[SnapshotAttributeName] = None,
snapshot_id: Optional[SnapshotId] = None,
dry_run: Optional[Boolean] = None,
) -> None
Resets permission settings for the specified snapshot.
For more information about modifying snapshot permissions, see Share a snapshot in the Amazon EBS User Guide.
Parameters:
-
attribute(Optional[SnapshotAttributeName], default:None) –The attribute to reset. Currently, only the attribute for permission to create volumes can be reset.
-
snapshot_id(Optional[SnapshotId], default:None) –The ID of the 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 reset a snapshot attribute
This example resets the create volume permissions for snapshot snap-1234567890abcdef0. If the command succeeds, no output is returned.
>>> await client.reset_snapshot_attribute(snapshot_id='snap-1234567890abcdef0', attribute='createVolumePermission')
Source code in docs_src/capo_ec2/_services/async_ec2.py
58871 58872 58873 58874 58875 58876 58877 58878 58879 58880 58881 58882 58883 58884 58885 58886 58887 58888 58889 58890 58891 58892 58893 58894 58895 58896 58897 58898 58899 58900 58901 58902 58903 58904 58905 58906 58907 58908 58909 58910 58911 58912 58913 58914 58915 58916 58917 58918 58919 58920 58921 58922 58923 58924 58925 58926 58927 58928 | |