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

Copyright(c) 2013-2018 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 #

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

Errors

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

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

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

There is concurrent modification on a rule or target.

_InvalidEventPatternException :: AsError a => Getting (First ServiceError) a ServiceError #

The event pattern is not valid.

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

This exception occurs due to unexpected causes.

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

An entity that you specified does not exist.

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

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

RuleState

data RuleState #

Constructors

Disabled 
Enabled 

Instances

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

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 # 
Read RuleState # 
Show RuleState # 
Generic RuleState # 

Associated Types

type Rep RuleState :: * -> * #

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

Methods

rnf :: RuleState -> () #

ToHeader RuleState # 
ToQuery RuleState # 
ToByteString RuleState # 

Methods

toBS :: RuleState -> ByteString #

FromText RuleState # 
ToText RuleState # 

Methods

toText :: RuleState -> Text #

type Rep RuleState # 
type Rep RuleState = D1 * (MetaData "RuleState" "Network.AWS.CloudWatchEvents.Types.Sum" "amazonka-cloudwatch-events-1.6.0-28QGFHp8qX59okvAh7fuR8" False) ((:+:) * (C1 * (MetaCons "Disabled" PrefixI False) (U1 *)) (C1 * (MetaCons "Enabled" PrefixI False) (U1 *)))

BatchArrayProperties

data BatchArrayProperties #

The array properties for the submitted job, such as the size of the array. The array size can be between 2 and 10,000. If you specify array properties for a job, it becomes an array job. This parameter is used only if the target is an AWS Batch job.

See: batchArrayProperties smart constructor.

Instances

Eq BatchArrayProperties # 
Data BatchArrayProperties # 

Methods

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

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

toConstr :: BatchArrayProperties -> Constr #

dataTypeOf :: BatchArrayProperties -> DataType #

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

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

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

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

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

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

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

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

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

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

Read BatchArrayProperties # 
Show BatchArrayProperties # 
Generic BatchArrayProperties # 
Hashable BatchArrayProperties # 
ToJSON BatchArrayProperties # 
FromJSON BatchArrayProperties # 
NFData BatchArrayProperties # 

Methods

rnf :: BatchArrayProperties -> () #

type Rep BatchArrayProperties # 
type Rep BatchArrayProperties = D1 * (MetaData "BatchArrayProperties" "Network.AWS.CloudWatchEvents.Types.Product" "amazonka-cloudwatch-events-1.6.0-28QGFHp8qX59okvAh7fuR8" True) (C1 * (MetaCons "BatchArrayProperties'" PrefixI True) (S1 * (MetaSel (Just Symbol "_bapSize") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * (Maybe Int))))

batchArrayProperties :: BatchArrayProperties #

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

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

  • bapSize - The size of the array, if this is an array batch job. Valid values are integers between 2 and 10,000.

bapSize :: Lens' BatchArrayProperties (Maybe Int) #

The size of the array, if this is an array batch job. Valid values are integers between 2 and 10,000.

BatchParameters

data BatchParameters #

The custom parameters to be used when the target is an AWS Batch job.

See: batchParameters smart constructor.

Instances

Eq BatchParameters # 
Data BatchParameters # 

Methods

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

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

toConstr :: BatchParameters -> Constr #

dataTypeOf :: BatchParameters -> DataType #

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

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

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

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

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

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

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

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

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

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

Read BatchParameters # 
Show BatchParameters # 
Generic BatchParameters # 
Hashable BatchParameters # 
ToJSON BatchParameters # 
FromJSON BatchParameters # 
NFData BatchParameters # 

Methods

rnf :: BatchParameters -> () #

type Rep BatchParameters # 
type Rep BatchParameters = D1 * (MetaData "BatchParameters" "Network.AWS.CloudWatchEvents.Types.Product" "amazonka-cloudwatch-events-1.6.0-28QGFHp8qX59okvAh7fuR8" False) (C1 * (MetaCons "BatchParameters'" PrefixI True) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_bpRetryStrategy") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe BatchRetryStrategy))) (S1 * (MetaSel (Just Symbol "_bpArrayProperties") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe BatchArrayProperties)))) ((:*:) * (S1 * (MetaSel (Just Symbol "_bpJobDefinition") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)) (S1 * (MetaSel (Just Symbol "_bpJobName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)))))

