@Stability(value=Experimental) @Internal public static final class RequestAuthorizerProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements RequestAuthorizerProps
RequestAuthorizerPropssoftware.amazon.jsii.JsiiObject.InitializationModeRequestAuthorizerProps.Builder, RequestAuthorizerProps.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(List<String> identitySources,
IFunction handler,
IRole assumeRole,
String authorizerName,
Duration resultsCacheTtl)
Constructor that initializes the object based on literal property values passed by the
RequestAuthorizerProps.Builder. |
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(Object o) |
IRole |
getAssumeRole()
(experimental) An optional IAM role for APIGateway to assume before calling the Lambda-based authorizer.
|
String |
getAuthorizerName()
(experimental) An optional human friendly name for the authorizer.
|
IFunction |
getHandler()
(experimental) The handler for the authorizer lambda function.
|
List<String> |
getIdentitySources()
(experimental) An array of request header mapping expressions for identities.
|
Duration |
getResultsCacheTtl()
(experimental) How long APIGateway should cache the results.
|
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.public final List<String> getIdentitySources()
RequestAuthorizerProps
Supported parameter types are
Header, Query String, Stage Variable, and Context. For instance, extracting an authorization
token from a header would use the identity source IdentitySource.header('Authorizer').
Note: API Gateway uses the specified identity sources as the request authorizer caching key. When caching is enabled, API Gateway calls the authorizer's Lambda function only after successfully verifying that all the specified identity sources are present at runtime. If a specified identify source is missing, null, or empty, API Gateway returns a 401 Unauthorized response without calling the authorizer Lambda function.
getIdentitySources in interface RequestAuthorizerPropshttps://docs.aws.amazon.com/apigateway/api-reference/link-relation/authorizer-create/#identitySourcepublic 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 © 2021. All rights reserved.