libZSservicesZSamazonka-cost-explorerZSamazonka-cost-explorer
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.CostExplorer.GetAnomalies

Description

Retrieves all of the cost anomalies detected on your account during the time period that's specified by the DateInterval object.

Synopsis

Creating a Request

data GetAnomalies Source #

See: newGetAnomalies smart constructor.

Constructors

GetAnomalies' 

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.

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

  • maxResults :: Maybe Int

    The number of entries a paginated response contains.

  • feedback :: Maybe AnomalyFeedbackType

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

  • monitorArn :: Maybe Text

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

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

Defined in Amazonka.CostExplorer.GetAnomalies

Read GetAnomalies Source # 
Instance details

Defined in Amazonka.CostExplorer.GetAnomalies

Show GetAnomalies Source # 
Instance details

Defined in Amazonka.CostExplorer.GetAnomalies

Generic GetAnomalies Source # 
Instance details

Defined in Amazonka.CostExplorer.GetAnomalies

Associated Types

type Rep GetAnomalies :: Type -> Type #

NFData GetAnomalies Source # 
Instance details

Defined in Amazonka.CostExplorer.GetAnomalies

Methods

rnf :: GetAnomalies -> () #

Hashable GetAnomalies Source # 
Instance details

Defined in Amazonka.CostExplorer.GetAnomalies

ToJSON GetAnomalies Source # 
Instance details

Defined in Amazonka.CostExplorer.GetAnomalies

AWSRequest GetAnomalies Source # 
Instance details

Defined in Amazonka.CostExplorer.GetAnomalies

Associated Types

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

type Rep GetAnomalies Source # 
Instance details

Defined in Amazonka.CostExplorer.GetAnomalies

type Rep GetAnomalies = D1 ('MetaData "GetAnomalies" "Amazonka.CostExplorer.GetAnomalies" "libZSservicesZSamazonka-cost-explorerZSamazonka-cost-explorer" 'False) (C1 ('MetaCons "GetAnomalies'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "nextPageToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "totalImpact") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe TotalImpactFilter)) :*: S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)))) :*: (S1 ('MetaSel ('Just "feedback") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe AnomalyFeedbackType)) :*: (S1 ('MetaSel ('Just "monitorArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "dateInterval") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 AnomalyDateInterval)))))
type AWSResponse 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:

$sel:nextPageToken: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.

$sel:totalImpact: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:maxResults:GetAnomalies', getAnomalies_maxResults - The number of entries a paginated response contains.

$sel:feedback:GetAnomalies', getAnomalies_feedback - Filters anomaly results by the feedback field on the anomaly object.

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

$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_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_maxResults :: Lens' GetAnomalies (Maybe Int) Source #

The number of entries a paginated response contains.

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

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

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

Defined in Amazonka.CostExplorer.GetAnomalies

Read GetAnomaliesResponse Source # 
Instance details

Defined in Amazonka.CostExplorer.GetAnomalies

Show GetAnomaliesResponse Source # 
Instance details

Defined in Amazonka.CostExplorer.GetAnomalies

Generic GetAnomaliesResponse Source # 
Instance details

Defined in Amazonka.CostExplorer.GetAnomalies

Associated Types

type Rep GetAnomaliesResponse :: Type -> Type #

NFData GetAnomaliesResponse Source # 
Instance details

Defined in Amazonka.CostExplorer.GetAnomalies

Methods

rnf :: GetAnomaliesResponse -> () #

type Rep GetAnomaliesResponse Source # 
Instance details

Defined in Amazonka.CostExplorer.GetAnomalies

type Rep GetAnomaliesResponse = D1 ('MetaData "GetAnomaliesResponse" "Amazonka.CostExplorer.GetAnomalies" "libZSservicesZSamazonka-cost-explorerZSamazonka-cost-explorer" '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:

$sel:nextPageToken: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.