| 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.CloudWatch.PutManagedInsightRules
Description
Creates a managed Contributor Insights rule for a specified Amazon Web
Services resource. When you enable a managed rule, you create a
Contributor Insights rule that collects data from Amazon Web Services
services. You cannot edit these rules with PutInsightRule. The rules
can be enabled, disabled, and deleted using EnableInsightRules,
DisableInsightRules, and DeleteInsightRules. If a previously created
managed rule is currently disabled, a subsequent call to this API will
re-enable it. Use ListManagedInsightRules to describe all available
rules.
Synopsis
- data PutManagedInsightRules = PutManagedInsightRules' {
- managedRules :: [ManagedRule]
- newPutManagedInsightRules :: PutManagedInsightRules
- putManagedInsightRules_managedRules :: Lens' PutManagedInsightRules [ManagedRule]
- data PutManagedInsightRulesResponse = PutManagedInsightRulesResponse' {
- failures :: Maybe [PartialFailure]
- httpStatus :: Int
- newPutManagedInsightRulesResponse :: Int -> PutManagedInsightRulesResponse
- putManagedInsightRulesResponse_failures :: Lens' PutManagedInsightRulesResponse (Maybe [PartialFailure])
- putManagedInsightRulesResponse_httpStatus :: Lens' PutManagedInsightRulesResponse Int
Creating a Request
data PutManagedInsightRules Source #
See: newPutManagedInsightRules smart constructor.
Constructors
| PutManagedInsightRules' | |
Fields
| |
Instances
newPutManagedInsightRules :: PutManagedInsightRules Source #
Create a value of PutManagedInsightRules 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:managedRules:PutManagedInsightRules', putManagedInsightRules_managedRules - A list of ManagedRules to enable.
Request Lenses
putManagedInsightRules_managedRules :: Lens' PutManagedInsightRules [ManagedRule] Source #
A list of ManagedRules to enable.
Destructuring the Response
data PutManagedInsightRulesResponse Source #
See: newPutManagedInsightRulesResponse smart constructor.
Constructors
| PutManagedInsightRulesResponse' | |
Fields
| |
Instances
newPutManagedInsightRulesResponse Source #
Create a value of PutManagedInsightRulesResponse 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:failures:PutManagedInsightRulesResponse', putManagedInsightRulesResponse_failures - An array that lists the rules that could not be enabled.
$sel:httpStatus:PutManagedInsightRulesResponse', putManagedInsightRulesResponse_httpStatus - The response's http status code.
Response Lenses
putManagedInsightRulesResponse_failures :: Lens' PutManagedInsightRulesResponse (Maybe [PartialFailure]) Source #
An array that lists the rules that could not be enabled.
putManagedInsightRulesResponse_httpStatus :: Lens' PutManagedInsightRulesResponse Int Source #
The response's http status code.