Interface CfnResponseHeadersPolicyPropsMixin.StrictTransportSecurityProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnResponseHeadersPolicyPropsMixin.StrictTransportSecurityProperty.Jsii$Proxy
- Enclosing class:
CfnResponseHeadersPolicyPropsMixin
@Stability(Stable)
public static interface CfnResponseHeadersPolicyPropsMixin.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.cfnpropertymixins.services.cloudfront.*;
StrictTransportSecurityProperty strictTransportSecurityProperty = StrictTransportSecurityProperty.builder()
.accessControlMaxAgeSec(123)
.includeSubdomains(false)
.override(false)
.preload(false)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classstatic final classAn implementation forCfnResponseHeadersPolicyPropsMixin.StrictTransportSecurityProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default NumberA number that CloudFront uses as the value for themax-agedirective in theStrict-Transport-SecurityHTTP response header.default ObjectA Boolean that determines whether CloudFront includes theincludeSubDomainsdirective in theStrict-Transport-SecurityHTTP response header.default ObjectA Boolean that determines whether CloudFront overrides theStrict-Transport-SecurityHTTP response header received from the origin with the one specified in this response headers policy.default ObjectA Boolean that determines whether CloudFront includes thepreloaddirective in theStrict-Transport-SecurityHTTP 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-agedirective in theStrict-Transport-SecurityHTTP response header.- See Also:
-
getIncludeSubdomains
A Boolean that determines whether CloudFront includes theincludeSubDomainsdirective in theStrict-Transport-SecurityHTTP response header.Returns union: either
BooleanorIResolvable- See Also:
-
getOverride
A Boolean that determines whether CloudFront overrides theStrict-Transport-SecurityHTTP response header received from the origin with the one specified in this response headers policy.Returns union: either
BooleanorIResolvable- See Also:
-
getPreload
A Boolean that determines whether CloudFront includes thepreloaddirective in theStrict-Transport-SecurityHTTP response header.Returns union: either
BooleanorIResolvable- See Also:
-
builder
@Stability(Stable) static CfnResponseHeadersPolicyPropsMixin.StrictTransportSecurityProperty.Builder builder()
-