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 volume. You can specify only one attribute at a time.
For more information about EBS volumes, see Amazon EBS volumes in the Amazon Elastic Compute Cloud User Guide.
Synopsis
- data DescribeVolumeAttribute = DescribeVolumeAttribute' {}
- newDescribeVolumeAttribute :: VolumeAttributeName -> Text -> DescribeVolumeAttribute
- describeVolumeAttribute_dryRun :: Lens' DescribeVolumeAttribute (Maybe Bool)
- describeVolumeAttribute_attribute :: Lens' DescribeVolumeAttribute VolumeAttributeName
- describeVolumeAttribute_volumeId :: Lens' DescribeVolumeAttribute Text
- data DescribeVolumeAttributeResponse = DescribeVolumeAttributeResponse' {}
- newDescribeVolumeAttributeResponse :: Int -> DescribeVolumeAttributeResponse
- describeVolumeAttributeResponse_autoEnableIO :: Lens' DescribeVolumeAttributeResponse (Maybe AttributeBooleanValue)
- describeVolumeAttributeResponse_productCodes :: Lens' DescribeVolumeAttributeResponse (Maybe [ProductCode])
- describeVolumeAttributeResponse_volumeId :: Lens' DescribeVolumeAttributeResponse (Maybe Text)
- describeVolumeAttributeResponse_httpStatus :: Lens' DescribeVolumeAttributeResponse Int
Creating a Request
data DescribeVolumeAttribute Source #
See: newDescribeVolumeAttribute
smart constructor.
DescribeVolumeAttribute' | |
|
Instances
newDescribeVolumeAttribute Source #
Create a value of DescribeVolumeAttribute
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:DescribeVolumeAttribute'
, describeVolumeAttribute_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:DescribeVolumeAttribute'
, describeVolumeAttribute_attribute
- The attribute of the volume. This parameter is required.
DescribeVolumeAttribute
, describeVolumeAttribute_volumeId
- The ID of the volume.
Request Lenses
describeVolumeAttribute_dryRun :: Lens' DescribeVolumeAttribute (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
.
describeVolumeAttribute_attribute :: Lens' DescribeVolumeAttribute VolumeAttributeName Source #
The attribute of the volume. This parameter is required.
describeVolumeAttribute_volumeId :: Lens' DescribeVolumeAttribute Text Source #
The ID of the volume.
Destructuring the Response
data DescribeVolumeAttributeResponse Source #
See: newDescribeVolumeAttributeResponse
smart constructor.
DescribeVolumeAttributeResponse' | |
|
Instances
newDescribeVolumeAttributeResponse Source #
Create a value of DescribeVolumeAttributeResponse
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:autoEnableIO:DescribeVolumeAttributeResponse'
, describeVolumeAttributeResponse_autoEnableIO
- The state of autoEnableIO
attribute.
DescribeVolumeAttributeResponse
, describeVolumeAttributeResponse_productCodes
- A list of product codes.
DescribeVolumeAttribute
, describeVolumeAttributeResponse_volumeId
- The ID of the volume.
$sel:httpStatus:DescribeVolumeAttributeResponse'
, describeVolumeAttributeResponse_httpStatus
- The response's http status code.
Response Lenses
describeVolumeAttributeResponse_autoEnableIO :: Lens' DescribeVolumeAttributeResponse (Maybe AttributeBooleanValue) Source #
The state of autoEnableIO
attribute.
describeVolumeAttributeResponse_productCodes :: Lens' DescribeVolumeAttributeResponse (Maybe [ProductCode]) Source #
A list of product codes.
describeVolumeAttributeResponse_volumeId :: Lens' DescribeVolumeAttributeResponse (Maybe Text) Source #
The ID of the volume.
describeVolumeAttributeResponse_httpStatus :: Lens' DescribeVolumeAttributeResponse Int Source #
The response's http status code.