public static final class CfnResponseHeadersPolicy.StrictTransportSecurityProperty.Builder
extends java.lang.Object
CfnResponseHeadersPolicy.StrictTransportSecurityProperty
Constructor and Description |
---|
Builder() |
public CfnResponseHeadersPolicy.StrictTransportSecurityProperty.Builder accessControlMaxAgeSec(java.lang.Number accessControlMaxAgeSec)
CfnResponseHeadersPolicy.StrictTransportSecurityProperty.getAccessControlMaxAgeSec()
accessControlMaxAgeSec
- A number that CloudFront uses as the value for the `max-age` directive in the `Strict-Transport-Security` HTTP response header. This parameter is required.this
public CfnResponseHeadersPolicy.StrictTransportSecurityProperty.Builder override(java.lang.Boolean override)
CfnResponseHeadersPolicy.StrictTransportSecurityProperty.getOverride()
override
- 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. This parameter is required.this
public CfnResponseHeadersPolicy.StrictTransportSecurityProperty.Builder override(IResolvable override)
CfnResponseHeadersPolicy.StrictTransportSecurityProperty.getOverride()
override
- 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. This parameter is required.this
public CfnResponseHeadersPolicy.StrictTransportSecurityProperty.Builder includeSubdomains(java.lang.Boolean includeSubdomains)
includeSubdomains
- A Boolean that determines whether CloudFront includes the `includeSubDomains` directive in the `Strict-Transport-Security` HTTP response header.this
public CfnResponseHeadersPolicy.StrictTransportSecurityProperty.Builder includeSubdomains(IResolvable includeSubdomains)
includeSubdomains
- A Boolean that determines whether CloudFront includes the `includeSubDomains` directive in the `Strict-Transport-Security` HTTP response header.this
public CfnResponseHeadersPolicy.StrictTransportSecurityProperty.Builder preload(java.lang.Boolean preload)
CfnResponseHeadersPolicy.StrictTransportSecurityProperty.getPreload()
preload
- A Boolean that determines whether CloudFront includes the `preload` directive in the `Strict-Transport-Security` HTTP response header.this
public CfnResponseHeadersPolicy.StrictTransportSecurityProperty.Builder preload(IResolvable preload)
CfnResponseHeadersPolicy.StrictTransportSecurityProperty.getPreload()
preload
- A Boolean that determines whether CloudFront includes the `preload` directive in the `Strict-Transport-Security` HTTP response header.this
public CfnResponseHeadersPolicy.StrictTransportSecurityProperty build()
CfnResponseHeadersPolicy.StrictTransportSecurityProperty
java.lang.NullPointerException
- if any required attribute was not provided