pub struct EnableLoggingFluentBuilder { /* 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§
source§impl EnableLoggingFluentBuilder
impl EnableLoggingFluentBuilder
sourcepub fn as_input(&self) -> &EnableLoggingInputBuilder
pub fn as_input(&self) -> &EnableLoggingInputBuilder
Access the EnableLogging as a reference.
sourcepub async fn send(
self
) -> Result<EnableLoggingOutput, SdkError<EnableLoggingError, HttpResponse>>
pub async fn send( self ) -> Result<EnableLoggingOutput, SdkError<EnableLoggingError, HttpResponse>>
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 customize(
self
) -> CustomizableOperation<EnableLoggingOutput, EnableLoggingError, Self>
pub fn customize( self ) -> CustomizableOperation<EnableLoggingOutput, EnableLoggingError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
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 get_cluster_identifier(&self) -> &Option<String>
pub fn get_cluster_identifier(&self) -> &Option<String>
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 get_bucket_name(&self) -> &Option<String>
pub fn get_bucket_name(&self) -> &Option<String>
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 get_s3_key_prefix(&self) -> &Option<String>
pub fn get_s3_key_prefix(&self) -> &Option<String>
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 get_log_destination_type(&self) -> &Option<LogDestinationType>
pub fn get_log_destination_type(&self) -> &Option<LogDestinationType>
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. Possible values are connectionlog
, useractivitylog
, and userlog
.
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. Possible values are connectionlog
, useractivitylog
, and userlog
.
sourcepub fn get_log_exports(&self) -> &Option<Vec<String>>
pub fn get_log_exports(&self) -> &Option<Vec<String>>
The collection of exported log types. Possible values are connectionlog
, useractivitylog
, and userlog
.
Trait Implementations§
source§impl Clone for EnableLoggingFluentBuilder
impl Clone for EnableLoggingFluentBuilder
source§fn clone(&self) -> EnableLoggingFluentBuilder
fn clone(&self) -> EnableLoggingFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more