Skip to main content

transit_gateway_peerings

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

Overview

Nametransit_gateway_peerings
TypeResource
Idaws.networkmanager.transit_gateway_peerings

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
peeringobjectDescribes a transit gateway peer connection.
transit_gateway_arnstringThe ARN of the transit gateway. (pattern: <code>[\s\S]*</code>)
transit_gateway_peering_attachment_idstringThe ID of the transit gateway peering attachment. (pattern: <code>^tgw-attach-([0-9a-f]{8,17})$</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_transit_gateway_peeringselectpeering_id, regionReturns information about a transit gateway peer.
create_transit_gateway_peeringinsertregion, CoreNetworkId, TransitGatewayArnCreates a transit gateway peering connection.

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
peering_idstringThe ID of the peering request.
regionstringAWS region (default: us-east-1)

SELECT examples

Returns information about a transit gateway peer.

SELECT
peering,
transit_gateway_arn,
transit_gateway_peering_attachment_id
FROM aws.networkmanager.transit_gateway_peerings
WHERE peering_id = '{{ peering_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a transit gateway peering connection.

INSERT INTO aws.networkmanager.transit_gateway_peerings (
CoreNetworkId,
TransitGatewayArn,
Tags,
ClientToken,
region
)
SELECT
'{{ CoreNetworkId }}' /* required */,
'{{ TransitGatewayArn }}' /* required */,
'{{ Tags }}',
'{{ ClientToken }}',
'{{ region }}'
RETURNING
transit_gateway_peering
;