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.98.0 (build 00b106d)", date="2024-05-08T21:35:01.969Z") @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