Skip to main content

event_source_mapping

Gets an individual event_source_mapping resource

Overview

Nameevent_source_mapping
TypeResource
Descriptionevent_source_mapping
Idawscc.lambda.event_source_mapping

Fields

NameDatatypeDescription
idstringEvent Source Mapping Identifier UUID.
batch_sizeintegerThe maximum number of items to retrieve in a single batch.
bisect_batch_on_function_errorboolean(Streams) If the function returns an error, split the batch in two and retry.
destination_configobject(Streams) An Amazon SQS queue or Amazon SNS topic destination for discarded records.
enabledbooleanDisables the event source mapping to pause polling and invocation.
event_source_arnstringThe Amazon Resource Name (ARN) of the event source.
filter_criteriaobjectThe filter criteria to control event filtering.
function_namestringThe name of the Lambda function.
maximum_batching_window_in_secondsinteger(Streams) The maximum amount of time to gather records before invoking the function, in seconds.
maximum_record_age_in_secondsinteger(Streams) The maximum age of a record that Lambda sends to a function for processing.
maximum_retry_attemptsinteger(Streams) The maximum number of times to retry when the function returns an error.
parallelization_factorinteger(Streams) The number of batches to process from each shard concurrently.
starting_positionstringThe position in a stream from which to start reading. Required for Amazon Kinesis and Amazon DynamoDB Streams sources.
starting_position_timestampnumberWith StartingPosition set to AT_TIMESTAMP, the time from which to start reading, in Unix time seconds.
topicsarray(Kafka) A list of Kafka topics.
queuesarray(ActiveMQ) A list of ActiveMQ queues.
source_access_configurationsarrayA list of SourceAccessConfiguration.
tumbling_window_in_secondsinteger(Streams) Tumbling window (non-overlapping time window) duration to perform aggregations.
function_response_typesarray(Streams) A list of response types supported by the function.
self_managed_event_sourceobjectSelf-managed event source endpoints.
amazon_managed_kafka_event_source_configobjectSpecific configuration settings for an MSK event source.
self_managed_kafka_event_source_configobjectSpecific configuration settings for a Self-Managed Apache Kafka event source.
scaling_configobjectThe scaling configuration for the event source.
document_db_event_source_configobjectDocument db event source config.
regionstringAWS region.

Methods

Currently only SELECT is supported for this resource resource.

Example

SELECT
region,
id,
batch_size,
bisect_batch_on_function_error,
destination_config,
enabled,
event_source_arn,
filter_criteria,
function_name,
maximum_batching_window_in_seconds,
maximum_record_age_in_seconds,
maximum_retry_attempts,
parallelization_factor,
starting_position,
starting_position_timestamp,
topics,
queues,
source_access_configurations,
tumbling_window_in_seconds,
function_response_types,
self_managed_event_source,
amazon_managed_kafka_event_source_config,
self_managed_kafka_event_source_config,
scaling_config,
document_db_event_source_config
FROM awscc.lambda.event_source_mapping
WHERE data__Identifier = '<Id>';

Permissions

To operate on the event_source_mapping resource, the following permissions are required:

Delete

lambda:DeleteEventSourceMapping,
lambda:GetEventSourceMapping

Read

lambda:GetEventSourceMapping

Update

lambda:UpdateEventSourceMapping,
lambda:GetEventSourceMapping