"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.AppautoscalingPolicy = exports.TargetTrackingScalingPolicyConfiguration = exports.PredefinedMetricSpecification = exports.CustomizedMetricSpecification = exports.Dimensions = exports.StepScalingPolicyConfiguration = exports.StepAdjustment = void 0;
const core = __importStar(require("@terrascript/core"));
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 StepScalingPolicyConfiguration extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], StepScalingPolicyConfiguration.prototype, "adjustmentType", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], StepScalingPolicyConfiguration.prototype, "cooldown", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], StepScalingPolicyConfiguration.prototype, "metricAggregationType", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], StepScalingPolicyConfiguration.prototype, "minAdjustmentMagnitude", void 0);
__decorate([
    core.attr(StepAdjustment, { kind: "array" }),
    __metadata("design:type", Object)
], StepScalingPolicyConfiguration.prototype, "stepAdjustment", void 0);
exports.StepScalingPolicyConfiguration = StepScalingPolicyConfiguration;
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 CustomizedMetricSpecification extends core.Schema {
}
__decorate([
    core.attr(Dimensions, { kind: "array" }),
    __metadata("design:type", Object)
], CustomizedMetricSpecification.prototype, "dimensions", 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 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 TargetTrackingScalingPolicyConfiguration extends core.Schema {
}
__decorate([
    core.attr(CustomizedMetricSpecification),
    __metadata("design:type", CustomizedMetricSpecification)
], TargetTrackingScalingPolicyConfiguration.prototype, "customizedMetricSpecification", void 0);
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], TargetTrackingScalingPolicyConfiguration.prototype, "disableScaleIn", void 0);
__decorate([
    core.attr(PredefinedMetricSpecification),
    __metadata("design:type", PredefinedMetricSpecification)
], TargetTrackingScalingPolicyConfiguration.prototype, "predefinedMetricSpecification", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], TargetTrackingScalingPolicyConfiguration.prototype, "scaleInCooldown", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], TargetTrackingScalingPolicyConfiguration.prototype, "scaleOutCooldown", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], TargetTrackingScalingPolicyConfiguration.prototype, "targetValue", void 0);
exports.TargetTrackingScalingPolicyConfiguration = TargetTrackingScalingPolicyConfiguration;
class AppautoscalingPolicy extends core.Resource {
    constructor(name, args) {
        super(name, "aws_appautoscaling_policy", args);
    }
    getNamespace() {
        return "aws_application_auto_scaling";
    }
}
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], AppautoscalingPolicy.prototype, "arn", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], AppautoscalingPolicy.prototype, "id", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], AppautoscalingPolicy.prototype, "name", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], AppautoscalingPolicy.prototype, "policyType", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], AppautoscalingPolicy.prototype, "resourceId", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], AppautoscalingPolicy.prototype, "scalableDimension", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], AppautoscalingPolicy.prototype, "serviceNamespace", void 0);
__decorate([
    core.attr(StepScalingPolicyConfiguration),
    __metadata("design:type", StepScalingPolicyConfiguration)
], AppautoscalingPolicy.prototype, "stepScalingPolicyConfiguration", void 0);
__decorate([
    core.attr(TargetTrackingScalingPolicyConfiguration),
    __metadata("design:type", TargetTrackingScalingPolicyConfiguration)
], AppautoscalingPolicy.prototype, "targetTrackingScalingPolicyConfiguration", void 0);
exports.AppautoscalingPolicy = AppautoscalingPolicy;
//# sourceMappingURL=appautoscaling_policy.js.map