def describe(Name, region=None, key=None, keyid=None, profile=None):
 try:
  conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile)
  rule = conn.describe_rule(Name=Name)
  if rule:
   keys = ('Name', 'Arn', 'EventPattern', 'ScheduleExpression', 'State', 'Description', 'RoleArn')
   return {'rule': dict([(k, rule.get(k)) for k in keys])}
  else:
   return {'rule': None}
 except ClientError as e:
  err = __utils__['boto3.get_error'](e)
  if (e.response.get('Error', {}).get('Code') == 'RuleNotFoundException'):
   return {'error': 'Rule {0} not found'.format(Rule)}
  return {'error': __utils__['boto3.get_error'](e)}

def describe ( Name , region = None , key = None , keyid = None , profile = None ) : try : conn = _get_conn ( region = region , key = key , keyid = keyid , profile = profile ) rule = conn . describe_rule ( Name = Name ) if rule : keys = ( 'Name' , 'Arn' , 'EventPattern' , 'ScheduleExpression' , 'State' , 'Description' , 'RoleArn' ) return { 'rule' : dict ( [ ( k , rule . get ( k ) ) for k in keys ] ) } else : return { 'rule' : None } except ClientError as e : err = __utils__ [ 'boto3.get_error' ] ( e ) if ( e . response . get ( 'Error' , { } ) . get ( 'Code' ) == 'RuleNotFoundException' ) : return { 'error' : 'Rule {0} not found' . format ( Rule ) } return { 'error' : __utils__ [ 'boto3.get_error' ] ( e ) }
given a trail name describe its properties .