class EvaluationMode
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Config.EvaluationMode |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsconfig#EvaluationMode |
![]() | software.amazon.awscdk.services.config.EvaluationMode |
![]() | aws_cdk.aws_config.EvaluationMode |
![]() | aws-cdk-lib » aws_config » EvaluationMode |
The mode of evaluation for the rule.
Example
declare const fn: lambda.Function;
declare const samplePolicyText: string;
new config.ManagedRule(this, 'ManagedRule', {
identifier: config.ManagedRuleIdentifiers.API_GW_XRAY_ENABLED,
evaluationModes: config.EvaluationMode.DETECTIVE_AND_PROACTIVE,
});
new config.CustomRule(this, 'CustomRule', {
lambdaFunction: fn,
evaluationModes: config.EvaluationMode.PROACTIVE,
});
new config.CustomPolicy(this, 'CustomPolicy', {
policyText: samplePolicyText,
evaluationModes: config.EvaluationMode.DETECTIVE,
});
Initializer (protected)
super(modes: string[])
Parameters
- modes
string[]
— The modes of evaluation for the rule.
Properties
Name | Type | Description |
---|---|---|
modes | string[] | The modes of evaluation for the rule. |
static DETECTIVE | Evaluation | Evaluate resources that have already been deployed. |
static DETECTIVE_AND_PROACTIVE | Evaluation | Evaluate resources that have already been deployed and before they have been deployed. |
static PROACTIVE | Evaluation | Evaluate resources before they have been deployed. |
modes
Type:
string[]
The modes of evaluation for the rule.
static DETECTIVE
Type:
Evaluation
Evaluate resources that have already been deployed.
static DETECTIVE_AND_PROACTIVE
Type:
Evaluation
Evaluate resources that have already been deployed and before they have been deployed.
static PROACTIVE
Type:
Evaluation
Evaluate resources before they have been deployed.