Safe Haskell | None |
---|---|
Language | Haskell2010 |
The AWS::Events::Rule resource creates a rule that matches incoming Amazon CloudWatch Events (CloudWatch Events) events and routes them to one or more targets for processing. For more information, see Using CloudWatch Events in the Amazon CloudWatch User Guide.
- data EventsRule = EventsRule {}
- eventsRule :: EventsRule
- erDescription :: Lens' EventsRule (Maybe (Val Text))
- erEventPattern :: Lens' EventsRule (Maybe Object)
- erName :: Lens' EventsRule (Maybe (Val Text))
- erRoleArn :: Lens' EventsRule (Maybe (Val Text))
- erScheduleExpression :: Lens' EventsRule (Maybe (Val Text))
- erState :: Lens' EventsRule (Maybe EnabledState)
- erTargets :: Lens' EventsRule (Maybe [Object])
Documentation
data EventsRule Source #
Full data type definition for EventsRule. See eventsRule
for a more
convenient constructor.
eventsRule :: EventsRule Source #
Constructor for EventsRule
containing required fields as arguments.
erDescription :: Lens' EventsRule (Maybe (Val Text)) Source #
A description of the rule's purpose.
erEventPattern :: Lens' EventsRule (Maybe Object) Source #
Describes which events CloudWatch Events routes to the specified target. These routed events are matched events. For more information, see Events and Event Patterns in the Amazon CloudWatch User Guide.
erName :: Lens' EventsRule (Maybe (Val Text)) Source #
A name for the rule. If you don't specify a name, AWS CloudFormation generates a unique physical ID and uses that ID for the rule name. For more information, see Name Type. Important If you specify a name, you cannot do updates that require this resource to be replaced. You can still do updates that require no or some interruption. If you must replace the resource, specify a new name.
erRoleArn :: Lens' EventsRule (Maybe (Val Text)) Source #
The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that grants CloudWatch Events permission to make calls to target services, such as AWS Lambda (Lambda) or Amazon Kinesis streams.
erScheduleExpression :: Lens' EventsRule (Maybe (Val Text)) Source #
The schedule or rate (frequency) that determines when CloudWatch Events runs the rule. For more information, see Schedule Expression Syntax for Rules in the Amazon CloudWatch User Guide.
erState :: Lens' EventsRule (Maybe EnabledState) Source #
Indicates whether the rule is enabled. For valid values, see the State parameter for the PutRule action in the Amazon CloudWatch Events API Reference.
erTargets :: Lens' EventsRule (Maybe [Object]) Source #
The resources, such as Lambda functions or Amazon Kinesis streams, that CloudWatch Events routes events to and invokes when the rule is triggered. For information about valid targets, see the PutTargets action in the Amazon CloudWatch Events API Reference.