Struct aws_sdk_cloudfront::model::ResponseHeadersPolicy
source · #[non_exhaustive]pub struct ResponseHeadersPolicy { /* private fields */ }
Expand description
A response headers policy.
A response headers policy contains information about a set of HTTP response headers.
After you create a response headers policy, you can use its ID to attach it to one or more cache behaviors in a CloudFront distribution. When it's attached to a cache behavior, the response headers policy affects the HTTP headers that CloudFront includes in HTTP responses to requests that match the cache behavior. CloudFront adds or removes response headers according to the configuration of the response headers policy.
For more information, see Adding or removing HTTP headers in CloudFront responses in the Amazon CloudFront Developer Guide.
Implementations§
source§impl ResponseHeadersPolicy
impl ResponseHeadersPolicy
sourcepub fn last_modified_time(&self) -> Option<&DateTime>
pub fn last_modified_time(&self) -> Option<&DateTime>
The date and time when the response headers policy was last modified.
sourcepub fn response_headers_policy_config(
&self
) -> Option<&ResponseHeadersPolicyConfig>
pub fn response_headers_policy_config(
&self
) -> Option<&ResponseHeadersPolicyConfig>
A response headers policy configuration.
source§impl ResponseHeadersPolicy
impl ResponseHeadersPolicy
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture ResponseHeadersPolicy
.
Trait Implementations§
source§impl Clone for ResponseHeadersPolicy
impl Clone for ResponseHeadersPolicy
source§fn clone(&self) -> ResponseHeadersPolicy
fn clone(&self) -> ResponseHeadersPolicy
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ResponseHeadersPolicy
impl Debug for ResponseHeadersPolicy
source§impl PartialEq<ResponseHeadersPolicy> for ResponseHeadersPolicy
impl PartialEq<ResponseHeadersPolicy> for ResponseHeadersPolicy
source§fn eq(&self, other: &ResponseHeadersPolicy) -> bool
fn eq(&self, other: &ResponseHeadersPolicy) -> bool
self
and other
values to be equal, and is used
by ==
.