Example usage for com.amazonaws.services.sns.model DeleteTopicRequest DeleteTopicRequest

List of usage examples for com.amazonaws.services.sns.model DeleteTopicRequest DeleteTopicRequest

Introduction

In this page you can find the example usage for com.amazonaws.services.sns.model DeleteTopicRequest DeleteTopicRequest.

Prototype

public DeleteTopicRequest() 

Source Link

Document

Default constructor for DeleteTopicRequest object.

Usage

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));
}