NetworkManager.Client.get_network_resource_counts(**kwargs)¶Gets the count of network resources, by resource type, for the specified global network.
See also: AWS API Documentation
Request Syntax
response = client.get_network_resource_counts(
GlobalNetworkId='string',
ResourceType='string',
MaxResults=123,
NextToken='string'
)
[REQUIRED]
The ID of the global network.
The resource type.
The following are the supported resource types for Direct Connect:
dxcondx-gatewaydx-vifThe following are the supported resource types for Network Manager:
connectiondevicelinksiteThe following are the supported resource types for Amazon VPC:
customer-gatewaytransit-gatewaytransit-gateway-attachmenttransit-gateway-connect-peertransit-gateway-route-tablevpn-connectiondict
Response Syntax
{
'NetworkResourceCounts': [
{
'ResourceType': 'string',
'Count': 123
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
NetworkResourceCounts (list) --
The count of resources.
(dict) --
Describes a resource count.
ResourceType (string) --
The resource type.
Count (integer) --
The resource count.
NextToken (string) --
The token for the next page of results.
Exceptions
NetworkManager.Client.exceptions.ValidationExceptionNetworkManager.Client.exceptions.AccessDeniedExceptionNetworkManager.Client.exceptions.ThrottlingExceptionNetworkManager.Client.exceptions.InternalServerException