promoteReadReplicaDBCluster method

Future<PromoteReadReplicaDBClusterResult> promoteReadReplicaDBCluster({
  1. required String dBClusterIdentifier,
})

Promotes a read replica DB cluster to a standalone DB cluster.

May throw DBClusterNotFoundFault. May throw InvalidDBClusterStateFault.

Parameter dBClusterIdentifier : The identifier of the DB cluster read replica to promote. This parameter isn't case-sensitive.

Constraints:

  • Must match the identifier of an existing DB cluster read replica.
Example: my-cluster-replica1

Implementation

Future<PromoteReadReplicaDBClusterResult> promoteReadReplicaDBCluster({
  required String dBClusterIdentifier,
}) async {
  final $request = <String, String>{
    'DBClusterIdentifier': dBClusterIdentifier,
  };
  final $result = await _protocol.send(
    $request,
    action: 'PromoteReadReplicaDBCluster',
    version: '2014-10-31',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    resultWrapper: 'PromoteReadReplicaDBClusterResult',
  );
  return PromoteReadReplicaDBClusterResult.fromXml($result);
}