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 |
Returns information about reserved OpenSearch instances for this account.
Synopsis
- data DescribeReservedInstances = DescribeReservedInstances' {}
- newDescribeReservedInstances :: DescribeReservedInstances
- describeReservedInstances_nextToken :: Lens' DescribeReservedInstances (Maybe Text)
- describeReservedInstances_reservedInstanceId :: Lens' DescribeReservedInstances (Maybe Text)
- describeReservedInstances_maxResults :: Lens' DescribeReservedInstances (Maybe Int)
- data DescribeReservedInstancesResponse = DescribeReservedInstancesResponse' {}
- newDescribeReservedInstancesResponse :: Int -> DescribeReservedInstancesResponse
- describeReservedInstancesResponse_nextToken :: Lens' DescribeReservedInstancesResponse (Maybe Text)
- describeReservedInstancesResponse_reservedInstances :: Lens' DescribeReservedInstancesResponse (Maybe [ReservedInstance])
- describeReservedInstancesResponse_httpStatus :: Lens' DescribeReservedInstancesResponse Int
Creating a Request
data DescribeReservedInstances Source #
Container for parameters to DescribeReservedInstances
See: newDescribeReservedInstances
smart constructor.
DescribeReservedInstances' | |
|
Instances
newDescribeReservedInstances :: DescribeReservedInstances Source #
Create a value of DescribeReservedInstances
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:nextToken:DescribeReservedInstances'
, describeReservedInstances_nextToken
- Provides an identifier to allow retrieval of paginated results.
$sel:reservedInstanceId:DescribeReservedInstances'
, describeReservedInstances_reservedInstanceId
- The reserved instance identifier filter value. Use this parameter to
show only the reservation that matches the specified reserved OpenSearch
instance ID.
$sel:maxResults:DescribeReservedInstances'
, describeReservedInstances_maxResults
- Set this value to limit the number of results returned. If not
specified, defaults to 100.
Request Lenses
describeReservedInstances_nextToken :: Lens' DescribeReservedInstances (Maybe Text) Source #
Provides an identifier to allow retrieval of paginated results.
describeReservedInstances_reservedInstanceId :: Lens' DescribeReservedInstances (Maybe Text) Source #
The reserved instance identifier filter value. Use this parameter to show only the reservation that matches the specified reserved OpenSearch instance ID.
describeReservedInstances_maxResults :: Lens' DescribeReservedInstances (Maybe Int) Source #
Set this value to limit the number of results returned. If not specified, defaults to 100.
Destructuring the Response
data DescribeReservedInstancesResponse Source #
Container for results from DescribeReservedInstances
See: newDescribeReservedInstancesResponse
smart constructor.
DescribeReservedInstancesResponse' | |
|
Instances
newDescribeReservedInstancesResponse Source #
Create a value of DescribeReservedInstancesResponse
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:nextToken:DescribeReservedInstances'
, describeReservedInstancesResponse_nextToken
- Provides an identifier to allow retrieval of paginated results.
$sel:reservedInstances:DescribeReservedInstancesResponse'
, describeReservedInstancesResponse_reservedInstances
- List of reserved OpenSearch instances.
$sel:httpStatus:DescribeReservedInstancesResponse'
, describeReservedInstancesResponse_httpStatus
- The response's http status code.
Response Lenses
describeReservedInstancesResponse_nextToken :: Lens' DescribeReservedInstancesResponse (Maybe Text) Source #
Provides an identifier to allow retrieval of paginated results.
describeReservedInstancesResponse_reservedInstances :: Lens' DescribeReservedInstancesResponse (Maybe [ReservedInstance]) Source #
List of reserved OpenSearch instances.
describeReservedInstancesResponse_httpStatus :: Lens' DescribeReservedInstancesResponse Int Source #
The response's http status code.