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

Copyright(c) 2013-2017 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@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

_PolicyLengthExceededException :: AsError a => Getting (First ServiceError) a ServiceError Source #

The event bus policy is too long. For more information, see the limits.

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

There is concurrent modification on a rule or target.

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

This exception occurs due to unexpected causes.

_ResourceNotFoundException :: AsError a => Getting (First ServiceError) a ServiceError Source #

An entity that you specified does not exist.

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

You tried to create more rules or add more targets to a rule than is allowed.

RuleState

data RuleState Source #

Constructors

Disabled 
Enabled 

Instances

Bounded RuleState Source # 
Enum RuleState Source # 
Eq RuleState Source # 
Data RuleState Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> RuleState -> c RuleState #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c RuleState #

toConstr :: RuleState -> Constr #

dataTypeOf :: RuleState -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c RuleState) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c RuleState) #

gmapT :: (forall b. Data b => b -> b) -> RuleState -> RuleState #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> RuleState -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> RuleState -> r #

gmapQ :: (forall d. Data d => d -> u) -> RuleState -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> RuleState -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> RuleState -> m RuleState #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> RuleState -> m RuleState #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> RuleState -> m RuleState #

Ord RuleState Source # 
Read RuleState Source # 
Show RuleState Source # 
Generic RuleState Source # 

Associated Types

type Rep RuleState :: * -> * #

Hashable RuleState Source # 
FromJSON RuleState Source # 
ToJSON RuleState Source # 
NFData RuleState Source # 

Methods

rnf :: RuleState -> () #

ToQuery RuleState Source # 
ToHeader RuleState Source # 
ToByteString RuleState Source # 

Methods

toBS :: RuleState -> ByteString #

FromText RuleState Source # 
ToText RuleState Source # 

Methods

toText :: RuleState -> Text #

type Rep RuleState Source # 
type Rep RuleState = D1 (MetaData "RuleState" "Network.AWS.CloudWatchEvents.Types.Sum" "amazonka-cloudwatch-events-1.5.0-45UlPAa7R14ChwLoYVg3Ab" False) ((:+:) (C1 (MetaCons "Disabled" PrefixI False) U1) (C1 (MetaCons "Enabled" PrefixI False) U1))

EcsParameters

data EcsParameters Source #

The custom parameters to be used when the target is an Amazon ECS cluster.

See: ecsParameters smart constructor.

Instances

Eq EcsParameters Source # 
Data EcsParameters Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> EcsParameters -> c EcsParameters #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c EcsParameters #

toConstr :: EcsParameters -> Constr #

dataTypeOf :: EcsParameters -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c EcsParameters) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c EcsParameters) #

gmapT :: (forall b. Data b => b -> b) -> EcsParameters -> EcsParameters #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> EcsParameters -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> EcsParameters -> r #

gmapQ :: (forall d. Data d => d -> u) -> EcsParameters -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> EcsParameters -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> EcsParameters -> m EcsParameters #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> EcsParameters -> m EcsParameters #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> EcsParameters -> m EcsParameters #

Read EcsParameters Source # 
Show EcsParameters Source # 
Generic EcsParameters Source # 

Associated Types

type Rep EcsParameters :: * -> * #

Hashable EcsParameters Source # 
FromJSON EcsParameters Source # 
ToJSON EcsParameters Source # 
NFData EcsParameters Source # 

Methods

rnf :: EcsParameters -> () #

