@Generated(value="jsii-pacmak/1.70.0 (build 03c2f6f)", date="2022-11-01T13:16:41.681Z") @Stability(value=Experimental) public class HttpUserPoolAuthorizer extends software.amazon.jsii.JsiiObject implements IHttpRouteAuthorizer
Example:
import software.amazon.awscdk.core.*;
import software.amazon.awscdk.services.apigatewayv2.authorizers.HttpUserPoolAuthorizer;
import software.amazon.awscdk.services.apigatewayv2.integrations.HttpUrlIntegration;
UserPool userPool = new UserPool(this, "UserPool");
HttpUserPoolAuthorizer authorizer = new HttpUserPoolAuthorizer("BooksAuthorizer", userPool);
HttpApi api = new HttpApi(this, "HttpApi");
api.addRoutes(AddRoutesOptions.builder()
.integration(new HttpUrlIntegration("BooksIntegration", "https://get-books-proxy.myproxy.internal"))
.path("/books")
.authorizer(authorizer)
.build());
| Modifier and Type | Class and Description |
|---|---|
static class |
HttpUserPoolAuthorizer.Builder
(experimental) A fluent builder for
HttpUserPoolAuthorizer. |
software.amazon.jsii.JsiiObject.InitializationModeIHttpRouteAuthorizer.Jsii$Default, IHttpRouteAuthorizer.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
protected |
HttpUserPoolAuthorizer(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
HttpUserPoolAuthorizer(software.amazon.jsii.JsiiObjectRef objRef) |
|
HttpUserPoolAuthorizer(String id,
IUserPool pool)
(experimental) Initialize a Cognito user pool authorizer to be bound with HTTP route.
|
|
HttpUserPoolAuthorizer(String id,
IUserPool pool,
HttpUserPoolAuthorizerProps props)
(experimental) Initialize a Cognito user pool authorizer to be bound with HTTP route.
|
| Modifier and Type | Method and Description |
|---|---|
HttpRouteAuthorizerConfig |
bind(HttpRouteAuthorizerBindOptions options)
(experimental) Bind this authorizer to a specified Http route.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected HttpUserPoolAuthorizer(software.amazon.jsii.JsiiObjectRef objRef)
protected HttpUserPoolAuthorizer(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public HttpUserPoolAuthorizer(@NotNull
String id,
@NotNull
IUserPool pool,
@Nullable
HttpUserPoolAuthorizerProps props)
id - The id of the underlying construct. This parameter is required.pool - The user pool to use for authorization. This parameter is required.props - Properties to configure the authorizer.@Stability(value=Experimental)
public HttpUserPoolAuthorizer(@NotNull
String id,
@NotNull
IUserPool pool)
id - The id of the underlying construct. This parameter is required.pool - The user pool to use for authorization. This parameter is required.@Stability(value=Experimental) @NotNull public HttpRouteAuthorizerConfig bind(@NotNull HttpRouteAuthorizerBindOptions options)
bind in interface IHttpRouteAuthorizeroptions - This parameter is required.Copyright © 2022. All rights reserved.