CfnAnalyzerProps Struct
Properties for defining a CfnAnalyzer.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_accessanalyzer as accessanalyzer } from 'aws-cdk-lib';
const cfnAnalyzerProps: accessanalyzer.CfnAnalyzerProps = {
type: 'type',
// the properties below are optional
analyzerConfiguration: {
internalAccessConfiguration: {
internalAccessAnalysisRule: {
inclusions: [{
accountIds: ['accountIds'],
resourceArns: ['resourceArns'],
resourceTypes: ['resourceTypes'],
}],
},
},
unusedAccessConfiguration: {
analysisRule: {
exclusions: [{
accountIds: ['accountIds'],
resourceTags: [[{
key: 'key',
value: 'value',
}]],
}],
},
unusedAccessAge: 123,
},
},
analyzerName: 'analyzerName',
archiveRules: [{
filter: [{
property: 'property',
// the properties below are optional
contains: ['contains'],
eq: ['eq'],
exists: false,
neq: ['neq'],
}],
ruleName: 'ruleName',
}],
tags: [{
key: 'key',
value: 'value',
}],
};
python
from aws_cdk import CfnTag, CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_accessanalyzer as accessanalyzer
cfn_analyzer_props = accessanalyzer.CfnAnalyzerProps(
type="type",
# the properties below are optional
analyzer_configuration=accessanalyzer.CfnAnalyzer.AnalyzerConfigurationProperty(
internal_access_configuration=accessanalyzer.CfnAnalyzer.InternalAccessConfigurationProperty(
internal_access_analysis_rule=accessanalyzer.CfnAnalyzer.InternalAccessAnalysisRuleProperty(
inclusions=[accessanalyzer.CfnAnalyzer.InternalAccessAnalysisRuleCriteriaProperty(
account_ids=["accountIds"],
resource_arns=["resourceArns"],
resource_types=["resourceTypes"]
)]
)
),
unused_access_configuration=accessanalyzer.CfnAnalyzer.UnusedAccessConfigurationProperty(
analysis_rule=accessanalyzer.CfnAnalyzer.AnalysisRuleProperty(
exclusions=[accessanalyzer.CfnAnalyzer.AnalysisRuleCriteriaProperty(
account_ids=["accountIds"],
resource_tags=[[CfnTag(
key="key",
value="value"
)]]
)]
),
unused_access_age=123
)
),
analyzer_name="analyzerName",
archive_rules=[accessanalyzer.CfnAnalyzer.ArchiveRuleProperty(
filter=[accessanalyzer.CfnAnalyzer.FilterProperty(
property="property",
# the properties below are optional
contains=["contains"],
eq=["eq"],
exists=False,
neq=["neq"]
)],
rule_name="ruleName"
)],
tags=[CfnTag(
key="key",
value="value"
)]
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.accessanalyzer.*;
CfnAnalyzerProps cfnAnalyzerProps = CfnAnalyzerProps.builder()
.type("type")
// the properties below are optional
.analyzerConfiguration(AnalyzerConfigurationProperty.builder()
.internalAccessConfiguration(InternalAccessConfigurationProperty.builder()
.internalAccessAnalysisRule(InternalAccessAnalysisRuleProperty.builder()
.inclusions(List.of(InternalAccessAnalysisRuleCriteriaProperty.builder()
.accountIds(List.of("accountIds"))
.resourceArns(List.of("resourceArns"))
.resourceTypes(List.of("resourceTypes"))
.build()))
.build())
.build())
.unusedAccessConfiguration(UnusedAccessConfigurationProperty.builder()
.analysisRule(AnalysisRuleProperty.builder()
.exclusions(List.of(AnalysisRuleCriteriaProperty.builder()
.accountIds(List.of("accountIds"))
.resourceTags(List.of(List.of(CfnTag.builder()
.key("key")
.value("value")
.build())))
.build()))
.build())
.unusedAccessAge(123)
.build())
.build())
.analyzerName("analyzerName")
.archiveRules(List.of(ArchiveRuleProperty.builder()
.filter(List.of(FilterProperty.builder()
.property("property")
// the properties below are optional
.contains(List.of("contains"))
.eq(List.of("eq"))
.exists(false)
.neq(List.of("neq"))
.build()))
.ruleName("ruleName")
.build()))
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.AccessAnalyzer;
var cfnAnalyzerProps = new CfnAnalyzerProps {
Type = "type",
// the properties below are optional
AnalyzerConfiguration = new AnalyzerConfigurationProperty {
InternalAccessConfiguration = new InternalAccessConfigurationProperty {
InternalAccessAnalysisRule = new InternalAccessAnalysisRuleProperty {
Inclusions = new [] { new InternalAccessAnalysisRuleCriteriaProperty {
AccountIds = new [] { "accountIds" },
ResourceArns = new [] { "resourceArns" },
ResourceTypes = new [] { "resourceTypes" }
} }
}
},
UnusedAccessConfiguration = new UnusedAccessConfigurationProperty {
AnalysisRule = new AnalysisRuleProperty {
Exclusions = new [] { new AnalysisRuleCriteriaProperty {
AccountIds = new [] { "accountIds" },
ResourceTags = new [] { new [] { new CfnTag {
Key = "key",
Value = "value"
} } }
} }
},
UnusedAccessAge = 123
}
},
AnalyzerName = "analyzerName",
ArchiveRules = new [] { new ArchiveRuleProperty {
Filter = new [] { new FilterProperty {
Property = "property",
// the properties below are optional
Contains = new [] { "contains" },
Eq = new [] { "eq" },
Exists = false,
Neq = new [] { "neq" }
} },
RuleName = "ruleName"
} },
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
cfnAnalyzerProps := &CfnAnalyzerProps{
Type: jsii.String("type"),
// the properties below are optional
AnalyzerConfiguration: &AnalyzerConfigurationProperty{
InternalAccessConfiguration: &InternalAccessConfigurationProperty{
InternalAccessAnalysisRule: &InternalAccessAnalysisRuleProperty{
Inclusions: []interface{}{
&InternalAccessAnalysisRuleCriteriaProperty{
AccountIds: []*string{
jsii.String("accountIds"),
},
ResourceArns: []*string{
jsii.String("resourceArns"),
},
ResourceTypes: []*string{
jsii.String("resourceTypes"),
},
},
},
},
},
UnusedAccessConfiguration: &UnusedAccessConfigurationProperty{
AnalysisRule: &AnalysisRuleProperty{
Exclusions: []interface{}{
&AnalysisRuleCriteriaProperty{
AccountIds: []*string{
jsii.String("accountIds"),
},
ResourceTags: []interface{}{
[]interface{}{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
},
},
},
},
UnusedAccessAge: jsii.Number(123),
},
},
AnalyzerName: jsii.String("analyzerName"),
ArchiveRules: []interface{}{
&ArchiveRuleProperty{
Filter: []interface{}{
&FilterProperty{
Property: jsii.String("property"),
// the properties below are optional
Contains: []*string{
jsii.String("contains"),
},
Eq: []*string{
jsii.String("eq"),
},
Exists: jsii.Boolean(false),
Neq: []*string{
jsii.String("neq"),
},
},
},
RuleName: jsii.String("ruleName"),
},
},
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
}
Properties
analyzerConfigurationoptionalIResolvable | CfnAnalyzer.analyzer_configurationoptionaltyping.Union[IResolvable, AnalyzerConfigurationProperty]analyzerConfigurationoptionalIResolvableAnalyzerConfigurationoptionalIResolvableAnalyzerConfigurationoptionalinterface{} #Contains information about the configuration of an analyzer for an AWS organization or account.
analyzerNameoptionalstringanalyzer_nameoptionalstranalyzerNameoptionalStringAnalyzerNameoptionalstringAnalyzerNameoptional*string #The name of the analyzer.
archiveRulesoptionalIResolvable | IResolvable | CfnAnalyzer.ArchiveRuleProperty[]archive_rulesoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, ArchiveRuleProperty]]]archiveRulesoptionalIResolvableArchiveRulesoptionalIResolvableArchiveRulesoptionalinterface{} #Specifies the archive rules to add for the analyzer.
Archive rules automatically archive findings that meet the criteria you define for the rule.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #An array of key-value pairs to apply to the analyzer.
notes
You can use the set of Unicode letters, digits, whitespace, _ , . , / , = , + , and - .
For the tag key, you can specify a value that is 1 to 128 characters in length and cannot be prefixed with aws: .
For the tag value, you can specify a value that is 0 to 256 characters in length.
The type represents the zone of trust for the analyzer.
Allowed Values : ACCOUNT | ORGANIZATION | ACCOUNT_UNUSED_ACCESS | ACCOUNT_INTERNAL_ACCESS | ORGANIZATION_INTERNAL_ACCESS | ORGANIZATION_UNUSED_ACCESS