Struct aws_sdk_cloudfront::types::builders::ResponseHeadersPolicyContentSecurityPolicyBuilder
source · #[non_exhaustive]pub struct ResponseHeadersPolicyContentSecurityPolicyBuilder { /* private fields */ }
Expand description
A builder for ResponseHeadersPolicyContentSecurityPolicy
.
Implementations§
source§impl ResponseHeadersPolicyContentSecurityPolicyBuilder
impl ResponseHeadersPolicyContentSecurityPolicyBuilder
sourcepub fn override(self, input: bool) -> Self
pub fn override(self, input: bool) -> Self
A Boolean that determines whether CloudFront overrides the Content-Security-Policy
HTTP response header received from the origin with the one specified in this response headers policy.
sourcepub fn set_override(self, input: Option<bool>) -> Self
pub fn set_override(self, input: Option<bool>) -> Self
A Boolean that determines whether CloudFront overrides the Content-Security-Policy
HTTP response header received from the origin with the one specified in this response headers policy.
sourcepub fn get_override(&self) -> &Option<bool>
pub fn get_override(&self) -> &Option<bool>
A Boolean that determines whether CloudFront overrides the Content-Security-Policy
HTTP response header received from the origin with the one specified in this response headers policy.
sourcepub fn content_security_policy(self, input: impl Into<String>) -> Self
pub fn content_security_policy(self, input: impl Into<String>) -> Self
The policy directives and their values that CloudFront includes as values for the Content-Security-Policy
HTTP response header.
sourcepub fn set_content_security_policy(self, input: Option<String>) -> Self
pub fn set_content_security_policy(self, input: Option<String>) -> Self
The policy directives and their values that CloudFront includes as values for the Content-Security-Policy
HTTP response header.
sourcepub fn get_content_security_policy(&self) -> &Option<String>
pub fn get_content_security_policy(&self) -> &Option<String>
The policy directives and their values that CloudFront includes as values for the Content-Security-Policy
HTTP response header.
sourcepub fn build(
self
) -> Result<ResponseHeadersPolicyContentSecurityPolicy, BuildError>
pub fn build( self ) -> Result<ResponseHeadersPolicyContentSecurityPolicy, BuildError>
Consumes the builder and constructs a ResponseHeadersPolicyContentSecurityPolicy
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for ResponseHeadersPolicyContentSecurityPolicyBuilder
impl Clone for ResponseHeadersPolicyContentSecurityPolicyBuilder
source§fn clone(&self) -> ResponseHeadersPolicyContentSecurityPolicyBuilder
fn clone(&self) -> ResponseHeadersPolicyContentSecurityPolicyBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for ResponseHeadersPolicyContentSecurityPolicyBuilder
impl Default for ResponseHeadersPolicyContentSecurityPolicyBuilder
source§fn default() -> ResponseHeadersPolicyContentSecurityPolicyBuilder
fn default() -> ResponseHeadersPolicyContentSecurityPolicyBuilder
source§impl PartialEq for ResponseHeadersPolicyContentSecurityPolicyBuilder
impl PartialEq for ResponseHeadersPolicyContentSecurityPolicyBuilder
source§fn eq(&self, other: &ResponseHeadersPolicyContentSecurityPolicyBuilder) -> bool
fn eq(&self, other: &ResponseHeadersPolicyContentSecurityPolicyBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ResponseHeadersPolicyContentSecurityPolicyBuilder
Auto Trait Implementations§
impl Freeze for ResponseHeadersPolicyContentSecurityPolicyBuilder
impl RefUnwindSafe for ResponseHeadersPolicyContentSecurityPolicyBuilder
impl Send for ResponseHeadersPolicyContentSecurityPolicyBuilder
impl Sync for ResponseHeadersPolicyContentSecurityPolicyBuilder
impl Unpin for ResponseHeadersPolicyContentSecurityPolicyBuilder
impl UnwindSafe for ResponseHeadersPolicyContentSecurityPolicyBuilder
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