Class AwsEndpointOverride

java.lang.Object
io.cloudstub.core.internal.AwsEndpointOverride

public final class AwsEndpointOverride extends Object
Manages the aws.endpoint-url system property that redirects AWS SDK v2 traffic to the embedded mock server. Set on start, cleared on stop.
  • Method Details

    • set

      public static void set(int port)
      Points the AWS SDK at http://localhost:<port>.
    • clear

      public static void clear()
      Removes the override so the AWS SDK reverts to its normal endpoint resolution.