public interface SNSFacade
SNShLogWriter.
Instances are created by FacadeFactory, and are tied to a single
writer's configuration.
All operations may throw SNSFacadeException. Callers are expected to
catch this exception (it's checked), and take action based on the reason code
that it exposes.
| Modifier and Type | Method and Description |
|---|---|
String |
createTopic()
Attempts to create a topic with the configured name.
|
String |
lookupTopic()
Attempts to match the configured topic ARN or name to an existing SNS
topic in the configured account and region.
|
void |
publish(LogMessage message)
Attempts to publish the provided message, using configured topic and subject.
|
void |
shutdown()
Shuts down the underlying client.
|
String lookupTopic()
String createTopic()
Note: SNS silently succeeds if the topic already exists.
void publish(LogMessage message)
Throws if unable, including throttling.
void shutdown()
Copyright © 2023. All rights reserved.