@Generated(value="jsii-pacmak/1.50.0 (build d1830a4)", date="2022-01-11T17:58:48.819Z") @Stability(value=Stable) public interface LambdaFunctionAssociation extends software.amazon.jsii.JsiiSerializable
// 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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
LambdaFunctionAssociation.Builder
A builder for
LambdaFunctionAssociation |
static class |
LambdaFunctionAssociation.Jsii$Proxy
An implementation for
LambdaFunctionAssociation |
| Modifier and Type | Method and Description |
|---|---|
static LambdaFunctionAssociation.Builder |
builder() |
LambdaEdgeEventType |
getEventType()
The lambda event type defines at which event the lambda is called during the request lifecycle.
|
default Boolean |
getIncludeBody()
Allows a Lambda function to have read access to the body content.
|
IVersion |
getLambdaFunction()
A version of the lambda to associate.
|
@Stability(value=Stable) @NotNull LambdaEdgeEventType getEventType()
@Stability(value=Stable) @NotNull IVersion getLambdaFunction()
@Stability(value=Stable) @Nullable default Boolean getIncludeBody()
Only valid for "request" event types (ORIGIN_REQUEST or VIEWER_REQUEST).
See https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/lambda-include-body-access.html
Default: false
@Stability(value=Stable) static LambdaFunctionAssociation.Builder builder()
LambdaFunctionAssociation.Builder of LambdaFunctionAssociationCopyright © 2022. All rights reserved.