| 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 |
Amazonka.CostExplorer.CreateAnomalySubscription
Description
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.
Constructors
| CreateAnomalySubscription' | |
Fields
| |
Instances
newCreateAnomalySubscription Source #
Arguments
| :: AnomalySubscription | |
| -> CreateAnomalySubscription |
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.
Constructors
| CreateAnomalySubscriptionResponse' | |
Fields
| |
Instances
newCreateAnomalySubscriptionResponse Source #
Arguments
| :: Int | |
| -> Text | |
| -> CreateAnomalySubscriptionResponse |
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.