AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

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.

Inheritance Hierarchy

System.Object
  Amazon.CloudFront.Model.ResponseHeadersPolicyStrictTransportSecurity

Namespace: Amazon.CloudFront.Model
Assembly: AWSSDK.CloudFront.dll
Version: 3.x.y.z

Syntax

C#
public class ResponseHeadersPolicyStrictTransportSecurity

The ResponseHeadersPolicyStrictTransportSecurity type exposes the following members

Constructors

Properties

NameTypeDescription
Public Property AccessControlMaxAgeSec System.Int32

Gets and sets the property AccessControlMaxAgeSec.

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

Public Property IncludeSubdomains System.Boolean

Gets and sets the property IncludeSubdomains.

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

Public Property Override System.Boolean

Gets and sets the property 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 Property Preload System.Boolean

Gets and sets the property Preload.

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

Version Information

.NET Core App:
Supported in: 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5, 4.0, 3.5