#[non_exhaustive]pub struct ResponseHeadersPolicySecurityHeadersConfig { /* private fields */ }
Expand description
A configuration for a set of security-related HTTP response headers. CloudFront adds these headers to HTTP responses that it sends for requests that match a cache behavior associated with this response headers policy.
Implementations§
source§impl ResponseHeadersPolicySecurityHeadersConfig
impl ResponseHeadersPolicySecurityHeadersConfig
sourcepub fn xss_protection(&self) -> Option<&ResponseHeadersPolicyXssProtection>
pub fn xss_protection(&self) -> Option<&ResponseHeadersPolicyXssProtection>
Determines whether CloudFront includes the X-XSS-Protection
HTTP response header and the header’s value.
For more information about the X-XSS-Protection
HTTP response header, see X-XSS-Protection in the MDN Web Docs.
sourcepub fn frame_options(&self) -> Option<&ResponseHeadersPolicyFrameOptions>
pub fn frame_options(&self) -> Option<&ResponseHeadersPolicyFrameOptions>
Determines whether CloudFront includes the X-Frame-Options
HTTP response header and the header’s value.
For more information about the X-Frame-Options
HTTP response header, see X-Frame-Options in the MDN Web Docs.
sourcepub fn referrer_policy(&self) -> Option<&ResponseHeadersPolicyReferrerPolicy>
pub fn referrer_policy(&self) -> Option<&ResponseHeadersPolicyReferrerPolicy>
Determines whether CloudFront includes the Referrer-Policy
HTTP response header and the header’s value.
For more information about the Referrer-Policy
HTTP response header, see Referrer-Policy in the MDN Web Docs.
sourcepub fn content_security_policy(
&self
) -> Option<&ResponseHeadersPolicyContentSecurityPolicy>
pub fn content_security_policy(
&self
) -> Option<&ResponseHeadersPolicyContentSecurityPolicy>
The policy directives and their values that CloudFront includes as values for the Content-Security-Policy
HTTP response header.
For more information about the Content-Security-Policy
HTTP response header, see Content-Security-Policy in the MDN Web Docs.
sourcepub fn content_type_options(
&self
) -> Option<&ResponseHeadersPolicyContentTypeOptions>
pub fn content_type_options(
&self
) -> Option<&ResponseHeadersPolicyContentTypeOptions>
Determines whether CloudFront includes the X-Content-Type-Options
HTTP response header with its value set to nosniff
.
For more information about the X-Content-Type-Options
HTTP response header, see X-Content-Type-Options in the MDN Web Docs.
sourcepub fn strict_transport_security(
&self
) -> Option<&ResponseHeadersPolicyStrictTransportSecurity>
pub fn strict_transport_security(
&self
) -> Option<&ResponseHeadersPolicyStrictTransportSecurity>
Determines whether CloudFront includes the Strict-Transport-Security
HTTP response header and the header’s value.
For more information about the Strict-Transport-Security
HTTP response header, see Strict-Transport-Security in the MDN Web Docs.
source§impl ResponseHeadersPolicySecurityHeadersConfig
impl ResponseHeadersPolicySecurityHeadersConfig
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture ResponseHeadersPolicySecurityHeadersConfig
.
Examples found in repository?
10601 10602 10603 10604 10605 10606 10607 10608 10609 10610 10611 10612 10613 10614 10615 10616 10617 10618 10619 10620 10621 10622 10623 10624 10625 10626 10627 10628 10629 10630 10631 10632 10633 10634 10635 10636 10637 10638 10639 10640 10641 10642 10643 10644 10645 10646 10647 10648 10649 10650 10651 10652 10653 10654 10655 10656 10657 10658 10659 10660 10661 10662 10663 10664 10665 10666 10667 10668 10669 10670 10671 10672 10673 10674 10675
pub fn deser_structure_crate_model_response_headers_policy_security_headers_config(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<
crate::model::ResponseHeadersPolicySecurityHeadersConfig,
aws_smithy_xml::decode::XmlDecodeError,
> {
#[allow(unused_mut)]
let mut builder = crate::model::ResponseHeadersPolicySecurityHeadersConfig::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("XSSProtection") /* XSSProtection com.amazonaws.cloudfront#ResponseHeadersPolicySecurityHeadersConfig$XSSProtection */ => {
let var_425 =
Some(
crate::xml_deser::deser_structure_crate_model_response_headers_policy_xss_protection(&mut tag)
?
)
;
builder = builder.set_xss_protection(var_425);
}
,
s if s.matches("FrameOptions") /* FrameOptions com.amazonaws.cloudfront#ResponseHeadersPolicySecurityHeadersConfig$FrameOptions */ => {
let var_426 =
Some(
crate::xml_deser::deser_structure_crate_model_response_headers_policy_frame_options(&mut tag)
?
)
;
builder = builder.set_frame_options(var_426);
}
,
s if s.matches("ReferrerPolicy") /* ReferrerPolicy com.amazonaws.cloudfront#ResponseHeadersPolicySecurityHeadersConfig$ReferrerPolicy */ => {
let var_427 =
Some(
crate::xml_deser::deser_structure_crate_model_response_headers_policy_referrer_policy(&mut tag)
?
)
;
builder = builder.set_referrer_policy(var_427);
}
,
s if s.matches("ContentSecurityPolicy") /* ContentSecurityPolicy com.amazonaws.cloudfront#ResponseHeadersPolicySecurityHeadersConfig$ContentSecurityPolicy */ => {
let var_428 =
Some(
crate::xml_deser::deser_structure_crate_model_response_headers_policy_content_security_policy(&mut tag)
?
)
;
builder = builder.set_content_security_policy(var_428);
}
,
s if s.matches("ContentTypeOptions") /* ContentTypeOptions com.amazonaws.cloudfront#ResponseHeadersPolicySecurityHeadersConfig$ContentTypeOptions */ => {
let var_429 =
Some(
crate::xml_deser::deser_structure_crate_model_response_headers_policy_content_type_options(&mut tag)
?
)
;
builder = builder.set_content_type_options(var_429);
}
,
s if s.matches("StrictTransportSecurity") /* StrictTransportSecurity com.amazonaws.cloudfront#ResponseHeadersPolicySecurityHeadersConfig$StrictTransportSecurity */ => {
let var_430 =
Some(
crate::xml_deser::deser_structure_crate_model_response_headers_policy_strict_transport_security(&mut tag)
?
)
;
builder = builder.set_strict_transport_security(var_430);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for ResponseHeadersPolicySecurityHeadersConfig
impl Clone for ResponseHeadersPolicySecurityHeadersConfig
source§fn clone(&self) -> ResponseHeadersPolicySecurityHeadersConfig
fn clone(&self) -> ResponseHeadersPolicySecurityHeadersConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more