aviatrix.AviatrixCloudnTransitGatewayAttachment

The aviatrix_cloudn_transit_gateway_attachment resource allows the creation and management of CloudN Transit Gateway Attachments. This resource is available as of provider version R2.19+.

Example Usage

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

return await Deployment.RunAsync(() => 
{
    // Create a CloudN Transit Gateway Attachment
    var test = new Aviatrix.AviatrixCloudnTransitGatewayAttachment("test", new()
    {
        DeviceName = aviatrix_device_registration.Test_device.Name,
        TransitGatewayName = aviatrix_transit_gateway.Aws_transit.Gw_name,
        ConnectionName = "cloudn-transit-attachment-test",
        TransitGatewayBgpAsn = "65000",
        CloudnBgpAsn = "65046",
        CloudnLanInterfaceNeighborIp = "10.210.38.100",
        CloudnLanInterfaceNeighborBgpAsn = "65219",
        EnableOverPrivateNetwork = false,
    });

});
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.NewAviatrixCloudnTransitGatewayAttachment(ctx, "test", &aviatrix.AviatrixCloudnTransitGatewayAttachmentArgs{
			DeviceName:                       pulumi.Any(aviatrix_device_registration.Test_device.Name),
			TransitGatewayName:               pulumi.Any(aviatrix_transit_gateway.Aws_transit.Gw_name),
			ConnectionName:                   pulumi.String("cloudn-transit-attachment-test"),
			TransitGatewayBgpAsn:             pulumi.String("65000"),
			CloudnBgpAsn:                     pulumi.String("65046"),
			CloudnLanInterfaceNeighborIp:     pulumi.String("10.210.38.100"),
			CloudnLanInterfaceNeighborBgpAsn: pulumi.String("65219"),
			EnableOverPrivateNetwork:         pulumi.Bool(false),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aviatrix.AviatrixCloudnTransitGatewayAttachment;
import com.pulumi.aviatrix.AviatrixCloudnTransitGatewayAttachmentArgs;
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 test = new AviatrixCloudnTransitGatewayAttachment("test", AviatrixCloudnTransitGatewayAttachmentArgs.builder()        
            .deviceName(aviatrix_device_registration.test_device().name())
            .transitGatewayName(aviatrix_transit_gateway.aws_transit().gw_name())
            .connectionName("cloudn-transit-attachment-test")
            .transitGatewayBgpAsn("65000")
            .cloudnBgpAsn("65046")
            .cloudnLanInterfaceNeighborIp("10.210.38.100")
            .cloudnLanInterfaceNeighborBgpAsn("65219")
            .enableOverPrivateNetwork(false)
            .build());

    }
}
import pulumi
import pulumi_aviatrix as aviatrix

# Create a CloudN Transit Gateway Attachment
test = aviatrix.AviatrixCloudnTransitGatewayAttachment("test",
    device_name=aviatrix_device_registration["test_device"]["name"],
    transit_gateway_name=aviatrix_transit_gateway["aws_transit"]["gw_name"],
    connection_name="cloudn-transit-attachment-test",
    transit_gateway_bgp_asn="65000",
    cloudn_bgp_asn="65046",
    cloudn_lan_interface_neighbor_ip="10.210.38.100",
    cloudn_lan_interface_neighbor_bgp_asn="65219",
    enable_over_private_network=False)
import * as pulumi from "@pulumi/pulumi";
import * as aviatrix from "@astipkovits/aviatrix";

// Create a CloudN Transit Gateway Attachment
const test = new aviatrix.AviatrixCloudnTransitGatewayAttachment("test", {
    deviceName: aviatrix_device_registration.test_device.name,
    transitGatewayName: aviatrix_transit_gateway.aws_transit.gw_name,
    connectionName: "cloudn-transit-attachment-test",
    transitGatewayBgpAsn: "65000",
    cloudnBgpAsn: "65046",
    cloudnLanInterfaceNeighborIp: "10.210.38.100",
    cloudnLanInterfaceNeighborBgpAsn: "65219",
    enableOverPrivateNetwork: false,
});
resources:
  # Create a CloudN Transit Gateway Attachment
  test:
    type: aviatrix:AviatrixCloudnTransitGatewayAttachment
    properties:
      deviceName: ${aviatrix_device_registration.test_device.name}
      transitGatewayName: ${aviatrix_transit_gateway.aws_transit.gw_name}
      connectionName: cloudn-transit-attachment-test
      transitGatewayBgpAsn: '65000'
      cloudnBgpAsn: '65046'
      cloudnLanInterfaceNeighborIp: 10.210.38.100
      cloudnLanInterfaceNeighborBgpAsn: '65219'
      enableOverPrivateNetwork: false