type Rep EcsParameters Source # 
type Rep EcsParameters = D1 (MetaData "EcsParameters" "Network.AWS.CloudWatchEvents.Types.Product" "amazonka-cloudwatch-events-1.5.0-45UlPAa7R14ChwLoYVg3Ab" False) (C1 (MetaCons "EcsParameters'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_epTaskCount") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Nat))) (S1 (MetaSel (Just Symbol "_epTaskDefinitionARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))

ecsParameters Source #

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

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

  • epTaskCount - The number of tasks to create based on the TaskDefinition . The default is one.
  • epTaskDefinitionARN - The ARN of the task definition to use if the event target is an Amazon ECS cluster.

epTaskCount :: Lens' EcsParameters (Maybe Natural) Source #

The number of tasks to create based on the TaskDefinition . The default is one.

epTaskDefinitionARN :: Lens' EcsParameters Text Source #

The ARN of the task definition to use if the event target is an Amazon ECS cluster.

InputTransformer

data InputTransformer Source #

Contains the parameters needed for you to provide custom input to a target based on one or more pieces of data extracted from the event.

See: inputTransformer smart constructor.

Instances

Eq InputTransformer Source # 
Data InputTransformer Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> InputTransformer -> c InputTransformer #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c InputTransformer #

toConstr :: InputTransformer -> Constr #

dataTypeOf :: InputTransformer -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c InputTransformer) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c InputTransformer) #

gmapT :: (forall b. Data b => b -> b) -> InputTransformer -> InputTransformer #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> InputTransformer -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> InputTransformer -> r #

gmapQ :: (forall d. Data d => d -> u) -> InputTransformer -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> InputTransformer -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> InputTransformer -> m InputTransformer #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> InputTransformer -> m InputTransformer #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> InputTransformer -> m InputTransformer #

Read InputTransformer Source # 
Show InputTransformer Source # 
Generic InputTransformer Source # 
Hashable InputTransformer Source # 
FromJSON InputTransformer Source # 
ToJSON InputTransformer Source # 
NFData InputTransformer Source # 

Methods

rnf :: InputTransformer -> () #

type Rep InputTransformer Source # 
type Rep InputTransformer = D1 (MetaData "InputTransformer" "Network.AWS.CloudWatchEvents.Types.Product" "amazonka-cloudwatch-events-1.5.0-45UlPAa7R14ChwLoYVg3Ab" False) (C1 (MetaCons "InputTransformer'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_itInputPathsMap") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Map Text Text)))) (S1 (MetaSel (Just Symbol "_itInputTemplate") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))

inputTransformer Source #

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

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

  • itInputPathsMap - Map of JSON paths to be extracted from the event. These are key-value pairs, where each value is a JSON path. You must use JSON dot notation, not bracket notation.
  • itInputTemplate - Input template where you can use the values of the keys from InputPathsMap to customize the data sent to the target.

itInputPathsMap :: Lens' InputTransformer (HashMap Text Text) Source #

Map of JSON paths to be extracted from the event. These are key-value pairs, where each value is a JSON path. You must use JSON dot notation, not bracket notation.

itInputTemplate :: Lens' InputTransformer Text Source #

Input template where you can use the values of the keys from InputPathsMap to customize the data sent to the target.

KinesisParameters

data KinesisParameters Source #

This object enables you to specify a JSON path to extract from the event and use as the partition key for the Amazon Kinesis stream, so that you can control the shard to which the event goes. If you do not include this parameter, the default is to use the eventId as the partition key.

See: kinesisParameters smart constructor.

Instances

Eq KinesisParameters Source # 
Data KinesisParameters Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> KinesisParameters -> c KinesisParameters #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c KinesisParameters #

toConstr :: KinesisParameters -> Constr #

dataTypeOf :: KinesisParameters -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c KinesisParameters) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c KinesisParameters) #

gmapT :: (forall b. Data b => b -> b) -> KinesisParameters -> KinesisParameters #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> KinesisParameters -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> KinesisParameters -> r #

gmapQ :: (forall d. Data d => d -> u) -> KinesisParameters -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> KinesisParameters -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> KinesisParameters -> m KinesisParameters #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> KinesisParameters -> m KinesisParameters #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> KinesisParameters -> m KinesisParameters #

Read KinesisParameters Source # 
Show KinesisParameters Source # 
Generic KinesisParameters Source # 
Hashable KinesisParameters Source # 
FromJSON KinesisParameters Source # 
ToJSON KinesisParameters Source # 
NFData KinesisParameters Source # 

Methods

rnf :: KinesisParameters -> () #

type Rep KinesisParameters Source # 
type Rep KinesisParameters = D1 (MetaData "KinesisParameters" "Network.AWS.CloudWatchEvents.Types.Product" "amazonka-cloudwatch-events-1.5.0-45UlPAa7R14ChwLoYVg3Ab" True) (C1 (MetaCons "KinesisParameters'" PrefixI True) (S1 (MetaSel (Just Symbol "_kpPartitionKeyPath") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)))

kinesisParameters Source #

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

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

