network_resource_counts
Creates, updates, deletes, gets or lists a network_resource_counts resource.
Overview
| Name | network_resource_counts |
| Type | Resource |
| Id | aws.networkmanager.network_resource_counts |
Fields
The following fields are returned by SELECT queries:
- get_network_resource_counts
| Name | Datatype | Description |
|---|---|---|
count | integer | The resource count. |
resource_type | string | The resource type. (pattern: <code>[\s\S]*</code>) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_network_resource_counts | select | global_network_id, region | resourceType, maxResults, nextToken | Gets 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.
| Name | Datatype | Description |
|---|---|---|
global_network_id | string | The ID of the global network. |
region | string | AWS region (default: us-east-1) |
maxResults | integer | The maximum number of results to return. |
nextToken | string | The token for the next page of results. |
resourceType | string | The 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
- get_network_resource_counts
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 }}'
;