Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Gets the count of network resources, by resource type, for the specified global network.
This operation returns paginated results.
Synopsis
- data GetNetworkResourceCounts = GetNetworkResourceCounts' {}
- newGetNetworkResourceCounts :: Text -> GetNetworkResourceCounts
- getNetworkResourceCounts_maxResults :: Lens' GetNetworkResourceCounts (Maybe Natural)
- getNetworkResourceCounts_nextToken :: Lens' GetNetworkResourceCounts (Maybe Text)
- getNetworkResourceCounts_resourceType :: Lens' GetNetworkResourceCounts (Maybe Text)
- getNetworkResourceCounts_globalNetworkId :: Lens' GetNetworkResourceCounts Text
- data GetNetworkResourceCountsResponse = GetNetworkResourceCountsResponse' {}
- newGetNetworkResourceCountsResponse :: Int -> GetNetworkResourceCountsResponse
- getNetworkResourceCountsResponse_networkResourceCounts :: Lens' GetNetworkResourceCountsResponse (Maybe [NetworkResourceCount])
- getNetworkResourceCountsResponse_nextToken :: Lens' GetNetworkResourceCountsResponse (Maybe Text)
- getNetworkResourceCountsResponse_httpStatus :: Lens' GetNetworkResourceCountsResponse Int
Creating a Request
data GetNetworkResourceCounts Source #
See: newGetNetworkResourceCounts
smart constructor.
GetNetworkResourceCounts' | |
|
Instances
newGetNetworkResourceCounts Source #
Create a value of GetNetworkResourceCounts
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:maxResults:GetNetworkResourceCounts'
, getNetworkResourceCounts_maxResults
- The maximum number of results to return.
GetNetworkResourceCounts
, getNetworkResourceCounts_nextToken
- The token for the next page of results.
GetNetworkResourceCounts
, getNetworkResourceCounts_resourceType
- 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:
connection
device
link
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
GetNetworkResourceCounts
, getNetworkResourceCounts_globalNetworkId
- The ID of the global network.
Request Lenses
getNetworkResourceCounts_maxResults :: Lens' GetNetworkResourceCounts (Maybe Natural) Source #
The maximum number of results to return.
getNetworkResourceCounts_nextToken :: Lens' GetNetworkResourceCounts (Maybe Text) Source #
The token for the next page of results.
getNetworkResourceCounts_resourceType :: Lens' GetNetworkResourceCounts (Maybe Text) Source #
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:
connection
device
link
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
getNetworkResourceCounts_globalNetworkId :: Lens' GetNetworkResourceCounts Text Source #
The ID of the global network.
Destructuring the Response
data GetNetworkResourceCountsResponse Source #
See: newGetNetworkResourceCountsResponse
smart constructor.
GetNetworkResourceCountsResponse' | |
|
Instances
newGetNetworkResourceCountsResponse Source #
Create a value of GetNetworkResourceCountsResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:networkResourceCounts:GetNetworkResourceCountsResponse'
, getNetworkResourceCountsResponse_networkResourceCounts
- The count of resources.
GetNetworkResourceCounts
, getNetworkResourceCountsResponse_nextToken
- The token for the next page of results.
$sel:httpStatus:GetNetworkResourceCountsResponse'
, getNetworkResourceCountsResponse_httpStatus
- The response's http status code.
Response Lenses
getNetworkResourceCountsResponse_networkResourceCounts :: Lens' GetNetworkResourceCountsResponse (Maybe [NetworkResourceCount]) Source #
The count of resources.
getNetworkResourceCountsResponse_nextToken :: Lens' GetNetworkResourceCountsResponse (Maybe Text) Source #
The token for the next page of results.
getNetworkResourceCountsResponse_httpStatus :: Lens' GetNetworkResourceCountsResponse Int Source #
The response's http status code.