kpPartitionKeyPath :: Lens' KinesisParameters Text Source #

The JSON path to be extracted from the event and used as the partition key. For more information, see Amazon Kinesis Streams Key Concepts in the Amazon Kinesis Streams Developer Guide .

PutEventsRequestEntry

data PutEventsRequestEntry Source #

Represents an event to be submitted.

See: putEventsRequestEntry smart constructor.

Instances

Eq PutEventsRequestEntry Source # 
Data PutEventsRequestEntry Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> PutEventsRequestEntry -> c PutEventsRequestEntry #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c PutEventsRequestEntry #

toConstr :: PutEventsRequestEntry -> Constr #

dataTypeOf :: PutEventsRequestEntry -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c PutEventsRequestEntry) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c PutEventsRequestEntry) #

gmapT :: (forall b. Data b => b -> b) -> PutEventsRequestEntry -> PutEventsRequestEntry #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> PutEventsRequestEntry -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> PutEventsRequestEntry -> r #

gmapQ :: (forall d. Data d => d -> u) -> PutEventsRequestEntry -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> PutEventsRequestEntry -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> PutEventsRequestEntry -> m PutEventsRequestEntry #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> PutEventsRequestEntry -> m PutEventsRequestEntry #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> PutEventsRequestEntry -> m PutEventsRequestEntry #

Read PutEventsRequestEntry Source # 
Show PutEventsRequestEntry Source # 
Generic PutEventsRequestEntry Source # 
Hashable PutEventsRequestEntry Source # 
ToJSON PutEventsRequestEntry Source # 
NFData PutEventsRequestEntry Source # 

Methods

rnf :: PutEventsRequestEntry -> () #

type Rep PutEventsRequestEntry Source # 
type Rep PutEventsRequestEntry = D1 (MetaData "PutEventsRequestEntry" "Network.AWS.CloudWatchEvents.Types.Product" "amazonka-cloudwatch-events-1.5.0-45UlPAa7R14ChwLoYVg3Ab" False) (C1 (MetaCons "PutEventsRequestEntry'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_pereTime") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe POSIX))) (S1 (MetaSel (Just Symbol "_pereDetailType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) ((:*:) (S1 (MetaSel (Just Symbol "_pereResources") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text]))) ((:*:) (S1 (MetaSel (Just Symbol "_pereSource") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_pereDetail") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))))))

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 - The timestamp of the event, per RFC3339 . If no timestamp is provided, the timestamp of the PutEvents call is used.
  • pereDetailType - Free-form string used to decide what fields to expect in the event detail.
  • pereResources - AWS resources, identified by Amazon Resource Name (ARN), which the event primarily concerns. Any number, including zero, may be present.
  • pereSource - The source of the event.
  • pereDetail - In the JSON sense, an object containing fields, which may also contain nested subobjects. No constraints are imposed on its contents.

pereTime :: Lens' PutEventsRequestEntry (Maybe UTCTime) Source #

The timestamp of the event, per RFC3339 . If no timestamp is provided, the timestamp of the PutEvents call is 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 subobjects. No constraints are imposed on its contents.

PutEventsResultEntry

data PutEventsResultEntry Source #

Represents an event that failed to be submitted.

See: putEventsResultEntry smart constructor.

Instances

Eq PutEventsResultEntry Source # 
Data PutEventsResultEntry Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> PutEventsResultEntry -> c PutEventsResultEntry #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c PutEventsResultEntry #

toConstr :: PutEventsResultEntry -> Constr #

dataTypeOf :: PutEventsResultEntry -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c PutEventsResultEntry) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c PutEventsResultEntry) #

gmapT :: (forall b. Data b => b -> b) -> PutEventsResultEntry -> PutEventsResultEntry #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> PutEventsResultEntry -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> PutEventsResultEntry -> r #

gmapQ :: (forall d. Data d => d -> u) -> PutEventsResultEntry -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> PutEventsResultEntry -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> PutEventsResultEntry -> m PutEventsResultEntry #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> PutEventsResultEntry -> m PutEventsResultEntry #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> PutEventsResultEntry -> m PutEventsResultEntry #

Read PutEventsResultEntry Source # 
Show PutEventsResultEntry Source # 
Generic PutEventsResultEntry Source # 
Hashable PutEventsResultEntry Source # 
FromJSON PutEventsResultEntry Source # 
NFData PutEventsResultEntry Source # 

