Skip to content
v2.278.0

InternalAccessAnalysisRuleProperty Struct ​

Contains information about analysis rules for the internal access analyzer.

Analysis rules determine which entities will generate findings based on the criteria you define when you create the rule.

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 internalAccessAnalysisRuleProperty: accessanalyzer.CfnAnalyzer.InternalAccessAnalysisRuleProperty = {
  inclusions: [{
    accountIds: ['accountIds'],
    resourceArns: ['resourceArns'],
    resourceTypes: ['resourceTypes'],
  }],
};
python
# 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

internal_access_analysis_rule_property = accessanalyzer.CfnAnalyzer.InternalAccessAnalysisRuleProperty(
    inclusions=[accessanalyzer.CfnAnalyzer.InternalAccessAnalysisRuleCriteriaProperty(
        account_ids=["accountIds"],
        resource_arns=["resourceArns"],
        resource_types=["resourceTypes"]
    )]
)
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.*;

InternalAccessAnalysisRuleProperty internalAccessAnalysisRuleProperty = InternalAccessAnalysisRuleProperty.builder()
        .inclusions(List.of(InternalAccessAnalysisRuleCriteriaProperty.builder()
                .accountIds(List.of("accountIds"))
                .resourceArns(List.of("resourceArns"))
                .resourceTypes(List.of("resourceTypes"))
                .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 internalAccessAnalysisRuleProperty = new InternalAccessAnalysisRuleProperty {
    Inclusions = new [] { new InternalAccessAnalysisRuleCriteriaProperty {
        AccountIds = new [] { "accountIds" },
        ResourceArns = new [] { "resourceArns" },
        ResourceTypes = new [] { "resourceTypes" }
    } }
};
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"

internalAccessAnalysisRuleProperty := &InternalAccessAnalysisRuleProperty{
	Inclusions: []interface{}{
		&InternalAccessAnalysisRuleCriteriaProperty{
			AccountIds: []*string{
				jsii.String("accountIds"),
			},
			ResourceArns: []*string{
				jsii.String("resourceArns"),
			},
			ResourceTypes: []*string{
				jsii.String("resourceTypes"),
			},
		},
	},
}

Properties ​

inclusionsoptionalIResolvable | IResolvable | CfnAnalyzer.InternalAccessAnalysisRuleCriteriaProperty[]inclusionsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, InternalAccessAnalysisRuleCriteriaProperty]]]inclusionsoptionalIResolvableInclusionsoptionalIResolvableInclusionsoptionalinterface{} #
A list of rules for the internal access analyzer containing criteria to include in analysis.

Only resources that meet the rule criteria will generate findings.