Show / Hide Table of Contents

Class CfnResponseHeadersPolicy.StrictTransportSecurityProperty

Determines whether CloudFront includes the Strict-Transport-Security HTTP response header and the header's value.

Inheritance
object
CfnResponseHeadersPolicy.StrictTransportSecurityProperty
Implements
CfnResponseHeadersPolicy.IStrictTransportSecurityProperty
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Amazon.CDK.AWS.CloudFront
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnResponseHeadersPolicy.StrictTransportSecurityProperty : CfnResponseHeadersPolicy.IStrictTransportSecurityProperty
Syntax (vb)
Public Class CfnResponseHeadersPolicy.StrictTransportSecurityProperty Implements CfnResponseHeadersPolicy.IStrictTransportSecurityProperty
Remarks

For more information about the Strict-Transport-Security HTTP response header, see Strict-Transport-Security in the MDN Web Docs.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-stricttransportsecurity.html

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()

Determines whether CloudFront includes the Strict-Transport-Security HTTP response header and the header's value.

Properties

AccessControlMaxAgeSec

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

IncludeSubdomains

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

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.

Preload

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

Constructors

StrictTransportSecurityProperty()

Determines whether CloudFront includes the Strict-Transport-Security HTTP response header and the header's value.

public StrictTransportSecurityProperty()
Remarks

For more information about the Strict-Transport-Security HTTP response header, see Strict-Transport-Security in the MDN Web Docs.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-stricttransportsecurity.html

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
             };

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

double

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-stricttransportsecurity.html#cfn-cloudfront-responseheaderspolicy-stricttransportsecurity-accesscontrolmaxagesec

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

object

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-stricttransportsecurity.html#cfn-cloudfront-responseheaderspolicy-stricttransportsecurity-includesubdomains

Type union: either bool or IResolvable

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

object

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-stricttransportsecurity.html#cfn-cloudfront-responseheaderspolicy-stricttransportsecurity-override

Type union: either bool or IResolvable

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

object

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-stricttransportsecurity.html#cfn-cloudfront-responseheaderspolicy-stricttransportsecurity-preload

Type union: either bool or IResolvable

Implements

CfnResponseHeadersPolicy.IStrictTransportSecurityProperty
Back to top Generated by DocFX