Amazon.Internal.RegionEndpointProviderV2.RegionEndpoint.GetBySystemName C# (CSharp) Метод

GetBySystemName() публичный статический Метод

Gets the region based on its system name like "us-west-1"
public static GetBySystemName ( string systemName ) : RegionEndpoint
systemName string The system name of the service like "us-west-1"
Результат RegionEndpoint
            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;
            }