Class EvaluationMode

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.config.EvaluationMode
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)", date="2024-10-05T03:43:40.987Z") @Stability(Stable) public class EvaluationMode extends software.amazon.jsii.JsiiObject
The mode of evaluation for the rule.

Example:

 Function fn;
 String samplePolicyText;
 ManagedRule.Builder.create(this, "ManagedRule")
         .identifier(ManagedRuleIdentifiers.API_GW_XRAY_ENABLED)
         .evaluationModes(EvaluationMode.DETECTIVE_AND_PROACTIVE)
         .build();
 CustomRule.Builder.create(this, "CustomRule")
         .lambdaFunction(fn)
         .evaluationModes(EvaluationMode.PROACTIVE)
         .build();
 CustomPolicy.Builder.create(this, "CustomPolicy")
         .policyText(samplePolicyText)
         .evaluationModes(EvaluationMode.DETECTIVE)
         .build();
 
  • Nested Class Summary

    Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject

    software.amazon.jsii.JsiiObject.InitializationMode
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final EvaluationMode
    Evaluate resources that have already been deployed.
    static final EvaluationMode
    Evaluate resources that have already been deployed and before they have been deployed.
    static final EvaluationMode
    Evaluate resources before they have been deployed.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
    protected
    EvaluationMode(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
     
    protected
    EvaluationMode(software.amazon.jsii.JsiiObjectRef objRef)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    The modes of evaluation for the rule.

    Methods inherited from class software.amazon.jsii.JsiiObject

    jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface software.amazon.jsii.JsiiSerializable

    $jsii$toJson
  • Field Details

    • DETECTIVE

      @Stability(Stable) public static final EvaluationMode DETECTIVE
      Evaluate resources that have already been deployed.
    • DETECTIVE_AND_PROACTIVE

      @Stability(Stable) public static final EvaluationMode DETECTIVE_AND_PROACTIVE
      Evaluate resources that have already been deployed and before they have been deployed.
    • PROACTIVE

      @Stability(Stable) public static final EvaluationMode PROACTIVE
      Evaluate resources before they have been deployed.
  • Constructor Details

    • EvaluationMode

      protected EvaluationMode(software.amazon.jsii.JsiiObjectRef objRef)
    • EvaluationMode

      protected EvaluationMode(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • EvaluationMode

      @Stability(Stable) protected EvaluationMode(@NotNull List<String> modes)
      Parameters:
      modes - The modes of evaluation for the rule. This parameter is required.
  • Method Details

    • getModes

      @Stability(Stable) @NotNull public List<String> getModes()
      The modes of evaluation for the rule.