#[non_exhaustive]pub struct PendingLogDeliveryConfiguration { /* private fields */ }
Expand description
The log delivery configurations being modified
Implementations§
source§impl PendingLogDeliveryConfiguration
impl PendingLogDeliveryConfiguration
sourcepub fn destination_type(&self) -> Option<&DestinationType>
pub fn destination_type(&self) -> Option<&DestinationType>
Returns the destination type, either CloudWatch Logs or Kinesis Data Firehose.
sourcepub fn destination_details(&self) -> Option<&DestinationDetails>
pub fn destination_details(&self) -> Option<&DestinationDetails>
Configuration details of either a CloudWatch Logs destination or Kinesis Data Firehose destination.
sourcepub fn log_format(&self) -> Option<&LogFormat>
pub fn log_format(&self) -> Option<&LogFormat>
Returns the log format, either JSON or TEXT
source§impl PendingLogDeliveryConfiguration
impl PendingLogDeliveryConfiguration
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture PendingLogDeliveryConfiguration
.
Examples found in repository?
src/xml_deser.rs (line 11495)
11491 11492 11493 11494 11495 11496 11497 11498 11499 11500 11501 11502 11503 11504 11505 11506 11507 11508 11509 11510 11511 11512 11513 11514 11515 11516 11517 11518 11519 11520 11521 11522 11523 11524 11525 11526 11527 11528 11529 11530 11531 11532 11533 11534 11535 11536 11537 11538 11539 11540 11541 11542 11543 11544 11545 11546 11547 11548 11549 11550 11551 11552 11553 11554
pub fn deser_structure_crate_model_pending_log_delivery_configuration(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::PendingLogDeliveryConfiguration, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::PendingLogDeliveryConfiguration::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("LogType") /* LogType com.amazonaws.elasticache#PendingLogDeliveryConfiguration$LogType */ => {
let var_492 =
Some(
Result::<crate::model::LogType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::LogType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_log_type(var_492);
}
,
s if s.matches("DestinationType") /* DestinationType com.amazonaws.elasticache#PendingLogDeliveryConfiguration$DestinationType */ => {
let var_493 =
Some(
Result::<crate::model::DestinationType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::DestinationType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_destination_type(var_493);
}
,
s if s.matches("DestinationDetails") /* DestinationDetails com.amazonaws.elasticache#PendingLogDeliveryConfiguration$DestinationDetails */ => {
let var_494 =
Some(
crate::xml_deser::deser_structure_crate_model_destination_details(&mut tag)
?
)
;
builder = builder.set_destination_details(var_494);
}
,
s if s.matches("LogFormat") /* LogFormat com.amazonaws.elasticache#PendingLogDeliveryConfiguration$LogFormat */ => {
let var_495 =
Some(
Result::<crate::model::LogFormat, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::LogFormat::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_log_format(var_495);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for PendingLogDeliveryConfiguration
impl Clone for PendingLogDeliveryConfiguration
source§fn clone(&self) -> PendingLogDeliveryConfiguration
fn clone(&self) -> PendingLogDeliveryConfiguration
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