AWS Classic

Pulumi Official
Package maintained by Pulumi
v5.9.1 published on Tuesday, Jun 21, 2022 by Pulumi

PublicVirtualInterface

Provides a Direct Connect public virtual interface resource.

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
    public MyStack()
    {
        var foo = new Aws.DirectConnect.PublicVirtualInterface("foo", new Aws.DirectConnect.PublicVirtualInterfaceArgs
        {
            AddressFamily = "ipv4",
            AmazonAddress = "175.45.176.2/30",
            BgpAsn = 65352,
            ConnectionId = "dxcon-zzzzzzzz",
            CustomerAddress = "175.45.176.1/30",
            RouteFilterPrefixes = 
            {
                "210.52.109.0/24",
                "175.45.176.0/22",
            },
            Vlan = 4094,
        });
    }

}
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/directconnect"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := directconnect.NewPublicVirtualInterface(ctx, "foo", &directconnect.PublicVirtualInterfaceArgs{
			AddressFamily:   pulumi.String("ipv4"),
			AmazonAddress:   pulumi.String("175.45.176.2/30"),
			BgpAsn:          pulumi.Int(65352),
			ConnectionId:    pulumi.String("dxcon-zzzzzzzz"),
			CustomerAddress: pulumi.String("175.45.176.1/30"),
			RouteFilterPrefixes: pulumi.StringArray{
				pulumi.String("210.52.109.0/24"),
				pulumi.String("175.45.176.0/22"),
			},
			Vlan: pulumi.Int(4094),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

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

    public static void stack(Context ctx) {
        var foo = new PublicVirtualInterface("foo", PublicVirtualInterfaceArgs.builder()        
            .addressFamily("ipv4")
            .amazonAddress("175.45.176.2/30")
            .bgpAsn(65352)
            .connectionId("dxcon-zzzzzzzz")
            .customerAddress("175.45.176.1/30")
            .routeFilterPrefixes(            
                "210.52.109.0/24",
                "175.45.176.0/22")
            .vlan(4094)
            .build());

    }
}
import pulumi
import pulumi_aws as aws

foo = aws.directconnect.PublicVirtualInterface("foo",
    address_family="ipv4",
    amazon_address="175.45.176.2/30",
    bgp_asn=65352,
    connection_id="dxcon-zzzzzzzz",
    customer_address="175.45.176.1/30",
    route_filter_prefixes=[
        "210.52.109.0/24",
        "175.45.176.0/22",
    ],
    vlan=4094)
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const foo = new aws.directconnect.PublicVirtualInterface("foo", {
    addressFamily: "ipv4",
    amazonAddress: "175.45.176.2/30",
    bgpAsn: 65352,
    connectionId: "dxcon-zzzzzzzz",
    customerAddress: "175.45.176.1/30",
    routeFilterPrefixes: [
        "210.52.109.0/24",
        "175.45.176.0/22",
    ],
    vlan: 4094,
});
resources:
  foo:
    type: aws:directconnect:PublicVirtualInterface
    properties:
      addressFamily: ipv4
      amazonAddress: 175.45.176.2/30
      bgpAsn: 65352
      connectionId: dxcon-zzzzzzzz
      customerAddress: 175.45.176.1/30
      routeFilterPrefixes:
        - 210.52.109.0/24
        - 175.45.176.0/22
      vlan: 4094

Create a PublicVirtualInterface Resource

new PublicVirtualInterface(name: string, args: PublicVirtualInterfaceArgs, opts?: CustomResourceOptions);
@overload
def PublicVirtualInterface(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           address_family: Optional[str] = None,
                           amazon_address: Optional[str] = None,
                           bgp_asn: Optional[int] = None,
                           bgp_auth_key: Optional[str] = None,
                           connection_id: Optional[str] = None,
                           customer_address: Optional[str] = None,
                           name: Optional[str] = None,
                           route_filter_prefixes: Optional[Sequence[str]] = None,
                           tags: Optional[Mapping[str, str]] = None,
                           vlan: Optional[int] = None)
@overload
def PublicVirtualInterface(resource_name: str,
                           args: PublicVirtualInterfaceArgs,
                           opts: Optional[ResourceOptions] = None)
func NewPublicVirtualInterface(ctx *Context, name string, args PublicVirtualInterfaceArgs, opts ...ResourceOption) (*PublicVirtualInterface, error)
public PublicVirtualInterface(string name, PublicVirtualInterfaceArgs args, CustomResourceOptions? opts = null)
public PublicVirtualInterface(String name, PublicVirtualInterfaceArgs args)
public PublicVirtualInterface(String name, PublicVirtualInterfaceArgs args, CustomResourceOptions options)
type: aws:directconnect:PublicVirtualInterface
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args PublicVirtualInterfaceArgs
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 PublicVirtualInterfaceArgs
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 PublicVirtualInterfaceArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args PublicVirtualInterfaceArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args PublicVirtualInterfaceArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

