libZSservicesZSamazonka-maciev2ZSamazonka-maciev2
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.MacieV2.GetUsageStatistics

Description

Retrieves (queries) quotas and aggregated usage data for one or more accounts.

This operation returns paginated results.

Synopsis

Creating a Request

data GetUsageStatistics Source #

See: newGetUsageStatistics smart constructor.

Constructors

GetUsageStatistics' 

Fields

  • timeRange :: Maybe TimeRange

    The inclusive time period to query usage data for. Valid values are: MONTH_TO_DATE, for the current calendar month to date; and, PAST_30_DAYS, for the preceding 30 days. If you don't specify a value, Amazon Macie provides usage data for the preceding 30 days.

  • nextToken :: Maybe Text

    The nextToken string that specifies which page of results to return in a paginated response.

  • filterBy :: Maybe [UsageStatisticsFilter]

    An array of objects, one for each condition to use to filter the query results. If you specify more than one condition, Amazon Macie uses an AND operator to join the conditions.

  • maxResults :: Maybe Int

    The maximum number of items to include in each page of the response.

  • sortBy :: Maybe UsageStatisticsSortBy

    The criteria to use to sort the query results.

Instances

Instances details
Eq GetUsageStatistics Source # 
Instance details

Defined in Amazonka.MacieV2.GetUsageStatistics

Read GetUsageStatistics Source # 
Instance details

Defined in Amazonka.MacieV2.GetUsageStatistics

Show GetUsageStatistics Source # 
Instance details

Defined in Amazonka.MacieV2.GetUsageStatistics

Generic GetUsageStatistics Source # 
Instance details

Defined in Amazonka.MacieV2.GetUsageStatistics

Associated Types

type Rep GetUsageStatistics :: Type -> Type #

NFData GetUsageStatistics Source # 
Instance details

Defined in Amazonka.MacieV2.GetUsageStatistics

Methods

rnf :: GetUsageStatistics -> () #

Hashable GetUsageStatistics Source # 
Instance details

Defined in Amazonka.MacieV2.GetUsageStatistics

ToJSON GetUsageStatistics Source # 
Instance details

Defined in Amazonka.MacieV2.GetUsageStatistics

AWSPager GetUsageStatistics Source # 
Instance details

Defined in Amazonka.MacieV2.GetUsageStatistics

AWSRequest GetUsageStatistics Source # 
Instance details

Defined in Amazonka.MacieV2.GetUsageStatistics

Associated Types

type AWSResponse GetUsageStatistics #

ToHeaders GetUsageStatistics Source # 
Instance details

Defined in Amazonka.MacieV2.GetUsageStatistics

ToPath GetUsageStatistics Source # 
Instance details

Defined in Amazonka.MacieV2.GetUsageStatistics

ToQuery GetUsageStatistics Source # 
Instance details

Defined in Amazonka.MacieV2.GetUsageStatistics

type Rep GetUsageStatistics Source # 
Instance details

Defined in Amazonka.MacieV2.GetUsageStatistics

type Rep GetUsageStatistics = D1 ('MetaData "GetUsageStatistics" "Amazonka.MacieV2.GetUsageStatistics" "libZSservicesZSamazonka-maciev2ZSamazonka-maciev2" 'False) (C1 ('MetaCons "GetUsageStatistics'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "timeRange") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe TimeRange)) :*: S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "filterBy") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [UsageStatisticsFilter])) :*: (S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "sortBy") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe UsageStatisticsSortBy))))))
type AWSResponse GetUsageStatistics Source # 
Instance details

Defined in Amazonka.MacieV2.GetUsageStatistics

newGetUsageStatistics :: GetUsageStatistics Source #

Create a value of GetUsageStatistics 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:timeRange:GetUsageStatistics', getUsageStatistics_timeRange - The inclusive time period to query usage data for. Valid values are: MONTH_TO_DATE, for the current calendar month to date; and, PAST_30_DAYS, for the preceding 30 days. If you don't specify a value, Amazon Macie provides usage data for the preceding 30 days.

$sel:nextToken:GetUsageStatistics', getUsageStatistics_nextToken - The nextToken string that specifies which page of results to return in a paginated response.

$sel:filterBy:GetUsageStatistics', getUsageStatistics_filterBy - An array of objects, one for each condition to use to filter the query results. If you specify more than one condition, Amazon Macie uses an AND operator to join the conditions.

$sel:maxResults:GetUsageStatistics', getUsageStatistics_maxResults - The maximum number of items to include in each page of the response.

$sel:sortBy:GetUsageStatistics', getUsageStatistics_sortBy - The criteria to use to sort the query results.

Request Lenses

