pub struct Builder { /* private fields */ }
Expand description
A builder for ResponseHeadersPolicyFrameOptions
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn override(self, input: bool) -> Self
pub fn override(self, input: bool) -> Self
A Boolean that determines whether CloudFront overrides the X-Frame-Options
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 X-Frame-Options
HTTP response header received from the origin with the one specified in this response headers policy.
sourcepub fn frame_option(self, input: FrameOptionsList) -> Self
pub fn frame_option(self, input: FrameOptionsList) -> Self
The value of the X-Frame-Options
HTTP response header. Valid values are DENY
and SAMEORIGIN
.
For more information about these values, see X-Frame-Options in the MDN Web Docs.
sourcepub fn set_frame_option(self, input: Option<FrameOptionsList>) -> Self
pub fn set_frame_option(self, input: Option<FrameOptionsList>) -> Self
The value of the X-Frame-Options
HTTP response header. Valid values are DENY
and SAMEORIGIN
.
For more information about these values, see X-Frame-Options in the MDN Web Docs.
sourcepub fn build(self) -> ResponseHeadersPolicyFrameOptions
pub fn build(self) -> ResponseHeadersPolicyFrameOptions
Consumes the builder and constructs a ResponseHeadersPolicyFrameOptions
.