"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.Route = exports.Spec = exports.TcpRoute = exports.TcpRouteTimeout = exports.HttpRoute = exports.Http2Route = exports.Http2RouteRetryPolicy = exports.Http2RouteMatch = exports.Header = exports.GrpcRoute = exports.GrpcRouteTimeout = exports.PerRequest = exports.Idle = exports.GrpcRouteRetryPolicy = exports.PerRetryTimeout = exports.GrpcRouteMatch = exports.Metadata = exports.MetadataMatch = exports.Range = exports.Action = exports.WeightedTarget = void 0;
const core = __importStar(require("@terrascript/core"));
class WeightedTarget extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], WeightedTarget.prototype, "virtualNode", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], WeightedTarget.prototype, "weight", void 0);
exports.WeightedTarget = WeightedTarget;
class Action extends core.Schema {
}
__decorate([
    core.attr(WeightedTarget, { kind: "array" }),
    __metadata("design:type", Object)
], Action.prototype, "weightedTarget", void 0);
exports.Action = Action;
class Range extends core.Schema {
}
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], Range.prototype, "end", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], Range.prototype, "start", void 0);
exports.Range = Range;
class MetadataMatch extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], MetadataMatch.prototype, "exact", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], MetadataMatch.prototype, "prefix", void 0);
__decorate([
    core.attr(Range),
    __metadata("design:type", Range)
], MetadataMatch.prototype, "range", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], MetadataMatch.prototype, "regex", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], MetadataMatch.prototype, "suffix", void 0);
exports.MetadataMatch = MetadataMatch;
class Metadata extends core.Schema {
}
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], Metadata.prototype, "invert", void 0);
__decorate([
    core.attr(MetadataMatch),
    __metadata("design:type", MetadataMatch)
], Metadata.prototype, "match", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Metadata.prototype, "name", void 0);
exports.Metadata = Metadata;
class GrpcRouteMatch extends core.Schema {
}
__decorate([
    core.attr(Metadata, { kind: "array" }),
    __metadata("design:type", Object)
], GrpcRouteMatch.prototype, "metadata", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], GrpcRouteMatch.prototype, "methodName", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], GrpcRouteMatch.prototype, "prefix", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], GrpcRouteMatch.prototype, "serviceName", void 0);
exports.GrpcRouteMatch = GrpcRouteMatch;
class PerRetryTimeout extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], PerRetryTimeout.prototype, "unit", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], PerRetryTimeout.prototype, "value", void 0);
exports.PerRetryTimeout = PerRetryTimeout;
class GrpcRouteRetryPolicy extends core.Schema {
}
__decorate([
    core.attr(String, { kind: "array" }),
    __metadata("design:type", Object)
], GrpcRouteRetryPolicy.prototype, "grpcRetryEvents", void 0);
__decorate([
    core.attr(String, { kind: "array" }),
    __metadata("design:type", Object)
], GrpcRouteRetryPolicy.prototype, "httpRetryEvents", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], GrpcRouteRetryPolicy.prototype, "maxRetries", void 0);
__decorate([
    core.attr(PerRetryTimeout),
    __metadata("design:type", PerRetryTimeout)
], GrpcRouteRetryPolicy.prototype, "perRetryTimeout", void 0);
__decorate([
    core.attr(String, { kind: "array" }),
    __metadata("design:type", Object)
], GrpcRouteRetryPolicy.prototype, "tcpRetryEvents", void 0);
exports.GrpcRouteRetryPolicy = GrpcRouteRetryPolicy;
class Idle extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Idle.prototype, "unit", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], Idle.prototype, "value", void 0);
exports.Idle = Idle;
class PerRequest extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], PerRequest.prototype, "unit", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], PerRequest.prototype, "value", void 0);
exports.PerRequest = PerRequest;
class GrpcRouteTimeout extends core.Schema {
}
__decorate([
    core.attr(Idle),
    __metadata("design:type", Idle)
], GrpcRouteTimeout.prototype, "idle", void 0);
__decorate([
    core.attr(PerRequest),
    __metadata("design:type", PerRequest)
], GrpcRouteTimeout.prototype, "perRequest", void 0);
exports.GrpcRouteTimeout = GrpcRouteTimeout;
class GrpcRoute extends core.Schema {
}
__decorate([
    core.attr(Action),
    __metadata("design:type", Action)
], GrpcRoute.prototype, "action", void 0);
__decorate([
    core.attr(GrpcRouteMatch),
    __metadata("design:type", GrpcRouteMatch)
], GrpcRoute.prototype, "match", void 0);
__decorate([
    core.attr(GrpcRouteRetryPolicy),
    __metadata("design:type", GrpcRouteRetryPolicy)
], GrpcRoute.prototype, "retryPolicy", void 0);
__decorate([
    core.attr(GrpcRouteTimeout),
    __metadata("design:type", GrpcRouteTimeout)
], GrpcRoute.prototype, "timeout", void 0);
exports.GrpcRoute = GrpcRoute;
class Header extends core.Schema {
}
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], Header.prototype, "invert", void 0);
__decorate([
    core.attr(MetadataMatch),
    __metadata("design:type", MetadataMatch)
], Header.prototype, "match", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Header.prototype, "name", void 0);
exports.Header = Header;
class Http2RouteMatch extends core.Schema {
}
__decorate([
    core.attr(Header, { kind: "array" }),
    __metadata("design:type", Object)
], Http2RouteMatch.prototype, "header", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Http2RouteMatch.prototype, "method", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Http2RouteMatch.prototype, "prefix", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Http2RouteMatch.prototype, "scheme", void 0);
exports.Http2RouteMatch = Http2RouteMatch;
class Http2RouteRetryPolicy extends core.Schema {
}
__decorate([
    core.attr(String, { kind: "array" }),
    __metadata("design:type", Object)
], Http2RouteRetryPolicy.prototype, "httpRetryEvents", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], Http2RouteRetryPolicy.prototype, "maxRetries", void 0);
__decorate([
    core.attr(PerRetryTimeout),
    __metadata("design:type", PerRetryTimeout)
], Http2RouteRetryPolicy.prototype, "perRetryTimeout", void 0);
__decorate([
    core.attr(String, { kind: "array" }),
    __metadata("design:type", Object)
], Http2RouteRetryPolicy.prototype, "tcpRetryEvents", void 0);
exports.Http2RouteRetryPolicy = Http2RouteRetryPolicy;
class Http2Route extends core.Schema {
}
__decorate([
    core.attr(Action),
    __metadata("design:type", Action)
], Http2Route.prototype, "action", void 0);
__decorate([
    core.attr(Http2RouteMatch),
    __metadata("design:type", Http2RouteMatch)
], Http2Route.prototype, "match", void 0);
__decorate([
    core.attr(Http2RouteRetryPolicy),
    __metadata("design:type", Http2RouteRetryPolicy)
], Http2Route.prototype, "retryPolicy", void 0);
__decorate([
    core.attr(GrpcRouteTimeout),
    __metadata("design:type", GrpcRouteTimeout)
], Http2Route.prototype, "timeout", void 0);
exports.Http2Route = Http2Route;
class HttpRoute extends core.Schema {
}
__decorate([
    core.attr(Action),
    __metadata("design:type", Action)
], HttpRoute.prototype, "action", void 0);
__decorate([
    core.attr(Http2RouteMatch),
    __metadata("design:type", Http2RouteMatch)
], HttpRoute.prototype, "match", void 0);
__decorate([
    core.attr(Http2RouteRetryPolicy),
    __metadata("design:type", Http2RouteRetryPolicy)
], HttpRoute.prototype, "retryPolicy", void 0);
__decorate([
    core.attr(GrpcRouteTimeout),
    __metadata("design:type", GrpcRouteTimeout)
], HttpRoute.prototype, "timeout", void 0);
exports.HttpRoute = HttpRoute;
class TcpRouteTimeout extends core.Schema {
}
__decorate([
    core.attr(Idle),
    __metadata("design:type", Idle)
], TcpRouteTimeout.prototype, "idle", void 0);
exports.TcpRouteTimeout = TcpRouteTimeout;
class TcpRoute extends core.Schema {
}
__decorate([
    core.attr(Action),
    __metadata("design:type", Action)
], TcpRoute.prototype, "action", void 0);
__decorate([
    core.attr(TcpRouteTimeout),
    __metadata("design:type", TcpRouteTimeout)
], TcpRoute.prototype, "timeout", void 0);
exports.TcpRoute = TcpRoute;
class Spec extends core.Schema {
}
__decorate([
    core.attr(GrpcRoute),
    __metadata("design:type", GrpcRoute)
], Spec.prototype, "grpcRoute", void 0);
__decorate([
    core.attr(Http2Route),
    __metadata("design:type", Http2Route)
], Spec.prototype, "http2Route", void 0);
__decorate([
    core.attr(HttpRoute),
    __metadata("design:type", HttpRoute)
], Spec.prototype, "httpRoute", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], Spec.prototype, "priority", void 0);
__decorate([
    core.attr(TcpRoute),
    __metadata("design:type", TcpRoute)
], Spec.prototype, "tcpRoute", void 0);
exports.Spec = Spec;
class Route extends core.Resource {
    constructor(name, args) {
        super(name, "aws_appmesh_route", args);
    }
    getNamespace() {
        return "aws_appmesh";
    }
}
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], Route.prototype, "arn", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], Route.prototype, "createdDate", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], Route.prototype, "id", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], Route.prototype, "lastUpdatedDate", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Route.prototype, "meshName", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], Route.prototype, "meshOwner", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Route.prototype, "name", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], Route.prototype, "resourceOwner", void 0);
__decorate([
    core.attr(Spec),
    __metadata("design:type", Spec)
], Route.prototype, "spec", void 0);
__decorate([
    core.attr(String, { kind: "map" }),
    __metadata("design:type", Object)
], Route.prototype, "tags", void 0);
__decorate([
    core.attr(String, { computed: true, kind: "map" }),
    __metadata("design:type", Object)
], Route.prototype, "tagsAll", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Route.prototype, "virtualRouterName", void 0);
exports.Route = Route;
//# sourceMappingURL=route.js.map