def put_acl(Bucket, ACL=None, AccessControlPolicy=None, GrantFullControl=None, GrantRead=None, GrantReadACP=None, GrantWrite=None, GrantWriteACP=None, region=None, key=None, keyid=None, profile=None):
 try:
  conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile)
  kwargs = {}
  if (AccessControlPolicy is not None):
   if isinstance(AccessControlPolicy, six.string_types):
    AccessControlPolicy = json.loads(AccessControlPolicy)
   kwargs['AccessControlPolicy'] = AccessControlPolicy
  for arg in ('ACL', 'GrantFullControl', 'GrantRead', 'GrantReadACP', 'GrantWrite', 'GrantWriteACP'):
   if (locals()[arg] is not None):
    kwargs[arg] = str(locals()[arg])
  conn.put_bucket_acl(Bucket=Bucket, **kwargs)
  return {'updated': True, 'name': Bucket}
 except ClientError as e:
  return {'updated': False, 'error': __utils__['boto3.get_error'](e)}

def put_acl ( Bucket , ACL = None , AccessControlPolicy = None , GrantFullControl = None , GrantRead = None , GrantReadACP = None , GrantWrite = None , GrantWriteACP = None , region = None , key = None , keyid = None , profile = None ) : try : conn = _get_conn ( region = region , key = key , keyid = keyid , profile = profile ) kwargs = { } if ( AccessControlPolicy is not None ) : if isinstance ( AccessControlPolicy , six . string_types ) : AccessControlPolicy = json . loads ( AccessControlPolicy ) kwargs [ 'AccessControlPolicy' ] = AccessControlPolicy for arg in ( 'ACL' , 'GrantFullControl' , 'GrantRead' , 'GrantReadACP' , 'GrantWrite' , 'GrantWriteACP' ) : if ( locals ( ) [ arg ] is not None ) : kwargs [ arg ] = str ( locals ( ) [ arg ] ) conn . put_bucket_acl ( Bucket = Bucket , ** kwargs ) return { 'updated' : True , 'name' : Bucket } except ClientError as e : return { 'updated' : False , 'error' : __utils__ [ 'boto3.get_error' ] ( e ) }
given a valid config .