This is the new AWS CloudFormation Template Reference Guide. Please update your bookmarks and links. For help getting started with CloudFormation, see the AWS CloudFormation User Guide.
AWS::Notifications::EventRule
Creates an EventRule that
         is associated with a specified NotificationConfiguration.
Syntax
To declare this entity in your AWS CloudFormation template, use the following syntax:
JSON
{ "Type" : "AWS::Notifications::EventRule", "Properties" : { "EventPattern" :String, "EventType" :String, "NotificationConfigurationArn" :String, "Regions" :[ String, ... ], "Source" :String} }
YAML
Type: AWS::Notifications::EventRule Properties: EventPattern:StringEventType:StringNotificationConfigurationArn:StringRegions:- StringSource:String
Properties
- EventPattern
- 
                    An additional event pattern used to further filter the events this EventRulereceives.For more information, see Amazon EventBridge event patterns in the Amazon EventBridge User Guide. Required: No Type: String Minimum: 0Maximum: 4096Update requires: No interruption 
- EventType
- 
                    The event type this rule should match with the EventBridge events. 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. Required: Yes Type: String Pattern: ^([a-zA-Z0-9 \-\(\)])+$Minimum: 1Maximum: 128Update requires: Replacement 
- NotificationConfigurationArn
- 
                    The ARN for the NotificationConfigurationassociated with thisEventRule.Required: Yes Type: String Pattern: ^arn:aws:notifications::[0-9]{12}:configuration/[a-z0-9]{27}$Update requires: Replacement 
- Regions
- 
                    A list of AWS Regions that send events to this EventRule.Required: Yes Type: Array of String Maximum: 25Minimum: 2 | 1Update requires: No interruption 
- Source
- 
                    The event source this rule should match with the EventBridge event sources. It must match with atleast one of the valid EventBridge event sources. Only AWS service sourced events are supported. For example, aws.ec2andaws.cloudwatch. For more information, see Event delivery from AWS services in the Amazon EventBridge User Guide.Required: Yes Type: String Pattern: ^aws.([a-z0-9\-])+$Minimum: 1Maximum: 36Update requires: Replacement 
Return values
Ref
When you pass the logical ID of this resource to the intrinsic Ref function, Ref returns the ARN of the configuration created.
Fn::GetAtt
- Arn
- 
                            The Amazon Resource Name (ARN) of the EventRule. AWS CloudFormation stack generates this ARN and then uses this ARN associated with theNotificationConfiguration.
- CreationTime
- 
                            The creation time of the EventRule.
- ManagedRules
- 
                            A list of Amazon EventBridge Managed Rule ARNs associated with this EventRule.NoteThese are created by AWS User Notifications within your account so your EventRulescan function.