Interface HttpUserPoolAuthorizerProps

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
HttpUserPoolAuthorizerProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.101.0 (build b95fe5d)", date="2024-08-15T01:32:43.141Z") @Stability(Stable) public interface HttpUserPoolAuthorizerProps extends software.amazon.jsii.JsiiSerializable
Properties to initialize HttpUserPoolAuthorizer.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.aws_apigatewayv2_authorizers.*;
 import software.amazon.awscdk.services.cognito.*;
 UserPoolClient userPoolClient;
 HttpUserPoolAuthorizerProps httpUserPoolAuthorizerProps = HttpUserPoolAuthorizerProps.builder()
         .authorizerName("authorizerName")
         .identitySource(List.of("identitySource"))
         .userPoolClients(List.of(userPoolClient))
         .userPoolRegion("userPoolRegion")
         .build();
 
  • Method Details

    • getAuthorizerName

      @Stability(Stable) @Nullable default String getAuthorizerName()
      Friendly name of the authorizer.

      Default: - same value as `id` passed in the constructor

    • getIdentitySource

      @Stability(Stable) @Nullable default List<String> getIdentitySource()
      The identity source for which authorization is requested.

      Default: ['$request.header.Authorization']

    • getUserPoolClients

      @Stability(Stable) @Nullable default List<IUserPoolClient> getUserPoolClients()
      The user pool clients that should be used to authorize requests with the user pool.

      Default: - a new client will be created for the given user pool

    • getUserPoolRegion

      @Stability(Stable) @Nullable default String getUserPoolRegion()
      The AWS region in which the user pool is present.

      Default: - same region as the Route the authorizer is attached to.

    • builder

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