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 provisioned instances, and supports pagination.
This operation can also return information for Amazon RDS instances and Amazon DocDB instances.
This operation returns paginated results.
Synopsis
- data DescribeDBInstances = DescribeDBInstances' {}
- newDescribeDBInstances :: DescribeDBInstances
- describeDBInstances_filters :: Lens' DescribeDBInstances (Maybe [Filter])
- describeDBInstances_dbInstanceIdentifier :: Lens' DescribeDBInstances (Maybe Text)
- describeDBInstances_marker :: Lens' DescribeDBInstances (Maybe Text)
- describeDBInstances_maxRecords :: Lens' DescribeDBInstances (Maybe Int)
- data DescribeDBInstancesResponse = DescribeDBInstancesResponse' {
- dbInstances :: Maybe [DBInstance]
- marker :: Maybe Text
- httpStatus :: Int
- newDescribeDBInstancesResponse :: Int -> DescribeDBInstancesResponse
- describeDBInstancesResponse_dbInstances :: Lens' DescribeDBInstancesResponse (Maybe [DBInstance])
- describeDBInstancesResponse_marker :: Lens' DescribeDBInstancesResponse (Maybe Text)
- describeDBInstancesResponse_httpStatus :: Lens' DescribeDBInstancesResponse Int
Creating a Request
data DescribeDBInstances Source #
See: newDescribeDBInstances
smart constructor.
DescribeDBInstances' | |
|
Instances
newDescribeDBInstances :: DescribeDBInstances Source #
Create a value of DescribeDBInstances
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:filters:DescribeDBInstances'
, describeDBInstances_filters
- A filter that specifies one or more DB instances to describe.
Supported filters:
db-cluster-id
- Accepts DB cluster identifiers and DB cluster Amazon Resource Names (ARNs). The results list will only include information about the DB instances associated with the DB clusters identified by these ARNs.engine
- Accepts an engine name (such asneptune
), and restricts the results list to DB instances created by that engine.
For example, to invoke this API from the Amazon CLI and filter so that only Neptune DB instances are returned, you could use the following command:
$sel:dbInstanceIdentifier:DescribeDBInstances'
, describeDBInstances_dbInstanceIdentifier
- The user-supplied instance identifier. If this parameter is specified,
information from only the specific DB instance is returned. This
parameter isn't case-sensitive.
Constraints:
- If supplied, must match the identifier of an existing DBInstance.
$sel:marker:DescribeDBInstances'
, describeDBInstances_marker
- An optional pagination token provided by a previous
DescribeDBInstances
request. If this parameter is specified, the
response includes only records beyond the marker, up to the value
specified by MaxRecords
.
$sel:maxRecords:DescribeDBInstances'
, describeDBInstances_maxRecords
- The maximum number of records to include in the response. If more
records exist than the specified MaxRecords
value, a pagination token
called a marker is included in the response so that the remaining
results can be retrieved.
Default: 100
Constraints: Minimum 20, maximum 100.
Request Lenses
describeDBInstances_filters :: Lens' DescribeDBInstances (Maybe [Filter]) Source #
A filter that specifies one or more DB instances to describe.
Supported filters:
db-cluster-id
- Accepts DB cluster identifiers and DB cluster Amazon Resource Names (ARNs). The results list will only include information about the DB instances associated with the DB clusters identified by these ARNs.engine
- Accepts an engine name (such asneptune
), and restricts the results list to DB instances created by that engine.
For example, to invoke this API from the Amazon CLI and filter so that only Neptune DB instances are returned, you could use the following command:
describeDBInstances_dbInstanceIdentifier :: Lens' DescribeDBInstances (Maybe Text) Source #
The user-supplied instance identifier. If this parameter is specified, information from only the specific DB instance is returned. This parameter isn't case-sensitive.
Constraints:
- If supplied, must match the identifier of an existing DBInstance.
describeDBInstances_marker :: Lens' DescribeDBInstances (Maybe Text) Source #
An optional pagination token provided by a previous
DescribeDBInstances
request. If this parameter is specified, the
response includes only records beyond the marker, up to the value
specified by MaxRecords
.
describeDBInstances_maxRecords :: Lens' DescribeDBInstances (Maybe Int) Source #
The maximum number of records to include in the response. If more
records exist than the specified MaxRecords
value, a pagination token
called a marker is included in the response so that the remaining
results can be retrieved.
Default: 100
Constraints: Minimum 20, maximum 100.
Destructuring the Response
data DescribeDBInstancesResponse Source #
See: newDescribeDBInstancesResponse
smart constructor.
DescribeDBInstancesResponse' | |
|
Instances
newDescribeDBInstancesResponse Source #
Create a value of DescribeDBInstancesResponse
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:dbInstances:DescribeDBInstancesResponse'
, describeDBInstancesResponse_dbInstances
- A list of DBInstance instances.
$sel:marker:DescribeDBInstances'
, describeDBInstancesResponse_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:DescribeDBInstancesResponse'
, describeDBInstancesResponse_httpStatus
- The response's http status code.
Response Lenses
describeDBInstancesResponse_dbInstances :: Lens' DescribeDBInstancesResponse (Maybe [DBInstance]) Source #
A list of DBInstance instances.
describeDBInstancesResponse_marker :: Lens' DescribeDBInstancesResponse (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
.
describeDBInstancesResponse_httpStatus :: Lens' DescribeDBInstancesResponse Int Source #
The response's http status code.