disable_logging
¶
disable_logging(
*,
config_overrides: Optional[RedshiftClientConfig] = None,
cluster_identifier: Optional[String] = None,
log_destination_type: Optional[LogDestinationType] = None,
log_exports: Optional[LogTypeList] = None,
) -> LoggingStatus
Stops logging information, such as queries and connection attempts, for the specified Amazon Redshift cluster.
Parameters:
-
cluster_identifier(Optional[String], default:None) –The identifier of the cluster on which logging is to be stopped.
Example:
examplecluster -
log_destination_type(Optional[LogDestinationType], default:None) –The log destination type. An enum with possible values of
s3,cloudwatch, ands3table. When set tos3table, stops system table publishing. When omitted, the operation disables audit logging. -
log_exports(Optional[LogTypeList], default:None) –The collection of log types to stop exporting. When
LogDestinationTypeiss3table, the values are the names of the system tables to stop publishing. Omitting this parameter or passingallstops publishing all system tables.
Raises:
-
ClusterNotFoundFault–The
ClusterIdentifierparameter does not refer to an existing cluster. -
InvalidClusterStateFault–The specified cluster is not in the
availablestate. -
UnsupportedOperationFault–The requested operation isn't supported.
-
UnknownServiceError–The service returned an error code this client does not model.