@Stability(value=Experimental) public static final class HttpUserPoolAuthorizer.Builder extends Object implements software.amazon.jsii.Builder<HttpUserPoolAuthorizer>
HttpUserPoolAuthorizer.| Modifier and Type | Method and Description |
|---|---|
HttpUserPoolAuthorizer.Builder |
authorizerName(String authorizerName)
(experimental) Friendly name of the authorizer.
|
HttpUserPoolAuthorizer |
build() |
static HttpUserPoolAuthorizer.Builder |
create(String id,
IUserPool pool) |
HttpUserPoolAuthorizer.Builder |
identitySource(List<String> identitySource)
(experimental) The identity source for which authorization is requested.
|
HttpUserPoolAuthorizer.Builder |
userPoolClients(List<? extends IUserPoolClient> userPoolClients)
(experimental) The user pool clients that should be used to authorize requests with the user pool.
|
HttpUserPoolAuthorizer.Builder |
userPoolRegion(String userPoolRegion)
(experimental) The AWS region in which the user pool is present.
|
@Stability(value=Experimental) public static HttpUserPoolAuthorizer.Builder create(String id, 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.HttpUserPoolAuthorizer.Builder.@Stability(value=Experimental) public HttpUserPoolAuthorizer.Builder authorizerName(String authorizerName)
Default: - same value as `id` passed in the constructor
authorizerName - Friendly name of the authorizer. This parameter is required.this@Stability(value=Experimental) public HttpUserPoolAuthorizer.Builder identitySource(List<String> identitySource)
Default: ['$request.header.Authorization']
identitySource - The identity source for which authorization is requested. This parameter is required.this@Stability(value=Experimental) public HttpUserPoolAuthorizer.Builder userPoolClients(List<? extends IUserPoolClient> userPoolClients)
Default: - a new client will be created for the given user pool
userPoolClients - The user pool clients that should be used to authorize requests with the user pool. This parameter is required.this@Stability(value=Experimental) public HttpUserPoolAuthorizer.Builder userPoolRegion(String userPoolRegion)
Default: - same region as the Route the authorizer is attached to.
userPoolRegion - The AWS region in which the user pool is present. This parameter is required.this@Stability(value=Experimental) public HttpUserPoolAuthorizer build()
build in interface software.amazon.jsii.Builder<HttpUserPoolAuthorizer>Copyright © 2022. All rights reserved.