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 and their values.
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, CloudFront adds the headers in the policy to HTTP responses that it sends for requests that match the cache behavior.
For more information, see Adding HTTP headers to CloudFront responses in the Amazon CloudFront Developer Guide.
Implementations
sourceimpl 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.
A response headers policy contains information about a set of HTTP response headers and their values. CloudFront adds the headers in the policy to HTTP responses that it sends for requests that match a cache behavior that’s associated with the policy.
sourceimpl ResponseHeadersPolicy
impl ResponseHeadersPolicy
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture ResponseHeadersPolicy
.
Trait Implementations
sourceimpl Clone for ResponseHeadersPolicy
impl Clone for ResponseHeadersPolicy
sourcefn clone(&self) -> ResponseHeadersPolicy
fn clone(&self) -> ResponseHeadersPolicy
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more