Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
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.
Synopsis
- data DescribeSnapshotAttribute = DescribeSnapshotAttribute' {}
- newDescribeSnapshotAttribute :: SnapshotAttributeName -> Text -> DescribeSnapshotAttribute
- describeSnapshotAttribute_dryRun :: Lens' DescribeSnapshotAttribute (Maybe Bool)
- describeSnapshotAttribute_attribute :: Lens' DescribeSnapshotAttribute SnapshotAttributeName
- describeSnapshotAttribute_snapshotId :: Lens' DescribeSnapshotAttribute Text
- data DescribeSnapshotAttributeResponse = DescribeSnapshotAttributeResponse' {}
- newDescribeSnapshotAttributeResponse :: Int -> DescribeSnapshotAttributeResponse
- describeSnapshotAttributeResponse_createVolumePermissions :: Lens' DescribeSnapshotAttributeResponse (Maybe [CreateVolumePermission])
- describeSnapshotAttributeResponse_productCodes :: Lens' DescribeSnapshotAttributeResponse (Maybe [ProductCode])
- describeSnapshotAttributeResponse_snapshotId :: Lens' DescribeSnapshotAttributeResponse (Maybe Text)
- describeSnapshotAttributeResponse_httpStatus :: Lens' DescribeSnapshotAttributeResponse Int
Creating a Request
data DescribeSnapshotAttribute Source #
See: newDescribeSnapshotAttribute
smart constructor.
DescribeSnapshotAttribute' | |
|
Instances
newDescribeSnapshotAttribute Source #
Create a value of DescribeSnapshotAttribute
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:dryRun:DescribeSnapshotAttribute'
, describeSnapshotAttribute_dryRun
- 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
.
$sel:attribute:DescribeSnapshotAttribute'
, describeSnapshotAttribute_attribute
- The snapshot attribute you would like to view.
DescribeSnapshotAttribute
, describeSnapshotAttribute_snapshotId
- The ID of the EBS snapshot.
Request Lenses
describeSnapshotAttribute_dryRun :: 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
.
describeSnapshotAttribute_attribute :: Lens' DescribeSnapshotAttribute SnapshotAttributeName Source #
The snapshot attribute you would like to view.
describeSnapshotAttribute_snapshotId :: Lens' DescribeSnapshotAttribute Text Source #
The ID of the EBS snapshot.
Destructuring the Response
data DescribeSnapshotAttributeResponse Source #
See: newDescribeSnapshotAttributeResponse
smart constructor.
DescribeSnapshotAttributeResponse' | |
|
Instances
newDescribeSnapshotAttributeResponse Source #
Create a value of DescribeSnapshotAttributeResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:createVolumePermissions:DescribeSnapshotAttributeResponse'
, describeSnapshotAttributeResponse_createVolumePermissions
- The users and groups that have the permissions for creating volumes from
the snapshot.
DescribeSnapshotAttributeResponse
, describeSnapshotAttributeResponse_productCodes
- The product codes.
DescribeSnapshotAttribute
, describeSnapshotAttributeResponse_snapshotId
- The ID of the EBS snapshot.
$sel:httpStatus:DescribeSnapshotAttributeResponse'
, describeSnapshotAttributeResponse_httpStatus
- The response's http status code.
Response Lenses
describeSnapshotAttributeResponse_createVolumePermissions :: Lens' DescribeSnapshotAttributeResponse (Maybe [CreateVolumePermission]) Source #
The users and groups that have the permissions for creating volumes from the snapshot.
describeSnapshotAttributeResponse_productCodes :: Lens' DescribeSnapshotAttributeResponse (Maybe [ProductCode]) Source #
The product codes.
describeSnapshotAttributeResponse_snapshotId :: Lens' DescribeSnapshotAttributeResponse (Maybe Text) Source #
The ID of the EBS snapshot.
describeSnapshotAttributeResponse_httpStatus :: Lens' DescribeSnapshotAttributeResponse Int Source #
The response's http status code.