Interface CfnResponseHeadersPolicy.IStrictTransportSecurityProperty
Determines whether CloudFront includes the Strict-Transport-Security
HTTP response header and the header's value.
Namespace: Amazon.CDK.AWS.CloudFront
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IStrictTransportSecurityProperty
Syntax (vb)
Public Interface IStrictTransportSecurityProperty
Remarks
For more information about the Strict-Transport-Security
HTTP response header, see Strict-Transport-Security in the MDN Web Docs.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CloudFront;
var strictTransportSecurityProperty = new StrictTransportSecurityProperty {
AccessControlMaxAgeSec = 123,
Override = false,
// the properties below are optional
IncludeSubdomains = false,
Preload = false
};
Synopsis
Properties
AccessControlMaxAgeSec | A number that CloudFront uses as the value for the |
IncludeSubdomains | A Boolean that determines whether CloudFront includes the |
Override | A Boolean that determines whether CloudFront overrides the |
Preload | A Boolean that determines whether CloudFront includes the |
Properties
AccessControlMaxAgeSec
A number that CloudFront uses as the value for the max-age
directive in the Strict-Transport-Security
HTTP response header.
double AccessControlMaxAgeSec { get; }
Property Value
System.Double
Remarks
IncludeSubdomains
A Boolean that determines whether CloudFront includes the includeSubDomains
directive in the Strict-Transport-Security
HTTP response header.
virtual object IncludeSubdomains { get; }
Property Value
System.Object
Remarks
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.
object Override { get; }
Property Value
System.Object
Remarks
Preload
A Boolean that determines whether CloudFront includes the preload
directive in the Strict-Transport-Security
HTTP response header.
virtual object Preload { get; }
Property Value
System.Object