Struct aws_sdk_redshift::client::fluent_builders::EnableLogging
source · [−]pub struct EnableLogging { /* private fields */ }
Expand description
Fluent builder constructing a request to EnableLogging
.
Starts logging information, such as queries and connection attempts, for the specified Amazon Redshift cluster.
Implementations
sourceimpl EnableLogging
impl EnableLogging
sourcepub async fn send(
self
) -> Result<EnableLoggingOutput, SdkError<EnableLoggingError>>
pub async fn send(
self
) -> Result<EnableLoggingOutput, SdkError<EnableLoggingError>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn cluster_identifier(self, input: impl Into<String>) -> Self
pub fn cluster_identifier(self, input: impl Into<String>) -> Self
The identifier of the cluster on which logging is to be started.
Example: examplecluster
sourcepub fn set_cluster_identifier(self, input: Option<String>) -> Self
pub fn set_cluster_identifier(self, input: Option<String>) -> Self
The identifier of the cluster on which logging is to be started.
Example: examplecluster
sourcepub fn bucket_name(self, input: impl Into<String>) -> Self
pub fn bucket_name(self, input: impl Into<String>) -> Self
The name of an existing S3 bucket where the log files are to be stored.
Constraints:
-
Must be in the same region as the cluster
-
The cluster must have read bucket and put object permissions
sourcepub fn set_bucket_name(self, input: Option<String>) -> Self
pub fn set_bucket_name(self, input: Option<String>) -> Self
The name of an existing S3 bucket where the log files are to be stored.
Constraints:
-
Must be in the same region as the cluster
-
The cluster must have read bucket and put object permissions
sourcepub fn s3_key_prefix(self, input: impl Into<String>) -> Self
pub fn s3_key_prefix(self, input: impl Into<String>) -> Self
The prefix applied to the log file names.
Constraints:
-
Cannot exceed 512 characters
-
Cannot contain spaces( ), double quotes ("), single quotes ('), a backslash (\), or control characters. The hexadecimal codes for invalid characters are:
-
x00 to x20
-
x22
-
x27
-
x5c
-
x7f or larger
-
sourcepub fn set_s3_key_prefix(self, input: Option<String>) -> Self
pub fn set_s3_key_prefix(self, input: Option<String>) -> Self
The prefix applied to the log file names.
Constraints:
-
Cannot exceed 512 characters
-
Cannot contain spaces( ), double quotes ("), single quotes ('), a backslash (\), or control characters. The hexadecimal codes for invalid characters are:
-
x00 to x20
-
x22
-
x27
-
x5c
-
x7f or larger
-
sourcepub fn log_destination_type(self, input: LogDestinationType) -> Self
pub fn log_destination_type(self, input: LogDestinationType) -> Self
The log destination type. An enum with possible values of s3
and cloudwatch
.
sourcepub fn set_log_destination_type(self, input: Option<LogDestinationType>) -> Self
pub fn set_log_destination_type(self, input: Option<LogDestinationType>) -> Self
The log destination type. An enum with possible values of s3
and cloudwatch
.
sourcepub fn log_exports(self, input: impl Into<String>) -> Self
pub fn log_exports(self, input: impl Into<String>) -> Self
Appends an item to LogExports
.
To override the contents of this collection use set_log_exports
.
The collection of exported log types. Log types include the connection log, user log and user activity log.
sourcepub fn set_log_exports(self, input: Option<Vec<String>>) -> Self
pub fn set_log_exports(self, input: Option<Vec<String>>) -> Self
The collection of exported log types. Log types include the connection log, user log and user activity log.
Trait Implementations
sourceimpl Clone for EnableLogging
impl Clone for EnableLogging
sourcefn clone(&self) -> EnableLogging
fn clone(&self) -> EnableLogging
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl !RefUnwindSafe for EnableLogging
impl Send for EnableLogging
impl Sync for EnableLogging
impl Unpin for EnableLogging
impl !UnwindSafe for EnableLogging
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more