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

Add Notifications SNS model #50

Merged
merged 6 commits into from
Aug 9, 2021
Merged

Add Notifications SNS model #50

merged 6 commits into from
Aug 9, 2021

Conversation

joshuali925
Copy link
Member

Description

Add SNS model required to support SNS channels in Notifications plugin.
Add unit tests.

Issues Resolved

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc added
  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: Joshua Li <[email protected]>
Signed-off-by: Joshua Li <[email protected]>
Signed-off-by: Joshua Li <[email protected]>
Signed-off-by: Joshua Li <[email protected]>
zhongnansu
zhongnansu previously approved these changes Aug 9, 2021
Copy link
Member

@zhongnansu zhongnansu left a comment

Choose a reason for hiding this comment

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

lgtm

akbhatta
akbhatta previously approved these changes Aug 9, 2021
init {
require(SNS_ARN_REGEX.matcher(topicARN).find()) { "Invalid AWS SNS topic ARN: $topicARN" }
if (roleARN != null) {
require(IAM_ARN_REGEX.matcher(roleARN).find()) { "Invalid AWS role ARN: $roleARN " }
Copy link
Contributor

Choose a reason for hiding this comment

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

Probably this can be moved to utils as this is required for SES as well

Copy link
Member Author

Choose a reason for hiding this comment

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

moved

@joshuali925 joshuali925 dismissed stale reviews from akbhatta and zhongnansu via be06c67 August 9, 2021 21:51
@joshuali925 joshuali925 merged commit b18a489 into opensearch-project:main Aug 9, 2021
zelinh pushed a commit that referenced this pull request Aug 18, 2022
wuychn pushed a commit to ochprince/common-utils that referenced this pull request Mar 16, 2023
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.

3 participants