Skip to main content

network_resource_counts

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

Overview

Namenetwork_resource_counts
TypeResource
Idaws.networkmanager.network_resource_counts

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
countintegerThe resource count.
resource_typestringThe resource type. (pattern: <code>[\s\S]*</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_network_resource_countsselectglobal_network_id, regionresourceType, maxResults, nextTokenGets the count of network resources, by resource type, 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)
maxResultsintegerThe maximum number of results to return.
nextTokenstringThe token for the next page of results.
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 count of network resources, by resource type, for the specified global network.

SELECT
count,
resource_type
FROM aws.networkmanager.network_resource_counts
WHERE global_network_id = '{{ global_network_id }}' -- required
AND region = '{{ region }}' -- required
AND resourceType = '{{ resourceType }}'
AND maxResults = '{{ maxResults }}'
AND nextToken = '{{ nextToken }}'
;