Copyright | (c) 2013-2018 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Returns configuration information for the specified event source mapping (see CreateEventSourceMapping
).
This operation requires permission for the lambda:GetEventSourceMapping
action.
- getEventSourceMapping :: Text -> GetEventSourceMapping
- data GetEventSourceMapping
- gesmUUId :: Lens' GetEventSourceMapping Text
- eventSourceMappingConfiguration :: EventSourceMappingConfiguration
- data EventSourceMappingConfiguration
- esmcEventSourceARN :: Lens' EventSourceMappingConfiguration (Maybe Text)
- esmcState :: Lens' EventSourceMappingConfiguration (Maybe Text)
- esmcFunctionARN :: Lens' EventSourceMappingConfiguration (Maybe Text)
- esmcUUId :: Lens' EventSourceMappingConfiguration (Maybe Text)
- esmcLastProcessingResult :: Lens' EventSourceMappingConfiguration (Maybe Text)
- esmcBatchSize :: Lens' EventSourceMappingConfiguration (Maybe Natural)
- esmcStateTransitionReason :: Lens' EventSourceMappingConfiguration (Maybe Text)
- esmcLastModified :: Lens' EventSourceMappingConfiguration (Maybe UTCTime)
Creating a Request
getEventSourceMapping Source #
Creates a value of GetEventSourceMapping
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
gesmUUId
- The AWS Lambda assigned ID of the event source mapping.
data GetEventSourceMapping Source #
See: getEventSourceMapping
smart constructor.
Request Lenses
gesmUUId :: Lens' GetEventSourceMapping Text Source #
The AWS Lambda assigned ID of the event source mapping.
Destructuring the Response
eventSourceMappingConfiguration :: EventSourceMappingConfiguration Source #
Creates a value of EventSourceMappingConfiguration
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
esmcEventSourceARN
- The Amazon Resource Name (ARN) of the Amazon Kinesis stream that is the source of events.esmcState
- The state of the event source mapping. It can beCreating
,Enabled
,Disabled
,Enabling
,Disabling
,Updating
, orDeleting
.esmcFunctionARN
- The Lambda function to invoke when AWS Lambda detects an event on the stream.esmcUUId
- The AWS Lambda assigned opaque identifier for the mapping.esmcLastProcessingResult
- The result of the last AWS Lambda invocation of your Lambda function.esmcBatchSize
- 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.esmcStateTransitionReason
- The reason the event source mapping is in its current state. It is either user-requested or an AWS Lambda-initiated state transition.esmcLastModified
- The UTC time string indicating the last time the event mapping was updated.
data EventSourceMappingConfiguration Source #
Describes mapping between an Amazon Kinesis stream and a Lambda function.
See: eventSourceMappingConfiguration
smart constructor.
Response Lenses
esmcEventSourceARN :: Lens' EventSourceMappingConfiguration (Maybe Text) Source #
The Amazon Resource Name (ARN) of the Amazon Kinesis stream that is the source of events.
esmcState :: Lens' EventSourceMappingConfiguration (Maybe Text) Source #
The state of the event source mapping. It can be Creating
, Enabled
, Disabled
, Enabling
, Disabling
, Updating
, or Deleting
.
esmcFunctionARN :: Lens' EventSourceMappingConfiguration (Maybe Text) Source #
The Lambda function to invoke when AWS Lambda detects an event on the stream.
esmcUUId :: Lens' EventSourceMappingConfiguration (Maybe Text) Source #
The AWS Lambda assigned opaque identifier for the mapping.
esmcLastProcessingResult :: Lens' EventSourceMappingConfiguration (Maybe Text) Source #
The result of the last AWS Lambda invocation of your Lambda function.
esmcBatchSize :: Lens' EventSourceMappingConfiguration (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.
esmcStateTransitionReason :: Lens' EventSourceMappingConfiguration (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.
esmcLastModified :: Lens' EventSourceMappingConfiguration (Maybe UTCTime) Source #
The UTC time string indicating the last time the event mapping was updated.