| 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 |
Amazonka.CostExplorer.UpdateAnomalyMonitor
Description
Updates an existing cost anomaly monitor. The changes made are applied going forward, and doesn't change anomalies detected in the past.
Synopsis
- data UpdateAnomalyMonitor = UpdateAnomalyMonitor' {
- monitorName :: Maybe Text
- monitorArn :: Text
- newUpdateAnomalyMonitor :: Text -> UpdateAnomalyMonitor
- updateAnomalyMonitor_monitorName :: Lens' UpdateAnomalyMonitor (Maybe Text)
- updateAnomalyMonitor_monitorArn :: Lens' UpdateAnomalyMonitor Text
- data UpdateAnomalyMonitorResponse = UpdateAnomalyMonitorResponse' {
- httpStatus :: Int
- monitorArn :: Text
- newUpdateAnomalyMonitorResponse :: Int -> Text -> UpdateAnomalyMonitorResponse
- updateAnomalyMonitorResponse_httpStatus :: Lens' UpdateAnomalyMonitorResponse Int
- updateAnomalyMonitorResponse_monitorArn :: Lens' UpdateAnomalyMonitorResponse Text
Creating a Request
data UpdateAnomalyMonitor Source #
See: newUpdateAnomalyMonitor smart constructor.
Constructors
| UpdateAnomalyMonitor' | |
Fields
| |
Instances
newUpdateAnomalyMonitor Source #
Arguments
| :: Text | |
| -> UpdateAnomalyMonitor |
Create a value of UpdateAnomalyMonitor 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:
UpdateAnomalyMonitor, updateAnomalyMonitor_monitorName - The new name for the cost anomaly monitor.
UpdateAnomalyMonitor, updateAnomalyMonitor_monitorArn - Cost anomaly monitor Amazon Resource Names (ARNs).
Request Lenses
updateAnomalyMonitor_monitorName :: Lens' UpdateAnomalyMonitor (Maybe Text) Source #
The new name for the cost anomaly monitor.
updateAnomalyMonitor_monitorArn :: Lens' UpdateAnomalyMonitor Text Source #
Cost anomaly monitor Amazon Resource Names (ARNs).
Destructuring the Response
data UpdateAnomalyMonitorResponse Source #
See: newUpdateAnomalyMonitorResponse smart constructor.
Constructors
| UpdateAnomalyMonitorResponse' | |
Fields
| |
Instances
newUpdateAnomalyMonitorResponse Source #
Arguments
| :: Int | |
| -> Text | |
| -> UpdateAnomalyMonitorResponse |
Create a value of UpdateAnomalyMonitorResponse 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:UpdateAnomalyMonitorResponse', updateAnomalyMonitorResponse_httpStatus - The response's http status code.
UpdateAnomalyMonitor, updateAnomalyMonitorResponse_monitorArn - A cost anomaly monitor ARN.
Response Lenses
updateAnomalyMonitorResponse_httpStatus :: Lens' UpdateAnomalyMonitorResponse Int Source #
The response's http status code.
updateAnomalyMonitorResponse_monitorArn :: Lens' UpdateAnomalyMonitorResponse Text Source #
A cost anomaly monitor ARN.