AWS SDK for .NET Documentation
ViewerProtocolPolicy Property
AmazonAmazon.CloudFront.ModelDefaultCacheBehaviorViewerProtocolPolicy Did this page help you?   Yes   No    Tell us about it...
Gets and sets the property ViewerProtocolPolicy. Use this element to specify the protocol that users can use to access the files in the origin specified by TargetOriginId when a request matches the path pattern in PathPattern. If you want CloudFront to allow end users to use any available protocol, specify allow-all. If you want CloudFront to require HTTPS, specify https. If you want CloudFront to respond to an HTTP request with an HTTP status code of 301 (Moved Permanently) and the HTTPS URL, specify redirect-to-https. The viewer then resubmits the request using the HTTPS URL.
Declaration Syntax
C#
public string ViewerProtocolPolicy { get; set; }

Assembly: AWSSDK (Module: AWSSDK) Version: 1.5.60.0 (1.5.60.0)