#[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.
Implementations§
source§impl 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.
sourcepub fn remove_headers_config(
&self
) -> Option<&ResponseHeadersPolicyRemoveHeadersConfig>
pub fn remove_headers_config(
&self
) -> Option<&ResponseHeadersPolicyRemoveHeadersConfig>
A configuration for a set of HTTP headers to remove from the HTTP response.
source§impl ResponseHeadersPolicyConfig
impl ResponseHeadersPolicyConfig
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture ResponseHeadersPolicyConfig
.
Trait Implementations§
source§impl Clone for ResponseHeadersPolicyConfig
impl Clone for ResponseHeadersPolicyConfig
source§fn clone(&self) -> ResponseHeadersPolicyConfig
fn clone(&self) -> ResponseHeadersPolicyConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ResponseHeadersPolicyConfig
impl Debug for ResponseHeadersPolicyConfig
source§impl PartialEq<ResponseHeadersPolicyConfig> for ResponseHeadersPolicyConfig
impl PartialEq<ResponseHeadersPolicyConfig> for ResponseHeadersPolicyConfig
source§fn eq(&self, other: &ResponseHeadersPolicyConfig) -> bool
fn eq(&self, other: &ResponseHeadersPolicyConfig) -> bool
self
and other
values to be equal, and is used
by ==
.