'Sets or updates a bucket\'s acl to a predefined (canned) value.'

def set_canned_acl(self, acl_str, validate=False, headers=None, version_id=None):

    self._check_object_uri('set_canned_acl')
    self._warn_about_args('set_canned_acl', version_id=version_id)
    key = self.get_key(validate, headers)
    self.check_response(key, 'key', self.uri)
    key.set_canned_acl(acl_str, headers)
