public static RegionEndpoint GetBySystemName(string systemName)
{
if (!RegionEndpoint.loaded)
RegionEndpoint.LoadEndpointDefinitions();
RegionEndpoint region = null;
if (!hashBySystemName.TryGetValue(systemName, out region))
{
// explicit namespace to avoid collision with UnityEngine.Logger
var logger = Amazon.Runtime.Internal.Util.Logger.GetLogger(typeof(RegionEndpoint));
logger.InfoFormat("Region system name {0} was not found in region data bundled with SDK; assuming new region.", systemName);
if (systemName.StartsWith("cn-", StringComparison.Ordinal))
return NewEndpoint(systemName, "China (Unknown)");
return NewEndpoint(systemName, "Unknown");
}
return region;
}