| 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.GetAnomalyMonitors
Description
Retrieves the cost anomaly monitor definitions for your account. You can filter using a list of cost anomaly monitor Amazon Resource Names (ARNs).
Synopsis
- data GetAnomalyMonitors = GetAnomalyMonitors' {
- maxResults :: Maybe Int
- monitorArnList :: Maybe [Text]
- nextPageToken :: Maybe Text
- newGetAnomalyMonitors :: GetAnomalyMonitors
- getAnomalyMonitors_maxResults :: Lens' GetAnomalyMonitors (Maybe Int)
- getAnomalyMonitors_monitorArnList :: Lens' GetAnomalyMonitors (Maybe [Text])
- getAnomalyMonitors_nextPageToken :: Lens' GetAnomalyMonitors (Maybe Text)
- data GetAnomalyMonitorsResponse = GetAnomalyMonitorsResponse' {}
- newGetAnomalyMonitorsResponse :: Int -> GetAnomalyMonitorsResponse
- getAnomalyMonitorsResponse_nextPageToken :: Lens' GetAnomalyMonitorsResponse (Maybe Text)
- getAnomalyMonitorsResponse_httpStatus :: Lens' GetAnomalyMonitorsResponse Int
- getAnomalyMonitorsResponse_anomalyMonitors :: Lens' GetAnomalyMonitorsResponse [AnomalyMonitor]
Creating a Request
data GetAnomalyMonitors Source #
See: newGetAnomalyMonitors smart constructor.
Constructors
| GetAnomalyMonitors' | |
Fields
| |
Instances
newGetAnomalyMonitors :: GetAnomalyMonitors Source #
Create a value of GetAnomalyMonitors 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:maxResults:GetAnomalyMonitors', getAnomalyMonitors_maxResults - The number of entries that a paginated response contains.
GetAnomalyMonitors, getAnomalyMonitors_monitorArnList - A list of cost anomaly monitor ARNs.
GetAnomalyMonitors, getAnomalyMonitors_nextPageToken - The token to retrieve the next set of results. Amazon Web Services
provides the token when the response from a previous call has more
results than the maximum page size.
Request Lenses
getAnomalyMonitors_maxResults :: Lens' GetAnomalyMonitors (Maybe Int) Source #
The number of entries that a paginated response contains.
getAnomalyMonitors_monitorArnList :: Lens' GetAnomalyMonitors (Maybe [Text]) Source #
A list of cost anomaly monitor ARNs.
getAnomalyMonitors_nextPageToken :: Lens' GetAnomalyMonitors (Maybe Text) Source #
The token to retrieve the next set of results. Amazon Web Services provides the token when the response from a previous call has more results than the maximum page size.
Destructuring the Response
data GetAnomalyMonitorsResponse Source #
See: newGetAnomalyMonitorsResponse smart constructor.
Constructors
| GetAnomalyMonitorsResponse' | |
Fields
| |
Instances
newGetAnomalyMonitorsResponse Source #
Create a value of GetAnomalyMonitorsResponse 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:
GetAnomalyMonitors, getAnomalyMonitorsResponse_nextPageToken - The token to retrieve the next set of results. Amazon Web Services
provides the token when the response from a previous call has more
results than the maximum page size.
$sel:httpStatus:GetAnomalyMonitorsResponse', getAnomalyMonitorsResponse_httpStatus - The response's http status code.
$sel:anomalyMonitors:GetAnomalyMonitorsResponse', getAnomalyMonitorsResponse_anomalyMonitors - A list of cost anomaly monitors that includes the detailed metadata for
each monitor.
Response Lenses
getAnomalyMonitorsResponse_nextPageToken :: Lens' GetAnomalyMonitorsResponse (Maybe Text) Source #
The token to retrieve the next set of results. Amazon Web Services provides the token when the response from a previous call has more results than the maximum page size.
getAnomalyMonitorsResponse_httpStatus :: Lens' GetAnomalyMonitorsResponse Int Source #
The response's http status code.
getAnomalyMonitorsResponse_anomalyMonitors :: Lens' GetAnomalyMonitorsResponse [AnomalyMonitor] Source #
A list of cost anomaly monitors that includes the detailed metadata for each monitor.