---
type: resource-type
title: PublicVirtualInterface
description: aws resource type AWS::DirectConnect::PublicVirtualInterface
name: PublicVirtualInterface
lexicon: aws
resource_type: AWS::DirectConnect::PublicVirtualInterface
---
`AWS::DirectConnect::PublicVirtualInterface`, a resource type of the aws lexicon.

## Properties

- `BgpPeers` (`PublicVirtualInterface_BgpPeer[]`, required): The BGP peers configured on this virtual interface.
- `ConnectionId` (`any`, required): The ID or ARN of the connection or LAG.
- `VirtualInterfaceName` (`string`, required): The name of the virtual interface assigned by the customer network. The name has a maximum of 100 characters. The following are valid characters: a-z, 0-9 and a hyphen (-).
- `Vlan` (`number`, required): The ID of the VLAN.
- `AllocatePublicVirtualInterfaceRoleArn` (`string`, optional): The Amazon Resource Name (ARN) of the role to allocate the public virtual interface. Needs directconnect:AllocatePublicVirtualInterface permissions and tag permissions if applicable.
- `RouteFilterPrefixes` (`string[]`, optional): The routes to be advertised to the AWS network in this region.
- `Tags` (`PublicVirtualInterface_Tag[]`, optional): The tags associated with the public virtual interface.
- `VirtualInterfaceArn` (`string`, optional): The ARN of the virtual interface.
- `VirtualInterfaceId` (`string`, optional): The ID of the virtual interface.

## Attributes

- `BgpPeers.*.BgpPeerId`
- `VirtualInterfaceArn`
- `VirtualInterfaceId`
