Interface EdgeLambda
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
EdgeLambda.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:43.678Z")
@Stability(Stable)
public interface EdgeLambda
extends software.amazon.jsii.JsiiSerializable
Represents a Lambda function version and event type when using Lambda@Edge.
The type of the AddBehaviorOptions.edgeLambdas
property.
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; EdgeLambda edgeLambda = EdgeLambda.builder() .eventType(LambdaEdgeEventType.ORIGIN_REQUEST) .functionVersion(version) // the properties below are optional .includeBody(false) .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forEdgeLambda
static final class
An implementation forEdgeLambda
-
Method Summary
Modifier and TypeMethodDescriptionstatic EdgeLambda.Builder
builder()
The type of event in response to which should the function be invoked.The version of the Lambda function that will be invoked.default Boolean
Allows a Lambda function to have read access to the body content.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getEventType
The type of event in response to which should the function be invoked. -
getFunctionVersion
The version of the Lambda function that will be invoked.Note: it's not possible to use the '$LATEST' function version for Lambda@Edge!
-
getIncludeBody
Allows a Lambda function to have read access to the body content.Only valid for "request" event types (
ORIGIN_REQUEST
orVIEWER_REQUEST
). See https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/lambda-include-body-access.htmlDefault: false
-
builder
- Returns:
- a
EdgeLambda.Builder
ofEdgeLambda
-