You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.
Class: Aws::SecurityHub::Types::AwsCloudFrontDistributionCacheBehavior
- Inherits:
-
Struct
- Object
- Struct
- Aws::SecurityHub::Types::AwsCloudFrontDistributionCacheBehavior
- Defined in:
- (unknown)
Overview
When passing AwsCloudFrontDistributionCacheBehavior as input to an Aws::Client method, you can use a vanilla Hash:
{
viewer_protocol_policy: "NonEmptyString",
}
Information about a cache behavior for the distribution.
Instance Attribute Summary collapse
-
#viewer_protocol_policy ⇒ String
The protocol that viewers can use to access the files in an origin.
Instance Attribute Details
#viewer_protocol_policy ⇒ String
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).