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 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_ruleName :: Lens' CreateArchiveRule Text
- createArchiveRule_filter :: Lens' CreateArchiveRule (HashMap Text Criterion)
- data CreateArchiveRuleResponse = CreateArchiveRuleResponse' {
- newCreateArchiveRuleResponse :: CreateArchiveRuleResponse
Creating a Request
data CreateArchiveRule Source #
Creates an archive rule.
See: newCreateArchiveRule
smart constructor.
Instances
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.
CreateArchiveRule
, createArchiveRule_ruleName
- The name of the rule to create.
CreateArchiveRule
, createArchiveRule_filter
- The criteria for the rule.
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_ruleName :: Lens' CreateArchiveRule Text Source #
The name of the rule to create.
createArchiveRule_filter :: Lens' CreateArchiveRule (HashMap Text Criterion) Source #
The criteria for the rule.
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.