Class RegionEndpoint
- Namespace
- Amazon
- Assembly
- AWSSDK.Core.dll
This class contains region information used to lazily compute the service endpoints. The static constants representing the regions can be used while constructing the AWS client instead of looking up the exact endpoint URL.
public class RegionEndpoint
- Inheritance
-
RegionEndpoint
- Inherited Members
- Extension Methods
Fields
AFSouth1
The Africa (Cape Town) endpoint.
public static readonly RegionEndpoint AFSouth1
Field Value
APEast1
The Asia Pacific (Hong Kong) endpoint.
public static readonly RegionEndpoint APEast1
Field Value
APNortheast1
The Asia Pacific (Tokyo) endpoint.
public static readonly RegionEndpoint APNortheast1
Field Value
APNortheast2
The Asia Pacific (Seoul) endpoint.
public static readonly RegionEndpoint APNortheast2
Field Value
APNortheast3
The Asia Pacific (Osaka) endpoint.
public static readonly RegionEndpoint APNortheast3
Field Value
APSouth1
The Asia Pacific (Mumbai) endpoint.
public static readonly RegionEndpoint APSouth1
Field Value
APSouth2
The Asia Pacific (Hyderabad) endpoint.
public static readonly RegionEndpoint APSouth2
Field Value
APSoutheast1
The Asia Pacific (Singapore) endpoint.
public static readonly RegionEndpoint APSoutheast1
Field Value
APSoutheast2
The Asia Pacific (Sydney) endpoint.
public static readonly RegionEndpoint APSoutheast2
Field Value
APSoutheast3
The Asia Pacific (Jakarta) endpoint.
public static readonly RegionEndpoint APSoutheast3
Field Value
APSoutheast4
The Asia Pacific (Melbourne) endpoint.
public static readonly RegionEndpoint APSoutheast4
Field Value
CACentral1
The Canada (Central) endpoint.
public static readonly RegionEndpoint CACentral1
Field Value
CNNorth1
The China (Beijing) endpoint.
public static readonly RegionEndpoint CNNorth1
Field Value
CNNorthWest1
The China (Ningxia) endpoint.
public static readonly RegionEndpoint CNNorthWest1
Field Value
EUCentral1
The Europe (Frankfurt) endpoint.
public static readonly RegionEndpoint EUCentral1
Field Value
EUCentral2
The Europe (Zurich) endpoint.
public static readonly RegionEndpoint EUCentral2
Field Value
EUNorth1
The Europe (Stockholm) endpoint.
public static readonly RegionEndpoint EUNorth1
Field Value
EUSouth1
The Europe (Milan) endpoint.
public static readonly RegionEndpoint EUSouth1
Field Value
EUSouth2
The Europe (Spain) endpoint.
public static readonly RegionEndpoint EUSouth2
Field Value
EUWest1
The Europe (Ireland) endpoint.
public static readonly RegionEndpoint EUWest1
Field Value
EUWest2
The Europe (London) endpoint.
public static readonly RegionEndpoint EUWest2
Field Value
EUWest3
The Europe (Paris) endpoint.
public static readonly RegionEndpoint EUWest3
Field Value
MECentral1
The Middle East (UAE) endpoint.
public static readonly RegionEndpoint MECentral1
Field Value
MESouth1
The Middle East (Bahrain) endpoint.
public static readonly RegionEndpoint MESouth1
Field Value
SAEast1
The South America (Sao Paulo) endpoint.
public static readonly RegionEndpoint SAEast1
Field Value
USEast1
The US East (N. Virginia) endpoint.
public static readonly RegionEndpoint USEast1
Field Value
USEast2
The US East (Ohio) endpoint.
public static readonly RegionEndpoint USEast2
Field Value
USGovCloudEast1
The AWS GovCloud (US-East) endpoint.
public static readonly RegionEndpoint USGovCloudEast1
Field Value
USGovCloudWest1
The AWS GovCloud (US-West) endpoint.
public static readonly RegionEndpoint USGovCloudWest1
Field Value
USIsoEast1
The US ISO East endpoint.
public static readonly RegionEndpoint USIsoEast1
Field Value
USIsoWest1
The US ISO WEST endpoint.
public static readonly RegionEndpoint USIsoWest1
Field Value
USIsobEast1
The US ISOB East (Ohio) endpoint.
public static readonly RegionEndpoint USIsobEast1
Field Value
USWest1
The US West (N. California) endpoint.
public static readonly RegionEndpoint USWest1
Field Value
USWest2
The US West (Oregon) endpoint.
public static readonly RegionEndpoint USWest2
Field Value
Properties
DisplayName
Gets the display name of a region.
public string DisplayName { get; }
Property Value
EnumerableAllRegions
Enumerate through all the regions.
public static IEnumerable<RegionEndpoint> EnumerableAllRegions { get; }
Property Value
OriginalSystemName
[Obsolete("It should not be necessary to use this property. To support upgrading to Endpoint Variants, ClientConfig will manipulate the assigned RegionEndpoint. To support the Polly PreSigner, it's still necessaryto check the OriginalSystemName to determine if a PseudoRegion was assigned.", false)]
public string OriginalSystemName { get; }
Property Value
PartitionDnsSuffix
Gets the dns suffix for the region endpoints in a partition. For example the aws partition's suffix is amazonaws.com. The aws-cn partition's suffix is amazonaws.com.cn.
public string PartitionDnsSuffix { get; }
Property Value
PartitionName
Gets the partition name the region is in. For example for us-east-1 the partition name is aws. For cn-northwest-1 the partition name is aws-cn.
public string PartitionName { 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 RegionEndpoint GetBySystemName(string systemName)
Parameters
systemName
stringThe system name of the service like "us-west-1"
Returns
GetDnsSuffixForPartition(string)
Returns the DNS suffix for the given partition, or an empty string if a matching partition was not found in endpoints.json
[Obsolete("This operation is obsoleted because as of version 3.7.100 endpoint is resolved using a newer system that uses request level parameters to resolve the endpoint.")]
public static string GetDnsSuffixForPartition(string partition)
Parameters
partition
stringpartition
Returns
- string
DNS suffix for the given partition, empty string if a matching partition was not found
GetEndpointForService(string)
Gets the endpoint for a service in a region.
[Obsolete("This operation is obsoleted because as of version 3.7.100 endpoint is resolved using a newer system that uses request level parameters to resolve the endpoint.")]
public RegionEndpoint.Endpoint GetEndpointForService(string serviceName)
Parameters
serviceName
stringThe services system name. Service system names can be obtained from the RegionEndpointServiceName member of the ClientConfig-derived class for the service.
Returns
GetEndpointForService(string, GetEndpointForServiceOptions)
Gets the endpoint for a service in a region.
For forwards compatibility, if the service being requested for isn't known in the region, this method will generate an endpoint using the AWS endpoint heuristics. In this case, it is not guaranteed the endpoint will point to a valid service endpoint.[Obsolete("This operation is obsoleted because as of version 3.7.100 endpoint is resolved using a newer system that uses request level parameters to resolve the endpoint.")]
public RegionEndpoint.Endpoint GetEndpointForService(string serviceName, GetEndpointForServiceOptions options)
Parameters
serviceName
stringThe services system name. Service system names can be obtained from the RegionEndpointServiceName member of the ClientConfig-derived class for the service.
options
GetEndpointForServiceOptionsSpecify additional requirements on the RegionEndpoint.Endpoint to be returned.
Returns
GetEndpointForService(string, bool)
Gets the endpoint for a service in a region, optionally selecting a dualstack compatible endpoint.
[Obsolete("Use GetEndpointForService(string serviceName, GetEndpointForServiceOptions options) instead", false)]
public RegionEndpoint.Endpoint GetEndpointForService(string serviceName, bool dualStack)
Parameters
serviceName
stringThe services system name. Service system names can be obtained from the RegionEndpointServiceName member of the ClientConfig-derived class for the service.
dualStack
boolIf true a dualstack endpoint is returned. It is the user's responsibility to verify that the given service supports a dualstack endpoint for the region.
Returns
GetRegionEndpointOverride(RegionEndpoint)
Gets the region endpoint override if exists
[Obsolete("This operation is obsoleted because as of version 3.7.100 endpoint is resolved using a newer system that uses request level parameters to resolve the endpoint.")]
public static RegionEndpoint GetRegionEndpointOverride(RegionEndpoint regionEndpoint)
Parameters
regionEndpoint
RegionEndpointThe region endpoint to find the possible override for
Returns
Reload(Stream)
Force the SDK to load and apply the given endpoints details (eg: an updated endpoints.json file). Service clients created after this call will be set up with endpoints based on this information.
This function should only be used at application startup, before creating service clients.
Known Caveats:
- static readonly fields (eg: USEast1) are not updated. If you use this function, you should use Amazon.RegionEndpoint.GetEndpoint(System.String,System.String) with explicit region system names to ensure you work with RegionEndpoint objects containing the reloaded data. RegionEndpoint objects returned from GetEndpoint will generally fail Equality comparisons against the static fields.
- Service clients created before calling Reload have no guarantee around which endpoint data will be used.
[Obsolete("This operation is obsoleted because as of version 3.7.100 endpoint is resolved using a newer system that uses request level parameters to resolve the endpoint.")]
public static void Reload(Stream stream)
Parameters
stream
StreamStream containing an Endpoints manifest to reload in the SDK. Pass null in to reset the SDK, so that it uses its built-in manifest instead.
ToString()
public override string ToString()