Class LambdaIntegration
Integrates an AWS Lambda function to an API Gateway method.
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) | |
LambdaIntegration(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
LambdaIntegration(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
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)
public LambdaIntegration(IFunction handler, ILambdaIntegrationOptions options = null)
Parameters
- handler IFunction
- options ILambdaIntegrationOptions
LambdaIntegration(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected LambdaIntegration(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
LambdaIntegration(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected LambdaIntegration(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
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