"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.Group = exports.InstanceRefresh = exports.Preferences = exports.Tag = exports.InitialLifecycleHook = exports.LaunchTemplate = exports.MixedInstancesPolicy = exports.MixedInstancesPolicyLaunchTemplate = exports.Override = exports.InstanceRequirements = exports.MemoryGibPerVcpu = exports.MemoryMib = exports.NetworkInterfaceCount = exports.TotalLocalStorageGb = exports.VcpuCount = exports.BaselineEbsBandwidthMbps = exports.AcceleratorTotalMemoryMib = exports.AcceleratorCount = exports.LaunchTemplateSpecification = exports.InstancesDistribution = exports.WarmPool = exports.InstanceReusePolicy = void 0;
const core = __importStar(require("@terrascript/core"));
class InstanceReusePolicy extends core.Schema {
}
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], InstanceReusePolicy.prototype, "reuseOnScaleIn", void 0);
exports.InstanceReusePolicy = InstanceReusePolicy;
class WarmPool extends core.Schema {
}
__decorate([
    core.attr(InstanceReusePolicy),
    __metadata("design:type", InstanceReusePolicy)
], WarmPool.prototype, "instanceReusePolicy", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], WarmPool.prototype, "maxGroupPreparedCapacity", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], WarmPool.prototype, "minSize", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], WarmPool.prototype, "poolState", void 0);
exports.WarmPool = WarmPool;
class InstancesDistribution extends core.Schema {
}
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], InstancesDistribution.prototype, "onDemandAllocationStrategy", void 0);
__decorate([
    core.attr(Number, { computed: true }),
    __metadata("design:type", Object)
], InstancesDistribution.prototype, "onDemandBaseCapacity", void 0);
__decorate([
    core.attr(Number, { computed: true }),
    __metadata("design:type", Object)
], InstancesDistribution.prototype, "onDemandPercentageAboveBaseCapacity", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], InstancesDistribution.prototype, "spotAllocationStrategy", void 0);
__decorate([
    core.attr(Number, { computed: true }),
    __metadata("design:type", Object)
], InstancesDistribution.prototype, "spotInstancePools", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], InstancesDistribution.prototype, "spotMaxPrice", void 0);
exports.InstancesDistribution = InstancesDistribution;
class LaunchTemplateSpecification extends core.Schema {
}
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], LaunchTemplateSpecification.prototype, "launchTemplateId", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __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 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 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 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 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 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(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(LaunchTemplateSpecification),
    __metadata("design:type", LaunchTemplateSpecification)
], Override.prototype, "launchTemplateSpecification", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Override.prototype, "weightedCapacity", void 0);
exports.Override = Override;
class MixedInstancesPolicyLaunchTemplate extends core.Schema {
}
__decorate([
    core.attr(LaunchTemplateSpecification),
    __metadata("design:type", LaunchTemplateSpecification)
], MixedInstancesPolicyLaunchTemplate.prototype, "launchTemplateSpecification", void 0);
__decorate([
    core.attr(Override, { kind: "array" }),
    __metadata("design:type", Object)
], MixedInstancesPolicyLaunchTemplate.prototype, "override", void 0);
exports.MixedInstancesPolicyLaunchTemplate = MixedInstancesPolicyLaunchTemplate;
class MixedInstancesPolicy extends core.Schema {
}
__decorate([
    core.attr(InstancesDistribution, { computed: true }),
    __metadata("design:type", InstancesDistribution)
], MixedInstancesPolicy.prototype, "instancesDistribution", void 0);
__decorate([
    core.attr(MixedInstancesPolicyLaunchTemplate),
    __metadata("design:type", MixedInstancesPolicyLaunchTemplate)
], MixedInstancesPolicy.prototype, "launchTemplate", void 0);
exports.MixedInstancesPolicy = MixedInstancesPolicy;
class LaunchTemplate extends core.Schema {
}
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], LaunchTemplate.prototype, "id", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], LaunchTemplate.prototype, "name", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], LaunchTemplate.prototype, "version", void 0);
exports.LaunchTemplate = LaunchTemplate;
class InitialLifecycleHook extends core.Schema {
}
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], InitialLifecycleHook.prototype, "defaultResult", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], InitialLifecycleHook.prototype, "heartbeatTimeout", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], InitialLifecycleHook.prototype, "lifecycleTransition", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], InitialLifecycleHook.prototype, "name", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], InitialLifecycleHook.prototype, "notificationMetadata", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], InitialLifecycleHook.prototype, "notificationTargetArn", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], InitialLifecycleHook.prototype, "roleArn", void 0);
exports.InitialLifecycleHook = InitialLifecycleHook;
class Tag extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Tag.prototype, "key", void 0);
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], Tag.prototype, "propagateAtLaunch", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Tag.prototype, "value", void 0);
exports.Tag = Tag;
class Preferences extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Preferences.prototype, "checkpointDelay", void 0);
__decorate([
    core.attr(Number, { kind: "array" }),
    __metadata("design:type", Object)
], Preferences.prototype, "checkpointPercentages", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Preferences.prototype, "instanceWarmup", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], Preferences.prototype, "minHealthyPercentage", void 0);
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], Preferences.prototype, "skipMatching", void 0);
exports.Preferences = Preferences;
class InstanceRefresh extends core.Schema {
}
__decorate([
    core.attr(Preferences),
    __metadata("design:type", Preferences)
], InstanceRefresh.prototype, "preferences", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], InstanceRefresh.prototype, "strategy", void 0);
__decorate([
    core.attr(String, { kind: "array" }),
    __metadata("design:type", Object)
], InstanceRefresh.prototype, "triggers", void 0);
exports.InstanceRefresh = InstanceRefresh;
class Group extends core.Resource {
    constructor(name, args) {
        super(name, "aws_autoscaling_group", args);
    }
    getNamespace() {
        return "aws_autoscaling";
    }
}
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], Group.prototype, "arn", void 0);
__decorate([
    core.attr(String, { computed: true, kind: "array" }),
    __metadata("design:type", Object)
], Group.prototype, "availabilityZones", void 0);
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], Group.prototype, "capacityRebalance", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Group.prototype, "context", void 0);
__decorate([
    core.attr(Number, { computed: true }),
    __metadata("design:type", Object)
], Group.prototype, "defaultCooldown", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], Group.prototype, "defaultInstanceWarmup", void 0);
__decorate([
    core.attr(Number, { computed: true }),
    __metadata("design:type", Object)
], Group.prototype, "desiredCapacity", void 0);
__decorate([
    core.attr(String, { kind: "array" }),
    __metadata("design:type", Object)
], Group.prototype, "enabledMetrics", void 0);
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], Group.prototype, "forceDelete", void 0);
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], Group.prototype, "forceDeleteWarmPool", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], Group.prototype, "healthCheckGracePeriod", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], Group.prototype, "healthCheckType", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], Group.prototype, "id", void 0);
__decorate([
    core.attr(InitialLifecycleHook, { kind: "array" }),
    __metadata("design:type", Object)
], Group.prototype, "initialLifecycleHook", void 0);
__decorate([
    core.attr(InstanceRefresh),
    __metadata("design:type", InstanceRefresh)
], Group.prototype, "instanceRefresh", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Group.prototype, "launchConfiguration", void 0);
__decorate([
    core.attr(LaunchTemplate),
    __metadata("design:type", LaunchTemplate)
], Group.prototype, "launchTemplate", void 0);
__decorate([
    core.attr(String, { kind: "array" }),
    __metadata("design:type", Object)
], Group.prototype, "loadBalancers", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], Group.prototype, "maxInstanceLifetime", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], Group.prototype, "maxSize", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Group.prototype, "metricsGranularity", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], Group.prototype, "minElbCapacity", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], Group.prototype, "minSize", void 0);
__decorate([
    core.attr(MixedInstancesPolicy),
    __metadata("design:type", MixedInstancesPolicy)
], Group.prototype, "mixedInstancesPolicy", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], Group.prototype, "name", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], Group.prototype, "namePrefix", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Group.prototype, "placementGroup", void 0);
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], Group.prototype, "protectFromScaleIn", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], Group.prototype, "serviceLinkedRoleArn", void 0);
__decorate([
    core.attr(String, { kind: "array" }),
    __metadata("design:type", Object)
], Group.prototype, "suspendedProcesses", void 0);
__decorate([
    core.attr(Tag, { kind: "array" }),
    __metadata("design:type", Object)
], Group.prototype, "tag", void 0);
__decorate([
    core.attr(String, { kind: "map_array" }),
    __metadata("design:type", Object)
], Group.prototype, "tags", void 0);
__decorate([
    core.attr(String, { kind: "array" }),
    __metadata("design:type", Object)
], Group.prototype, "targetGroupArns", void 0);
__decorate([
    core.attr(String, { kind: "array" }),
    __metadata("design:type", Object)
], Group.prototype, "terminationPolicies", void 0);
__decorate([
    core.attr(String, { computed: true, kind: "array" }),
    __metadata("design:type", Object)
], Group.prototype, "vpcZoneIdentifier", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Group.prototype, "waitForCapacityTimeout", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], Group.prototype, "waitForElbCapacity", void 0);
__decorate([
    core.attr(WarmPool),
    __metadata("design:type", WarmPool)
], Group.prototype, "warmPool", void 0);
exports.Group = Group;
//# sourceMappingURL=group.js.map