Struct aws_sdk_ec2::operation::modify_vpn_connection::builders::ModifyVpnConnectionFluentBuilder
source · pub struct ModifyVpnConnectionFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to ModifyVpnConnection
.
Modifies the customer gateway or the target gateway of an Amazon Web Services Site-to-Site VPN connection. To modify the target gateway, the following migration options are available:
-
An existing virtual private gateway to a new virtual private gateway
-
An existing virtual private gateway to a transit gateway
-
An existing transit gateway to a new transit gateway
-
An existing transit gateway to a virtual private gateway
Before you perform the migration to the new gateway, you must configure the new gateway. Use CreateVpnGateway
to create a virtual private gateway, or CreateTransitGateway
to create a transit gateway.
This step is required when you migrate from a virtual private gateway with static routes to a transit gateway.
You must delete the static routes before you migrate to the new gateway.
Keep a copy of the static route before you delete it. You will need to add back these routes to the transit gateway after the VPN connection migration is complete.
After you migrate to the new gateway, you might need to modify your VPC route table. Use CreateRoute
and DeleteRoute
to make the changes described in Update VPC route tables in the Amazon Web Services Site-to-Site VPN User Guide.
When the new gateway is a transit gateway, modify the transit gateway route table to allow traffic between the VPC and the Amazon Web Services Site-to-Site VPN connection. Use CreateTransitGatewayRoute
to add the routes.
If you deleted VPN static routes, you must add the static routes to the transit gateway route table.
After you perform this operation, the VPN endpoint's IP addresses on the Amazon Web Services side and the tunnel options remain intact. Your Amazon Web Services Site-to-Site VPN connection will be temporarily unavailable for a brief period while we provision the new endpoints.
Implementations§
source§impl ModifyVpnConnectionFluentBuilder
impl ModifyVpnConnectionFluentBuilder
sourcepub fn as_input(&self) -> &ModifyVpnConnectionInputBuilder
pub fn as_input(&self) -> &ModifyVpnConnectionInputBuilder
Access the ModifyVpnConnection as a reference.
sourcepub async fn send(
self
) -> Result<ModifyVpnConnectionOutput, SdkError<ModifyVpnConnectionError, HttpResponse>>
pub async fn send( self ) -> Result<ModifyVpnConnectionOutput, SdkError<ModifyVpnConnectionError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<ModifyVpnConnectionOutput, ModifyVpnConnectionError>, SdkError<ModifyVpnConnectionError>>
pub async fn customize( self ) -> Result<CustomizableOperation<ModifyVpnConnectionOutput, ModifyVpnConnectionError>, SdkError<ModifyVpnConnectionError>>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn vpn_connection_id(self, input: impl Into<String>) -> Self
pub fn vpn_connection_id(self, input: impl Into<String>) -> Self
The ID of the VPN connection.
sourcepub fn set_vpn_connection_id(self, input: Option<String>) -> Self
pub fn set_vpn_connection_id(self, input: Option<String>) -> Self
The ID of the VPN connection.
sourcepub fn get_vpn_connection_id(&self) -> &Option<String>
pub fn get_vpn_connection_id(&self) -> &Option<String>
The ID of the VPN connection.
sourcepub fn transit_gateway_id(self, input: impl Into<String>) -> Self
pub fn transit_gateway_id(self, input: impl Into<String>) -> Self
The ID of the transit gateway.
sourcepub fn set_transit_gateway_id(self, input: Option<String>) -> Self
pub fn set_transit_gateway_id(self, input: Option<String>) -> Self
The ID of the transit gateway.
sourcepub fn get_transit_gateway_id(&self) -> &Option<String>
pub fn get_transit_gateway_id(&self) -> &Option<String>
The ID of the transit gateway.
sourcepub fn customer_gateway_id(self, input: impl Into<String>) -> Self
pub fn customer_gateway_id(self, input: impl Into<String>) -> Self
The ID of the customer gateway at your end of the VPN connection.
sourcepub fn set_customer_gateway_id(self, input: Option<String>) -> Self
pub fn set_customer_gateway_id(self, input: Option<String>) -> Self
The ID of the customer gateway at your end of the VPN connection.
sourcepub fn get_customer_gateway_id(&self) -> &Option<String>
pub fn get_customer_gateway_id(&self) -> &Option<String>
The ID of the customer gateway at your end of the VPN connection.
sourcepub fn vpn_gateway_id(self, input: impl Into<String>) -> Self
pub fn vpn_gateway_id(self, input: impl Into<String>) -> Self
The ID of the virtual private gateway at the Amazon Web Services side of the VPN connection.
sourcepub fn set_vpn_gateway_id(self, input: Option<String>) -> Self
pub fn set_vpn_gateway_id(self, input: Option<String>) -> Self
The ID of the virtual private gateway at the Amazon Web Services side of the VPN connection.
sourcepub fn get_vpn_gateway_id(&self) -> &Option<String>
pub fn get_vpn_gateway_id(&self) -> &Option<String>
The ID of the virtual private gateway at the Amazon Web Services side of the VPN connection.
sourcepub fn dry_run(self, input: bool) -> Self
pub fn dry_run(self, input: bool) -> Self
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 set_dry_run(self, input: Option<bool>) -> Self
pub fn set_dry_run(self, input: Option<bool>) -> Self
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 get_dry_run(&self) -> &Option<bool>
pub fn get_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
.
Trait Implementations§
source§impl Clone for ModifyVpnConnectionFluentBuilder
impl Clone for ModifyVpnConnectionFluentBuilder
source§fn clone(&self) -> ModifyVpnConnectionFluentBuilder
fn clone(&self) -> ModifyVpnConnectionFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more