batchParameters #

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

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

  • bpRetryStrategy - The retry strategy to use for failed jobs, if the target is an AWS Batch job. The retry strategy is the number of times to retry the failed job execution. Valid values are 1 to 10. When you specify a retry strategy here, it overrides the retry strategy defined in the job definition.
  • bpArrayProperties - The array properties for the submitted job, such as the size of the array. The array size can be between 2 and 10,000. If you specify array properties for a job, it becomes an array job. This parameter is used only if the target is an AWS Batch job.
  • bpJobDefinition - The ARN or name of the job definition to use if the event target is an AWS Batch job. This job definition must already exist.
  • bpJobName - The name to use for this execution of the job, if the target is an AWS Batch job.

bpRetryStrategy :: Lens' BatchParameters (Maybe BatchRetryStrategy) #

The retry strategy to use for failed jobs, if the target is an AWS Batch job. The retry strategy is the number of times to retry the failed job execution. Valid values are 1 to 10. When you specify a retry strategy here, it overrides the retry strategy defined in the job definition.

bpArrayProperties :: Lens' BatchParameters (Maybe BatchArrayProperties) #

The array properties for the submitted job, such as the size of the array. The array size can be between 2 and 10,000. If you specify array properties for a job, it becomes an array job. This parameter is used only if the target is an AWS Batch job.

bpJobDefinition :: Lens' BatchParameters Text #

The ARN or name of the job definition to use if the event target is an AWS Batch job. This job definition must already exist.

bpJobName :: Lens' BatchParameters Text #

The name to use for this execution of the job, if the target is an AWS Batch job.

BatchRetryStrategy

data BatchRetryStrategy #

The retry strategy to use for failed jobs, if the target is an AWS Batch job. If you specify a retry strategy here, it overrides the retry strategy defined in the job definition.

See: batchRetryStrategy smart constructor.

Instances

Eq BatchRetryStrategy # 
Data BatchRetryStrategy # 

Methods

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

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

toConstr :: BatchRetryStrategy -> Constr #

dataTypeOf :: BatchRetryStrategy -> DataType #

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

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

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

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

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

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

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

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

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

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

Read BatchRetryStrategy # 
Show BatchRetryStrategy # 
Generic BatchRetryStrategy # 
Hashable BatchRetryStrategy # 
ToJSON BatchRetryStrategy # 
FromJSON BatchRetryStrategy # 
NFData BatchRetryStrategy # 

Methods

rnf :: BatchRetryStrategy -> () #

type Rep BatchRetryStrategy # 
type Rep BatchRetryStrategy = D1 * (MetaData "BatchRetryStrategy" "Network.AWS.CloudWatchEvents.Types.Product" "amazonka-cloudwatch-events-1.6.0-28QGFHp8qX59okvAh7fuR8" True) (C1 * (MetaCons "BatchRetryStrategy'" PrefixI True) (S1 * (MetaSel (Just Symbol "_brsAttempts") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * (Maybe Int))))

batchRetryStrategy :: BatchRetryStrategy #

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

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

  • brsAttempts - The number of times to attempt to retry, if the job fails. Valid values are 1 to 10.

brsAttempts :: Lens' BatchRetryStrategy (Maybe Int) #

The number of times to attempt to retry, if the job fails. Valid values are 1 to 10.

EcsParameters

data EcsParameters #

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

See: ecsParameters smart constructor.

Instances

Eq EcsParameters # 
Data EcsParameters # 

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 # 
Show EcsParameters # 
Generic EcsParameters # 

Associated Types

type Rep EcsParameters :: * -> * #

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

Methods

rnf :: EcsParameters -> () #

