describeDBInstances method
Returns information about provisioned instances, and supports pagination.
May throw DBInstanceNotFoundFault.
Parameter 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.
Parameter 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.
Parameter 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
.
Parameter 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.
Implementation
Future<DBInstanceMessage> describeDBInstances({
String? dBInstanceIdentifier,
List<Filter>? filters,
String? marker,
int? maxRecords,
}) async {
final $request = <String, dynamic>{};
dBInstanceIdentifier?.also((arg) => $request['DBInstanceIdentifier'] = arg);
filters?.also((arg) => $request['Filters'] = arg);
marker?.also((arg) => $request['Marker'] = arg);
maxRecords?.also((arg) => $request['MaxRecords'] = arg);
final $result = await _protocol.send(
$request,
action: 'DescribeDBInstances',
version: '2014-10-31',
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
shape: shapes['DescribeDBInstancesMessage'],
shapes: shapes,
resultWrapper: 'DescribeDBInstancesResult',
);
return DBInstanceMessage.fromXml($result);
}