"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.Policy = exports.PredictiveScalingConfiguration = exports.MetricSpecification = exports.PredefinedScalingMetricSpecification = exports.PredefinedMetricPairSpecification = exports.PredefinedLoadMetricSpecification = exports.CustomizedScalingMetricSpecification = exports.CustomizedLoadMetricSpecification = exports.CustomizedCapacityMetricSpecification = exports.MetricDataQueries = exports.MetricStat = exports.Metric = exports.Dimensions = exports.StepAdjustment = exports.TargetTrackingConfiguration = exports.CustomizedMetricSpecification = exports.MetricDimension = exports.PredefinedMetricSpecification = void 0;
const core = __importStar(require("@terrascript/core"));
class PredefinedMetricSpecification extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], PredefinedMetricSpecification.prototype, "predefinedMetricType", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], PredefinedMetricSpecification.prototype, "resourceLabel", void 0);
exports.PredefinedMetricSpecification = PredefinedMetricSpecification;
class MetricDimension extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], MetricDimension.prototype, "name", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], MetricDimension.prototype, "value", void 0);
exports.MetricDimension = MetricDimension;
class CustomizedMetricSpecification extends core.Schema {
}
__decorate([
    core.attr(MetricDimension, { kind: "array" }),
    __metadata("design:type", Object)
], CustomizedMetricSpecification.prototype, "metricDimension", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], CustomizedMetricSpecification.prototype, "metricName", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], CustomizedMetricSpecification.prototype, "namespace", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], CustomizedMetricSpecification.prototype, "statistic", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], CustomizedMetricSpecification.prototype, "unit", void 0);
exports.CustomizedMetricSpecification = CustomizedMetricSpecification;
class TargetTrackingConfiguration extends core.Schema {
}
__decorate([
    core.attr(CustomizedMetricSpecification),
    __metadata("design:type", CustomizedMetricSpecification)
], TargetTrackingConfiguration.prototype, "customizedMetricSpecification", void 0);
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], TargetTrackingConfiguration.prototype, "disableScaleIn", void 0);
__decorate([
    core.attr(PredefinedMetricSpecification),
    __metadata("design:type", PredefinedMetricSpecification)
], TargetTrackingConfiguration.prototype, "predefinedMetricSpecification", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], TargetTrackingConfiguration.prototype, "targetValue", void 0);
exports.TargetTrackingConfiguration = TargetTrackingConfiguration;
class StepAdjustment extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], StepAdjustment.prototype, "metricIntervalLowerBound", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], StepAdjustment.prototype, "metricIntervalUpperBound", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], StepAdjustment.prototype, "scalingAdjustment", void 0);
exports.StepAdjustment = StepAdjustment;
class Dimensions extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Dimensions.prototype, "name", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Dimensions.prototype, "value", void 0);
exports.Dimensions = Dimensions;
class Metric extends core.Schema {
}
__decorate([
    core.attr(Dimensions, { kind: "array" }),
    __metadata("design:type", Object)
], Metric.prototype, "dimensions", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Metric.prototype, "metricName", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Metric.prototype, "namespace", void 0);
exports.Metric = Metric;
class MetricStat extends core.Schema {
}
__decorate([
    core.attr(Metric),
    __metadata("design:type", Metric)
], MetricStat.prototype, "metric", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], MetricStat.prototype, "stat", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], MetricStat.prototype, "unit", void 0);
exports.MetricStat = MetricStat;
class MetricDataQueries extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], MetricDataQueries.prototype, "expression", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], MetricDataQueries.prototype, "id", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], MetricDataQueries.prototype, "label", void 0);
__decorate([
    core.attr(MetricStat),
    __metadata("design:type", MetricStat)
], MetricDataQueries.prototype, "metricStat", void 0);
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], MetricDataQueries.prototype, "returnData", void 0);
exports.MetricDataQueries = MetricDataQueries;
class CustomizedCapacityMetricSpecification extends core.Schema {
}
__decorate([
    core.attr(MetricDataQueries, { kind: "array" }),
    __metadata("design:type", Object)
], CustomizedCapacityMetricSpecification.prototype, "metricDataQueries", void 0);
exports.CustomizedCapacityMetricSpecification = CustomizedCapacityMetricSpecification;
class CustomizedLoadMetricSpecification extends core.Schema {
}
__decorate([
    core.attr(MetricDataQueries, { kind: "array" }),
    __metadata("design:type", Object)
], CustomizedLoadMetricSpecification.prototype, "metricDataQueries", void 0);
exports.CustomizedLoadMetricSpecification = CustomizedLoadMetricSpecification;
class CustomizedScalingMetricSpecification extends core.Schema {
}
__decorate([
    core.attr(MetricDataQueries, { kind: "array" }),
    __metadata("design:type", Object)
], CustomizedScalingMetricSpecification.prototype, "metricDataQueries", void 0);
exports.CustomizedScalingMetricSpecification = CustomizedScalingMetricSpecification;
class PredefinedLoadMetricSpecification extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], PredefinedLoadMetricSpecification.prototype, "predefinedMetricType", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], PredefinedLoadMetricSpecification.prototype, "resourceLabel", void 0);
exports.PredefinedLoadMetricSpecification = PredefinedLoadMetricSpecification;
class PredefinedMetricPairSpecification extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], PredefinedMetricPairSpecification.prototype, "predefinedMetricType", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], PredefinedMetricPairSpecification.prototype, "resourceLabel", void 0);
exports.PredefinedMetricPairSpecification = PredefinedMetricPairSpecification;
class PredefinedScalingMetricSpecification extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], PredefinedScalingMetricSpecification.prototype, "predefinedMetricType", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], PredefinedScalingMetricSpecification.prototype, "resourceLabel", void 0);
exports.PredefinedScalingMetricSpecification = PredefinedScalingMetricSpecification;
class MetricSpecification extends core.Schema {
}
__decorate([
    core.attr(CustomizedCapacityMetricSpecification),
    __metadata("design:type", CustomizedCapacityMetricSpecification)
], MetricSpecification.prototype, "customizedCapacityMetricSpecification", void 0);
__decorate([
    core.attr(CustomizedLoadMetricSpecification),
    __metadata("design:type", CustomizedLoadMetricSpecification)
], MetricSpecification.prototype, "customizedLoadMetricSpecification", void 0);
__decorate([
    core.attr(CustomizedScalingMetricSpecification),
    __metadata("design:type", CustomizedScalingMetricSpecification)
], MetricSpecification.prototype, "customizedScalingMetricSpecification", void 0);
__decorate([
    core.attr(PredefinedLoadMetricSpecification),
    __metadata("design:type", PredefinedLoadMetricSpecification)
], MetricSpecification.prototype, "predefinedLoadMetricSpecification", void 0);
__decorate([
    core.attr(PredefinedMetricPairSpecification),
    __metadata("design:type", PredefinedMetricPairSpecification)
], MetricSpecification.prototype, "predefinedMetricPairSpecification", void 0);
__decorate([
    core.attr(PredefinedScalingMetricSpecification),
    __metadata("design:type", PredefinedScalingMetricSpecification)
], MetricSpecification.prototype, "predefinedScalingMetricSpecification", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], MetricSpecification.prototype, "targetValue", void 0);
exports.MetricSpecification = MetricSpecification;
class PredictiveScalingConfiguration extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], PredictiveScalingConfiguration.prototype, "maxCapacityBreachBehavior", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], PredictiveScalingConfiguration.prototype, "maxCapacityBuffer", void 0);
__decorate([
    core.attr(MetricSpecification),
    __metadata("design:type", MetricSpecification)
], PredictiveScalingConfiguration.prototype, "metricSpecification", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], PredictiveScalingConfiguration.prototype, "mode", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], PredictiveScalingConfiguration.prototype, "schedulingBufferTime", void 0);
exports.PredictiveScalingConfiguration = PredictiveScalingConfiguration;
class Policy extends core.Resource {
    constructor(name, args) {
        super(name, "aws_autoscaling_policy", args);
    }
    getNamespace() {
        return "aws_autoscaling";
    }
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Policy.prototype, "adjustmentType", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], Policy.prototype, "arn", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Policy.prototype, "autoscalingGroupName", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], Policy.prototype, "cooldown", void 0);
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], Policy.prototype, "enabled", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], Policy.prototype, "estimatedInstanceWarmup", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], Policy.prototype, "id", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], Policy.prototype, "metricAggregationType", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], Policy.prototype, "minAdjustmentMagnitude", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Policy.prototype, "name", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Policy.prototype, "policyType", void 0);
__decorate([
    core.attr(PredictiveScalingConfiguration),
    __metadata("design:type", PredictiveScalingConfiguration)
], Policy.prototype, "predictiveScalingConfiguration", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], Policy.prototype, "scalingAdjustment", void 0);
__decorate([
    core.attr(StepAdjustment, { kind: "array" }),
    __metadata("design:type", Object)
], Policy.prototype, "stepAdjustment", void 0);
__decorate([
    core.attr(TargetTrackingConfiguration),
    __metadata("design:type", TargetTrackingConfiguration)
], Policy.prototype, "targetTrackingConfiguration", void 0);
exports.Policy = Policy;
//# sourceMappingURL=policy.js.map