Show / Hide Table of Contents

Class LambdaIntegration

Integrates an AWS Lambda function to an API Gateway method.

Inheritance
object
Integration
AwsIntegration
LambdaIntegration
Namespace: Amazon.CDK.AWS.APIGateway
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class LambdaIntegration : AwsIntegration
Syntax (vb)
Public Class LambdaIntegration Inherits AwsIntegration
Examples
Resource resource;
            Function handler;

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

Synopsis

Constructors

LambdaIntegration(IFunction, ILambdaIntegrationOptions?)

Integrates an AWS Lambda function to an API Gateway method.

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.

Constructors

LambdaIntegration(IFunction, ILambdaIntegrationOptions?)

Integrates an AWS Lambda function to an API Gateway method.

public LambdaIntegration(IFunction handler, ILambdaIntegrationOptions? options = null)
Parameters
handler IFunction
options ILambdaIntegrationOptions
Examples
Resource resource;
            Function handler;

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

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

Overrides
AwsIntegration.Bind(Method)
Back to top Generated by DocFX