"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.DeploymentGroup = exports.Ec2TagSet = exports.Ec2TagFilter = exports.EcsService = exports.BlueGreenDeploymentConfig = exports.TerminateBlueInstancesOnDeploymentSuccess = exports.GreenFleetProvisioningOption = exports.DeploymentReadyOption = exports.DeploymentStyle = exports.LoadBalancerInfo = exports.TargetGroupPairInfo = exports.TestTrafficRoute = exports.TargetGroup = exports.ProdTrafficRoute = exports.TargetGroupInfo = exports.ElbInfo = exports.TriggerConfiguration = exports.AutoRollbackConfiguration = exports.AlarmConfiguration = exports.OnPremisesInstanceTagFilter = void 0;
const core = __importStar(require("@terrascript/core"));
class OnPremisesInstanceTagFilter extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], OnPremisesInstanceTagFilter.prototype, "key", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], OnPremisesInstanceTagFilter.prototype, "type", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], OnPremisesInstanceTagFilter.prototype, "value", void 0);
exports.OnPremisesInstanceTagFilter = OnPremisesInstanceTagFilter;
class AlarmConfiguration extends core.Schema {
}
__decorate([
    core.attr(String, { kind: "array" }),
    __metadata("design:type", Object)
], AlarmConfiguration.prototype, "alarms", void 0);
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], AlarmConfiguration.prototype, "enabled", void 0);
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], AlarmConfiguration.prototype, "ignorePollAlarmFailure", void 0);
exports.AlarmConfiguration = AlarmConfiguration;
class AutoRollbackConfiguration extends core.Schema {
}
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], AutoRollbackConfiguration.prototype, "enabled", void 0);
__decorate([
    core.attr(String, { kind: "array" }),
    __metadata("design:type", Object)
], AutoRollbackConfiguration.prototype, "events", void 0);
exports.AutoRollbackConfiguration = AutoRollbackConfiguration;
class TriggerConfiguration extends core.Schema {
}
__decorate([
    core.attr(String, { kind: "array" }),
    __metadata("design:type", Object)
], TriggerConfiguration.prototype, "triggerEvents", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], TriggerConfiguration.prototype, "triggerName", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], TriggerConfiguration.prototype, "triggerTargetArn", void 0);
exports.TriggerConfiguration = TriggerConfiguration;
class ElbInfo extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], ElbInfo.prototype, "name", void 0);
exports.ElbInfo = ElbInfo;
class TargetGroupInfo extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], TargetGroupInfo.prototype, "name", void 0);
exports.TargetGroupInfo = TargetGroupInfo;
class ProdTrafficRoute extends core.Schema {
}
__decorate([
    core.attr(String, { kind: "array" }),
    __metadata("design:type", Object)
], ProdTrafficRoute.prototype, "listenerArns", void 0);
exports.ProdTrafficRoute = ProdTrafficRoute;
class TargetGroup extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], TargetGroup.prototype, "name", void 0);
exports.TargetGroup = TargetGroup;
class TestTrafficRoute extends core.Schema {
}
__decorate([
    core.attr(String, { kind: "array" }),
    __metadata("design:type", Object)
], TestTrafficRoute.prototype, "listenerArns", void 0);
exports.TestTrafficRoute = TestTrafficRoute;
class TargetGroupPairInfo extends core.Schema {
}
__decorate([
    core.attr(ProdTrafficRoute),
    __metadata("design:type", ProdTrafficRoute)
], TargetGroupPairInfo.prototype, "prodTrafficRoute", void 0);
__decorate([
    core.attr(TargetGroup, { kind: "array" }),
    __metadata("design:type", Object)
], TargetGroupPairInfo.prototype, "targetGroup", void 0);
__decorate([
    core.attr(TestTrafficRoute),
    __metadata("design:type", TestTrafficRoute)
], TargetGroupPairInfo.prototype, "testTrafficRoute", void 0);
exports.TargetGroupPairInfo = TargetGroupPairInfo;
class LoadBalancerInfo extends core.Schema {
}
__decorate([
    core.attr(ElbInfo, { kind: "array" }),
    __metadata("design:type", Object)
], LoadBalancerInfo.prototype, "elbInfo", void 0);
__decorate([
    core.attr(TargetGroupInfo, { kind: "array" }),
    __metadata("design:type", Object)
], LoadBalancerInfo.prototype, "targetGroupInfo", void 0);
__decorate([
    core.attr(TargetGroupPairInfo),
    __metadata("design:type", TargetGroupPairInfo)
], LoadBalancerInfo.prototype, "targetGroupPairInfo", void 0);
exports.LoadBalancerInfo = LoadBalancerInfo;
class DeploymentStyle extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], DeploymentStyle.prototype, "deploymentOption", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], DeploymentStyle.prototype, "deploymentType", void 0);
exports.DeploymentStyle = DeploymentStyle;
class DeploymentReadyOption extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], DeploymentReadyOption.prototype, "actionOnTimeout", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], DeploymentReadyOption.prototype, "waitTimeInMinutes", void 0);
exports.DeploymentReadyOption = DeploymentReadyOption;
class GreenFleetProvisioningOption extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], GreenFleetProvisioningOption.prototype, "action", void 0);
exports.GreenFleetProvisioningOption = GreenFleetProvisioningOption;
class TerminateBlueInstancesOnDeploymentSuccess extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], TerminateBlueInstancesOnDeploymentSuccess.prototype, "action", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], TerminateBlueInstancesOnDeploymentSuccess.prototype, "terminationWaitTimeInMinutes", void 0);
exports.TerminateBlueInstancesOnDeploymentSuccess = TerminateBlueInstancesOnDeploymentSuccess;
class BlueGreenDeploymentConfig extends core.Schema {
}
__decorate([
    core.attr(DeploymentReadyOption),
    __metadata("design:type", DeploymentReadyOption)
], BlueGreenDeploymentConfig.prototype, "deploymentReadyOption", void 0);
__decorate([
    core.attr(GreenFleetProvisioningOption, { computed: true }),
    __metadata("design:type", GreenFleetProvisioningOption)
], BlueGreenDeploymentConfig.prototype, "greenFleetProvisioningOption", void 0);
__decorate([
    core.attr(TerminateBlueInstancesOnDeploymentSuccess),
    __metadata("design:type", TerminateBlueInstancesOnDeploymentSuccess)
], BlueGreenDeploymentConfig.prototype, "terminateBlueInstancesOnDeploymentSuccess", void 0);
exports.BlueGreenDeploymentConfig = BlueGreenDeploymentConfig;
class EcsService extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], EcsService.prototype, "clusterName", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], EcsService.prototype, "serviceName", void 0);
exports.EcsService = EcsService;
class Ec2TagFilter extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Ec2TagFilter.prototype, "key", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Ec2TagFilter.prototype, "type", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Ec2TagFilter.prototype, "value", void 0);
exports.Ec2TagFilter = Ec2TagFilter;
class Ec2TagSet extends core.Schema {
}
__decorate([
    core.attr(Ec2TagFilter, { kind: "array" }),
    __metadata("design:type", Object)
], Ec2TagSet.prototype, "ec2TagFilter", void 0);
exports.Ec2TagSet = Ec2TagSet;
class DeploymentGroup extends core.Resource {
    constructor(name, args) {
        super(name, "aws_codedeploy_deployment_group", args);
    }
    getNamespace() {
        return "aws_codedeploy";
    }
}
__decorate([
    core.attr(AlarmConfiguration),
    __metadata("design:type", AlarmConfiguration)
], DeploymentGroup.prototype, "alarmConfiguration", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], DeploymentGroup.prototype, "appName", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], DeploymentGroup.prototype, "arn", void 0);
__decorate([
    core.attr(AutoRollbackConfiguration),
    __metadata("design:type", AutoRollbackConfiguration)
], DeploymentGroup.prototype, "autoRollbackConfiguration", void 0);
__decorate([
    core.attr(String, { kind: "array" }),
    __metadata("design:type", Object)
], DeploymentGroup.prototype, "autoscalingGroups", void 0);
__decorate([
    core.attr(BlueGreenDeploymentConfig, { computed: true }),
    __metadata("design:type", BlueGreenDeploymentConfig)
], DeploymentGroup.prototype, "blueGreenDeploymentConfig", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], DeploymentGroup.prototype, "computePlatform", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], DeploymentGroup.prototype, "deploymentConfigName", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], DeploymentGroup.prototype, "deploymentGroupId", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], DeploymentGroup.prototype, "deploymentGroupName", void 0);
__decorate([
    core.attr(DeploymentStyle),
    __metadata("design:type", DeploymentStyle)
], DeploymentGroup.prototype, "deploymentStyle", void 0);
__decorate([
    core.attr(Ec2TagFilter, { kind: "array" }),
    __metadata("design:type", Object)
], DeploymentGroup.prototype, "ec2TagFilter", void 0);
__decorate([
    core.attr(Ec2TagSet, { kind: "array" }),
    __metadata("design:type", Object)
], DeploymentGroup.prototype, "ec2TagSet", void 0);
__decorate([
    core.attr(EcsService),
    __metadata("design:type", EcsService)
], DeploymentGroup.prototype, "ecsService", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], DeploymentGroup.prototype, "id", void 0);
__decorate([
    core.attr(LoadBalancerInfo),
    __metadata("design:type", LoadBalancerInfo)
], DeploymentGroup.prototype, "loadBalancerInfo", void 0);
__decorate([
    core.attr(OnPremisesInstanceTagFilter, { kind: "array" }),
    __metadata("design:type", Object)
], DeploymentGroup.prototype, "onPremisesInstanceTagFilter", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], DeploymentGroup.prototype, "serviceRoleArn", void 0);
__decorate([
    core.attr(String, { kind: "map" }),
    __metadata("design:type", Object)
], DeploymentGroup.prototype, "tags", void 0);
__decorate([
    core.attr(String, { computed: true, kind: "map" }),
    __metadata("design:type", Object)
], DeploymentGroup.prototype, "tagsAll", void 0);
__decorate([
    core.attr(TriggerConfiguration, { kind: "array" }),
    __metadata("design:type", Object)
], DeploymentGroup.prototype, "triggerConfiguration", void 0);
exports.DeploymentGroup = DeploymentGroup;
//# sourceMappingURL=deployment_group.js.map