Methods

rnf :: PutEventsResultEntry -> () #

type Rep PutEventsResultEntry Source # 
type Rep PutEventsResultEntry = D1 (MetaData "PutEventsResultEntry" "Network.AWS.CloudWatchEvents.Types.Product" "amazonka-cloudwatch-events-1.5.0-45UlPAa7R14ChwLoYVg3Ab" False) (C1 (MetaCons "PutEventsResultEntry'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_pereErrorCode") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_pereErrorMessage") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_pereEventId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))

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 that indicates why the event submission failed.

pereErrorMessage :: Lens' PutEventsResultEntry (Maybe Text) Source #

The error message that explains why the event submission failed.

PutTargetsResultEntry

data PutTargetsResultEntry Source #

Represents a target that failed to be added to a rule.

See: putTargetsResultEntry smart constructor.

Instances

Eq PutTargetsResultEntry Source # 
Data PutTargetsResultEntry Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> PutTargetsResultEntry -> c PutTargetsResultEntry #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c PutTargetsResultEntry #

toConstr :: PutTargetsResultEntry -> Constr #

dataTypeOf :: PutTargetsResultEntry -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c PutTargetsResultEntry) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c PutTargetsResultEntry) #

gmapT :: (forall b. Data b => b -> b) -> PutTargetsResultEntry -> PutTargetsResultEntry #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> PutTargetsResultEntry -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> PutTargetsResultEntry -> r #

gmapQ :: (forall d. Data d => d -> u) -> PutTargetsResultEntry -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> PutTargetsResultEntry -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> PutTargetsResultEntry -> m PutTargetsResultEntry #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> PutTargetsResultEntry -> m PutTargetsResultEntry #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> PutTargetsResultEntry -> m PutTargetsResultEntry #

Read PutTargetsResultEntry Source # 
Show PutTargetsResultEntry Source # 
Generic PutTargetsResultEntry Source # 
Hashable PutTargetsResultEntry Source # 
FromJSON PutTargetsResultEntry Source # 
NFData PutTargetsResultEntry Source # 

Methods

rnf :: PutTargetsResultEntry -> () #

type Rep PutTargetsResultEntry Source # 
type Rep PutTargetsResultEntry = D1 (MetaData "PutTargetsResultEntry" "Network.AWS.CloudWatchEvents.Types.Product" "amazonka-cloudwatch-events-1.5.0-45UlPAa7R14ChwLoYVg3Ab" False) (C1 (MetaCons "PutTargetsResultEntry'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_ptreTargetId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_ptreErrorCode") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_ptreErrorMessage") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))

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 - The ID of the target.
  • ptreErrorCode - The error code that indicates why the target addition failed. If the value is ConcurrentModificationException , too many requests were made at the same time.
  • ptreErrorMessage - The error message that explains why the target addition failed.

ptreErrorCode :: Lens' PutTargetsResultEntry (Maybe Text) Source #

The error code that indicates why the target addition failed. If the value is ConcurrentModificationException , too many requests were made at the same time.

ptreErrorMessage :: Lens' PutTargetsResultEntry (Maybe Text) Source #

The error message that explains why the target addition failed.

RemoveTargetsResultEntry

data RemoveTargetsResultEntry Source #

Represents a target that failed to be removed from a rule.

See: removeTargetsResultEntry smart constructor.

Instances

Eq RemoveTargetsResultEntry Source # 
Data RemoveTargetsResultEntry Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> RemoveTargetsResultEntry -> c RemoveTargetsResultEntry #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c RemoveTargetsResultEntry #

toConstr :: RemoveTargetsResultEntry -> Constr #

dataTypeOf :: RemoveTargetsResultEntry -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c RemoveTargetsResultEntry) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c RemoveTargetsResultEntry) #

gmapT :: (forall b. Data b => b -> b) -> RemoveTargetsResultEntry -> RemoveTargetsResultEntry #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> RemoveTargetsResultEntry -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> RemoveTargetsResultEntry -> r #

