Skip to content

SES: implement SetIdentityHeadersInNotificationsEnabled API #12823

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

Merged

Conversation

YelynnOh
Copy link
Contributor

@YelynnOh YelynnOh commented Jul 2, 2025

Motivation

close #12516

The issue was caused because the SetIdentityHeadersInNotificationsEnabled API was not implemented in LocalStack’s SES provider, resulting in failures when this API was called.

This PR adds the SetIdentityHeadersInNotificationsEnabled API.

The reference for this api is written below, if needed.
https://docs.aws.amazon.com/ses/latest/APIReference/API_SetIdentityHeadersInNotificationsEnabled.html

Changes

  • Implement SetIdentityHeadersInNotificationsEnabled handler in localstack-core/localstack/services/ses/provider.py.
  • Add test in tests/aws/services/ses/test_ses.py to verify the new API.
  • Snapshot in test_ses.snapshot.json is also added.

@YelynnOh YelynnOh requested a review from viren-nadkarni as a code owner July 2, 2025 02:10
Copy link
Contributor

@localstack-bot localstack-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Welcome to LocalStack! Thanks for raising your first Pull Request and landing in your contributions. Our team will reach out with any reviews or feedbacks that we have shortly. We recommend joining our Slack Community and share your PR on the #community channel to share your contributions with us. Please make sure you are following our contributing guidelines and our Code of Conduct.

@localstack-bot
Copy link
Contributor

localstack-bot commented Jul 2, 2025

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@YelynnOh
Copy link
Contributor Author

YelynnOh commented Jul 2, 2025

I have read the CLA Document and I hereby sign the CLA

localstack-bot added a commit that referenced this pull request Jul 2, 2025
@alexrashed alexrashed added the semver: patch Non-breaking changes which can be included in patch releases label Jul 23, 2025
@alexrashed alexrashed added this to the Playground milestone Jul 23, 2025
Copy link
Member

@viren-nadkarni viren-nadkarni left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for creating ths PR! Sorry for the delayed review. I have some points that need to be addressed before we can merge this.

Copy link
Member

@viren-nadkarni viren-nadkarni left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding the additional validations. There's a small issue with the tests, once addressed, we can merge this.

Copy link
Member

@viren-nadkarni viren-nadkarni left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks pretty good already @YelynnOh. I have last few nits and we can merge this

@viren-nadkarni
Copy link
Member

@YelynnOh There are some linting failures that are preventing the pipeline from completing. They should be simple to resolve by running make format

@YelynnOh
Copy link
Contributor Author

@viren-nadkarni I ran make format to solve lint problems here. Thanks!

@YelynnOh
Copy link
Contributor Author

@viren-nadkarni Thankyou for adjusting the arguments. I have added Enabled import here.

@viren-nadkarni viren-nadkarni added semver: minor Non-breaking changes which can be included in minor releases, but not in patch releases and removed semver: patch Non-breaking changes which can be included in patch releases labels Aug 1, 2025
Copy link
Member

@viren-nadkarni viren-nadkarni left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Congratulations on your first contribution to LocalStack!

@viren-nadkarni viren-nadkarni merged commit 4901104 into localstack:main Aug 1, 2025
40 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver: minor Non-breaking changes which can be included in minor releases, but not in patch releases
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug: Capture Email headers on SNS topic
4 participants