Amazon.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)
        {
            RegionEndpoint region = null;
            if (_hashBySystemName.TryGetValue(systemName, out region))
                return region;

            IRegionEndpoint regionEndpointFromProvider = RegionEndpointProvider.GetRegionEndpoint(systemName);

            // We received an instance of IRegionEndpoint from a provider,
            // now we should wrap it in RegionEndpoint before returning the data back to the client code.
            // GetRegionEndpoint will always return a non-null value. If the the region(systemName) is unknown,
            // the providers will create a fallback instance that will generate an endpoint to the best
            // of its knowledge.
            return NewEndpoint(systemName, regionEndpointFromProvider.DisplayName);
        }