'Create a tag.
:param name: Tag name.
:type name: ``str``
:param resource_uuids: Optional list of resource UUIDs to assign this
tag go.
:type resource_uuids: ``list`` of ``str``
:return: Created tag object.
:rtype: :class:`.CloudSigmaTag`'

def ex_create_tag(self, name, resource_uuids=None):

    data = {}
    data['objects'] = [{'name': name}]
    if resource_uuids:
        data['resources'] = resource_uuids
    action = '/tags/'
    response = self.connection.request(action=action, method='POST', data=data).object
    tag = self._to_tag(data=response['objects'][0])
    return tag
