Interface CfnResponseHeadersPolicy.FrameOptionsProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnResponseHeadersPolicy.FrameOptionsProperty.Jsii$Proxy
- Enclosing class:
- CfnResponseHeadersPolicy
@Stability(Stable)
public static interface CfnResponseHeadersPolicy.FrameOptionsProperty
extends software.amazon.jsii.JsiiSerializable
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.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.cloudfront.*;
FrameOptionsProperty frameOptionsProperty = FrameOptionsProperty.builder()
.frameOption("frameOption")
.override(false)
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnResponseHeadersPolicy.FrameOptionsPropertystatic final classAn implementation forCfnResponseHeadersPolicy.FrameOptionsProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()The value of theX-Frame-OptionsHTTP response header.A Boolean that determines whether CloudFront overrides theX-Frame-OptionsHTTP response header received from the origin with the one specified in this response headers policy.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getFrameOption
The value of theX-Frame-OptionsHTTP response header. Valid values areDENYandSAMEORIGIN.For more information about these values, see X-Frame-Options in the MDN Web Docs.
-
getOverride
A Boolean that determines whether CloudFront overrides theX-Frame-OptionsHTTP response header received from the origin with the one specified in this response headers policy. -
builder
-