UnusedAccessConfigurationProperty Struct
Contains information about an unused access analyzer.
| 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 unusedAccessConfigurationProperty: accessanalyzer.CfnAnalyzer.UnusedAccessConfigurationProperty = {
analysisRule: {
exclusions: [{
accountIds: ['accountIds'],
resourceTags: [[{
key: 'key',
value: 'value',
}]],
}],
},
unusedAccessAge: 123,
};
python
from aws_cdk import 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
unused_access_configuration_property = 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
)
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.*;
UnusedAccessConfigurationProperty unusedAccessConfigurationProperty = 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();
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 unusedAccessConfigurationProperty = new UnusedAccessConfigurationProperty {
AnalysisRule = new AnalysisRuleProperty {
Exclusions = new [] { new AnalysisRuleCriteriaProperty {
AccountIds = new [] { "accountIds" },
ResourceTags = new [] { new [] { new CfnTag {
Key = "key",
Value = "value"
} } }
} }
},
UnusedAccessAge = 123
};
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"
unusedAccessConfigurationProperty := &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),
}
Properties
analysisRuleoptionalIResolvable | CfnAnalyzer.AnalysisRulePropertyanalysis_ruleoptionaltyping.Union[IResolvable, AnalysisRuleProperty]analysisRuleoptionalIResolvableAnalysisRuleoptionalIResolvableAnalysisRuleoptionalinterface{} #Contains information about analysis rules for the analyzer.
Analysis rules determine which entities will generate findings based on the criteria you define when you create the rule.
unusedAccessAgeoptionalnumberunused_access_ageoptionalint | floatunusedAccessAgeoptionalNumberUnusedAccessAgeoptionaldoubleUnusedAccessAgeoptional*float64 #The specified access age in days for which to generate findings for unused access.
notes
For example, if you specify 90 days, the analyzer will generate findings for IAM entities within the accounts of the selected organization for any access that hasn't been used in 90 or more days since the analyzer's last scan. You can choose a value between 1 and 365 days.