Create AviatrixCloudnTransitGatewayAttachment Resource

new AviatrixCloudnTransitGatewayAttachment(name: string, args: AviatrixCloudnTransitGatewayAttachmentArgs, opts?: CustomResourceOptions);
@overload
def AviatrixCloudnTransitGatewayAttachment(resource_name: str,
                                           opts: Optional[ResourceOptions] = None,
                                           cloudn_bgp_asn: Optional[str] = None,
                                           cloudn_lan_interface_neighbor_bgp_asn: Optional[str] = None,
                                           cloudn_lan_interface_neighbor_ip: Optional[str] = None,
                                           connection_name: Optional[str] = None,
                                           device_name: Optional[str] = None,
                                           enable_jumbo_frame: Optional[bool] = None,
                                           enable_over_private_network: Optional[bool] = None,
                                           prepend_as_paths: Optional[Sequence[str]] = None,
                                           transit_gateway_bgp_asn: Optional[str] = None,
                                           transit_gateway_name: Optional[str] = None)
@overload
def AviatrixCloudnTransitGatewayAttachment(resource_name: str,
                                           args: AviatrixCloudnTransitGatewayAttachmentArgs,
                                           opts: Optional[ResourceOptions] = None)
func NewAviatrixCloudnTransitGatewayAttachment(ctx *Context, name string, args AviatrixCloudnTransitGatewayAttachmentArgs, opts ...ResourceOption) (*AviatrixCloudnTransitGatewayAttachment, error)
public AviatrixCloudnTransitGatewayAttachment(string name, AviatrixCloudnTransitGatewayAttachmentArgs args, CustomResourceOptions? opts = null)
public AviatrixCloudnTransitGatewayAttachment(String name, AviatrixCloudnTransitGatewayAttachmentArgs args)
public AviatrixCloudnTransitGatewayAttachment(String name, AviatrixCloudnTransitGatewayAttachmentArgs args, CustomResourceOptions options)
type: aviatrix:AviatrixCloudnTransitGatewayAttachment
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

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

AviatrixCloudnTransitGatewayAttachment Resource Properties

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

Inputs

The AviatrixCloudnTransitGatewayAttachment resource accepts the following input properties:

CloudnBgpAsn string

CloudN BGP AS Number. Type: String.

CloudnLanInterfaceNeighborBgpAsn string

CloudN LAN Interface Neighbor's AS Number. Type: String.

CloudnLanInterfaceNeighborIp string

CloudN LAN Interface Neighbor's IP Address. Type: String.

ConnectionName string

Connection Name. Type: String.

DeviceName string

CloudN device name. Type: String.

TransitGatewayBgpAsn string

Transit Gateway BGP AS Number. Type: String.

TransitGatewayName string

Transit Gateway Name. Type: String.

EnableJumboFrame bool

Enable Jumbo Frame support for the connection. Type: Boolean. Default: false.

EnableOverPrivateNetwork bool

Enable connection over private network. Type: Boolean. Default: true.

PrependAsPaths List<string>

Connection AS Path Prepend customized by specifying AS PATH for a BGP connection. Requires transit_gateway_bgp_asn to be set. Type: List. Available as of provider version R2.21.0+.

CloudnBgpAsn string

CloudN BGP AS Number. Type: String.

CloudnLanInterfaceNeighborBgpAsn string

CloudN LAN Interface Neighbor's AS Number. Type: String.

CloudnLanInterfaceNeighborIp string

CloudN LAN Interface Neighbor's IP Address. Type: String.

ConnectionName string

Connection Name. Type: String.

DeviceName string

CloudN device name. Type: String.

TransitGatewayBgpAsn string

Transit Gateway BGP AS Number. Type: String.

