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 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 build(self) -> ResponseHeadersPolicyContentSecurityPolicy
pub fn build(self) -> ResponseHeadersPolicyContentSecurityPolicy
Consumes the builder and constructs a ResponseHeadersPolicyContentSecurityPolicy
.
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<ResponseHeadersPolicyContentSecurityPolicyBuilder> for ResponseHeadersPolicyContentSecurityPolicyBuilder
impl PartialEq<ResponseHeadersPolicyContentSecurityPolicyBuilder> 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 ==
.