#[non_exhaustive]pub struct ResponseHeadersPolicyConfig {
pub comment: Option<String>,
pub name: Option<String>,
pub cors_config: Option<ResponseHeadersPolicyCorsConfig>,
pub security_headers_config: Option<ResponseHeadersPolicySecurityHeadersConfig>,
pub custom_headers_config: Option<ResponseHeadersPolicyCustomHeadersConfig>,
}
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.
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: Option<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.
custom_headers_config: Option<ResponseHeadersPolicyCustomHeadersConfig>
A configuration for a set of custom HTTP response headers.
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 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
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ResponseHeadersPolicyConfig
impl Debug for ResponseHeadersPolicyConfig
sourceimpl PartialEq<ResponseHeadersPolicyConfig> for ResponseHeadersPolicyConfig
impl PartialEq<ResponseHeadersPolicyConfig> for ResponseHeadersPolicyConfig
sourcefn eq(&self, other: &ResponseHeadersPolicyConfig) -> bool
fn eq(&self, other: &ResponseHeadersPolicyConfig) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ResponseHeadersPolicyConfig) -> bool
fn ne(&self, other: &ResponseHeadersPolicyConfig) -> bool
This method tests for !=
.
impl StructuralPartialEq for ResponseHeadersPolicyConfig
Auto Trait Implementations
impl RefUnwindSafe for ResponseHeadersPolicyConfig
impl Send for ResponseHeadersPolicyConfig
impl Sync for ResponseHeadersPolicyConfig
impl Unpin for ResponseHeadersPolicyConfig
impl UnwindSafe for ResponseHeadersPolicyConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more