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 |
Updates an existing cost anomaly monitor subscription.
Synopsis
- data UpdateAnomalySubscription = UpdateAnomalySubscription' {}
- newUpdateAnomalySubscription :: Text -> UpdateAnomalySubscription
- updateAnomalySubscription_subscriptionName :: Lens' UpdateAnomalySubscription (Maybe Text)
- updateAnomalySubscription_frequency :: Lens' UpdateAnomalySubscription (Maybe AnomalySubscriptionFrequency)
- updateAnomalySubscription_threshold :: Lens' UpdateAnomalySubscription (Maybe Double)
- updateAnomalySubscription_monitorArnList :: Lens' UpdateAnomalySubscription (Maybe [Text])
- updateAnomalySubscription_subscribers :: Lens' UpdateAnomalySubscription (Maybe [Subscriber])
- updateAnomalySubscription_subscriptionArn :: Lens' UpdateAnomalySubscription Text
- data UpdateAnomalySubscriptionResponse = UpdateAnomalySubscriptionResponse' {
- httpStatus :: Int
- subscriptionArn :: Text
- newUpdateAnomalySubscriptionResponse :: Int -> Text -> UpdateAnomalySubscriptionResponse
- updateAnomalySubscriptionResponse_httpStatus :: Lens' UpdateAnomalySubscriptionResponse Int
- updateAnomalySubscriptionResponse_subscriptionArn :: Lens' UpdateAnomalySubscriptionResponse Text
Creating a Request
data UpdateAnomalySubscription Source #
See: newUpdateAnomalySubscription
smart constructor.
UpdateAnomalySubscription' | |
|
Instances
newUpdateAnomalySubscription Source #
Create a value of UpdateAnomalySubscription
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:subscriptionName:UpdateAnomalySubscription'
, updateAnomalySubscription_subscriptionName
- The new name of the subscription.
$sel:frequency:UpdateAnomalySubscription'
, updateAnomalySubscription_frequency
- The update to the frequency value that subscribers receive
notifications.
$sel:threshold:UpdateAnomalySubscription'
, updateAnomalySubscription_threshold
- The update to the threshold value for receiving notifications.
$sel:monitorArnList:UpdateAnomalySubscription'
, updateAnomalySubscription_monitorArnList
- A list of cost anomaly monitor ARNs.
$sel:subscribers:UpdateAnomalySubscription'
, updateAnomalySubscription_subscribers
- The update to the subscriber list.
$sel:subscriptionArn:UpdateAnomalySubscription'
, updateAnomalySubscription_subscriptionArn
- A cost anomaly subscription Amazon Resource Name (ARN).
Request Lenses
updateAnomalySubscription_subscriptionName :: Lens' UpdateAnomalySubscription (Maybe Text) Source #
The new name of the subscription.
updateAnomalySubscription_frequency :: Lens' UpdateAnomalySubscription (Maybe AnomalySubscriptionFrequency) Source #
The update to the frequency value that subscribers receive notifications.
updateAnomalySubscription_threshold :: Lens' UpdateAnomalySubscription (Maybe Double) Source #
The update to the threshold value for receiving notifications.
updateAnomalySubscription_monitorArnList :: Lens' UpdateAnomalySubscription (Maybe [Text]) Source #
A list of cost anomaly monitor ARNs.
updateAnomalySubscription_subscribers :: Lens' UpdateAnomalySubscription (Maybe [Subscriber]) Source #
The update to the subscriber list.
updateAnomalySubscription_subscriptionArn :: Lens' UpdateAnomalySubscription Text Source #
A cost anomaly subscription Amazon Resource Name (ARN).
Destructuring the Response
data UpdateAnomalySubscriptionResponse Source #
See: newUpdateAnomalySubscriptionResponse
smart constructor.
UpdateAnomalySubscriptionResponse' | |
|
Instances
Eq UpdateAnomalySubscriptionResponse Source # | |
Read UpdateAnomalySubscriptionResponse Source # | |
Show UpdateAnomalySubscriptionResponse Source # | |
Generic UpdateAnomalySubscriptionResponse Source # | |
NFData UpdateAnomalySubscriptionResponse Source # | |
Defined in Amazonka.CostExplorer.UpdateAnomalySubscription rnf :: UpdateAnomalySubscriptionResponse -> () # | |
type Rep UpdateAnomalySubscriptionResponse Source # | |
Defined in Amazonka.CostExplorer.UpdateAnomalySubscription type Rep UpdateAnomalySubscriptionResponse = D1 ('MetaData "UpdateAnomalySubscriptionResponse" "Amazonka.CostExplorer.UpdateAnomalySubscription" "libZSservicesZSamazonka-cost-explorerZSamazonka-cost-explorer" 'False) (C1 ('MetaCons "UpdateAnomalySubscriptionResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "subscriptionArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))) |
newUpdateAnomalySubscriptionResponse Source #
Create a value of UpdateAnomalySubscriptionResponse
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:UpdateAnomalySubscriptionResponse'
, updateAnomalySubscriptionResponse_httpStatus
- The response's http status code.
$sel:subscriptionArn:UpdateAnomalySubscription'
, updateAnomalySubscriptionResponse_subscriptionArn
- A cost anomaly subscription ARN.
Response Lenses
updateAnomalySubscriptionResponse_httpStatus :: Lens' UpdateAnomalySubscriptionResponse Int Source #
The response's http status code.
updateAnomalySubscriptionResponse_subscriptionArn :: Lens' UpdateAnomalySubscriptionResponse Text Source #
A cost anomaly subscription ARN.