'Create a bucket.'

def handle_create(self):

    container = self.physical_resource_name()
    headers = self.tags_to_headers()
    if (self.properties[self.WEBSITE_CONFIGURATION] is not None):
        sc = self.properties[self.WEBSITE_CONFIGURATION]
        index_doc = sc[self.WEBSITE_CONFIGURATION_INDEX_DOCUMENT]
        error_doc = sc[self.WEBSITE_CONFIGURATION_ERROR_DOCUMENT]
        headers['X-Container-Meta-Web-Index'] = index_doc
        headers['X-Container-Meta-Web-Error'] = error_doc
    con = self.context
    ac = self.properties[self.ACCESS_CONTROL]
    tenant_username = ('%s:%s' % (con.project_name, con.username))
    if (ac in ('PublicRead', 'PublicReadWrite')):
        headers['X-Container-Read'] = '.r:*'
    elif (ac == 'AuthenticatedRead'):
        headers['X-Container-Read'] = con.project_name
    else:
        headers['X-Container-Read'] = tenant_username
    if (ac == 'PublicReadWrite'):
        headers['X-Container-Write'] = '.r:*'
    else:
        headers['X-Container-Write'] = tenant_username
    self.client().put_container(container, headers)
    self.resource_id_set(container)
