def remove_tags(TagKeys, DomainName=None, ARN=None, region=None, key=None, keyid=None, profile=None):
 try:
  conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile)
  if (ARN is None):
   if (DomainName is None):
    raise SaltInvocationError('One (but not both) of ARN or domain must be specified.')
   domaindata = status(DomainName=DomainName, region=region, key=key, keyid=keyid, profile=profile)
   if ((not domaindata) or ('domain' not in domaindata)):
    log.warning('Domain tags not updated')
    return {'tagged': False}
   ARN = domaindata.get('domain', {}).get('ARN')
  elif (DomainName is not None):
   raise SaltInvocationError('One (but not both) of ARN or domain must be specified.')
  conn.remove_tags(ARN=domaindata.get('domain', {}).get('ARN'), TagKeys=TagKeys)
  return {'tagged': True}
 except ClientError as e:
  return {'tagged': False, 'error': salt.utils.boto3.get_error(e)}

def remove_tags ( TagKeys , DomainName = None , ARN = None , region = None , key = None , keyid = None , profile = None ) : try : conn = _get_conn ( region = region , key = key , keyid = keyid , profile = profile ) if ( ARN is None ) : if ( DomainName is None ) : raise SaltInvocationError ( 'One (but not both) of ARN or domain must be specified.' ) domaindata = status ( DomainName = DomainName , region = region , key = key , keyid = keyid , profile = profile ) if ( ( not domaindata ) or ( 'domain' not in domaindata ) ) : log . warning ( 'Domain tags not updated' ) return { 'tagged' : False } ARN = domaindata . get ( 'domain' , { } ) . get ( 'ARN' ) elif ( DomainName is not None ) : raise SaltInvocationError ( 'One (but not both) of ARN or domain must be specified.' ) conn . remove_tags ( ARN = domaindata . get ( 'domain' , { } ) . get ( 'ARN' ) , TagKeys = TagKeys ) return { 'tagged' : True } except ClientError as e : return { 'tagged' : False , 'error' : salt . utils . boto3 . get_error ( e ) }
returns the given html with given tags removed .