AWS Fundamentals Logo
AWS Fundamentals
AWS::Events::Rule

Events Rule

Resource Type definition for AWS::Events::Rule

Properties

9 configurable properties. Click a row to see details.

Filter:
PropertyTypeFlags
Description
string
EventBusName
string
EventPattern
stringobject
Name
string
Create-only
RoleArn
string
ScheduleExpression
string
State
string
Tags
Array<Tag>
Targets
Array<Target>

Return Values

Values returned after the resource is created. Access these with Fn::GetAtt.

AttributeTypeDescription
ArnstringThe ARN of the rule, such as arn:aws:events:us-east-2:123456789012:rule/example.

Sample CloudFormation Template

A minimal template with required properties and common optional ones.

template.yaml
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::Events::Rule

Resources:
  MyResource:
    Type: AWS::Events::Rule
    Properties:
      Tags:
        - Key: Environment
          Value: Production
      Description: !Ref "AWS::StackName"
      Name: !Ref "AWS::StackName"

Required IAM Permissions

Permissions CloudFormation needs in your IAM role to manage this resource.

read

iam:PassRoleevents:DescribeRuleevents:ListTargetsByRuleevents:ListTagsForResource

create

iam:PassRoleevents:DescribeRuleevents:PutRuleevents:PutTargetsevents:TagResource

update

iam:PassRoleevents:DescribeRuleevents:PutRuleevents:RemoveTargetsevents:PutTargetsevents:UntagResourceevents:TagResource

list

events:ListRules

delete

iam:PassRoleevents:DescribeRuleevents:DeleteRuleevents:RemoveTargetsevents:ListTargetsByRule

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter

Quick Facts

ServiceEvents
Properties10
Required0
TaggingSupported
Primary IDArn

Supported Operations

ReadCreateUpdateListDelete

Immutable After Creation

These properties cannot be changed after the resource is created. Updating them triggers a replacement.

Name

External Links