Interface IRule
Interface representing an AWS Config rule.
Namespace: Amazon.CDK.AWS.Config
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IRule : IResource
Syntax (vb)
Public Interface IRule
Inherits IResource, IConstruct, IDependable
Synopsis
Properties
ConfigRuleName | The name of the rule. |
Methods
OnComplianceChange(String, IOnEventOptions) | Defines a EventBridge event rule which triggers for rule compliance events. |
OnEvent(String, IOnEventOptions) | Defines an EventBridge event rule which triggers for rule events. |
OnReEvaluationStatus(String, IOnEventOptions) | Defines a EventBridge event rule which triggers for rule re-evaluation status events. |
Properties
ConfigRuleName
The name of the rule.
string ConfigRuleName { get; }
Property Value
System.String
Remarks
Attribute: true
Methods
OnComplianceChange(String, IOnEventOptions)
Defines a EventBridge event rule which triggers for rule compliance events.
Rule OnComplianceChange(string id, IOnEventOptions options = null)
Parameters
- id System.String
- options IOnEventOptions
Returns
OnEvent(String, IOnEventOptions)
Defines an EventBridge event rule which triggers for rule events.
Rule OnEvent(string id, IOnEventOptions options = null)
Parameters
- id System.String
- options IOnEventOptions
Returns
Remarks
Use
rule.addEventPattern(pattern)
to specify a filter.
OnReEvaluationStatus(String, IOnEventOptions)
Defines a EventBridge event rule which triggers for rule re-evaluation status events.
Rule OnReEvaluationStatus(string id, IOnEventOptions options = null)
Parameters
- id System.String
- options IOnEventOptions
Returns