describeDBClusters method
Returns information about provisioned Amazon DocumentDB clusters. This API
operation supports pagination. For certain management features such as
cluster and instance lifecycle management, Amazon DocumentDB leverages
operational technology that is shared with Amazon RDS and Amazon Neptune.
Use the filterName=engine,Values=docdb
filter parameter to
return only Amazon DocumentDB clusters.
May throw DBClusterNotFoundFault.
Parameter dBClusterIdentifier
:
The user-provided cluster identifier. If this parameter is specified,
information from only the specific cluster is returned. This parameter
isn't case sensitive.
Constraints:
-
If provided, must match an existing
DBClusterIdentifier
.
Parameter filters
:
A filter that specifies one or more clusters to describe.
Supported filters:
-
db-cluster-id
- Accepts cluster identifiers and cluster Amazon Resource Names (ARNs). The results list only includes information about the clusters identified by these ARNs.
Parameter 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
.
Parameter maxRecords
:
The maximum number of records to include in the response. If more records
exist than the specified MaxRecords
value, a pagination token
(marker) is included in the response so that the remaining results can be
retrieved.
Default: 100
Constraints: Minimum 20, maximum 100.
Implementation
Future<DBClusterMessage> describeDBClusters({
String? dBClusterIdentifier,
List<Filter>? filters,
String? marker,
int? maxRecords,
}) async {
final $request = <String, dynamic>{};
dBClusterIdentifier?.also((arg) => $request['DBClusterIdentifier'] = 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: 'DescribeDBClusters',
version: '2014-10-31',
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
shape: shapes['DescribeDBClustersMessage'],
shapes: shapes,
resultWrapper: 'DescribeDBClustersResult',
);
return DBClusterMessage.fromXml($result);
}