Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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
- data CreateAnomalySubscription = CreateAnomalySubscription' {}
- newCreateAnomalySubscription :: AnomalySubscription -> CreateAnomalySubscription
- createAnomalySubscription_resourceTags :: Lens' CreateAnomalySubscription (Maybe [ResourceTag])
- createAnomalySubscription_anomalySubscription :: Lens' CreateAnomalySubscription AnomalySubscription
- data CreateAnomalySubscriptionResponse = CreateAnomalySubscriptionResponse' {
- httpStatus :: Int
- subscriptionArn :: Text
- newCreateAnomalySubscriptionResponse :: Int -> Text -> CreateAnomalySubscriptionResponse
- createAnomalySubscriptionResponse_httpStatus :: Lens' CreateAnomalySubscriptionResponse Int
- createAnomalySubscriptionResponse_subscriptionArn :: Lens' CreateAnomalySubscriptionResponse Text
Creating a Request
data CreateAnomalySubscription Source #
See: newCreateAnomalySubscription
smart constructor.
CreateAnomalySubscription' | |
|
Instances
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.
CreateAnomalySubscriptionResponse' | |
|
Instances
Generic CreateAnomalySubscriptionResponse Source # | |
Read CreateAnomalySubscriptionResponse Source # | |
Show CreateAnomalySubscriptionResponse Source # | |
NFData CreateAnomalySubscriptionResponse Source # | |
Defined in Amazonka.CostExplorer.CreateAnomalySubscription rnf :: CreateAnomalySubscriptionResponse -> () # | |
Eq CreateAnomalySubscriptionResponse Source # | |
type Rep CreateAnomalySubscriptionResponse Source # | |
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_httpStatus :: Lens' CreateAnomalySubscriptionResponse Int Source #
The response's http status code.
createAnomalySubscriptionResponse_subscriptionArn :: Lens' CreateAnomalySubscriptionResponse Text Source #
The unique identifier of your newly created cost anomaly subscription.