Struct aws_sdk_iot::types::builders::CloudwatchLogsActionBuilder
source · #[non_exhaustive]pub struct CloudwatchLogsActionBuilder { /* private fields */ }Expand description
A builder for CloudwatchLogsAction.
Implementations§
source§impl CloudwatchLogsActionBuilder
impl CloudwatchLogsActionBuilder
sourcepub fn role_arn(self, input: impl Into<String>) -> Self
pub fn role_arn(self, input: impl Into<String>) -> Self
The IAM role that allows access to the CloudWatch log.
This field is required.sourcepub fn set_role_arn(self, input: Option<String>) -> Self
pub fn set_role_arn(self, input: Option<String>) -> Self
The IAM role that allows access to the CloudWatch log.
sourcepub fn get_role_arn(&self) -> &Option<String>
pub fn get_role_arn(&self) -> &Option<String>
The IAM role that allows access to the CloudWatch log.
sourcepub fn log_group_name(self, input: impl Into<String>) -> Self
pub fn log_group_name(self, input: impl Into<String>) -> Self
The CloudWatch log group to which the action sends data.
This field is required.sourcepub fn set_log_group_name(self, input: Option<String>) -> Self
pub fn set_log_group_name(self, input: Option<String>) -> Self
The CloudWatch log group to which the action sends data.
sourcepub fn get_log_group_name(&self) -> &Option<String>
pub fn get_log_group_name(&self) -> &Option<String>
The CloudWatch log group to which the action sends data.
sourcepub fn batch_mode(self, input: bool) -> Self
pub fn batch_mode(self, input: bool) -> Self
Indicates whether batches of log records will be extracted and uploaded into CloudWatch. Values include true or false (default).
sourcepub fn set_batch_mode(self, input: Option<bool>) -> Self
pub fn set_batch_mode(self, input: Option<bool>) -> Self
Indicates whether batches of log records will be extracted and uploaded into CloudWatch. Values include true or false (default).
sourcepub fn get_batch_mode(&self) -> &Option<bool>
pub fn get_batch_mode(&self) -> &Option<bool>
Indicates whether batches of log records will be extracted and uploaded into CloudWatch. Values include true or false (default).
sourcepub fn build(self) -> Result<CloudwatchLogsAction, BuildError>
pub fn build(self) -> Result<CloudwatchLogsAction, BuildError>
Consumes the builder and constructs a CloudwatchLogsAction.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for CloudwatchLogsActionBuilder
impl Clone for CloudwatchLogsActionBuilder
source§fn clone(&self) -> CloudwatchLogsActionBuilder
fn clone(&self) -> CloudwatchLogsActionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for CloudwatchLogsActionBuilder
impl Debug for CloudwatchLogsActionBuilder
source§impl Default for CloudwatchLogsActionBuilder
impl Default for CloudwatchLogsActionBuilder
source§fn default() -> CloudwatchLogsActionBuilder
fn default() -> CloudwatchLogsActionBuilder
source§impl PartialEq for CloudwatchLogsActionBuilder
impl PartialEq for CloudwatchLogsActionBuilder
source§fn eq(&self, other: &CloudwatchLogsActionBuilder) -> bool
fn eq(&self, other: &CloudwatchLogsActionBuilder) -> bool
self and other values to be equal, and is used
by ==.