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 analyzer for your account.
Synopsis
- data CreateAnalyzer = CreateAnalyzer' {
- clientToken :: Maybe Text
- archiveRules :: Maybe [InlineArchiveRule]
- tags :: Maybe (HashMap Text Text)
- analyzerName :: Text
- type' :: Type
- newCreateAnalyzer :: Text -> Type -> CreateAnalyzer
- createAnalyzer_clientToken :: Lens' CreateAnalyzer (Maybe Text)
- createAnalyzer_archiveRules :: Lens' CreateAnalyzer (Maybe [InlineArchiveRule])
- createAnalyzer_tags :: Lens' CreateAnalyzer (Maybe (HashMap Text Text))
- createAnalyzer_analyzerName :: Lens' CreateAnalyzer Text
- createAnalyzer_type :: Lens' CreateAnalyzer Type
- data CreateAnalyzerResponse = CreateAnalyzerResponse' {
- arn :: Maybe Text
- httpStatus :: Int
- newCreateAnalyzerResponse :: Int -> CreateAnalyzerResponse
- createAnalyzerResponse_arn :: Lens' CreateAnalyzerResponse (Maybe Text)
- createAnalyzerResponse_httpStatus :: Lens' CreateAnalyzerResponse Int
Creating a Request
data CreateAnalyzer Source #
Creates an analyzer.
See: newCreateAnalyzer
smart constructor.
CreateAnalyzer' | |
|
Instances
Create a value of CreateAnalyzer
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:CreateAnalyzer'
, createAnalyzer_clientToken
- A client token.
$sel:archiveRules:CreateAnalyzer'
, createAnalyzer_archiveRules
- Specifies the archive rules to add for the analyzer. Archive rules
automatically archive findings that meet the criteria you define for the
rule.
$sel:tags:CreateAnalyzer'
, createAnalyzer_tags
- The tags to apply to the analyzer.
$sel:analyzerName:CreateAnalyzer'
, createAnalyzer_analyzerName
- The name of the analyzer to create.
$sel:type':CreateAnalyzer'
, createAnalyzer_type
- The type of analyzer to create. Only ACCOUNT and ORGANIZATION analyzers
are supported. You can create only one analyzer per account per Region.
You can create up to 5 analyzers per organization per Region.
Request Lenses
createAnalyzer_clientToken :: Lens' CreateAnalyzer (Maybe Text) Source #
A client token.
createAnalyzer_archiveRules :: Lens' CreateAnalyzer (Maybe [InlineArchiveRule]) Source #
Specifies the archive rules to add for the analyzer. Archive rules automatically archive findings that meet the criteria you define for the rule.
createAnalyzer_tags :: Lens' CreateAnalyzer (Maybe (HashMap Text Text)) Source #
The tags to apply to the analyzer.
createAnalyzer_analyzerName :: Lens' CreateAnalyzer Text Source #
The name of the analyzer to create.
createAnalyzer_type :: Lens' CreateAnalyzer Type Source #
The type of analyzer to create. Only ACCOUNT and ORGANIZATION analyzers are supported. You can create only one analyzer per account per Region. You can create up to 5 analyzers per organization per Region.
Destructuring the Response
data CreateAnalyzerResponse Source #
The response to the request to create an analyzer.
See: newCreateAnalyzerResponse
smart constructor.
CreateAnalyzerResponse' | |
|
Instances
newCreateAnalyzerResponse Source #
Create a value of CreateAnalyzerResponse
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:arn:CreateAnalyzerResponse'
, createAnalyzerResponse_arn
- The ARN of the analyzer that was created by the request.
$sel:httpStatus:CreateAnalyzerResponse'
, createAnalyzerResponse_httpStatus
- The response's http status code.
Response Lenses
createAnalyzerResponse_arn :: Lens' CreateAnalyzerResponse (Maybe Text) Source #
The ARN of the analyzer that was created by the request.
createAnalyzerResponse_httpStatus :: Lens' CreateAnalyzerResponse Int Source #
The response's http status code.