aws::lambda-event-source-mapping

Creates a lambda event source mapping.

Example

aws::lambda-event-source-mapping event-source-mapping-example
    function: $(aws::lambda-function lambda-function-event-source-mapping-example)
    batch-size: 10
    event-source-arn: "$(aws::sqs-queue sqs-event-source-mapping-example | queue-arn)"
end

Attributes

Attribute Description
function The Lambda Function to be associated with. Required if Alias is not provided.
function-version The Lambda Function version to be associated with.
alias The Lambda Function to be associated with. Required if function is not provided.
batch-size The batch size for the event to invoke the Lambda Function. (Required)
enabled Enable or disable the Lambda Event Source Mapping. Defaults to True.
event-source-arn The event source arn to be connected with the function. (Required)
starting-position The starting position in terms of the connected resource for the Lambda Function to be invoked. Required if source event is DynamoDb or Kinesis. Valid values are TRIM_HORIZON, LATEST or AT_TIMESTAMP.
starting-position-timestamp Starting timestamp to invoke the Lambda Function. Required only if starting-position set to AT_TIMESTAMP.

Outputs

Attribute Description
id The ID of the Lambda Event Source Mapping.
last-modified Last modified date of the Lambda Event Source Mapping.
last-processing-result Last processing of the Lambda Event Source Mapping.
state Current state of the Lambda Event Source Mapping.
state-transition-reason Reason for the current state transition.
arn The arn for the Lambda Event Source Mapping.
function-arn The arn of the Lambda Function associated the Lambda Event Source Mapping.