admin管理员组

文章数量:1356905

Trying to use the SNS Java API for text messaging.

 PublishRequest publishRequest = PublishRequest.builder()
            .message(message)
            .phoneNumber(phoneNumber)
            .messageAttributes(Map.of(
                    "AWS.SNS.SMS.SMSType", MessageAttributeValue.builder()
                            .stringValue("Transactional") // Can be "Promotional" or "Transactional"
                            .dataType("String")
                            .build()
            ))
            .build();

I am unable to pass the configuration set to track the SMS delivery. I can configure it in End User Messaging service however unable to set it against each delivery. Any thoughts?

本文标签: javaAWS SNS Configuration SetStack Overflow