Skip to content

Add KeyDecoded property to get the S3 object key url decoded#2261

Merged
normj merged 1 commit intodevfrom
normj/s3-event-decode-key
Jan 16, 2026
Merged

Add KeyDecoded property to get the S3 object key url decoded#2261
normj merged 1 commit intodevfrom
normj/s3-event-decode-key

Conversation

@normj
Copy link
Copy Markdown
Member

@normj normj commented Jan 16, 2026

Issue #, if available:
#1182

Description of changes:
S3 object keys come into Lambda url encoded and is what the S3ObjectEntity.Key property returns. Consumers must decode the key if there are special characters in the object key. To make it easier for users this PR adds a readonly S3ObjectEntity.KeyDecoded property to handle decoded. I choose KeyDecoded instead of DecodedKey to possibly make it more discoverable via intellisense with the Key and KeyDecoded property potentially near each other.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@normj normj merged commit 537266a into dev Jan 16, 2026
9 checks passed
@normj normj deleted the normj/s3-event-decode-key branch January 16, 2026 18:36
@niemyjski
Copy link
Copy Markdown

Looks like we missed updating Amazon.S3.Util.S3EventNotification.S3ObjectEntity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants