Skip to content

Bug: KafkaSelfManagedEventModel eventSource not correct #5559

Closed

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

Activity

  1. added
    bug
    triage
    on Nov 14, 2024
  2. leandrodamascena commented on Nov 16, 2024

    @leandrodamascena
    Contributor

    Hi @Mavtti! Thank you very much for catching this bug! We need to fix this.

    Please let me know if you want to submit a PR to fix it, otherwise I can do it.

  3. added
    parser
    and removed
    triage
    on Nov 16, 2024
  4. moved this from Triage to Pending customer in Powertools for AWS Lambda (Python)on Nov 16, 2024
  5. moved this from Pending customer to Working on it in Powertools for AWS Lambda (Python)on Nov 18, 2024
  6. github-actions commented on Nov 19, 2024

    @github-actions
    Contributor

    ⚠️COMMENT VISIBILITY WARNING⚠️

    This issue is now closed. Please be mindful that future comments are hard for our team to see.

    If you need more assistance, please either tag a team member or open a new issue that references this one.

    If you wish to keep having a conversation with other community members under this issue feel free to do so.

  7. added
    pending-release
    on Nov 19, 2024
  8. github-actions commented on Dec 20, 2024

    @github-actions
    Contributor

    This is now released under 3.4.0 version!

  9. removed
    pending-release
    on Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugparser

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions