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

Description

Adds an alert subscription to a cost anomaly detection monitor. You can use each subscription to define subscribers with email or SNS notifications. Email subscribers can set an absolute or percentage threshold and a time frequency for receiving notifications.

Synopsis

Creating a Request

data CreateAnomalySubscription Source #

See: newCreateAnomalySubscription smart constructor.

Constructors

CreateAnomalySubscription' 

Fields

  • resourceTags :: Maybe [ResourceTag]

    An optional list of tags to associate with the specified AnomalySubscription . You can use resource tags to control access to your subscription 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
  • anomalySubscription :: AnomalySubscription

    The cost anomaly subscription object that you want to create.

Instances

Instances details
ToJSON CreateAnomalySubscription Source # 
Instance details

Defined in Amazonka.CostExplorer.CreateAnomalySubscription

ToHeaders CreateAnomalySubscription Source # 
Instance details

Defined in Amazonka.CostExplorer.CreateAnomalySubscription

ToPath CreateAnomalySubscription Source # 
Instance details

Defined in Amazonka.CostExplorer.CreateAnomalySubscription

ToQuery CreateAnomalySubscription Source # 
Instance details

Defined in Amazonka.CostExplorer.CreateAnomalySubscription

AWSRequest CreateAnomalySubscription Source # 
Instance details

Defined in Amazonka.CostExplorer.CreateAnomalySubscription

Generic CreateAnomalySubscription Source # 
Instance details

Defined in Amazonka.CostExplorer.CreateAnomalySubscription

Associated Types

type Rep CreateAnomalySubscription :: Type -> Type #

Read CreateAnomalySubscription Source # 
Instance details

Defined in Amazonka.CostExplorer.CreateAnomalySubscription

Show CreateAnomalySubscription Source # 
Instance details

Defined in Amazonka.CostExplorer.CreateAnomalySubscription

NFData CreateAnomalySubscription Source # 
Instance details

Defined in Amazonka.CostExplorer.CreateAnomalySubscription

Eq CreateAnomalySubscription Source # 
Instance details

Defined in Amazonka.CostExplorer.CreateAnomalySubscription

Hashable CreateAnomalySubscription Source # 
Instance details

Defined in Amazonka.CostExplorer.CreateAnomalySubscription

type AWSResponse CreateAnomalySubscription Source # 
Instance details

Defined in Amazonka.CostExplorer.CreateAnomalySubscription

type Rep CreateAnomalySubscription Source # 
Instance details

Defined in Amazonka.CostExplorer.CreateAnomalySubscription

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

newCreateAnomalySubscription Source #

Create a value of CreateAnomalySubscription 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:CreateAnomalySubscription', createAnomalySubscription_resourceTags - An optional list of tags to associate with the specified AnomalySubscription . You can use resource tags to control access to your subscription 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:anomalySubscription:CreateAnomalySubscription', createAnomalySubscription_anomalySubscription - The cost anomaly subscription object that you want to create.

Request Lenses

createAnomalySubscription_resourceTags :: Lens' CreateAnomalySubscription (Maybe [ResourceTag]) Source #

An optional list of tags to associate with the specified AnomalySubscription . You can use resource tags to control access to your subscription 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

createAnomalySubscription_anomalySubscription :: Lens' CreateAnomalySubscription AnomalySubscription Source #

The cost anomaly subscription object that you want to create.

Destructuring the Response

data CreateAnomalySubscriptionResponse Source #

See: newCreateAnomalySubscriptionResponse smart constructor.

Constructors

CreateAnomalySubscriptionResponse' 

Fields

Instances

Instances details
Generic CreateAnomalySubscriptionResponse Source # 
Instance details

Defined in Amazonka.CostExplorer.CreateAnomalySubscription

Associated Types

type Rep CreateAnomalySubscriptionResponse :: Type -> Type #

Read CreateAnomalySubscriptionResponse Source # 
Instance details

Defined in Amazonka.CostExplorer.CreateAnomalySubscription

Show CreateAnomalySubscriptionResponse Source # 
Instance details

Defined in Amazonka.CostExplorer.CreateAnomalySubscription

NFData CreateAnomalySubscriptionResponse Source # 
Instance details

Defined in Amazonka.CostExplorer.CreateAnomalySubscription

Eq CreateAnomalySubscriptionResponse Source # 
Instance details

Defined in Amazonka.CostExplorer.CreateAnomalySubscription

type Rep CreateAnomalySubscriptionResponse Source # 
Instance details

Defined in Amazonka.CostExplorer.CreateAnomalySubscription

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

newCreateAnomalySubscriptionResponse Source #

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

CreateAnomalySubscriptionResponse, createAnomalySubscriptionResponse_subscriptionArn - The unique identifier of your newly created cost anomaly subscription.

Response Lenses

createAnomalySubscriptionResponse_subscriptionArn :: Lens' CreateAnomalySubscriptionResponse Text Source #

The unique identifier of your newly created cost anomaly subscription.