@get_or_create(get_route_table)
def create_route_table(client, tag_name, vpc):
    'Method to create route table based on tag_name in given VPC. It will first\n    query for the tag name to see if the route table already exists or if one is already\n    attached to the VPC, if so it will return that route table.\n    Args:\n        client (boto client): Region specific boto client\n        tag_name (str): Route table tag name\n        vpc (vpc object): VPC object to create the route table against\n    Returns:\n        RouteTable (obj): newly created RouteTable object.\n    '
    existing_route_table = next(iter(vpc.route_tables.all()), None)
    if (existing_route_table is not None):
        tag_resource_name(client, existing_route_table.id, tag_name)
        return existing_route_table
    route_table = vpc.create_route_table()
    tag_resource_name(client, route_table.id, tag_name)
    return route_table
Method to create route table based on tag_name in given VPC. It will first
query for the tag name to see if the route table already exists or if one is already
attached to the VPC, if so it will return that route table.
Args:
    client (boto client): Region specific boto client
    tag_name (str): Route table tag name
    vpc (vpc object): VPC object to create the route table against
Returns:
    RouteTable (obj): newly created RouteTable object.
@get_or_create(get_route_table)
def create_route_table(client, tag_name, vpc):
    'Method to create route table based on tag_name in given VPC. It will first\n    query for the tag name to see if the route table already exists or if one is already\n    attached to the VPC, if so it will return that route table.\n    Args:\n        client (boto client): Region specific boto client\n        tag_name (str): Route table tag name\n        vpc (vpc object): VPC object to create the route table against\n    Returns:\n        RouteTable (obj): newly created RouteTable object.\n    '
    existing_route_table = next(iter(vpc.route_tables.all()), None)
    if (existing_route_table is not None):
        tag_resource_name(client, existing_route_table.id, tag_name)
        return existing_route_table
    route_table = vpc.create_route_table()
    tag_resource_name(client, route_table.id, tag_name)
    return route_table