Class RegionEndpointResolver

java.lang.Object
software.amazon.awssdk.core.internal.warmup.RegionEndpointResolver

@SdkInternalApi public final class RegionEndpointResolver extends Object
Resolves the endpoint used by the CRaC HTTP-client warm-up. The warm-up targets a single predetermined service; that service is currently STS, so this builds the regional STS endpoint (https://sts.<region>.amazonaws.com/).

The region is taken from SdkSystemSetting.AWS_REGION (the aws.region system property or AWS_REGION environment variable), falling back to "us-east-1" when it is unset or not a valid hostname component. This matches how the SDK resolves a region from system settings.

Only system properties and environment variables are read. The full SDK region-resolution chain (IMDS, profile file) is avoided during warm-up because those add network or filesystem calls that may fail or time out. The endpoint host always uses the amazonaws.com suffix, which is incorrect for the China, GovCloud, and ISO partitions; in those partitions the warm-up request simply fails and is ignored, since it is best-effort.

  • Method Details

    • create

      public static RegionEndpointResolver create()
    • endpoint

      public URI endpoint()
      Returns:
      the regional STS endpoint URI for the resolved region; never null.