getUsageStatistics_timeRange :: Lens' GetUsageStatistics (Maybe TimeRange) Source #

The inclusive time period to query usage data for. Valid values are: MONTH_TO_DATE, for the current calendar month to date; and, PAST_30_DAYS, for the preceding 30 days. If you don't specify a value, Amazon Macie provides usage data for the preceding 30 days.

getUsageStatistics_nextToken :: Lens' GetUsageStatistics (Maybe Text) Source #

The nextToken string that specifies which page of results to return in a paginated response.

getUsageStatistics_filterBy :: Lens' GetUsageStatistics (Maybe [UsageStatisticsFilter]) Source #

An array of objects, one for each condition to use to filter the query results. If you specify more than one condition, Amazon Macie uses an AND operator to join the conditions.

getUsageStatistics_maxResults :: Lens' GetUsageStatistics (Maybe Int) Source #

The maximum number of items to include in each page of the response.

getUsageStatistics_sortBy :: Lens' GetUsageStatistics (Maybe UsageStatisticsSortBy) Source #

The criteria to use to sort the query results.

Destructuring the Response

data GetUsageStatisticsResponse Source #

See: newGetUsageStatisticsResponse smart constructor.

Constructors

GetUsageStatisticsResponse' 

Fields

  • timeRange :: Maybe TimeRange

    The inclusive time period that the usage data applies to. Possible values are: MONTH_TO_DATE, for the current calendar month to date; and, PAST_30_DAYS, for the preceding 30 days.

  • records :: Maybe [UsageRecord]

    An array of objects that contains the results of the query. Each object contains the data for an account that meets the filter criteria specified in the request.

  • nextToken :: Maybe Text

    The string to use in a subsequent request to get the next page of results in a paginated response. This value is null if there are no additional pages.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq GetUsageStatisticsResponse Source # 
Instance details

Defined in Amazonka.MacieV2.GetUsageStatistics

Read GetUsageStatisticsResponse Source # 
Instance details

Defined in Amazonka.MacieV2.GetUsageStatistics

Show GetUsageStatisticsResponse Source # 
Instance details

Defined in Amazonka.MacieV2.GetUsageStatistics

Generic GetUsageStatisticsResponse Source # 
Instance details

Defined in Amazonka.MacieV2.GetUsageStatistics

Associated Types

type Rep GetUsageStatisticsResponse :: Type -> Type #

NFData GetUsageStatisticsResponse Source # 
Instance details

Defined in Amazonka.MacieV2.GetUsageStatistics

type Rep GetUsageStatisticsResponse Source # 
Instance details

Defined in Amazonka.MacieV2.GetUsageStatistics

type Rep GetUsageStatisticsResponse = D1 ('MetaData "GetUsageStatisticsResponse" "Amazonka.MacieV2.GetUsageStatistics" "libZSservicesZSamazonka-maciev2ZSamazonka-maciev2" 'False) (C1 ('MetaCons "GetUsageStatisticsResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "timeRange") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe TimeRange)) :*: S1 ('MetaSel ('Just "records") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [UsageRecord]))) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newGetUsageStatisticsResponse Source #

Create a value of GetUsageStatisticsResponse 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:timeRange:GetUsageStatistics', getUsageStatisticsResponse_timeRange - The inclusive time period that the usage data applies to. Possible values are: MONTH_TO_DATE, for the current calendar month to date; and, PAST_30_DAYS, for the preceding 30 days.

$sel:records:GetUsageStatisticsResponse', getUsageStatisticsResponse_records - An array of objects that contains the results of the query. Each object contains the data for an account that meets the filter criteria specified in the request.

$sel:nextToken:GetUsageStatistics', getUsageStatisticsResponse_nextToken - The string to use in a subsequent request to get the next page of results in a paginated response. This value is null if there are no additional pages.

$sel:httpStatus:GetUsageStatisticsResponse', getUsageStatisticsResponse_httpStatus - The response's http status code.

Response Lenses

getUsageStatisticsResponse_timeRange :: Lens' GetUsageStatisticsResponse (Maybe TimeRange) Source #

The inclusive time period that the usage data applies to. Possible values are: MONTH_TO_DATE, for the current calendar month to date; and, PAST_30_DAYS, for the preceding 30 days.

getUsageStatisticsResponse_records :: Lens' GetUsageStatisticsResponse (Maybe [UsageRecord]) Source #

An array of objects that contains the results of the query. Each object contains the data for an account that meets the filter criteria specified in the request.

getUsageStatisticsResponse_nextToken :: Lens' GetUsageStatisticsResponse (Maybe Text) Source #

The string to use in a subsequent request to get the next page of results in a paginated response. This value is null if there are no additional pages.