def create_sns_topic()

in boto3_sample/s3_event_notifications_crawler_setup.py [0:0]


def create_sns_topic(topic_name, client):
    try:
        response = client.create_topic(
            Name=topic_name
        )
        return response['TopicArn']
    except botocore.exceptions.ClientError as e:
        print_error(e)
    return None