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 DB instances for this account, or about a specified reserved DB instance.
This operation returns paginated results.
Synopsis
- data DescribeReservedDBInstances = DescribeReservedDBInstances' {}
- newDescribeReservedDBInstances :: DescribeReservedDBInstances
- describeReservedDBInstances_productDescription :: Lens' DescribeReservedDBInstances (Maybe Text)
- describeReservedDBInstances_filters :: Lens' DescribeReservedDBInstances (Maybe [Filter])
- describeReservedDBInstances_leaseId :: Lens' DescribeReservedDBInstances (Maybe Text)
- describeReservedDBInstances_reservedDBInstanceId :: Lens' DescribeReservedDBInstances (Maybe Text)
- describeReservedDBInstances_dbInstanceClass :: Lens' DescribeReservedDBInstances (Maybe Text)
- describeReservedDBInstances_marker :: Lens' DescribeReservedDBInstances (Maybe Text)
- describeReservedDBInstances_maxRecords :: Lens' DescribeReservedDBInstances (Maybe Int)
- describeReservedDBInstances_multiAZ :: Lens' DescribeReservedDBInstances (Maybe Bool)
- describeReservedDBInstances_reservedDBInstancesOfferingId :: Lens' DescribeReservedDBInstances (Maybe Text)
- describeReservedDBInstances_offeringType :: Lens' DescribeReservedDBInstances (Maybe Text)
- describeReservedDBInstances_duration :: Lens' DescribeReservedDBInstances (Maybe Text)
- data DescribeReservedDBInstancesResponse = DescribeReservedDBInstancesResponse' {}
- newDescribeReservedDBInstancesResponse :: Int -> DescribeReservedDBInstancesResponse
- describeReservedDBInstancesResponse_reservedDBInstances :: Lens' DescribeReservedDBInstancesResponse (Maybe [ReservedDBInstance])
- describeReservedDBInstancesResponse_marker :: Lens' DescribeReservedDBInstancesResponse (Maybe Text)
- describeReservedDBInstancesResponse_httpStatus :: Lens' DescribeReservedDBInstancesResponse Int
Creating a Request
data DescribeReservedDBInstances Source #
See: newDescribeReservedDBInstances
smart constructor.
DescribeReservedDBInstances' | |
|
Instances
newDescribeReservedDBInstances :: DescribeReservedDBInstances Source #
Create a value of DescribeReservedDBInstances
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:productDescription:DescribeReservedDBInstances'
, describeReservedDBInstances_productDescription
- The product description filter value. Specify this parameter to show
only those reservations matching the specified product description.
$sel:filters:DescribeReservedDBInstances'
, describeReservedDBInstances_filters
- This parameter isn't currently supported.
$sel:leaseId:DescribeReservedDBInstances'
, describeReservedDBInstances_leaseId
- The lease identifier filter value. Specify this parameter to show only
the reservation that matches the specified lease ID.
Amazon Web Services Support might request the lease ID for an issue related to a reserved DB instance.
$sel:reservedDBInstanceId:DescribeReservedDBInstances'
, describeReservedDBInstances_reservedDBInstanceId
- The reserved DB instance identifier filter value. Specify this parameter
to show only the reservation that matches the specified reservation ID.
$sel:dbInstanceClass:DescribeReservedDBInstances'
, describeReservedDBInstances_dbInstanceClass
- The DB instance class filter value. Specify this parameter to show only
those reservations matching the specified DB instances class.
$sel:marker:DescribeReservedDBInstances'
, describeReservedDBInstances_marker
- An optional pagination token provided by a previous request. If this
parameter is specified, the response includes only records beyond the
marker, up to the value specified by MaxRecords
.
$sel:maxRecords:DescribeReservedDBInstances'
, describeReservedDBInstances_maxRecords
- The maximum number of records to include in the response. If more than
the MaxRecords
value is available, a pagination token called a marker
is included in the response so you can retrieve the remaining results.
Default: 100
Constraints: Minimum 20, maximum 100.
$sel:multiAZ:DescribeReservedDBInstances'
, describeReservedDBInstances_multiAZ
- A value that indicates whether to show only those reservations that
support Multi-AZ.
$sel:reservedDBInstancesOfferingId:DescribeReservedDBInstances'
, describeReservedDBInstances_reservedDBInstancesOfferingId
- The offering identifier filter value. Specify this parameter to show
only purchased reservations matching the specified offering identifier.
$sel:offeringType:DescribeReservedDBInstances'
, describeReservedDBInstances_offeringType
- The offering type filter value. Specify this parameter to show only the
available offerings matching the specified offering type.
Valid Values: "Partial Upfront" | "All Upfront" | "No Upfront"
$sel:duration:DescribeReservedDBInstances'
, describeReservedDBInstances_duration
- The duration filter value, specified in years or seconds. Specify this
parameter to show only reservations for this duration.
Valid Values: 1 | 3 | 31536000 | 94608000
Request Lenses
describeReservedDBInstances_productDescription :: Lens' DescribeReservedDBInstances (Maybe Text) Source #
The product description filter value. Specify this parameter to show only those reservations matching the specified product description.
describeReservedDBInstances_filters :: Lens' DescribeReservedDBInstances (Maybe [Filter]) Source #
This parameter isn't currently supported.
describeReservedDBInstances_leaseId :: Lens' DescribeReservedDBInstances (Maybe Text) Source #
The lease identifier filter value. Specify this parameter to show only the reservation that matches the specified lease ID.
Amazon Web Services Support might request the lease ID for an issue related to a reserved DB instance.
describeReservedDBInstances_reservedDBInstanceId :: Lens' DescribeReservedDBInstances (Maybe Text) Source #
The reserved DB instance identifier filter value. Specify this parameter to show only the reservation that matches the specified reservation ID.
describeReservedDBInstances_dbInstanceClass :: Lens' DescribeReservedDBInstances (Maybe Text) Source #
The DB instance class filter value. Specify this parameter to show only those reservations matching the specified DB instances class.
describeReservedDBInstances_marker :: Lens' DescribeReservedDBInstances (Maybe Text) Source #
An optional pagination token provided by a previous request. If this
parameter is specified, the response includes only records beyond the
marker, up to the value specified by MaxRecords
.
describeReservedDBInstances_maxRecords :: Lens' DescribeReservedDBInstances (Maybe Int) Source #
The maximum number of records to include in the response. If more than
the MaxRecords
value is available, a pagination token called a marker
is included in the response so you can retrieve the remaining results.
Default: 100
Constraints: Minimum 20, maximum 100.
describeReservedDBInstances_multiAZ :: Lens' DescribeReservedDBInstances (Maybe Bool) Source #
A value that indicates whether to show only those reservations that support Multi-AZ.
describeReservedDBInstances_reservedDBInstancesOfferingId :: Lens' DescribeReservedDBInstances (Maybe Text) Source #
The offering identifier filter value. Specify this parameter to show only purchased reservations matching the specified offering identifier.
describeReservedDBInstances_offeringType :: Lens' DescribeReservedDBInstances (Maybe Text) Source #
The offering type filter value. Specify this parameter to show only the available offerings matching the specified offering type.
Valid Values: "Partial Upfront" | "All Upfront" | "No Upfront"
describeReservedDBInstances_duration :: Lens' DescribeReservedDBInstances (Maybe Text) Source #
The duration filter value, specified in years or seconds. Specify this parameter to show only reservations for this duration.
Valid Values: 1 | 3 | 31536000 | 94608000
Destructuring the Response
data DescribeReservedDBInstancesResponse Source #
Contains the result of a successful invocation of the
DescribeReservedDBInstances
action.
See: newDescribeReservedDBInstancesResponse
smart constructor.
DescribeReservedDBInstancesResponse' | |
|
Instances
newDescribeReservedDBInstancesResponse Source #
Create a value of DescribeReservedDBInstancesResponse
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:reservedDBInstances:DescribeReservedDBInstancesResponse'
, describeReservedDBInstancesResponse_reservedDBInstances
- A list of reserved DB instances.
$sel:marker:DescribeReservedDBInstances'
, describeReservedDBInstancesResponse_marker
- An optional pagination token provided by a previous request. If this
parameter is specified, the response includes only records beyond the
marker, up to the value specified by MaxRecords
.
$sel:httpStatus:DescribeReservedDBInstancesResponse'
, describeReservedDBInstancesResponse_httpStatus
- The response's http status code.
Response Lenses
describeReservedDBInstancesResponse_reservedDBInstances :: Lens' DescribeReservedDBInstancesResponse (Maybe [ReservedDBInstance]) Source #
A list of reserved DB instances.
describeReservedDBInstancesResponse_marker :: Lens' DescribeReservedDBInstancesResponse (Maybe Text) Source #
An optional pagination token provided by a previous request. If this
parameter is specified, the response includes only records beyond the
marker, up to the value specified by MaxRecords
.
describeReservedDBInstancesResponse_httpStatus :: Lens' DescribeReservedDBInstancesResponse Int Source #
The response's http status code.