PublicVirtualInterface 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 PublicVirtualInterface resource accepts the following input properties:

AddressFamily string

The address family for the BGP peer. ipv4 or ipv6.

BgpAsn int

The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.

ConnectionId string

The ID of the Direct Connect connection (or LAG) on which to create the virtual interface.

RouteFilterPrefixes List<string>

A list of routes to be advertised to the AWS network in this region.

Vlan int

The VLAN ID.

AmazonAddress string

The IPv4 CIDR address to use to send traffic to Amazon. Required for IPv4 BGP peers.

BgpAuthKey string

The authentication key for BGP configuration.

CustomerAddress string

The IPv4 CIDR destination address to which Amazon should send traffic. Required for IPv4 BGP peers.

Name string

The name for the virtual interface.

Tags Dictionary<string, string>

A map of tags to assign to the resource. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

AddressFamily string

The address family for the BGP peer. ipv4 or ipv6.

BgpAsn int

The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.

ConnectionId string

The ID of the Direct Connect connection (or LAG) on which to create the virtual interface.

RouteFilterPrefixes []string

A list of routes to be advertised to the AWS network in this region.

Vlan int

The VLAN ID.

AmazonAddress string

The IPv4 CIDR address to use to send traffic to Amazon. Required for IPv4 BGP peers.

BgpAuthKey string

The authentication key for BGP configuration.

CustomerAddress string

The IPv4 CIDR destination address to which Amazon should send traffic. Required for IPv4 BGP peers.

Name string

The name for the virtual interface.

Tags map[string]string

A map of tags to assign to the resource. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

addressFamily String

The address family for the BGP peer. ipv4 or ipv6.

bgpAsn Integer

The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.

connectionId String

The ID of the Direct Connect connection (or LAG) on which to create the virtual interface.

routeFilterPrefixes List<String>

A list of routes to be advertised to the AWS network in this region.

vlan Integer

The VLAN ID.

amazonAddress String

The IPv4 CIDR address to use to send traffic to Amazon. Required for IPv4 BGP peers.

bgpAuthKey String

The authentication key for BGP configuration.

customerAddress String

The IPv4 CIDR destination address to which Amazon should send traffic. Required for IPv4 BGP peers.

name String

The name for the virtual interface.

tags Map<String,String>

A map of tags to assign to the resource. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

addressFamily string

The address family for the BGP peer. ipv4 or ipv6.

bgpAsn number

The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.

connectionId string

The ID of the Direct Connect connection (or LAG) on which to create the virtual interface.

routeFilterPrefixes string[]

A list of routes to be advertised to the AWS network in this region.

vlan number

The VLAN ID.

amazonAddress string

The IPv4 CIDR address to use to send traffic to Amazon. Required for IPv4 BGP peers.

bgpAuthKey string

The authentication key for BGP configuration.

customerAddress string

The IPv4 CIDR destination address to which Amazon should send traffic. Required for IPv4 BGP peers.

name string

The name for the virtual interface.

tags {[key: string]: string}

A map of tags to assign to the resource. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

address_family str

The address family for the BGP peer. ipv4 or ipv6.

bgp_asn int

The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.

connection_id str

The ID of the Direct Connect connection (or LAG) on which to create the virtual interface.

route_filter_prefixes Sequence[str]

A list of routes to be advertised to the AWS network in this region.

vlan int

The VLAN ID.

amazon_address str

The IPv4 CIDR address to use to send traffic to Amazon. Required for IPv4 BGP peers.

bgp_auth_key str

The authentication key for BGP configuration.

customer_address str

The IPv4 CIDR destination address to which Amazon should send traffic. Required for IPv4 BGP peers.

name str

The name for the virtual interface.

tags Mapping[str, str]

A map of tags to assign to the resource. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

addressFamily String

The address family for the BGP peer. ipv4 or ipv6.

bgpAsn Number

The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.

connectionId String

The ID of the Direct Connect connection (or LAG) on which to create the virtual interface.

routeFilterPrefixes List<String>

A list of routes to be advertised to the AWS network in this region.

vlan Number

The VLAN ID.

amazonAddress String

The IPv4 CIDR address to use to send traffic to Amazon. Required for IPv4 BGP peers.

bgpAuthKey String

The authentication key for BGP configuration.

customerAddress String

The IPv4 CIDR destination address to which Amazon should send traffic. Required for IPv4 BGP peers.

