class Aws::AppSync::Types::LambdaAuthorizerConfig

A `LambdaAuthorizerConfig` holds configuration on how to authorize AppSync API access when using the `AWS_LAMBDA` authorizer mode. Be aware that an AppSync API may have only one Lambda authorizer configured at a time.

@note When making an API call, you may pass LambdaAuthorizerConfig

data as a hash:

    {
      authorizer_result_ttl_in_seconds: 1,
      authorizer_uri: "String", # required
      identity_validation_expression: "String",
    }

@!attribute [rw] authorizer_result_ttl_in_seconds

The number of seconds a response should be cached for. The default
is 5 minutes (300 seconds). The Lambda function can override this by
returning a `ttlOverride` key in its response. A value of 0 disables
caching of responses.
@return [Integer]

@!attribute [rw] authorizer_uri

The ARN of the lambda function to be called for authorization. This
may be a standard Lambda ARN, a version ARN (`.../v3`) or alias ARN.

*Note*\: This Lambda function must have the following resource-based
policy assigned to it. When configuring Lambda authorizers in the
Console, this is done for you. To do so with the AWS CLI, run the
following:

`aws lambda add-permission --function-name
"arn:aws:lambda:us-east-2:111122223333:function:my-function"
--statement-id "appsync" --principal appsync.amazonaws.com --action
lambda:InvokeFunction`
@return [String]

@!attribute [rw] identity_validation_expression

A regular expression for validation of tokens before the Lambda
Function is called.
@return [String]

@see docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/LambdaAuthorizerConfig AWS API Documentation

Constants

SENSITIVE