gmapQ :: (forall d. Data d => d -> u) -> RemoveTargetsResultEntry -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> RemoveTargetsResultEntry -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> RemoveTargetsResultEntry -> m RemoveTargetsResultEntry #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> RemoveTargetsResultEntry -> m RemoveTargetsResultEntry #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> RemoveTargetsResultEntry -> m RemoveTargetsResultEntry #

Read RemoveTargetsResultEntry Source # 
Show RemoveTargetsResultEntry Source # 
Generic RemoveTargetsResultEntry Source # 
Hashable RemoveTargetsResultEntry Source # 
FromJSON RemoveTargetsResultEntry Source # 
NFData RemoveTargetsResultEntry Source # 
type Rep RemoveTargetsResultEntry Source # 
type Rep RemoveTargetsResultEntry = D1 (MetaData "RemoveTargetsResultEntry" "Network.AWS.CloudWatchEvents.Types.Product" "amazonka-cloudwatch-events-1.5.0-45UlPAa7R14ChwLoYVg3Ab" False) (C1 (MetaCons "RemoveTargetsResultEntry'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_rtreTargetId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_rtreErrorCode") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_rtreErrorMessage") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))

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 - The ID of the target.
  • rtreErrorCode - The error code that indicates why the target removal failed. If the value is ConcurrentModificationException , too many requests were made at the same time.
  • rtreErrorMessage - The error message that explains why the target removal failed.

rtreErrorCode :: Lens' RemoveTargetsResultEntry (Maybe Text) Source #

The error code that indicates why the target removal failed. If the value is ConcurrentModificationException , too many requests were made at the same time.

rtreErrorMessage :: Lens' RemoveTargetsResultEntry (Maybe Text) Source #

The error message that explains why the target removal failed.

Rule

data Rule Source #

Contains information about a rule in Amazon CloudWatch Events.

See: rule smart constructor.

Instances

Eq Rule Source # 

Methods

(==) :: Rule -> Rule -> Bool #

(/=) :: Rule -> Rule -> Bool #

Data Rule Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Rule -> c Rule #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Rule #

toConstr :: Rule -> Constr #

dataTypeOf :: Rule -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c Rule) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Rule) #

gmapT :: (forall b. Data b => b -> b) -> Rule -> Rule #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Rule -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Rule -> r #

gmapQ :: (forall d. Data d => d -> u) -> Rule -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> Rule -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> Rule -> m Rule #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Rule -> m Rule #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Rule -> m Rule #

Read Rule Source # 
Show Rule Source # 

Methods

showsPrec :: Int -> Rule -> ShowS #

show :: Rule -> String #

showList :: [Rule] -> ShowS #

Generic Rule Source # 

Associated Types

type Rep Rule :: * -> * #

Methods

from :: Rule -> Rep Rule x #

to :: Rep Rule x -> Rule #

Hashable Rule Source # 

Methods

hashWithSalt :: Int -> Rule -> Int #

hash :: Rule -> Int #

FromJSON Rule Source # 
NFData Rule Source # 

Methods

rnf :: Rule -> () #

type Rep Rule Source # 

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 - The event pattern of the rule. For more information, see Events and Event Patterns in the Amazon CloudWatch Events User Guide .
  • rState - The state of the rule.
  • rARN - The Amazon Resource Name (ARN) of the rule.
  • rScheduleExpression - The scheduling expression. For example, "cron(0 20 * * ? *)", "rate(5 minutes)".
  • rName - The name of the rule.
  • rDescription - The description of the rule.
  • rRoleARN - The Amazon Resource Name (ARN) of the role that is used for target invocation.

rEventPattern :: Lens' Rule (Maybe Text) Source #

The event pattern of the rule. For more information, see Events and Event Patterns in the Amazon CloudWatch Events User Guide .

rState :: Lens' Rule (Maybe RuleState) Source #

The state of the rule.

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 name of the rule.

rDescription :: Lens' Rule (Maybe Text) Source #

The description of the rule.

rRoleARN :: Lens' Rule (Maybe Text) Source #

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

RunCommandParameters

data RunCommandParameters Source #

This parameter contains the criteria (either InstanceIds or a tag) used to specify which EC2 instances are to be sent the command.

See: runCommandParameters smart constructor.

Instances

Eq RunCommandParameters Source # 
Data RunCommandParameters Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> RunCommandParameters -> c RunCommandParameters #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c RunCommandParameters #

