C# Class Amazon.Internal.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.
Inheritance: IRegionEndpoint
ファイルを表示 Open project: aws/aws-sdk-net

Public Methods

Method Description
GetBySystemName ( string systemName ) : RegionEndpoint

Gets the region based on its system name like "us-west-1"

GetEndpointForService ( string serviceName, bool dualStack ) : Amazon.RegionEndpoint.Endpoint

Gets the endpoint for a service in a region.

LoadEndpointDefinitions ( string endpointsPath ) : void
ToString ( ) : string
UnloadEndpointDefinitions ( ) : void

This is a testing method and should not be called by production applications.

Private Methods

Method Description
GetEndpointRule ( string serviceName ) : JsonData
LoadEndpointDefinitionFromFilePath ( string path ) : void
LoadEndpointDefinitionFromWeb ( string url ) : void
LoadEndpointDefinitions ( ) : void
LoadEndpointDefinitionsFromEmbeddedResource ( ) : void
NewEndpoint ( string systemName, string displayName ) : RegionEndpoint
ReadEndpointFile ( Stream stream ) : void
RegionEndpoint ( string systemName, string displayName ) : System
TryLoadEndpointDefinitionsFromAssemblyDir ( ) : bool

Method Details

GetBySystemName() public static method

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"
return RegionEndpoint

GetEndpointForService() public method

Gets the endpoint for a service in a region.
Thrown when the request service does not have a valid endpoint in the region.
public GetEndpointForService ( string serviceName, bool dualStack ) : Amazon.RegionEndpoint.Endpoint
serviceName string The services system name.
dualStack bool If true returns the endpoint for dualstack
return Amazon.RegionEndpoint.Endpoint

LoadEndpointDefinitions() public static method

public static LoadEndpointDefinitions ( string endpointsPath ) : void
endpointsPath string
return void

ToString() public method

public ToString ( ) : string
return string

UnloadEndpointDefinitions() public static method

This is a testing method and should not be called by production applications.
public static UnloadEndpointDefinitions ( ) : void
return void