private def alertDevsIfEmailWasSuppressed()

in src/main/scala/housekeeper/Lambda.scala [35:41]


  private def alertDevsIfEmailWasSuppressed(bounceNotification: BounceNotification): Future[_] = {
    if (bounceNotification.bounce.isOnSuppressionList) {
      val arn = sys.env("PermanentEmailBounceTopicArn")
      logger.info(s"Sending an SNS alert to $arn")
      Future(AWS.SNS.publish(PublishRequest.builder().message(bounceNotification.bounceSummary).topicArn(arn).build()).get())
    } else Future.successful(())
  }