Class RegionEndpointProviderV2.RegionEndpoint
This class contains the endpoints available to the AWS clients. The static constants representing the regions can be used while constructing the AWS client instead of looking up the exact endpoint URL.
public class RegionEndpointProviderV2.RegionEndpoint : IRegionEndpoint
- Inheritance
-
RegionEndpointProviderV2.RegionEndpoint
- Implements
- Inherited Members
Properties
DisplayName
Gets the display name of a region.
public string DisplayName { get; }
Property Value
EnumerableAllRegions
Enumerate through all the regions.
public static IEnumerable<RegionEndpointProviderV2.RegionEndpoint> EnumerableAllRegions { get; }
Property Value
RegionName
public string RegionName { get; }
Property Value
SystemName
Gets the system name of a region.
public string SystemName { get; }
Property Value
Methods
GetBySystemName(string)
Gets the region based on its system name like "us-west-1"
public static RegionEndpointProviderV2.RegionEndpoint GetBySystemName(string systemName)
Parameters
systemName
stringThe system name of the service like "us-west-1"
Returns
GetEndpointForService(string, GetEndpointForServiceOptions)
Gets the endpoint for a service in a region.
public RegionEndpoint.Endpoint GetEndpointForService(string serviceName, GetEndpointForServiceOptions options)
Parameters
serviceName
stringThe services system name.
options
GetEndpointForServiceOptionsSpecify additional requirements on the RegionEndpoint.Endpoint to be returned.
Returns
Exceptions
- ArgumentException
Thrown when the request service does not have a valid endpoint in the region.
GetEndpointForService(string, bool)
Gets the endpoint for a service in a region.
[Obsolete("Use GetEndpointForService(string serviceName, GetEndpointForServiceOptions options) instead", false)]
public RegionEndpoint.Endpoint GetEndpointForService(string serviceName, bool dualStack)
Parameters
serviceName
stringThe services system name.
dualStack
boolIf true returns the endpoint for dualstack
Returns
Exceptions
- ArgumentException
Thrown when the request service does not have a valid endpoint in the region.
LoadEndpointDefinitions(string)
public static void LoadEndpointDefinitions(string endpointsPath)
Parameters
endpointsPath
string
ToString()
public override string ToString()
Returns
UnloadEndpointDefinitions()
This is a testing method and should not be called by production applications.
public static void UnloadEndpointDefinitions()