Struct aws_sdk_ec2::model::TransitGatewayOptions
source · #[non_exhaustive]pub struct TransitGatewayOptions { /* private fields */ }
Expand description
Describes the options for a transit gateway.
Implementations§
source§impl TransitGatewayOptions
impl TransitGatewayOptions
sourcepub fn amazon_side_asn(&self) -> Option<i64>
pub fn amazon_side_asn(&self) -> Option<i64>
A private Autonomous System Number (ASN) for the Amazon side of a BGP session. The range is 64512 to 65534 for 16-bit ASNs and 4200000000 to 4294967294 for 32-bit ASNs.
sourcepub fn transit_gateway_cidr_blocks(&self) -> Option<&[String]>
pub fn transit_gateway_cidr_blocks(&self) -> Option<&[String]>
The transit gateway CIDR blocks.
Indicates whether attachment requests are automatically accepted.
sourcepub fn default_route_table_association(
&self
) -> Option<&DefaultRouteTableAssociationValue>
pub fn default_route_table_association(
&self
) -> Option<&DefaultRouteTableAssociationValue>
Indicates whether resource attachments are automatically associated with the default association route table.
sourcepub fn association_default_route_table_id(&self) -> Option<&str>
pub fn association_default_route_table_id(&self) -> Option<&str>
The ID of the default association route table.
sourcepub fn default_route_table_propagation(
&self
) -> Option<&DefaultRouteTablePropagationValue>
pub fn default_route_table_propagation(
&self
) -> Option<&DefaultRouteTablePropagationValue>
Indicates whether resource attachments automatically propagate routes to the default propagation route table.
sourcepub fn propagation_default_route_table_id(&self) -> Option<&str>
pub fn propagation_default_route_table_id(&self) -> Option<&str>
The ID of the default propagation route table.
sourcepub fn vpn_ecmp_support(&self) -> Option<&VpnEcmpSupportValue>
pub fn vpn_ecmp_support(&self) -> Option<&VpnEcmpSupportValue>
Indicates whether Equal Cost Multipath Protocol support is enabled.
sourcepub fn dns_support(&self) -> Option<&DnsSupportValue>
pub fn dns_support(&self) -> Option<&DnsSupportValue>
Indicates whether DNS support is enabled.
sourcepub fn multicast_support(&self) -> Option<&MulticastSupportValue>
pub fn multicast_support(&self) -> Option<&MulticastSupportValue>
Indicates whether multicast is enabled on the transit gateway
source§impl TransitGatewayOptions
impl TransitGatewayOptions
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture TransitGatewayOptions
.
Examples found in repository?
41531 41532 41533 41534 41535 41536 41537 41538 41539 41540 41541 41542 41543 41544 41545 41546 41547 41548 41549 41550 41551 41552 41553 41554 41555 41556 41557 41558 41559 41560 41561 41562 41563 41564 41565 41566 41567 41568 41569 41570 41571 41572 41573 41574 41575 41576 41577 41578 41579 41580 41581 41582 41583 41584 41585 41586 41587 41588 41589 41590 41591 41592 41593 41594 41595 41596 41597 41598 41599 41600 41601 41602 41603 41604 41605 41606 41607 41608 41609 41610 41611 41612 41613 41614 41615 41616 41617 41618 41619 41620 41621 41622 41623 41624 41625 41626 41627 41628 41629 41630 41631 41632 41633 41634 41635 41636 41637 41638 41639 41640 41641 41642 41643 41644 41645 41646 41647 41648 41649 41650 41651 41652 41653 41654 41655 41656 41657 41658 41659 41660 41661 41662 41663 41664 41665 41666 41667 41668 41669 41670 41671 41672 41673 41674 41675 41676 41677
pub fn deser_structure_crate_model_transit_gateway_options(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::TransitGatewayOptions, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::TransitGatewayOptions::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("amazonSideAsn") /* AmazonSideAsn com.amazonaws.ec2#TransitGatewayOptions$AmazonSideAsn */ => {
let var_1772 =
Some(
{
<i64 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (long: `com.amazonaws.ec2#Long`)"))
}
?
)
;
builder = builder.set_amazon_side_asn(var_1772);
}
,
s if s.matches("transitGatewayCidrBlocks") /* TransitGatewayCidrBlocks com.amazonaws.ec2#TransitGatewayOptions$TransitGatewayCidrBlocks */ => {
let var_1773 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_value_string_list(&mut tag)
?
)
;
builder = builder.set_transit_gateway_cidr_blocks(var_1773);
}
,
s if s.matches("autoAcceptSharedAttachments") /* AutoAcceptSharedAttachments com.amazonaws.ec2#TransitGatewayOptions$AutoAcceptSharedAttachments */ => {
let var_1774 =
Some(
Result::<crate::model::AutoAcceptSharedAttachmentsValue, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::AutoAcceptSharedAttachmentsValue::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_auto_accept_shared_attachments(var_1774);
}
,
s if s.matches("defaultRouteTableAssociation") /* DefaultRouteTableAssociation com.amazonaws.ec2#TransitGatewayOptions$DefaultRouteTableAssociation */ => {
let var_1775 =
Some(
Result::<crate::model::DefaultRouteTableAssociationValue, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::DefaultRouteTableAssociationValue::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_default_route_table_association(var_1775);
}
,
s if s.matches("associationDefaultRouteTableId") /* AssociationDefaultRouteTableId com.amazonaws.ec2#TransitGatewayOptions$AssociationDefaultRouteTableId */ => {
let var_1776 =
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_association_default_route_table_id(var_1776);
}
,
s if s.matches("defaultRouteTablePropagation") /* DefaultRouteTablePropagation com.amazonaws.ec2#TransitGatewayOptions$DefaultRouteTablePropagation */ => {
let var_1777 =
Some(
Result::<crate::model::DefaultRouteTablePropagationValue, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::DefaultRouteTablePropagationValue::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_default_route_table_propagation(var_1777);
}
,
s if s.matches("propagationDefaultRouteTableId") /* PropagationDefaultRouteTableId com.amazonaws.ec2#TransitGatewayOptions$PropagationDefaultRouteTableId */ => {
let var_1778 =
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_propagation_default_route_table_id(var_1778);
}
,
s if s.matches("vpnEcmpSupport") /* VpnEcmpSupport com.amazonaws.ec2#TransitGatewayOptions$VpnEcmpSupport */ => {
let var_1779 =
Some(
Result::<crate::model::VpnEcmpSupportValue, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::VpnEcmpSupportValue::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_vpn_ecmp_support(var_1779);
}
,
s if s.matches("dnsSupport") /* DnsSupport com.amazonaws.ec2#TransitGatewayOptions$DnsSupport */ => {
let var_1780 =
Some(
Result::<crate::model::DnsSupportValue, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::DnsSupportValue::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_dns_support(var_1780);
}
,
s if s.matches("multicastSupport") /* MulticastSupport com.amazonaws.ec2#TransitGatewayOptions$MulticastSupport */ => {
let var_1781 =
Some(
Result::<crate::model::MulticastSupportValue, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::MulticastSupportValue::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_multicast_support(var_1781);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for TransitGatewayOptions
impl Clone for TransitGatewayOptions
source§fn clone(&self) -> TransitGatewayOptions
fn clone(&self) -> TransitGatewayOptions
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more