(AmazonSNSClient snsClient)
| 21 | |
| 22 | // snippet-start:[sns.java.publish_sms_to_topic.create_topic] |
| 23 | public static String createSNSTopic(AmazonSNSClient snsClient) { |
| 24 | CreateTopicRequest createTopic = new CreateTopicRequest("mySNSTopic"); |
| 25 | CreateTopicResult result = snsClient.createTopic(createTopic); |
| 26 | System.out.println("Create topic request: " + |
| 27 | snsClient.getCachedResponseMetadata(createTopic)); |
| 28 | System.out.println("Create topic result: " + result); |
| 29 | return result.getTopicArn(); |
| 30 | } |
| 31 | // snippet-end:[sns.java.publish_sms_to_topic.create_topic] |
| 32 | |
| 33 | // snippet-start:[sns.java.publish_sms_to_topic.subscribe] |
no test coverage detected