1. Packages
  2. Aviatrix
  3. API Docs
  4. AviatrixAwsTgwVpnConn
Aviatrix v0.0.11 published on Saturday, Jun 17, 2023 by Aviatrix

aviatrix.AviatrixAwsTgwVpnConn

Explore with Pulumi AI

The aviatrix_aws_tgw_vpn_conn resource allows the creation and management of Aviatrix AWS TGW VPN connections in their selected Security Domain.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Aviatrix = Pulumi.Aviatrix;

return await Deployment.RunAsync(() => 
{
    // Create an Aviatrix AWS TGW VPN Connection (dynamic)
    var testAwsTgwVpnConn = new Aviatrix.AviatrixAwsTgwVpnConn("testAwsTgwVpnConn", new()
    {
        ConnectionName = "my-conn1",
        ConnectionType = "dynamic",
        PublicIp = "40.0.0.0",
        RemoteAsNumber = "12",
        RouteDomainName = "Default_Domain",
        TgwName = "test-tgw1",
    });

});
Copy
package main

import (
	"github.com/astipkovits/pulumi-aviatrix/sdk/go/aviatrix"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := aviatrix.NewAviatrixAwsTgwVpnConn(ctx, "testAwsTgwVpnConn", &aviatrix.AviatrixAwsTgwVpnConnArgs{
			ConnectionName:  pulumi.String("my-conn1"),
			ConnectionType:  pulumi.String("dynamic"),
			PublicIp:        pulumi.String("40.0.0.0"),
			RemoteAsNumber:  pulumi.String("12"),
			RouteDomainName: pulumi.String("Default_Domain"),
			TgwName:         pulumi.String("test-tgw1"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aviatrix.AviatrixAwsTgwVpnConn;
import com.pulumi.aviatrix.AviatrixAwsTgwVpnConnArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var testAwsTgwVpnConn = new AviatrixAwsTgwVpnConn("testAwsTgwVpnConn", AviatrixAwsTgwVpnConnArgs.builder()        
            .connectionName("my-conn1")
            .connectionType("dynamic")
            .publicIp("40.0.0.0")
            .remoteAsNumber("12")
            .routeDomainName("Default_Domain")
            .tgwName("test-tgw1")
            .build());

    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as aviatrix from "@pulumi/aviatrix";

// Create an Aviatrix AWS TGW VPN Connection (dynamic)
const testAwsTgwVpnConn = new aviatrix.AviatrixAwsTgwVpnConn("test_aws_tgw_vpn_conn", {
    connectionName: "my-conn1",
    connectionType: "dynamic",
    publicIp: "40.0.0.0",
    remoteAsNumber: "12",
    routeDomainName: "Default_Domain",
    tgwName: "test-tgw1",
});
Copy
import pulumi
import pulumi_aviatrix as aviatrix

# Create an Aviatrix AWS TGW VPN Connection (dynamic)
test_aws_tgw_vpn_conn = aviatrix.AviatrixAwsTgwVpnConn("testAwsTgwVpnConn",
    connection_name="my-conn1",
    connection_type="dynamic",
    public_ip="40.0.0.0",
    remote_as_number="12",
    route_domain_name="Default_Domain",
    tgw_name="test-tgw1")
Copy
resources:
  # Create an Aviatrix AWS TGW VPN Connection (dynamic)
  testAwsTgwVpnConn:
    type: aviatrix:AviatrixAwsTgwVpnConn
    properties:
      connectionName: my-conn1
      connectionType: dynamic
      publicIp: 40.0.0.0
      remoteAsNumber: '12'
      routeDomainName: Default_Domain
      tgwName: test-tgw1
Copy
using System.Collections.Generic;
using Pulumi;
using Aviatrix = Pulumi.Aviatrix;

return await Deployment.RunAsync(() => 
{
    // Create an Aviatrix AWS TGW VPN Connection (static)
    var testAwsTgwVpnConn = new Aviatrix.AviatrixAwsTgwVpnConn("testAwsTgwVpnConn", new()
    {
        ConnectionName = "my-conn1",
        ConnectionType = "static",
        PublicIp = "40.0.0.0",
        RemoteCidr = "16.0.0.0/16,16.1.0.0/16",
        RouteDomainName = "Default_Domain",
        TgwName = "test-tgw1",
    });

});
Copy
package main

import (
	"github.com/astipkovits/pulumi-aviatrix/sdk/go/aviatrix"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := aviatrix.NewAviatrixAwsTgwVpnConn(ctx, "testAwsTgwVpnConn", &aviatrix.AviatrixAwsTgwVpnConnArgs{
			ConnectionName:  pulumi.String("my-conn1"),
			ConnectionType:  pulumi.String("static"),
			PublicIp:        pulumi.String("40.0.0.0"),
			RemoteCidr:      pulumi.String("16.0.0.0/16,16.1.0.0/16"),
			RouteDomainName: pulumi.String("Default_Domain"),
			TgwName:         pulumi.String("test-tgw1"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aviatrix.AviatrixAwsTgwVpnConn;
import com.pulumi.aviatrix.AviatrixAwsTgwVpnConnArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var testAwsTgwVpnConn = new AviatrixAwsTgwVpnConn("testAwsTgwVpnConn", AviatrixAwsTgwVpnConnArgs.builder()        
            .connectionName("my-conn1")
            .connectionType("static")
            .publicIp("40.0.0.0")
            .remoteCidr("16.0.0.0/16,16.1.0.0/16")
            .routeDomainName("Default_Domain")
            .tgwName("test-tgw1")
            .build());

    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as aviatrix from "@pulumi/aviatrix";

// Create an Aviatrix AWS TGW VPN Connection (static)
const testAwsTgwVpnConn = new aviatrix.AviatrixAwsTgwVpnConn("test_aws_tgw_vpn_conn", {
    connectionName: "my-conn1",
    connectionType: "static",
    publicIp: "40.0.0.0",
    remoteCidr: "16.0.0.0/16,16.1.0.0/16",
    routeDomainName: "Default_Domain",
    tgwName: "test-tgw1",
});
Copy
import pulumi
import pulumi_aviatrix as aviatrix

# Create an Aviatrix AWS TGW VPN Connection (static)
test_aws_tgw_vpn_conn = aviatrix.AviatrixAwsTgwVpnConn("testAwsTgwVpnConn",
    connection_name="my-conn1",
    connection_type="static",
    public_ip="40.0.0.0",
    remote_cidr="16.0.0.0/16,16.1.0.0/16",
    route_domain_name="Default_Domain",
    tgw_name="test-tgw1")
Copy
resources:
  # Create an Aviatrix AWS TGW VPN Connection (static)
  testAwsTgwVpnConn:
    type: aviatrix:AviatrixAwsTgwVpnConn
    properties:
      connectionName: my-conn1
      connectionType: static
      publicIp: 40.0.0.0
      remoteCidr: 16.0.0.0/16,16.1.0.0/16
      routeDomainName: Default_Domain
      tgwName: test-tgw1
Copy

Create AviatrixAwsTgwVpnConn Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new AviatrixAwsTgwVpnConn(name: string, args: AviatrixAwsTgwVpnConnArgs, opts?: CustomResourceOptions);
@overload
def AviatrixAwsTgwVpnConn(resource_name: str,
                          args: AviatrixAwsTgwVpnConnArgs,
                          opts: Optional[ResourceOptions] = None)

@overload
def AviatrixAwsTgwVpnConn(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          connection_name: Optional[str] = None,
                          tgw_name: Optional[str] = None,
                          route_domain_name: Optional[str] = None,
                          public_ip: Optional[str] = None,
                          pre_shared_key_tun1: Optional[str] = None,
                          inside_ip_cidr_tun2: Optional[str] = None,
                          inside_ip_cidr_tun1: Optional[str] = None,
                          pre_shared_key_tun2: Optional[str] = None,
                          enable_learned_cidrs_approval: Optional[bool] = None,
                          remote_as_number: Optional[str] = None,
                          remote_cidr: Optional[str] = None,
                          enable_global_acceleration: Optional[bool] = None,
                          connection_type: Optional[str] = None)
func NewAviatrixAwsTgwVpnConn(ctx *Context, name string, args AviatrixAwsTgwVpnConnArgs, opts ...ResourceOption) (*AviatrixAwsTgwVpnConn, error)
public AviatrixAwsTgwVpnConn(string name, AviatrixAwsTgwVpnConnArgs args, CustomResourceOptions? opts = null)
public AviatrixAwsTgwVpnConn(String name, AviatrixAwsTgwVpnConnArgs args)
public AviatrixAwsTgwVpnConn(String name, AviatrixAwsTgwVpnConnArgs args, CustomResourceOptions options)
type: aviatrix:AviatrixAwsTgwVpnConn
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. AviatrixAwsTgwVpnConnArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. AviatrixAwsTgwVpnConnArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. AviatrixAwsTgwVpnConnArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. AviatrixAwsTgwVpnConnArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. AviatrixAwsTgwVpnConnArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var aviatrixAwsTgwVpnConnResource = new Aviatrix.AviatrixAwsTgwVpnConn("aviatrixAwsTgwVpnConnResource", new()
{
    ConnectionName = "string",
    TgwName = "string",
    RouteDomainName = "string",
    PublicIp = "string",
    PreSharedKeyTun1 = "string",
    InsideIpCidrTun2 = "string",
    InsideIpCidrTun1 = "string",
    PreSharedKeyTun2 = "string",
    EnableLearnedCidrsApproval = false,
    RemoteAsNumber = "string",
    RemoteCidr = "string",
    EnableGlobalAcceleration = false,
    ConnectionType = "string",
});
Copy
example, err := aviatrix.NewAviatrixAwsTgwVpnConn(ctx, "aviatrixAwsTgwVpnConnResource", &aviatrix.AviatrixAwsTgwVpnConnArgs{
	ConnectionName:             pulumi.String("string"),
	TgwName:                    pulumi.String("string"),
	RouteDomainName:            pulumi.String("string"),
	PublicIp:                   pulumi.String("string"),
	PreSharedKeyTun1:           pulumi.String("string"),
	InsideIpCidrTun2:           pulumi.String("string"),
	InsideIpCidrTun1:           pulumi.String("string"),
	PreSharedKeyTun2:           pulumi.String("string"),
	EnableLearnedCidrsApproval: pulumi.Bool(false),
	RemoteAsNumber:             pulumi.String("string"),
	RemoteCidr:                 pulumi.String("string"),
	EnableGlobalAcceleration:   pulumi.Bool(false),
	ConnectionType:             pulumi.String("string"),
})
Copy
var aviatrixAwsTgwVpnConnResource = new AviatrixAwsTgwVpnConn("aviatrixAwsTgwVpnConnResource", AviatrixAwsTgwVpnConnArgs.builder()
    .connectionName("string")
    .tgwName("string")
    .routeDomainName("string")
    .publicIp("string")
    .preSharedKeyTun1("string")
    .insideIpCidrTun2("string")
    .insideIpCidrTun1("string")
    .preSharedKeyTun2("string")
    .enableLearnedCidrsApproval(false)
    .remoteAsNumber("string")
    .remoteCidr("string")
    .enableGlobalAcceleration(false)
    .connectionType("string")
    .build());
Copy
aviatrix_aws_tgw_vpn_conn_resource = aviatrix.AviatrixAwsTgwVpnConn("aviatrixAwsTgwVpnConnResource",
    connection_name="string",
    tgw_name="string",
    route_domain_name="string",
    public_ip="string",
    pre_shared_key_tun1="string",
    inside_ip_cidr_tun2="string",
    inside_ip_cidr_tun1="string",
    pre_shared_key_tun2="string",
    enable_learned_cidrs_approval=False,
    remote_as_number="string",
    remote_cidr="string",
    enable_global_acceleration=False,
    connection_type="string")
Copy
const aviatrixAwsTgwVpnConnResource = new aviatrix.AviatrixAwsTgwVpnConn("aviatrixAwsTgwVpnConnResource", {
    connectionName: "string",
    tgwName: "string",
    routeDomainName: "string",
    publicIp: "string",
    preSharedKeyTun1: "string",
    insideIpCidrTun2: "string",
    insideIpCidrTun1: "string",
    preSharedKeyTun2: "string",
    enableLearnedCidrsApproval: false,
    remoteAsNumber: "string",
    remoteCidr: "string",
    enableGlobalAcceleration: false,
    connectionType: "string",
});
Copy
type: aviatrix:AviatrixAwsTgwVpnConn
properties:
    connectionName: string
    connectionType: string
    enableGlobalAcceleration: false
    enableLearnedCidrsApproval: false
    insideIpCidrTun1: string
    insideIpCidrTun2: string
    preSharedKeyTun1: string
    preSharedKeyTun2: string
    publicIp: string
    remoteAsNumber: string
    remoteCidr: string
    routeDomainName: string
    tgwName: string
Copy

AviatrixAwsTgwVpnConn Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The AviatrixAwsTgwVpnConn resource accepts the following input properties:

ConnectionName
This property is required.
Changes to this property will trigger replacement.
string
Unique name of the connection.
PublicIp
This property is required.
Changes to this property will trigger replacement.
string
Public IP address. Example: "40.0.0.0".
RouteDomainName
This property is required.
Changes to this property will trigger replacement.
string
The name of a route domain, to which the vpn will be attached.
TgwName
This property is required.
Changes to this property will trigger replacement.
string
This parameter represents the name of an AWS TGW.
ConnectionType Changes to this property will trigger replacement. string
Connection type. Valid values: 'dynamic', 'static'. 'dynamic' stands for a BGP VPN connection; 'static' stands for a static VPN connection. Default value: 'dynamic'.
EnableGlobalAcceleration Changes to this property will trigger replacement. bool
Enable Global Acceleration. Type: Boolean. Default: false.
EnableLearnedCidrsApproval bool
Switch to enable/disable encrypted transit approval for AWS TGW VPN connection. Valid values: true, false. Default value: false.
InsideIpCidrTun1 Changes to this property will trigger replacement. string
Inside IP CIDR for Tunnel 1. A /30 CIDR in 169.254.0.0/16.
InsideIpCidrTun2 Changes to this property will trigger replacement. string
Inside IP CIDR for Tunnel 2. A /30 CIDR in 169.254.0.0/16.
PreSharedKeyTun1 Changes to this property will trigger replacement. string
Pre-Shared Key for Tunnel 1. A 8-64 character string with alphanumeric underscore(_) and dot(.). It cannot start with 0.
PreSharedKeyTun2 Changes to this property will trigger replacement. string
Pre-Shared Key for Tunnel 2. A 8-64 character string with alphanumeric underscore(_) and dot(.). It cannot start with 0.
RemoteAsNumber Changes to this property will trigger replacement. string
AWS side as a number. Integer between 1-4294967294. Example: "12". Required for a dynamic VPN connection.
RemoteCidr Changes to this property will trigger replacement. string
Remote CIDRs separated by ",". Example: AWS: "16.0.0.0/16,16.1.0.0/16". Required for a static VPN connection.
ConnectionName
This property is required.
Changes to this property will trigger replacement.
string
Unique name of the connection.
PublicIp
This property is required.
Changes to this property will trigger replacement.
string
Public IP address. Example: "40.0.0.0".
RouteDomainName
This property is required.
Changes to this property will trigger replacement.
string
The name of a route domain, to which the vpn will be attached.
TgwName
This property is required.
Changes to this property will trigger replacement.
string
This parameter represents the name of an AWS TGW.
ConnectionType Changes to this property will trigger replacement. string
Connection type. Valid values: 'dynamic', 'static'. 'dynamic' stands for a BGP VPN connection; 'static' stands for a static VPN connection. Default value: 'dynamic'.
EnableGlobalAcceleration Changes to this property will trigger replacement. bool
Enable Global Acceleration. Type: Boolean. Default: false.
EnableLearnedCidrsApproval bool
Switch to enable/disable encrypted transit approval for AWS TGW VPN connection. Valid values: true, false. Default value: false.
InsideIpCidrTun1 Changes to this property will trigger replacement. string
Inside IP CIDR for Tunnel 1. A /30 CIDR in 169.254.0.0/16.
InsideIpCidrTun2 Changes to this property will trigger replacement. string
Inside IP CIDR for Tunnel 2. A /30 CIDR in 169.254.0.0/16.
PreSharedKeyTun1 Changes to this property will trigger replacement. string
Pre-Shared Key for Tunnel 1. A 8-64 character string with alphanumeric underscore(_) and dot(.). It cannot start with 0.
PreSharedKeyTun2 Changes to this property will trigger replacement. string
Pre-Shared Key for Tunnel 2. A 8-64 character string with alphanumeric underscore(_) and dot(.). It cannot start with 0.
RemoteAsNumber Changes to this property will trigger replacement. string
AWS side as a number. Integer between 1-4294967294. Example: "12". Required for a dynamic VPN connection.
RemoteCidr Changes to this property will trigger replacement. string
Remote CIDRs separated by ",". Example: AWS: "16.0.0.0/16,16.1.0.0/16". Required for a static VPN connection.
connectionName
This property is required.
Changes to this property will trigger replacement.
String
Unique name of the connection.
publicIp
This property is required.
Changes to this property will trigger replacement.
String
Public IP address. Example: "40.0.0.0".
routeDomainName
This property is required.
Changes to this property will trigger replacement.
String
The name of a route domain, to which the vpn will be attached.
tgwName
This property is required.
Changes to this property will trigger replacement.
String
This parameter represents the name of an AWS TGW.
connectionType Changes to this property will trigger replacement. String
Connection type. Valid values: 'dynamic', 'static'. 'dynamic' stands for a BGP VPN connection; 'static' stands for a static VPN connection. Default value: 'dynamic'.
enableGlobalAcceleration Changes to this property will trigger replacement. Boolean
Enable Global Acceleration. Type: Boolean. Default: false.
enableLearnedCidrsApproval Boolean
Switch to enable/disable encrypted transit approval for AWS TGW VPN connection. Valid values: true, false. Default value: false.
insideIpCidrTun1 Changes to this property will trigger replacement. String
Inside IP CIDR for Tunnel 1. A /30 CIDR in 169.254.0.0/16.
insideIpCidrTun2 Changes to this property will trigger replacement. String
Inside IP CIDR for Tunnel 2. A /30 CIDR in 169.254.0.0/16.
preSharedKeyTun1 Changes to this property will trigger replacement. String
Pre-Shared Key for Tunnel 1. A 8-64 character string with alphanumeric underscore(_) and dot(.). It cannot start with 0.
preSharedKeyTun2 Changes to this property will trigger replacement. String
Pre-Shared Key for Tunnel 2. A 8-64 character string with alphanumeric underscore(_) and dot(.). It cannot start with 0.
remoteAsNumber Changes to this property will trigger replacement. String
AWS side as a number. Integer between 1-4294967294. Example: "12". Required for a dynamic VPN connection.
remoteCidr Changes to this property will trigger replacement. String
Remote CIDRs separated by ",". Example: AWS: "16.0.0.0/16,16.1.0.0/16". Required for a static VPN connection.
connectionName
This property is required.
Changes to this property will trigger replacement.
string
Unique name of the connection.
publicIp
This property is required.
Changes to this property will trigger replacement.
string
Public IP address. Example: "40.0.0.0".
routeDomainName
This property is required.
Changes to this property will trigger replacement.
string
The name of a route domain, to which the vpn will be attached.
tgwName
This property is required.
Changes to this property will trigger replacement.
string
This parameter represents the name of an AWS TGW.
connectionType Changes to this property will trigger replacement. string
Connection type. Valid values: 'dynamic', 'static'. 'dynamic' stands for a BGP VPN connection; 'static' stands for a static VPN connection. Default value: 'dynamic'.
enableGlobalAcceleration Changes to this property will trigger replacement. boolean
Enable Global Acceleration. Type: Boolean. Default: false.
enableLearnedCidrsApproval boolean
Switch to enable/disable encrypted transit approval for AWS TGW VPN connection. Valid values: true, false. Default value: false.
insideIpCidrTun1 Changes to this property will trigger replacement. string
Inside IP CIDR for Tunnel 1. A /30 CIDR in 169.254.0.0/16.
insideIpCidrTun2 Changes to this property will trigger replacement. string
Inside IP CIDR for Tunnel 2. A /30 CIDR in 169.254.0.0/16.
preSharedKeyTun1 Changes to this property will trigger replacement. string
Pre-Shared Key for Tunnel 1. A 8-64 character string with alphanumeric underscore(_) and dot(.). It cannot start with 0.
preSharedKeyTun2 Changes to this property will trigger replacement. string
Pre-Shared Key for Tunnel 2. A 8-64 character string with alphanumeric underscore(_) and dot(.). It cannot start with 0.
remoteAsNumber Changes to this property will trigger replacement. string
AWS side as a number. Integer between 1-4294967294. Example: "12". Required for a dynamic VPN connection.
remoteCidr Changes to this property will trigger replacement. string
Remote CIDRs separated by ",". Example: AWS: "16.0.0.0/16,16.1.0.0/16". Required for a static VPN connection.
connection_name
This property is required.
Changes to this property will trigger replacement.
str
Unique name of the connection.
public_ip
This property is required.
Changes to this property will trigger replacement.
str
Public IP address. Example: "40.0.0.0".
route_domain_name
This property is required.
Changes to this property will trigger replacement.
str
The name of a route domain, to which the vpn will be attached.
tgw_name
This property is required.
Changes to this property will trigger replacement.
str
This parameter represents the name of an AWS TGW.
connection_type Changes to this property will trigger replacement. str
Connection type. Valid values: 'dynamic', 'static'. 'dynamic' stands for a BGP VPN connection; 'static' stands for a static VPN connection. Default value: 'dynamic'.
enable_global_acceleration Changes to this property will trigger replacement. bool
Enable Global Acceleration. Type: Boolean. Default: false.
enable_learned_cidrs_approval bool
Switch to enable/disable encrypted transit approval for AWS TGW VPN connection. Valid values: true, false. Default value: false.
inside_ip_cidr_tun1 Changes to this property will trigger replacement. str
Inside IP CIDR for Tunnel 1. A /30 CIDR in 169.254.0.0/16.
inside_ip_cidr_tun2 Changes to this property will trigger replacement. str
Inside IP CIDR for Tunnel 2. A /30 CIDR in 169.254.0.0/16.
pre_shared_key_tun1 Changes to this property will trigger replacement. str
Pre-Shared Key for Tunnel 1. A 8-64 character string with alphanumeric underscore(_) and dot(.). It cannot start with 0.
pre_shared_key_tun2 Changes to this property will trigger replacement. str
Pre-Shared Key for Tunnel 2. A 8-64 character string with alphanumeric underscore(_) and dot(.). It cannot start with 0.
remote_as_number Changes to this property will trigger replacement. str
AWS side as a number. Integer between 1-4294967294. Example: "12". Required for a dynamic VPN connection.
remote_cidr Changes to this property will trigger replacement. str
Remote CIDRs separated by ",". Example: AWS: "16.0.0.0/16,16.1.0.0/16". Required for a static VPN connection.
connectionName
This property is required.
Changes to this property will trigger replacement.
String
Unique name of the connection.
publicIp
This property is required.
Changes to this property will trigger replacement.
String
Public IP address. Example: "40.0.0.0".
routeDomainName
This property is required.
Changes to this property will trigger replacement.
String
The name of a route domain, to which the vpn will be attached.
tgwName
This property is required.
Changes to this property will trigger replacement.
String
This parameter represents the name of an AWS TGW.
connectionType Changes to this property will trigger replacement. String
Connection type. Valid values: 'dynamic', 'static'. 'dynamic' stands for a BGP VPN connection; 'static' stands for a static VPN connection. Default value: 'dynamic'.
enableGlobalAcceleration Changes to this property will trigger replacement. Boolean
Enable Global Acceleration. Type: Boolean. Default: false.
enableLearnedCidrsApproval Boolean
Switch to enable/disable encrypted transit approval for AWS TGW VPN connection. Valid values: true, false. Default value: false.
insideIpCidrTun1 Changes to this property will trigger replacement. String
Inside IP CIDR for Tunnel 1. A /30 CIDR in 169.254.0.0/16.
insideIpCidrTun2 Changes to this property will trigger replacement. String
Inside IP CIDR for Tunnel 2. A /30 CIDR in 169.254.0.0/16.
preSharedKeyTun1 Changes to this property will trigger replacement. String
Pre-Shared Key for Tunnel 1. A 8-64 character string with alphanumeric underscore(_) and dot(.). It cannot start with 0.
preSharedKeyTun2 Changes to this property will trigger replacement. String
Pre-Shared Key for Tunnel 2. A 8-64 character string with alphanumeric underscore(_) and dot(.). It cannot start with 0.
remoteAsNumber Changes to this property will trigger replacement. String
AWS side as a number. Integer between 1-4294967294. Example: "12". Required for a dynamic VPN connection.
remoteCidr Changes to this property will trigger replacement. String
Remote CIDRs separated by ",". Example: AWS: "16.0.0.0/16,16.1.0.0/16". Required for a static VPN connection.

Outputs

All input properties are implicitly available as output properties. Additionally, the AviatrixAwsTgwVpnConn resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
VpnId string
ID of the VPN generated by creation of the connection.
VpnTunnelDatas List<AviatrixAwsTgwVpnConnVpnTunnelData>
AWS TGW VPN tunnel data.
Id string
The provider-assigned unique ID for this managed resource.
VpnId string
ID of the VPN generated by creation of the connection.
VpnTunnelDatas []AviatrixAwsTgwVpnConnVpnTunnelData
AWS TGW VPN tunnel data.
id String
The provider-assigned unique ID for this managed resource.
vpnId String
ID of the VPN generated by creation of the connection.
vpnTunnelDatas List<AviatrixAwsTgwVpnConnVpnTunnelData>
AWS TGW VPN tunnel data.
id string
The provider-assigned unique ID for this managed resource.
vpnId string
ID of the VPN generated by creation of the connection.
vpnTunnelDatas AviatrixAwsTgwVpnConnVpnTunnelData[]
AWS TGW VPN tunnel data.
id str
The provider-assigned unique ID for this managed resource.
vpn_id str
ID of the VPN generated by creation of the connection.
vpn_tunnel_datas Sequence[AviatrixAwsTgwVpnConnVpnTunnelData]
AWS TGW VPN tunnel data.
id String
The provider-assigned unique ID for this managed resource.
vpnId String
ID of the VPN generated by creation of the connection.
vpnTunnelDatas List<Property Map>
AWS TGW VPN tunnel data.

Look up Existing AviatrixAwsTgwVpnConn Resource

Get an existing AviatrixAwsTgwVpnConn resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: AviatrixAwsTgwVpnConnState, opts?: CustomResourceOptions): AviatrixAwsTgwVpnConn
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        connection_name: Optional[str] = None,
        connection_type: Optional[str] = None,
        enable_global_acceleration: Optional[bool] = None,
        enable_learned_cidrs_approval: Optional[bool] = None,
        inside_ip_cidr_tun1: Optional[str] = None,
        inside_ip_cidr_tun2: Optional[str] = None,
        pre_shared_key_tun1: Optional[str] = None,
        pre_shared_key_tun2: Optional[str] = None,
        public_ip: Optional[str] = None,
        remote_as_number: Optional[str] = None,
        remote_cidr: Optional[str] = None,
        route_domain_name: Optional[str] = None,
        tgw_name: Optional[str] = None,
        vpn_id: Optional[str] = None,
        vpn_tunnel_datas: Optional[Sequence[AviatrixAwsTgwVpnConnVpnTunnelDataArgs]] = None) -> AviatrixAwsTgwVpnConn
func GetAviatrixAwsTgwVpnConn(ctx *Context, name string, id IDInput, state *AviatrixAwsTgwVpnConnState, opts ...ResourceOption) (*AviatrixAwsTgwVpnConn, error)
public static AviatrixAwsTgwVpnConn Get(string name, Input<string> id, AviatrixAwsTgwVpnConnState? state, CustomResourceOptions? opts = null)
public static AviatrixAwsTgwVpnConn get(String name, Output<String> id, AviatrixAwsTgwVpnConnState state, CustomResourceOptions options)
resources:  _:    type: aviatrix:AviatrixAwsTgwVpnConn    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
ConnectionName Changes to this property will trigger replacement. string
Unique name of the connection.
ConnectionType Changes to this property will trigger replacement. string
Connection type. Valid values: 'dynamic', 'static'. 'dynamic' stands for a BGP VPN connection; 'static' stands for a static VPN connection. Default value: 'dynamic'.
EnableGlobalAcceleration Changes to this property will trigger replacement. bool
Enable Global Acceleration. Type: Boolean. Default: false.
EnableLearnedCidrsApproval bool
Switch to enable/disable encrypted transit approval for AWS TGW VPN connection. Valid values: true, false. Default value: false.
InsideIpCidrTun1 Changes to this property will trigger replacement. string
Inside IP CIDR for Tunnel 1. A /30 CIDR in 169.254.0.0/16.
InsideIpCidrTun2 Changes to this property will trigger replacement. string
Inside IP CIDR for Tunnel 2. A /30 CIDR in 169.254.0.0/16.
PreSharedKeyTun1 Changes to this property will trigger replacement. string
Pre-Shared Key for Tunnel 1. A 8-64 character string with alphanumeric underscore(_) and dot(.). It cannot start with 0.
PreSharedKeyTun2 Changes to this property will trigger replacement. string
Pre-Shared Key for Tunnel 2. A 8-64 character string with alphanumeric underscore(_) and dot(.). It cannot start with 0.
PublicIp Changes to this property will trigger replacement. string
Public IP address. Example: "40.0.0.0".
RemoteAsNumber Changes to this property will trigger replacement. string
AWS side as a number. Integer between 1-4294967294. Example: "12". Required for a dynamic VPN connection.
RemoteCidr Changes to this property will trigger replacement. string
Remote CIDRs separated by ",". Example: AWS: "16.0.0.0/16,16.1.0.0/16". Required for a static VPN connection.
RouteDomainName Changes to this property will trigger replacement. string
The name of a route domain, to which the vpn will be attached.
TgwName Changes to this property will trigger replacement. string
This parameter represents the name of an AWS TGW.
VpnId string
ID of the VPN generated by creation of the connection.
VpnTunnelDatas List<AviatrixAwsTgwVpnConnVpnTunnelData>
AWS TGW VPN tunnel data.
ConnectionName Changes to this property will trigger replacement. string
Unique name of the connection.
ConnectionType Changes to this property will trigger replacement. string
Connection type. Valid values: 'dynamic', 'static'. 'dynamic' stands for a BGP VPN connection; 'static' stands for a static VPN connection. Default value: 'dynamic'.
EnableGlobalAcceleration Changes to this property will trigger replacement. bool
Enable Global Acceleration. Type: Boolean. Default: false.
EnableLearnedCidrsApproval bool
Switch to enable/disable encrypted transit approval for AWS TGW VPN connection. Valid values: true, false. Default value: false.
InsideIpCidrTun1 Changes to this property will trigger replacement. string
Inside IP CIDR for Tunnel 1. A /30 CIDR in 169.254.0.0/16.
InsideIpCidrTun2 Changes to this property will trigger replacement. string
Inside IP CIDR for Tunnel 2. A /30 CIDR in 169.254.0.0/16.
PreSharedKeyTun1 Changes to this property will trigger replacement. string
Pre-Shared Key for Tunnel 1. A 8-64 character string with alphanumeric underscore(_) and dot(.). It cannot start with 0.
PreSharedKeyTun2 Changes to this property will trigger replacement. string
Pre-Shared Key for Tunnel 2. A 8-64 character string with alphanumeric underscore(_) and dot(.). It cannot start with 0.
PublicIp Changes to this property will trigger replacement. string
Public IP address. Example: "40.0.0.0".
RemoteAsNumber Changes to this property will trigger replacement. string
AWS side as a number. Integer between 1-4294967294. Example: "12". Required for a dynamic VPN connection.
RemoteCidr Changes to this property will trigger replacement. string
Remote CIDRs separated by ",". Example: AWS: "16.0.0.0/16,16.1.0.0/16". Required for a static VPN connection.
RouteDomainName Changes to this property will trigger replacement. string
The name of a route domain, to which the vpn will be attached.
TgwName Changes to this property will trigger replacement. string
This parameter represents the name of an AWS TGW.
VpnId string
ID of the VPN generated by creation of the connection.
VpnTunnelDatas []AviatrixAwsTgwVpnConnVpnTunnelDataArgs
AWS TGW VPN tunnel data.
connectionName Changes to this property will trigger replacement. String
Unique name of the connection.
connectionType Changes to this property will trigger replacement. String
Connection type. Valid values: 'dynamic', 'static'. 'dynamic' stands for a BGP VPN connection; 'static' stands for a static VPN connection. Default value: 'dynamic'.
enableGlobalAcceleration Changes to this property will trigger replacement. Boolean
Enable Global Acceleration. Type: Boolean. Default: false.
enableLearnedCidrsApproval Boolean
Switch to enable/disable encrypted transit approval for AWS TGW VPN connection. Valid values: true, false. Default value: false.
insideIpCidrTun1 Changes to this property will trigger replacement. String
Inside IP CIDR for Tunnel 1. A /30 CIDR in 169.254.0.0/16.
insideIpCidrTun2 Changes to this property will trigger replacement. String
Inside IP CIDR for Tunnel 2. A /30 CIDR in 169.254.0.0/16.
preSharedKeyTun1 Changes to this property will trigger replacement. String
Pre-Shared Key for Tunnel 1. A 8-64 character string with alphanumeric underscore(_) and dot(.). It cannot start with 0.
preSharedKeyTun2 Changes to this property will trigger replacement. String
Pre-Shared Key for Tunnel 2. A 8-64 character string with alphanumeric underscore(_) and dot(.). It cannot start with 0.
publicIp Changes to this property will trigger replacement. String
Public IP address. Example: "40.0.0.0".
remoteAsNumber Changes to this property will trigger replacement. String
AWS side as a number. Integer between 1-4294967294. Example: "12". Required for a dynamic VPN connection.
remoteCidr Changes to this property will trigger replacement. String
Remote CIDRs separated by ",". Example: AWS: "16.0.0.0/16,16.1.0.0/16". Required for a static VPN connection.
routeDomainName Changes to this property will trigger replacement. String
The name of a route domain, to which the vpn will be attached.
tgwName Changes to this property will trigger replacement. String
This parameter represents the name of an AWS TGW.
vpnId String
ID of the VPN generated by creation of the connection.
vpnTunnelDatas List<AviatrixAwsTgwVpnConnVpnTunnelData>
AWS TGW VPN tunnel data.
connectionName Changes to this property will trigger replacement. string
Unique name of the connection.
connectionType Changes to this property will trigger replacement. string
Connection type. Valid values: 'dynamic', 'static'. 'dynamic' stands for a BGP VPN connection; 'static' stands for a static VPN connection. Default value: 'dynamic'.
enableGlobalAcceleration Changes to this property will trigger replacement. boolean
Enable Global Acceleration. Type: Boolean. Default: false.
enableLearnedCidrsApproval boolean
Switch to enable/disable encrypted transit approval for AWS TGW VPN connection. Valid values: true, false. Default value: false.
insideIpCidrTun1 Changes to this property will trigger replacement. string
Inside IP CIDR for Tunnel 1. A /30 CIDR in 169.254.0.0/16.
insideIpCidrTun2 Changes to this property will trigger replacement. string
Inside IP CIDR for Tunnel 2. A /30 CIDR in 169.254.0.0/16.
preSharedKeyTun1 Changes to this property will trigger replacement. string
Pre-Shared Key for Tunnel 1. A 8-64 character string with alphanumeric underscore(_) and dot(.). It cannot start with 0.
preSharedKeyTun2 Changes to this property will trigger replacement. string
Pre-Shared Key for Tunnel 2. A 8-64 character string with alphanumeric underscore(_) and dot(.). It cannot start with 0.
publicIp Changes to this property will trigger replacement. string
Public IP address. Example: "40.0.0.0".
remoteAsNumber Changes to this property will trigger replacement. string
AWS side as a number. Integer between 1-4294967294. Example: "12". Required for a dynamic VPN connection.
remoteCidr Changes to this property will trigger replacement. string
Remote CIDRs separated by ",". Example: AWS: "16.0.0.0/16,16.1.0.0/16". Required for a static VPN connection.
routeDomainName Changes to this property will trigger replacement. string
The name of a route domain, to which the vpn will be attached.
tgwName Changes to this property will trigger replacement. string
This parameter represents the name of an AWS TGW.
vpnId string
ID of the VPN generated by creation of the connection.
vpnTunnelDatas AviatrixAwsTgwVpnConnVpnTunnelData[]
AWS TGW VPN tunnel data.
connection_name Changes to this property will trigger replacement. str
Unique name of the connection.
connection_type Changes to this property will trigger replacement. str
Connection type. Valid values: 'dynamic', 'static'. 'dynamic' stands for a BGP VPN connection; 'static' stands for a static VPN connection. Default value: 'dynamic'.
enable_global_acceleration Changes to this property will trigger replacement. bool
Enable Global Acceleration. Type: Boolean. Default: false.
enable_learned_cidrs_approval bool
Switch to enable/disable encrypted transit approval for AWS TGW VPN connection. Valid values: true, false. Default value: false.
inside_ip_cidr_tun1 Changes to this property will trigger replacement. str
Inside IP CIDR for Tunnel 1. A /30 CIDR in 169.254.0.0/16.
inside_ip_cidr_tun2 Changes to this property will trigger replacement. str
Inside IP CIDR for Tunnel 2. A /30 CIDR in 169.254.0.0/16.
pre_shared_key_tun1 Changes to this property will trigger replacement. str
Pre-Shared Key for Tunnel 1. A 8-64 character string with alphanumeric underscore(_) and dot(.). It cannot start with 0.
pre_shared_key_tun2 Changes to this property will trigger replacement. str
Pre-Shared Key for Tunnel 2. A 8-64 character string with alphanumeric underscore(_) and dot(.). It cannot start with 0.
public_ip Changes to this property will trigger replacement. str
Public IP address. Example: "40.0.0.0".
remote_as_number Changes to this property will trigger replacement. str
AWS side as a number. Integer between 1-4294967294. Example: "12". Required for a dynamic VPN connection.
remote_cidr Changes to this property will trigger replacement. str
Remote CIDRs separated by ",". Example: AWS: "16.0.0.0/16,16.1.0.0/16". Required for a static VPN connection.
route_domain_name Changes to this property will trigger replacement. str
The name of a route domain, to which the vpn will be attached.
tgw_name Changes to this property will trigger replacement. str
This parameter represents the name of an AWS TGW.
vpn_id str
ID of the VPN generated by creation of the connection.
vpn_tunnel_datas Sequence[AviatrixAwsTgwVpnConnVpnTunnelDataArgs]
AWS TGW VPN tunnel data.
connectionName Changes to this property will trigger replacement. String
Unique name of the connection.
connectionType Changes to this property will trigger replacement. String
Connection type. Valid values: 'dynamic', 'static'. 'dynamic' stands for a BGP VPN connection; 'static' stands for a static VPN connection. Default value: 'dynamic'.
enableGlobalAcceleration Changes to this property will trigger replacement. Boolean
Enable Global Acceleration. Type: Boolean. Default: false.
enableLearnedCidrsApproval Boolean
Switch to enable/disable encrypted transit approval for AWS TGW VPN connection. Valid values: true, false. Default value: false.
insideIpCidrTun1 Changes to this property will trigger replacement. String
Inside IP CIDR for Tunnel 1. A /30 CIDR in 169.254.0.0/16.
insideIpCidrTun2 Changes to this property will trigger replacement. String
Inside IP CIDR for Tunnel 2. A /30 CIDR in 169.254.0.0/16.
preSharedKeyTun1 Changes to this property will trigger replacement. String
Pre-Shared Key for Tunnel 1. A 8-64 character string with alphanumeric underscore(_) and dot(.). It cannot start with 0.
preSharedKeyTun2 Changes to this property will trigger replacement. String
Pre-Shared Key for Tunnel 2. A 8-64 character string with alphanumeric underscore(_) and dot(.). It cannot start with 0.
publicIp Changes to this property will trigger replacement. String
Public IP address. Example: "40.0.0.0".
remoteAsNumber Changes to this property will trigger replacement. String
AWS side as a number. Integer between 1-4294967294. Example: "12". Required for a dynamic VPN connection.
remoteCidr Changes to this property will trigger replacement. String
Remote CIDRs separated by ",". Example: AWS: "16.0.0.0/16,16.1.0.0/16". Required for a static VPN connection.
routeDomainName Changes to this property will trigger replacement. String
The name of a route domain, to which the vpn will be attached.
tgwName Changes to this property will trigger replacement. String
This parameter represents the name of an AWS TGW.
vpnId String
ID of the VPN generated by creation of the connection.
vpnTunnelDatas List<Property Map>
AWS TGW VPN tunnel data.

Supporting Types

AviatrixAwsTgwVpnConnVpnTunnelData
, AviatrixAwsTgwVpnConnVpnTunnelDataArgs

Import

aws_tgw_vpn_conn can be imported using the tgw_name and vpn_id, e.g.

 $ pulumi import aviatrix:index/aviatrixAwsTgwVpnConn:AviatrixAwsTgwVpnConn test tgw_name~vpn_id
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
aviatrix astipkovits/pulumi-aviatrix
License
Apache-2.0
Notes
This Pulumi package is based on the aviatrix Terraform Provider.