Class RequestAuthorizerProps.Jsii$Proxy
- All Implemented Interfaces:
LambdaAuthorizerProps
,RequestAuthorizerProps
,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
RequestAuthorizerProps
RequestAuthorizerProps
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.apigateway.RequestAuthorizerProps
RequestAuthorizerProps.Builder, RequestAuthorizerProps.Jsii$Proxy
-
Constructor Summary
ModifierConstructorDescriptionprotected
Jsii$Proxy
(RequestAuthorizerProps.Builder builder) Constructor that initializes the object based on literal property values passed by theRequestAuthorizerProps.Builder
.protected
Jsii$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.JsonNode
final boolean
final IRole
An optional IAM role for APIGateway to assume before calling the Lambda-based authorizer.final String
An optional human friendly name for the authorizer.final IFunction
The handler for the authorizer lambda function.An array of request header mapping expressions for identities.final Duration
How long APIGateway should cache the results.final int
hashCode()
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 theRequestAuthorizerProps.Builder
.
-
-
Method Details
-
getIdentitySources
Description copied from interface:RequestAuthorizerProps
An array of request header mapping expressions for identities.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.
- Specified by:
getIdentitySources
in interfaceRequestAuthorizerProps
- See Also:
-
getHandler
Description copied from interface:LambdaAuthorizerProps
The 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
invalid @link
{@link https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-lambda-authorizer-input.html
invalid @link
{@link https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-lambda-authorizer-output.html
- Specified by:
getHandler
in interfaceLambdaAuthorizerProps
-
getAssumeRole
Description copied from interface:LambdaAuthorizerProps
An 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:
getAssumeRole
in interfaceLambdaAuthorizerProps
-
getAuthorizerName
Description copied from interface:LambdaAuthorizerProps
An optional human friendly name for the authorizer.Note that, this is not the primary identifier of the authorizer.
Default: - the unique construcrt ID
- Specified by:
getAuthorizerName
in interfaceLambdaAuthorizerProps
-
getResultsCacheTtl
Description copied from interface:LambdaAuthorizerProps
How long APIGateway should cache the results.Max 1 hour. Disable caching by setting this to 0.
Default: Duration.minutes(5)
- Specified by:
getResultsCacheTtl
in interfaceLambdaAuthorizerProps
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()- Specified by:
$jsii$toJson
in interfacesoftware.amazon.jsii.JsiiSerializable
-
equals
-
hashCode
public final int hashCode()
-