# InternalAccessAnalysisRuleProperty

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.

- Source: Generated at build time
- Type last changed: v2.203.0 · 1 Jul 2025

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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" }
    } }
};
```

Golang:

```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

- `inclusions`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnAnalyzer.InternalAccessAnalysisRuleCriteriaProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_accessanalyzer.CfnAnalyzer.InternalAccessAnalysisRuleCriteriaProperty.html)[] — 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.
