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

Description

Creates a new cost anomaly detection monitor with the requested type and monitor specification.

Synopsis

Creating a Request

data CreateAnomalyMonitor Source #

See: newCreateAnomalyMonitor smart constructor.

Constructors

CreateAnomalyMonitor' 

Fields

  • resourceTags :: Maybe [ResourceTag]

    An optional list of tags to associate with the specified AnomalyMonitor . You can use resource tags to control access to your monitor using IAM policies.

    Each tag consists of a key and a value, and each key must be unique for the resource. The following restrictions apply to resource tags:

    • Although the maximum number of array members is 200, you can assign a maximum of 50 user-tags to one resource. The remaining are reserved for Amazon Web Services use
    • The maximum length of a key is 128 characters
    • The maximum length of a value is 256 characters
    • Keys and values can only contain alphanumeric characters, spaces, and any of the following: _.:/=+@-
    • Keys and values are case sensitive
    • Keys and values are trimmed for any leading or trailing whitespaces
    • Don’t use aws: as a prefix for your keys. This prefix is reserved for Amazon Web Services use
  • anomalyMonitor :: AnomalyMonitor

    The cost anomaly detection monitor object that you want to create.

Instances

Instances details
ToJSON CreateAnomalyMonitor Source # 
Instance details

Defined in Amazonka.CostExplorer.CreateAnomalyMonitor

ToHeaders CreateAnomalyMonitor Source # 
Instance details

Defined in Amazonka.CostExplorer.CreateAnomalyMonitor

ToPath CreateAnomalyMonitor Source # 
Instance details

Defined in Amazonka.CostExplorer.CreateAnomalyMonitor

ToQuery CreateAnomalyMonitor Source # 
Instance details

Defined in Amazonka.CostExplorer.CreateAnomalyMonitor

AWSRequest CreateAnomalyMonitor Source # 
Instance details

Defined in Amazonka.CostExplorer.CreateAnomalyMonitor

Associated Types

type AWSResponse CreateAnomalyMonitor #

Generic CreateAnomalyMonitor Source # 
Instance details

Defined in Amazonka.CostExplorer.CreateAnomalyMonitor

Associated Types

type Rep CreateAnomalyMonitor :: Type -> Type #

Read CreateAnomalyMonitor Source # 
Instance details

Defined in Amazonka.CostExplorer.CreateAnomalyMonitor

Show CreateAnomalyMonitor Source # 
Instance details

Defined in Amazonka.CostExplorer.CreateAnomalyMonitor

NFData CreateAnomalyMonitor Source # 
Instance details

Defined in Amazonka.CostExplorer.CreateAnomalyMonitor

Methods

rnf :: CreateAnomalyMonitor -> () #

Eq CreateAnomalyMonitor Source # 
Instance details

Defined in Amazonka.CostExplorer.CreateAnomalyMonitor

Hashable CreateAnomalyMonitor Source # 
Instance details

Defined in Amazonka.CostExplorer.CreateAnomalyMonitor

type AWSResponse CreateAnomalyMonitor Source # 
Instance details

Defined in Amazonka.CostExplorer.CreateAnomalyMonitor

type Rep CreateAnomalyMonitor Source # 
Instance details

Defined in Amazonka.CostExplorer.CreateAnomalyMonitor

type Rep CreateAnomalyMonitor = D1 ('MetaData "CreateAnomalyMonitor" "Amazonka.CostExplorer.CreateAnomalyMonitor" "amazonka-cost-explorer-2.0-QqVzyVvst98QYs5s2Ea4h" 'False) (C1 ('MetaCons "CreateAnomalyMonitor'" 'PrefixI 'True) (S1 ('MetaSel ('Just "resourceTags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [ResourceTag])) :*: S1 ('MetaSel ('Just "anomalyMonitor") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 AnomalyMonitor)))

newCreateAnomalyMonitor Source #

Create a value of CreateAnomalyMonitor 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:resourceTags:CreateAnomalyMonitor', createAnomalyMonitor_resourceTags - An optional list of tags to associate with the specified AnomalyMonitor . You can use resource tags to control access to your monitor using IAM policies.

