@Generated(value="jsii-pacmak/1.73.0 (build 6faeda3)", date="2023-01-31T18:36:56.843Z") public interface BehaviorOptions extends 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
IOrigin getOrigin()
static BehaviorOptions.Builder builder()
builder
in interface AddBehaviorOptions
BehaviorOptions.Builder
of BehaviorOptions