InternalAccessAnalysisRuleCriteriaProperty Struct
The criteria for an analysis rule for an internal access analyzer.
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 internalAccessAnalysisRuleCriteriaProperty: accessanalyzer.CfnAnalyzer.InternalAccessAnalysisRuleCriteriaProperty = {
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_criteria_property = 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.*;
InternalAccessAnalysisRuleCriteriaProperty internalAccessAnalysisRuleCriteriaProperty = InternalAccessAnalysisRuleCriteriaProperty.builder()
.accountIds(List.of("accountIds"))
.resourceArns(List.of("resourceArns"))
.resourceTypes(List.of("resourceTypes"))
.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 internalAccessAnalysisRuleCriteriaProperty = 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"
internalAccessAnalysisRuleCriteriaProperty := &InternalAccessAnalysisRuleCriteriaProperty{
AccountIds: []*string{
jsii.String("accountIds"),
},
ResourceArns: []*string{
jsii.String("resourceArns"),
},
ResourceTypes: []*string{
jsii.String("resourceTypes"),
},
}
Properties
accountIdsoptionalstring[]account_idsoptionaltyping.List[str]accountIdsoptionalList<String>AccountIdsoptionalstring[]AccountIdsoptional*[]*string#A list of AWS account IDs to apply to the internal access analysis rule criteria.
Account IDs can only be applied to the analysis rule criteria for organization-level analyzers.
resourceArnsoptionalstring[]resource_arnsoptionaltyping.List[str]resourceArnsoptionalList<String>ResourceArnsoptionalstring[]ResourceArnsoptional*[]*string#A list of resource ARNs to apply to the internal access analysis rule criteria.
The analyzer will only generate findings for resources that match these ARNs.
resourceTypesoptionalstring[]resource_typesoptionaltyping.List[str]resourceTypesoptionalList<String>ResourceTypesoptionalstring[]ResourceTypesoptional*[]*string#A list of resource types to apply to the internal access analysis rule criteria.
notes
The analyzer will only generate findings for resources of these types. These resource types are currently supported for internal access analyzers:
AWS::S3::BucketAWS::RDS::DBSnapshotAWS::RDS::DBClusterSnapshotAWS::S3Express::DirectoryBucketAWS::DynamoDB::TableAWS::DynamoDB::Stream