Search in sources :

Example 11 with CreateTopicResult

use of com.amazonaws.services.sns.model.CreateTopicResult in project tutorials by eugenp.

the class SpringCloudSNSIntegrationTest method setupAwsResources.

@BeforeClass
public static void setupAwsResources() {
    topicName = UUID.randomUUID().toString();
    AmazonSNS amazonSNS = SpringCloudAwsTestUtil.amazonSNS();
    CreateTopicResult result = amazonSNS.createTopic(topicName);
    topicArn = result.getTopicArn();
}
Also used : CreateTopicResult(com.amazonaws.services.sns.model.CreateTopicResult) AmazonSNS(com.amazonaws.services.sns.AmazonSNS) BeforeClass(org.junit.BeforeClass)

Aggregations

CreateTopicResult (com.amazonaws.services.sns.model.CreateTopicResult)11 CreateTopicRequest (com.amazonaws.services.sns.model.CreateTopicRequest)6 Subscription (com.amazonaws.services.sns.model.Subscription)4 ListSubscriptionsByTopicRequest (com.amazonaws.services.sns.model.ListSubscriptionsByTopicRequest)3 ListSubscriptionsByTopicResult (com.amazonaws.services.sns.model.ListSubscriptionsByTopicResult)3 Test (org.junit.Test)2 AmazonServiceException (com.amazonaws.AmazonServiceException)1 AmazonEC2Client (com.amazonaws.services.ec2.AmazonEC2Client)1 DescribeSecurityGroupsRequest (com.amazonaws.services.ec2.model.DescribeSecurityGroupsRequest)1 DescribeSecurityGroupsResult (com.amazonaws.services.ec2.model.DescribeSecurityGroupsResult)1 SecurityGroup (com.amazonaws.services.ec2.model.SecurityGroup)1 AmazonRDSClient (com.amazonaws.services.rds.AmazonRDSClient)1 DBParameterGroup (com.amazonaws.services.rds.model.DBParameterGroup)1 DescribeDBParameterGroupsRequest (com.amazonaws.services.rds.model.DescribeDBParameterGroupsRequest)1 DescribeDBParameterGroupsResult (com.amazonaws.services.rds.model.DescribeDBParameterGroupsResult)1 DescribeDBParametersRequest (com.amazonaws.services.rds.model.DescribeDBParametersRequest)1 DescribeDBParametersResult (com.amazonaws.services.rds.model.DescribeDBParametersResult)1 Parameter (com.amazonaws.services.rds.model.Parameter)1 AmazonS3Client (com.amazonaws.services.s3.AmazonS3Client)1 GetObjectRequest (com.amazonaws.services.s3.model.GetObjectRequest)1