#[non_exhaustive]
pub struct LogDeliveryConfiguration { /* private fields */ }
Expand description

Returns the destination, format and type of the logs.

Implementations§

Refers to slow-log or engine-log.

Returns the destination type, either cloudwatch-logs or kinesis-firehose.

Configuration details of either a CloudWatch Logs destination or Kinesis Data Firehose destination.

Returns the log format, either JSON or TEXT.

Returns the log delivery configuration status. Values are one of enabling | disabling | modifying | active | error

Returns an error message for the log delivery configuration.

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§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more