TransitGatewayName string

Transit Gateway Name. Type: String.

EnableJumboFrame bool

Enable Jumbo Frame support for the connection. Type: Boolean. Default: false.

EnableOverPrivateNetwork bool

Enable connection over private network. Type: Boolean. Default: true.

PrependAsPaths []string

Connection AS Path Prepend customized by specifying AS PATH for a BGP connection. Requires transit_gateway_bgp_asn to be set. Type: List. Available as of provider version R2.21.0+.

cloudnBgpAsn String

CloudN BGP AS Number. Type: String.

cloudnLanInterfaceNeighborBgpAsn String

CloudN LAN Interface Neighbor's AS Number. Type: String.

cloudnLanInterfaceNeighborIp String

CloudN LAN Interface Neighbor's IP Address. Type: String.

connectionName String

Connection Name. Type: String.

deviceName String

CloudN device name. Type: String.

transitGatewayBgpAsn String

Transit Gateway BGP AS Number. Type: String.

transitGatewayName String

Transit Gateway Name. Type: String.

enableJumboFrame Boolean

Enable Jumbo Frame support for the connection. Type: Boolean. Default: false.

enableOverPrivateNetwork Boolean

Enable connection over private network. Type: Boolean. Default: true.

prependAsPaths List<String>

Connection AS Path Prepend customized by specifying AS PATH for a BGP connection. Requires transit_gateway_bgp_asn to be set. Type: List. Available as of provider version R2.21.0+.

cloudnBgpAsn string

CloudN BGP AS Number. Type: String.

cloudnLanInterfaceNeighborBgpAsn string

CloudN LAN Interface Neighbor's AS Number. Type: String.

cloudnLanInterfaceNeighborIp string

CloudN LAN Interface Neighbor's IP Address. Type: String.

connectionName string

Connection Name. Type: String.

deviceName string

CloudN device name. Type: String.

transitGatewayBgpAsn string

Transit Gateway BGP AS Number. Type: String.

transitGatewayName string

Transit Gateway Name. Type: String.

enableJumboFrame boolean

Enable Jumbo Frame support for the connection. Type: Boolean. Default: false.

enableOverPrivateNetwork boolean

Enable connection over private network. Type: Boolean. Default: true.

prependAsPaths string[]

Connection AS Path Prepend customized by specifying AS PATH for a BGP connection. Requires transit_gateway_bgp_asn to be set. Type: List. Available as of provider version R2.21.0+.

cloudn_bgp_asn str

CloudN BGP AS Number. Type: String.

cloudn_lan_interface_neighbor_bgp_asn str

CloudN LAN Interface Neighbor's AS Number. Type: String.

cloudn_lan_interface_neighbor_ip str

CloudN LAN Interface Neighbor's IP Address. Type: String.

connection_name str

Connection Name. Type: String.

device_name str

CloudN device name. Type: String.

transit_gateway_bgp_asn str

Transit Gateway BGP AS Number. Type: String.

transit_gateway_name str

Transit Gateway Name. Type: String.

enable_jumbo_frame bool

Enable Jumbo Frame support for the connection. Type: Boolean. Default: false.

enable_over_private_network bool

Enable connection over private network. Type: Boolean. Default: true.

prepend_as_paths Sequence[str]

Connection AS Path Prepend customized by specifying AS PATH for a BGP connection. Requires transit_gateway_bgp_asn to be set. Type: List. Available as of provider version R2.21.0+.

cloudnBgpAsn String

CloudN BGP AS Number. Type: String.

cloudnLanInterfaceNeighborBgpAsn String

CloudN LAN Interface Neighbor's AS Number. Type: String.

cloudnLanInterfaceNeighborIp String

CloudN LAN Interface Neighbor's IP Address. Type: String.

connectionName String

Connection Name. Type: String.

deviceName String

CloudN device name. Type: String.

transitGatewayBgpAsn String

Transit Gateway BGP AS Number. Type: String.

transitGatewayName String

Transit Gateway Name. Type: String.

enableJumboFrame Boolean

Enable Jumbo Frame support for the connection. Type: Boolean. Default: false.

enableOverPrivateNetwork Boolean

Enable connection over private network. Type: Boolean. Default: true.

