aws-cdk-lib.aws_apigateway.LambdaIntegration

class LambdaIntegration

LanguageType name
.NETAmazon.CDK.AWS.APIGateway.LambdaIntegration
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsapigateway#LambdaIntegration
Javasoftware.amazon.awscdk.services.apigateway.LambdaIntegration
Pythonaws_cdk.aws_apigateway.LambdaIntegration
TypeScript (source)aws-cdk-lib » aws_apigateway » LambdaIntegration

Extends AwsIntegration

Integrates an AWS Lambda function to an API Gateway method.

Example

   declare const resource: apigateway.Resource;
   declare const handler: lambda.Function;
   resource.addMethod('GET', new apigateway.LambdaIntegration(handler));

Initializer

new LambdaIntegration(handler: IFunction, options?: LambdaIntegrationOptions)

Parameters

  • handler IFunction
  • options LambdaIntegrationOptions

Methods

NameDescription
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.

bind(method)

public bind(method: Method): IntegrationConfig

Parameters

  • method Method

Returns

  • IntegrationConfig

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