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/v2/go/aws/directconnect"
"github.com/pulumi/pulumi/sdk/v2/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
})
}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,
});Create a PublicVirtualInterface Resource
new PublicVirtualInterface(name: string, args: PublicVirtualInterfaceArgs, opts?: CustomResourceOptions);def PublicVirtualInterface(resource_name, opts=None, address_family=None, amazon_address=None, bgp_asn=None, bgp_auth_key=None, connection_id=None, customer_address=None, name=None, route_filter_prefixes=None, tags=None, vlan=None, __props__=None);func NewPublicVirtualInterface(ctx *Context, name string, args PublicVirtualInterfaceArgs, opts ...ResourceOption) (*PublicVirtualInterface, error)public PublicVirtualInterface(string name, PublicVirtualInterfaceArgs args, CustomResourceOptions? opts = null)- 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.
- opts ResourceOptions
- A bag of options that control this 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.
PublicVirtualInterface Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The PublicVirtualInterface resource accepts the following input properties:
- Address
Family string The address family for the BGP peer.
ipv4oripv6.- Bgp
Asn int The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.
- Connection
Id string The ID of the Direct Connect connection (or LAG) on which to create the virtual interface.
- Route
Filter List<string>Prefixes A list of routes to be advertised to the AWS network in this region.
- Vlan int
The VLAN ID.
- Amazon
Address string The IPv4 CIDR address to use to send traffic to Amazon. Required for IPv4 BGP peers.
- Bgp
Auth stringKey The authentication key for BGP configuration.
- Customer
Address 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.
- Dictionary<string, string>
A map of tags to assign to the resource.
- Address
Family string The address family for the BGP peer.
ipv4oripv6.- Bgp
Asn int The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.
- Connection
Id string The ID of the Direct Connect connection (or LAG) on which to create the virtual interface.
- Route
Filter []stringPrefixes A list of routes to be advertised to the AWS network in this region.
- Vlan int
The VLAN ID.
- Amazon
Address string The IPv4 CIDR address to use to send traffic to Amazon. Required for IPv4 BGP peers.
- Bgp
Auth stringKey The authentication key for BGP configuration.
- Customer
Address 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.
- map[string]string
A map of tags to assign to the resource.
- address
Family string The address family for the BGP peer.
ipv4oripv6.- bgp
Asn number The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.
- connection
Id string The ID of the Direct Connect connection (or LAG) on which to create the virtual interface.
- route
Filter string[]Prefixes A list of routes to be advertised to the AWS network in this region.
- vlan number
The VLAN ID.
- amazon
Address string The IPv4 CIDR address to use to send traffic to Amazon. Required for IPv4 BGP peers.
- bgp
Auth stringKey The authentication key for BGP configuration.
- customer
Address 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.
- {[key: string]: string}
A map of tags to assign to the resource.
- address_
family str The address family for the BGP peer.
ipv4oripv6.- bgp_
asn float 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_ List[str]prefixes A list of routes to be advertised to the AWS network in this region.
- vlan float
The VLAN ID.
- amazon_
address str The IPv4 CIDR address to use to send traffic to Amazon. Required for IPv4 BGP peers.
- bgp_
auth_ strkey 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.
- Dict[str, str]
A map of tags to assign to the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the PublicVirtualInterface resource produces the following output properties:
- amazon_
side_ strasn - 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.
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): PublicVirtualInterfacestatic get(resource_name, id, opts=None, address_family=None, amazon_address=None, amazon_side_asn=None, arn=None, aws_device=None, bgp_asn=None, bgp_auth_key=None, connection_id=None, customer_address=None, name=None, route_filter_prefixes=None, tags=None, vlan=None, __props__=None);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)- 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.
The following state arguments are supported:
- Address
Family string The address family for the BGP peer.
ipv4oripv6.- Amazon
Address string The IPv4 CIDR address to use to send traffic to Amazon. Required for IPv4 BGP peers.
- Amazon
Side stringAsn - Arn string
The ARN of the virtual interface.
- Aws
Device string 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 stringKey The authentication key for BGP configuration.
- Connection
Id string The ID of the Direct Connect connection (or LAG) on which to create the virtual interface.
- Customer
Address 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.
- Route
Filter List<string>Prefixes A list of routes to be advertised to the AWS network in this region.
- Dictionary<string, string>
A map of tags to assign to the resource.
- Vlan int
The VLAN ID.
- Address
Family string The address family for the BGP peer.
ipv4oripv6.- Amazon
Address string The IPv4 CIDR address to use to send traffic to Amazon. Required for IPv4 BGP peers.
- Amazon
Side stringAsn - Arn string
The ARN of the virtual interface.
- Aws
Device string 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 stringKey The authentication key for BGP configuration.
- Connection
Id string The ID of the Direct Connect connection (or LAG) on which to create the virtual interface.
- Customer
Address 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.
- Route
Filter []stringPrefixes A list of routes to be advertised to the AWS network in this region.
- map[string]string
A map of tags to assign to the resource.
- Vlan int
The VLAN ID.
- address
Family string The address family for the BGP peer.
ipv4oripv6.- amazon
Address string The IPv4 CIDR address to use to send traffic to Amazon. Required for IPv4 BGP peers.
- amazon
Side stringAsn - arn string
The ARN of the virtual interface.
- aws
Device string The Direct Connect endpoint on which the virtual interface terminates.
- bgp
Asn number The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.
- bgp
Auth stringKey The authentication key for BGP configuration.
- connection
Id string The ID of the Direct Connect connection (or LAG) on which to create the virtual interface.
- customer
Address 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.
- route
Filter string[]Prefixes A list of routes to be advertised to the AWS network in this region.
- {[key: string]: string}
A map of tags to assign to the resource.
- vlan number
The VLAN ID.
- address_
family str The address family for the BGP peer.
ipv4oripv6.- amazon_
address str The IPv4 CIDR address to use to send traffic to Amazon. Required for IPv4 BGP peers.
- amazon_
side_ strasn - arn str
The ARN of the virtual interface.
- aws_
device str The Direct Connect endpoint on which the virtual interface terminates.
- bgp_
asn float The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.
- bgp_
auth_ strkey 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_ List[str]prefixes A list of routes to be advertised to the AWS network in this region.
- Dict[str, str]
A map of tags to assign to the resource.
- vlan float
The VLAN ID.
Package Details
- Repository
- https://github.com/pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.