Interface ICfnEventRuleProps
Properties for defining a CfnEventRule.
Namespace: Amazon.CDK.AWS.Notifications
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface ICfnEventRuleProps
Syntax (vb)
Public Interface ICfnEventRuleProps
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Notifications;
var cfnEventRuleProps = new CfnEventRuleProps {
EventType = "eventType",
NotificationConfigurationArn = "notificationConfigurationArn",
Regions = new [] { "regions" },
Source = "source",
// the properties below are optional
EventPattern = "eventPattern"
};
Synopsis
Properties
| EventPattern | An additional event pattern used to further filter the events this |
| EventType | The event type this rule should match with the EventBridge events. |
| NotificationConfigurationArn | The ARN for the |
| Regions | A list of AWS Regions that send events to this |
| Source | The event source this rule should match with the EventBridge event sources. |
Properties
EventPattern
An additional event pattern used to further filter the events this EventRule receives.
string? EventPattern { get; }
Property Value
Remarks
For more information, see Amazon EventBridge event patterns in the Amazon EventBridge User Guide.
EventType
The event type this rule should match with the EventBridge events.
string EventType { get; }
Property Value
Remarks
It must match with atleast one of the valid EventBridge event types. For example, Amazon EC2 Instance State change Notification and Amazon CloudWatch State Change. For more information, see Event delivery from AWS services in the Amazon EventBridge User Guide .
NotificationConfigurationArn
The ARN for the NotificationConfiguration associated with this EventRule .
string NotificationConfigurationArn { get; }
Property Value
Remarks
Regions
A list of AWS Regions that send events to this EventRule .
string[] Regions { get; }
Property Value
string[]
Remarks
Source
The event source this rule should match with the EventBridge event sources.
string Source { get; }
Property Value
Remarks
It must match with atleast one of the valid EventBridge event sources. Only AWS service sourced events are supported. For example, aws.ec2 and aws.cloudwatch . For more information, see Event delivery from AWS services in the Amazon EventBridge User Guide .