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 |
Lists the Amazon Inspector usage totals over the last 30 days.
This operation returns paginated results.
Synopsis
- data ListUsageTotals = ListUsageTotals' {
- accountIds :: Maybe (NonEmpty Text)
- maxResults :: Maybe Natural
- nextToken :: Maybe Text
- newListUsageTotals :: ListUsageTotals
- listUsageTotals_accountIds :: Lens' ListUsageTotals (Maybe (NonEmpty Text))
- listUsageTotals_maxResults :: Lens' ListUsageTotals (Maybe Natural)
- listUsageTotals_nextToken :: Lens' ListUsageTotals (Maybe Text)
- data ListUsageTotalsResponse = ListUsageTotalsResponse' {
- nextToken :: Maybe Text
- totals :: Maybe [UsageTotal]
- httpStatus :: Int
- newListUsageTotalsResponse :: Int -> ListUsageTotalsResponse
- listUsageTotalsResponse_nextToken :: Lens' ListUsageTotalsResponse (Maybe Text)
- listUsageTotalsResponse_totals :: Lens' ListUsageTotalsResponse (Maybe [UsageTotal])
- listUsageTotalsResponse_httpStatus :: Lens' ListUsageTotalsResponse Int
Creating a Request
data ListUsageTotals Source #
See: newListUsageTotals
smart constructor.
ListUsageTotals' | |
|
Instances
newListUsageTotals :: ListUsageTotals Source #
Create a value of ListUsageTotals
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:accountIds:ListUsageTotals'
, listUsageTotals_accountIds
- The Amazon Web Services account IDs to retrieve usage totals for.
$sel:maxResults:ListUsageTotals'
, listUsageTotals_maxResults
- The maximum number of results to return in the response.
ListUsageTotals
, listUsageTotals_nextToken
- A token to use for paginating results that are returned in the response.
Set the value of this parameter to null for the first request to a list
action. For subsequent calls, use the NextToken
value returned from
the previous request to continue listing results after the first page.
Request Lenses
listUsageTotals_accountIds :: Lens' ListUsageTotals (Maybe (NonEmpty Text)) Source #
The Amazon Web Services account IDs to retrieve usage totals for.
listUsageTotals_maxResults :: Lens' ListUsageTotals (Maybe Natural) Source #
The maximum number of results to return in the response.
listUsageTotals_nextToken :: Lens' ListUsageTotals (Maybe Text) Source #
A token to use for paginating results that are returned in the response.
Set the value of this parameter to null for the first request to a list
action. For subsequent calls, use the NextToken
value returned from
the previous request to continue listing results after the first page.
Destructuring the Response
data ListUsageTotalsResponse Source #
See: newListUsageTotalsResponse
smart constructor.
ListUsageTotalsResponse' | |
|
Instances
newListUsageTotalsResponse Source #
Create a value of ListUsageTotalsResponse
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:
ListUsageTotals
, listUsageTotalsResponse_nextToken
- The pagination parameter to be used on the next list operation to
retrieve more items.
$sel:totals:ListUsageTotalsResponse'
, listUsageTotalsResponse_totals
- An object with details on the total usage for the requested account.
$sel:httpStatus:ListUsageTotalsResponse'
, listUsageTotalsResponse_httpStatus
- The response's http status code.
Response Lenses
listUsageTotalsResponse_nextToken :: Lens' ListUsageTotalsResponse (Maybe Text) Source #
The pagination parameter to be used on the next list operation to retrieve more items.
listUsageTotalsResponse_totals :: Lens' ListUsageTotalsResponse (Maybe [UsageTotal]) Source #
An object with details on the total usage for the requested account.
listUsageTotalsResponse_httpStatus :: Lens' ListUsageTotalsResponse Int Source #
The response's http status code.