Skip to main content

network_resource_relationships

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

Overview

Namenetwork_resource_relationships
TypeResource
Idaws.networkmanager.network_resource_relationships

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
fromstringThe ARN of the resource. (pattern: <code>[\s\S]*</code>)
tostringThe ARN of the resource. (pattern: <code>[\s\S]*</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_network_resource_relationshipsselectglobal_network_id, regioncoreNetworkId, registeredGatewayArn, awsRegion, accountId, resourceType, resourceArn, maxResults, nextTokenGets the network resource relationships for the specified global network.

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
global_network_idstringThe ID of the global network.
regionstringAWS region (default: us-east-1)
accountIdstringThe Amazon Web Services account ID.
awsRegionstringThe Amazon Web Services Region.
coreNetworkIdstringThe ID of a core network.
maxResultsintegerThe maximum number of results to return.
nextTokenstringThe token for the next page of results.
registeredGatewayArnstringThe ARN of the registered gateway.
resourceArnstringThe ARN of the gateway.
resourceTypestringThe resource type. The following are the supported resource types for Direct Connect: dxcon dx-gateway dx-vif The following are the supported resource types for Network Manager: attachment connect-peer connection core-network device link peering site The following are the supported resource types for Amazon VPC: customer-gateway transit-gateway transit-gateway-attachment transit-gateway-connect-peer transit-gateway-route-table vpn-connection

SELECT examples

Gets the network resource relationships for the specified global network.

SELECT
from,
to
FROM aws.networkmanager.network_resource_relationships
WHERE global_network_id = '{{ global_network_id }}' -- required
AND region = '{{ region }}' -- required
AND coreNetworkId = '{{ coreNetworkId }}'
AND registeredGatewayArn = '{{ registeredGatewayArn }}'
AND awsRegion = '{{ awsRegion }}'
AND accountId = '{{ accountId }}'
AND resourceType = '{{ resourceType }}'
AND resourceArn = '{{ resourceArn }}'
AND maxResults = '{{ maxResults }}'
AND nextToken = '{{ nextToken }}'
;