aws_sdk_redshift/client/disable_logging.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`DisableLogging`](crate::operation::disable_logging::builders::DisableLoggingFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`cluster_identifier(impl Into<String>)`](crate::operation::disable_logging::builders::DisableLoggingFluentBuilder::cluster_identifier) / [`set_cluster_identifier(Option<String>)`](crate::operation::disable_logging::builders::DisableLoggingFluentBuilder::set_cluster_identifier):<br>required: **true**<br><p>The identifier of the cluster on which logging is to be stopped.</p> <p>Example: <code>examplecluster</code></p><br>
7 /// - On success, responds with [`DisableLoggingOutput`](crate::operation::disable_logging::DisableLoggingOutput) with field(s):
8 /// - [`logging_enabled(Option<bool>)`](crate::operation::disable_logging::DisableLoggingOutput::logging_enabled): <p><code>true</code> if logging is on, <code>false</code> if logging is off.</p>
9 /// - [`bucket_name(Option<String>)`](crate::operation::disable_logging::DisableLoggingOutput::bucket_name): <p>The name of the S3 bucket where the log files are stored.</p>
10 /// - [`s3_key_prefix(Option<String>)`](crate::operation::disable_logging::DisableLoggingOutput::s3_key_prefix): <p>The prefix applied to the log file names.</p>
11 /// - [`last_successful_delivery_time(Option<DateTime>)`](crate::operation::disable_logging::DisableLoggingOutput::last_successful_delivery_time): <p>The last time that logs were delivered.</p>
12 /// - [`last_failure_time(Option<DateTime>)`](crate::operation::disable_logging::DisableLoggingOutput::last_failure_time): <p>The last time when logs failed to be delivered.</p>
13 /// - [`last_failure_message(Option<String>)`](crate::operation::disable_logging::DisableLoggingOutput::last_failure_message): <p>The message indicating that logs failed to be delivered.</p>
14 /// - [`log_destination_type(Option<LogDestinationType>)`](crate::operation::disable_logging::DisableLoggingOutput::log_destination_type): <p>The log destination type. An enum with possible values of <code>s3</code> and <code>cloudwatch</code>.</p>
15 /// - [`log_exports(Option<Vec::<String>>)`](crate::operation::disable_logging::DisableLoggingOutput::log_exports): <p>The collection of exported log types. Possible values are <code>connectionlog</code>, <code>useractivitylog</code>, and <code>userlog</code>.</p>
16 /// - On failure, responds with [`SdkError<DisableLoggingError>`](crate::operation::disable_logging::DisableLoggingError)
17 pub fn disable_logging(&self) -> crate::operation::disable_logging::builders::DisableLoggingFluentBuilder {
18 crate::operation::disable_logging::builders::DisableLoggingFluentBuilder::new(self.handle.clone())
19 }
20}