event_source_mapping
Gets an individual event_source_mapping
resource
Overview
Name | event_source_mapping |
Type | Resource |
Description | event_source_mapping |
Id | awscc.lambda.event_source_mapping |
Fields
Name | Datatype | Description |
---|---|---|
id | string | Event Source Mapping Identifier UUID. |
batch_size | integer | The maximum number of items to retrieve in a single batch. |
bisect_batch_on_function_error | boolean | (Streams) If the function returns an error, split the batch in two and retry. |
destination_config | object | (Streams) An Amazon SQS queue or Amazon SNS topic destination for discarded records. |
enabled | boolean | Disables the event source mapping to pause polling and invocation. |
event_source_arn | string | The Amazon Resource Name (ARN) of the event source. |
filter_criteria | object | The filter criteria to control event filtering. |
function_name | string | The name of the Lambda function. |
maximum_batching_window_in_seconds | integer | (Streams) The maximum amount of time to gather records before invoking the function, in seconds. |
maximum_record_age_in_seconds | integer | (Streams) The maximum age of a record that Lambda sends to a function for processing. |
maximum_retry_attempts | integer | (Streams) The maximum number of times to retry when the function returns an error. |
parallelization_factor | integer | (Streams) The number of batches to process from each shard concurrently. |
starting_position | string | The position in a stream from which to start reading. Required for Amazon Kinesis and Amazon DynamoDB Streams sources. |
starting_position_timestamp | number | With StartingPosition set to AT_TIMESTAMP, the time from which to start reading, in Unix time seconds. |
topics | array | (Kafka) A list of Kafka topics. |
queues | array | (ActiveMQ) A list of ActiveMQ queues. |
source_access_configurations | array | A list of SourceAccessConfiguration. |
tumbling_window_in_seconds | integer | (Streams) Tumbling window (non-overlapping time window) duration to perform aggregations. |
function_response_types | array | (Streams) A list of response types supported by the function. |
self_managed_event_source | object | Self-managed event source endpoints. |
amazon_managed_kafka_event_source_config | object | Specific configuration settings for an MSK event source. |
self_managed_kafka_event_source_config | object | Specific configuration settings for a Self-Managed Apache Kafka event source. |
scaling_config | object | The scaling configuration for the event source. |
document_db_event_source_config | object | Document db event source config. |
region | string | AWS 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