src/Resources/SnsTopic.php
public function listResources($fields = null)
    {
        $resources = [];
        $result = $this->getResources();
        foreach ($result as $topic) {
            switch ($fields) {
                case false:
                case Sns::FORMAT_SIMPLE:
                    $resources[] = $this->service->stripArnPrefix(array_get($topic, 'TopicArn'));
                    break;
                case Sns::FORMAT_ARN:
                    $resources[] = array_get($topic, 'TopicArn');
                    break;
                case true:
                case Sns::FORMAT_FULL:
                default:
                    $topic['Topic'] = $this->service->stripArnPrefix(array_get($topic, 'TopicArn'));
                    $resources[] = $topic;
                    break;
            }
        }

        return $resources;
    }
public function listResources($fields = null)
    {
        $resources = [];
        $result = $this->getResources();
        foreach ($result as $topic) {
            switch ($fields) {
                case false:
                case Sns::FORMAT_SIMPLE:
                    $resources[] = $this->service->stripArnPrefix(array_get($topic, 'TopicArn'));
                    break;
                case Sns::FORMAT_ARN:
                    $resources[] = array_get($topic, 'TopicArn');
                    break;
                case true:
                case Sns::FORMAT_FULL:
                default:
                    $topic['Topic'] = $this->service->stripArnPrefix(array_get($topic, 'TopicArn'));
                    $resources[] = $topic;
                    break;
            }
        }

        return $resources;
    }
@param mixed $fields Use boolean, comma-delimited string, or array of properties

@return ServiceResponseInterface