amazonka-cost-explorer-2.0: Amazon Cost Explorer Service 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.CostExplorer.GetAnomalies

Description

Retrieves all of the cost anomalies detected on your account during the time period that's specified by the DateInterval object. Anomalies are available for up to 90 days.

Synopsis

Creating a Request

data GetAnomalies Source #

See: newGetAnomalies smart constructor.

Constructors

GetAnomalies' 

Fields

  • feedback :: Maybe AnomalyFeedbackType

    Filters anomaly results by the feedback field on the anomaly object.

  • maxResults :: Maybe Int

    The number of entries a paginated response contains.

  • monitorArn :: Maybe Text

    Retrieves all of the cost anomalies detected for a specific cost anomaly monitor Amazon Resource Name (ARN).

  • nextPageToken :: Maybe Text

    The token to retrieve the next set of results. Amazon Web Services provides the token when the response from a previous call has more results than the maximum page size.

  • totalImpact :: Maybe TotalImpactFilter

    Filters anomaly results by the total impact field on the anomaly object. For example, you can filter anomalies GREATER_THAN 200.00 to retrieve anomalies, with an estimated dollar impact greater than 200.

  • dateInterval :: AnomalyDateInterval

    Assigns the start and end dates for retrieving cost anomalies. The returned anomaly object will have an AnomalyEndDate in the specified time range.

Instances

Instances details
ToJSON GetAnomalies Source # 
Instance details

Defined in Amazonka.CostExplorer.GetAnomalies

ToHeaders GetAnomalies Source # 
Instance details

Defined in Amazonka.CostExplorer.GetAnomalies

ToPath GetAnomalies Source # 
Instance details

Defined in Amazonka.CostExplorer.GetAnomalies

ToQuery GetAnomalies Source # 
Instance details

Defined in Amazonka.CostExplorer.GetAnomalies

AWSRequest GetAnomalies Source # 
Instance details

Defined in Amazonka.CostExplorer.GetAnomalies

Associated Types

type AWSResponse GetAnomalies #

Generic GetAnomalies Source # 
Instance details

Defined in Amazonka.CostExplorer.GetAnomalies

Associated Types

type Rep GetAnomalies :: Type -> Type #

Read GetAnomalies Source # 
Instance details

Defined in Amazonka.CostExplorer.GetAnomalies

Show GetAnomalies Source # 
Instance details

Defined in Amazonka.CostExplorer.GetAnomalies

NFData GetAnomalies Source # 
Instance details

Defined in Amazonka.CostExplorer.GetAnomalies

Methods

rnf :: GetAnomalies -> () #

Eq GetAnomalies Source # 
Instance details

Defined in Amazonka.CostExplorer.GetAnomalies

Hashable GetAnomalies Source # 
Instance details

Defined in Amazonka.CostExplorer.GetAnomalies

type AWSResponse GetAnomalies Source # 
Instance details

Defined in Amazonka.CostExplorer.GetAnomalies

type Rep GetAnomalies Source # 
Instance details

Defined in Amazonka.CostExplorer.GetAnomalies

newGetAnomalies Source #

Create a value of GetAnomalies 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:

GetAnomalies, getAnomalies_feedback - Filters anomaly results by the feedback field on the anomaly object.

$sel:maxResults:GetAnomalies', getAnomalies_maxResults - The number of entries a paginated response contains.

GetAnomalies, getAnomalies_monitorArn - Retrieves all of the cost anomalies detected for a specific cost anomaly monitor Amazon Resource Name (ARN).

GetAnomalies, getAnomalies_nextPageToken - The token to retrieve the next set of results. Amazon Web Services provides the token when the response from a previous call has more results than the maximum page size.

GetAnomalies, getAnomalies_totalImpact - Filters anomaly results by the total impact field on the anomaly object. For example, you can filter anomalies GREATER_THAN 200.00 to retrieve anomalies, with an estimated dollar impact greater than 200.

