Skip to content

Bug: KafkaSelfManagedEventModel eventSource not correct #5559

Closed
@Mavtti

Description

@Mavtti

Expected Behaviour

Hello,

the envelope KafkaSelfManagedEventModel should have eventSource = Literal["SelfManagedKafka"]

Current Behaviour

Currently, it expects eventSource = Literal["aws:SelfManagedKafka"]

Code snippet

class KafkaSelfManagedEventModel(KafkaBaseEventModel):
    """Self-managed Apache Kafka event trigger
    Documentation:
    --------------
    - https://docs.aws.amazon.com/lambda/latest/dg/with-kafka.html
    """

    eventSource: Literal["SelfManagedKafka"]

Possible Solution

No response

Steps to Reproduce

parse with envelope

Powertools for AWS Lambda (Python) version

latest

AWS Lambda function runtime

3.9

Packaging format used

PyPi

Debugging logs

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingparserParser (Pydantic) utility

Type

No type

Projects

Status

Shipped

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions