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
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnResponseHeadersPolicy.FrameOptionsProperty
static final class
An implementation forCfnResponseHeadersPolicy.FrameOptionsProperty
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
The value of theX-Frame-Options
HTTP response header.A Boolean that determines whether CloudFront overrides theX-Frame-Options
HTTP 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-Options
HTTP response header. Valid values areDENY
andSAMEORIGIN
.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-Options
HTTP response header received from the origin with the one specified in this response headers policy. -
builder
-