pub struct Builder { /* private fields */ }
Expand description
A builder for ResponseHeadersPolicySecurityHeadersConfig
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn xss_protection(self, input: ResponseHeadersPolicyXssProtection) -> Self
pub fn xss_protection(self, input: ResponseHeadersPolicyXssProtection) -> Self
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 set_xss_protection(
self,
input: Option<ResponseHeadersPolicyXssProtection>
) -> Self
pub fn set_xss_protection(
self,
input: Option<ResponseHeadersPolicyXssProtection>
) -> Self
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.
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())
}
sourcepub fn frame_options(self, input: ResponseHeadersPolicyFrameOptions) -> Self
pub fn frame_options(self, input: ResponseHeadersPolicyFrameOptions) -> Self
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 set_frame_options(
self,
input: Option<ResponseHeadersPolicyFrameOptions>
) -> Self
pub fn set_frame_options(
self,
input: Option<ResponseHeadersPolicyFrameOptions>
) -> Self
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.
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())
}
sourcepub fn referrer_policy(self, input: ResponseHeadersPolicyReferrerPolicy) -> Self
pub fn referrer_policy(self, input: ResponseHeadersPolicyReferrerPolicy) -> Self
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 set_referrer_policy(
self,
input: Option<ResponseHeadersPolicyReferrerPolicy>
) -> Self
pub fn set_referrer_policy(
self,
input: Option<ResponseHeadersPolicyReferrerPolicy>
) -> Self
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.
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())
}
sourcepub fn content_security_policy(
self,
input: ResponseHeadersPolicyContentSecurityPolicy
) -> Self
pub fn content_security_policy(
self,
input: ResponseHeadersPolicyContentSecurityPolicy
) -> Self
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 set_content_security_policy(
self,
input: Option<ResponseHeadersPolicyContentSecurityPolicy>
) -> Self
pub fn set_content_security_policy(
self,
input: Option<ResponseHeadersPolicyContentSecurityPolicy>
) -> Self
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.
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())
}
sourcepub fn content_type_options(
self,
input: ResponseHeadersPolicyContentTypeOptions
) -> Self
pub fn content_type_options(
self,
input: ResponseHeadersPolicyContentTypeOptions
) -> Self
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 set_content_type_options(
self,
input: Option<ResponseHeadersPolicyContentTypeOptions>
) -> Self
pub fn set_content_type_options(
self,
input: Option<ResponseHeadersPolicyContentTypeOptions>
) -> Self
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.
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())
}
sourcepub fn strict_transport_security(
self,
input: ResponseHeadersPolicyStrictTransportSecurity
) -> Self
pub fn strict_transport_security(
self,
input: ResponseHeadersPolicyStrictTransportSecurity
) -> Self
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.
sourcepub fn set_strict_transport_security(
self,
input: Option<ResponseHeadersPolicyStrictTransportSecurity>
) -> Self
pub fn set_strict_transport_security(
self,
input: Option<ResponseHeadersPolicyStrictTransportSecurity>
) -> Self
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.
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())
}
sourcepub fn build(self) -> ResponseHeadersPolicySecurityHeadersConfig
pub fn build(self) -> ResponseHeadersPolicySecurityHeadersConfig
Consumes the builder and constructs a 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())
}