Class EndpointBasedAuthSchemeProviderSpec

java.lang.Object
software.amazon.awssdk.codegen.poet.auth.scheme.EndpointBasedAuthSchemeProviderSpec
All Implemented Interfaces:
ClassSpec

public class EndpointBasedAuthSchemeProviderSpec extends Object implements ClassSpec
Generates an auth scheme provider that resolves authentication schemes from endpoint rules.

This class creates a provider that determines authentication schemes dynamically based on the resolved endpoint's auth scheme attributes. It first resolves the endpoint using endpoint rules, then extracts auth scheme information from the endpoint's attributes. If the endpoint doesn't specify auth schemes (for example, a custom endpoint provider is used), it delegates to the fallback provider, which returns the default auth schemes defined in AuthTypeToSigV4Default

The generated provider handles AWS signature versions (SigV4, SigV4a) and service-specific schemes (like S3 Express), translating endpoint auth scheme metadata into AuthSchemeOption instances with appropriate signer properties.

This provider is only generated for services with endpoint-based auth enabled (isEnableEndpointAuthSchemeParams() = true).

  • Constructor Details

    • EndpointBasedAuthSchemeProviderSpec

      public EndpointBasedAuthSchemeProviderSpec(IntermediateModel intermediateModel)
  • Method Details

    • className

      public com.squareup.javapoet.ClassName className()
      Specified by:
      className in interface ClassSpec
      Returns:
      The Poet representation of the class being generated, this may be used by other classes
    • poetSpec

      public com.squareup.javapoet.TypeSpec poetSpec()
      Specified by:
      poetSpec in interface ClassSpec
      Returns:
      The actual class specification generated from a PoetSpec.builder()... implementation