MCPcopy Index your code
hub / github.com/aws-samples/eb-java-scorekeep / sendNotification

Method sendNotification

src/main/java/scorekeep/Sns.java:18–23  ·  view source on GitHub ↗
(String subject, String body)

Source from the content-addressed store, hash-verified

16 * Send a notification email.
17 */
18 public static void sendNotification(String subject, String body) {
19 String topicarn = System.getenv("NOTIFICATION_TOPIC");
20 PublishRequest publishRequest = new PublishRequest(topicarn, body, subject);
21 PublishResult publishResult = snsclient.publish(publishRequest);
22 logger.info("Email sent: " + publishResult.getMessageId());
23 }
24
25 /*
26 * Create an SNS subscription.

Callers 2

runMethod · 0.95
randomNameMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected