Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Documentation
data AwsCloudFrontDistributionCacheBehavior Source #
Information about a cache behavior for the distribution.
See: newAwsCloudFrontDistributionCacheBehavior
smart constructor.
AwsCloudFrontDistributionCacheBehavior' | |
|
Instances
newAwsCloudFrontDistributionCacheBehavior :: AwsCloudFrontDistributionCacheBehavior Source #
Create a value of AwsCloudFrontDistributionCacheBehavior
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:viewerProtocolPolicy:AwsCloudFrontDistributionCacheBehavior'
, awsCloudFrontDistributionCacheBehavior_viewerProtocolPolicy
- 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).
awsCloudFrontDistributionCacheBehavior_viewerProtocolPolicy :: Lens' AwsCloudFrontDistributionCacheBehavior (Maybe Text) Source #
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).