src/Provider/AwsProvider.php
public function createTopic()
    {
        if (!$this->options['push_notifications']) {
            return false;
        }

        $name = str_replace('.', '-', $this->getNameWithPrefix());
        $result = $this->sns->createTopic([
            'Name' => $name
        ]);

        $this->topicArn = $result->get('TopicArn');

        $key = $name . '_arn';
        $this->cache->save($key, $this->topicArn);

        $this->log(200, "Created SNS Topic", ['TopicARN' => $this->topicArn]);

        return true;
    }
public function createTopic()
    {
        if (!$this->options['push_notifications']) {
            return false;
        }

        $name = str_replace('.', '-', $this->getNameWithPrefix());
        $result = $this->sns->createTopic([
            'Name' => $name
        ]);

        $this->topicArn = $result->get('TopicArn');

        $key = $name . '_arn';
        $this->cache->save($key, $this->topicArn);

        $this->log(200, "Created SNS Topic", ['TopicARN' => $this->topicArn]);

        return true;
    }
public function createTopic ( ) { if ( ! $ this -> options [ 'push_notifications' ] ) { return false ; } $ name = str_replace ( '.' , '-' , $ this -> getNameWithPrefix ( ) ) ; $ result = $ this -> sns -> createTopic ( [ 'Name' => $ name ] ) ; $ this -> topicArn = $ result -> get ( 'TopicArn' ) ; $ key = $ name . '_arn' ; $ this -> cache -> save ( $ key , $ this -> topicArn ) ; $ this -> log ( 200 , "Created SNS Topic" , [ 'TopicARN' => $ this -> topicArn ] ) ; return true ; }
Creates a SNS Topic and returns the ARN

The create method for the SNS Topics is idempotent - if the topic already
exists, this method will return the Topic ARN of the existing Topic.


@return bool
Creates a SNS Topic and returns the ARN