pauseCluster method

Future<PauseClusterResult> pauseCluster({
  1. required String clusterIdentifier,
})

Pauses a cluster.

May throw ClusterNotFoundFault. May throw InvalidClusterStateFault.

Parameter clusterIdentifier : The identifier of the cluster to be paused.

Implementation

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