#[non_exhaustive]pub struct LogDeliveryConfiguration { /* private fields */ }
Expand description
Returns the destination, format and type of the logs.
Implementations§
source§impl LogDeliveryConfiguration
impl LogDeliveryConfiguration
sourcepub fn destination_type(&self) -> Option<&DestinationType>
pub fn destination_type(&self) -> Option<&DestinationType>
Returns the destination type, either cloudwatch-logs
or kinesis-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.
sourcepub fn status(&self) -> Option<&LogDeliveryConfigurationStatus>
pub fn status(&self) -> Option<&LogDeliveryConfigurationStatus>
Returns the log delivery configuration status. Values are one of enabling
| disabling
| modifying
| active
| error
source§impl LogDeliveryConfiguration
impl LogDeliveryConfiguration
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture LogDeliveryConfiguration
.
Examples found in repository?
src/xml_deser.rs (line 10786)
10782 10783 10784 10785 10786 10787 10788 10789 10790 10791 10792 10793 10794 10795 10796 10797 10798 10799 10800 10801 10802 10803 10804 10805 10806 10807 10808 10809 10810 10811 10812 10813 10814 10815 10816 10817 10818 10819 10820 10821 10822 10823 10824 10825 10826 10827 10828 10829 10830 10831 10832 10833 10834 10835 10836 10837 10838 10839 10840 10841 10842 10843 10844 10845 10846 10847 10848 10849 10850 10851 10852 10853 10854 10855 10856 10857 10858 10859 10860 10861 10862 10863 10864 10865 10866 10867 10868 10869 10870 10871 10872
pub fn deser_structure_crate_model_log_delivery_configuration(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::LogDeliveryConfiguration, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::LogDeliveryConfiguration::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("LogType") /* LogType com.amazonaws.elasticache#LogDeliveryConfiguration$LogType */ => {
let var_454 =
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_454);
}
,
s if s.matches("DestinationType") /* DestinationType com.amazonaws.elasticache#LogDeliveryConfiguration$DestinationType */ => {
let var_455 =
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_455);
}
,
s if s.matches("DestinationDetails") /* DestinationDetails com.amazonaws.elasticache#LogDeliveryConfiguration$DestinationDetails */ => {
let var_456 =
Some(
crate::xml_deser::deser_structure_crate_model_destination_details(&mut tag)
?
)
;
builder = builder.set_destination_details(var_456);
}
,
s if s.matches("LogFormat") /* LogFormat com.amazonaws.elasticache#LogDeliveryConfiguration$LogFormat */ => {
let var_457 =
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_457);
}
,
s if s.matches("Status") /* Status com.amazonaws.elasticache#LogDeliveryConfiguration$Status */ => {
let var_458 =
Some(
Result::<crate::model::LogDeliveryConfigurationStatus, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::LogDeliveryConfigurationStatus::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_status(var_458);
}
,
s if s.matches("Message") /* Message com.amazonaws.elasticache#LogDeliveryConfiguration$Message */ => {
let var_459 =
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_message(var_459);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for LogDeliveryConfiguration
impl Clone for LogDeliveryConfiguration
source§fn clone(&self) -> LogDeliveryConfiguration
fn clone(&self) -> LogDeliveryConfiguration
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