#[non_exhaustive]pub struct CreateCustomerGatewayInput {
pub bgp_asn: Option<i32>,
pub public_ip: Option<String>,
pub certificate_arn: Option<String>,
pub type: Option<GatewayType>,
pub tag_specifications: Option<Vec<TagSpecification>>,
pub device_name: Option<String>,
pub ip_address: Option<String>,
pub dry_run: Option<bool>,
pub bgp_asn_extended: Option<i64>,
}
Expand description
Contains the parameters for CreateCustomerGateway.
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.bgp_asn: Option<i32>
For customer gateway devices that support BGP, specify the device's ASN. You must specify either BgpAsn
or BgpAsnExtended
when creating the customer gateway. If the ASN is larger than 2,147,483,647
, you must use BgpAsnExtended
.
Default: 65000
Valid values: 1
to 2,147,483,647
public_ip: Option<String>
This member has been deprecated. The Internet-routable IP address for the customer gateway's outside interface. The address must be static.
certificate_arn: Option<String>
The Amazon Resource Name (ARN) for the customer gateway certificate.
type: Option<GatewayType>
The type of VPN connection that this customer gateway supports (ipsec.1
).
tag_specifications: Option<Vec<TagSpecification>>
The tags to apply to the customer gateway.
device_name: Option<String>
A name for the customer gateway device.
Length Constraints: Up to 255 characters.
ip_address: Option<String>
IPv4 address for the customer gateway device's outside interface. The address must be static. If OutsideIpAddressType
in your VPN connection options is set to PrivateIpv4
, you can use an RFC6598 or RFC1918 private IPv4 address. If OutsideIpAddressType
is set to PublicIpv4
, you can use a public IPv4 address.
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
.
bgp_asn_extended: Option<i64>
For customer gateway devices that support BGP, specify the device's ASN. You must specify either BgpAsn
or BgpAsnExtended
when creating the customer gateway. If the ASN is larger than 2,147,483,647
, you must use BgpAsnExtended
.
Valid values: 2,147,483,648
to 4,294,967,295
Implementations§
source§impl CreateCustomerGatewayInput
impl CreateCustomerGatewayInput
sourcepub fn bgp_asn(&self) -> Option<i32>
pub fn bgp_asn(&self) -> Option<i32>
For customer gateway devices that support BGP, specify the device's ASN. You must specify either BgpAsn
or BgpAsnExtended
when creating the customer gateway. If the ASN is larger than 2,147,483,647
, you must use BgpAsnExtended
.
Default: 65000
Valid values: 1
to 2,147,483,647
sourcepub fn public_ip(&self) -> Option<&str>
pub fn public_ip(&self) -> Option<&str>
This member has been deprecated. The Internet-routable IP address for the customer gateway's outside interface. The address must be static.
sourcepub fn certificate_arn(&self) -> Option<&str>
pub fn certificate_arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) for the customer gateway certificate.
sourcepub fn type(&self) -> Option<&GatewayType>
pub fn type(&self) -> Option<&GatewayType>
The type of VPN connection that this customer gateway supports (ipsec.1
).
sourcepub fn tag_specifications(&self) -> &[TagSpecification]
pub fn tag_specifications(&self) -> &[TagSpecification]
The tags to apply to the customer 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 device_name(&self) -> Option<&str>
pub fn device_name(&self) -> Option<&str>
A name for the customer gateway device.
Length Constraints: Up to 255 characters.
sourcepub fn ip_address(&self) -> Option<&str>
pub fn ip_address(&self) -> Option<&str>
IPv4 address for the customer gateway device's outside interface. The address must be static. If OutsideIpAddressType
in your VPN connection options is set to PrivateIpv4
, you can use an RFC6598 or RFC1918 private IPv4 address. If OutsideIpAddressType
is set to PublicIpv4
, you can use a public IPv4 address.
sourcepub fn dry_run(&self) -> Option<bool>
pub fn dry_run(&self) -> 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
.
sourcepub fn bgp_asn_extended(&self) -> Option<i64>
pub fn bgp_asn_extended(&self) -> Option<i64>
For customer gateway devices that support BGP, specify the device's ASN. You must specify either BgpAsn
or BgpAsnExtended
when creating the customer gateway. If the ASN is larger than 2,147,483,647
, you must use BgpAsnExtended
.
Valid values: 2,147,483,648
to 4,294,967,295
source§impl CreateCustomerGatewayInput
impl CreateCustomerGatewayInput
sourcepub fn builder() -> CreateCustomerGatewayInputBuilder
pub fn builder() -> CreateCustomerGatewayInputBuilder
Creates a new builder-style object to manufacture CreateCustomerGatewayInput
.
Trait Implementations§
source§impl Clone for CreateCustomerGatewayInput
impl Clone for CreateCustomerGatewayInput
source§fn clone(&self) -> CreateCustomerGatewayInput
fn clone(&self) -> CreateCustomerGatewayInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateCustomerGatewayInput
impl Debug for CreateCustomerGatewayInput
source§impl PartialEq for CreateCustomerGatewayInput
impl PartialEq for CreateCustomerGatewayInput
source§fn eq(&self, other: &CreateCustomerGatewayInput) -> bool
fn eq(&self, other: &CreateCustomerGatewayInput) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CreateCustomerGatewayInput
Auto Trait Implementations§
impl Freeze for CreateCustomerGatewayInput
impl RefUnwindSafe for CreateCustomerGatewayInput
impl Send for CreateCustomerGatewayInput
impl Sync for CreateCustomerGatewayInput
impl Unpin for CreateCustomerGatewayInput
impl UnwindSafe for CreateCustomerGatewayInput
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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