Interface CfnResponseHeadersPolicy.StrictTransportSecurityProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnResponseHeadersPolicy.StrictTransportSecurityProperty.Jsii$Proxy
- Enclosing class:
CfnResponseHeadersPolicy
@Stability(Stable)
public static interface CfnResponseHeadersPolicy.StrictTransportSecurityProperty
extends software.amazon.jsii.JsiiSerializable
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.
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.*; StrictTransportSecurityProperty strictTransportSecurityProperty = StrictTransportSecurityProperty.builder() .accessControlMaxAgeSec(123) .override(false) // the properties below are optional .includeSubdomains(false) .preload(false) .build();
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnResponseHeadersPolicy.StrictTransportSecurityProperty
static final class
An implementation forCfnResponseHeadersPolicy.StrictTransportSecurityProperty
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
A number that CloudFront uses as the value for themax-age
directive in theStrict-Transport-Security
HTTP response header.default Object
A Boolean that determines whether CloudFront includes theincludeSubDomains
directive in theStrict-Transport-Security
HTTP response header.A Boolean that determines whether CloudFront overrides theStrict-Transport-Security
HTTP response header received from the origin with the one specified in this response headers policy.default Object
A Boolean that determines whether CloudFront includes thepreload
directive in theStrict-Transport-Security
HTTP response header.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAccessControlMaxAgeSec
A number that CloudFront uses as the value for themax-age
directive in theStrict-Transport-Security
HTTP response header.- See Also:
-
getOverride
A Boolean that determines whether CloudFront overrides theStrict-Transport-Security
HTTP response header received from the origin with the one specified in this response headers policy.- See Also:
-
getIncludeSubdomains
A Boolean that determines whether CloudFront includes theincludeSubDomains
directive in theStrict-Transport-Security
HTTP response header.- See Also:
-
getPreload
A Boolean that determines whether CloudFront includes thepreload
directive in theStrict-Transport-Security
HTTP response header.- See Also:
-
builder
@Stability(Stable) static CfnResponseHeadersPolicy.StrictTransportSecurityProperty.Builder builder()
-