public static interface AwsCloudFrontDistributionDefaultCacheBehavior.Builder extends SdkPojo, CopyableBuilder<AwsCloudFrontDistributionDefaultCacheBehavior.Builder,AwsCloudFrontDistributionDefaultCacheBehavior>
| Modifier and Type | Method and Description |
|---|---|
AwsCloudFrontDistributionDefaultCacheBehavior.Builder |
viewerProtocolPolicy(String viewerProtocolPolicy)
The protocol that viewers can use to access the files in an origin.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildAwsCloudFrontDistributionDefaultCacheBehavior.Builder viewerProtocolPolicy(String 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).
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).
Copyright © 2023. All rights reserved.