List of usage examples for com.amazonaws.services.sns.model DeleteTopicRequest DeleteTopicRequest
public DeleteTopicRequest()
From source file:awslabs.lab31.SolutionCode.java
License:Open Source License
@Override public void deleteTopic(AmazonSNSClient snsClient, String topicArn) { // TODO: Construct a DeleteTopicRequest object using the provided topic ARN. DeleteTopicRequest deleteTopicRequest = new DeleteTopicRequest().withTopicArn(topicArn); // TODO: Submit the request using the deleteTopic method of the snsClient object. snsClient.deleteTopic(deleteTopicRequest); }
From source file:com.zotoh.cloudapi.aws.SNS.java
License:Open Source License
@Override public void removeTopic(String topic) throws CloudException, InternalException { tstEStrArg("topic-name", topic); _svc.getCloud().getSNS().deleteTopic(new DeleteTopicRequest().withTopicArn(topic)); }