private String getRegion(string url) { string region = Regions.GetRegionFromEndpoint(url); return((region == "") ? "us-east-1" : region); }