def region_mapping(region):
    """Map the user supplied region to the hostname for the AMP for Endpoints console
    """
    region_map = {
        "apjc": "console.apjc.amp.cisco.com",
        "eu": "console.eu.amp.cisco.com",
        "nam": "console.amp.cisco.com",
    }
    return region_map[region.lower()]