"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.WebAcl = exports.Rules = exports.Action = exports.OverrideAction = exports.LoggingConfiguration = exports.RedactedFields = exports.FieldToMatch = exports.DefaultAction = void 0;
const core = __importStar(require("@terrascript/core"));
class DefaultAction extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], DefaultAction.prototype, "type", void 0);
exports.DefaultAction = DefaultAction;
class FieldToMatch extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], FieldToMatch.prototype, "data", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], FieldToMatch.prototype, "type", void 0);
exports.FieldToMatch = FieldToMatch;
class RedactedFields extends core.Schema {
}
__decorate([
    core.attr(FieldToMatch, { kind: "array" }),
    __metadata("design:type", Object)
], RedactedFields.prototype, "fieldToMatch", void 0);
exports.RedactedFields = RedactedFields;
class LoggingConfiguration extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], LoggingConfiguration.prototype, "logDestination", void 0);
__decorate([
    core.attr(RedactedFields),
    __metadata("design:type", RedactedFields)
], LoggingConfiguration.prototype, "redactedFields", void 0);
exports.LoggingConfiguration = LoggingConfiguration;
class OverrideAction extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], OverrideAction.prototype, "type", void 0);
exports.OverrideAction = OverrideAction;
class Action extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Action.prototype, "type", void 0);
exports.Action = Action;
class Rules extends core.Schema {
}
__decorate([
    core.attr(Action),
    __metadata("design:type", Action)
], Rules.prototype, "action", void 0);
__decorate([
    core.attr(OverrideAction),
    __metadata("design:type", OverrideAction)
], Rules.prototype, "overrideAction", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], Rules.prototype, "priority", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Rules.prototype, "ruleId", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Rules.prototype, "type", void 0);
exports.Rules = Rules;
class WebAcl extends core.Resource {
    constructor(name, args) {
        super(name, "aws_waf_web_acl", args);
    }
    getNamespace() {
        return "aws_waf";
    }
}
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], WebAcl.prototype, "arn", void 0);
__decorate([
    core.attr(DefaultAction),
    __metadata("design:type", DefaultAction)
], WebAcl.prototype, "defaultAction", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], WebAcl.prototype, "id", void 0);
__decorate([
    core.attr(LoggingConfiguration),
    __metadata("design:type", LoggingConfiguration)
], WebAcl.prototype, "loggingConfiguration", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], WebAcl.prototype, "metricName", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], WebAcl.prototype, "name", void 0);
__decorate([
    core.attr(Rules, { kind: "array" }),
    __metadata("design:type", Object)
], WebAcl.prototype, "rules", void 0);
__decorate([
    core.attr(String, { kind: "map" }),
    __metadata("design:type", Object)
], WebAcl.prototype, "tags", void 0);
__decorate([
    core.attr(String, { computed: true, kind: "map" }),
    __metadata("design:type", Object)
], WebAcl.prototype, "tagsAll", void 0);
exports.WebAcl = WebAcl;
//# sourceMappingURL=web_acl.js.map