amazonka-inspector2-2.0: Amazon Inspector2 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.Inspector2.ListUsageTotals

Description

Lists the Amazon Inspector usage totals over the last 30 days.

This operation returns paginated results.

Synopsis

Creating a Request

data ListUsageTotals Source #

See: newListUsageTotals smart constructor.

Constructors

ListUsageTotals' 

Fields

  • accountIds :: Maybe (NonEmpty Text)

    The Amazon Web Services account IDs to retrieve usage totals for.

  • maxResults :: Maybe Natural

    The maximum number of results to return in the response.

  • nextToken :: Maybe Text

    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.

Instances

Instances details
ToJSON ListUsageTotals Source # 
Instance details

Defined in Amazonka.Inspector2.ListUsageTotals

ToHeaders ListUsageTotals Source # 
Instance details

Defined in Amazonka.Inspector2.ListUsageTotals

ToPath ListUsageTotals Source # 
Instance details

Defined in Amazonka.Inspector2.ListUsageTotals

ToQuery ListUsageTotals Source # 
Instance details

Defined in Amazonka.Inspector2.ListUsageTotals

AWSPager ListUsageTotals Source # 
Instance details

Defined in Amazonka.Inspector2.ListUsageTotals

AWSRequest ListUsageTotals Source # 
Instance details

Defined in Amazonka.Inspector2.ListUsageTotals

Associated Types

type AWSResponse ListUsageTotals #

Generic ListUsageTotals Source # 
Instance details

Defined in Amazonka.Inspector2.ListUsageTotals

Associated Types

type Rep ListUsageTotals :: Type -> Type #

Read ListUsageTotals Source # 
Instance details

Defined in Amazonka.Inspector2.ListUsageTotals

Show ListUsageTotals Source # 
Instance details

Defined in Amazonka.Inspector2.ListUsageTotals

NFData ListUsageTotals Source # 
Instance details

Defined in Amazonka.Inspector2.ListUsageTotals

Methods

rnf :: ListUsageTotals -> () #

Eq ListUsageTotals Source # 
Instance details

Defined in Amazonka.Inspector2.ListUsageTotals

Hashable ListUsageTotals Source # 
Instance details

Defined in Amazonka.Inspector2.ListUsageTotals

type AWSResponse ListUsageTotals Source # 
Instance details

Defined in Amazonka.Inspector2.ListUsageTotals

type Rep ListUsageTotals Source # 
Instance details

Defined in Amazonka.Inspector2.ListUsageTotals

type Rep ListUsageTotals = D1 ('MetaData "ListUsageTotals" "Amazonka.Inspector2.ListUsageTotals" "amazonka-inspector2-2.0-EI0CfxGdACSBWwvVde8cFy" 'False) (C1 ('MetaCons "ListUsageTotals'" 'PrefixI 'True) (S1 ('MetaSel ('Just "accountIds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (NonEmpty Text))) :*: (S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))

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.

Constructors

ListUsageTotalsResponse' 

Fields

Instances

Instances details
Generic ListUsageTotalsResponse Source # 
Instance details

Defined in Amazonka.Inspector2.ListUsageTotals

Associated Types

type Rep ListUsageTotalsResponse :: Type -> Type #

Read ListUsageTotalsResponse Source # 
Instance details

Defined in Amazonka.Inspector2.ListUsageTotals

Show ListUsageTotalsResponse Source # 
Instance details

Defined in Amazonka.Inspector2.ListUsageTotals

NFData ListUsageTotalsResponse Source # 
Instance details

Defined in Amazonka.Inspector2.ListUsageTotals

Methods

rnf :: ListUsageTotalsResponse -> () #

Eq ListUsageTotalsResponse Source # 
Instance details

Defined in Amazonka.Inspector2.ListUsageTotals

type Rep ListUsageTotalsResponse Source # 
Instance details

Defined in Amazonka.Inspector2.ListUsageTotals

type Rep ListUsageTotalsResponse = D1 ('MetaData "ListUsageTotalsResponse" "Amazonka.Inspector2.ListUsageTotals" "amazonka-inspector2-2.0-EI0CfxGdACSBWwvVde8cFy" 'False) (C1 ('MetaCons "ListUsageTotalsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "totals") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [UsageTotal])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

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.