List of usage examples for com.amazonaws.services.sns.model CreateTopicResult CreateTopicResult
CreateTopicResult
From source file:eu.openg.aws.sns.internal.AmazonSNSFake.java
License:Apache License
@Override public CreateTopicResult createTopic(String name) { if (!authorized) throw newAuthorizationErrorException(name).build(); if (!isValidTopicName(name)) throw newInvalidParameterException(name).build(); final Topic topic = new Topic().withTopicArn("arn:aws:sns:us-east-1:" + clientTokenId + ":" + name); topics.add(topic.getTopicArn());// w w w .j a v a 2 s . c o m return new CreateTopicResult().withTopicArn(topic.getTopicArn()); }
From source file:org.apache.beam.sdk.io.aws.sns.AmazonSNSMock.java
License:Apache License
@Override public CreateTopicResult createTopic(String name) { return new CreateTopicResult().withTopicArn(name); }
From source file:org.apache.camel.component.aws.sns.AmazonSNSClientMock.java
License:Apache License
@Override public CreateTopicResult createTopic(CreateTopicRequest createTopicRequest) throws AmazonServiceException, AmazonClientException { CreateTopicResult createTopicResult = new CreateTopicResult(); createTopicResult.setTopicArn(DEFAULT_TOPIC_ARN); return createTopicResult; }
From source file:org.apache.camel.itest.osgi.aws.AmazonSNSClientMock.java
License:Apache License
@Override public CreateTopicResult createTopic(CreateTopicRequest createTopicRequest) throws AmazonServiceException, AmazonClientException { CreateTopicResult createTopicResult = new CreateTopicResult(); createTopicResult.setTopicArn("arn:aws:sns:us-east-1:541925086079:MyTopic"); return createTopicResult; }