Struct aws_sdk_ec2::model::CloudWatchLogOptions
source · #[non_exhaustive]pub struct CloudWatchLogOptions { /* private fields */ }
Expand description
Options for sending VPN tunnel logs to CloudWatch.
Implementations§
source§impl CloudWatchLogOptions
impl CloudWatchLogOptions
sourcepub fn log_enabled(&self) -> Option<bool>
pub fn log_enabled(&self) -> Option<bool>
Status of VPN tunnel logging feature. Default value is False
.
Valid values: True
| False
sourcepub fn log_group_arn(&self) -> Option<&str>
pub fn log_group_arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) of the CloudWatch log group to send logs to.
sourcepub fn log_output_format(&self) -> Option<&str>
pub fn log_output_format(&self) -> Option<&str>
Configured log format. Default format is json
.
Valid values: json
| text
source§impl CloudWatchLogOptions
impl CloudWatchLogOptions
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture CloudWatchLogOptions
.
Examples found in repository?
src/xml_deser.rs (line 70693)
70689 70690 70691 70692 70693 70694 70695 70696 70697 70698 70699 70700 70701 70702 70703 70704 70705 70706 70707 70708 70709 70710 70711 70712 70713 70714 70715 70716 70717 70718 70719 70720 70721 70722 70723 70724 70725 70726 70727 70728 70729 70730 70731 70732 70733 70734 70735 70736 70737 70738 70739 70740 70741
pub fn deser_structure_crate_model_cloud_watch_log_options(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::CloudWatchLogOptions, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::CloudWatchLogOptions::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("logEnabled") /* LogEnabled com.amazonaws.ec2#CloudWatchLogOptions$LogEnabled */ => {
let var_3493 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_log_enabled(var_3493);
}
,
s if s.matches("logGroupArn") /* LogGroupArn com.amazonaws.ec2#CloudWatchLogOptions$LogGroupArn */ => {
let var_3494 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_log_group_arn(var_3494);
}
,
s if s.matches("logOutputFormat") /* LogOutputFormat com.amazonaws.ec2#CloudWatchLogOptions$LogOutputFormat */ => {
let var_3495 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_log_output_format(var_3495);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for CloudWatchLogOptions
impl Clone for CloudWatchLogOptions
source§fn clone(&self) -> CloudWatchLogOptions
fn clone(&self) -> CloudWatchLogOptions
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more