def put_tagging(Bucket, region=None, key=None, keyid=None, profile=None, **kwargs):
 try:
  conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile)
  tagslist = []
  for (k, v) in six.iteritems(kwargs):
   if str(k).startswith('__'):
    continue
   tagslist.append({'Key': str(k), 'Value': str(v)})
  conn.put_bucket_tagging(Bucket=Bucket, Tagging={'TagSet': tagslist})
  return {'updated': True, 'name': Bucket}
 except ClientError as e:
  return {'updated': False, 'error': __utils__['boto3.get_error'](e)}

def put_tagging ( Bucket , region = None , key = None , keyid = None , profile = None , ** kwargs ) : try : conn = _get_conn ( region = region , key = key , keyid = keyid , profile = profile ) tagslist = [ ] for ( k , v ) in six . iteritems ( kwargs ) : if str ( k ) . startswith ( '__' ) : continue tagslist . append ( { 'Key' : str ( k ) , 'Value' : str ( v ) } ) conn . put_bucket_tagging ( Bucket = Bucket , Tagging = { 'TagSet' : tagslist } ) return { 'updated' : True , 'name' : Bucket } except ClientError as e : return { 'updated' : False , 'error' : __utils__ [ 'boto3.get_error' ] ( e ) }
given a valid config .