Class CognitoUserPoolsAuthorizer

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
All Implemented Interfaces:
IConstruct, IDependable, IResource, IAuthorizer, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:44.924Z") @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