Skip to main content

virtual_interfaces

Creates, updates, deletes, gets or lists a virtual_interfaces resource.

Overview

Namevirtual_interfaces
TypeResource
Idaws.directconnect.virtual_interfaces

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
next_tokenstringThe token to use to retrieve the next page of results. This value is null when there are no more results to return.
virtual_interfacesarrayThe virtual interfaces

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_virtual_interfacesselectregionDisplays all virtual interfaces for an Amazon Web Services account. Virtual interfaces deleted fewer than 15 minutes before you make the request are also returned. If you specify a connection ID, only the virtual interfaces associated with the connection are returned. If you specify a virtual interface ID, then only a single virtual interface is returned. A virtual interface (VLAN) transmits the traffic between the Direct Connect location and the customer network. If you're using an asn, the response includes the ASN value in both the asn and asnLong fields. If you're using asnLong, the response returns a value of 0 (zero) for the asn attribute because it exceeds the highest ASN value of 2,147,483,647 that it can support
create_private_virtual_interfaceinsertregion, connectionId, newPrivateVirtualInterfaceCreates a private virtual interface. A virtual interface is the VLAN that transports Direct Connect traffic. A private virtual interface can be connected to either a Direct Connect gateway or a Virtual Private Gateway (VGW). Connecting the private virtual interface to a Direct Connect gateway enables the possibility for connecting to multiple VPCs, including VPCs in different Amazon Web Services Regions. Connecting the private virtual interface to a VGW only provides access to a single VPC within the same Region. Setting the MTU of a virtual interface to 8500 (jumbo frames) can cause an update to the underlying physical connection if it wasn't updated to support jumbo frames. Updating the connection disrupts network connectivity for all virtual interfaces associated with the connection for up to 30 seconds. To check whether your connection supports jumbo frames, call DescribeConnections. To check whether your virtual interface supports jumbo frames, call DescribeVirtualInterfaces.
create_public_virtual_interfaceinsertregion, connectionId, newPublicVirtualInterfaceCreates a public virtual interface. A virtual interface is the VLAN that transports Direct Connect traffic. A public virtual interface supports sending traffic to public services of Amazon Web Services such as Amazon S3. When creating an IPv6 public virtual interface (addressFamily is ipv6), leave the customer and amazon address fields blank to use auto-assigned IPv6 space. Custom IPv6 addresses are not supported.
create_transit_virtual_interfaceinsertregion, connectionId, newTransitVirtualInterfaceCreates a transit virtual interface. A transit virtual interface should be used to access one or more transit gateways associated with Direct Connect gateways. A transit virtual interface enables the connection of multiple VPCs attached to a transit gateway to a Direct Connect gateway. If you associate your transit gateway with one or more Direct Connect gateways, the Autonomous System Number (ASN) used by the transit gateway and the Direct Connect gateway must be different. For example, if you use the default ASN 64512 for both your the transit gateway and Direct Connect gateway, the association request fails. A jumbo MTU value must be either 1500 or 8500. No other values will be accepted. Setting the MTU of a virtual interface to 8500 (jumbo frames) can cause an update to the underlying physical connection if it wasn't updated to support jumbo frames. Updating the connection disrupts network connectivity for all virtual interfaces associated with the connection for up to 30 seconds. To check whether your connection supports jumbo frames, call DescribeConnections. To check whether your virtual interface supports jumbo frames, call DescribeVirtualInterfaces.
allocate_private_virtual_interfaceupdateregion, connectionId, ownerAccount, newPrivateVirtualInterfaceAllocationProvisions a private virtual interface to be owned by the specified Amazon Web Services account. Virtual interfaces created using this action must be confirmed by the owner using ConfirmPrivateVirtualInterface. Until then, the virtual interface is in the Confirming state and is not available to handle traffic.
allocate_public_virtual_interfaceupdateregion, connectionId, ownerAccount, newPublicVirtualInterfaceAllocationProvisions a public virtual interface to be owned by the specified Amazon Web Services account. The owner of a connection calls this function to provision a public virtual interface to be owned by the specified Amazon Web Services account. Virtual interfaces created using this function must be confirmed by the owner using ConfirmPublicVirtualInterface. Until this step has been completed, the virtual interface is in the confirming state and is not available to handle traffic. When creating an IPv6 public virtual interface, omit the Amazon address and customer address. IPv6 addresses are automatically assigned from the Amazon pool of IPv6 addresses; you cannot specify custom IPv6 addresses.
allocate_transit_virtual_interfaceupdateregion, connectionId, ownerAccount, newTransitVirtualInterfaceAllocationProvisions a transit virtual interface to be owned by the specified Amazon Web Services account. Use this type of interface to connect a transit gateway to your Direct Connect gateway. The owner of a connection provisions a transit virtual interface to be owned by the specified Amazon Web Services account. After you create a transit virtual interface, it must be confirmed by the owner using ConfirmTransitVirtualInterface. Until this step has been completed, the transit virtual interface is in the requested state and is not available to handle traffic.
associate_virtual_interfaceupdateregion, virtualInterfaceId, connectionIdAssociates a virtual interface with a specified link aggregation group (LAG) or connection. Connectivity to Amazon Web Services is temporarily interrupted as the virtual interface is being migrated. If the target connection or LAG has an associated virtual interface with a conflicting VLAN number or a conflicting IP address, the operation fails. Virtual interfaces associated with a hosted connection cannot be associated with a LAG; hosted connections must be migrated along with their virtual interfaces using AssociateHostedConnection. To reassociate a virtual interface to a new connection or LAG, the requester must own either the virtual interface itself or the connection to which the virtual interface is currently associated. Additionally, the requester must own the connection or LAG for the association.
update_virtual_interface_attributesupdateregion, virtualInterfaceIdUpdates the specified attributes of the specified virtual private interface. Setting the MTU of a virtual interface to 8500 (jumbo frames) can cause an update to the underlying physical connection if it wasn't updated to support jumbo frames. Updating the connection disrupts network connectivity for all virtual interfaces associated with the connection for up to 30 seconds. To check whether your connection supports jumbo frames, call DescribeConnections. To check whether your virtual interface supports jumbo frames, call DescribeVirtualInterfaces.
delete_virtual_interfacedeleteregionDeletes a virtual interface.
confirm_private_virtual_interfaceexecregion, virtualInterfaceIdAccepts ownership of a private virtual interface created by another Amazon Web Services account. After the virtual interface owner makes this call, the virtual interface is created and attached to the specified virtual private gateway or Direct Connect gateway, and is made available to handle traffic.
confirm_public_virtual_interfaceexecregion, virtualInterfaceIdAccepts ownership of a public virtual interface created by another Amazon Web Services account. After the virtual interface owner makes this call, the specified virtual interface is created and made available to handle traffic.
start_bgp_failover_testexecregion, virtualInterfaceIdStarts the virtual interface failover test that verifies your configuration meets your resiliency requirements by placing the BGP peering session in the DOWN state. You can then send traffic to verify that there are no outages. You can run the test on public, private, transit, and hosted virtual interfaces. You can use ListVirtualInterfaceTestHistory to view the virtual interface test history. If you need to stop the test before the test interval completes, use StopBgpFailoverTest.
stop_bgp_failover_testexecregion, virtualInterfaceIdStops the virtual interface failover test.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Displays all virtual interfaces for an Amazon Web Services account. Virtual interfaces deleted fewer than 15 minutes before you make the request are also returned. If you specify a connection ID, only the virtual interfaces associated with the connection are returned. If you specify a virtual interface ID, then only a single virtual interface is returned. A virtual interface (VLAN) transmits the traffic between the Direct Connect location and the customer network. If you're using an asn, the response includes the ASN value in both the asn and asnLong fields. If you're using asnLong, the response returns a value of 0 (zero) for the asn attribute because it exceeds the highest ASN value of 2,147,483,647 that it can support

