rebootCluster method

Future<RebootClusterResult> rebootCluster({
  1. required String clusterIdentifier,
})

Reboots a cluster. This action is taken as soon as possible. It results in a momentary outage to the cluster, during which the cluster status is set to rebooting. A cluster event is created when the reboot is completed. Any pending cluster modifications (see ModifyCluster) are applied at this reboot. For more information about managing clusters, go to Amazon Redshift Clusters in the Amazon Redshift Cluster Management Guide.

May throw InvalidClusterStateFault. May throw ClusterNotFoundFault.

Parameter clusterIdentifier : The cluster identifier.

Implementation

Future<RebootClusterResult> rebootCluster({
  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: 'RebootCluster',
    version: '2012-12-01',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    shape: shapes['RebootClusterMessage'],
    shapes: shapes,
    resultWrapper: 'RebootClusterResult',
  );
  return RebootClusterResult.fromXml($result);
}