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

Describes the transit gateway peering attachment.

Implementations§

The ID of the transit gateway peering attachment.

The ID of the accepter transit gateway attachment.

Information about the requester transit gateway.

Information about the accepter transit gateway.

Details about the transit gateway peering attachment.

The status of the transit gateway peering attachment.

The state of the transit gateway peering attachment. Note that the initiating state has been deprecated.

The time the transit gateway peering attachment was created.

The tags for the transit gateway peering attachment.

Creates a new builder-style object to manufacture TransitGatewayPeeringAttachment.

Examples found in repository?
src/xml_deser.rs (line 23930)
23926
23927
23928
23929
23930
23931
23932
23933
23934
23935
23936
23937
23938
23939
23940
23941
23942
23943
23944
23945
23946
23947
23948
23949
23950
23951
23952
23953
23954
23955
23956
23957
23958
23959
23960
23961
23962
23963
23964
23965
23966
23967
23968
23969
23970
23971
23972
23973
23974
23975
23976
23977
23978
23979
23980
23981
23982
23983
23984
23985
23986
23987
23988
23989
23990
23991
23992
23993
23994
23995
23996
23997
23998
23999
24000
24001
24002
24003
24004
24005
24006
24007
24008
24009
24010
24011
24012
24013
24014
24015
24016
24017
24018
24019
24020
24021
24022
24023
24024
24025
24026
24027
24028
24029
24030
24031
24032
24033
24034
24035
24036
24037
24038
24039
24040
24041
pub fn deser_structure_crate_model_transit_gateway_peering_attachment(
    decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::TransitGatewayPeeringAttachment, aws_smithy_xml::decode::XmlDecodeError> {
    #[allow(unused_mut)]
    let mut builder = crate::model::TransitGatewayPeeringAttachment::builder();
    while let Some(mut tag) = decoder.next_tag() {
        match tag.start_el() {
            s if s.matches("transitGatewayAttachmentId") /* TransitGatewayAttachmentId com.amazonaws.ec2#TransitGatewayPeeringAttachment$TransitGatewayAttachmentId */ =>  {
                let var_901 =
                    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_attachment_id(var_901);
            }
            ,
            s if s.matches("accepterTransitGatewayAttachmentId") /* AccepterTransitGatewayAttachmentId com.amazonaws.ec2#TransitGatewayPeeringAttachment$AccepterTransitGatewayAttachmentId */ =>  {
                let var_902 =
                    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_accepter_transit_gateway_attachment_id(var_902);
            }
            ,
            s if s.matches("requesterTgwInfo") /* RequesterTgwInfo com.amazonaws.ec2#TransitGatewayPeeringAttachment$RequesterTgwInfo */ =>  {
                let var_903 =
                    Some(
                        crate::xml_deser::deser_structure_crate_model_peering_tgw_info(&mut tag)
                        ?
                    )
                ;
                builder = builder.set_requester_tgw_info(var_903);
            }
            ,
            s if s.matches("accepterTgwInfo") /* AccepterTgwInfo com.amazonaws.ec2#TransitGatewayPeeringAttachment$AccepterTgwInfo */ =>  {
                let var_904 =
                    Some(
                        crate::xml_deser::deser_structure_crate_model_peering_tgw_info(&mut tag)
                        ?
                    )
                ;
                builder = builder.set_accepter_tgw_info(var_904);
            }
            ,
            s if s.matches("options") /* Options com.amazonaws.ec2#TransitGatewayPeeringAttachment$Options */ =>  {
                let var_905 =
                    Some(
                        crate::xml_deser::deser_structure_crate_model_transit_gateway_peering_attachment_options(&mut tag)
                        ?
                    )
                ;
                builder = builder.set_options(var_905);
            }
            ,
            s if s.matches("status") /* Status com.amazonaws.ec2#TransitGatewayPeeringAttachment$Status */ =>  {
                let var_906 =
                    Some(
                        crate::xml_deser::deser_structure_crate_model_peering_attachment_status(&mut tag)
                        ?
                    )
                ;
                builder = builder.set_status(var_906);
            }
            ,
            s if s.matches("state") /* State com.amazonaws.ec2#TransitGatewayPeeringAttachment$State */ =>  {
                let var_907 =
                    Some(
                        Result::<crate::model::TransitGatewayAttachmentState, aws_smithy_xml::decode::XmlDecodeError>::Ok(
                            crate::model::TransitGatewayAttachmentState::from(
                                aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
                            )
                        )
                        ?
                    )
                ;
                builder = builder.set_state(var_907);
            }
            ,
            s if s.matches("creationTime") /* CreationTime com.amazonaws.ec2#TransitGatewayPeeringAttachment$CreationTime */ =>  {
                let var_908 =
                    Some(
                        aws_smithy_types::DateTime::from_str(
                            aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
                            , aws_smithy_types::date_time::Format::DateTime
                        )
                        .map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.ec2#DateTime`)"))
                        ?
                    )
                ;
                builder = builder.set_creation_time(var_908);
            }
            ,
            s if s.matches("tagSet") /* Tags com.amazonaws.ec2#TransitGatewayPeeringAttachment$Tags */ =>  {
                let var_909 =
                    Some(
                        crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
                        ?
                    )
                ;
                builder = builder.set_tags(var_909);
            }
            ,
            _ => {}
        }
    }
    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