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 |
Creates an archive rule for the specified analyzer. Archive rules automatically archive new findings that meet the criteria you define when you create the rule.
To learn about filter keys that you can use to create an archive rule, see IAM Access Analyzer filter keys in the IAM User Guide.
Synopsis
- data CreateArchiveRule = CreateArchiveRule' {}
- newCreateArchiveRule :: Text -> Text -> CreateArchiveRule
- createArchiveRule_clientToken :: Lens' CreateArchiveRule (Maybe Text)
- createArchiveRule_analyzerName :: Lens' CreateArchiveRule Text
- createArchiveRule_filter :: Lens' CreateArchiveRule (HashMap Text Criterion)
- createArchiveRule_ruleName :: Lens' CreateArchiveRule Text
- data CreateArchiveRuleResponse = CreateArchiveRuleResponse' {
- newCreateArchiveRuleResponse :: CreateArchiveRuleResponse
Creating a Request
data CreateArchiveRule Source #
Creates an archive rule.
See: newCreateArchiveRule
smart constructor.
Instances
:: Text | |
-> Text | |
-> CreateArchiveRule |
Create a value of CreateArchiveRule
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:clientToken:CreateArchiveRule'
, createArchiveRule_clientToken
- A client token.
$sel:analyzerName:CreateArchiveRule'
, createArchiveRule_analyzerName
- The name of the created analyzer.
$sel:filter':CreateArchiveRule'
, createArchiveRule_filter
- The criteria for the rule.
$sel:ruleName:CreateArchiveRule'
, createArchiveRule_ruleName
- The name of the rule to create.
Request Lenses
createArchiveRule_clientToken :: Lens' CreateArchiveRule (Maybe Text) Source #
A client token.
createArchiveRule_analyzerName :: Lens' CreateArchiveRule Text Source #
The name of the created analyzer.
createArchiveRule_filter :: Lens' CreateArchiveRule (HashMap Text Criterion) Source #
The criteria for the rule.
createArchiveRule_ruleName :: Lens' CreateArchiveRule Text Source #
The name of the rule to create.
Destructuring the Response
data CreateArchiveRuleResponse Source #
See: newCreateArchiveRuleResponse
smart constructor.
Instances
newCreateArchiveRuleResponse :: CreateArchiveRuleResponse Source #
Create a value of CreateArchiveRuleResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.