disableLogging method

Future<LoggingStatus> disableLogging({
  1. required String clusterIdentifier,
})

Stops logging information, such as queries and connection attempts, for the specified Amazon Redshift cluster.

May throw ClusterNotFoundFault.

Parameter clusterIdentifier : The identifier of the cluster on which logging is to be stopped.

Example: examplecluster

Implementation

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