@Generated(value="jsii-pacmak/1.29.0 (build 41df200)", date="2021-06-02T09:54:56.868Z") @Stability(value=Experimental) public interface LambdaAuthorizerProps extends software.amazon.jsii.JsiiSerializable
| Modifier and Type | Interface and Description |
|---|---|
static class |
LambdaAuthorizerProps.Builder
A builder for
LambdaAuthorizerProps |
static class |
LambdaAuthorizerProps.Jsii$Proxy
An implementation for
LambdaAuthorizerProps |
| Modifier and Type | Method and Description |
|---|---|
static LambdaAuthorizerProps.Builder |
builder() |
default IRole |
getAssumeRole()
(experimental) An optional IAM role for APIGateway to assume before calling the Lambda-based authorizer.
|
default String |
getAuthorizerName()
(experimental) An optional human friendly name for the authorizer.
|
IFunction |
getHandler()
(experimental) The handler for the authorizer lambda function.
|
default Duration |
getResultsCacheTtl()
(experimental) How long APIGateway should cache the results.
|
@Stability(value=Experimental) @NotNull IFunction getHandler()
The handler must follow a very specific protocol on the input it receives and the output it needs to produce. API Gateway has documented the handler's input specification {@link https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-lambda-authorizer-input.html | here} and output specification {@link https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-lambda-authorizer-output.html | here}.
@Stability(value=Experimental) @Nullable default IRole getAssumeRole()
The IAM role must be assumable by 'apigateway.amazonaws.com'.
Default: - A resource policy is added to the Lambda function allowing apigateway.amazonaws.com to invoke the function.
@Stability(value=Experimental) @Nullable default String getAuthorizerName()
Note that, this is not the primary identifier of the authorizer.
Default: - the unique construcrt ID
@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 LambdaAuthorizerProps.Builder builder()
LambdaAuthorizerProps.Builder of LambdaAuthorizerPropsCopyright © 2021. All rights reserved.