@Stability(value=Experimental) public static final class HttpLambdaAuthorizer.Builder extends Object implements software.amazon.jsii.Builder<HttpLambdaAuthorizer>
HttpLambdaAuthorizer.| Modifier and Type | Method and Description |
|---|---|
HttpLambdaAuthorizer.Builder |
authorizerName(String authorizerName)
(experimental) Friendly authorizer name.
|
HttpLambdaAuthorizer |
build() |
static HttpLambdaAuthorizer.Builder |
create(String id,
IFunction handler) |
HttpLambdaAuthorizer.Builder |
identitySource(List<String> identitySource)
(experimental) The identity source for which authorization is requested.
|
HttpLambdaAuthorizer.Builder |
responseTypes(List<? extends HttpLambdaResponseType> responseTypes)
(experimental) The types of responses the lambda can return.
|
HttpLambdaAuthorizer.Builder |
resultsCacheTtl(Duration resultsCacheTtl)
(experimental) How long APIGateway should cache the results.
|
@Stability(value=Experimental) public static HttpLambdaAuthorizer.Builder create(String id, IFunction handler)
id - The id of the underlying construct. This parameter is required.handler - This parameter is required.HttpLambdaAuthorizer.Builder.@Stability(value=Experimental) public HttpLambdaAuthorizer.Builder authorizerName(String authorizerName)
Default: - same value as `id` passed in the constructor.
authorizerName - Friendly authorizer name. This parameter is required.this@Stability(value=Experimental) public HttpLambdaAuthorizer.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 HttpLambdaAuthorizer.Builder responseTypes(List<? extends HttpLambdaResponseType> responseTypes)
If HttpLambdaResponseType.SIMPLE is included then response format 2.0 will be used.
Default: [HttpLambdaResponseType.IAM]
responseTypes - The types of responses the lambda can return. This parameter is required.thishttps://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-lambda-authorizer.html#http-api-lambda-authorizer.payload-format-response@Stability(value=Experimental) public HttpLambdaAuthorizer.Builder resultsCacheTtl(Duration resultsCacheTtl)
Max 1 hour.
Disable caching by setting this to Duration.seconds(0).
Default: Duration.minutes(5)
resultsCacheTtl - How long APIGateway should cache the results. This parameter is required.this@Stability(value=Experimental) public HttpLambdaAuthorizer build()
build in interface software.amazon.jsii.Builder<HttpLambdaAuthorizer>Copyright © 2022. All rights reserved.