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 ==.impl StructuralPartialEq for CloudwatchLogsActionBuilder
Auto Trait Implementations§
impl Freeze for CloudwatchLogsActionBuilder
impl RefUnwindSafe for CloudwatchLogsActionBuilder
impl Send for CloudwatchLogsActionBuilder
impl Sync for CloudwatchLogsActionBuilder
impl Unpin for CloudwatchLogsActionBuilder
impl UnwindSafe for CloudwatchLogsActionBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more