in src/main/java/software/amazon/sns/AmazonSNSExtendedClient.java [150:158]
private void checkSizeOfMessageAttributes(long messageAttributeSize) {
if (messageAttributeSize > snsExtendedClientConfiguration.getPayloadSizeThreshold()) {
String errorMessage = "Total size of Message attributes is " + messageAttributeSize
+ " bytes which is larger than the threshold of " + snsExtendedClientConfiguration.getPayloadSizeThreshold()
+ " Bytes. Consider including the payload in the message body instead of message attributes.";
LOGGER.error(errorMessage);
throw new AmazonClientException(errorMessage);
}
}