SELECT
next_token,
virtual_interfaces
FROM aws.directconnect.virtual_interfaces
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates a private virtual interface. A virtual interface is the VLAN that transports Direct Connect traffic. A private virtual interface can be connected to either a Direct Connect gateway or a Virtual Private Gateway (VGW). Connecting the private virtual interface to a Direct Connect gateway enables the possibility for connecting to multiple VPCs, including VPCs in different Amazon Web Services Regions. Connecting the private virtual interface to a VGW only provides access to a single VPC within the same Region. Setting the MTU of a virtual interface to 8500 (jumbo frames) can cause an update to the underlying physical connection if it wasn't updated to support jumbo frames. Updating the connection disrupts network connectivity for all virtual interfaces associated with the connection for up to 30 seconds. To check whether your connection supports jumbo frames, call DescribeConnections. To check whether your virtual interface supports jumbo frames, call DescribeVirtualInterfaces.

INSERT INTO aws.directconnect.virtual_interfaces (
connectionId,
newPrivateVirtualInterface,
region
)
SELECT
'{{ connectionId }}' /* required */,
'{{ newPrivateVirtualInterface }}' /* required */,
'{{ region }}'
RETURNING
address_family,
amazon_address,
amazon_side_asn,
asn,
asn_long,
auth_key,
aws_device_v2,
aws_logical_device_id,
bgp_peers,
connection_id,
customer_address,
customer_router_config,
direct_connect_gateway_id,
jumbo_frame_capable,
location,
mtu,
owner_account,
rate_limit,
region,
route_filter_prefixes,
site_link_enabled,
tags,
virtual_gateway_id,
virtual_interface_id,
virtual_interface_name,
virtual_interface_state,
virtual_interface_type,
vlan
;