Each tag consists of a key and a value, and each key must be unique for the resource. The following restrictions apply to resource tags:

  • Although the maximum number of array members is 200, you can assign a maximum of 50 user-tags to one resource. The remaining are reserved for Amazon Web Services use
  • The maximum length of a key is 128 characters
  • The maximum length of a value is 256 characters
  • Keys and values can only contain alphanumeric characters, spaces, and any of the following: _.:/=+@-
  • Keys and values are case sensitive
  • Keys and values are trimmed for any leading or trailing whitespaces
  • Don’t use aws: as a prefix for your keys. This prefix is reserved for Amazon Web Services use

$sel:anomalyMonitor:CreateAnomalyMonitor', createAnomalyMonitor_anomalyMonitor - The cost anomaly detection monitor object that you want to create.

Request Lenses

createAnomalyMonitor_resourceTags :: Lens' CreateAnomalyMonitor (Maybe [ResourceTag]) Source #

An optional list of tags to associate with the specified AnomalyMonitor . You can use resource tags to control access to your monitor using IAM policies.

Each tag consists of a key and a value, and each key must be unique for the resource. The following restrictions apply to resource tags:

  • Although the maximum number of array members is 200, you can assign a maximum of 50 user-tags to one resource. The remaining are reserved for Amazon Web Services use
  • The maximum length of a key is 128 characters
  • The maximum length of a value is 256 characters
  • Keys and values can only contain alphanumeric characters, spaces, and any of the following: _.:/=+@-
  • Keys and values are case sensitive
  • Keys and values are trimmed for any leading or trailing whitespaces
  • Don’t use aws: as a prefix for your keys. This prefix is reserved for Amazon Web Services use

createAnomalyMonitor_anomalyMonitor :: Lens' CreateAnomalyMonitor AnomalyMonitor Source #

The cost anomaly detection monitor object that you want to create.

Destructuring the Response

data CreateAnomalyMonitorResponse Source #

See: newCreateAnomalyMonitorResponse smart constructor.

Constructors

CreateAnomalyMonitorResponse' 

Fields

  • httpStatus :: Int

    The response's http status code.

  • monitorArn :: Text

    The unique identifier of your newly created cost anomaly detection monitor.

Instances

Instances details
Generic CreateAnomalyMonitorResponse Source # 
Instance details

Defined in Amazonka.CostExplorer.CreateAnomalyMonitor

Associated Types

type Rep CreateAnomalyMonitorResponse :: Type -> Type #

Read CreateAnomalyMonitorResponse Source # 
Instance details

Defined in Amazonka.CostExplorer.CreateAnomalyMonitor

Show CreateAnomalyMonitorResponse Source # 
Instance details

Defined in Amazonka.CostExplorer.CreateAnomalyMonitor

NFData CreateAnomalyMonitorResponse Source # 
Instance details

Defined in Amazonka.CostExplorer.CreateAnomalyMonitor

Eq CreateAnomalyMonitorResponse Source # 
Instance details

Defined in Amazonka.CostExplorer.CreateAnomalyMonitor

type Rep CreateAnomalyMonitorResponse Source # 
Instance details

Defined in Amazonka.CostExplorer.CreateAnomalyMonitor

type Rep CreateAnomalyMonitorResponse = D1 ('MetaData "CreateAnomalyMonitorResponse" "Amazonka.CostExplorer.CreateAnomalyMonitor" "amazonka-cost-explorer-2.0-QqVzyVvst98QYs5s2Ea4h" 'False) (C1 ('MetaCons "CreateAnomalyMonitorResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "monitorArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newCreateAnomalyMonitorResponse Source #

Create a value of CreateAnomalyMonitorResponse 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:httpStatus:CreateAnomalyMonitorResponse', createAnomalyMonitorResponse_httpStatus - The response's http status code.

CreateAnomalyMonitorResponse, createAnomalyMonitorResponse_monitorArn - The unique identifier of your newly created cost anomaly detection monitor.

Response Lenses

createAnomalyMonitorResponse_monitorArn :: Lens' CreateAnomalyMonitorResponse Text Source #

The unique identifier of your newly created cost anomaly detection monitor.