Skip to main content

transit_gateway_registrations

Creates, updates, deletes or gets a transit_gateway_registration resource or lists transit_gateway_registrations in a region

Overview

Nametransit_gateway_registrations
TypeResource
DescriptionThe AWS::NetworkManager::TransitGatewayRegistration type registers a transit gateway in your global network. The transit gateway can be in any AWS Region, but it must be owned by the same AWS account that owns the global network. You cannot register a transit gateway in more than one global network.
Idaws.networkmanager.transit_gateway_registrations

Fields

NameDatatypeDescription
global_network_idstringThe ID of the global network.
transit_gateway_arnstringThe Amazon Resource Name (ARN) of the transit gateway.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTGlobalNetworkId, TransitGatewayArn, region
delete_resourceDELETEdata__Identifier, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all transit_gateway_registrations in a region.

SELECT
region,
global_network_id,
transit_gateway_arn
FROM aws.networkmanager.transit_gateway_registrations
WHERE region = 'us-east-1';

Gets all properties from an individual transit_gateway_registration.

SELECT
region,
global_network_id,
transit_gateway_arn
FROM aws.networkmanager.transit_gateway_registrations
WHERE region = 'us-east-1' AND data__Identifier = '<GlobalNetworkId>|<TransitGatewayArn>';

INSERT example

Use the following StackQL query and manifest file to create a new transit_gateway_registration resource, using stack-deploy.

/*+ create */
INSERT INTO aws.networkmanager.transit_gateway_registrations (
GlobalNetworkId,
TransitGatewayArn,
region
)
SELECT
'{{ GlobalNetworkId }}',
'{{ TransitGatewayArn }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.networkmanager.transit_gateway_registrations
WHERE data__Identifier = '<GlobalNetworkId|TransitGatewayArn>'
AND region = 'us-east-1';

Permissions

To operate on the transit_gateway_registrations resource, the following permissions are required:

Create

networkmanager:RegisterTransitGateway,
networkmanager:GetTransitGatewayRegistrations

Read

networkmanager:GetTransitGatewayRegistrations

List

networkmanager:GetTransitGatewayRegistrations

Delete

networkmanager:DeregisterTransitGateway,
networkmanager:GetTransitGatewayRegistrations