prependAsPaths List<String>

Connection AS Path Prepend customized by specifying AS PATH for a BGP connection. Requires transit_gateway_bgp_asn to be set. Type: List. Available as of provider version R2.21.0+.

Outputs

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

Id string

The provider-assigned unique ID for this managed resource.

Id string

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

id string

The provider-assigned unique ID for this managed resource.

id str

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

Look up Existing AviatrixCloudnTransitGatewayAttachment Resource

Get an existing AviatrixCloudnTransitGatewayAttachment 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?: AviatrixCloudnTransitGatewayAttachmentState, opts?: CustomResourceOptions): AviatrixCloudnTransitGatewayAttachment
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        cloudn_bgp_asn: Optional[str] = None,
        cloudn_lan_interface_neighbor_bgp_asn: Optional[str] = None,
        cloudn_lan_interface_neighbor_ip: Optional[str] = None,
        connection_name: Optional[str] = None,
        device_name: Optional[str] = None,
        enable_jumbo_frame: Optional[bool] = None,
        enable_over_private_network: Optional[bool] = None,
        prepend_as_paths: Optional[Sequence[str]] = None,
        transit_gateway_bgp_asn: Optional[str] = None,
        transit_gateway_name: Optional[str] = None) -> AviatrixCloudnTransitGatewayAttachment
