Smaws_Client_CostExplorer.CreateAnomalySubscriptionAdds 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.
val error_to_string :
[ Smaws_Lib.Protocols.AwsJson.error
| `LimitExceededException of Types.limit_exceeded_exception
| `UnknownMonitorException of Types.unknown_monitor_exception ] ->
stringval request :
'http_type Smaws_Lib.Context.t ->
Types.create_anomaly_subscription_request ->
(Types.create_anomaly_subscription_response,
[> Smaws_Lib.Protocols.AwsJson.error
| `LimitExceededException of Types.limit_exceeded_exception
| `UnknownMonitorException of Types.unknown_monitor_exception ])
Stdlib.resultval request_with_metadata :
'http_type Smaws_Lib.Context.t ->
Types.create_anomaly_subscription_request ->
(Types.create_anomaly_subscription_response Smaws_Lib.Response.t,
[> Smaws_Lib.Protocols.AwsJson.error
| `LimitExceededException of Types.limit_exceeded_exception
| `UnknownMonitorException of Types.unknown_monitor_exception ]
* Smaws_Lib.Response.metadata)
Stdlib.result