Interface IBehaviorOptions
Options for creating a new behavior.
Inherited Members
Namespace: Amazon.CDK.AWS.CloudFront
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IBehaviorOptions : IAddBehaviorOptions
Syntax (vb)
Public Interface IBehaviorOptions
Inherits IAddBehaviorOptions
Remarks
ExampleMetadata: infused
Examples
// Creates a distribution from an Application Load Balancer
Vpc vpc;
// Create an application load balancer in a VPC. 'internetFacing' can be 'false'.
var alb = new ApplicationLoadBalancer(this, "ALB", new ApplicationLoadBalancerProps {
Vpc = vpc,
InternetFacing = false,
VpcSubnets = new SubnetSelection { SubnetType = SubnetType.PRIVATE_ISOLATED }
});
new Distribution(this, "myDist", new DistributionProps {
DefaultBehavior = new BehaviorOptions { Origin = VpcOrigin.WithApplicationLoadBalancer(alb) }
});
Synopsis
Properties
Origin | The origin that you want CloudFront to route requests to when they match this behavior. |
Properties
Origin
The origin that you want CloudFront to route requests to when they match this behavior.
IOrigin Origin { get; }
Property Value