@Generated(value="jsii-pacmak/1.29.0 (build 41df200)", date="2021-06-02T09:54:56.845Z") @Stability(value=Experimental) public interface CognitoUserPoolsAuthorizerProps extends software.amazon.jsii.JsiiSerializable
| Modifier and Type | Interface and Description |
|---|---|
static class |
CognitoUserPoolsAuthorizerProps.Builder
A builder for
CognitoUserPoolsAuthorizerProps |
static class |
CognitoUserPoolsAuthorizerProps.Jsii$Proxy
An implementation for
CognitoUserPoolsAuthorizerProps |
| Modifier and Type | Method and Description |
|---|---|
static CognitoUserPoolsAuthorizerProps.Builder |
builder() |
default String |
getAuthorizerName()
(experimental) An optional human friendly name for the authorizer.
|
List<IUserPool> |
getCognitoUserPools()
(experimental) The user pools to associate with this authorizer.
|
default String |
getIdentitySource()
(experimental) The request header mapping expression for the bearer token.
|
default Duration |
getResultsCacheTtl()
(experimental) How long APIGateway should cache the results.
|
@Stability(value=Experimental) @NotNull List<IUserPool> getCognitoUserPools()
@Stability(value=Experimental) @Nullable default String getAuthorizerName()
Note that, this is not the primary identifier of the authorizer.
Default: - the unique construct ID
@Stability(value=Experimental) @Nullable default String getIdentitySource()
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')`
https://docs.aws.amazon.com/apigateway/api-reference/link-relation/authorizer-create/#identitySource@Stability(value=Experimental) @Nullable default Duration getResultsCacheTtl()
Max 1 hour. Disable caching by setting this to 0.
Default: Duration.minutes(5)
@Stability(value=Experimental) static CognitoUserPoolsAuthorizerProps.Builder builder()
Copyright © 2021. All rights reserved.