Struct aws_sdk_ec2::types::ModifyTransitGatewayOptions
source · #[non_exhaustive]pub struct ModifyTransitGatewayOptions {
pub add_transit_gateway_cidr_blocks: Option<Vec<String>>,
pub remove_transit_gateway_cidr_blocks: Option<Vec<String>>,
pub vpn_ecmp_support: Option<VpnEcmpSupportValue>,
pub dns_support: Option<DnsSupportValue>,
pub security_group_referencing_support: Option<SecurityGroupReferencingSupportValue>,
pub auto_accept_shared_attachments: Option<AutoAcceptSharedAttachmentsValue>,
pub default_route_table_association: Option<DefaultRouteTableAssociationValue>,
pub association_default_route_table_id: Option<String>,
pub default_route_table_propagation: Option<DefaultRouteTablePropagationValue>,
pub propagation_default_route_table_id: Option<String>,
pub amazon_side_asn: Option<i64>,
}
Expand description
The transit gateway options.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.add_transit_gateway_cidr_blocks: Option<Vec<String>>
Adds IPv4 or IPv6 CIDR blocks for the transit gateway. Must be a size /24 CIDR block or larger for IPv4, or a size /64 CIDR block or larger for IPv6.
remove_transit_gateway_cidr_blocks: Option<Vec<String>>
Removes CIDR blocks for the transit gateway.
vpn_ecmp_support: Option<VpnEcmpSupportValue>
Enable or disable Equal Cost Multipath Protocol support.
dns_support: Option<DnsSupportValue>
Enable or disable DNS support.
security_group_referencing_support: Option<SecurityGroupReferencingSupportValue>
This parameter is in preview and may not be available for your account.
Enables you to reference a security group across VPCs attached to a transit gateway. Use this option to simplify security group management and control of instance-to-instance traffic across VPCs that are connected by transit gateway. You can also use this option to migrate from VPC peering (which was the only option that supported security group referencing) to transit gateways (which now also support security group referencing). This option is disabled by default and there are no additional costs to use this feature.
Enable or disable automatic acceptance of attachment requests.
default_route_table_association: Option<DefaultRouteTableAssociationValue>
Enable or disable automatic association with the default association route table.
association_default_route_table_id: Option<String>
The ID of the default association route table.
default_route_table_propagation: Option<DefaultRouteTablePropagationValue>
Enable or disable automatic propagation of routes to the default propagation route table.
propagation_default_route_table_id: Option<String>
The ID of the default propagation route table.
amazon_side_asn: 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.
The modify ASN operation is not allowed on a transit gateway with active BGP sessions. You must first delete all transit gateway attachments that have BGP configured prior to modifying the ASN on the transit gateway.
Implementations§
source§impl ModifyTransitGatewayOptions
impl ModifyTransitGatewayOptions
sourcepub fn add_transit_gateway_cidr_blocks(&self) -> &[String]
pub fn add_transit_gateway_cidr_blocks(&self) -> &[String]
Adds IPv4 or IPv6 CIDR blocks for the transit gateway. Must be a size /24 CIDR block or larger for IPv4, or a size /64 CIDR block or larger for IPv6.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .add_transit_gateway_cidr_blocks.is_none()
.
sourcepub fn remove_transit_gateway_cidr_blocks(&self) -> &[String]
pub fn remove_transit_gateway_cidr_blocks(&self) -> &[String]
Removes CIDR blocks for the transit gateway.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .remove_transit_gateway_cidr_blocks.is_none()
.
sourcepub fn vpn_ecmp_support(&self) -> Option<&VpnEcmpSupportValue>
pub fn vpn_ecmp_support(&self) -> Option<&VpnEcmpSupportValue>
Enable or disable Equal Cost Multipath Protocol support.
sourcepub fn dns_support(&self) -> Option<&DnsSupportValue>
pub fn dns_support(&self) -> Option<&DnsSupportValue>
Enable or disable DNS support.
sourcepub fn security_group_referencing_support(
&self
) -> Option<&SecurityGroupReferencingSupportValue>
pub fn security_group_referencing_support( &self ) -> Option<&SecurityGroupReferencingSupportValue>
This parameter is in preview and may not be available for your account.
Enables you to reference a security group across VPCs attached to a transit gateway. Use this option to simplify security group management and control of instance-to-instance traffic across VPCs that are connected by transit gateway. You can also use this option to migrate from VPC peering (which was the only option that supported security group referencing) to transit gateways (which now also support security group referencing). This option is disabled by default and there are no additional costs to use this feature.
Enable or disable automatic acceptance of attachment requests.
sourcepub fn default_route_table_association(
&self
) -> Option<&DefaultRouteTableAssociationValue>
pub fn default_route_table_association( &self ) -> Option<&DefaultRouteTableAssociationValue>
Enable or disable automatic association 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>
Enable or disable automatic propagation of 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 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.
The modify ASN operation is not allowed on a transit gateway with active BGP sessions. You must first delete all transit gateway attachments that have BGP configured prior to modifying the ASN on the transit gateway.
source§impl ModifyTransitGatewayOptions
impl ModifyTransitGatewayOptions
sourcepub fn builder() -> ModifyTransitGatewayOptionsBuilder
pub fn builder() -> ModifyTransitGatewayOptionsBuilder
Creates a new builder-style object to manufacture ModifyTransitGatewayOptions
.
Trait Implementations§
source§impl Clone for ModifyTransitGatewayOptions
impl Clone for ModifyTransitGatewayOptions
source§fn clone(&self) -> ModifyTransitGatewayOptions
fn clone(&self) -> ModifyTransitGatewayOptions
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ModifyTransitGatewayOptions
impl Debug for ModifyTransitGatewayOptions
source§impl PartialEq for ModifyTransitGatewayOptions
impl PartialEq for ModifyTransitGatewayOptions
source§fn eq(&self, other: &ModifyTransitGatewayOptions) -> bool
fn eq(&self, other: &ModifyTransitGatewayOptions) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ModifyTransitGatewayOptions
Auto Trait Implementations§
impl Freeze for ModifyTransitGatewayOptions
impl RefUnwindSafe for ModifyTransitGatewayOptions
impl Send for ModifyTransitGatewayOptions
impl Sync for ModifyTransitGatewayOptions
impl Unpin for ModifyTransitGatewayOptions
impl UnwindSafe for ModifyTransitGatewayOptions
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more