"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.LbListenerRule = exports.Condition = exports.PathPattern = exports.HttpRequestMethod = exports.HttpHeader = exports.HostHeader = exports.SourceIp = exports.QueryString = exports.Action = exports.AuthenticateCognito = exports.FixedResponse = exports.Redirect = exports.Forward = exports.Stickiness = exports.TargetGroup = exports.AuthenticateOidc = void 0;
const core = __importStar(require("@terrascript/core"));
class AuthenticateOidc extends core.Schema {
}
__decorate([
    core.attr(String, { kind: "map" }),
    __metadata("design:type", Object)
], AuthenticateOidc.prototype, "authenticationRequestExtraParams", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], AuthenticateOidc.prototype, "authorizationEndpoint", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], AuthenticateOidc.prototype, "clientId", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], AuthenticateOidc.prototype, "clientSecret", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], AuthenticateOidc.prototype, "issuer", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], AuthenticateOidc.prototype, "onUnauthenticatedRequest", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], AuthenticateOidc.prototype, "scope", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], AuthenticateOidc.prototype, "sessionCookieName", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], AuthenticateOidc.prototype, "sessionTimeout", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], AuthenticateOidc.prototype, "tokenEndpoint", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], AuthenticateOidc.prototype, "userInfoEndpoint", void 0);
exports.AuthenticateOidc = AuthenticateOidc;
class TargetGroup extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], TargetGroup.prototype, "arn", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], TargetGroup.prototype, "weight", void 0);
exports.TargetGroup = TargetGroup;
class Stickiness extends core.Schema {
}
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], Stickiness.prototype, "duration", void 0);
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], Stickiness.prototype, "enabled", void 0);
exports.Stickiness = Stickiness;
class Forward extends core.Schema {
}
__decorate([
    core.attr(Stickiness),
    __metadata("design:type", Stickiness)
], Forward.prototype, "stickiness", void 0);
__decorate([
    core.attr(TargetGroup, { kind: "array" }),
    __metadata("design:type", Object)
], Forward.prototype, "targetGroup", void 0);
exports.Forward = Forward;
class Redirect extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Redirect.prototype, "host", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Redirect.prototype, "path", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Redirect.prototype, "port", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Redirect.prototype, "protocol", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Redirect.prototype, "query", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Redirect.prototype, "statusCode", void 0);
exports.Redirect = Redirect;
class FixedResponse extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], FixedResponse.prototype, "contentType", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], FixedResponse.prototype, "messageBody", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], FixedResponse.prototype, "statusCode", void 0);
exports.FixedResponse = FixedResponse;
class AuthenticateCognito extends core.Schema {
}
__decorate([
    core.attr(String, { kind: "map" }),
    __metadata("design:type", Object)
], AuthenticateCognito.prototype, "authenticationRequestExtraParams", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], AuthenticateCognito.prototype, "onUnauthenticatedRequest", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], AuthenticateCognito.prototype, "scope", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], AuthenticateCognito.prototype, "sessionCookieName", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], AuthenticateCognito.prototype, "sessionTimeout", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], AuthenticateCognito.prototype, "userPoolArn", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], AuthenticateCognito.prototype, "userPoolClientId", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], AuthenticateCognito.prototype, "userPoolDomain", void 0);
exports.AuthenticateCognito = AuthenticateCognito;
class Action extends core.Schema {
}
__decorate([
    core.attr(AuthenticateCognito),
    __metadata("design:type", AuthenticateCognito)
], Action.prototype, "authenticateCognito", void 0);
__decorate([
    core.attr(AuthenticateOidc),
    __metadata("design:type", AuthenticateOidc)
], Action.prototype, "authenticateOidc", void 0);
__decorate([
    core.attr(FixedResponse),
    __metadata("design:type", FixedResponse)
], Action.prototype, "fixedResponse", void 0);
__decorate([
    core.attr(Forward),
    __metadata("design:type", Forward)
], Action.prototype, "forward", void 0);
__decorate([
    core.attr(Number, { computed: true }),
    __metadata("design:type", Object)
], Action.prototype, "order", void 0);
__decorate([
    core.attr(Redirect),
    __metadata("design:type", Redirect)
], Action.prototype, "redirect", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Action.prototype, "targetGroupArn", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Action.prototype, "type", void 0);
exports.Action = Action;
class QueryString extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], QueryString.prototype, "key", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], QueryString.prototype, "value", void 0);
exports.QueryString = QueryString;
class SourceIp extends core.Schema {
}
__decorate([
    core.attr(String, { kind: "array" }),
    __metadata("design:type", Object)
], SourceIp.prototype, "values", void 0);
exports.SourceIp = SourceIp;
class HostHeader extends core.Schema {
}
__decorate([
    core.attr(String, { kind: "array" }),
    __metadata("design:type", Object)
], HostHeader.prototype, "values", void 0);
exports.HostHeader = HostHeader;
class HttpHeader extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], HttpHeader.prototype, "httpHeaderName", void 0);
__decorate([
    core.attr(String, { kind: "array" }),
    __metadata("design:type", Object)
], HttpHeader.prototype, "values", void 0);
exports.HttpHeader = HttpHeader;
class HttpRequestMethod extends core.Schema {
}
__decorate([
    core.attr(String, { kind: "array" }),
    __metadata("design:type", Object)
], HttpRequestMethod.prototype, "values", void 0);
exports.HttpRequestMethod = HttpRequestMethod;
class PathPattern extends core.Schema {
}
__decorate([
    core.attr(String, { kind: "array" }),
    __metadata("design:type", Object)
], PathPattern.prototype, "values", void 0);
exports.PathPattern = PathPattern;
class Condition extends core.Schema {
}
__decorate([
    core.attr(HostHeader),
    __metadata("design:type", HostHeader)
], Condition.prototype, "hostHeader", void 0);
__decorate([
    core.attr(HttpHeader),
    __metadata("design:type", HttpHeader)
], Condition.prototype, "httpHeader", void 0);
__decorate([
    core.attr(HttpRequestMethod),
    __metadata("design:type", HttpRequestMethod)
], Condition.prototype, "httpRequestMethod", void 0);
__decorate([
    core.attr(PathPattern),
    __metadata("design:type", PathPattern)
], Condition.prototype, "pathPattern", void 0);
__decorate([
    core.attr(QueryString, { kind: "array" }),
    __metadata("design:type", Object)
], Condition.prototype, "queryString", void 0);
__decorate([
    core.attr(SourceIp),
    __metadata("design:type", SourceIp)
], Condition.prototype, "sourceIp", void 0);
exports.Condition = Condition;
class LbListenerRule extends core.Resource {
    constructor(name, args) {
        super(name, "aws_lb_listener_rule", args);
    }
    getNamespace() {
        return "aws_elb";
    }
}
__decorate([
    core.attr(Action, { kind: "array" }),
    __metadata("design:type", Object)
], LbListenerRule.prototype, "action", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], LbListenerRule.prototype, "arn", void 0);
__decorate([
    core.attr(Condition, { kind: "array" }),
    __metadata("design:type", Object)
], LbListenerRule.prototype, "condition", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], LbListenerRule.prototype, "id", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], LbListenerRule.prototype, "listenerArn", void 0);
__decorate([
    core.attr(Number, { computed: true }),
    __metadata("design:type", Object)
], LbListenerRule.prototype, "priority", void 0);
__decorate([
    core.attr(String, { kind: "map" }),
    __metadata("design:type", Object)
], LbListenerRule.prototype, "tags", void 0);
__decorate([
    core.attr(String, { computed: true, kind: "map" }),
    __metadata("design:type", Object)
], LbListenerRule.prototype, "tagsAll", void 0);
exports.LbListenerRule = LbListenerRule;
//# sourceMappingURL=lb_listener_rule.js.map