---
type: resource-type
title: EventRule
description: aws resource type AWS::Events::Rule
name: EventRule
lexicon: aws
resource_type: AWS::Events::Rule
---
`AWS::Events::Rule`, a resource type of the aws lexicon.

## Properties

- `Arn` (`string`, optional): The ARN of the rule, such as arn:aws:events:us-east-2:123456789012:rule/example.
- `Description` (`string`, optional): The description of the rule.
- `EventBusName` (`string`, optional): The name or ARN of the event bus associated with the rule. If you omit this, the default event bus is used.
- `EventPattern` (`string`, optional): The event pattern of the rule. For more information, see Events and Event Patterns in the Amazon EventBridge User Guide.
- `Name` (`string`, optional): The name of the rule.
- `RoleArn` (`string`, optional): The Amazon Resource Name (ARN) of the role that is used for target invocation.
- `ScheduleExpression` (`string`, optional): The scheduling expression. For example, "cron(0 20 * * ? *)", "rate(5 minutes)". For more information, see Creating an Amazon EventBridge rule that runs on a schedule.
- `State` (`"DISABLED" | "ENABLED" | "ENABLED_WITH_ALL_CLOUDTRAIL_MANAGEMENT_EVENTS"`, optional): The state of the rule.
- `Tags` (`EventRule_Tag[]`, optional): Any tags assigned to the event rule.
- `Targets` (`EventRule_Target[]`, optional): Adds the specified targets to the specified rule, or updates the targets if they are already associated with the rule. Targets are the resources that are invoked when a rule is triggered.

## Attributes

- `Arn`
