Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Returns the resource counts across accounts and regions that are present in your Config aggregator. You can request the resource counts by providing filters and GroupByKey.
For example, if the input contains accountID 12345678910 and region us-east-1 in filters, the API returns the count of resources in account ID 12345678910 and region us-east-1. If the input contains ACCOUNT_ID as a GroupByKey, the API returns resource counts for all source accounts that are present in your aggregator.
Synopsis
- data GetAggregateDiscoveredResourceCounts = GetAggregateDiscoveredResourceCounts' {}
- newGetAggregateDiscoveredResourceCounts :: Text -> GetAggregateDiscoveredResourceCounts
- getAggregateDiscoveredResourceCounts_filters :: Lens' GetAggregateDiscoveredResourceCounts (Maybe ResourceCountFilters)
- getAggregateDiscoveredResourceCounts_nextToken :: Lens' GetAggregateDiscoveredResourceCounts (Maybe Text)
- getAggregateDiscoveredResourceCounts_limit :: Lens' GetAggregateDiscoveredResourceCounts (Maybe Natural)
- getAggregateDiscoveredResourceCounts_groupByKey :: Lens' GetAggregateDiscoveredResourceCounts (Maybe ResourceCountGroupKey)
- getAggregateDiscoveredResourceCounts_configurationAggregatorName :: Lens' GetAggregateDiscoveredResourceCounts Text
- data GetAggregateDiscoveredResourceCountsResponse = GetAggregateDiscoveredResourceCountsResponse' {}
- newGetAggregateDiscoveredResourceCountsResponse :: Int -> Integer -> GetAggregateDiscoveredResourceCountsResponse
- getAggregateDiscoveredResourceCountsResponse_groupedResourceCounts :: Lens' GetAggregateDiscoveredResourceCountsResponse (Maybe [GroupedResourceCount])
- getAggregateDiscoveredResourceCountsResponse_nextToken :: Lens' GetAggregateDiscoveredResourceCountsResponse (Maybe Text)
- getAggregateDiscoveredResourceCountsResponse_groupByKey :: Lens' GetAggregateDiscoveredResourceCountsResponse (Maybe Text)
- getAggregateDiscoveredResourceCountsResponse_httpStatus :: Lens' GetAggregateDiscoveredResourceCountsResponse Int
- getAggregateDiscoveredResourceCountsResponse_totalDiscoveredResources :: Lens' GetAggregateDiscoveredResourceCountsResponse Integer
Creating a Request
data GetAggregateDiscoveredResourceCounts Source #
See: newGetAggregateDiscoveredResourceCounts
smart constructor.
GetAggregateDiscoveredResourceCounts' | |
|
Instances
newGetAggregateDiscoveredResourceCounts Source #
:: Text |
|
-> GetAggregateDiscoveredResourceCounts |
Create a value of GetAggregateDiscoveredResourceCounts
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:filters:GetAggregateDiscoveredResourceCounts'
, getAggregateDiscoveredResourceCounts_filters
- Filters the results based on the ResourceCountFilters
object.
$sel:nextToken:GetAggregateDiscoveredResourceCounts'
, getAggregateDiscoveredResourceCounts_nextToken
- The nextToken
string returned on a previous page that you use to get
the next page of results in a paginated response.
$sel:limit:GetAggregateDiscoveredResourceCounts'
, getAggregateDiscoveredResourceCounts_limit
- The maximum number of GroupedResourceCount objects returned on each
page. The default is 1000. You cannot specify a number greater than
1000. If you specify 0, Config uses the default.
$sel:groupByKey:GetAggregateDiscoveredResourceCounts'
, getAggregateDiscoveredResourceCounts_groupByKey
- The key to group the resource counts.
$sel:configurationAggregatorName:GetAggregateDiscoveredResourceCounts'
, getAggregateDiscoveredResourceCounts_configurationAggregatorName
- The name of the configuration aggregator.
Request Lenses
getAggregateDiscoveredResourceCounts_filters :: Lens' GetAggregateDiscoveredResourceCounts (Maybe ResourceCountFilters) Source #
Filters the results based on the ResourceCountFilters
object.
getAggregateDiscoveredResourceCounts_nextToken :: Lens' GetAggregateDiscoveredResourceCounts (Maybe Text) Source #
The nextToken
string returned on a previous page that you use to get
the next page of results in a paginated response.
getAggregateDiscoveredResourceCounts_limit :: Lens' GetAggregateDiscoveredResourceCounts (Maybe Natural) Source #
The maximum number of GroupedResourceCount objects returned on each page. The default is 1000. You cannot specify a number greater than 1000. If you specify 0, Config uses the default.
getAggregateDiscoveredResourceCounts_groupByKey :: Lens' GetAggregateDiscoveredResourceCounts (Maybe ResourceCountGroupKey) Source #
The key to group the resource counts.
getAggregateDiscoveredResourceCounts_configurationAggregatorName :: Lens' GetAggregateDiscoveredResourceCounts Text Source #
The name of the configuration aggregator.
Destructuring the Response
data GetAggregateDiscoveredResourceCountsResponse Source #
See: newGetAggregateDiscoveredResourceCountsResponse
smart constructor.
GetAggregateDiscoveredResourceCountsResponse' | |
|
Instances
newGetAggregateDiscoveredResourceCountsResponse Source #
:: Int |
|
-> Integer |
|
-> GetAggregateDiscoveredResourceCountsResponse |
Create a value of GetAggregateDiscoveredResourceCountsResponse
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:groupedResourceCounts:GetAggregateDiscoveredResourceCountsResponse'
, getAggregateDiscoveredResourceCountsResponse_groupedResourceCounts
- Returns a list of GroupedResourceCount objects.
$sel:nextToken:GetAggregateDiscoveredResourceCounts'
, getAggregateDiscoveredResourceCountsResponse_nextToken
- The nextToken
string returned on a previous page that you use to get
the next page of results in a paginated response.
$sel:groupByKey:GetAggregateDiscoveredResourceCounts'
, getAggregateDiscoveredResourceCountsResponse_groupByKey
- The key passed into the request object. If GroupByKey
is not provided,
the result will be empty.
$sel:httpStatus:GetAggregateDiscoveredResourceCountsResponse'
, getAggregateDiscoveredResourceCountsResponse_httpStatus
- The response's http status code.
$sel:totalDiscoveredResources:GetAggregateDiscoveredResourceCountsResponse'
, getAggregateDiscoveredResourceCountsResponse_totalDiscoveredResources
- The total number of resources that are present in an aggregator with the
filters that you provide.
Response Lenses
getAggregateDiscoveredResourceCountsResponse_groupedResourceCounts :: Lens' GetAggregateDiscoveredResourceCountsResponse (Maybe [GroupedResourceCount]) Source #
Returns a list of GroupedResourceCount objects.
getAggregateDiscoveredResourceCountsResponse_nextToken :: Lens' GetAggregateDiscoveredResourceCountsResponse (Maybe Text) Source #
The nextToken
string returned on a previous page that you use to get
the next page of results in a paginated response.
getAggregateDiscoveredResourceCountsResponse_groupByKey :: Lens' GetAggregateDiscoveredResourceCountsResponse (Maybe Text) Source #
The key passed into the request object. If GroupByKey
is not provided,
the result will be empty.
getAggregateDiscoveredResourceCountsResponse_httpStatus :: Lens' GetAggregateDiscoveredResourceCountsResponse Int Source #
The response's http status code.
getAggregateDiscoveredResourceCountsResponse_totalDiscoveredResources :: Lens' GetAggregateDiscoveredResourceCountsResponse Integer Source #
The total number of resources that are present in an aggregator with the filters that you provide.