Class TokenAuthorizerProps.Jsii$Proxy
- All Implemented Interfaces:
LambdaAuthorizerProps,TokenAuthorizerProps,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
TokenAuthorizerProps
TokenAuthorizerProps-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.apigateway.TokenAuthorizerProps
TokenAuthorizerProps.Builder, TokenAuthorizerProps.Jsii$Proxy -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedJsii$Proxy(TokenAuthorizerProps.Builder builder) Constructor that initializes the object based on literal property values passed by theTokenAuthorizerProps.Builder.protectedJsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef) Constructor that initializes the object based on values retrieved from the JsiiObject. -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.JsonNodefinal booleanfinal IRoleAn optional IAM role for APIGateway to assume before calling the Lambda-based authorizer.final StringAn optional human friendly name for the authorizer.final IFunctionThe handler for the authorizer lambda function.final StringThe request header mapping expression for the bearer token.final DurationHow long APIGateway should cache the results.final StringAn optional regex to be matched against the authorization token.final inthashCode()Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
-
Constructor Details
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef) Constructor that initializes the object based on values retrieved from the JsiiObject.- Parameters:
objRef- Reference to the JSII managed object.
-
Jsii$Proxy
Constructor that initializes the object based on literal property values passed by theTokenAuthorizerProps.Builder.
-
-
Method Details
-
getIdentitySource
Description copied from interface:TokenAuthorizerPropsThe 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')`
- Specified by:
getIdentitySourcein interfaceTokenAuthorizerProps- See Also:
-
getValidationRegex
Description copied from interface:TokenAuthorizerPropsAn optional regex to be matched against the authorization token.When matched the authorizer lambda is invoked, otherwise a 401 Unauthorized is returned to the client.
Default: - no regex filter will be applied.
- Specified by:
getValidationRegexin interfaceTokenAuthorizerProps
-
getHandler
Description copied from interface:LambdaAuthorizerPropsThe handler for the authorizer lambda function.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 and output specification.
- Specified by:
getHandlerin interfaceLambdaAuthorizerProps
-
getAssumeRole
Description copied from interface:LambdaAuthorizerPropsAn optional IAM role for APIGateway to assume before calling the Lambda-based authorizer.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.
- Specified by:
getAssumeRolein interfaceLambdaAuthorizerProps
-
getAuthorizerName
Description copied from interface:LambdaAuthorizerPropsAn optional human friendly name for the authorizer.Note that, this is not the primary identifier of the authorizer.
Default: - the unique construct ID
- Specified by:
getAuthorizerNamein interfaceLambdaAuthorizerProps
-
getResultsCacheTtl
Description copied from interface:LambdaAuthorizerPropsHow long APIGateway should cache the results.Max 1 hour. Disable caching by setting this to 0.
Default: - Duration.minutes(5)
- Specified by:
getResultsCacheTtlin interfaceLambdaAuthorizerProps
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()- Specified by:
$jsii$toJsonin interfacesoftware.amazon.jsii.JsiiSerializable
-
equals
-
hashCode
public final int hashCode()
-