UPDATE examples

Provisions a private virtual interface to be owned by the specified Amazon Web Services account. Virtual interfaces created using this action must be confirmed by the owner using ConfirmPrivateVirtualInterface. Until then, the virtual interface is in the Confirming state and is not available to handle traffic.

UPDATE aws.directconnect.virtual_interfaces
SET
connectionId = '{{ connectionId }}',
ownerAccount = '{{ ownerAccount }}',
newPrivateVirtualInterfaceAllocation = '{{ newPrivateVirtualInterfaceAllocation }}'
WHERE
region = '{{ region }}' --required
AND connectionId = '{{ connectionId }}' --required
AND ownerAccount = '{{ ownerAccount }}' --required
AND newPrivateVirtualInterfaceAllocation = '{{ newPrivateVirtualInterfaceAllocation }}' --required
RETURNING
address_family,
amazon_address,
amazon_side_asn,
asn,
asn_long,
auth_key,
aws_device_v2,
aws_logical_device_id,
bgp_peers,
connection_id,
customer_address,
customer_router_config,
direct_connect_gateway_id,
jumbo_frame_capable,
location,
mtu,
owner_account,
rate_limit,
region,
route_filter_prefixes,
site_link_enabled,
tags,
virtual_gateway_id,
virtual_interface_id,
virtual_interface_name,
virtual_interface_state,
virtual_interface_type,
vlan;

DELETE examples

Deletes a virtual interface.

DELETE FROM aws.directconnect.virtual_interfaces
WHERE region = '{{ region }}' --required
;

Lifecycle Methods

Accepts ownership of a private virtual interface created by another Amazon Web Services account. After the virtual interface owner makes this call, the virtual interface is created and attached to the specified virtual private gateway or Direct Connect gateway, and is made available to handle traffic.

EXEC aws.directconnect.virtual_interfaces.confirm_private_virtual_interface
@region='{{ region }}' --required
@@json=
'{
"virtualInterfaceId": "{{ virtualInterfaceId }}",
"virtualGatewayId": "{{ virtualGatewayId }}",
"directConnectGatewayId": "{{ directConnectGatewayId }}"
}'
;