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) aggregated usage data for an account.
Synopsis
- data GetUsageTotals = GetUsageTotals' {}
- newGetUsageTotals :: GetUsageTotals
- getUsageTotals_timeRange :: Lens' GetUsageTotals (Maybe Text)
- data GetUsageTotalsResponse = GetUsageTotalsResponse' {
- timeRange :: Maybe TimeRange
- usageTotals :: Maybe [UsageTotal]
- httpStatus :: Int
- newGetUsageTotalsResponse :: Int -> GetUsageTotalsResponse
- getUsageTotalsResponse_timeRange :: Lens' GetUsageTotalsResponse (Maybe TimeRange)
- getUsageTotalsResponse_usageTotals :: Lens' GetUsageTotalsResponse (Maybe [UsageTotal])
- getUsageTotalsResponse_httpStatus :: Lens' GetUsageTotalsResponse Int
Creating a Request
data GetUsageTotals Source #
See: newGetUsageTotals
smart constructor.
GetUsageTotals' | |
|
Instances
newGetUsageTotals :: GetUsageTotals Source #
Create a value of GetUsageTotals
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:GetUsageTotals'
, getUsageTotals_timeRange
- The inclusive time period to retrieve the 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
for this parameter, Amazon Macie provides aggregated usage data for the
preceding 30 days.
Request Lenses
getUsageTotals_timeRange :: Lens' GetUsageTotals (Maybe Text) Source #
The inclusive time period to retrieve the 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 for this parameter, Amazon Macie provides aggregated usage data for the preceding 30 days.
Destructuring the Response
data GetUsageTotalsResponse Source #
See: newGetUsageTotalsResponse
smart constructor.
GetUsageTotalsResponse' | |
|
Instances
newGetUsageTotalsResponse Source #
Create a value of GetUsageTotalsResponse
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:GetUsageTotals'
, getUsageTotalsResponse_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:usageTotals:GetUsageTotalsResponse'
, getUsageTotalsResponse_usageTotals
- An array of objects that contains the results of the query. Each object
contains the data for a specific usage metric.
$sel:httpStatus:GetUsageTotalsResponse'
, getUsageTotalsResponse_httpStatus
- The response's http status code.
Response Lenses
getUsageTotalsResponse_timeRange :: Lens' GetUsageTotalsResponse (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.
getUsageTotalsResponse_usageTotals :: Lens' GetUsageTotalsResponse (Maybe [UsageTotal]) Source #
An array of objects that contains the results of the query. Each object contains the data for a specific usage metric.
getUsageTotalsResponse_httpStatus :: Lens' GetUsageTotalsResponse Int Source #
The response's http status code.