Show / Hide Table of Contents

Class CfnEventRuleProps

Properties for defining a CfnEventRule.

Inheritance
object
CfnEventRuleProps
Implements
ICfnEventRuleProps
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Amazon.CDK.AWS.Notifications
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnEventRuleProps : ICfnEventRuleProps
Syntax (vb)
Public Class CfnEventRuleProps Implements 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

Constructors

CfnEventRuleProps()

Properties for defining a CfnEventRule.

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.

Constructors

CfnEventRuleProps()

Properties for defining a CfnEventRule.

public CfnEventRuleProps()
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"
             };

Properties

EventPattern

An additional event pattern used to further filter the events this EventRule receives.

public string? EventPattern { get; set; }
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.

public string EventType { get; set; }
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 .

public string NotificationConfigurationArn { get; set; }
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 .

public string[] Regions { get; set; }
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.

public string Source { get; set; }
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

Implements

ICfnEventRuleProps
Back to top Generated by DocFX