Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Enables the specified Contributor Insights rules. When rules are enabled, they immediately begin analyzing log data.
Synopsis
- data EnableInsightRules = EnableInsightRules' {}
- newEnableInsightRules :: EnableInsightRules
- enableInsightRules_ruleNames :: Lens' EnableInsightRules [Text]
- data EnableInsightRulesResponse = EnableInsightRulesResponse' {
- failures :: Maybe [PartialFailure]
- httpStatus :: Int
- newEnableInsightRulesResponse :: Int -> EnableInsightRulesResponse
- enableInsightRulesResponse_failures :: Lens' EnableInsightRulesResponse (Maybe [PartialFailure])
- enableInsightRulesResponse_httpStatus :: Lens' EnableInsightRulesResponse Int
Creating a Request
data EnableInsightRules Source #
See: newEnableInsightRules
smart constructor.
EnableInsightRules' | |
|
Instances
newEnableInsightRules :: EnableInsightRules Source #
Create a value of EnableInsightRules
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:ruleNames:EnableInsightRules'
, enableInsightRules_ruleNames
- An array of the rule names to enable. If you need to find out the names
of your rules, use
DescribeInsightRules.
Request Lenses
enableInsightRules_ruleNames :: Lens' EnableInsightRules [Text] Source #
An array of the rule names to enable. If you need to find out the names of your rules, use DescribeInsightRules.
Destructuring the Response
data EnableInsightRulesResponse Source #
See: newEnableInsightRulesResponse
smart constructor.
EnableInsightRulesResponse' | |
|
Instances
newEnableInsightRulesResponse Source #
Create a value of EnableInsightRulesResponse
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:EnableInsightRulesResponse'
, enableInsightRulesResponse_failures
- An array listing the rules that could not be enabled. You cannot disable
or enable built-in rules.
$sel:httpStatus:EnableInsightRulesResponse'
, enableInsightRulesResponse_httpStatus
- The response's http status code.
Response Lenses
enableInsightRulesResponse_failures :: Lens' EnableInsightRulesResponse (Maybe [PartialFailure]) Source #
An array listing the rules that could not be enabled. You cannot disable or enable built-in rules.
enableInsightRulesResponse_httpStatus :: Lens' EnableInsightRulesResponse Int Source #
The response's http status code.