def describe_topic_rule(ruleName, region=None, key=None, keyid=None, profile=None):
 try:
  conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile)
  rule = conn.get_topic_rule(ruleName=ruleName)
  if (rule and ('rule' in rule)):
   rule = rule['rule']
   keys = ('ruleName', 'sql', 'description', 'actions', 'ruleDisabled')
   return {'rule': dict([(k, rule.get(k)) for k in keys])}
  else:
   return {'rule': None}
 except ClientError as e:
  return {'error': salt.utils.boto3.get_error(e)}

def describe_topic_rule ( ruleName , region = None , key = None , keyid = None , profile = None ) : try : conn = _get_conn ( region = region , key = key , keyid = keyid , profile = profile ) rule = conn . get_topic_rule ( ruleName = ruleName ) if ( rule and ( 'rule' in rule ) ) : rule = rule [ 'rule' ] keys = ( 'ruleName' , 'sql' , 'description' , 'actions' , 'ruleDisabled' ) return { 'rule' : dict ( [ ( k , rule . get ( k ) ) for k in keys ] ) } else : return { 'rule' : None } except ClientError as e : return { 'error' : salt . utils . boto3 . get_error ( e ) }
given a topic rule name describe its properties .