Struct aws_sdk_opsworks::model::cloud_watch_logs_log_stream::Builder
source · [−]#[non_exhaustive]pub struct Builder { /* private fields */ }
Expand description
A builder for CloudWatchLogsLogStream
Implementations
sourceimpl Builder
impl Builder
sourcepub fn log_group_name(self, input: impl Into<String>) -> Self
pub fn log_group_name(self, input: impl Into<String>) -> Self
Specifies the destination log group. A log group is created automatically if it doesn't already exist. Log group names can be between 1 and 512 characters long. Allowed characters include a-z, A-Z, 0-9, '_' (underscore), '-' (hyphen), '/' (forward slash), and '.' (period).
sourcepub fn set_log_group_name(self, input: Option<String>) -> Self
pub fn set_log_group_name(self, input: Option<String>) -> Self
Specifies the destination log group. A log group is created automatically if it doesn't already exist. Log group names can be between 1 and 512 characters long. Allowed characters include a-z, A-Z, 0-9, '_' (underscore), '-' (hyphen), '/' (forward slash), and '.' (period).
sourcepub fn datetime_format(self, input: impl Into<String>) -> Self
pub fn datetime_format(self, input: impl Into<String>) -> Self
Specifies how the time stamp is extracted from logs. For more information, see the CloudWatch Logs Agent Reference.
sourcepub fn set_datetime_format(self, input: Option<String>) -> Self
pub fn set_datetime_format(self, input: Option<String>) -> Self
Specifies how the time stamp is extracted from logs. For more information, see the CloudWatch Logs Agent Reference.
sourcepub fn time_zone(self, input: CloudWatchLogsTimeZone) -> Self
pub fn time_zone(self, input: CloudWatchLogsTimeZone) -> Self
Specifies the time zone of log event time stamps.
sourcepub fn set_time_zone(self, input: Option<CloudWatchLogsTimeZone>) -> Self
pub fn set_time_zone(self, input: Option<CloudWatchLogsTimeZone>) -> Self
Specifies the time zone of log event time stamps.
sourcepub fn file(self, input: impl Into<String>) -> Self
pub fn file(self, input: impl Into<String>) -> Self
Specifies log files that you want to push to CloudWatch Logs.
File
can point to a specific file or multiple files (by using wild card characters such as /var/log/system.log*
). Only the latest file is pushed to CloudWatch Logs, based on file modification time. We recommend that you use wild card characters to specify a series of files of the same type, such as access_log.2014-06-01-01
, access_log.2014-06-01-02
, and so on by using a pattern like access_log.*
. Don't use a wildcard to match multiple file types, such as access_log_80
and access_log_443
. To specify multiple, different file types, add another log stream entry to the configuration file, so that each log file type is stored in a different log group.
Zipped files are not supported.
sourcepub fn set_file(self, input: Option<String>) -> Self
pub fn set_file(self, input: Option<String>) -> Self
Specifies log files that you want to push to CloudWatch Logs.
File
can point to a specific file or multiple files (by using wild card characters such as /var/log/system.log*
). Only the latest file is pushed to CloudWatch Logs, based on file modification time. We recommend that you use wild card characters to specify a series of files of the same type, such as access_log.2014-06-01-01
, access_log.2014-06-01-02
, and so on by using a pattern like access_log.*
. Don't use a wildcard to match multiple file types, such as access_log_80
and access_log_443
. To specify multiple, different file types, add another log stream entry to the configuration file, so that each log file type is stored in a different log group.
Zipped files are not supported.
sourcepub fn file_fingerprint_lines(self, input: impl Into<String>) -> Self
pub fn file_fingerprint_lines(self, input: impl Into<String>) -> Self
Specifies the range of lines for identifying a file. The valid values are one number, or two dash-delimited numbers, such as '1', '2-5'. The default value is '1', meaning the first line is used to calculate the fingerprint. Fingerprint lines are not sent to CloudWatch Logs unless all specified lines are available.
sourcepub fn set_file_fingerprint_lines(self, input: Option<String>) -> Self
pub fn set_file_fingerprint_lines(self, input: Option<String>) -> Self
Specifies the range of lines for identifying a file. The valid values are one number, or two dash-delimited numbers, such as '1', '2-5'. The default value is '1', meaning the first line is used to calculate the fingerprint. Fingerprint lines are not sent to CloudWatch Logs unless all specified lines are available.
sourcepub fn multi_line_start_pattern(self, input: impl Into<String>) -> Self
pub fn multi_line_start_pattern(self, input: impl Into<String>) -> Self
Specifies the pattern for identifying the start of a log message.
sourcepub fn set_multi_line_start_pattern(self, input: Option<String>) -> Self
pub fn set_multi_line_start_pattern(self, input: Option<String>) -> Self
Specifies the pattern for identifying the start of a log message.
sourcepub fn initial_position(self, input: CloudWatchLogsInitialPosition) -> Self
pub fn initial_position(self, input: CloudWatchLogsInitialPosition) -> Self
Specifies where to start to read data (start_of_file or end_of_file). The default is start_of_file. This setting is only used if there is no state persisted for that log stream.
sourcepub fn set_initial_position(
self,
input: Option<CloudWatchLogsInitialPosition>
) -> Self
pub fn set_initial_position(
self,
input: Option<CloudWatchLogsInitialPosition>
) -> Self
Specifies where to start to read data (start_of_file or end_of_file). The default is start_of_file. This setting is only used if there is no state persisted for that log stream.
sourcepub fn encoding(self, input: CloudWatchLogsEncoding) -> Self
pub fn encoding(self, input: CloudWatchLogsEncoding) -> Self
Specifies the encoding of the log file so that the file can be read correctly. The default is utf_8
. Encodings supported by Python codecs.decode()
can be used here.
sourcepub fn set_encoding(self, input: Option<CloudWatchLogsEncoding>) -> Self
pub fn set_encoding(self, input: Option<CloudWatchLogsEncoding>) -> Self
Specifies the encoding of the log file so that the file can be read correctly. The default is utf_8
. Encodings supported by Python codecs.decode()
can be used here.
sourcepub fn buffer_duration(self, input: i32) -> Self
pub fn buffer_duration(self, input: i32) -> Self
Specifies the time duration for the batching of log events. The minimum value is 5000ms and default value is 5000ms.
sourcepub fn set_buffer_duration(self, input: Option<i32>) -> Self
pub fn set_buffer_duration(self, input: Option<i32>) -> Self
Specifies the time duration for the batching of log events. The minimum value is 5000ms and default value is 5000ms.
sourcepub fn batch_count(self, input: i32) -> Self
pub fn batch_count(self, input: i32) -> Self
Specifies the max number of log events in a batch, up to 10000. The default value is 1000.
sourcepub fn set_batch_count(self, input: Option<i32>) -> Self
pub fn set_batch_count(self, input: Option<i32>) -> Self
Specifies the max number of log events in a batch, up to 10000. The default value is 1000.
sourcepub fn batch_size(self, input: i32) -> Self
pub fn batch_size(self, input: i32) -> Self
Specifies the maximum size of log events in a batch, in bytes, up to 1048576 bytes. The default value is 32768 bytes. This size is calculated as the sum of all event messages in UTF-8, plus 26 bytes for each log event.
sourcepub fn set_batch_size(self, input: Option<i32>) -> Self
pub fn set_batch_size(self, input: Option<i32>) -> Self
Specifies the maximum size of log events in a batch, in bytes, up to 1048576 bytes. The default value is 32768 bytes. This size is calculated as the sum of all event messages in UTF-8, plus 26 bytes for each log event.
sourcepub fn build(self) -> CloudWatchLogsLogStream
pub fn build(self) -> CloudWatchLogsLogStream
Consumes the builder and constructs a CloudWatchLogsLogStream
Trait Implementations
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
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> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
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