Skip to content

CloudFront  >  Structures  >  ResponseHeadersPolicyStrictTransportSecurity

ResponseHeadersPolicyStrictTransportSecurity

Structure Class

ResponseHeadersPolicyStrictTransportSecurity dataclass

Bases: _SerdeShape

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.

Attributes

access_control_max_age_sec instance-attribute
access_control_max_age_sec: int

A number that CloudFront uses as the value for the max-age directive in the Strict-Transport-Security HTTP response header.

include_subdomains class-attribute instance-attribute
include_subdomains: bool | None = ...

A Boolean that determines whether CloudFront includes the includeSubDomains directive in the Strict-Transport-Security HTTP response header.

override instance-attribute
override: bool

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.

preload class-attribute instance-attribute
preload: bool | None = ...

A Boolean that determines whether CloudFront includes the preload directive in the Strict-Transport-Security HTTP response header.