#[non_exhaustive]pub struct CreateVpnConnectionInput {
pub customer_gateway_id: Option<String>,
pub type: Option<String>,
pub vpn_gateway_id: Option<String>,
pub transit_gateway_id: Option<String>,
pub dry_run: Option<bool>,
pub options: Option<VpnConnectionOptionsSpecification>,
pub tag_specifications: Option<Vec<TagSpecification>>,
}
Expand description
Contains the parameters for CreateVpnConnection.
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.customer_gateway_id: Option<String>
The ID of the customer gateway.
type: Option<String>
The type of VPN connection (ipsec.1
).
vpn_gateway_id: Option<String>
The ID of the virtual private gateway. If you specify a virtual private gateway, you cannot specify a transit gateway.
transit_gateway_id: Option<String>
The ID of the transit gateway. If you specify a transit gateway, you cannot specify a virtual private gateway.
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
.
options: Option<VpnConnectionOptionsSpecification>
The options for the VPN connection.
tag_specifications: Option<Vec<TagSpecification>>
The tags to apply to the VPN connection.
Implementations§
source§impl CreateVpnConnectionInput
impl CreateVpnConnectionInput
sourcepub fn customer_gateway_id(&self) -> Option<&str>
pub fn customer_gateway_id(&self) -> Option<&str>
The ID of the customer gateway.
sourcepub fn vpn_gateway_id(&self) -> Option<&str>
pub fn vpn_gateway_id(&self) -> Option<&str>
The ID of the virtual private gateway. If you specify a virtual private gateway, you cannot specify a transit gateway.
sourcepub fn transit_gateway_id(&self) -> Option<&str>
pub fn transit_gateway_id(&self) -> Option<&str>
The ID of the transit gateway. If you specify a transit gateway, you cannot specify a virtual private gateway.
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 options(&self) -> Option<&VpnConnectionOptionsSpecification>
pub fn options(&self) -> Option<&VpnConnectionOptionsSpecification>
The options for the VPN connection.
sourcepub fn tag_specifications(&self) -> Option<&[TagSpecification]>
pub fn tag_specifications(&self) -> Option<&[TagSpecification]>
The tags to apply to the VPN connection.
source§impl CreateVpnConnectionInput
impl CreateVpnConnectionInput
sourcepub fn builder() -> CreateVpnConnectionInputBuilder
pub fn builder() -> CreateVpnConnectionInputBuilder
Creates a new builder-style object to manufacture CreateVpnConnectionInput
.
Trait Implementations§
source§impl Clone for CreateVpnConnectionInput
impl Clone for CreateVpnConnectionInput
source§fn clone(&self) -> CreateVpnConnectionInput
fn clone(&self) -> CreateVpnConnectionInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateVpnConnectionInput
impl Debug for CreateVpnConnectionInput
source§impl PartialEq<CreateVpnConnectionInput> for CreateVpnConnectionInput
impl PartialEq<CreateVpnConnectionInput> for CreateVpnConnectionInput
source§fn eq(&self, other: &CreateVpnConnectionInput) -> bool
fn eq(&self, other: &CreateVpnConnectionInput) -> bool
self
and other
values to be equal, and is used
by ==
.