@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:37.044Z") @Stability(value=Stable) public interface BehaviorOptions extends software.amazon.jsii.JsiiSerializable, AddBehaviorOptions
Example:
// Adding an existing Lambda@Edge function created in a different stack
// to a CloudFront distribution.
Bucket s3Bucket;
IVersion functionVersion = Version.fromVersionArn(this, "Version", "arn:aws:lambda:us-east-1:123456789012:function:functionName:1");
Distribution.Builder.create(this, "distro")
.defaultBehavior(BehaviorOptions.builder()
.origin(new S3Origin(s3Bucket))
.edgeLambdas(List.of(EdgeLambda.builder()
.functionVersion(functionVersion)
.eventType(LambdaEdgeEventType.VIEWER_REQUEST)
.build()))
.build())
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
BehaviorOptions.Builder
A builder for
BehaviorOptions |
static class |
BehaviorOptions.Jsii$Proxy
An implementation for
BehaviorOptions |
| Modifier and Type | Method and Description |
|---|---|
static BehaviorOptions.Builder |
builder() |
IOrigin |
getOrigin()
The origin that you want CloudFront to route requests to when they match this behavior.
|
getAllowedMethods, getCachedMethods, getCachePolicy, getCompress, getEdgeLambdas, getFunctionAssociations, getOriginRequestPolicy, getResponseHeadersPolicy, getSmoothStreaming, getTrustedKeyGroups, getViewerProtocolPolicy@Stability(value=Stable) @NotNull IOrigin getOrigin()
@Stability(value=Stable) static BehaviorOptions.Builder builder()
builder in interface AddBehaviorOptionsBehaviorOptions.Builder of BehaviorOptionsCopyright © 2022. All rights reserved.