Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Adds a subscription to a cost anomaly detection monitor. You can use each subscription to define subscribers with email or SNS notifications. Email subscribers can set a dollar threshold and a time frequency for receiving notifications.
Synopsis
- data CreateAnomalySubscription = CreateAnomalySubscription' {}
- newCreateAnomalySubscription :: AnomalySubscription -> CreateAnomalySubscription
- 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:anomalySubscription:CreateAnomalySubscription'
, createAnomalySubscription_anomalySubscription
- The cost anomaly subscription object that you want to create.
Request Lenses
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
Eq CreateAnomalySubscriptionResponse Source # | |
Read CreateAnomalySubscriptionResponse Source # | |
Show CreateAnomalySubscriptionResponse Source # | |
Generic CreateAnomalySubscriptionResponse Source # | |
NFData CreateAnomalySubscriptionResponse Source # | |
Defined in Amazonka.CostExplorer.CreateAnomalySubscription rnf :: CreateAnomalySubscriptionResponse -> () # | |
type Rep CreateAnomalySubscriptionResponse Source # | |
Defined in Amazonka.CostExplorer.CreateAnomalySubscription type Rep CreateAnomalySubscriptionResponse = D1 ('MetaData "CreateAnomalySubscriptionResponse" "Amazonka.CostExplorer.CreateAnomalySubscription" "libZSservicesZSamazonka-cost-explorerZSamazonka-cost-explorer" '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.
$sel:subscriptionArn: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.