@Stability(value=Experimental) public static final class CognitoUserPoolsAuthorizerProps.Builder extends Object implements software.amazon.jsii.Builder<CognitoUserPoolsAuthorizerProps>
CognitoUserPoolsAuthorizerProps| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
CognitoUserPoolsAuthorizerProps.Builder |
authorizerName(String authorizerName)
Sets the value of
CognitoUserPoolsAuthorizerProps.getAuthorizerName() |
CognitoUserPoolsAuthorizerProps |
build()
Builds the configured instance.
|
CognitoUserPoolsAuthorizerProps.Builder |
cognitoUserPools(List<? extends IUserPool> cognitoUserPools)
Sets the value of
CognitoUserPoolsAuthorizerProps.getCognitoUserPools() |
CognitoUserPoolsAuthorizerProps.Builder |
identitySource(String identitySource)
Sets the value of
CognitoUserPoolsAuthorizerProps.getIdentitySource() |
CognitoUserPoolsAuthorizerProps.Builder |
resultsCacheTtl(Duration resultsCacheTtl)
Sets the value of
CognitoUserPoolsAuthorizerProps.getResultsCacheTtl() |
@Stability(value=Experimental) public CognitoUserPoolsAuthorizerProps.Builder cognitoUserPools(List<? extends IUserPool> cognitoUserPools)
CognitoUserPoolsAuthorizerProps.getCognitoUserPools()cognitoUserPools - The user pools to associate with this authorizer. This parameter is required.this@Stability(value=Experimental) public CognitoUserPoolsAuthorizerProps.Builder authorizerName(String authorizerName)
CognitoUserPoolsAuthorizerProps.getAuthorizerName()authorizerName - An optional human friendly name for the authorizer.
Note that, this is not the primary identifier of the authorizer.this@Stability(value=Experimental) public CognitoUserPoolsAuthorizerProps.Builder identitySource(String identitySource)
CognitoUserPoolsAuthorizerProps.getIdentitySource()identitySource - The request header mapping expression for the bearer token.
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.this@Stability(value=Experimental) public CognitoUserPoolsAuthorizerProps.Builder resultsCacheTtl(Duration resultsCacheTtl)
CognitoUserPoolsAuthorizerProps.getResultsCacheTtl()resultsCacheTtl - How long APIGateway should cache the results.
Max 1 hour.
Disable caching by setting this to 0.this@Stability(value=Experimental) public CognitoUserPoolsAuthorizerProps build()
build in interface software.amazon.jsii.Builder<CognitoUserPoolsAuthorizerProps>CognitoUserPoolsAuthorizerPropsNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.