pub struct Builder { /* private fields */ }
Expand description
A builder for AwsCloudFrontDistributionCacheBehavior
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn viewer_protocol_policy(self, input: impl Into<String>) -> Self
pub fn viewer_protocol_policy(self, input: impl Into<String>) -> Self
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).
sourcepub fn set_viewer_protocol_policy(self, input: Option<String>) -> Self
pub fn set_viewer_protocol_policy(self, input: Option<String>) -> Self
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).
sourcepub fn build(self) -> AwsCloudFrontDistributionCacheBehavior
pub fn build(self) -> AwsCloudFrontDistributionCacheBehavior
Consumes the builder and constructs a AwsCloudFrontDistributionCacheBehavior
.