Interface CfnAuthorizer.JWTConfigurationProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnAuthorizer.JWTConfigurationProperty.Jsii$Proxy
Enclosing class:
CfnAuthorizer

@Stability(Stable) public static interface CfnAuthorizer.JWTConfigurationProperty extends software.amazon.jsii.JsiiSerializable
The JWTConfiguration property specifies the configuration of a JWT authorizer.

Required for the JWT authorizer type. Supported only for HTTP APIs.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.apigatewayv2.*;
 JWTConfigurationProperty jWTConfigurationProperty = JWTConfigurationProperty.builder()
         .audience(List.of("audience"))
         .issuer("issuer")
         .build();
 
  • Method Details

    • getAudience

      @Stability(Stable) @Nullable default List<String> getAudience()
      A list of the intended recipients of the JWT.

      A valid JWT must provide an aud that matches at least one entry in this list. See RFC 7519 . Required for the JWT authorizer type. Supported only for HTTP APIs.

    • getIssuer

      @Stability(Stable) @Nullable default String getIssuer()
      The base domain of the identity provider that issues JSON Web Tokens.

      For example, an Amazon Cognito user pool has the following format: https://cognito-idp. {region} .amazonaws.com/ {userPoolId} . Required for the JWT authorizer type. Supported only for HTTP APIs.

    • builder

      @Stability(Stable) static CfnAuthorizer.JWTConfigurationProperty.Builder builder()
      Returns:
      a CfnAuthorizer.JWTConfigurationProperty.Builder of CfnAuthorizer.JWTConfigurationProperty