@Stability(value=Stable) public static final class CognitoUserPoolsAuthorizer.Builder extends Object implements software.amazon.jsii.Builder<CognitoUserPoolsAuthorizer>
CognitoUserPoolsAuthorizer.| Modifier and Type | Method and Description |
|---|---|
CognitoUserPoolsAuthorizer.Builder |
authorizerName(String authorizerName)
An optional human friendly name for the authorizer.
|
CognitoUserPoolsAuthorizer |
build() |
CognitoUserPoolsAuthorizer.Builder |
cognitoUserPools(List<? extends IUserPool> cognitoUserPools)
The user pools to associate with this authorizer.
|
static CognitoUserPoolsAuthorizer.Builder |
create(software.constructs.Construct scope,
String id) |
CognitoUserPoolsAuthorizer.Builder |
identitySource(String identitySource)
The request header mapping expression for the bearer token.
|
CognitoUserPoolsAuthorizer.Builder |
resultsCacheTtl(Duration resultsCacheTtl)
How long APIGateway should cache the results.
|
@Stability(value=Stable) public static CognitoUserPoolsAuthorizer.Builder create(software.constructs.Construct scope, String id)
scope - This parameter is required.id - This parameter is required.CognitoUserPoolsAuthorizer.Builder.@Stability(value=Stable) public CognitoUserPoolsAuthorizer.Builder cognitoUserPools(List<? extends IUserPool> cognitoUserPools)
cognitoUserPools - The user pools to associate with this authorizer. This parameter is required.this@Stability(value=Stable) public CognitoUserPoolsAuthorizer.Builder authorizerName(String authorizerName)
Note that, this is not the primary identifier of the authorizer.
Default: - the unique construct ID
authorizerName - An optional human friendly name for the authorizer. This parameter is required.this@Stability(value=Stable) public CognitoUserPoolsAuthorizer.Builder identitySource(String identitySource)
This is typically passed as part of the header, in which case
this should be method.request.header.Authorizer where Authorizer is the header containing the bearer token.
Default: `IdentitySource.header('Authorization')`
identitySource - The request header mapping expression for the bearer token. This parameter is required.this@Stability(value=Stable) public CognitoUserPoolsAuthorizer.Builder resultsCacheTtl(Duration resultsCacheTtl)
Max 1 hour. Disable caching by setting this to 0.
Default: Duration.minutes(5)
resultsCacheTtl - How long APIGateway should cache the results. This parameter is required.this@Stability(value=Stable) public CognitoUserPoolsAuthorizer build()
build in interface software.amazon.jsii.Builder<CognitoUserPoolsAuthorizer>Copyright © 2022. All rights reserved.