AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

A LambdaAuthorizerConfig specifies how to authorize AppSync API access when using the AWS_LAMBDA authorizer mode. Be aware that an AppSync API can have only one Lambda authorizer configured at a time.

Inheritance Hierarchy

System.Object
  Amazon.AppSync.Model.LambdaAuthorizerConfig

Namespace: Amazon.AppSync.Model
Assembly: AWSSDK.AppSync.dll
Version: 3.x.y.z

Syntax

C#
public class LambdaAuthorizerConfig

The LambdaAuthorizerConfig type exposes the following members

Constructors

NameDescription
Public Method LambdaAuthorizerConfig()

Properties

NameTypeDescription
Public Property AuthorizerResultTtlInSeconds System.Int32

Gets and sets the property AuthorizerResultTtlInSeconds.

The number of seconds a response should be cached for. The default is 0 seconds, which disables caching. If you don't specify a value for authorizerResultTtlInSeconds, the default value is used. The maximum value is one hour (3600 seconds). The Lambda function can override this by returning a ttlOverride key in its response.

Public Property AuthorizerUri System.String

Gets and sets the property AuthorizerUri.

The Amazon Resource Name (ARN) of the Lambda function to be called for authorization. This can be a standard Lambda ARN, a version ARN (.../v3), or an 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 use the Command Line Interface (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

Public Property IdentityValidationExpression System.String

Gets and sets the property IdentityValidationExpression.

A regular expression for validation of tokens before the Lambda function is called.

Version Information

.NET Core App:
Supported in: 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5, 4.0, 3.5