#[non_exhaustive]pub struct TransitGatewayPeeringAttachment { /* private fields */ }
Expand description
Describes the transit gateway peering attachment.
Implementations§
source§impl TransitGatewayPeeringAttachment
impl TransitGatewayPeeringAttachment
sourcepub fn transit_gateway_attachment_id(&self) -> Option<&str>
pub fn transit_gateway_attachment_id(&self) -> Option<&str>
The ID of the transit gateway peering attachment.
sourcepub fn accepter_transit_gateway_attachment_id(&self) -> Option<&str>
pub fn accepter_transit_gateway_attachment_id(&self) -> Option<&str>
The ID of the accepter transit gateway attachment.
sourcepub fn requester_tgw_info(&self) -> Option<&PeeringTgwInfo>
pub fn requester_tgw_info(&self) -> Option<&PeeringTgwInfo>
Information about the requester transit gateway.
sourcepub fn accepter_tgw_info(&self) -> Option<&PeeringTgwInfo>
pub fn accepter_tgw_info(&self) -> Option<&PeeringTgwInfo>
Information about the accepter transit gateway.
sourcepub fn options(&self) -> Option<&TransitGatewayPeeringAttachmentOptions>
pub fn options(&self) -> Option<&TransitGatewayPeeringAttachmentOptions>
Details about the transit gateway peering attachment.
sourcepub fn status(&self) -> Option<&PeeringAttachmentStatus>
pub fn status(&self) -> Option<&PeeringAttachmentStatus>
The status of the transit gateway peering attachment.
sourcepub fn state(&self) -> Option<&TransitGatewayAttachmentState>
pub fn state(&self) -> Option<&TransitGatewayAttachmentState>
The state of the transit gateway peering attachment. Note that the initiating
state has been deprecated.
sourcepub fn creation_time(&self) -> Option<&DateTime>
pub fn creation_time(&self) -> Option<&DateTime>
The time the transit gateway peering attachment was created.
The tags for the transit gateway peering attachment.
source§impl TransitGatewayPeeringAttachment
impl TransitGatewayPeeringAttachment
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
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§
source§impl Clone for TransitGatewayPeeringAttachment
impl Clone for TransitGatewayPeeringAttachment
source§fn clone(&self) -> TransitGatewayPeeringAttachment
fn clone(&self) -> TransitGatewayPeeringAttachment
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