| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.MacieV2.GetUsageTotals
Description
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.
Constructors
| GetUsageTotals' | |
Fields
| |
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:
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.
Constructors
| GetUsageTotalsResponse' | |
Fields
| |
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:
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.