"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.Fleet = exports.LaunchTemplateConfig = exports.LaunchTemplateSpecification = exports.Override = exports.InstanceRequirements = exports.MemoryGibPerVcpu = exports.MemoryMib = exports.NetworkInterfaceCount = exports.VcpuCount = exports.AcceleratorTotalMemoryMib = exports.TotalLocalStorageGb = exports.BaselineEbsBandwidthMbps = exports.AcceleratorCount = exports.TargetCapacitySpecification = exports.SpotOptions = exports.MaintenanceStrategies = exports.CapacityRebalance = exports.OnDemandOptions = void 0;
const core = __importStar(require("@terrascript/core"));
class OnDemandOptions extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], OnDemandOptions.prototype, "allocationStrategy", void 0);
exports.OnDemandOptions = OnDemandOptions;
class CapacityRebalance extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], CapacityRebalance.prototype, "replacementStrategy", void 0);
exports.CapacityRebalance = CapacityRebalance;
class MaintenanceStrategies extends core.Schema {
}
__decorate([
    core.attr(CapacityRebalance),
    __metadata("design:type", CapacityRebalance)
], MaintenanceStrategies.prototype, "capacityRebalance", void 0);
exports.MaintenanceStrategies = MaintenanceStrategies;
class SpotOptions extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], SpotOptions.prototype, "allocationStrategy", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], SpotOptions.prototype, "instanceInterruptionBehavior", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], SpotOptions.prototype, "instancePoolsToUseCount", void 0);
__decorate([
    core.attr(MaintenanceStrategies),
    __metadata("design:type", MaintenanceStrategies)
], SpotOptions.prototype, "maintenanceStrategies", void 0);
exports.SpotOptions = SpotOptions;
class TargetCapacitySpecification extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], TargetCapacitySpecification.prototype, "defaultTargetCapacityType", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], TargetCapacitySpecification.prototype, "onDemandTargetCapacity", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], TargetCapacitySpecification.prototype, "spotTargetCapacity", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], TargetCapacitySpecification.prototype, "totalTargetCapacity", void 0);
exports.TargetCapacitySpecification = TargetCapacitySpecification;
class AcceleratorCount extends core.Schema {
}
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], AcceleratorCount.prototype, "max", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], AcceleratorCount.prototype, "min", void 0);
exports.AcceleratorCount = AcceleratorCount;
class BaselineEbsBandwidthMbps extends core.Schema {
}
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], BaselineEbsBandwidthMbps.prototype, "max", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], BaselineEbsBandwidthMbps.prototype, "min", void 0);
exports.BaselineEbsBandwidthMbps = BaselineEbsBandwidthMbps;
class TotalLocalStorageGb extends core.Schema {
}
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], TotalLocalStorageGb.prototype, "max", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], TotalLocalStorageGb.prototype, "min", void 0);
exports.TotalLocalStorageGb = TotalLocalStorageGb;
class AcceleratorTotalMemoryMib extends core.Schema {
}
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], AcceleratorTotalMemoryMib.prototype, "max", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], AcceleratorTotalMemoryMib.prototype, "min", void 0);
exports.AcceleratorTotalMemoryMib = AcceleratorTotalMemoryMib;
class VcpuCount extends core.Schema {
}
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], VcpuCount.prototype, "max", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], VcpuCount.prototype, "min", void 0);
exports.VcpuCount = VcpuCount;
class NetworkInterfaceCount extends core.Schema {
}
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], NetworkInterfaceCount.prototype, "max", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], NetworkInterfaceCount.prototype, "min", void 0);
exports.NetworkInterfaceCount = NetworkInterfaceCount;
class MemoryMib extends core.Schema {
}
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], MemoryMib.prototype, "max", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], MemoryMib.prototype, "min", void 0);
exports.MemoryMib = MemoryMib;
class MemoryGibPerVcpu extends core.Schema {
}
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], MemoryGibPerVcpu.prototype, "max", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], MemoryGibPerVcpu.prototype, "min", void 0);
exports.MemoryGibPerVcpu = MemoryGibPerVcpu;
class InstanceRequirements extends core.Schema {
}
__decorate([
    core.attr(AcceleratorCount),
    __metadata("design:type", AcceleratorCount)
], InstanceRequirements.prototype, "acceleratorCount", void 0);
__decorate([
    core.attr(String, { kind: "array" }),
    __metadata("design:type", Object)
], InstanceRequirements.prototype, "acceleratorManufacturers", void 0);
__decorate([
    core.attr(String, { kind: "array" }),
    __metadata("design:type", Object)
], InstanceRequirements.prototype, "acceleratorNames", void 0);
__decorate([
    core.attr(AcceleratorTotalMemoryMib),
    __metadata("design:type", AcceleratorTotalMemoryMib)
], InstanceRequirements.prototype, "acceleratorTotalMemoryMib", void 0);
__decorate([
    core.attr(String, { kind: "array" }),
    __metadata("design:type", Object)
], InstanceRequirements.prototype, "acceleratorTypes", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], InstanceRequirements.prototype, "bareMetal", void 0);
__decorate([
    core.attr(BaselineEbsBandwidthMbps),
    __metadata("design:type", BaselineEbsBandwidthMbps)
], InstanceRequirements.prototype, "baselineEbsBandwidthMbps", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], InstanceRequirements.prototype, "burstablePerformance", void 0);
__decorate([
    core.attr(String, { kind: "array" }),
    __metadata("design:type", Object)
], InstanceRequirements.prototype, "cpuManufacturers", void 0);
__decorate([
    core.attr(String, { kind: "array" }),
    __metadata("design:type", Object)
], InstanceRequirements.prototype, "excludedInstanceTypes", void 0);
__decorate([
    core.attr(String, { kind: "array" }),
    __metadata("design:type", Object)
], InstanceRequirements.prototype, "instanceGenerations", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], InstanceRequirements.prototype, "localStorage", void 0);
__decorate([
    core.attr(String, { kind: "array" }),
    __metadata("design:type", Object)
], InstanceRequirements.prototype, "localStorageTypes", void 0);
__decorate([
    core.attr(MemoryGibPerVcpu),
    __metadata("design:type", MemoryGibPerVcpu)
], InstanceRequirements.prototype, "memoryGibPerVcpu", void 0);
__decorate([
    core.attr(MemoryMib),
    __metadata("design:type", MemoryMib)
], InstanceRequirements.prototype, "memoryMib", void 0);
__decorate([
    core.attr(NetworkInterfaceCount),
    __metadata("design:type", NetworkInterfaceCount)
], InstanceRequirements.prototype, "networkInterfaceCount", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], InstanceRequirements.prototype, "onDemandMaxPricePercentageOverLowestPrice", void 0);
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], InstanceRequirements.prototype, "requireHibernateSupport", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], InstanceRequirements.prototype, "spotMaxPricePercentageOverLowestPrice", void 0);
__decorate([
    core.attr(TotalLocalStorageGb),
    __metadata("design:type", TotalLocalStorageGb)
], InstanceRequirements.prototype, "totalLocalStorageGb", void 0);
__decorate([
    core.attr(VcpuCount),
    __metadata("design:type", VcpuCount)
], InstanceRequirements.prototype, "vcpuCount", void 0);
exports.InstanceRequirements = InstanceRequirements;
class Override extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Override.prototype, "availabilityZone", void 0);
__decorate([
    core.attr(InstanceRequirements),
    __metadata("design:type", InstanceRequirements)
], Override.prototype, "instanceRequirements", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Override.prototype, "instanceType", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Override.prototype, "maxPrice", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], Override.prototype, "priority", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Override.prototype, "subnetId", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], Override.prototype, "weightedCapacity", void 0);
exports.Override = Override;
class LaunchTemplateSpecification extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], LaunchTemplateSpecification.prototype, "launchTemplateId", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], LaunchTemplateSpecification.prototype, "launchTemplateName", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], LaunchTemplateSpecification.prototype, "version", void 0);
exports.LaunchTemplateSpecification = LaunchTemplateSpecification;
class LaunchTemplateConfig extends core.Schema {
}
__decorate([
    core.attr(LaunchTemplateSpecification),
    __metadata("design:type", LaunchTemplateSpecification)
], LaunchTemplateConfig.prototype, "launchTemplateSpecification", void 0);
__decorate([
    core.attr(Override, { kind: "array" }),
    __metadata("design:type", Object)
], LaunchTemplateConfig.prototype, "override", void 0);
exports.LaunchTemplateConfig = LaunchTemplateConfig;
class Fleet extends core.Resource {
    constructor(name, args) {
        super(name, "aws_ec2_fleet", args);
    }
    getNamespace() {
        return "aws_ec2";
    }
}
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], Fleet.prototype, "arn", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Fleet.prototype, "context", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Fleet.prototype, "excessCapacityTerminationPolicy", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], Fleet.prototype, "id", void 0);
__decorate([
    core.attr(LaunchTemplateConfig),
    __metadata("design:type", LaunchTemplateConfig)
], Fleet.prototype, "launchTemplateConfig", void 0);
__decorate([
    core.attr(OnDemandOptions),
    __metadata("design:type", OnDemandOptions)
], Fleet.prototype, "onDemandOptions", void 0);
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], Fleet.prototype, "replaceUnhealthyInstances", void 0);
__decorate([
    core.attr(SpotOptions),
    __metadata("design:type", SpotOptions)
], Fleet.prototype, "spotOptions", void 0);
__decorate([
    core.attr(String, { kind: "map" }),
    __metadata("design:type", Object)
], Fleet.prototype, "tags", void 0);
__decorate([
    core.attr(String, { computed: true, kind: "map" }),
    __metadata("design:type", Object)
], Fleet.prototype, "tagsAll", void 0);
__decorate([
    core.attr(TargetCapacitySpecification),
    __metadata("design:type", TargetCapacitySpecification)
], Fleet.prototype, "targetCapacitySpecification", void 0);
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], Fleet.prototype, "terminateInstances", void 0);
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], Fleet.prototype, "terminateInstancesWithExpiration", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Fleet.prototype, "type", void 0);
exports.Fleet = Fleet;
//# sourceMappingURL=fleet.js.map