amazonka-guardduty-2.0: Amazon GuardDuty 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.GuardDuty.GetUsageStatistics

Description

Lists Amazon GuardDuty usage statistics over the last 30 days for the specified detector ID. For newly enabled detectors or data sources, the cost returned will include only the usage so far under 30 days. This may differ from the cost metrics in the console, which project usage over 30 days to provide a monthly cost estimate. For more information, see Understanding How Usage Costs are Calculated.

Synopsis

Creating a Request

data GetUsageStatistics Source #

See: newGetUsageStatistics smart constructor.

Constructors

GetUsageStatistics' 

Fields

  • 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.

  • unit :: Maybe Text

    The currency unit you would like to view your usage statistics in. Current valid values are USD.

  • detectorId :: Text

    The ID of the detector that specifies the GuardDuty service whose usage statistics you want to retrieve.

  • usageStatisticType :: UsageStatisticType

    The type of usage statistics to retrieve.

  • usageCriteria :: UsageCriteria

    Represents the criteria used for querying usage.

Instances

Instances details
ToJSON GetUsageStatistics Source # 
Instance details

Defined in Amazonka.GuardDuty.GetUsageStatistics

ToHeaders GetUsageStatistics Source # 
Instance details

Defined in Amazonka.GuardDuty.GetUsageStatistics

ToPath GetUsageStatistics Source # 
Instance details

Defined in Amazonka.GuardDuty.GetUsageStatistics

ToQuery GetUsageStatistics Source # 
Instance details

Defined in Amazonka.GuardDuty.GetUsageStatistics

AWSRequest GetUsageStatistics Source # 
Instance details

Defined in Amazonka.GuardDuty.GetUsageStatistics

Associated Types

type AWSResponse GetUsageStatistics #

Generic GetUsageStatistics Source # 
Instance details

Defined in Amazonka.GuardDuty.GetUsageStatistics

Associated Types

type Rep GetUsageStatistics :: Type -> Type #

Read GetUsageStatistics Source # 
Instance details

Defined in Amazonka.GuardDuty.GetUsageStatistics

Show GetUsageStatistics Source # 
Instance details

Defined in Amazonka.GuardDuty.GetUsageStatistics

NFData GetUsageStatistics Source # 
Instance details

Defined in Amazonka.GuardDuty.GetUsageStatistics

Methods

rnf :: GetUsageStatistics -> () #

Eq GetUsageStatistics Source # 
Instance details

Defined in Amazonka.GuardDuty.GetUsageStatistics

Hashable GetUsageStatistics Source # 
Instance details

Defined in Amazonka.GuardDuty.GetUsageStatistics

type AWSResponse GetUsageStatistics Source # 
Instance details

Defined in Amazonka.GuardDuty.GetUsageStatistics

type Rep GetUsageStatistics Source # 
Instance details

Defined in Amazonka.GuardDuty.GetUsageStatistics

type Rep GetUsageStatistics = D1 ('MetaData "GetUsageStatistics" "Amazonka.GuardDuty.GetUsageStatistics" "amazonka-guardduty-2.0-2NN502sGcQRH5risQZb24c" 'False) (C1 ('MetaCons "GetUsageStatistics'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "unit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 ('MetaSel ('Just "detectorId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "usageStatisticType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 UsageStatisticType) :*: S1 ('MetaSel ('Just "usageCriteria") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 UsageCriteria)))))

newGetUsageStatistics 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:maxResults:GetUsageStatistics', getUsageStatistics_maxResults - The maximum number of results to return in the response.

GetUsageStatistics, getUsageStatistics_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.

GetUsageStatistics, getUsageStatistics_unit - The currency unit you would like to view your usage statistics in. Current valid values are USD.

GetUsageStatistics, getUsageStatistics_detectorId - The ID of the detector that specifies the GuardDuty service whose usage statistics you want to retrieve.

$sel:usageStatisticType:GetUsageStatistics', getUsageStatistics_usageStatisticType - The type of usage statistics to retrieve.

$sel:usageCriteria:GetUsageStatistics', getUsageStatistics_usageCriteria - Represents the criteria used for querying usage.

Request Lenses

getUsageStatistics_maxResults :: Lens' GetUsageStatistics (Maybe Natural) Source #

The maximum number of results to return in the response.

getUsageStatistics_nextToken :: Lens' GetUsageStatistics (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.

getUsageStatistics_unit :: Lens' GetUsageStatistics (Maybe Text) Source #

The currency unit you would like to view your usage statistics in. Current valid values are USD.

getUsageStatistics_detectorId :: Lens' GetUsageStatistics Text Source #

The ID of the detector that specifies the GuardDuty service whose usage statistics you want to retrieve.

getUsageStatistics_usageCriteria :: Lens' GetUsageStatistics UsageCriteria Source #

Represents the criteria used for querying usage.

Destructuring the Response

data GetUsageStatisticsResponse Source #

See: newGetUsageStatisticsResponse smart constructor.

Constructors

GetUsageStatisticsResponse' 

Fields

Instances

Instances details
Generic GetUsageStatisticsResponse Source # 
Instance details

Defined in Amazonka.GuardDuty.GetUsageStatistics

Associated Types

type Rep GetUsageStatisticsResponse :: Type -> Type #

Read GetUsageStatisticsResponse Source # 
Instance details

Defined in Amazonka.GuardDuty.GetUsageStatistics

Show GetUsageStatisticsResponse Source # 
Instance details

Defined in Amazonka.GuardDuty.GetUsageStatistics

NFData GetUsageStatisticsResponse Source # 
Instance details

Defined in Amazonka.GuardDuty.GetUsageStatistics

Eq GetUsageStatisticsResponse Source # 
Instance details

Defined in Amazonka.GuardDuty.GetUsageStatistics

type Rep GetUsageStatisticsResponse Source # 
Instance details

Defined in Amazonka.GuardDuty.GetUsageStatistics

type Rep GetUsageStatisticsResponse = D1 ('MetaData "GetUsageStatisticsResponse" "Amazonka.GuardDuty.GetUsageStatistics" "amazonka-guardduty-2.0-2NN502sGcQRH5risQZb24c" 'False) (C1 ('MetaCons "GetUsageStatisticsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "usageStatistics") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe UsageStatistics)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

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:

GetUsageStatistics, getUsageStatisticsResponse_nextToken - The pagination parameter to be used on the next list operation to retrieve more items.

$sel:usageStatistics:GetUsageStatisticsResponse', getUsageStatisticsResponse_usageStatistics - The usage statistics object. If a UsageStatisticType was provided, the objects representing other types will be null.

$sel:httpStatus:GetUsageStatisticsResponse', getUsageStatisticsResponse_httpStatus - The response's http status code.

Response Lenses

getUsageStatisticsResponse_nextToken :: Lens' GetUsageStatisticsResponse (Maybe Text) Source #

The pagination parameter to be used on the next list operation to retrieve more items.

getUsageStatisticsResponse_usageStatistics :: Lens' GetUsageStatisticsResponse (Maybe UsageStatistics) Source #

The usage statistics object. If a UsageStatisticType was provided, the objects representing other types will be null.