Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
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 Elastic Compute Cloud User Guide.
- describeSnapshotAttribute :: Text -> SnapshotAttributeName -> DescribeSnapshotAttribute
- data DescribeSnapshotAttribute
- dsaDryRun :: Lens' DescribeSnapshotAttribute (Maybe Bool)
- dsaSnapshotId :: Lens' DescribeSnapshotAttribute Text
- dsaAttribute :: Lens' DescribeSnapshotAttribute SnapshotAttributeName
- describeSnapshotAttributeResponse :: Int -> DescribeSnapshotAttributeResponse
- data DescribeSnapshotAttributeResponse
- dsarsCreateVolumePermissions :: Lens' DescribeSnapshotAttributeResponse [CreateVolumePermission]
- dsarsProductCodes :: Lens' DescribeSnapshotAttributeResponse [ProductCode]
- dsarsSnapshotId :: Lens' DescribeSnapshotAttributeResponse (Maybe Text)
- dsarsResponseStatus :: Lens' DescribeSnapshotAttributeResponse Int
Creating a Request
describeSnapshotAttribute Source #
Creates a value of DescribeSnapshotAttribute
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data DescribeSnapshotAttribute Source #
Contains the parameters for DescribeSnapshotAttribute.
See: describeSnapshotAttribute
smart constructor.
Request Lenses
dsaDryRun :: Lens' DescribeSnapshotAttribute (Maybe Bool) Source #
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 is UnauthorizedOperation
.
dsaSnapshotId :: Lens' DescribeSnapshotAttribute Text Source #
The ID of the EBS snapshot.
dsaAttribute :: Lens' DescribeSnapshotAttribute SnapshotAttributeName Source #
The snapshot attribute you would like to view.
Destructuring the Response
describeSnapshotAttributeResponse Source #
Creates a value of DescribeSnapshotAttributeResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data DescribeSnapshotAttributeResponse Source #
Contains the output of DescribeSnapshotAttribute.
See: describeSnapshotAttributeResponse
smart constructor.
Response Lenses
dsarsCreateVolumePermissions :: Lens' DescribeSnapshotAttributeResponse [CreateVolumePermission] Source #
A list of permissions for creating volumes from the snapshot.
dsarsProductCodes :: Lens' DescribeSnapshotAttributeResponse [ProductCode] Source #
A list of product codes.
dsarsSnapshotId :: Lens' DescribeSnapshotAttributeResponse (Maybe Text) Source #
The ID of the EBS snapshot.
dsarsResponseStatus :: Lens' DescribeSnapshotAttributeResponse Int Source #
The response status code.