Skip to content

aws.directconnect.describe_direct_connect_gateway_associations

Example SQL Queries

SELECT * FROM
aws.directconnect.describe_direct_connect_gateway_associations;

Description

Lists the associations between your Direct Connect gateways and virtual private gateways and transit gateways. You must specify one of the following:

  • A Direct Connect gateway

    The response contains all virtual private gateways and transit gateways associated with the Direct Connect gateway.

  • A virtual private gateway

    The response contains the Direct Connect gateway.

  • A transit gateway

    The response contains the Direct Connect gateway.

  • A Direct Connect gateway and a virtual private gateway

    The response contains the association between the Direct Connect gateway and virtual private gateway.

  • A Direct Connect gateway and a transit gateway

    The response contains the association between the Direct Connect gateway and transit gateway.

Table Definition

Column NameColumn Data Type
associated_gateway_id Input Column

The ID of the associated gateway.

VARCHAR
association_id Input Column

The ID of the Direct Connect gateway association.

VARCHAR
direct_connect_gateway_id Input Column

The ID of the Direct Connect gateway.

VARCHAR
virtual_gateway_id Input Column

The ID of the virtual private gateway. Applies only to private virtual interfaces.

VARCHAR
_aws_profile Input Column

The AWS profile defines the AWS identity used. It can be defined via credentials or by assuming a IAM role.

STRUCT(
"type" VARCHAR,
"name" VARCHAR,
"account_id" VARCHAR,
"via_profile_name" VARCHAR,
"assumed_role_arn" VARCHAR,
"organization" STRUCT(
"account_name" VARCHAR,
"id" VARCHAR,
"tags" STRUCT(
"key" VARCHAR,
"value" VARCHAR
)[],
"master_account" STRUCT(
"id" VARCHAR,
"email" VARCHAR
),
"parents" STRUCT(
"type" VARCHAR,
"id" VARCHAR,
"name" VARCHAR,
"tags" STRUCT(
"key" VARCHAR,
"value" VARCHAR
)[]
)[]
)
)
Show child fields
_aws_profile.account_id

The AWS account id

_aws_profile.assumed_role_arn

The ARN of the assumed role

_aws_profile.name

The unique name of the profile.

_aws_profile.organization

Information about this profile's membership in the AWS organization.

Show child fields
_aws_profile.organization.account_name

The name of account speciifed by the organization

_aws_profile.organization.id

The organization id

_aws_profile.organization.master_account
Show child fields
_aws_profile.organization.master_account.email

The organization master account email address

_aws_profile.organization.master_account.id

The organization master account id

_aws_profile.organization.parents[]
Show child fields
_aws_profile.organization.parents[].id

The id of the parent

_aws_profile.organization.parents[].name

The name of the parent

_aws_profile.organization.parents[].tags[]
Show child fields
_aws_profile.organization.parents[].tags[].key
_aws_profile.organization.parents[].tags[].value
_aws_profile.organization.parents[].type

The type of parent can be an organization unit or a root

_aws_profile.organization.tags[]
Show child fields
_aws_profile.organization.tags[].key
_aws_profile.organization.tags[].value
_aws_profile.type

The type of profile, either 'credentials' or 'assumed_role'

_aws_profile.via_profile_name

This IAM role for this profile is assumed by first utilizing another profile with this name to obtain credentials.

_aws_region Input Column

The AWS region to use.

VARCHAR
allowed_prefixes_to_direct_connect_gateway

The Amazon VPC prefixes to advertise to the Direct Connect gateway.

STRUCT(
"cidr" VARCHAR
)[]
Show child fields
allowed_prefixes_to_direct_connect_gateway[]
Show child fields
allowed_prefixes_to_direct_connect_gateway[].cidr

The CIDR block for the advertised route. Separate multiple routes using commas. An IPv6 CIDR must use /64 or shorter.

associated_gateway

Information about the associated gateway.

STRUCT(
"id" VARCHAR,
"type" VARCHAR,
"owner_account" VARCHAR,
"region" VARCHAR
)
Show child fields
associated_gateway.id

The ID of the associated gateway.

associated_gateway.owner_account

The ID of the Amazon Web Services account that owns the associated virtual private gateway or transit gateway.

associated_gateway.region

The Region where the associated gateway is located.

associated_gateway.type

The type of associated gateway.

association_state

The state of the association. The following are the possible values:

  • associating: The initial state after calling CreateDirectConnectGatewayAssociation.

  • associated: The Direct Connect gateway and virtual private gateway or transit gateway are successfully associated and ready to pass traffic.

  • disassociating: The initial state after calling DeleteDirectConnectGatewayAssociation.

  • disassociated: The virtual private gateway or transit gateway is disassociated from the Direct Connect gateway. Traffic flow between the Direct Connect gateway and virtual private gateway or transit gateway is stopped.

  • updating: The CIDR blocks for the virtual private gateway or transit gateway are currently being updated. This could be new CIDR blocks added or current CIDR blocks removed.

VARCHAR
direct_connect_gateway_owner_account

The ID of the Amazon Web Services account that owns the associated gateway.

VARCHAR
state_change_error

The error message if the state of an object failed to advance.

VARCHAR
virtual_gateway_owner_account

The ID of the Amazon Web Services account that owns the virtual private gateway.

VARCHAR
virtual_gateway_region

The Amazon Web Services Region where the virtual private gateway is located.

VARCHAR