Struct aws_sdk_cloudfront::types::ResponseHeadersPolicy
source · #[non_exhaustive]pub struct ResponseHeadersPolicy {
pub id: String,
pub last_modified_time: DateTime,
pub response_headers_policy_config: Option<ResponseHeadersPolicyConfig>,
}
Expand description
A response headers policy.
A response headers policy contains information about a set of HTTP response headers.
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, the response headers policy affects the HTTP headers that CloudFront includes in HTTP responses to requests that match the cache behavior. CloudFront adds or removes response headers according to the configuration of the response headers policy.
For more information, see Adding or removing HTTP headers in CloudFront responses in the Amazon CloudFront Developer Guide.
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.id: String
The identifier for the response headers policy.
last_modified_time: DateTime
The date and time when the response headers policy was last modified.
response_headers_policy_config: Option<ResponseHeadersPolicyConfig>
A response headers policy configuration.
Implementations§
source§impl ResponseHeadersPolicy
impl ResponseHeadersPolicy
sourcepub fn last_modified_time(&self) -> &DateTime
pub fn last_modified_time(&self) -> &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.
source§impl ResponseHeadersPolicy
impl ResponseHeadersPolicy
sourcepub fn builder() -> ResponseHeadersPolicyBuilder
pub fn builder() -> ResponseHeadersPolicyBuilder
Creates a new builder-style object to manufacture ResponseHeadersPolicy
.
Trait Implementations§
source§impl Clone for ResponseHeadersPolicy
impl Clone for ResponseHeadersPolicy
source§fn clone(&self) -> ResponseHeadersPolicy
fn clone(&self) -> ResponseHeadersPolicy
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ResponseHeadersPolicy
impl Debug for ResponseHeadersPolicy
source§impl PartialEq for ResponseHeadersPolicy
impl PartialEq for ResponseHeadersPolicy
source§fn eq(&self, other: &ResponseHeadersPolicy) -> bool
fn eq(&self, other: &ResponseHeadersPolicy) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ResponseHeadersPolicy
Auto Trait Implementations§
impl Freeze for ResponseHeadersPolicy
impl RefUnwindSafe for ResponseHeadersPolicy
impl Send for ResponseHeadersPolicy
impl Sync for ResponseHeadersPolicy
impl Unpin for ResponseHeadersPolicy
impl UnwindSafe for ResponseHeadersPolicy
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