libZSservicesZSamazonka-guarddutyZSamazonka-guardduty
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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 projects 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

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

  • maxResults :: Maybe Natural

    The maximum number of results to return in the response.

  • 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
Eq GetUsageStatistics Source # 
Instance details

Defined in Amazonka.GuardDuty.GetUsageStatistics

Read GetUsageStatistics Source # 
Instance details

Defined in Amazonka.GuardDuty.GetUsageStatistics

Show GetUsageStatistics Source # 
Instance details

Defined in Amazonka.GuardDuty.GetUsageStatistics

Generic GetUsageStatistics Source # 
Instance details

Defined in Amazonka.GuardDuty.GetUsageStatistics

Associated Types

type Rep GetUsageStatistics :: Type -> Type #

NFData GetUsageStatistics Source # 
Instance details

Defined in Amazonka.GuardDuty.GetUsageStatistics

Methods

rnf :: GetUsageStatistics -> () #

Hashable GetUsageStatistics Source # 
Instance details

Defined in Amazonka.GuardDuty.GetUsageStatistics

ToJSON GetUsageStatistics Source # 
Instance details

Defined in Amazonka.GuardDuty.GetUsageStatistics

AWSRequest GetUsageStatistics Source # 
Instance details

Defined in Amazonka.GuardDuty.GetUsageStatistics

Associated Types

type AWSResponse 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

type Rep GetUsageStatistics Source # 
Instance details

Defined in Amazonka.GuardDuty.GetUsageStatistics

type Rep GetUsageStatistics = D1 ('MetaData "GetUsageStatistics" "Amazonka.GuardDuty.GetUsageStatistics" "libZSservicesZSamazonka-guarddutyZSamazonka-guardduty" 'False) (C1 ('MetaCons "GetUsageStatistics'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "unit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)))) :*: (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)))))
type AWSResponse GetUsageStatistics Source # 
Instance details

Defined in Amazonka.GuardDuty.GetUsageStatistics

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:nextToken: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.

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

$sel:maxResults:GetUsageStatistics', getUsageStatistics_maxResults - The maximum number of results to return in the response.

$sel:detectorId: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_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_maxResults :: Lens' GetUsageStatistics (Maybe Natural) Source #

The maximum number of results to return in the response.

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
Eq GetUsageStatisticsResponse Source # 
Instance details

Defined in Amazonka.GuardDuty.GetUsageStatistics

Read GetUsageStatisticsResponse Source # 
Instance details

Defined in Amazonka.GuardDuty.GetUsageStatistics

Show GetUsageStatisticsResponse Source # 
Instance details

Defined in Amazonka.GuardDuty.GetUsageStatistics

Generic GetUsageStatisticsResponse Source # 
Instance details

Defined in Amazonka.GuardDuty.GetUsageStatistics

Associated Types

type Rep GetUsageStatisticsResponse :: Type -> Type #

NFData 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" "libZSservicesZSamazonka-guarddutyZSamazonka-guardduty" 'False) (C1 ('MetaCons "GetUsageStatisticsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "usageStatistics") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe UsageStatistics)) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: 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:

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

$sel:nextToken:GetUsageStatistics', getUsageStatisticsResponse_nextToken - The pagination parameter to be used on the next list operation to retrieve more items.

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

Response Lenses

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

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

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

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