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 |
Synopsis
- data AwsCloudFrontDistributionDefaultCacheBehavior = AwsCloudFrontDistributionDefaultCacheBehavior' {}
- newAwsCloudFrontDistributionDefaultCacheBehavior :: AwsCloudFrontDistributionDefaultCacheBehavior
- awsCloudFrontDistributionDefaultCacheBehavior_viewerProtocolPolicy :: Lens' AwsCloudFrontDistributionDefaultCacheBehavior (Maybe Text)
Documentation
data AwsCloudFrontDistributionDefaultCacheBehavior Source #
Contains information about the default cache configuration for the distribution.
See: newAwsCloudFrontDistributionDefaultCacheBehavior
smart constructor.
AwsCloudFrontDistributionDefaultCacheBehavior' | |
|
Instances
newAwsCloudFrontDistributionDefaultCacheBehavior :: AwsCloudFrontDistributionDefaultCacheBehavior Source #
Create a value of AwsCloudFrontDistributionDefaultCacheBehavior
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:AwsCloudFrontDistributionDefaultCacheBehavior'
, awsCloudFrontDistributionDefaultCacheBehavior_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).
awsCloudFrontDistributionDefaultCacheBehavior_viewerProtocolPolicy :: Lens' AwsCloudFrontDistributionDefaultCacheBehavior (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).