Class CfnEventRuleProps
Properties for defining a CfnEventRule.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.Notifications
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnEventRuleProps : ICfnEventRuleProps
Syntax (vb)
Public Class CfnEventRuleProps Implements 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
Constructors
| CfnEventRuleProps() | Properties for defining a |
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. |
Constructors
CfnEventRuleProps()
Properties for defining a CfnEventRule.
public CfnEventRuleProps()
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"
};
Properties
EventPattern
An additional event pattern used to further filter the events this EventRule receives.
public string? EventPattern { get; set; }
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.
public string EventType { get; set; }
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 .
public string NotificationConfigurationArn { get; set; }
Property Value
Remarks
Regions
A list of AWS Regions that send events to this EventRule .
public string[] Regions { get; set; }
Property Value
string[]
Remarks
Source
The event source this rule should match with the EventBridge event sources.
public string Source { get; set; }
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 .