def vpc_components_as_json(vpc, sgs, subnets):
    'Method takes VPC, Security Group and Subnets and returns a json data format with ids.\n    Args:\n        vpc (VPC Object): Region specific VPC object\n        sgs (List of Security Group Object): Region specific Security Group object\n        subnets (subnet object map): Map of Subnet objects keyed of zone.\n    Retuns:\n        json (str): A Json string for yugaware to consume with necessary ids.\n    '
    result = {}
    result['vpc_id'] = vpc.id
    result['security_group'] = [{'id': sg.group_id, 'name': sg.group_name} for sg in sgs]
    result['zones'] = {}
    for (zone, subnet) in subnets.iteritems():
        result['zones'][zone] = subnet.id
    return result
Method takes VPC, Security Group and Subnets and returns a json data format with ids.
Args:
    vpc (VPC Object): Region specific VPC object
    sgs (List of Security Group Object): Region specific Security Group object
    subnets (subnet object map): Map of Subnet objects keyed of zone.
Retuns:
    json (str): A Json string for yugaware to consume with necessary ids.
def vpc_components_as_json(vpc, sgs, subnets):
    'Method takes VPC, Security Group and Subnets and returns a json data format with ids.\n    Args:\n        vpc (VPC Object): Region specific VPC object\n        sgs (List of Security Group Object): Region specific Security Group object\n        subnets (subnet object map): Map of Subnet objects keyed of zone.\n    Retuns:\n        json (str): A Json string for yugaware to consume with necessary ids.\n    '
    result = {}
    result['vpc_id'] = vpc.id
    result['security_group'] = [{'id': sg.group_id, 'name': sg.group_name} for sg in sgs]
    result['zones'] = {}
    for (zone, subnet) in subnets.iteritems():
        result['zones'][zone] = subnet.id
    return result