$sel:dateInterval:GetAnomalies', getAnomalies_dateInterval - Assigns the start and end dates for retrieving cost anomalies. The returned anomaly object will have an AnomalyEndDate in the specified time range.

Request Lenses

getAnomalies_feedback :: Lens' GetAnomalies (Maybe AnomalyFeedbackType) Source #

Filters anomaly results by the feedback field on the anomaly object.

getAnomalies_maxResults :: Lens' GetAnomalies (Maybe Int) Source #

The number of entries a paginated response contains.

getAnomalies_monitorArn :: Lens' GetAnomalies (Maybe Text) Source #

Retrieves all of the cost anomalies detected for a specific cost anomaly monitor Amazon Resource Name (ARN).

getAnomalies_nextPageToken :: Lens' GetAnomalies (Maybe Text) Source #

The token to retrieve the next set of results. Amazon Web Services provides the token when the response from a previous call has more results than the maximum page size.

getAnomalies_totalImpact :: Lens' GetAnomalies (Maybe TotalImpactFilter) Source #

Filters anomaly results by the total impact field on the anomaly object. For example, you can filter anomalies GREATER_THAN 200.00 to retrieve anomalies, with an estimated dollar impact greater than 200.

getAnomalies_dateInterval :: Lens' GetAnomalies AnomalyDateInterval Source #

Assigns the start and end dates for retrieving cost anomalies. The returned anomaly object will have an AnomalyEndDate in the specified time range.

Destructuring the Response

data GetAnomaliesResponse Source #

See: newGetAnomaliesResponse smart constructor.

Constructors

GetAnomaliesResponse' 

Fields

  • nextPageToken :: Maybe Text

    The token to retrieve the next set of results. Amazon Web Services provides the token when the response from a previous call has more results than the maximum page size.

  • httpStatus :: Int

    The response's http status code.

  • anomalies :: [Anomaly]

    A list of cost anomalies.

Instances

Instances details
Generic GetAnomaliesResponse Source # 
Instance details

Defined in Amazonka.CostExplorer.GetAnomalies

Associated Types

type Rep GetAnomaliesResponse :: Type -> Type #

Read GetAnomaliesResponse Source # 
Instance details

Defined in Amazonka.CostExplorer.GetAnomalies

Show GetAnomaliesResponse Source # 
Instance details

Defined in Amazonka.CostExplorer.GetAnomalies

NFData GetAnomaliesResponse Source # 
Instance details

Defined in Amazonka.CostExplorer.GetAnomalies

Methods

rnf :: GetAnomaliesResponse -> () #

Eq GetAnomaliesResponse Source # 
Instance details

Defined in Amazonka.CostExplorer.GetAnomalies

type Rep GetAnomaliesResponse Source # 
Instance details

Defined in Amazonka.CostExplorer.GetAnomalies

type Rep GetAnomaliesResponse = D1 ('MetaData "GetAnomaliesResponse" "Amazonka.CostExplorer.GetAnomalies" "amazonka-cost-explorer-2.0-QqVzyVvst98QYs5s2Ea4h" 'False) (C1 ('MetaCons "GetAnomaliesResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextPageToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "anomalies") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Anomaly]))))

newGetAnomaliesResponse Source #

Create a value of GetAnomaliesResponse 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:

GetAnomalies, getAnomaliesResponse_nextPageToken - The token to retrieve the next set of results. Amazon Web Services provides the token when the response from a previous call has more results than the maximum page size.

$sel:httpStatus:GetAnomaliesResponse', getAnomaliesResponse_httpStatus - The response's http status code.

$sel:anomalies:GetAnomaliesResponse', getAnomaliesResponse_anomalies - A list of cost anomalies.

Response Lenses

getAnomaliesResponse_nextPageToken :: Lens' GetAnomaliesResponse (Maybe Text) Source #

The token to retrieve the next set of results. Amazon Web Services provides the token when the response from a previous call has more results than the maximum page size.