originProtocolPolicy property
Specifies the protocol (HTTP or HTTPS) that CloudFront uses to connect to the origin. Valid values are:
-
http-only– CloudFront always uses HTTP to connect to the origin. -
match-viewer– CloudFront connects to the origin using the same protocol that the viewer used to connect to CloudFront. -
https-only– CloudFront always uses HTTPS to connect to the origin.
Implementation
final OriginProtocolPolicy originProtocolPolicy;