def get_tags(client, stream_name, check_mode=False):
 err_msg = ''
 success = False
 params = {'StreamName': stream_name}
 results = dict()
 try:
  if (not check_mode):
   results = client.list_tags_for_stream(**params)['Tags']
  else:
   results = [{'Key': 'DryRunMode', 'Value': 'true'}]
  success = True
 except botocore.exceptions.ClientError as e:
  err_msg = str(e)
 return (success, err_msg, results)

def get_tags ( client , stream_name , check_mode = False ) : err_msg = '' success = False params = { 'StreamName' : stream_name } results = dict ( ) try : if ( not check_mode ) : results = client . list_tags_for_stream ( ** params ) [ 'Tags' ] else : results = [ { 'Key' : 'DryRunMode' , 'Value' : 'true' } ] success = True except botocore . exceptions . ClientError as e : err_msg = str ( e ) return ( success , err_msg , results )
return the tags associated with an efs instance .