type Rep EcsParameters # 
type Rep EcsParameters = D1 * (MetaData "EcsParameters" "Network.AWS.CloudWatchEvents.Types.Product" "amazonka-cloudwatch-events-1.6.0-28QGFHp8qX59okvAh7fuR8" 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 #

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) #

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

epTaskDefinitionARN :: Lens' EcsParameters Text #

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

InputTransformer

data InputTransformer #

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 # 
Data InputTransformer # 

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 # 
Show InputTransformer # 
Generic InputTransformer # 
Hashable InputTransformer # 
ToJSON InputTransformer # 
FromJSON InputTransformer # 
NFData InputTransformer # 

Methods

rnf :: InputTransformer -> () #

type Rep InputTransformer # 
type Rep InputTransformer = D1 * (MetaData "InputTransformer" "Network.AWS.CloudWatchEvents.Types.Product" "amazonka-cloudwatch-events-1.6.0-28QGFHp8qX59okvAh7fuR8" 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 #

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) #

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 #

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

KinesisParameters

data KinesisParameters #

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 # 
Data KinesisParameters # 

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 # 
Show KinesisParameters # 
Generic KinesisParameters # 
Hashable KinesisParameters # 
ToJSON KinesisParameters # 
FromJSON KinesisParameters # 
NFData KinesisParameters # 

Methods

rnf :: KinesisParameters -> () #

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

kinesisParameters #

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 #

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 #

Represents an event to be submitted.

See: putEventsRequestEntry smart constructor.

Instances

Eq PutEventsRequestEntry # 
Data PutEventsRequestEntry # 

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 # 
Show PutEventsRequestEntry # 
Generic PutEventsRequestEntry # 
Hashable PutEventsRequestEntry # 
ToJSON PutEventsRequestEntry # 
NFData PutEventsRequestEntry # 

Methods

rnf :: PutEventsRequestEntry -> () #

type Rep PutEventsRequestEntry # 
type Rep PutEventsRequestEntry = D1 * (MetaData "PutEventsRequestEntry" "Network.AWS.CloudWatchEvents.Types.Product" "amazonka-cloudwatch-events-1.6.0-28QGFHp8qX59okvAh7fuR8" 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 #

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 - A valid JSON string. There is no other schema imposed. The JSON string may contain fields and nested subobjects.

pereTime :: Lens' PutEventsRequestEntry (Maybe UTCTime) #

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) #

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

pereResources :: Lens' PutEventsRequestEntry [Text] #

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) #

The source of the event.

pereDetail :: Lens' PutEventsRequestEntry (Maybe Text) #

A valid JSON string. There is no other schema imposed. The JSON string may contain fields and nested subobjects.

PutEventsResultEntry

data PutEventsResultEntry #

Represents an event that failed to be submitted.

See: putEventsResultEntry smart constructor.

Instances

Eq PutEventsResultEntry # 
Data PutEventsResultEntry # 

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 # 
Show PutEventsResultEntry # 
Generic PutEventsResultEntry # 
Hashable PutEventsResultEntry # 
FromJSON PutEventsResultEntry # 
NFData PutEventsResultEntry # 

Methods

rnf :: PutEventsResultEntry -> () #

type Rep PutEventsResultEntry # 
type Rep PutEventsResultEntry = D1 * (MetaData "PutEventsResultEntry" "Network.AWS.CloudWatchEvents.Types.Product" "amazonka-cloudwatch-events-1.6.0-28QGFHp8qX59okvAh7fuR8" 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 #

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) #

The error code that indicates why the event submission failed.

pereErrorMessage :: Lens' PutEventsResultEntry (Maybe Text) #

The error message that explains why the event submission failed.

PutTargetsResultEntry

data PutTargetsResultEntry #

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

See: putTargetsResultEntry smart constructor.

Instances

Eq PutTargetsResultEntry # 
Data PutTargetsResultEntry # 

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 # 
Show PutTargetsResultEntry # 
Generic PutTargetsResultEntry # 
Hashable PutTargetsResultEntry # 
FromJSON PutTargetsResultEntry # 
NFData PutTargetsResultEntry # 

Methods

