#[non_exhaustive]pub struct CreateVpnGatewayInput {
pub availability_zone: Option<String>,
pub type: Option<GatewayType>,
pub tag_specifications: Option<Vec<TagSpecification>>,
pub amazon_side_asn: Option<i64>,
pub dry_run: Option<bool>,
}
Expand description
Contains the parameters for CreateVpnGateway.
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.availability_zone: Option<String>
The Availability Zone for the virtual private gateway.
type: Option<GatewayType>
The type of VPN connection this virtual private gateway supports.
tag_specifications: Option<Vec<TagSpecification>>
The tags to apply to the virtual private gateway.
amazon_side_asn: Option<i64>
A private Autonomous System Number (ASN) for the Amazon side of a BGP session. If you're using a 16-bit ASN, it must be in the 64512 to 65534 range. If you're using a 32-bit ASN, it must be in the 4200000000 to 4294967294 range.
Default: 64512
dry_run: Option<bool>
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
Implementations§
source§impl CreateVpnGatewayInput
impl CreateVpnGatewayInput
sourcepub fn availability_zone(&self) -> Option<&str>
pub fn availability_zone(&self) -> Option<&str>
The Availability Zone for the virtual private gateway.
sourcepub fn type(&self) -> Option<&GatewayType>
pub fn type(&self) -> Option<&GatewayType>
The type of VPN connection this virtual private gateway supports.
sourcepub fn tag_specifications(&self) -> &[TagSpecification]
pub fn tag_specifications(&self) -> &[TagSpecification]
The tags to apply to the virtual private 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 .tag_specifications.is_none()
.
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. If you're using a 16-bit ASN, it must be in the 64512 to 65534 range. If you're using a 32-bit ASN, it must be in the 4200000000 to 4294967294 range.
Default: 64512
source§impl CreateVpnGatewayInput
impl CreateVpnGatewayInput
sourcepub fn builder() -> CreateVpnGatewayInputBuilder
pub fn builder() -> CreateVpnGatewayInputBuilder
Creates a new builder-style object to manufacture CreateVpnGatewayInput
.
Trait Implementations§
source§impl Clone for CreateVpnGatewayInput
impl Clone for CreateVpnGatewayInput
source§fn clone(&self) -> CreateVpnGatewayInput
fn clone(&self) -> CreateVpnGatewayInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateVpnGatewayInput
impl Debug for CreateVpnGatewayInput
source§impl PartialEq for CreateVpnGatewayInput
impl PartialEq for CreateVpnGatewayInput
source§fn eq(&self, other: &CreateVpnGatewayInput) -> bool
fn eq(&self, other: &CreateVpnGatewayInput) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CreateVpnGatewayInput
Auto Trait Implementations§
impl Freeze for CreateVpnGatewayInput
impl RefUnwindSafe for CreateVpnGatewayInput
impl Send for CreateVpnGatewayInput
impl Sync for CreateVpnGatewayInput
impl Unpin for CreateVpnGatewayInput
impl UnwindSafe for CreateVpnGatewayInput
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