amazonka-ec2-2.0: Amazon Elastic Compute Cloud SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.EC2.ModifyVpnConnection

Description

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.

Synopsis

Creating a Request

data ModifyVpnConnection Source #

See: newModifyVpnConnection smart constructor.

Constructors

ModifyVpnConnection' 

Fields

  • customerGatewayId :: Maybe Text

    The ID of the customer gateway at your end of the VPN connection.

  • dryRun :: Maybe 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.

  • transitGatewayId :: Maybe Text

    The ID of the transit gateway.

  • vpnGatewayId :: Maybe Text

    The ID of the virtual private gateway at the Amazon Web Services side of the VPN connection.

  • vpnConnectionId :: Text

    The ID of the VPN connection.

Instances

Instances details
ToHeaders ModifyVpnConnection Source # 
Instance details

Defined in Amazonka.EC2.ModifyVpnConnection

ToPath ModifyVpnConnection Source # 
Instance details

Defined in Amazonka.EC2.ModifyVpnConnection

ToQuery ModifyVpnConnection Source # 
Instance details

Defined in Amazonka.EC2.ModifyVpnConnection

AWSRequest ModifyVpnConnection Source # 
Instance details

Defined in Amazonka.EC2.ModifyVpnConnection

Associated Types

type AWSResponse ModifyVpnConnection #

Generic ModifyVpnConnection Source # 
Instance details

Defined in Amazonka.EC2.ModifyVpnConnection

Associated Types

type Rep ModifyVpnConnection :: Type -> Type #

Read ModifyVpnConnection Source # 
Instance details

Defined in Amazonka.EC2.ModifyVpnConnection

Show ModifyVpnConnection Source # 
Instance details

Defined in Amazonka.EC2.ModifyVpnConnection

NFData ModifyVpnConnection Source # 
Instance details

Defined in Amazonka.EC2.ModifyVpnConnection

Methods

rnf :: ModifyVpnConnection -> () #

Eq ModifyVpnConnection Source # 
Instance details

Defined in Amazonka.EC2.ModifyVpnConnection

Hashable ModifyVpnConnection Source # 
Instance details

Defined in Amazonka.EC2.ModifyVpnConnection

type AWSResponse ModifyVpnConnection Source # 
Instance details

Defined in Amazonka.EC2.ModifyVpnConnection

type Rep ModifyVpnConnection Source # 
Instance details

Defined in Amazonka.EC2.ModifyVpnConnection

type Rep ModifyVpnConnection = D1 ('MetaData "ModifyVpnConnection" "Amazonka.EC2.ModifyVpnConnection" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "ModifyVpnConnection'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "customerGatewayId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "dryRun") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool))) :*: (S1 ('MetaSel ('Just "transitGatewayId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "vpnGatewayId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "vpnConnectionId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))

newModifyVpnConnection Source #

Create a value of ModifyVpnConnection with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

ModifyVpnConnection, modifyVpnConnection_customerGatewayId - The ID of the customer gateway at your end of the VPN connection.

$sel:dryRun:ModifyVpnConnection', modifyVpnConnection_dryRun - 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.

ModifyVpnConnection, modifyVpnConnection_transitGatewayId - The ID of the transit gateway.

ModifyVpnConnection, modifyVpnConnection_vpnGatewayId - The ID of the virtual private gateway at the Amazon Web Services side of the VPN connection.

ModifyVpnConnection, modifyVpnConnection_vpnConnectionId - The ID of the VPN connection.

Request Lenses

modifyVpnConnection_customerGatewayId :: Lens' ModifyVpnConnection (Maybe Text) Source #

The ID of the customer gateway at your end of the VPN connection.

modifyVpnConnection_dryRun :: Lens' ModifyVpnConnection (Maybe Bool) Source #

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.

modifyVpnConnection_vpnGatewayId :: Lens' ModifyVpnConnection (Maybe Text) Source #

The ID of the virtual private gateway at the Amazon Web Services side of the VPN connection.

Destructuring the Response

data ModifyVpnConnectionResponse Source #

See: newModifyVpnConnectionResponse smart constructor.

Constructors

ModifyVpnConnectionResponse' 

Fields

Instances

Instances details
Generic ModifyVpnConnectionResponse Source # 
Instance details

Defined in Amazonka.EC2.ModifyVpnConnection

Associated Types

type Rep ModifyVpnConnectionResponse :: Type -> Type #

Read ModifyVpnConnectionResponse Source # 
Instance details

Defined in Amazonka.EC2.ModifyVpnConnection

Show ModifyVpnConnectionResponse Source # 
Instance details

Defined in Amazonka.EC2.ModifyVpnConnection

NFData ModifyVpnConnectionResponse Source # 
Instance details

Defined in Amazonka.EC2.ModifyVpnConnection

Eq ModifyVpnConnectionResponse Source # 
Instance details

Defined in Amazonka.EC2.ModifyVpnConnection

type Rep ModifyVpnConnectionResponse Source # 
Instance details

Defined in Amazonka.EC2.ModifyVpnConnection

type Rep ModifyVpnConnectionResponse = D1 ('MetaData "ModifyVpnConnectionResponse" "Amazonka.EC2.ModifyVpnConnection" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "ModifyVpnConnectionResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "vpnConnection") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe VpnConnection)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newModifyVpnConnectionResponse Source #

Create a value of ModifyVpnConnectionResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

ModifyVpnConnectionResponse, modifyVpnConnectionResponse_vpnConnection - Information about the VPN connection.

$sel:httpStatus:ModifyVpnConnectionResponse', modifyVpnConnectionResponse_httpStatus - The response's http status code.

Response Lenses