

# AwsCloudFrontDistributionDefaultCacheBehavior
<a name="API_AwsCloudFrontDistributionDefaultCacheBehavior"></a>

Contains information about the default cache configuration for the CloudFront distribution.

## Contents
<a name="API_AwsCloudFrontDistributionDefaultCacheBehavior_Contents"></a>

 ** ViewerProtocolPolicy **   <a name="securityhub-Type-AwsCloudFrontDistributionDefaultCacheBehavior-ViewerProtocolPolicy"></a>
The protocol that viewers can use to access the files in an origin. You can specify the following options:  
+  `allow-all` - Viewers can use HTTP or HTTPS.
+  `redirect-to-https` - CloudFront responds to HTTP requests with an HTTP status code of 301 (Moved Permanently) and the HTTPS URL. The viewer then uses the new URL to resubmit.
+  `https-only` - CloudFront responds to HTTP request with an HTTP status code of 403 (Forbidden).
Type: String  
Pattern: `.*\S.*`   
Required: No

## See Also
<a name="API_AwsCloudFrontDistributionDefaultCacheBehavior_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/securityhub-2018-10-26/AwsCloudFrontDistributionDefaultCacheBehavior) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/securityhub-2018-10-26/AwsCloudFrontDistributionDefaultCacheBehavior) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/securityhub-2018-10-26/AwsCloudFrontDistributionDefaultCacheBehavior) 