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 |
Retrieves (queries) quotas and aggregated usage data for one or more accounts.
This operation returns paginated results.
Synopsis
- data GetUsageStatistics = GetUsageStatistics' {}
- newGetUsageStatistics :: GetUsageStatistics
- getUsageStatistics_timeRange :: Lens' GetUsageStatistics (Maybe TimeRange)
- getUsageStatistics_nextToken :: Lens' GetUsageStatistics (Maybe Text)
- getUsageStatistics_filterBy :: Lens' GetUsageStatistics (Maybe [UsageStatisticsFilter])
- getUsageStatistics_maxResults :: Lens' GetUsageStatistics (Maybe Int)
- getUsageStatistics_sortBy :: Lens' GetUsageStatistics (Maybe UsageStatisticsSortBy)
- data GetUsageStatisticsResponse = GetUsageStatisticsResponse' {}
- newGetUsageStatisticsResponse :: Int -> GetUsageStatisticsResponse
- getUsageStatisticsResponse_timeRange :: Lens' GetUsageStatisticsResponse (Maybe TimeRange)
- getUsageStatisticsResponse_records :: Lens' GetUsageStatisticsResponse (Maybe [UsageRecord])
- getUsageStatisticsResponse_nextToken :: Lens' GetUsageStatisticsResponse (Maybe Text)
- getUsageStatisticsResponse_httpStatus :: Lens' GetUsageStatisticsResponse Int
Creating a Request
data GetUsageStatistics Source #
See: newGetUsageStatistics
smart constructor.
GetUsageStatistics' | |
|
Instances
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.
GetUsageStatisticsResponse' | |
|
Instances
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.
getUsageStatisticsResponse_httpStatus :: Lens' GetUsageStatisticsResponse Int Source #
The response's http status code.