| Copyright | (c) 2013-2018 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 |
Network.AWS.EC2.DescribeVolumeAttribute
Description
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
- describeVolumeAttribute :: Text -> DescribeVolumeAttribute
- data DescribeVolumeAttribute
- dvaAttribute :: Lens' DescribeVolumeAttribute (Maybe VolumeAttributeName)
- dvaDryRun :: Lens' DescribeVolumeAttribute (Maybe Bool)
- dvaVolumeId :: Lens' DescribeVolumeAttribute Text
- describeVolumeAttributeResponse :: Int -> DescribeVolumeAttributeResponse
- data DescribeVolumeAttributeResponse
- dvarsVolumeId :: Lens' DescribeVolumeAttributeResponse (Maybe Text)
- dvarsProductCodes :: Lens' DescribeVolumeAttributeResponse [ProductCode]
- dvarsAutoEnableIO :: Lens' DescribeVolumeAttributeResponse (Maybe AttributeBooleanValue)
- dvarsResponseStatus :: Lens' DescribeVolumeAttributeResponse Int
Creating a Request
Arguments
| :: Text | |
| -> DescribeVolumeAttribute |
Creates a value of DescribeVolumeAttribute with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
dvaAttribute- The attribute of the volume. This parameter is required.dvaDryRun- 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.dvaVolumeId- The ID of the volume.
data DescribeVolumeAttribute #
Contains the parameters for DescribeVolumeAttribute.
See: describeVolumeAttribute smart constructor.
Instances
Request Lenses
dvaAttribute :: Lens' DescribeVolumeAttribute (Maybe VolumeAttributeName) #
The attribute of the volume. This parameter is required.
dvaDryRun :: Lens' DescribeVolumeAttribute (Maybe Bool) #
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 .
dvaVolumeId :: Lens' DescribeVolumeAttribute Text #
The ID of the volume.
Destructuring the Response
describeVolumeAttributeResponse #
Arguments
| :: Int | |
| -> DescribeVolumeAttributeResponse |
Creates a value of DescribeVolumeAttributeResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
dvarsVolumeId- The ID of the volume.dvarsProductCodes- A list of product codes.dvarsAutoEnableIO- The state ofautoEnableIOattribute.dvarsResponseStatus- -- | The response status code.
data DescribeVolumeAttributeResponse #
Contains the output of DescribeVolumeAttribute.
See: describeVolumeAttributeResponse smart constructor.
Instances
Response Lenses
dvarsVolumeId :: Lens' DescribeVolumeAttributeResponse (Maybe Text) #
The ID of the volume.
dvarsProductCodes :: Lens' DescribeVolumeAttributeResponse [ProductCode] #
A list of product codes.
dvarsAutoEnableIO :: Lens' DescribeVolumeAttributeResponse (Maybe AttributeBooleanValue) #
The state of autoEnableIO attribute.
dvarsResponseStatus :: Lens' DescribeVolumeAttributeResponse Int #
- - | The response status code.