@Stability(value=Stable) @Internal public static final class TokenAuthorizerProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements TokenAuthorizerProps
TokenAuthorizerPropssoftware.amazon.jsii.JsiiObject.InitializationModeTokenAuthorizerProps.Builder, TokenAuthorizerProps.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.
|
protected |
Jsii$Proxy(TokenAuthorizerProps.Builder builder)
Constructor that initializes the object based on literal property values passed by the
TokenAuthorizerProps.Builder. |
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(Object o) |
IRole |
getAssumeRole()
An optional IAM role for APIGateway to assume before calling the Lambda-based authorizer.
|
String |
getAuthorizerName()
An optional human friendly name for the authorizer.
|
IFunction |
getHandler()
The handler for the authorizer lambda function.
|
String |
getIdentitySource()
The request header mapping expression for the bearer token.
|
Duration |
getResultsCacheTtl()
How long APIGateway should cache the results.
|
String |
getValidationRegex()
An optional regex to be matched against the authorization token.
|
int |
hashCode() |
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitbuilderprotected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef - Reference to the JSII managed object.protected Jsii$Proxy(TokenAuthorizerProps.Builder builder)
TokenAuthorizerProps.Builder.public final String getIdentitySource()
TokenAuthorizerProps
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')`
getIdentitySource in interface TokenAuthorizerPropspublic final String getValidationRegex()
TokenAuthorizerPropsWhen matched the authorizer lambda is invoked, otherwise a 401 Unauthorized is returned to the client.
Default: - no regex filter will be applied.
getValidationRegex in interface TokenAuthorizerPropspublic final IFunction getHandler()
LambdaAuthorizerPropsThe 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}.
getHandler in interface LambdaAuthorizerPropspublic final IRole getAssumeRole()
LambdaAuthorizerPropsThe 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.
getAssumeRole in interface LambdaAuthorizerPropspublic final String getAuthorizerName()
LambdaAuthorizerPropsNote that, this is not the primary identifier of the authorizer.
Default: - the unique construcrt ID
getAuthorizerName in interface LambdaAuthorizerPropspublic final Duration getResultsCacheTtl()
LambdaAuthorizerPropsMax 1 hour. Disable caching by setting this to 0.
Default: Duration.minutes(5)
getResultsCacheTtl in interface LambdaAuthorizerProps@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
$jsii$toJson in interface software.amazon.jsii.JsiiSerializableCopyright © 2022. All rights reserved.