name String

The name for the virtual interface.

tags Map<String>

A map of tags to assign to the resource. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Outputs

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

AmazonSideAsn string
Arn string

The ARN of the virtual interface.

AwsDevice string

The Direct Connect endpoint on which the virtual interface terminates.

Id string

The provider-assigned unique ID for this managed resource.

TagsAll Dictionary<string, string>

A map of tags assigned to the resource, including those inherited from the provider .

AmazonSideAsn string
Arn string

The ARN of the virtual interface.

AwsDevice string

The Direct Connect endpoint on which the virtual interface terminates.

Id string

The provider-assigned unique ID for this managed resource.

TagsAll map[string]string

A map of tags assigned to the resource, including those inherited from the provider .

amazonSideAsn String
arn String

The ARN of the virtual interface.

awsDevice String

The Direct Connect endpoint on which the virtual interface terminates.

id String

The provider-assigned unique ID for this managed resource.

tagsAll Map<String,String>

A map of tags assigned to the resource, including those inherited from the provider .

amazonSideAsn string
arn string

The ARN of the virtual interface.

awsDevice string

The Direct Connect endpoint on which the virtual interface terminates.

id string

The provider-assigned unique ID for this managed resource.

tagsAll {[key: string]: string}

A map of tags assigned to the resource, including those inherited from the provider .

amazon_side_asn str
arn str

The ARN of the virtual interface.

aws_device str

The Direct Connect endpoint on which the virtual interface terminates.

id str

The provider-assigned unique ID for this managed resource.

tags_all Mapping[str, str]

A map of tags assigned to the resource, including those inherited from the provider .

amazonSideAsn String
arn String

The ARN of the virtual interface.

awsDevice String

The Direct Connect endpoint on which the virtual interface terminates.

id String

The provider-assigned unique ID for this managed resource.

tagsAll Map<String>

A map of tags assigned to the resource, including those inherited from the provider .

Look up an Existing PublicVirtualInterface Resource

Get an existing PublicVirtualInterface 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?: PublicVirtualInterfaceState, opts?: CustomResourceOptions): PublicVirtualInterface
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        address_family: Optional[str] = None,
        amazon_address: Optional[str] = None,
        amazon_side_asn: Optional[str] = None,
        arn: Optional[str] = None,
        aws_device: Optional[str] = None,
        bgp_asn: Optional[int] = None,
        bgp_auth_key: Optional[str] = None,
        connection_id: Optional[str] = None,
        customer_address: Optional[str] = None,
        name: Optional[str] = None,
        route_filter_prefixes: Optional[Sequence[str]] = None,
        tags: Optional[Mapping[str, str]] = None,
        tags_all: Optional[Mapping[str, str]] = None,
        vlan: Optional[int] = None) -> PublicVirtualInterface
