Interface BehaviorOptions
- All Superinterfaces:
AddBehaviorOptions,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
BehaviorOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.110.0 (build 336b265)",
date="2025-04-22T23:08:08.512Z")
@Stability(Stable)
public interface BehaviorOptions
extends software.amazon.jsii.JsiiSerializable, AddBehaviorOptions
Options for creating a new behavior.
Example:
// Creates a distribution from an Application Load Balancer
Vpc vpc;
// Create an application load balancer in a VPC. 'internetFacing' can be 'false'.
ApplicationLoadBalancer alb = ApplicationLoadBalancer.Builder.create(this, "ALB")
.vpc(vpc)
.internetFacing(false)
.vpcSubnets(SubnetSelection.builder().subnetType(SubnetType.PRIVATE_ISOLATED).build())
.build();
Distribution.Builder.create(this, "myDist")
.defaultBehavior(BehaviorOptions.builder().origin(VpcOrigin.withApplicationLoadBalancer(alb)).build())
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forBehaviorOptionsstatic final classAn implementation forBehaviorOptions -
Method Summary
Modifier and TypeMethodDescriptionstatic BehaviorOptions.Builderbuilder()The origin that you want CloudFront to route requests to when they match this behavior.Methods inherited from interface software.amazon.awscdk.services.cloudfront.AddBehaviorOptions
getAllowedMethods, getCachedMethods, getCachePolicy, getCompress, getEdgeLambdas, getEnableGrpc, getFunctionAssociations, getOriginRequestPolicy, getRealtimeLogConfig, getResponseHeadersPolicy, getSmoothStreaming, getTrustedKeyGroups, getViewerProtocolPolicyMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getOrigin
The origin that you want CloudFront to route requests to when they match this behavior. -
builder
- Returns:
- a
BehaviorOptions.BuilderofBehaviorOptions
-