Interface CognitoUserPoolsAuthorizerProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CognitoUserPoolsAuthorizerProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.120.0 (build 192dc88)",
date="2025-12-05T10:47:11.488Z")
@Stability(Stable)
public interface CognitoUserPoolsAuthorizerProps
extends software.amazon.jsii.JsiiSerializable
Properties for CognitoUserPoolsAuthorizer.
Example:
Resource books;
UserPool userPool = new UserPool(this, "UserPool");
CognitoUserPoolsAuthorizer auth = CognitoUserPoolsAuthorizer.Builder.create(this, "booksAuthorizer")
.cognitoUserPools(List.of(userPool))
.build();
books.addMethod("GET", new HttpIntegration("http://amazon.com"), MethodOptions.builder()
.authorizer(auth)
.authorizationType(AuthorizationType.COGNITO)
.build());
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCognitoUserPoolsAuthorizerPropsstatic final classAn implementation forCognitoUserPoolsAuthorizerProps -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default StringAn optional human friendly name for the authorizer.The user pools to associate with this authorizer.default StringThe request header mapping expression for the bearer token.default DurationHow long APIGateway should cache the results.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getCognitoUserPools
The user pools to associate with this authorizer. -
getAuthorizerName
An optional human friendly name for the authorizer.Note that, this is not the primary identifier of the authorizer.
Default: - the unique construct ID
-
getIdentitySource
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.AuthorizerwhereAuthorizeris the header containing the bearer token.Default: `IdentitySource.header('Authorization')`
- See Also:
-
getResultsCacheTtl
How long APIGateway should cache the results.Max 1 hour. Disable caching by setting this to 0.
Default: Duration.minutes(5)
-
builder
-