describeLoggingStatus method

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

Describes whether information, such as queries and connection attempts, is being logged for the specified Amazon Redshift cluster.

May throw ClusterNotFoundFault.

Parameter clusterIdentifier : The identifier of the cluster from which to get the logging status.

Example: examplecluster

Implementation

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