Copyright | (c) 2013-2021 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 |
Describes an instance's Amazon EBS volumes.
This call accepts only one resource-identifying parameter.
Required Permissions: To use this action, an IAM user must have a Show, Deploy, or Manage permissions level for the stack, or an attached policy that explicitly grants permissions. For more information about user permissions, see Managing User Permissions.
Synopsis
- data DescribeVolumes = DescribeVolumes' {}
- newDescribeVolumes :: DescribeVolumes
- describeVolumes_instanceId :: Lens' DescribeVolumes (Maybe Text)
- describeVolumes_volumeIds :: Lens' DescribeVolumes (Maybe [Text])
- describeVolumes_raidArrayId :: Lens' DescribeVolumes (Maybe Text)
- describeVolumes_stackId :: Lens' DescribeVolumes (Maybe Text)
- data DescribeVolumesResponse = DescribeVolumesResponse' {
- volumes :: Maybe [Volume]
- httpStatus :: Int
- newDescribeVolumesResponse :: Int -> DescribeVolumesResponse
- describeVolumesResponse_volumes :: Lens' DescribeVolumesResponse (Maybe [Volume])
- describeVolumesResponse_httpStatus :: Lens' DescribeVolumesResponse Int
Creating a Request
data DescribeVolumes Source #
See: newDescribeVolumes
smart constructor.
DescribeVolumes' | |
|
Instances
newDescribeVolumes :: DescribeVolumes Source #
Create a value of DescribeVolumes
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:instanceId:DescribeVolumes'
, describeVolumes_instanceId
- The instance ID. If you use this parameter, DescribeVolumes
returns
descriptions of the volumes associated with the specified instance.
$sel:volumeIds:DescribeVolumes'
, describeVolumes_volumeIds
- Am array of volume IDs. If you use this parameter, DescribeVolumes
returns descriptions of the specified volumes. Otherwise, it returns a
description of every volume.
$sel:raidArrayId:DescribeVolumes'
, describeVolumes_raidArrayId
- The RAID array ID. If you use this parameter, DescribeVolumes
returns
descriptions of the volumes associated with the specified RAID array.
$sel:stackId:DescribeVolumes'
, describeVolumes_stackId
- A stack ID. The action describes the stack's registered Amazon EBS
volumes.
Request Lenses
describeVolumes_instanceId :: Lens' DescribeVolumes (Maybe Text) Source #
The instance ID. If you use this parameter, DescribeVolumes
returns
descriptions of the volumes associated with the specified instance.
describeVolumes_volumeIds :: Lens' DescribeVolumes (Maybe [Text]) Source #
Am array of volume IDs. If you use this parameter, DescribeVolumes
returns descriptions of the specified volumes. Otherwise, it returns a
description of every volume.
describeVolumes_raidArrayId :: Lens' DescribeVolumes (Maybe Text) Source #
The RAID array ID. If you use this parameter, DescribeVolumes
returns
descriptions of the volumes associated with the specified RAID array.
describeVolumes_stackId :: Lens' DescribeVolumes (Maybe Text) Source #
A stack ID. The action describes the stack's registered Amazon EBS volumes.
Destructuring the Response
data DescribeVolumesResponse Source #
Contains the response to a DescribeVolumes
request.
See: newDescribeVolumesResponse
smart constructor.
DescribeVolumesResponse' | |
|
Instances
newDescribeVolumesResponse Source #
Create a value of DescribeVolumesResponse
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:volumes:DescribeVolumesResponse'
, describeVolumesResponse_volumes
- An array of volume IDs.
$sel:httpStatus:DescribeVolumesResponse'
, describeVolumesResponse_httpStatus
- The response's http status code.
Response Lenses
describeVolumesResponse_volumes :: Lens' DescribeVolumesResponse (Maybe [Volume]) Source #
An array of volume IDs.
describeVolumesResponse_httpStatus :: Lens' DescribeVolumesResponse Int Source #
The response's http status code.