@Stability(value=Experimental) public static final class EdgeLambda.Builder extends Object implements software.amazon.jsii.Builder<EdgeLambda>
EdgeLambda| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
EdgeLambda |
build()
Builds the configured instance.
|
EdgeLambda.Builder |
eventType(LambdaEdgeEventType eventType)
Sets the value of
EdgeLambda.getEventType() |
EdgeLambda.Builder |
functionVersion(IVersion functionVersion)
Sets the value of
EdgeLambda.getFunctionVersion() |
EdgeLambda.Builder |
includeBody(Boolean includeBody)
Sets the value of
EdgeLambda.getIncludeBody() |
@Stability(value=Experimental) public EdgeLambda.Builder eventType(LambdaEdgeEventType eventType)
EdgeLambda.getEventType()eventType - The type of event in response to which should the function be invoked. This parameter is required.this@Stability(value=Experimental) public EdgeLambda.Builder functionVersion(IVersion functionVersion)
EdgeLambda.getFunctionVersion()functionVersion - The version of the Lambda function that will be invoked. This parameter is required.
Note: it's not possible to use the '$LATEST' function version for Lambda@Edge!this@Stability(value=Experimental) public EdgeLambda.Builder includeBody(Boolean includeBody)
EdgeLambda.getIncludeBody()includeBody - Allows a Lambda function to have read access to the body content.
Only valid for "request" event types (ORIGIN_REQUEST or VIEWER_REQUEST).
See https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/lambda-include-body-access.htmlthis@Stability(value=Experimental) public EdgeLambda build()
build in interface software.amazon.jsii.Builder<EdgeLambda>EdgeLambdaNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.