toConstr :: RunCommandParameters -> Constr #

dataTypeOf :: RunCommandParameters -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c RunCommandParameters) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c RunCommandParameters) #

gmapT :: (forall b. Data b => b -> b) -> RunCommandParameters -> RunCommandParameters #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> RunCommandParameters -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> RunCommandParameters -> r #

gmapQ :: (forall d. Data d => d -> u) -> RunCommandParameters -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> RunCommandParameters -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> RunCommandParameters -> m RunCommandParameters #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> RunCommandParameters -> m RunCommandParameters #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> RunCommandParameters -> m RunCommandParameters #

Read RunCommandParameters Source # 
Show RunCommandParameters Source # 
Generic RunCommandParameters Source # 
Hashable RunCommandParameters Source # 
FromJSON RunCommandParameters Source # 
ToJSON RunCommandParameters Source # 
NFData RunCommandParameters Source # 

Methods

rnf :: RunCommandParameters -> () #

type Rep RunCommandParameters Source # 
type Rep RunCommandParameters = D1 (MetaData "RunCommandParameters" "Network.AWS.CloudWatchEvents.Types.Product" "amazonka-cloudwatch-events-1.5.0-45UlPAa7R14ChwLoYVg3Ab" True) (C1 (MetaCons "RunCommandParameters'" PrefixI True) (S1 (MetaSel (Just Symbol "_rcpRunCommandTargets") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (List1 RunCommandTarget))))

runCommandParameters Source #

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

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

  • rcpRunCommandTargets - Currently, we support including only one RunCommandTarget block, which specifies either an array of InstanceIds or a tag.

rcpRunCommandTargets :: Lens' RunCommandParameters (NonEmpty RunCommandTarget) Source #

Currently, we support including only one RunCommandTarget block, which specifies either an array of InstanceIds or a tag.

RunCommandTarget

data RunCommandTarget Source #

Information about the EC2 instances that are to be sent the command, specified as key-value pairs. Each RunCommandTarget block can include only one key, but this key may specify multiple values.

See: runCommandTarget smart constructor.

Instances

Eq RunCommandTarget Source # 
Data RunCommandTarget Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> RunCommandTarget -> c RunCommandTarget #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c RunCommandTarget #

toConstr :: RunCommandTarget -> Constr #

dataTypeOf :: RunCommandTarget -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c RunCommandTarget) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c RunCommandTarget) #

gmapT :: (forall b. Data b => b -> b) -> RunCommandTarget -> RunCommandTarget #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> RunCommandTarget -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> RunCommandTarget -> r #

gmapQ :: (forall d. Data d => d -> u) -> RunCommandTarget -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> RunCommandTarget -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> RunCommandTarget -> m RunCommandTarget #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> RunCommandTarget -> m RunCommandTarget #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> RunCommandTarget -> m RunCommandTarget #

Read RunCommandTarget Source # 
Show RunCommandTarget Source # 
Generic RunCommandTarget Source # 
Hashable RunCommandTarget Source # 
FromJSON RunCommandTarget Source # 
ToJSON RunCommandTarget Source # 
NFData RunCommandTarget Source # 

Methods

rnf :: RunCommandTarget -> () #

type Rep RunCommandTarget Source # 
type Rep RunCommandTarget = D1 (MetaData "RunCommandTarget" "Network.AWS.CloudWatchEvents.Types.Product" "amazonka-cloudwatch-events-1.5.0-45UlPAa7R14ChwLoYVg3Ab" False) (C1 (MetaCons "RunCommandTarget'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_rctKey") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_rctValues") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (List1 Text)))))

runCommandTarget Source #

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

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

  • rctKey - Can be either tag: tag-key or InstanceIds .
  • rctValues - If Key is tag: tag-key , Values is a list of tag values. If Key is InstanceIds , Values is a list of Amazon EC2 instance IDs.

rctKey :: Lens' RunCommandTarget Text Source #

Can be either tag: tag-key or InstanceIds .

rctValues :: Lens' RunCommandTarget (NonEmpty Text) Source #

If Key is tag: tag-key , Values is a list of tag values. If Key is InstanceIds , Values is a list of Amazon EC2 instance IDs.

Target

data Target Source #

Targets are the resources to be invoked when a rule is triggered. Target types include EC2 instances, AWS Lambda functions, Amazon Kinesis streams, Amazon ECS tasks, AWS Step Functions state machines, Run Command, and built-in targets.

See: target smart constructor.

Instances

Eq Target Source # 

Methods

(==) :: Target -> Target -> Bool #

(/=) :: Target -> Target -> Bool #

Data Target Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Target -> c Target #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Target #

toConstr :: Target -> Constr #

dataTypeOf :: Target -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c Target) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Target) #