rnf :: PutTargetsResultEntry -> () #

type Rep PutTargetsResultEntry # 
type Rep PutTargetsResultEntry = D1 * (MetaData "PutTargetsResultEntry" "Network.AWS.CloudWatchEvents.Types.Product" "amazonka-cloudwatch-events-1.6.0-28QGFHp8qX59okvAh7fuR8" 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 #

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) #

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) #

The error message that explains why the target addition failed.

RemoveTargetsResultEntry

data RemoveTargetsResultEntry #

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

See: removeTargetsResultEntry smart constructor.

Instances

Eq RemoveTargetsResultEntry # 
Data RemoveTargetsResultEntry # 

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 # 
Show RemoveTargetsResultEntry # 
Generic RemoveTargetsResultEntry # 
Hashable RemoveTargetsResultEntry # 
FromJSON RemoveTargetsResultEntry # 
NFData RemoveTargetsResultEntry # 
type Rep RemoveTargetsResultEntry # 
type Rep RemoveTargetsResultEntry = D1 * (MetaData "RemoveTargetsResultEntry" "Network.AWS.CloudWatchEvents.Types.Product" "amazonka-cloudwatch-events-1.6.0-28QGFHp8qX59okvAh7fuR8" 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 #

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) #

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) #

The error message that explains why the target removal failed.

Rule

data Rule #

Contains information about a rule in Amazon CloudWatch Events.

See: rule smart constructor.

Instances

Eq Rule # 

Methods

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

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

Data Rule # 

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 # 
Show Rule # 

Methods

showsPrec :: Int -> Rule -> ShowS #

show :: Rule -> String #

showList :: [Rule] -> ShowS #

Generic Rule # 

Associated Types

type Rep Rule :: * -> * #

Methods

from :: Rule -> Rep Rule x #

to :: Rep Rule x -> Rule #

Hashable Rule # 

Methods

hashWithSalt :: Int -> Rule -> Int #

hash :: Rule -> Int #

FromJSON Rule # 
NFData Rule # 

Methods

rnf :: Rule -> () #

type Rep Rule # 

rule :: Rule #

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) #

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) #

The state of the rule.

rARN :: Lens' Rule (Maybe Text) #

The Amazon Resource Name (ARN) of the rule.

rScheduleExpression :: Lens' Rule (Maybe Text) #

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

rName :: Lens' Rule (Maybe Text) #

The name of the rule.

rDescription :: Lens' Rule (Maybe Text) #

The description of the rule.

rRoleARN :: Lens' Rule (Maybe Text) #

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

RunCommandParameters

data RunCommandParameters #

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 # 
Data RunCommandParameters # 

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 # 
Show RunCommandParameters # 
Generic RunCommandParameters # 
Hashable RunCommandParameters # 
ToJSON RunCommandParameters # 
FromJSON RunCommandParameters # 
NFData RunCommandParameters # 

Methods

rnf :: RunCommandParameters -> () #

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

runCommandParameters #

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) #

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

RunCommandTarget

data RunCommandTarget #

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 # 
Data RunCommandTarget # 

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 # 
Show RunCommandTarget # 
Generic RunCommandTarget # 
Hashable RunCommandTarget # 
ToJSON RunCommandTarget # 
FromJSON RunCommandTarget # 
NFData RunCommandTarget # 

Methods

rnf :: RunCommandTarget -> () #

