- 
                Notifications
    You must be signed in to change notification settings 
- Fork 106
Add Notifications SNS model #50
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
Conversation
Signed-off-by: Joshua Li <joshuali925@gmail.com>
Signed-off-by: Joshua Li <joshuali925@gmail.com>
Signed-off-by: Joshua Li <joshuali925@gmail.com>
Signed-off-by: Joshua Li <joshuali925@gmail.com>
        
          
                src/main/kotlin/org/opensearch/commons/notifications/model/SNS.kt
              
                Outdated
          
            Show resolved
            Hide resolved
        
      Signed-off-by: Joshua Li <joshuali925@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
| 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 " } | 
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
moved
Signed-off-by: Joshua Li <joshuali925@gmail.com>
Signed-off-by: Zelin Hao <zelinhao@amazon.com>
Description
Add SNS model required to support SNS channels in Notifications plugin.
Add unit tests.
Issues Resolved
Check List
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.