gmapT :: (forall b. Data b => b -> b) -> Target -> Target #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Target -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Target -> r #

gmapQ :: (forall d. Data d => d -> u) -> Target -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> Target -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> Target -> m Target #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Target -> m Target #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Target -> m Target #

Read Target Source # 
Show Target Source # 
Generic Target Source # 

Associated Types

type Rep Target :: * -> * #

Methods

from :: Target -> Rep Target x #

to :: Rep Target x -> Target #

Hashable Target Source # 

Methods

hashWithSalt :: Int -> Target -> Int #

hash :: Target -> Int #

FromJSON Target Source # 
ToJSON Target Source # 
NFData Target Source # 

Methods

rnf :: Target -> () #

type Rep Target Source # 

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:

  • tRunCommandParameters - Parameters used when you are using the rule to invoke Amazon EC2 Run Command.
  • tKinesisParameters - The custom parameter you can use to control shard assignment, when the target is an Amazon Kinesis stream. If you do not include this parameter, the default is to use the eventId as the partition key.
  • tInputTransformer - Settings to enable you to provide custom input to a target based on certain event data. You can extract one or more key-value pairs from the event and then use that data to send customized input to the target.
  • tInput - Valid JSON text passed to the target. In this case, nothing from the event itself is passed to the target. You must use JSON dot notation, not bracket notation. For more information, see The JavaScript Object Notation (JSON) Data Interchange Format .
  • tEcsParameters - Contains the Amazon ECS task definition and task count to be used, if the event target is an Amazon ECS task. For more information about Amazon ECS tasks, see Task Definitions in the Amazon EC2 Container Service Developer Guide .
  • tInputPath - The value of the JSONPath that is used for extracting part of the matched event when passing it to the target. You must use JSON dot notation, not bracket notation. For more information about JSON paths, see JSONPath .
  • tRoleARN - The Amazon Resource Name (ARN) of the IAM role to be used for this target when the rule is triggered. If one rule triggers multiple targets, you can use a different IAM role for each target.
  • tId - The ID of the target.
  • tARN - The Amazon Resource Name (ARN) of the target.

tRunCommandParameters :: Lens' Target (Maybe RunCommandParameters) Source #

Parameters used when you are using the rule to invoke Amazon EC2 Run Command.

tKinesisParameters :: Lens' Target (Maybe KinesisParameters) Source #

The custom parameter you can use to control shard assignment, when the target is an Amazon Kinesis stream. If you do not include this parameter, the default is to use the eventId as the partition key.

tInputTransformer :: Lens' Target (Maybe InputTransformer) Source #

Settings to enable you to provide custom input to a target based on certain event data. You can extract one or more key-value pairs from the event and then use that data to send customized input to the target.

tInput :: Lens' Target (Maybe Text) Source #

Valid JSON text passed to the target. In this case, nothing from the event itself is passed to the target. You must use JSON dot notation, not bracket notation. For more information, see The JavaScript Object Notation (JSON) Data Interchange Format .

tEcsParameters :: Lens' Target (Maybe EcsParameters) Source #

Contains the Amazon ECS task definition and task count to be used, if the event target is an Amazon ECS task. For more information about Amazon ECS tasks, see Task Definitions in the Amazon EC2 Container Service Developer Guide .

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. You must use JSON dot notation, not bracket notation. For more information about JSON paths, see JSONPath .

tRoleARN :: Lens' Target (Maybe Text) Source #

The Amazon Resource Name (ARN) of the IAM role to be used for this target when the rule is triggered. If one rule triggers multiple targets, you can use a different IAM role for each target.

tId :: Lens' Target Text Source #

The ID of the target.

tARN :: Lens' Target Text Source #

The Amazon Resource Name (ARN) of the target.