#[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>,
}
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 devices that support BGP, the customer gateway's BGP ASN.
Default: 65000
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.
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 CreateCustomerGatewayInput
impl CreateCustomerGatewayInput
sourcepub fn bgp_asn(&self) -> Option<i32>
pub fn bgp_asn(&self) -> Option<i32>
For devices that support BGP, the customer gateway's BGP ASN.
Default: 65000
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) -> Option<&[TagSpecification]>
pub fn tag_specifications(&self) -> Option<&[TagSpecification]>
The tags to apply to the customer gateway.
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.
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<CreateCustomerGatewayInput> for CreateCustomerGatewayInput
impl PartialEq<CreateCustomerGatewayInput> 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 ==
.