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.networkmanager.direct_connect_gateway_attachments

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
attachmentobjectDescribes a core network attachment.
direct_connect_gateway_arnstringThe Direct Connect gateway attachment ARN. (pattern: <code>^arn:[^:]{1,63}:directconnect::[^:]{0,63}:dx-gateway/[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_direct_connect_gateway_attachmentselectattachment_id, regionReturns information about a specific Amazon Web Services Direct Connect gateway attachment.
create_direct_connect_gateway_attachmentinsertregion, CoreNetworkId, DirectConnectGatewayArn, EdgeLocationsCreates an Amazon Web Services Direct Connect gateway attachment
update_direct_connect_gateway_attachmentupdateattachment_id, regionUpdates the edge locations associated with an Amazon Web Services Direct Connect gateway attachment.

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
attachment_idstringThe ID of the Direct Connect gateway attachment for the updated edge locations.
regionstringAWS region (default: us-east-1)

SELECT examples

Returns information about a specific Amazon Web Services Direct Connect gateway attachment.

SELECT
attachment,
direct_connect_gateway_arn
FROM aws.networkmanager.direct_connect_gateway_attachments
WHERE attachment_id = '{{ attachment_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates an Amazon Web Services Direct Connect gateway attachment

INSERT INTO aws.networkmanager.direct_connect_gateway_attachments (
CoreNetworkId,
DirectConnectGatewayArn,
RoutingPolicyLabel,
EdgeLocations,
Tags,
ClientToken,
region
)
SELECT
'{{ CoreNetworkId }}' /* required */,
'{{ DirectConnectGatewayArn }}' /* required */,
'{{ RoutingPolicyLabel }}',
'{{ EdgeLocations }}' /* required */,
'{{ Tags }}',
'{{ ClientToken }}',
'{{ region }}'
RETURNING
direct_connect_gateway_attachment
;

UPDATE examples

Updates the edge locations associated with an Amazon Web Services Direct Connect gateway attachment.

UPDATE aws.networkmanager.direct_connect_gateway_attachments
SET
EdgeLocations = '{{ EdgeLocations }}'
WHERE
attachment_id = '{{ attachment_id }}' --required
AND region = '{{ region }}' --required
RETURNING
direct_connect_gateway_attachment;