Interface IRule

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

@Generated(value="jsii-pacmak/1.101.0 (build b95fe5d)", date="2024-07-22T22:42:49.490Z") @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.