Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data AddEventSource = AddEventSource {
- _aesBatchSize :: !(Maybe Integer)
- _aesEventSource :: !Arn
- _aesFunctionName :: !Text
- _aesParameters :: !(Maybe EventSourceParameters)
- _aesRole :: !Text
- addEventSource :: Arn -> Text -> Arn -> AddEventSource
- aesBatchSize :: Lens' AddEventSource (Maybe Integer)
- aesEventSource :: Lens' AddEventSource Arn
- aesFunctionName :: Lens' AddEventSource Text
- aesParameters :: Lens' AddEventSource (Maybe EventSourceParameters)
- aesRole :: Lens' AddEventSource Text
- newtype AddEventSourceResponse = AddEventSourceResponse {}
- aesrConfiguration :: Iso' AddEventSourceResponse EventSourceConfiguration
Request
data AddEventSource Source
Identifies a stream as an event source for an AWS Lambda function. It can be either an Amazon Kinesis stream or a Amazon DynamoDB stream. AWS Lambda invokes the specified function when records are posted to the stream. This is the pull model, where AWS Lambda invokes the function.
This association between an Amazon Kinesis stream and an AWS Lambda function is called the event source mapping. You provide the configuration information (for example, which stream to read from and which AWS Lambda function to invoke) for the event source mapping in the request body.
Each event source, such as a Kinesis stream, can only be associated with one
AWS Lambda function. If you call AddEventSource
for an event source that is
already mapped to another AWS Lambda function, the existing mapping is
updated to call the new function instead of the old one.
This operation requires permission for the iam:PassRole
action for the IAM
role. It also requires permission for the lambda:AddEventSource
action.
AddEventSource | |
|
A minimal AddEventSource
request.
Lenses
Response
newtype AddEventSourceResponse Source