/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the ec2-2016-11-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.EC2.Model
{
///
/// Container for the parameters to the ModifyVpnConnection operation.
/// 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.
///
///
public partial class ModifyVpnConnectionRequest : AmazonEC2Request
{
private string _customerGatewayId;
private string _transitGatewayId;
private string _vpnConnectionId;
private string _vpnGatewayId;
///
/// Gets and sets the property CustomerGatewayId.
///
/// The ID of the customer gateway at your end of the VPN connection.
///
///
public string CustomerGatewayId
{
get { return this._customerGatewayId; }
set { this._customerGatewayId = value; }
}
// Check to see if CustomerGatewayId property is set
internal bool IsSetCustomerGatewayId()
{
return this._customerGatewayId != null;
}
///
/// Gets and sets the property TransitGatewayId.
///
/// The ID of the transit gateway.
///
///
public string TransitGatewayId
{
get { return this._transitGatewayId; }
set { this._transitGatewayId = value; }
}
// Check to see if TransitGatewayId property is set
internal bool IsSetTransitGatewayId()
{
return this._transitGatewayId != null;
}
///
/// Gets and sets the property VpnConnectionId.
///
/// The ID of the VPN connection.
///
///
[AWSProperty(Required=true)]
public string VpnConnectionId
{
get { return this._vpnConnectionId; }
set { this._vpnConnectionId = value; }
}
// Check to see if VpnConnectionId property is set
internal bool IsSetVpnConnectionId()
{
return this._vpnConnectionId != null;
}
///
/// Gets and sets the property VpnGatewayId.
///
/// The ID of the virtual private gateway at the Amazon Web Services side of the VPN connection.
///
///
public string VpnGatewayId
{
get { return this._vpnGatewayId; }
set { this._vpnGatewayId = value; }
}
// Check to see if VpnGatewayId property is set
internal bool IsSetVpnGatewayId()
{
return this._vpnGatewayId != null;
}
}
}