https://pulumi.com logo
Title
b

brief-ram-15160

07/20/2022, 10:40 AM
hey all. Did anyone here managed to create a
cloudfront
security headers policy in Pulumi?
g

gray-translator-86978

07/20/2022, 10:53 AM
type spec has a dict:
interface ResponseHeadersPolicySecurityHeadersConfigStrictTransportSecurity {
        /**
         * A number that CloudFront uses as the value for the `max-age` directive in the `Strict-Transport-Security` HTTP response header.
         */
        accessControlMaxAgeSec: pulumi.Input<number>;
        /**
         * A Boolean value that determines whether CloudFront includes the `includeSubDomains` directive in the `Strict-Transport-Security` HTTP response header.
         */
        includeSubdomains?: pulumi.Input<boolean>;
        /**
         * A Boolean value that determines whether CloudFront overrides the `X-XSS-Protection` HTTP response header received from the origin with the one specified in this response headers policy.
         */
        override: pulumi.Input<boolean>;
        /**
         * A Boolean value that determines whether CloudFront includes the `preload` directive in the `Strict-Transport-Security` HTTP response header.
         */
        preload?: pulumi.Input<boolean>;
    }
If you are using VSCode or similar you can right-click and "Go to Definition"