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 ==
.