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.104.0 (build e79254c)",
date="2024-12-17T21:37:28.666Z")
@Stability(Stable)
public interface IRule
extends software.amazon.jsii.JsiiSerializable, IResource
Interface representing an AWS Config rule.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Internal default implementation forIRule
.static final class
A proxy class which represents a concrete javascript instance of this type. -
Method Summary
Modifier and TypeMethodDescriptionThe name of the rule.Defines a EventBridge event rule which triggers for rule compliance events.onComplianceChange
(String id, OnEventOptions options) Defines a EventBridge event rule which triggers for rule compliance events.Defines an EventBridge event rule which triggers for rule events.onEvent
(String id, OnEventOptions options) Defines an EventBridge event rule which triggers for rule events.Defines a EventBridge event rule which triggers for rule re-evaluation status events.onReEvaluationStatus
(String id, OnEventOptions options) Defines a EventBridge event rule which triggers for rule re-evaluation status events.Methods inherited from interface software.constructs.IConstruct
getNode
Methods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getEnv, getStack
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
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
Defines a EventBridge event rule which triggers for rule compliance events.- Parameters:
id
- This parameter is required.
-
onEvent
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
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
Defines a EventBridge event rule which triggers for rule re-evaluation status events.- Parameters:
id
- This parameter is required.
-