#[non_exhaustive]pub struct ResponseHeadersPolicyConfig { /* private fields */ }
Expand description
A response headers policy configuration.
A response headers policy configuration contains metadata about the response headers policy, and configurations for sets 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 associated with the policy.
Implementations
sourceimpl ResponseHeadersPolicyConfig
impl ResponseHeadersPolicyConfig
sourcepub fn comment(&self) -> Option<&str>
pub fn comment(&self) -> Option<&str>
A comment to describe the response headers policy.
The comment cannot be longer than 128 characters.
sourcepub fn name(&self) -> Option<&str>
pub fn name(&self) -> Option<&str>
A name to identify the response headers policy.
The name must be unique for response headers policies in this Amazon Web Services account.
sourcepub fn cors_config(&self) -> Option<&ResponseHeadersPolicyCorsConfig>
pub fn cors_config(&self) -> Option<&ResponseHeadersPolicyCorsConfig>
A configuration for a set of HTTP response headers that are used for cross-origin resource sharing (CORS).
sourcepub fn security_headers_config(
&self
) -> Option<&ResponseHeadersPolicySecurityHeadersConfig>
pub fn security_headers_config(
&self
) -> Option<&ResponseHeadersPolicySecurityHeadersConfig>
A configuration for a set of security-related HTTP response headers.
sourcepub fn server_timing_headers_config(
&self
) -> Option<&ResponseHeadersPolicyServerTimingHeadersConfig>
pub fn server_timing_headers_config(
&self
) -> Option<&ResponseHeadersPolicyServerTimingHeadersConfig>
A configuration for enabling the Server-Timing
header in HTTP responses sent from CloudFront.
sourcepub fn custom_headers_config(
&self
) -> Option<&ResponseHeadersPolicyCustomHeadersConfig>
pub fn custom_headers_config(
&self
) -> Option<&ResponseHeadersPolicyCustomHeadersConfig>
A configuration for a set of custom HTTP response headers.
sourceimpl ResponseHeadersPolicyConfig
impl ResponseHeadersPolicyConfig
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture ResponseHeadersPolicyConfig
.
Trait Implementations
sourceimpl Clone for ResponseHeadersPolicyConfig
impl Clone for ResponseHeadersPolicyConfig
sourcefn clone(&self) -> ResponseHeadersPolicyConfig
fn clone(&self) -> ResponseHeadersPolicyConfig
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more