Table of Contents

Class LambdaIntegration

Namespace
Amazon.CDK.AWS.APIGateway
Assembly
Amazon.CDK.AWS.APIGateway.dll

Integrates an AWS Lambda function to an API Gateway method.

public class LambdaIntegration : AwsIntegration
Inheritance
LambdaIntegration

Examples

Resource resource;
            Function handler;

            resource.AddMethod("GET", new LambdaIntegration(handler));

Constructors

LambdaIntegration(IFunction, ILambdaIntegrationOptions?)

public LambdaIntegration(IFunction handler, ILambdaIntegrationOptions? options = null)

Parameters

handler IFunction
options ILambdaIntegrationOptions

Methods

Bind(Method)

Can be overridden by subclasses to allow the integration to interact with the method being integrated, access the REST API object, method ARNs, etc.

public override IIntegrationConfig Bind(Method method)

Parameters

method Method

Returns

IIntegrationConfig