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

Describes the Connect peer details.

Implementations§

The Connect peer IP address on the transit gateway side of the tunnel.

The Connect peer IP address on the appliance side of the tunnel.

The range of interior BGP peer IP addresses.

The tunnel protocol.

The BGP configuration details.

Creates a new builder-style object to manufacture TransitGatewayConnectPeerConfiguration.

Examples found in repository?
src/xml_deser.rs (line 41713)
41706
41707
41708
41709
41710
41711
41712
41713
41714
41715
41716
41717
41718
41719
41720
41721
41722
41723
41724
41725
41726
41727
41728
41729
41730
41731
41732
41733
41734
41735
41736
41737
41738
41739
41740
41741
41742
41743
41744
41745
41746
41747
41748
41749
41750
41751
41752
41753
41754
41755
41756
41757
41758
41759
41760
41761
41762
41763
41764
41765
41766
41767
41768
41769
41770
41771
41772
41773
41774
41775
41776
41777
41778
41779
41780
pub fn deser_structure_crate_model_transit_gateway_connect_peer_configuration(
    decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<
    crate::model::TransitGatewayConnectPeerConfiguration,
    aws_smithy_xml::decode::XmlDecodeError,
> {
    #[allow(unused_mut)]
    let mut builder = crate::model::TransitGatewayConnectPeerConfiguration::builder();
    while let Some(mut tag) = decoder.next_tag() {
        match tag.start_el() {
            s if s.matches("transitGatewayAddress") /* TransitGatewayAddress com.amazonaws.ec2#TransitGatewayConnectPeerConfiguration$TransitGatewayAddress */ =>  {
                let var_1783 =
                    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_transit_gateway_address(var_1783);
            }
            ,
            s if s.matches("peerAddress") /* PeerAddress com.amazonaws.ec2#TransitGatewayConnectPeerConfiguration$PeerAddress */ =>  {
                let var_1784 =
                    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_peer_address(var_1784);
            }
            ,
            s if s.matches("insideCidrBlocks") /* InsideCidrBlocks com.amazonaws.ec2#TransitGatewayConnectPeerConfiguration$InsideCidrBlocks */ =>  {
                let var_1785 =
                    Some(
                        crate::xml_deser::deser_list_com_amazonaws_ec2_inside_cidr_blocks_string_list(&mut tag)
                        ?
                    )
                ;
                builder = builder.set_inside_cidr_blocks(var_1785);
            }
            ,
            s if s.matches("protocol") /* Protocol com.amazonaws.ec2#TransitGatewayConnectPeerConfiguration$Protocol */ =>  {
                let var_1786 =
                    Some(
                        Result::<crate::model::ProtocolValue, aws_smithy_xml::decode::XmlDecodeError>::Ok(
                            crate::model::ProtocolValue::from(
                                aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
                            )
                        )
                        ?
                    )
                ;
                builder = builder.set_protocol(var_1786);
            }
            ,
            s if s.matches("bgpConfigurations") /* BgpConfigurations com.amazonaws.ec2#TransitGatewayConnectPeerConfiguration$BgpConfigurations */ =>  {
                let var_1787 =
                    Some(
                        crate::xml_deser::deser_list_com_amazonaws_ec2_transit_gateway_attachment_bgp_configuration_list(&mut tag)
                        ?
                    )
                ;
                builder = builder.set_bgp_configurations(var_1787);
            }
            ,
            _ => {}
        }
    }
    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