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 |
Creates a new cost anomaly detection monitor with the requested type and monitor specification.
Synopsis
- data CreateAnomalyMonitor = CreateAnomalyMonitor' {}
- newCreateAnomalyMonitor :: AnomalyMonitor -> CreateAnomalyMonitor
- createAnomalyMonitor_resourceTags :: Lens' CreateAnomalyMonitor (Maybe [ResourceTag])
- createAnomalyMonitor_anomalyMonitor :: Lens' CreateAnomalyMonitor AnomalyMonitor
- data CreateAnomalyMonitorResponse = CreateAnomalyMonitorResponse' {
- httpStatus :: Int
- monitorArn :: Text
- newCreateAnomalyMonitorResponse :: Int -> Text -> CreateAnomalyMonitorResponse
- createAnomalyMonitorResponse_httpStatus :: Lens' CreateAnomalyMonitorResponse Int
- createAnomalyMonitorResponse_monitorArn :: Lens' CreateAnomalyMonitorResponse Text
Creating a Request
data CreateAnomalyMonitor Source #
See: newCreateAnomalyMonitor
smart constructor.
CreateAnomalyMonitor' | |
|
Instances
newCreateAnomalyMonitor Source #
Create a value of CreateAnomalyMonitor
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:resourceTags:CreateAnomalyMonitor'
, createAnomalyMonitor_resourceTags
- An optional list of tags to associate with the specified
AnomalyMonitor
. You can use resource tags to control access to your monitor
using
IAM policies.
Each tag consists of a key and a value, and each key must be unique for the resource. The following restrictions apply to resource tags:
- Although the maximum number of array members is 200, you can assign a maximum of 50 user-tags to one resource. The remaining are reserved for Amazon Web Services use
- The maximum length of a key is 128 characters
- The maximum length of a value is 256 characters
- Keys and values can only contain alphanumeric characters, spaces,
and any of the following:
_.:/=+@-
- Keys and values are case sensitive
- Keys and values are trimmed for any leading or trailing whitespaces
- Don’t use
aws:
as a prefix for your keys. This prefix is reserved for Amazon Web Services use
$sel:anomalyMonitor:CreateAnomalyMonitor'
, createAnomalyMonitor_anomalyMonitor
- The cost anomaly detection monitor object that you want to create.
Request Lenses
createAnomalyMonitor_resourceTags :: Lens' CreateAnomalyMonitor (Maybe [ResourceTag]) Source #
An optional list of tags to associate with the specified
AnomalyMonitor
. You can use resource tags to control access to your monitor
using
IAM policies.
Each tag consists of a key and a value, and each key must be unique for the resource. The following restrictions apply to resource tags:
- Although the maximum number of array members is 200, you can assign a maximum of 50 user-tags to one resource. The remaining are reserved for Amazon Web Services use
- The maximum length of a key is 128 characters
- The maximum length of a value is 256 characters
- Keys and values can only contain alphanumeric characters, spaces,
and any of the following:
_.:/=+@-
- Keys and values are case sensitive
- Keys and values are trimmed for any leading or trailing whitespaces
- Don’t use
aws:
as a prefix for your keys. This prefix is reserved for Amazon Web Services use
createAnomalyMonitor_anomalyMonitor :: Lens' CreateAnomalyMonitor AnomalyMonitor Source #
The cost anomaly detection monitor object that you want to create.
Destructuring the Response
data CreateAnomalyMonitorResponse Source #
See: newCreateAnomalyMonitorResponse
smart constructor.
CreateAnomalyMonitorResponse' | |
|
Instances
newCreateAnomalyMonitorResponse Source #
:: Int | |
-> Text | |
-> CreateAnomalyMonitorResponse |
Create a value of CreateAnomalyMonitorResponse
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:CreateAnomalyMonitorResponse'
, createAnomalyMonitorResponse_httpStatus
- The response's http status code.
CreateAnomalyMonitorResponse
, createAnomalyMonitorResponse_monitorArn
- The unique identifier of your newly created cost anomaly detection
monitor.
Response Lenses
createAnomalyMonitorResponse_httpStatus :: Lens' CreateAnomalyMonitorResponse Int Source #
The response's http status code.
createAnomalyMonitorResponse_monitorArn :: Lens' CreateAnomalyMonitorResponse Text Source #
The unique identifier of your newly created cost anomaly detection monitor.