def get_arn(name, region=None, key=None, keyid=None, profile=None):
 if name.startswith('arn:aws:sns:'):
  return name
 account_id = __salt__['boto_iam.get_account_id'](region=region, key=key, keyid=keyid, profile=profile)
 return 'arn:aws:sns:{0}:{1}:{2}'.format(_get_region(region, profile), account_id, name)

def get_arn ( name , region = None , key = None , keyid = None , profile = None ) : if name . startswith ( 'arn:aws:sns:' ) : return name account_id = __salt__ [ 'boto_iam.get_account_id' ] ( region = region , key = key , keyid = keyid , profile = profile ) return 'arn:aws:sns:{0}:{1}:{2}' . format ( _get_region ( region , profile ) , account_id , name )
returns the full arn for a given topic name .