EndemolShineGroup/serverless-test-utils

View on GitHub
src/aws/sns/createSnsTopic.ts

Summary

Maintainability
A
0 mins
Test Coverage
import AWS from 'aws-sdk';

export default async (topicName: string, region = 'us-east-1') => {
  const sns = new AWS.SNS({ region });

  const params = {
    Name: topicName,
  };

  return sns.createTopic(params).promise();
};