modifyClusterDbRevision method

Future<ModifyClusterDbRevisionResult> modifyClusterDbRevision({
  1. required String clusterIdentifier,
  2. required String revisionTarget,
})

Modifies the database revision of a cluster. The database revision is a unique revision of the database running in a cluster.

May throw ClusterNotFoundFault. May throw ClusterOnLatestRevisionFault. May throw InvalidClusterStateFault.

Parameter clusterIdentifier : The unique identifier of a cluster whose database revision you want to modify.

Example: examplecluster

Parameter revisionTarget : The identifier of the database revision. You can retrieve this value from the response to the DescribeClusterDbRevisions request.

Implementation

Future<ModifyClusterDbRevisionResult> modifyClusterDbRevision({
  required String clusterIdentifier,
  required String revisionTarget,
}) async {
  ArgumentError.checkNotNull(clusterIdentifier, 'clusterIdentifier');
  _s.validateStringLength(
    'clusterIdentifier',
    clusterIdentifier,
    0,
    2147483647,
    isRequired: true,
  );
  ArgumentError.checkNotNull(revisionTarget, 'revisionTarget');
  _s.validateStringLength(
    'revisionTarget',
    revisionTarget,
    0,
    2147483647,
    isRequired: true,
  );
  final $request = <String, dynamic>{};
  $request['ClusterIdentifier'] = clusterIdentifier;
  $request['RevisionTarget'] = revisionTarget;
  final $result = await _protocol.send(
    $request,
    action: 'ModifyClusterDbRevision',
    version: '2012-12-01',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    shape: shapes['ModifyClusterDbRevisionMessage'],
    shapes: shapes,
    resultWrapper: 'ModifyClusterDbRevisionResult',
  );
  return ModifyClusterDbRevisionResult.fromXml($result);
}