src/Resources/SnsSubscription.php
public function retrieveSubscription($resource)
    {
        $request = ['SubscriptionArn' => $this->service->addArnPrefix($resource)];

        try {
            if (null !== $result = $this->service->getConnection()->getSubscriptionAttributes($request)) {
                $out = array_merge($request, array_get($result->toArray(), 'Attributes', []));
                $out['Subscription'] = $this->service->stripArnPrefix($resource);

                return $out;
            }
        } catch (\Exception $ex) {
            if (null !== $newEx = Sns::translateException($ex)) {
                throw $newEx;
            }

            throw new InternalServerErrorException("Failed to retrieve properties for '$resource'.\n{$ex->getMessage()}",
                $ex->getCode());
        }

        return [];
    }
public function retrieveSubscription($resource)
    {
        $request = ['SubscriptionArn' => $this->service->addArnPrefix($resource)];

        try {
            if (null !== $result = $this->service->getConnection()->getSubscriptionAttributes($request)) {
                $out = array_merge($request, array_get($result->toArray(), 'Attributes', []));
                $out['Subscription'] = $this->service->stripArnPrefix($resource);

                return $out;
            }
        } catch (\Exception $ex) {
            if (null !== $newEx = Sns::translateException($ex)) {
                throw $newEx;
            }

            throw new InternalServerErrorException("Failed to retrieve properties for '$resource'.\n{$ex->getMessage()}",
                $ex->getCode());
        }

        return [];
    }
@param $resource

@return array
@throws InternalServerErrorException
@throws NotFoundException