src/Services/Sns.php
protected function setAccountId($config)
    {
        $config['version'] = '2010-05-08';
        $iam = new IamClient($config);
        $user = $iam->getUser()->get('User');
        $arn = explode(':', array_get($user, 'Arn'));
        $this->accountId = array_get($arn, 4);
    }
protected function setAccountId($config)
    {
        $config['version'] = '2010-05-08';
        $iam = new IamClient($config);
        $user = $iam->getUser()->get('User');
        $arn = explode(':', array_get($user, 'Arn'));
        $this->accountId = array_get($arn, 4);
    }
Sets the AWS account id.

@param $config