Struct aws_sdk_iot::operation::set_v2_logging_options::builders::SetV2LoggingOptionsFluentBuilder
source · pub struct SetV2LoggingOptionsFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to SetV2LoggingOptions
.
Sets the logging options for the V2 logging service.
Requires permission to access the SetV2LoggingOptions action.
Implementations§
source§impl SetV2LoggingOptionsFluentBuilder
impl SetV2LoggingOptionsFluentBuilder
sourcepub fn as_input(&self) -> &SetV2LoggingOptionsInputBuilder
pub fn as_input(&self) -> &SetV2LoggingOptionsInputBuilder
Access the SetV2LoggingOptions as a reference.
sourcepub async fn send(
self
) -> Result<SetV2LoggingOptionsOutput, SdkError<SetV2LoggingOptionsError, HttpResponse>>
pub async fn send( self ) -> Result<SetV2LoggingOptionsOutput, SdkError<SetV2LoggingOptionsError, 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<SetV2LoggingOptionsOutput, SetV2LoggingOptionsError, Self>
pub fn customize( self ) -> CustomizableOperation<SetV2LoggingOptionsOutput, SetV2LoggingOptionsError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn role_arn(self, input: impl Into<String>) -> Self
pub fn role_arn(self, input: impl Into<String>) -> Self
The ARN of the role that allows IoT to write to Cloudwatch logs.
sourcepub fn set_role_arn(self, input: Option<String>) -> Self
pub fn set_role_arn(self, input: Option<String>) -> Self
The ARN of the role that allows IoT to write to Cloudwatch logs.
sourcepub fn get_role_arn(&self) -> &Option<String>
pub fn get_role_arn(&self) -> &Option<String>
The ARN of the role that allows IoT to write to Cloudwatch logs.
sourcepub fn default_log_level(self, input: LogLevel) -> Self
pub fn default_log_level(self, input: LogLevel) -> Self
The default logging level.
sourcepub fn set_default_log_level(self, input: Option<LogLevel>) -> Self
pub fn set_default_log_level(self, input: Option<LogLevel>) -> Self
The default logging level.
sourcepub fn get_default_log_level(&self) -> &Option<LogLevel>
pub fn get_default_log_level(&self) -> &Option<LogLevel>
The default logging level.
sourcepub fn disable_all_logs(self, input: bool) -> Self
pub fn disable_all_logs(self, input: bool) -> Self
If true all logs are disabled. The default is false.
sourcepub fn set_disable_all_logs(self, input: Option<bool>) -> Self
pub fn set_disable_all_logs(self, input: Option<bool>) -> Self
If true all logs are disabled. The default is false.
sourcepub fn get_disable_all_logs(&self) -> &Option<bool>
pub fn get_disable_all_logs(&self) -> &Option<bool>
If true all logs are disabled. The default is false.
Trait Implementations§
source§impl Clone for SetV2LoggingOptionsFluentBuilder
impl Clone for SetV2LoggingOptionsFluentBuilder
source§fn clone(&self) -> SetV2LoggingOptionsFluentBuilder
fn clone(&self) -> SetV2LoggingOptionsFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more