create_analyzer
(**kwargs)¶Creates an analyzer for your account.
See also: AWS API Documentation
Request Syntax
response = client.create_analyzer(
analyzerName='string',
type='ACCOUNT'|'ORGANIZATION',
archiveRules=[
{
'ruleName': 'string',
'filter': {
'string': {
'eq': [
'string',
],
'neq': [
'string',
],
'contains': [
'string',
],
'exists': True|False
}
}
},
],
tags={
'string': 'string'
},
clientToken='string'
)
[REQUIRED]
The name of the analyzer to create.
[REQUIRED]
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.
Specifies the archive rules to add for the analyzer. Archive rules automatically archive findings that meet the criteria you define for the rule.
An criterion statement in an archive rule. Each archive rule may have multiple criteria.
The name of the rule.
The condition and values for a criterion.
The criteria to use in the filter that defines the archive rule. For more information on available filter keys, see IAM Access Analyzer filter keys.
An "equals" operator to match for the filter used to create the rule.
A "not equals" operator to match for the filter used to create the rule.
A "contains" operator to match for the filter used to create the rule.
An "exists" operator to match for the filter used to create the rule.
The tags to apply to the analyzer.
A client token.
This field is autopopulated if not provided.
dict
Response Syntax
{
'arn': 'string'
}
Response Structure
(dict) --
The response to the request to create an analyzer.
arn (string) --
The ARN of the analyzer that was created by the request.
Exceptions
AccessAnalyzer.Client.exceptions.ConflictException
AccessAnalyzer.Client.exceptions.ValidationException
AccessAnalyzer.Client.exceptions.InternalServerException
AccessAnalyzer.Client.exceptions.ServiceQuotaExceededException
AccessAnalyzer.Client.exceptions.ThrottlingException
AccessAnalyzer.Client.exceptions.AccessDeniedException