amazonka-cloudwatch-events-1.4.0: Amazon CloudWatch Events SDK.

Copyright(c) 2013-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.CloudWatchEvents.Types

Contents

Description

 

Synopsis

Service Configuration

cloudWatchEvents :: Service Source

API version '2015-10-07' of the Amazon CloudWatch Events SDK configuration.

Errors

_ConcurrentModificationException :: AsError a => Getting (First ServiceError) a ServiceError Source

This exception occurs if there is concurrent modification on rule or target.

_InternalException :: AsError a => Getting (First ServiceError) a ServiceError Source

This exception occurs due to unexpected causes.

_LimitExceededException :: AsError a => Getting (First ServiceError) a ServiceError Source

This exception occurs if you try to create more rules or add more targets to a rule than allowed by default.

RuleState

PutEventsRequestEntry

putEventsRequestEntry :: PutEventsRequestEntry Source

Creates a value of PutEventsRequestEntry with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

pereTime :: Lens' PutEventsRequestEntry (Maybe UTCTime) Source

Timestamp of event, per RFC3339. If no timestamp is provided, the timestamp of the PutEvents call will be used.

pereDetailType :: Lens' PutEventsRequestEntry (Maybe Text) Source

Free-form string used to decide what fields to expect in the event detail.

pereResources :: Lens' PutEventsRequestEntry [Text] Source

AWS resources, identified by Amazon Resource Name (ARN), which the event primarily concerns. Any number, including zero, may be present.

pereSource :: Lens' PutEventsRequestEntry (Maybe Text) Source

The source of the event.

pereDetail :: Lens' PutEventsRequestEntry (Maybe Text) Source

In the JSON sense, an object containing fields, which may also contain nested sub-objects. No constraints are imposed on its contents.

PutEventsResultEntry

putEventsResultEntry :: PutEventsResultEntry Source

Creates a value of PutEventsResultEntry with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

pereErrorCode :: Lens' PutEventsResultEntry (Maybe Text) Source

The error code representing why the event submission failed on this entry.

pereErrorMessage :: Lens' PutEventsResultEntry (Maybe Text) Source

The error message explaining why the event submission failed on this entry.

pereEventId :: Lens' PutEventsResultEntry (Maybe Text) Source

The ID of the event submitted to Amazon CloudWatch Events.

PutTargetsResultEntry

putTargetsResultEntry :: PutTargetsResultEntry Source

Creates a value of PutTargetsResultEntry with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

ptreTargetId :: Lens' PutTargetsResultEntry (Maybe Text) Source

The ID of the target submitted to Amazon CloudWatch Events.

ptreErrorCode :: Lens' PutTargetsResultEntry (Maybe Text) Source

The error code representing why the target submission failed on this entry.

ptreErrorMessage :: Lens' PutTargetsResultEntry (Maybe Text) Source

The error message explaining why the target submission failed on this entry.

RemoveTargetsResultEntry

removeTargetsResultEntry :: RemoveTargetsResultEntry Source

Creates a value of RemoveTargetsResultEntry with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

rtreTargetId :: Lens' RemoveTargetsResultEntry (Maybe Text) Source

The ID of the target requested to be removed by Amazon CloudWatch Events.

rtreErrorCode :: Lens' RemoveTargetsResultEntry (Maybe Text) Source

The error code representing why the target removal failed on this entry.

rtreErrorMessage :: Lens' RemoveTargetsResultEntry (Maybe Text) Source

The error message explaining why the target removal failed on this entry.

Rule

data Rule Source

Contains information about a rule in Amazon CloudWatch Events. A ListRulesResult contains a list of Rules.

See: rule smart constructor.

rule :: Rule Source

Creates a value of Rule with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

rEventPattern :: Lens' Rule (Maybe Text) Source

The event pattern of the rule.

rState :: Lens' Rule (Maybe RuleState) Source

The rule's state.

rARN :: Lens' Rule (Maybe Text) Source

The Amazon Resource Name (ARN) of the rule.

rScheduleExpression :: Lens' Rule (Maybe Text) Source

The scheduling expression. For example, "cron(0 20 * * ? *)", "rate(5 minutes)".

rName :: Lens' Rule (Maybe Text) Source

The rule's name.

rDescription :: Lens' Rule (Maybe Text) Source

The description of the rule.

rRoleARN :: Lens' Rule (Maybe Text) Source

The Amazon Resource Name (ARN) associated with the role that is used for target invocation.

Target

data Target Source

Targets are the resources that can be invoked when a rule is triggered. For example, AWS Lambda functions, Amazon Kinesis streams, and built-in targets.

Input and InputPath are mutually-exclusive and optional parameters of a target. When a rule is triggered due to a matched event, if for a target:

  • Neither Input nor InputPath is specified, then the entire event is passed to the target in JSON form.
  • InputPath is specified in the form of JSONPath (e.g. $.detail), then only the part of the event specified in the path is passed to the target (e.g. only the detail part of the event is passed).
  • Input is specified in the form of a valid JSON, then the matched event is overridden with this constant.

See: target smart constructor.

target Source

Arguments

:: Text

tId

-> Text

tARN

-> Target 

Creates a value of Target with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

tInput :: Lens' Target (Maybe Text) Source

Valid JSON text passed to the target. For more information about JSON text, see The JavaScript Object Notation (JSON) Data Interchange Format.

tInputPath :: Lens' Target (Maybe Text) Source

The value of the JSONPath that is used for extracting part of the matched event when passing it to the target. For more information about JSON paths, see JSONPath.

tId :: Lens' Target Text Source

The unique target assignment ID.

tARN :: Lens' Target Text Source

The Amazon Resource Name (ARN) associated of the target.