Skip to main content

direct_connect_gateway_attachments

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

Overview

Namedirect_connect_gateway_attachments
TypeResource
Idaws.directconnect.direct_connect_gateway_attachments

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
attachment_statestringThe state of the attachment. The following are the possible values: attaching: The initial state after a virtual interface is created using the Direct Connect gateway. attached: The Direct Connect gateway and virtual interface are attached and ready to pass traffic. detaching: The initial state after calling DeleteVirtualInterface. detached: The virtual interface is detached from the Direct Connect gateway. Traffic flow between the Direct Connect gateway and virtual interface is stopped. (attaching, attached, detaching, detached)
attachment_typestringThe type of attachment. (TransitVirtualInterface, PrivateVirtualInterface)
direct_connect_gateway_idstringThe ID of the Direct Connect gateway.
state_change_errorstringThe error message if the state of an object failed to advance.
virtual_interface_idstringThe ID of the virtual interface.
virtual_interface_owner_accountstringThe ID of the Amazon Web Services account that owns the virtual interface.
virtual_interface_regionstringThe Amazon Web Services Region where the virtual interface is located.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_direct_connect_gateway_attachmentsselectregionLists the attachments between your Direct Connect gateways and virtual interfaces. You must specify a Direct Connect gateway, a virtual interface, or both. If you specify a Direct Connect gateway, the response contains all virtual interfaces attached to the Direct Connect gateway. If you specify a virtual interface, the response contains all Direct Connect gateways attached to the virtual interface. If you specify both, the response contains the attachment between the Direct Connect gateway and the virtual interface.

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

Lists the attachments between your Direct Connect gateways and virtual interfaces. You must specify a Direct Connect gateway, a virtual interface, or both. If you specify a Direct Connect gateway, the response contains all virtual interfaces attached to the Direct Connect gateway. If you specify a virtual interface, the response contains all Direct Connect gateways attached to the virtual interface. If you specify both, the response contains the attachment between the Direct Connect gateway and the virtual interface.

SELECT
attachment_state,
attachment_type,
direct_connect_gateway_id,
state_change_error,
virtual_interface_id,
virtual_interface_owner_account,
virtual_interface_region
FROM aws.directconnect.direct_connect_gateway_attachments
WHERE region = '{{ region }}' -- required
;