Skip to main content

network_resources

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

Overview

Namenetwork_resources
TypeResource
Idaws.networkmanager.network_resources

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
account_idstringThe Amazon Web Services account ID. (pattern: <code>[\s\S]*</code>)
aws_regionstringThe Amazon Web Services Region. (pattern: <code>[\s\S]*</code>)
core_network_idstringThe ID of a core network. (pattern: <code>^core-network-([0-9a-f]{8,17})$</code>)
definitionstringInformation about the resource, in JSON format. Network Manager gets this information by describing the resource using its Describe API call. (pattern: <code>[\s\S]*</code>)
definition_timestampstring (date-time)The time that the resource definition was retrieved.
metadataobjectThe resource metadata.
registered_gateway_arnstringThe ARN of the gateway. (pattern: <code>[\s\S]*</code>)
resource_arnstringThe ARN of the resource. (pattern: <code>[\s\S]*</code>)
resource_idstringThe ID of the resource. (pattern: <code>[\s\S]*</code>)
resource_typestringThe 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 (pattern: <code>[\s\S]*</code>)
tagsarrayThe tags.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_network_resourcesselectglobal_network_id, regioncoreNetworkId, registeredGatewayArn, awsRegion, accountId, resourceType, resourceArn, maxResults, nextTokenDescribes the network resources for the specified global network. The results include information from the corresponding Describe call for the resource, minus any sensitive information such as pre-shared keys.
update_network_resource_metadataupdateglobal_network_id, resource_arn, regionUpdates the resource metadata 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)
resource_arnstringThe ARN of the resource.
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 gateway.
resourceArnstringThe ARN of the resource.
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

Describes the network resources for the specified global network. The results include information from the corresponding Describe call for the resource, minus any sensitive information such as pre-shared keys.

SELECT
account_id,
aws_region,
core_network_id,
definition,
definition_timestamp,
metadata,
registered_gateway_arn,
resource_arn,
resource_id,
resource_type,
tags
FROM aws.networkmanager.network_resources
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 }}'
;

UPDATE examples

Updates the resource metadata for the specified global network.

UPDATE aws.networkmanager.network_resources
SET
Metadata = '{{ Metadata }}'
WHERE
global_network_id = '{{ global_network_id }}' --required
AND resource_arn = '{{ resource_arn }}' --required
AND region = '{{ region }}' --required
RETURNING
metadata,
resource_arn;