promoteReadReplicaDBCluster method
Future<PromoteReadReplicaDBClusterResult>
promoteReadReplicaDBCluster({
- 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.
my-cluster-replica1
Implementation
Future<PromoteReadReplicaDBClusterResult> promoteReadReplicaDBCluster({
required String dBClusterIdentifier,
}) async {
ArgumentError.checkNotNull(dBClusterIdentifier, 'dBClusterIdentifier');
final $request = <String, dynamic>{};
$request['DBClusterIdentifier'] = dBClusterIdentifier;
final $result = await _protocol.send(
$request,
action: 'PromoteReadReplicaDBCluster',
version: '2014-10-31',
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
shape: shapes['PromoteReadReplicaDBClusterMessage'],
shapes: shapes,
resultWrapper: 'PromoteReadReplicaDBClusterResult',
);
return PromoteReadReplicaDBClusterResult.fromXml($result);
}