type Rep RunCommandTarget # 
type Rep RunCommandTarget = D1 * (MetaData "RunCommandTarget" "Network.AWS.CloudWatchEvents.Types.Product" "amazonka-cloudwatch-events-1.6.0-28QGFHp8qX59okvAh7fuR8" 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 #

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 #

Can be either tag: tag-key or InstanceIds .

rctValues :: Lens' RunCommandTarget (NonEmpty Text) #

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.

SqsParameters

data SqsParameters #

This structure includes the custom parameter to be used when the target is an SQS FIFO queue.

See: sqsParameters smart constructor.

Instances

Eq SqsParameters # 
Data SqsParameters # 

Methods

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

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

toConstr :: SqsParameters -> Constr #

dataTypeOf :: SqsParameters -> DataType #

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

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

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

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

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

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

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

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

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

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

Read SqsParameters # 
Show SqsParameters # 
Generic SqsParameters # 

Associated Types

type Rep SqsParameters :: * -> * #

Hashable SqsParameters # 
ToJSON SqsParameters # 
FromJSON SqsParameters # 
NFData SqsParameters # 

Methods

rnf :: SqsParameters -> () #

type Rep SqsParameters # 
type Rep SqsParameters = D1 * (MetaData "SqsParameters" "Network.AWS.CloudWatchEvents.Types.Product" "amazonka-cloudwatch-events-1.6.0-28QGFHp8qX59okvAh7fuR8" True) (C1 * (MetaCons "SqsParameters'" PrefixI True) (S1 * (MetaSel (Just Symbol "_spMessageGroupId") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * (Maybe Text))))

sqsParameters :: SqsParameters #

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

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

spMessageGroupId :: Lens' SqsParameters (Maybe Text) #

The FIFO message group ID to use as the target.

Target

data Target #

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 # 

Methods

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

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

Data Target # 

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 # 
Show Target # 
Generic Target # 

Associated Types

type Rep Target :: * -> * #

Methods

from :: Target -> Rep Target x #

to :: Rep Target x -> Target #

Hashable Target # 

Methods

hashWithSalt :: Int -> Target -> Int #

hash :: Target -> Int #

ToJSON Target # 
FromJSON Target # 
NFData Target # 

Methods

rnf :: Target -> () #

type Rep Target # 
type Rep Target = D1 * (MetaData "Target" "Network.AWS.CloudWatchEvents.Types.Product" "amazonka-cloudwatch-events-1.6.0-28QGFHp8qX59okvAh7fuR8" False) (C1 * (MetaCons "Target'" PrefixI True) ((:*:) * ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_tRunCommandParameters") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe RunCommandParameters))) (S1 * (MetaSel (Just Symbol "_tKinesisParameters") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe KinesisParameters)))) ((:*:) * (S1 * (MetaSel (Just Symbol "_tInputTransformer") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe InputTransformer))) ((:*:) * (S1 * (MetaSel (Just Symbol "_tSqsParameters") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe SqsParameters))) (S1 * (MetaSel (Just Symbol "_tInput") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text)))))) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_tBatchParameters") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe BatchParameters))) ((:*:) * (S1 * (MetaSel (Just Symbol "_tEcsParameters") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe EcsParameters))) (S1 * (MetaSel (Just Symbol "_tInputPath") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))))) ((:*:) * (S1 * (MetaSel (Just Symbol "_tRoleARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) ((:*:) * (S1 * (MetaSel (Just Symbol "_tId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)) (S1 * (MetaSel (Just Symbol "_tARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)))))))

target #

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.
  • tSqsParameters - Contains the message group ID to use when the target is a FIFO queue.
  • tInput - Valid JSON text passed to the target. In this case, nothing from the event itself is passed to the target. For more information, see The JavaScript Object Notation (JSON) Data Interchange Format .
  • tBatchParameters - Contains the job definition, job name, and other parameters if the event target is an AWS Batch job. For more information about AWS Batch, see Jobs in the AWS Batch User Guide .
  • 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) #

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

tKinesisParameters :: Lens' Target (Maybe KinesisParameters) #

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) #

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.

tSqsParameters :: Lens' Target (Maybe SqsParameters) #

Contains the message group ID to use when the target is a FIFO queue.

tInput :: Lens' Target (Maybe Text) #

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

tBatchParameters :: Lens' Target (Maybe BatchParameters) #

Contains the job definition, job name, and other parameters if the event target is an AWS Batch job. For more information about AWS Batch, see Jobs in the AWS Batch User Guide .

tEcsParameters :: Lens' Target (Maybe EcsParameters) #

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) #

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) #

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 #

The ID of the target.

tARN :: Lens' Target Text #

The Amazon Resource Name (ARN) of the target.