Struct aws_sdk_redshift::input::EnableLoggingInput
source · [−]#[non_exhaustive]pub struct EnableLoggingInput {
pub cluster_identifier: Option<String>,
pub bucket_name: Option<String>,
pub s3_key_prefix: Option<String>,
pub log_destination_type: Option<LogDestinationType>,
pub log_exports: Option<Vec<String>>,
}
Expand description
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.cluster_identifier: Option<String>
The identifier of the cluster on which logging is to be started.
Example: examplecluster
bucket_name: 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
s3_key_prefix: 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
-
log_destination_type: Option<LogDestinationType>
The log destination type. An enum with possible values of s3
and cloudwatch
.
log_exports: Option<Vec<String>>
The collection of exported log types. Log types include the connection log, user log and user activity log.
Implementations
sourceimpl EnableLoggingInput
impl EnableLoggingInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<EnableLogging, AwsErrorRetryPolicy>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<EnableLogging, AwsErrorRetryPolicy>, BuildError>
Consumes the builder and constructs an Operation<EnableLogging
>
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture EnableLoggingInput
sourceimpl EnableLoggingInput
impl EnableLoggingInput
sourcepub fn cluster_identifier(&self) -> Option<&str>
pub fn cluster_identifier(&self) -> Option<&str>
The identifier of the cluster on which logging is to be started.
Example: examplecluster
sourcepub fn bucket_name(&self) -> Option<&str>
pub fn bucket_name(&self) -> Option<&str>
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) -> Option<&str>
pub fn s3_key_prefix(&self) -> Option<&str>
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) -> Option<&LogDestinationType>
pub fn log_destination_type(&self) -> Option<&LogDestinationType>
The log destination type. An enum with possible values of s3
and cloudwatch
.
Trait Implementations
sourceimpl Clone for EnableLoggingInput
impl Clone for EnableLoggingInput
sourcefn clone(&self) -> EnableLoggingInput
fn clone(&self) -> EnableLoggingInput
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
sourceimpl Debug for EnableLoggingInput
impl Debug for EnableLoggingInput
sourceimpl PartialEq<EnableLoggingInput> for EnableLoggingInput
impl PartialEq<EnableLoggingInput> for EnableLoggingInput
sourcefn eq(&self, other: &EnableLoggingInput) -> bool
fn eq(&self, other: &EnableLoggingInput) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &EnableLoggingInput) -> bool
fn ne(&self, other: &EnableLoggingInput) -> bool
This method tests for !=
.
impl StructuralPartialEq for EnableLoggingInput
Auto Trait Implementations
impl RefUnwindSafe for EnableLoggingInput
impl Send for EnableLoggingInput
impl Sync for EnableLoggingInput
impl Unpin for EnableLoggingInput
impl UnwindSafe for EnableLoggingInput
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