Class CognitoUserPoolsAuthorizer

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.Resource
software.amazon.awscdk.services.apigateway.Authorizer
software.amazon.awscdk.services.apigateway.CognitoUserPoolsAuthorizer
All Implemented Interfaces:
IResource, IAuthorizer, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-12-06T14:43:13.352Z") @Stability(Stable) public class CognitoUserPoolsAuthorizer extends Authorizer implements IAuthorizer
Cognito user pools based custom authorizer.

Example:

 Resource books;
 UserPool userPool = new UserPool(this, "UserPool");
 CognitoUserPoolsAuthorizer auth = CognitoUserPoolsAuthorizer.Builder.create(this, "booksAuthorizer")
         .cognitoUserPools(List.of(userPool))
         .build();
 books.addMethod("GET", new HttpIntegration("http://amazon.com"), MethodOptions.builder()
         .authorizer(auth)
         .authorizationType(AuthorizationType.COGNITO)
         .build());
 
  • Constructor Details

    • CognitoUserPoolsAuthorizer

      protected CognitoUserPoolsAuthorizer(software.amazon.jsii.JsiiObjectRef objRef)
    • CognitoUserPoolsAuthorizer

      protected CognitoUserPoolsAuthorizer(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CognitoUserPoolsAuthorizer

      @Stability(Stable) public CognitoUserPoolsAuthorizer(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CognitoUserPoolsAuthorizerProps props)
      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      props - This parameter is required.
  • Method Details