amazonka-maciev2-2.0: Amazon Macie 2 SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

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

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

  • nextToken :: Maybe Text

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

  • sortBy :: Maybe UsageStatisticsSortBy

    The criteria to use to sort the query results.

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

Instances

Instances details
ToJSON GetUsageStatistics Source # 
Instance details

Defined in Amazonka.MacieV2.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

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 #

Generic GetUsageStatistics Source # 
Instance details

Defined in Amazonka.MacieV2.GetUsageStatistics

Associated Types

type Rep GetUsageStatistics :: Type -> Type #

Read GetUsageStatistics Source # 
Instance details

Defined in Amazonka.MacieV2.GetUsageStatistics

Show GetUsageStatistics Source # 
Instance details

Defined in Amazonka.MacieV2.GetUsageStatistics

NFData GetUsageStatistics Source # 
Instance details

Defined in Amazonka.MacieV2.GetUsageStatistics

Methods

rnf :: GetUsageStatistics -> () #

Eq GetUsageStatistics Source # 
Instance details

Defined in Amazonka.MacieV2.GetUsageStatistics

Hashable GetUsageStatistics Source # 
Instance details

Defined in Amazonka.MacieV2.GetUsageStatistics

type AWSResponse 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" "amazonka-maciev2-2.0-5WBPWSHaxt7LOrO1LzXg18" 'False) (C1 ('MetaCons "GetUsageStatistics'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "filterBy") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [UsageStatisticsFilter])) :*: S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int))) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "sortBy") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe UsageStatisticsSortBy)) :*: S1 ('MetaSel ('Just "timeRange") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe TimeRange))))))

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

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

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

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.

Request Lenses

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_nextToken :: Lens' GetUsageStatistics (Maybe Text) Source #

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

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

The criteria to use to sort the query results.

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.

Destructuring the Response

data GetUsageStatisticsResponse Source #

See: newGetUsageStatisticsResponse smart constructor.

Constructors

GetUsageStatisticsResponse' 

Fields

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

  • records :: Maybe [UsageRecord]

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

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

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic GetUsageStatisticsResponse Source # 
Instance details

Defined in Amazonka.MacieV2.GetUsageStatistics

Associated Types

type Rep GetUsageStatisticsResponse :: Type -> Type #

Read GetUsageStatisticsResponse Source # 
Instance details

Defined in Amazonka.MacieV2.GetUsageStatistics

Show GetUsageStatisticsResponse Source # 
Instance details

Defined in Amazonka.MacieV2.GetUsageStatistics

NFData GetUsageStatisticsResponse Source # 
Instance details

Defined in Amazonka.MacieV2.GetUsageStatistics

Eq 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" "amazonka-maciev2-2.0-5WBPWSHaxt7LOrO1LzXg18" 'False) (C1 ('MetaCons "GetUsageStatisticsResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "records") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [UsageRecord]))) :*: (S1 ('MetaSel ('Just "timeRange") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe TimeRange)) :*: 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:

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.

GetUsageStatisticsResponse, getUsageStatisticsResponse_records - An array of objects that contains the results of the query. Each object contains the data for an account that matches the filter criteria specified in the request.

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:httpStatus:GetUsageStatisticsResponse', getUsageStatisticsResponse_httpStatus - The response's http status code.

Response Lenses

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.

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 matches the filter criteria specified in the request.

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.