func GetPublicVirtualInterface(ctx *Context, name string, id IDInput, state *PublicVirtualInterfaceState, opts ...ResourceOption) (*PublicVirtualInterface, error)
public static PublicVirtualInterface Get(string name, Input<string> id, PublicVirtualInterfaceState? state, CustomResourceOptions? opts = null)
public static PublicVirtualInterface get(String name, Output<String> id, PublicVirtualInterfaceState 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:
AddressFamily string

The address family for the BGP peer. ipv4 or ipv6.

AmazonAddress string

The IPv4 CIDR address to use to send traffic to Amazon. Required for IPv4 BGP peers.

AmazonSideAsn string
Arn string

The ARN of the virtual interface.

AwsDevice string

The Direct Connect endpoint on which the virtual interface terminates.

BgpAsn int

The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.

BgpAuthKey string

The authentication key for BGP configuration.

ConnectionId string

The ID of the Direct Connect connection (or LAG) on which to create the virtual interface.

CustomerAddress string

The IPv4 CIDR destination address to which Amazon should send traffic. Required for IPv4 BGP peers.

Name string

The name for the virtual interface.

RouteFilterPrefixes List<string>

A list of routes to be advertised to the AWS network in this region.

Tags Dictionary<string, string>

A map of tags to assign to the resource. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

TagsAll Dictionary<string, string>

A map of tags assigned to the resource, including those inherited from the provider .

Vlan int

The VLAN ID.

AddressFamily string

The address family for the BGP peer. ipv4 or ipv6.

AmazonAddress string

The IPv4 CIDR address to use to send traffic to Amazon. Required for IPv4 BGP peers.

AmazonSideAsn string
Arn string

The ARN of the virtual interface.

AwsDevice string

The Direct Connect endpoint on which the virtual interface terminates.

BgpAsn int

The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.

BgpAuthKey string

The authentication key for BGP configuration.

ConnectionId string

The ID of the Direct Connect connection (or LAG) on which to create the virtual interface.

CustomerAddress string

The IPv4 CIDR destination address to which Amazon should send traffic. Required for IPv4 BGP peers.

Name string

The name for the virtual interface.

RouteFilterPrefixes []string

A list of routes to be advertised to the AWS network in this region.

Tags map[string]string

A map of tags to assign to the resource. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

TagsAll map[string]string

A map of tags assigned to the resource, including those inherited from the provider .

Vlan int

The VLAN ID.

addressFamily String

The address family for the BGP peer. ipv4 or ipv6.

amazonAddress String

The IPv4 CIDR address to use to send traffic to Amazon. Required for IPv4 BGP peers.

amazonSideAsn String
arn String

The ARN of the virtual interface.

awsDevice String

The Direct Connect endpoint on which the virtual interface terminates.

bgpAsn Integer

The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.

bgpAuthKey String

The authentication key for BGP configuration.

connectionId String

The ID of the Direct Connect connection (or LAG) on which to create the virtual interface.

customerAddress String

The IPv4 CIDR destination address to which Amazon should send traffic. Required for IPv4 BGP peers.

name String

The name for the virtual interface.

routeFilterPrefixes List<String>

A list of routes to be advertised to the AWS network in this region.

tags Map<String,String>

A map of tags to assign to the resource. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

tagsAll Map<String,String>

A map of tags assigned to the resource, including those inherited from the provider .

vlan Integer

The VLAN ID.

addressFamily string

The address family for the BGP peer. ipv4 or ipv6.

amazonAddress string

The IPv4 CIDR address to use to send traffic to Amazon. Required for IPv4 BGP peers.

amazonSideAsn string
arn string

The ARN of the virtual interface.

awsDevice string

The Direct Connect endpoint on which the virtual interface terminates.

bgpAsn number

The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.

bgpAuthKey string

The authentication key for BGP configuration.

connectionId string

The ID of the Direct Connect connection (or LAG) on which to create the virtual interface.

customerAddress string

The IPv4 CIDR destination address to which Amazon should send traffic. Required for IPv4 BGP peers.

name string

The name for the virtual interface.

routeFilterPrefixes string[]

A list of routes to be advertised to the AWS network in this region.

tags {[key: string]: string}

A map of tags to assign to the resource. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

tagsAll {[key: string]: string}

A map of tags assigned to the resource, including those inherited from the provider .

vlan number

The VLAN ID.

address_family str

The address family for the BGP peer. ipv4 or ipv6.

amazon_address str

The IPv4 CIDR address to use to send traffic to Amazon. Required for IPv4 BGP peers.

amazon_side_asn str
arn str

The ARN of the virtual interface.

aws_device str

The Direct Connect endpoint on which the virtual interface terminates.

bgp_asn int

The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.

bgp_auth_key str

The authentication key for BGP configuration.

connection_id str

The ID of the Direct Connect connection (or LAG) on which to create the virtual interface.

customer_address str

The IPv4 CIDR destination address to which Amazon should send traffic. Required for IPv4 BGP peers.

name str

The name for the virtual interface.

route_filter_prefixes Sequence[str]

A list of routes to be advertised to the AWS network in this region.

tags Mapping[str, str]

A map of tags to assign to the resource. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

tags_all Mapping[str, str]

A map of tags assigned to the resource, including those inherited from the provider .

vlan int

The VLAN ID.

addressFamily String

The address family for the BGP peer. ipv4 or ipv6.

amazonAddress String

The IPv4 CIDR address to use to send traffic to Amazon. Required for IPv4 BGP peers.

amazonSideAsn String
arn String

The ARN of the virtual interface.

awsDevice String

The Direct Connect endpoint on which the virtual interface terminates.

bgpAsn Number

The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.

bgpAuthKey String

The authentication key for BGP configuration.

connectionId String

The ID of the Direct Connect connection (or LAG) on which to create the virtual interface.

customerAddress String

The IPv4 CIDR destination address to which Amazon should send traffic. Required for IPv4 BGP peers.

name String

The name for the virtual interface.

routeFilterPrefixes List<String>

A list of routes to be advertised to the AWS network in this region.

tags Map<String>

A map of tags to assign to the resource. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

tagsAll Map<String>

A map of tags assigned to the resource, including those inherited from the provider .

vlan Number

The VLAN ID.

Import

Direct Connect public virtual interfaces can be imported using the vif id, e.g.,

 $ pulumi import aws:directconnect/publicVirtualInterface:PublicVirtualInterface test dxvif-33cc44dd

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes

This Pulumi package is based on the aws Terraform Provider.