pub struct AwsCloudFrontDistributionCacheBehavior {
pub viewer_protocol_policy: Option<String>,
}
Expand description
Information about a cache behavior for the distribution.
Fields§
§viewer_protocol_policy: Option<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).
Trait Implementations§
Source§impl Clone for AwsCloudFrontDistributionCacheBehavior
impl Clone for AwsCloudFrontDistributionCacheBehavior
Source§fn clone(&self) -> AwsCloudFrontDistributionCacheBehavior
fn clone(&self) -> AwsCloudFrontDistributionCacheBehavior
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for AwsCloudFrontDistributionCacheBehavior
impl Default for AwsCloudFrontDistributionCacheBehavior
Source§fn default() -> AwsCloudFrontDistributionCacheBehavior
fn default() -> AwsCloudFrontDistributionCacheBehavior
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AwsCloudFrontDistributionCacheBehavior
impl<'de> Deserialize<'de> for AwsCloudFrontDistributionCacheBehavior
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for AwsCloudFrontDistributionCacheBehavior
impl PartialEq for AwsCloudFrontDistributionCacheBehavior
Source§fn eq(&self, other: &AwsCloudFrontDistributionCacheBehavior) -> bool
fn eq(&self, other: &AwsCloudFrontDistributionCacheBehavior) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for AwsCloudFrontDistributionCacheBehavior
Auto Trait Implementations§
impl Freeze for AwsCloudFrontDistributionCacheBehavior
impl RefUnwindSafe for AwsCloudFrontDistributionCacheBehavior
impl Send for AwsCloudFrontDistributionCacheBehavior
impl Sync for AwsCloudFrontDistributionCacheBehavior
impl Unpin for AwsCloudFrontDistributionCacheBehavior
impl UnwindSafe for AwsCloudFrontDistributionCacheBehavior
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more