Interface LambdaFunctionAssociation
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
LambdaFunctionAssociation.Jsii$Proxy
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-29T11:15:34.367Z")
@Stability(Stable)
public interface LambdaFunctionAssociation
extends software.amazon.jsii.JsiiSerializable
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.cloudfront.*;
import software.amazon.awscdk.services.lambda.*;
Version version;
LambdaFunctionAssociation lambdaFunctionAssociation = LambdaFunctionAssociation.builder()
.eventType(LambdaEdgeEventType.ORIGIN_REQUEST)
.lambdaFunction(version)
// the properties below are optional
.includeBody(false)
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forLambdaFunctionAssociationstatic final classAn implementation forLambdaFunctionAssociation -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getEventType
The lambda event type defines at which event the lambda is called during the request lifecycle. -
getLambdaFunction
A version of the lambda to associate. -
getIncludeBody
Allows a Lambda function to have read access to the body content.Only valid for "request" event types (
ORIGIN_REQUESTorVIEWER_REQUEST).Default: false
- See Also:
-
builder
- Returns:
- a
LambdaFunctionAssociation.BuilderofLambdaFunctionAssociation
-