Show / Hide Table of Contents

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

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-notifications-eventrule.html

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 EventRule receives.

EventType

The event type this rule should match with the EventBridge events.

NotificationConfigurationArn

The ARN for the NotificationConfiguration associated with this EventRule .

Regions

A list of AWS Regions that send events to this EventRule .

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

string

Remarks

For more information, see Amazon EventBridge event patterns in the Amazon EventBridge User Guide.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-notifications-eventrule.html#cfn-notifications-eventrule-eventpattern

EventType

The event type this rule should match with the EventBridge events.

string EventType { get; }
Property Value

string

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 .

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-notifications-eventrule.html#cfn-notifications-eventrule-eventtype

NotificationConfigurationArn

The ARN for the NotificationConfiguration associated with this EventRule .

string NotificationConfigurationArn { get; }
Property Value

string

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-notifications-eventrule.html#cfn-notifications-eventrule-notificationconfigurationarn

Regions

A list of AWS Regions that send events to this EventRule .

string[] Regions { get; }
Property Value

string[]

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-notifications-eventrule.html#cfn-notifications-eventrule-regions

Source

The event source this rule should match with the EventBridge event sources.

string Source { get; }
Property Value

string

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 .

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-notifications-eventrule.html#cfn-notifications-eventrule-source

Back to top Generated by DocFX