libZSservicesZSamazonka-configZSamazonka-config
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.Config.GetAggregateDiscoveredResourceCounts

Description

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

Creating a Request

data GetAggregateDiscoveredResourceCounts Source #

Constructors

GetAggregateDiscoveredResourceCounts' 

Fields

Instances

Instances details
Eq GetAggregateDiscoveredResourceCounts Source # 
Instance details

Defined in Amazonka.Config.GetAggregateDiscoveredResourceCounts

Read GetAggregateDiscoveredResourceCounts Source # 
Instance details

Defined in Amazonka.Config.GetAggregateDiscoveredResourceCounts

Show GetAggregateDiscoveredResourceCounts Source # 
Instance details

Defined in Amazonka.Config.GetAggregateDiscoveredResourceCounts

Generic GetAggregateDiscoveredResourceCounts Source # 
Instance details

Defined in Amazonka.Config.GetAggregateDiscoveredResourceCounts

NFData GetAggregateDiscoveredResourceCounts Source # 
Instance details

Defined in Amazonka.Config.GetAggregateDiscoveredResourceCounts

Hashable GetAggregateDiscoveredResourceCounts Source # 
Instance details

Defined in Amazonka.Config.GetAggregateDiscoveredResourceCounts

ToJSON GetAggregateDiscoveredResourceCounts Source # 
Instance details

Defined in Amazonka.Config.GetAggregateDiscoveredResourceCounts

AWSRequest GetAggregateDiscoveredResourceCounts Source # 
Instance details

Defined in Amazonka.Config.GetAggregateDiscoveredResourceCounts

ToHeaders GetAggregateDiscoveredResourceCounts Source # 
Instance details

Defined in Amazonka.Config.GetAggregateDiscoveredResourceCounts

ToPath GetAggregateDiscoveredResourceCounts Source # 
Instance details

Defined in Amazonka.Config.GetAggregateDiscoveredResourceCounts

ToQuery GetAggregateDiscoveredResourceCounts Source # 
Instance details

Defined in Amazonka.Config.GetAggregateDiscoveredResourceCounts

type Rep GetAggregateDiscoveredResourceCounts Source # 
Instance details

Defined in Amazonka.Config.GetAggregateDiscoveredResourceCounts

type Rep GetAggregateDiscoveredResourceCounts = D1 ('MetaData "GetAggregateDiscoveredResourceCounts" "Amazonka.Config.GetAggregateDiscoveredResourceCounts" "libZSservicesZSamazonka-configZSamazonka-config" 'False) (C1 ('MetaCons "GetAggregateDiscoveredResourceCounts'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "filters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ResourceCountFilters)) :*: S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "limit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: (S1 ('MetaSel ('Just "groupByKey") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ResourceCountGroupKey)) :*: S1 ('MetaSel ('Just "configurationAggregatorName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))
type AWSResponse GetAggregateDiscoveredResourceCounts Source # 
Instance details

Defined in Amazonka.Config.GetAggregateDiscoveredResourceCounts

newGetAggregateDiscoveredResourceCounts Source #

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_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.

Destructuring the Response

data GetAggregateDiscoveredResourceCountsResponse Source #

Constructors

GetAggregateDiscoveredResourceCountsResponse' 

Fields

Instances

Instances details
Eq GetAggregateDiscoveredResourceCountsResponse Source # 
Instance details

Defined in Amazonka.Config.GetAggregateDiscoveredResourceCounts

Read GetAggregateDiscoveredResourceCountsResponse Source # 
Instance details

Defined in Amazonka.Config.GetAggregateDiscoveredResourceCounts

Show GetAggregateDiscoveredResourceCountsResponse Source # 
Instance details

Defined in Amazonka.Config.GetAggregateDiscoveredResourceCounts

Generic GetAggregateDiscoveredResourceCountsResponse Source # 
Instance details

Defined in Amazonka.Config.GetAggregateDiscoveredResourceCounts

NFData GetAggregateDiscoveredResourceCountsResponse Source # 
Instance details

Defined in Amazonka.Config.GetAggregateDiscoveredResourceCounts

type Rep GetAggregateDiscoveredResourceCountsResponse Source # 
Instance details

Defined in Amazonka.Config.GetAggregateDiscoveredResourceCounts

type Rep GetAggregateDiscoveredResourceCountsResponse = D1 ('MetaData "GetAggregateDiscoveredResourceCountsResponse" "Amazonka.Config.GetAggregateDiscoveredResourceCounts" "libZSservicesZSamazonka-configZSamazonka-config" 'False) (C1 ('MetaCons "GetAggregateDiscoveredResourceCountsResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "groupedResourceCounts") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [GroupedResourceCount])) :*: S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "groupByKey") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "totalDiscoveredResources") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Integer)))))

newGetAggregateDiscoveredResourceCountsResponse Source #

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_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_totalDiscoveredResources :: Lens' GetAggregateDiscoveredResourceCountsResponse Integer Source #

The total number of resources that are present in an aggregator with the filters that you provide.