Class CfnResponseHeadersPolicy.StrictTransportSecurityProperty
Determines whether CloudFront includes the Strict-Transport-Security
HTTP response header and the header's value.
Inheritance
Namespace: Amazon.CDK.AWS.CloudFront
Assembly: Amazon.CDK.AWS.CloudFront.dll
Syntax (csharp)
public class StrictTransportSecurityProperty : Object, CfnResponseHeadersPolicy.IStrictTransportSecurityProperty
Syntax (vb)
Public Class StrictTransportSecurityProperty
Inherits Object
Implements CfnResponseHeadersPolicy.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
Constructors
StrictTransportSecurityProperty() |
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 |
Constructors
StrictTransportSecurityProperty()
public StrictTransportSecurityProperty()
Properties
AccessControlMaxAgeSec
A number that CloudFront uses as the value for the max-age
directive in the Strict-Transport-Security
HTTP response header.
public double AccessControlMaxAgeSec { get; set; }
Property Value
System.Double
Remarks
IncludeSubdomains
A Boolean that determines whether CloudFront includes the includeSubDomains
directive in the Strict-Transport-Security
HTTP response header.
public object IncludeSubdomains { get; set; }
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.
public object Override { get; set; }
Property Value
System.Object
Remarks
Preload
A Boolean that determines whether CloudFront includes the preload
directive in the Strict-Transport-Security
HTTP response header.
public object Preload { get; set; }
Property Value
System.Object