"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.GatewayRoute = exports.Spec = exports.HttpRoute = exports.Http2Route = exports.Http2RouteMatch = exports.Http2RouteMatchHostname = exports.Http2RouteAction = exports.Rewrite = exports.Prefix = exports.RewriteHostname = exports.GrpcRoute = exports.GrpcRouteMatch = exports.GrpcRouteAction = exports.Target = exports.VirtualService = void 0;
const core = __importStar(require("@terrascript/core"));
class VirtualService extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], VirtualService.prototype, "virtualServiceName", void 0);
exports.VirtualService = VirtualService;
class Target extends core.Schema {
}
__decorate([
    core.attr(VirtualService),
    __metadata("design:type", VirtualService)
], Target.prototype, "virtualService", void 0);
exports.Target = Target;
class GrpcRouteAction extends core.Schema {
}
__decorate([
    core.attr(Target),
    __metadata("design:type", Target)
], GrpcRouteAction.prototype, "target", void 0);
exports.GrpcRouteAction = GrpcRouteAction;
class GrpcRouteMatch extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], GrpcRouteMatch.prototype, "serviceName", void 0);
exports.GrpcRouteMatch = GrpcRouteMatch;
class GrpcRoute extends core.Schema {
}
__decorate([
    core.attr(GrpcRouteAction),
    __metadata("design:type", GrpcRouteAction)
], GrpcRoute.prototype, "action", void 0);
__decorate([
    core.attr(GrpcRouteMatch),
    __metadata("design:type", GrpcRouteMatch)
], GrpcRoute.prototype, "match", void 0);
exports.GrpcRoute = GrpcRoute;
class RewriteHostname extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], RewriteHostname.prototype, "defaultTargetHostname", void 0);
exports.RewriteHostname = RewriteHostname;
class Prefix extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Prefix.prototype, "defaultPrefix", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Prefix.prototype, "value", void 0);
exports.Prefix = Prefix;
class Rewrite extends core.Schema {
}
__decorate([
    core.attr(RewriteHostname),
    __metadata("design:type", RewriteHostname)
], Rewrite.prototype, "hostname", void 0);
__decorate([
    core.attr(Prefix),
    __metadata("design:type", Prefix)
], Rewrite.prototype, "prefix", void 0);
exports.Rewrite = Rewrite;
class Http2RouteAction extends core.Schema {
}
__decorate([
    core.attr(Rewrite),
    __metadata("design:type", Rewrite)
], Http2RouteAction.prototype, "rewrite", void 0);
__decorate([
    core.attr(Target),
    __metadata("design:type", Target)
], Http2RouteAction.prototype, "target", void 0);
exports.Http2RouteAction = Http2RouteAction;
class Http2RouteMatchHostname extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Http2RouteMatchHostname.prototype, "exact", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Http2RouteMatchHostname.prototype, "suffix", void 0);
exports.Http2RouteMatchHostname = Http2RouteMatchHostname;
class Http2RouteMatch extends core.Schema {
}
__decorate([
    core.attr(Http2RouteMatchHostname),
    __metadata("design:type", Http2RouteMatchHostname)
], Http2RouteMatch.prototype, "hostname", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Http2RouteMatch.prototype, "prefix", void 0);
exports.Http2RouteMatch = Http2RouteMatch;
class Http2Route extends core.Schema {
}
__decorate([
    core.attr(Http2RouteAction),
    __metadata("design:type", Http2RouteAction)
], Http2Route.prototype, "action", void 0);
__decorate([
    core.attr(Http2RouteMatch),
    __metadata("design:type", Http2RouteMatch)
], Http2Route.prototype, "match", void 0);
exports.Http2Route = Http2Route;
class HttpRoute extends core.Schema {
}
__decorate([
    core.attr(Http2RouteAction),
    __metadata("design:type", Http2RouteAction)
], HttpRoute.prototype, "action", void 0);
__decorate([
    core.attr(Http2RouteMatch),
    __metadata("design:type", Http2RouteMatch)
], HttpRoute.prototype, "match", void 0);
exports.HttpRoute = HttpRoute;
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);
exports.Spec = Spec;
class GatewayRoute extends core.Resource {
    constructor(name, args) {
        super(name, "aws_appmesh_gateway_route", args);
    }
    getNamespace() {
        return "aws_appmesh";
    }
}
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], GatewayRoute.prototype, "arn", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], GatewayRoute.prototype, "createdDate", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], GatewayRoute.prototype, "id", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], GatewayRoute.prototype, "lastUpdatedDate", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], GatewayRoute.prototype, "meshName", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], GatewayRoute.prototype, "meshOwner", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], GatewayRoute.prototype, "name", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], GatewayRoute.prototype, "resourceOwner", void 0);
__decorate([
    core.attr(Spec),
    __metadata("design:type", Spec)
], GatewayRoute.prototype, "spec", void 0);
__decorate([
    core.attr(String, { kind: "map" }),
    __metadata("design:type", Object)
], GatewayRoute.prototype, "tags", void 0);
__decorate([
    core.attr(String, { computed: true, kind: "map" }),
    __metadata("design:type", Object)
], GatewayRoute.prototype, "tagsAll", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], GatewayRoute.prototype, "virtualGatewayName", void 0);
exports.GatewayRoute = GatewayRoute;
//# sourceMappingURL=gateway_route.js.map