Interface IRule

All Superinterfaces:
IConstruct, software.constructs.IConstruct, IDependable, IResource, software.amazon.jsii.JsiiSerializable
All Known Subinterfaces:
IRule.Jsii$Default
All Known Implementing Classes:
AccessKeysRotated, CloudFormationStackDriftDetectionCheck, CloudFormationStackNotificationCheck, CustomRule, IRule.Jsii$Proxy, ManagedRule

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:48.618Z") @Stability(Stable) public interface IRule extends software.amazon.jsii.JsiiSerializable, IResource
Interface representing an AWS Config rule.
  • Method Details

    • getConfigRuleName

      @Stability(Stable) @NotNull String getConfigRuleName()
      The name of the rule.
    • onComplianceChange

      @Stability(Stable) @NotNull Rule onComplianceChange(@NotNull String id, @Nullable OnEventOptions options)
      Defines a EventBridge event rule which triggers for rule compliance events.

      Parameters:
      id - This parameter is required.
      options -
    • onComplianceChange

      @Stability(Stable) @NotNull Rule onComplianceChange(@NotNull String id)
      Defines a EventBridge event rule which triggers for rule compliance events.

      Parameters:
      id - This parameter is required.
    • onEvent

      @Stability(Stable) @NotNull Rule onEvent(@NotNull String id, @Nullable OnEventOptions options)
      Defines an EventBridge event rule which triggers for rule events.

      Use rule.addEventPattern(pattern) to specify a filter.

      Parameters:
      id - This parameter is required.
      options -
    • onEvent

      @Stability(Stable) @NotNull Rule onEvent(@NotNull String id)
      Defines an EventBridge event rule which triggers for rule events.

      Use rule.addEventPattern(pattern) to specify a filter.

      Parameters:
      id - This parameter is required.
    • onReEvaluationStatus

      @Stability(Stable) @NotNull Rule onReEvaluationStatus(@NotNull String id, @Nullable OnEventOptions options)
      Defines a EventBridge event rule which triggers for rule re-evaluation status events.

      Parameters:
      id - This parameter is required.
      options -
    • onReEvaluationStatus

      @Stability(Stable) @NotNull Rule onReEvaluationStatus(@NotNull String id)
      Defines a EventBridge event rule which triggers for rule re-evaluation status events.

      Parameters:
      id - This parameter is required.