@Stability(value=Stable)
public static interface CfnResponseHeadersPolicy.StrictTransportSecurityProperty
extends software.amazon.jsii.JsiiSerializable
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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnResponseHeadersPolicy.StrictTransportSecurityProperty.Builder
A builder for
CfnResponseHeadersPolicy.StrictTransportSecurityProperty |
static class |
CfnResponseHeadersPolicy.StrictTransportSecurityProperty.Jsii$Proxy
An implementation for
CfnResponseHeadersPolicy.StrictTransportSecurityProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnResponseHeadersPolicy.StrictTransportSecurityProperty.Builder |
builder() |
Number |
getAccessControlMaxAgeSec()
A number that CloudFront uses as the value for the `max-age` directive in the `Strict-Transport-Security` HTTP response header.
|
default Object |
getIncludeSubdomains()
A Boolean that determines whether CloudFront includes the `includeSubDomains` directive in the `Strict-Transport-Security` HTTP response header.
|
Object |
getOverride()
A Boolean that determines whether CloudFront overrides the `Strict-Transport-Security` HTTP response header received from the origin with the one specified in this response headers policy.
|
default Object |
getPreload()
A Boolean that determines whether CloudFront includes the `preload` directive in the `Strict-Transport-Security` HTTP response header.
|
@Stability(value=Stable) @NotNull Number getAccessControlMaxAgeSec()
@Stability(value=Stable) @NotNull Object getOverride()
@Stability(value=Stable) @Nullable default Object getIncludeSubdomains()
@Stability(value=Stable) @Nullable default Object getPreload()
@Stability(value=Stable) static CfnResponseHeadersPolicy.StrictTransportSecurityProperty.Builder builder()
Copyright © 2022. All rights reserved.