Safe Haskell | None |
---|---|
Language | Haskell2010 |
You can update an event source mapping. This is useful if you want to change the parameters of the existing mapping without losing your position in the stream. You can change which function will receive the stream records, but to change the stream itself, you must create a new mapping.
This operation requires permission for the 'lambda:UpdateEventSourceMapping' action.
http://docs.aws.amazon.com/lambda/latest/dg/API_UpdateEventSourceMapping.html
- data UpdateEventSourceMapping
- updateEventSourceMapping :: Text -> UpdateEventSourceMapping
- uesmBatchSize :: Lens' UpdateEventSourceMapping (Maybe Natural)
- uesmEnabled :: Lens' UpdateEventSourceMapping (Maybe Bool)
- uesmFunctionName :: Lens' UpdateEventSourceMapping (Maybe Text)
- uesmUUID :: Lens' UpdateEventSourceMapping Text
- data UpdateEventSourceMappingResponse
- updateEventSourceMappingResponse :: UpdateEventSourceMappingResponse
- uesmrBatchSize :: Lens' UpdateEventSourceMappingResponse (Maybe Natural)
- uesmrEventSourceArn :: Lens' UpdateEventSourceMappingResponse (Maybe Text)
- uesmrFunctionArn :: Lens' UpdateEventSourceMappingResponse (Maybe Text)
- uesmrLastModified :: Lens' UpdateEventSourceMappingResponse (Maybe UTCTime)
- uesmrLastProcessingResult :: Lens' UpdateEventSourceMappingResponse (Maybe Text)
- uesmrState :: Lens' UpdateEventSourceMappingResponse (Maybe Text)
- uesmrStateTransitionReason :: Lens' UpdateEventSourceMappingResponse (Maybe Text)
- uesmrUUID :: Lens' UpdateEventSourceMappingResponse (Maybe Text)
Request
data UpdateEventSourceMapping Source
Request constructor
updateEventSourceMapping Source
UpdateEventSourceMapping
constructor.
The fields accessible through corresponding lenses are:
Request lenses
uesmBatchSize :: Lens' UpdateEventSourceMapping (Maybe Natural) Source
The maximum number of stream records that can be sent to your Lambda function for a single invocation.
uesmEnabled :: Lens' UpdateEventSourceMapping (Maybe Bool) Source
Specifies whether AWS Lambda should actively poll the stream or not. If disabled, AWS Lambda will not poll the stream.
uesmFunctionName :: Lens' UpdateEventSourceMapping (Maybe Text) Source
The Lambda function to which you want the stream records sent.
You can specify an unqualified function name (for example, Thumbnail) or you can specify Amazon Resource Name (ARN) of the function (for example, "arn:aws:lambda:us-west-2:account-id:function:ThumbNail"). AWS Lambda also allows you to specify only the account ID qualifier (for example, "account-id:Thumbnail"). Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 character in length.
uesmUUID :: Lens' UpdateEventSourceMapping Text Source
The event source mapping identifier.
Response
Response constructor
updateEventSourceMappingResponse :: UpdateEventSourceMappingResponse Source
UpdateEventSourceMappingResponse
constructor.
The fields accessible through corresponding lenses are:
Response lenses
uesmrBatchSize :: Lens' UpdateEventSourceMappingResponse (Maybe Natural) Source
The largest number of records that AWS Lambda will retrieve from your event source at the time of invoking your function. Your function receives an event with all the retrieved records.
uesmrEventSourceArn :: Lens' UpdateEventSourceMappingResponse (Maybe Text) Source
The Amazon Resource Name (ARN) of the Amazon Kinesis stream that is the source of events.
uesmrFunctionArn :: Lens' UpdateEventSourceMappingResponse (Maybe Text) Source
The Lambda function to invoke when AWS Lambda detects an event on the stream.
uesmrLastModified :: Lens' UpdateEventSourceMappingResponse (Maybe UTCTime) Source
The UTC time string indicating the last time the event mapping was updated.
uesmrLastProcessingResult :: Lens' UpdateEventSourceMappingResponse (Maybe Text) Source
The result of the last AWS Lambda invocation of your Lambda function.
uesmrStateTransitionReason :: Lens' UpdateEventSourceMappingResponse (Maybe Text) Source
The reason the event source mapping is in its current state. It is either user-requested or an AWS Lambda-initiated state transition.