describeMultiRegionClusters method
Returns details about one or more multi-Region clusters.
May throw ClusterNotFoundFault.
May throw InvalidParameterCombinationException.
May throw InvalidParameterValueException.
May throw MultiRegionClusterNotFoundFault.
Parameter maxResults :
The maximum number of results to return.
Parameter multiRegionClusterName :
The name of a specific multi-Region cluster to describe.
Parameter nextToken :
A token to specify where to start paginating.
Parameter showClusterDetails :
Details about the multi-Region cluster.
Implementation
Future<DescribeMultiRegionClustersResponse> describeMultiRegionClusters({
int? maxResults,
String? multiRegionClusterName,
String? nextToken,
bool? showClusterDetails,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AmazonMemoryDB.DescribeMultiRegionClusters'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
if (maxResults != null) 'MaxResults': maxResults,
if (multiRegionClusterName != null)
'MultiRegionClusterName': multiRegionClusterName,
if (nextToken != null) 'NextToken': nextToken,
if (showClusterDetails != null)
'ShowClusterDetails': showClusterDetails,
},
);
return DescribeMultiRegionClustersResponse.fromJson(jsonResponse.body);
}