OriginProtocolPolicy
- class aws_cdk.aws_cloudfront.OriginProtocolPolicy(value)
Bases:
Enum
Defines what protocols CloudFront will use to connect to an origin.
- ExampleMetadata:
infused
Example:
import aws_cdk.aws_elasticloadbalancingv2 as elbv2 # load_balancer: elbv2.ApplicationLoadBalancer origin = origins.LoadBalancerV2Origin(load_balancer, connection_attempts=3, connection_timeout=Duration.seconds(5), read_timeout=Duration.seconds(45), keepalive_timeout=Duration.seconds(45), protocol_policy=cloudfront.OriginProtocolPolicy.MATCH_VIEWER )
Attributes
- HTTPS_ONLY
Connect on HTTPS only.
- HTTP_ONLY
Connect on HTTP only.
- MATCH_VIEWER
Connect with the same protocol as the viewer.