describe_snapshot_attribute
¶
describe_snapshot_attribute(
*,
config_overrides: Optional[EC2ClientConfig] = 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.
>>> client.describe_snapshot_attribute(snapshot_id='snap-066877671789bd71b', attribute='createVolumePermission')
Source code in docs_src/capo_ec2/_services/ec2.py
33149 33150 33151 33152 33153 33154 33155 33156 33157 33158 33159 33160 33161 33162 33163 33164 33165 33166 33167 33168 33169 33170 33171 33172 33173 33174 33175 33176 33177 33178 33179 33180 33181 33182 33183 33184 33185 33186 33187 33188 33189 33190 33191 33192 33193 33194 33195 33196 33197 33198 33199 33200 33201 33202 33203 33204 33205 33206 33207 | |