"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    var desc = Object.getOwnPropertyDescriptor(m, k);
    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
      desc = { enumerable: true, get: function() { return m[k]; } };
    }
    Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
    Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
    o["default"] = v;
});
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __importStar = (this && this.__importStar) || function (mod) {
    if (mod && mod.__esModule) return mod;
    var result = {};
    if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
    __setModuleDefault(result, mod);
    return result;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.ResponseHeadersPolicy = exports.CorsConfig = exports.AccessControlAllowMethods = exports.AccessControlAllowHeaders = exports.AccessControlExposeHeaders = exports.AccessControlAllowOrigins = exports.ServerTimingHeadersConfig = exports.SecurityHeadersConfig = exports.ContentSecurityPolicy = exports.XssProtection = exports.StrictTransportSecurity = exports.ReferrerPolicy = exports.FrameOptions = exports.ContentTypeOptions = exports.CustomHeadersConfig = exports.Items = void 0;
const core = __importStar(require("@terrascript/core"));
class Items extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Items.prototype, "header", void 0);
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], Items.prototype, "override", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Items.prototype, "value", void 0);
exports.Items = Items;
class CustomHeadersConfig extends core.Schema {
}
__decorate([
    core.attr(Items, { kind: "array" }),
    __metadata("design:type", Object)
], CustomHeadersConfig.prototype, "items", void 0);
exports.CustomHeadersConfig = CustomHeadersConfig;
class ContentTypeOptions extends core.Schema {
}
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], ContentTypeOptions.prototype, "override", void 0);
exports.ContentTypeOptions = ContentTypeOptions;
class FrameOptions extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], FrameOptions.prototype, "frameOption", void 0);
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], FrameOptions.prototype, "override", void 0);
exports.FrameOptions = FrameOptions;
class ReferrerPolicy extends core.Schema {
}
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], ReferrerPolicy.prototype, "override", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], ReferrerPolicy.prototype, "referrerPolicy", void 0);
exports.ReferrerPolicy = ReferrerPolicy;
class StrictTransportSecurity extends core.Schema {
}
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], StrictTransportSecurity.prototype, "accessControlMaxAgeSec", void 0);
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], StrictTransportSecurity.prototype, "includeSubdomains", void 0);
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], StrictTransportSecurity.prototype, "override", void 0);
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], StrictTransportSecurity.prototype, "preload", void 0);
exports.StrictTransportSecurity = StrictTransportSecurity;
class XssProtection extends core.Schema {
}
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], XssProtection.prototype, "modeBlock", void 0);
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], XssProtection.prototype, "override", void 0);
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], XssProtection.prototype, "protection", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], XssProtection.prototype, "reportUri", void 0);
exports.XssProtection = XssProtection;
class ContentSecurityPolicy extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], ContentSecurityPolicy.prototype, "contentSecurityPolicy", void 0);
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], ContentSecurityPolicy.prototype, "override", void 0);
exports.ContentSecurityPolicy = ContentSecurityPolicy;
class SecurityHeadersConfig extends core.Schema {
}
__decorate([
    core.attr(ContentSecurityPolicy),
    __metadata("design:type", ContentSecurityPolicy)
], SecurityHeadersConfig.prototype, "contentSecurityPolicy", void 0);
__decorate([
    core.attr(ContentTypeOptions),
    __metadata("design:type", ContentTypeOptions)
], SecurityHeadersConfig.prototype, "contentTypeOptions", void 0);
__decorate([
    core.attr(FrameOptions),
    __metadata("design:type", FrameOptions)
], SecurityHeadersConfig.prototype, "frameOptions", void 0);
__decorate([
    core.attr(ReferrerPolicy),
    __metadata("design:type", ReferrerPolicy)
], SecurityHeadersConfig.prototype, "referrerPolicy", void 0);
__decorate([
    core.attr(StrictTransportSecurity),
    __metadata("design:type", StrictTransportSecurity)
], SecurityHeadersConfig.prototype, "strictTransportSecurity", void 0);
__decorate([
    core.attr(XssProtection),
    __metadata("design:type", XssProtection)
], SecurityHeadersConfig.prototype, "xssProtection", void 0);
exports.SecurityHeadersConfig = SecurityHeadersConfig;
class ServerTimingHeadersConfig extends core.Schema {
}
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], ServerTimingHeadersConfig.prototype, "enabled", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], ServerTimingHeadersConfig.prototype, "samplingRate", void 0);
exports.ServerTimingHeadersConfig = ServerTimingHeadersConfig;
class AccessControlAllowOrigins extends core.Schema {
}
__decorate([
    core.attr(String, { kind: "array" }),
    __metadata("design:type", Object)
], AccessControlAllowOrigins.prototype, "items", void 0);
exports.AccessControlAllowOrigins = AccessControlAllowOrigins;
class AccessControlExposeHeaders extends core.Schema {
}
__decorate([
    core.attr(String, { kind: "array" }),
    __metadata("design:type", Object)
], AccessControlExposeHeaders.prototype, "items", void 0);
exports.AccessControlExposeHeaders = AccessControlExposeHeaders;
class AccessControlAllowHeaders extends core.Schema {
}
__decorate([
    core.attr(String, { kind: "array" }),
    __metadata("design:type", Object)
], AccessControlAllowHeaders.prototype, "items", void 0);
exports.AccessControlAllowHeaders = AccessControlAllowHeaders;
class AccessControlAllowMethods extends core.Schema {
}
__decorate([
    core.attr(String, { kind: "array" }),
    __metadata("design:type", Object)
], AccessControlAllowMethods.prototype, "items", void 0);
exports.AccessControlAllowMethods = AccessControlAllowMethods;
class CorsConfig extends core.Schema {
}
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], CorsConfig.prototype, "accessControlAllowCredentials", void 0);
__decorate([
    core.attr(AccessControlAllowHeaders),
    __metadata("design:type", AccessControlAllowHeaders)
], CorsConfig.prototype, "accessControlAllowHeaders", void 0);
__decorate([
    core.attr(AccessControlAllowMethods),
    __metadata("design:type", AccessControlAllowMethods)
], CorsConfig.prototype, "accessControlAllowMethods", void 0);
__decorate([
    core.attr(AccessControlAllowOrigins),
    __metadata("design:type", AccessControlAllowOrigins)
], CorsConfig.prototype, "accessControlAllowOrigins", void 0);
__decorate([
    core.attr(AccessControlExposeHeaders),
    __metadata("design:type", AccessControlExposeHeaders)
], CorsConfig.prototype, "accessControlExposeHeaders", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], CorsConfig.prototype, "accessControlMaxAgeSec", void 0);
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], CorsConfig.prototype, "originOverride", void 0);
exports.CorsConfig = CorsConfig;
class ResponseHeadersPolicy extends core.Resource {
    constructor(name, args) {
        super(name, "aws_cloudfront_response_headers_policy", args);
    }
    getNamespace() {
        return "aws_cloudfront";
    }
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], ResponseHeadersPolicy.prototype, "comment", void 0);
__decorate([
    core.attr(CorsConfig),
    __metadata("design:type", CorsConfig)
], ResponseHeadersPolicy.prototype, "corsConfig", void 0);
__decorate([
    core.attr(CustomHeadersConfig),
    __metadata("design:type", CustomHeadersConfig)
], ResponseHeadersPolicy.prototype, "customHeadersConfig", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], ResponseHeadersPolicy.prototype, "etag", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], ResponseHeadersPolicy.prototype, "id", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], ResponseHeadersPolicy.prototype, "name", void 0);
__decorate([
    core.attr(SecurityHeadersConfig),
    __metadata("design:type", SecurityHeadersConfig)
], ResponseHeadersPolicy.prototype, "securityHeadersConfig", void 0);
__decorate([
    core.attr(ServerTimingHeadersConfig),
    __metadata("design:type", ServerTimingHeadersConfig)
], ResponseHeadersPolicy.prototype, "serverTimingHeadersConfig", void 0);
exports.ResponseHeadersPolicy = ResponseHeadersPolicy;
//# sourceMappingURL=response_headers_policy.js.map