stratosphere-0.2.2: EDSL for AWS CloudFormation

Safe HaskellNone
LanguageHaskell2010

Stratosphere.Resources.EventsRule

Description

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.

Synopsis

Documentation

data EventsRule Source #

Full data type definition for EventsRule. See eventsRule for a more convenient constructor.

Instances

Show EventsRule Source # 
Generic EventsRule Source # 

Associated Types

type Rep EventsRule :: * -> * #

ToJSON EventsRule Source # 
FromJSON EventsRule Source # 
type Rep EventsRule Source # 
type Rep EventsRule = D1 (MetaData "EventsRule" "Stratosphere.Resources.EventsRule" "stratosphere-0.2.2-Fnop5S0NvsvBmp7LUeJWuv" False) (C1 (MetaCons "EventsRule" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_eventsRuleDescription") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe (Val Text)))) ((:*:) (S1 (MetaSel (Just Symbol "_eventsRuleEventPattern") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Object))) (S1 (MetaSel (Just Symbol "_eventsRuleName") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe (Val Text)))))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_eventsRuleRoleArn") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe (Val Text)))) (S1 (MetaSel (Just Symbol "_eventsRuleScheduleExpression") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe (Val Text))))) ((:*:) (S1 (MetaSel (Just Symbol "_eventsRuleState") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe EnabledState))) (S1 (MetaSel (Just Symbol "_eventsRuleTargets") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe [Object])))))))

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.