func GetAviatrixCloudnTransitGatewayAttachment(ctx *Context, name string, id IDInput, state *AviatrixCloudnTransitGatewayAttachmentState, opts ...ResourceOption) (*AviatrixCloudnTransitGatewayAttachment, error)
public static AviatrixCloudnTransitGatewayAttachment Get(string name, Input<string> id, AviatrixCloudnTransitGatewayAttachmentState? state, CustomResourceOptions? opts = null)
public static AviatrixCloudnTransitGatewayAttachment get(String name, Output<String> id, AviatrixCloudnTransitGatewayAttachmentState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
name
The unique name of the resulting resource.
id
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
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
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
The unique name of the resulting resource.
id
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
The unique name of the resulting resource.
id
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:
CloudnBgpAsn string

CloudN BGP AS Number. Type: String.

CloudnLanInterfaceNeighborBgpAsn string

CloudN LAN Interface Neighbor's AS Number. Type: String.

CloudnLanInterfaceNeighborIp string

CloudN LAN Interface Neighbor's IP Address. Type: String.

ConnectionName string

Connection Name. Type: String.

DeviceName string

CloudN device name. Type: String.

EnableJumboFrame bool

Enable Jumbo Frame support for the connection. Type: Boolean. Default: false.

EnableOverPrivateNetwork bool

Enable connection over private network. Type: Boolean. Default: true.

PrependAsPaths List<string>

Connection AS Path Prepend customized by specifying AS PATH for a BGP connection. Requires transit_gateway_bgp_asn to be set. Type: List. Available as of provider version R2.21.0+.

TransitGatewayBgpAsn string

Transit Gateway BGP AS Number. Type: String.

TransitGatewayName string

Transit Gateway Name. Type: String.

CloudnBgpAsn string

CloudN BGP AS Number. Type: String.

CloudnLanInterfaceNeighborBgpAsn string

CloudN LAN Interface Neighbor's AS Number. Type: String.

CloudnLanInterfaceNeighborIp string

CloudN LAN Interface Neighbor's IP Address. Type: String.

ConnectionName string

Connection Name. Type: String.

DeviceName string

CloudN device name. Type: String.

EnableJumboFrame bool

Enable Jumbo Frame support for the connection. Type: Boolean. Default: false.

EnableOverPrivateNetwork bool

Enable connection over private network. Type: Boolean. Default: true.

PrependAsPaths []string

Connection AS Path Prepend customized by specifying AS PATH for a BGP connection. Requires transit_gateway_bgp_asn to be set. Type: List. Available as of provider version R2.21.0+.

TransitGatewayBgpAsn string

Transit Gateway BGP AS Number. Type: String.

TransitGatewayName string

Transit Gateway Name. Type: String.

cloudnBgpAsn String

CloudN BGP AS Number. Type: String.

cloudnLanInterfaceNeighborBgpAsn String

CloudN LAN Interface Neighbor's AS Number. Type: String.

cloudnLanInterfaceNeighborIp String

CloudN LAN Interface Neighbor's IP Address. Type: String.

connectionName String

Connection Name. Type: String.

deviceName String

CloudN device name. Type: String.

enableJumboFrame Boolean

Enable Jumbo Frame support for the connection. Type: Boolean. Default: false.

enableOverPrivateNetwork Boolean

Enable connection over private network. Type: Boolean. Default: true.

prependAsPaths List<String>

Connection AS Path Prepend customized by specifying AS PATH for a BGP connection. Requires transit_gateway_bgp_asn to be set. Type: List. Available as of provider version R2.21.0+.

transitGatewayBgpAsn String

Transit Gateway BGP AS Number. Type: String.

transitGatewayName String

Transit Gateway Name. Type: String.

cloudnBgpAsn string

CloudN BGP AS Number. Type: String.

cloudnLanInterfaceNeighborBgpAsn string

CloudN LAN Interface Neighbor's AS Number. Type: String.

cloudnLanInterfaceNeighborIp string

CloudN LAN Interface Neighbor's IP Address. Type: String.

connectionName string

Connection Name. Type: String.

deviceName string

CloudN device name. Type: String.

enableJumboFrame boolean

Enable Jumbo Frame support for the connection. Type: Boolean. Default: false.

enableOverPrivateNetwork boolean

Enable connection over private network. Type: Boolean. Default: true.

prependAsPaths string[]

Connection AS Path Prepend customized by specifying AS PATH for a BGP connection. Requires transit_gateway_bgp_asn to be set. Type: List. Available as of provider version R2.21.0+.

transitGatewayBgpAsn string

Transit Gateway BGP AS Number. Type: String.

transitGatewayName string

Transit Gateway Name. Type: String.

cloudn_bgp_asn str

CloudN BGP AS Number. Type: String.

cloudn_lan_interface_neighbor_bgp_asn str

CloudN LAN Interface Neighbor's AS Number. Type: String.

cloudn_lan_interface_neighbor_ip str

CloudN LAN Interface Neighbor's IP Address. Type: String.

connection_name str

Connection Name. Type: String.

device_name str

CloudN device name. Type: String.

enable_jumbo_frame bool

Enable Jumbo Frame support for the connection. Type: Boolean. Default: false.

enable_over_private_network bool

Enable connection over private network. Type: Boolean. Default: true.

prepend_as_paths Sequence[str]

Connection AS Path Prepend customized by specifying AS PATH for a BGP connection. Requires transit_gateway_bgp_asn to be set. Type: List. Available as of provider version R2.21.0+.

transit_gateway_bgp_asn str

Transit Gateway BGP AS Number. Type: String.

transit_gateway_name str

Transit Gateway Name. Type: String.

cloudnBgpAsn String

CloudN BGP AS Number. Type: String.

cloudnLanInterfaceNeighborBgpAsn String

CloudN LAN Interface Neighbor's AS Number. Type: String.

cloudnLanInterfaceNeighborIp String

CloudN LAN Interface Neighbor's IP Address. Type: String.

connectionName String

Connection Name. Type: String.

deviceName String

CloudN device name. Type: String.

enableJumboFrame Boolean

Enable Jumbo Frame support for the connection. Type: Boolean. Default: false.

enableOverPrivateNetwork Boolean

Enable connection over private network. Type: Boolean. Default: true.

prependAsPaths List<String>

Connection AS Path Prepend customized by specifying AS PATH for a BGP connection. Requires transit_gateway_bgp_asn to be set. Type: List. Available as of provider version R2.21.0+.

transitGatewayBgpAsn String

Transit Gateway BGP AS Number. Type: String.

transitGatewayName String

Transit Gateway Name. Type: String.

Import

aviatrix_cloudn_transit_gateway_attachment can be imported using the connection_name, e.g.

 $ pulumi import aviatrix:index/aviatrixCloudnTransitGatewayAttachment:AviatrixCloudnTransitGatewayAttachment test connection_name

Package Details

Repository
aviatrix astipkovits/pulumi-aviatrix
License
Apache-2.0
Notes

This Pulumi package is based on the aviatrix Terraform Provider.