interface StrictTransportSecurityProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.CloudFront.Mixins.CfnResponseHeadersPolicyPropsMixin.StrictTransportSecurityProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awscloudfront/mixins#CfnResponseHeadersPolicyPropsMixin_StrictTransportSecurityProperty |
Java | software.amazon.awscdk.mixins.preview.services.cloudfront.mixins.CfnResponseHeadersPolicyPropsMixin.StrictTransportSecurityProperty |
Python | aws_cdk.mixins_preview.aws_cloudfront.mixins.CfnResponseHeadersPolicyPropsMixin.StrictTransportSecurityProperty |
TypeScript | @aws-cdk/mixins-preview » aws_cloudfront » mixins » CfnResponseHeadersPolicyPropsMixin » StrictTransportSecurityProperty |
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.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins as cloudfront_mixins } from '@aws-cdk/mixins-preview/aws-cloudfront';
const strictTransportSecurityProperty: cloudfront_mixins.CfnResponseHeadersPolicyPropsMixin.StrictTransportSecurityProperty = {
accessControlMaxAgeSec: 123,
includeSubdomains: false,
override: false,
preload: false,
};
Properties
| Name | Type | Description |
|---|---|---|
| access | number | A number that CloudFront uses as the value for the max-age directive in the Strict-Transport-Security HTTP response header. |
| include | boolean | IResolvable | A Boolean that determines whether CloudFront includes the includeSubDomains directive in the Strict-Transport-Security HTTP response header. |
| override? | boolean | IResolvable | 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? | boolean | IResolvable | A Boolean that determines whether CloudFront includes the preload directive in the Strict-Transport-Security HTTP response header. |
accessControlMaxAgeSec?
Type:
number
(optional)
A number that CloudFront uses as the value for the max-age directive in the Strict-Transport-Security HTTP response header.
includeSubdomains?
Type:
boolean | IResolvable
(optional)
A Boolean that determines whether CloudFront includes the includeSubDomains directive in the Strict-Transport-Security HTTP response header.
override?
Type:
boolean | IResolvable
(optional)
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?
Type:
boolean | IResolvable
(optional)
A Boolean that determines whether CloudFront includes the preload directive in the Strict-Transport-Security HTTP response header.

.NET
Go
Java
Python
TypeScript