CfnEventRuleProps Struct
Properties for defining a CfnEventRule.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_notifications as notifications } from 'aws-cdk-lib';
const cfnEventRuleProps: notifications.CfnEventRuleProps = {
eventType: 'eventType',
notificationConfigurationArn: 'notificationConfigurationArn',
regions: ['regions'],
source: 'source',
// the properties below are optional
eventPattern: 'eventPattern',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_notifications as notifications
cfn_event_rule_props = notifications.CfnEventRuleProps(
event_type="eventType",
notification_configuration_arn="notificationConfigurationArn",
regions=["regions"],
source="source",
# the properties below are optional
event_pattern="eventPattern"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.notifications.*;
CfnEventRuleProps cfnEventRuleProps = CfnEventRuleProps.builder()
.eventType("eventType")
.notificationConfigurationArn("notificationConfigurationArn")
.regions(List.of("regions"))
.source("source")
// the properties below are optional
.eventPattern("eventPattern")
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// 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"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
cfnEventRuleProps := &CfnEventRuleProps{
EventType: jsii.String("eventType"),
NotificationConfigurationArn: jsii.String("notificationConfigurationArn"),
Regions: []*string{
jsii.String("regions"),
},
Source: jsii.String("source"),
// the properties below are optional
EventPattern: jsii.String("eventPattern"),
}
Properties
eventPatternoptionalstringevent_patternoptionalstreventPatternoptionalStringEventPatternoptionalstringEventPatternoptional*string #An additional event pattern used to further filter the events this `EventRule` receives.
For more information, see Amazon EventBridge event patterns in the Amazon EventBridge User Guide.
The event type this rule should match with the EventBridge events.
notes
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 .
notificationConfigurationArnstringnotification_configuration_arnstrnotificationConfigurationArnStringNotificationConfigurationArnstringNotificationConfigurationArn*string required #The ARN for the `NotificationConfiguration` associated with this `EventRule` .
regionsstring[]regionstyping.List[str]regionsList<String>Regionsstring[]Regions*[]*string required #A list of AWS Regions that send events to this `EventRule` .
The event source this rule should match with the EventBridge event sources.
notes
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 .