Copyright | (c) 2013-2017 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@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 :: SnapshotAttributeName -> Text -> DescribeSnapshotAttribute
- data DescribeSnapshotAttribute
- dsaDryRun :: Lens' DescribeSnapshotAttribute (Maybe Bool)
- dsaAttribute :: Lens' DescribeSnapshotAttribute SnapshotAttributeName
- dsaSnapshotId :: Lens' DescribeSnapshotAttribute Text
- 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:
dsaDryRun
- 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 isDryRunOperation
. Otherwise, it isUnauthorizedOperation
.dsaAttribute
- The snapshot attribute you would like to view.dsaSnapshotId
- The ID of the EBS snapshot.
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
.
dsaAttribute :: Lens' DescribeSnapshotAttribute SnapshotAttributeName Source #
The snapshot attribute you would like to view.
dsaSnapshotId :: Lens' DescribeSnapshotAttribute Text Source #
The ID of the EBS snapshot.
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:
dsarsCreateVolumePermissions
- A list of permissions for creating volumes from the snapshot.dsarsProductCodes
- A list of product codes.dsarsSnapshotId
- The ID of the EBS snapshot.dsarsResponseStatus
- -- | The response status code.
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.