"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.SpotFleetRequest = exports.LaunchSpecification = exports.EphemeralBlockDevice = exports.RootBlockDevice = exports.EbsBlockDevice = exports.SpotMaintenanceStrategies = exports.CapacityRebalance = exports.LaunchTemplateConfig = exports.Overrides = exports.InstanceRequirements = exports.VcpuCount = exports.NetworkInterfaceCount = exports.MemoryMib = exports.AcceleratorCount = exports.BaselineEbsBandwidthMbps = exports.AcceleratorTotalMemoryMib = exports.TotalLocalStorageGb = exports.MemoryGibPerVcpu = exports.LaunchTemplateSpecification = void 0;
const core = __importStar(require("@terrascript/core"));
class LaunchTemplateSpecification extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], LaunchTemplateSpecification.prototype, "id", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], LaunchTemplateSpecification.prototype, "name", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], LaunchTemplateSpecification.prototype, "version", void 0);
exports.LaunchTemplateSpecification = LaunchTemplateSpecification;
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 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 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 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 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 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 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 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 Overrides extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Overrides.prototype, "availabilityZone", void 0);
__decorate([
    core.attr(InstanceRequirements),
    __metadata("design:type", InstanceRequirements)
], Overrides.prototype, "instanceRequirements", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Overrides.prototype, "instanceType", void 0);
__decorate([
    core.attr(Number, { computed: true }),
    __metadata("design:type", Object)
], Overrides.prototype, "priority", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], Overrides.prototype, "spotPrice", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], Overrides.prototype, "subnetId", void 0);
__decorate([
    core.attr(Number, { computed: true }),
    __metadata("design:type", Object)
], Overrides.prototype, "weightedCapacity", void 0);
exports.Overrides = Overrides;
class LaunchTemplateConfig extends core.Schema {
}
__decorate([
    core.attr(LaunchTemplateSpecification),
    __metadata("design:type", LaunchTemplateSpecification)
], LaunchTemplateConfig.prototype, "launchTemplateSpecification", void 0);
__decorate([
    core.attr(Overrides, { kind: "array" }),
    __metadata("design:type", Object)
], LaunchTemplateConfig.prototype, "overrides", void 0);
exports.LaunchTemplateConfig = LaunchTemplateConfig;
class CapacityRebalance extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], CapacityRebalance.prototype, "replacementStrategy", void 0);
exports.CapacityRebalance = CapacityRebalance;
class SpotMaintenanceStrategies extends core.Schema {
}
__decorate([
    core.attr(CapacityRebalance),
    __metadata("design:type", CapacityRebalance)
], SpotMaintenanceStrategies.prototype, "capacityRebalance", void 0);
exports.SpotMaintenanceStrategies = SpotMaintenanceStrategies;
class EbsBlockDevice extends core.Schema {
}
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], EbsBlockDevice.prototype, "deleteOnTermination", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], EbsBlockDevice.prototype, "deviceName", void 0);
__decorate([
    core.attr(Boolean, { computed: true }),
    __metadata("design:type", Object)
], EbsBlockDevice.prototype, "encrypted", void 0);
__decorate([
    core.attr(Number, { computed: true }),
    __metadata("design:type", Object)
], EbsBlockDevice.prototype, "iops", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], EbsBlockDevice.prototype, "kmsKeyId", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], EbsBlockDevice.prototype, "snapshotId", void 0);
__decorate([
    core.attr(Number, { computed: true }),
    __metadata("design:type", Object)
], EbsBlockDevice.prototype, "throughput", void 0);
__decorate([
    core.attr(Number, { computed: true }),
    __metadata("design:type", Object)
], EbsBlockDevice.prototype, "volumeSize", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], EbsBlockDevice.prototype, "volumeType", void 0);
exports.EbsBlockDevice = EbsBlockDevice;
class RootBlockDevice extends core.Schema {
}
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], RootBlockDevice.prototype, "deleteOnTermination", void 0);
__decorate([
    core.attr(Boolean, { computed: true }),
    __metadata("design:type", Object)
], RootBlockDevice.prototype, "encrypted", void 0);
__decorate([
    core.attr(Number, { computed: true }),
    __metadata("design:type", Object)
], RootBlockDevice.prototype, "iops", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], RootBlockDevice.prototype, "kmsKeyId", void 0);
__decorate([
    core.attr(Number, { computed: true }),
    __metadata("design:type", Object)
], RootBlockDevice.prototype, "throughput", void 0);
__decorate([
    core.attr(Number, { computed: true }),
    __metadata("design:type", Object)
], RootBlockDevice.prototype, "volumeSize", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], RootBlockDevice.prototype, "volumeType", void 0);
exports.RootBlockDevice = RootBlockDevice;
class EphemeralBlockDevice extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], EphemeralBlockDevice.prototype, "deviceName", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], EphemeralBlockDevice.prototype, "virtualName", void 0);
exports.EphemeralBlockDevice = EphemeralBlockDevice;
class LaunchSpecification extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], LaunchSpecification.prototype, "ami", void 0);
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], LaunchSpecification.prototype, "associatePublicIpAddress", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], LaunchSpecification.prototype, "availabilityZone", void 0);
__decorate([
    core.attr(EbsBlockDevice, { computed: true, kind: "array" }),
    __metadata("design:type", Object)
], LaunchSpecification.prototype, "ebsBlockDevice", void 0);
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], LaunchSpecification.prototype, "ebsOptimized", void 0);
__decorate([
    core.attr(EphemeralBlockDevice, { computed: true, kind: "array" }),
    __metadata("design:type", Object)
], LaunchSpecification.prototype, "ephemeralBlockDevice", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], LaunchSpecification.prototype, "iamInstanceProfile", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], LaunchSpecification.prototype, "iamInstanceProfileArn", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], LaunchSpecification.prototype, "instanceType", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], LaunchSpecification.prototype, "keyName", void 0);
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], LaunchSpecification.prototype, "monitoring", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], LaunchSpecification.prototype, "placementGroup", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], LaunchSpecification.prototype, "placementTenancy", void 0);
__decorate([
    core.attr(RootBlockDevice, { computed: true, kind: "array" }),
    __metadata("design:type", Object)
], LaunchSpecification.prototype, "rootBlockDevice", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], LaunchSpecification.prototype, "spotPrice", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], LaunchSpecification.prototype, "subnetId", void 0);
__decorate([
    core.attr(String, { kind: "map" }),
    __metadata("design:type", Object)
], LaunchSpecification.prototype, "tags", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], LaunchSpecification.prototype, "userData", void 0);
__decorate([
    core.attr(String, { computed: true, kind: "array" }),
    __metadata("design:type", Object)
], LaunchSpecification.prototype, "vpcSecurityGroupIds", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], LaunchSpecification.prototype, "weightedCapacity", void 0);
exports.LaunchSpecification = LaunchSpecification;
class SpotFleetRequest extends core.Resource {
    constructor(name, args) {
        super(name, "aws_spot_fleet_request", args);
    }
    getNamespace() {
        return "aws_ec2";
    }
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], SpotFleetRequest.prototype, "allocationStrategy", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], SpotFleetRequest.prototype, "clientToken", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], SpotFleetRequest.prototype, "excessCapacityTerminationPolicy", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], SpotFleetRequest.prototype, "fleetType", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], SpotFleetRequest.prototype, "iamFleetRole", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], SpotFleetRequest.prototype, "id", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], SpotFleetRequest.prototype, "instanceInterruptionBehaviour", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], SpotFleetRequest.prototype, "instancePoolsToUseCount", void 0);
__decorate([
    core.attr(LaunchSpecification, { kind: "array" }),
    __metadata("design:type", Object)
], SpotFleetRequest.prototype, "launchSpecification", void 0);
__decorate([
    core.attr(LaunchTemplateConfig, { kind: "array" }),
    __metadata("design:type", Object)
], SpotFleetRequest.prototype, "launchTemplateConfig", void 0);
__decorate([
    core.attr(String, { computed: true, kind: "array" }),
    __metadata("design:type", Object)
], SpotFleetRequest.prototype, "loadBalancers", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], SpotFleetRequest.prototype, "onDemandAllocationStrategy", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], SpotFleetRequest.prototype, "onDemandMaxTotalPrice", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], SpotFleetRequest.prototype, "onDemandTargetCapacity", void 0);
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], SpotFleetRequest.prototype, "replaceUnhealthyInstances", void 0);
__decorate([
    core.attr(SpotMaintenanceStrategies),
    __metadata("design:type", SpotMaintenanceStrategies)
], SpotFleetRequest.prototype, "spotMaintenanceStrategies", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], SpotFleetRequest.prototype, "spotPrice", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], SpotFleetRequest.prototype, "spotRequestState", void 0);
__decorate([
    core.attr(String, { kind: "map" }),
    __metadata("design:type", Object)
], SpotFleetRequest.prototype, "tags", void 0);
__decorate([
    core.attr(String, { computed: true, kind: "map" }),
    __metadata("design:type", Object)
], SpotFleetRequest.prototype, "tagsAll", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], SpotFleetRequest.prototype, "targetCapacity", void 0);
__decorate([
    core.attr(String, { computed: true, kind: "array" }),
    __metadata("design:type", Object)
], SpotFleetRequest.prototype, "targetGroupArns", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], SpotFleetRequest.prototype, "terminateInstancesOnDelete", void 0);
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], SpotFleetRequest.prototype, "terminateInstancesWithExpiration", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], SpotFleetRequest.prototype, "validFrom", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], SpotFleetRequest.prototype, "validUntil", void 0);
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], SpotFleetRequest.prototype, "waitForFulfillment", void 0);
exports.SpotFleetRequest = SpotFleetRequest;
//# sourceMappingURL=spot_fleet_request.js.map