Skip to main content

transit_gateway_route_table_announcements

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

Overview

Nametransit_gateway_route_table_announcements
TypeResource
Idaws.ec2.transit_gateway_route_table_announcements

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
announcement_directionstringThe direction for the route table announcement.
core_network_idstringThe ID of the core network for the transit gateway route table announcement.
creation_timestringThe timestamp when the transit gateway route table announcement was created.
peer_core_network_idstringThe ID of the core network ID for the peer.
peer_transit_gateway_idstringThe ID of the peer transit gateway.
peering_attachment_idstringThe ID of the peering attachment.
statestringThe state of the transit gateway announcement.
tagsstringThe key-value pairs associated with the route table announcement.
transit_gateway_idstringThe ID of the transit gateway.
transit_gateway_route_table_announcement_idstringThe ID of the transit gateway route table announcement.
transit_gateway_route_table_idstringThe ID of the transit gateway route table.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_transit_gateway_route_table_announcementsselectregionTransitGatewayRouteTableAnnouncementIds, Filter, MaxResults, NextToken, DryRunDescribes one or more transit gateway route table advertisements.
create_transit_gateway_route_table_announcementinsertTransitGatewayRouteTableId, PeeringAttachmentId, regionTagSpecification, DryRunAdvertises a new transit gateway route table.
delete_transit_gateway_route_table_announcementdeleteTransitGatewayRouteTableAnnouncementId, regionDryRunAdvertises to the transit gateway that a transit gateway route table is deleted.

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
PeeringAttachmentIdstringThe ID of the peering attachment.
TransitGatewayRouteTableAnnouncementIdstringThe transit gateway route table ID that's being deleted.
TransitGatewayRouteTableIdstringThe ID of the transit gateway route table.
regionstringAWS region (default: us-east-1)
DryRunbooleanChecks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
FilterarrayThe filters associated with the transit gateway policy table.
MaxResultsintegerThe maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value.
NextTokenstringThe token for the next page of results.
TagSpecificationarrayThe tags specifications applied to the transit gateway route table announcement.
TransitGatewayRouteTableAnnouncementIdsarrayThe IDs of the transit gateway route tables that are being advertised.

SELECT examples

Describes one or more transit gateway route table advertisements.

SELECT
announcement_direction,
core_network_id,
creation_time,
peer_core_network_id,
peer_transit_gateway_id,
peering_attachment_id,
state,
tags,
transit_gateway_id,
transit_gateway_route_table_announcement_id,
transit_gateway_route_table_id
FROM aws.ec2.transit_gateway_route_table_announcements
WHERE region = '{{ region }}' -- required
AND TransitGatewayRouteTableAnnouncementIds = '{{ TransitGatewayRouteTableAnnouncementIds }}'
AND Filter = '{{ Filter }}'
AND MaxResults = '{{ MaxResults }}'
AND NextToken = '{{ NextToken }}'
AND DryRun = '{{ DryRun }}'
;

INSERT examples

Advertises a new transit gateway route table.

INSERT INTO aws.ec2.transit_gateway_route_table_announcements (
TransitGatewayRouteTableId,
PeeringAttachmentId,
region,
TagSpecification,
DryRun
)
SELECT
'{{ TransitGatewayRouteTableId }}',
'{{ PeeringAttachmentId }}',
'{{ region }}',
'{{ TagSpecification }}',
'{{ DryRun }}'
RETURNING
announcement_direction,
core_network_id,
creation_time,
peer_core_network_id,
peer_transit_gateway_id,
peering_attachment_id,
state,
tags,
transit_gateway_id,
transit_gateway_route_table_announcement_id,
transit_gateway_route_table_id
;

DELETE examples

Advertises to the transit gateway that a transit gateway route table is deleted.

DELETE FROM aws.ec2.transit_gateway_route_table_announcements
WHERE TransitGatewayRouteTableAnnouncementId = '{{ TransitGatewayRouteTableAnnouncementId }}' --required
AND region = '{{ region }}' --required
AND DryRun = '{{ DryRun }}'
;