class LambdaIntegration
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.APIGateway.LambdaIntegration |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsapigateway#LambdaIntegration |
Java | software.amazon.awscdk.services.apigateway.LambdaIntegration |
Python | aws_cdk.aws_apigateway.LambdaIntegration |
TypeScript (source) | aws-cdk-lib » aws_apigateway » LambdaIntegration |
Extends
Aws
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
Lambda
Integration Options
Methods
Name | Description |
---|---|
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
Can be overridden by subclasses to allow the integration to interact with the method being integrated, access the REST API object, method ARNs, etc.