Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No way to set the EventBridge event version #3830

Closed
togakangaroo opened this issue Aug 17, 2023 · 1 comment
Closed

No way to set the EventBridge event version #3830

togakangaroo opened this issue Aug 17, 2023 · 1 comment
Assignees
Labels
bug This issue is a confirmed bug. documentation This is a problem with documentation.

Comments

@togakangaroo
Copy link

Describe the bug

In the AWS EventBridge spec on events you have the version field.

The put_events function understandably mirrors this but does not support that as an argument and indeed trying to pass the event version results in an error.

Expected Behavior

I expect to be able to set the event version so that rules can be applied based on event versioning as seems to be intended by the AWS documentation.

Current Behavior

An error occurs that an unknown field was passed in.

   events = boto3.client("events")
    event = {
        "Version": "2",
        "Source": "test",
        "DetailType": "test",
        "Detail": "foo",
    }
    response = events.put_events(Entries=[event])

Reproduction Steps

Not really applicable since this seems to be a missing feature, where it is impossible to work with eventbridge event versions as intended. Boto3 doesn't make the claim that it can set that field, it simply doesn't mention it.

Possible Solution

Something like what I described in the expected is what I would hope to be able to do.

An alternative is to give guidance on how else this value could be set.

Additional Information/Context

I'm not sure what layer the issue lies it. It is possible that the AWS Eventbridge team itself introduced this field but then didn't provide ways to affect it, but that would be really bizarre and probably be worth a callout in the boto3 docs.

SDK version used

boto3==1.26.153

Environment details (OS name and version, etc.)

OsXApple M2 Pro

@togakangaroo togakangaroo added bug This issue is a confirmed bug. needs-triage This issue or PR still needs to be triaged. labels Aug 17, 2023
@aBurmeseDev aBurmeseDev self-assigned this Aug 17, 2023
@aBurmeseDev aBurmeseDev added investigating This issue is being investigated and/or work is in progress to resolve the issue. and removed needs-triage This issue or PR still needs to be triaged. labels Aug 17, 2023
@togakangaroo
Copy link
Author

togakangaroo commented Aug 17, 2023

I have discovered that version is meant to be an AWS-controlled field, not - as implied - for versioning your events.

The issue is therefore in the AWS documentation. I've reported it there and I'm going to close this

@aBurmeseDev aBurmeseDev added documentation This is a problem with documentation. and removed investigating This issue is being investigated and/or work is in progress to resolve the issue. labels Aug 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a confirmed bug. documentation This is a problem with documentation.
Projects
None yet
Development

No branches or pull requests

2 participants