#[non_exhaustive]pub struct ResponseHeadersPolicyConfig {
pub comment: Option<String>,
pub name: String,
pub cors_config: Option<ResponseHeadersPolicyCorsConfig>,
pub security_headers_config: Option<ResponseHeadersPolicySecurityHeadersConfig>,
pub server_timing_headers_config: Option<ResponseHeadersPolicyServerTimingHeadersConfig>,
pub custom_headers_config: Option<ResponseHeadersPolicyCustomHeadersConfig>,
pub remove_headers_config: Option<ResponseHeadersPolicyRemoveHeadersConfig>,
}
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.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.comment: Option<String>
A comment to describe the response headers policy.
The comment cannot be longer than 128 characters.
name: String
A name to identify the response headers policy.
The name must be unique for response headers policies in this Amazon Web Services account.
cors_config: Option<ResponseHeadersPolicyCorsConfig>
A configuration for a set of HTTP response headers that are used for cross-origin resource sharing (CORS).
security_headers_config: Option<ResponseHeadersPolicySecurityHeadersConfig>
A configuration for a set of security-related HTTP response headers.
server_timing_headers_config: Option<ResponseHeadersPolicyServerTimingHeadersConfig>
A configuration for enabling the Server-Timing
header in HTTP responses sent from CloudFront.
custom_headers_config: Option<ResponseHeadersPolicyCustomHeadersConfig>
A configuration for a set of custom HTTP response headers.
remove_headers_config: Option<ResponseHeadersPolicyRemoveHeadersConfig>
A configuration for a set of HTTP headers to remove from the HTTP response.
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) -> &str
pub fn name(&self) -> &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() -> ResponseHeadersPolicyConfigBuilder
pub fn builder() -> ResponseHeadersPolicyConfigBuilder
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 for ResponseHeadersPolicyConfig
impl PartialEq 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 ==
.impl StructuralPartialEq for ResponseHeadersPolicyConfig
Auto Trait Implementations§
impl Freeze for ResponseHeadersPolicyConfig
impl RefUnwindSafe for ResponseHeadersPolicyConfig
impl Send for ResponseHeadersPolicyConfig
impl Sync for ResponseHeadersPolicyConfig
impl Unpin for ResponseHeadersPolicyConfig
impl UnwindSafe for ResponseHeadersPolicyConfig
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more