"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.Cluster = exports.CoreInstanceGroup = exports.KerberosAttributes = exports.Ec2Attributes = exports.Step = exports.HadoopJarStep = exports.CoreInstanceFleet = exports.MasterInstanceGroup = exports.MasterInstanceGroupEbsConfig = exports.AutoTerminationPolicy = exports.BootstrapAction = exports.MasterInstanceFleet = exports.LaunchSpecifications = exports.SpotSpecification = exports.OnDemandSpecification = exports.InstanceTypeConfigs = exports.InstanceTypeConfigsEbsConfig = exports.Configurations = void 0;
const core = __importStar(require("@terrascript/core"));
class Configurations extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Configurations.prototype, "classification", void 0);
__decorate([
    core.attr(String, { kind: "map" }),
    __metadata("design:type", Object)
], Configurations.prototype, "properties", void 0);
exports.Configurations = Configurations;
class InstanceTypeConfigsEbsConfig extends core.Schema {
}
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], InstanceTypeConfigsEbsConfig.prototype, "iops", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], InstanceTypeConfigsEbsConfig.prototype, "size", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], InstanceTypeConfigsEbsConfig.prototype, "type", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], InstanceTypeConfigsEbsConfig.prototype, "volumesPerInstance", void 0);
exports.InstanceTypeConfigsEbsConfig = InstanceTypeConfigsEbsConfig;
class InstanceTypeConfigs extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], InstanceTypeConfigs.prototype, "bidPrice", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], InstanceTypeConfigs.prototype, "bidPriceAsPercentageOfOnDemandPrice", void 0);
__decorate([
    core.attr(Configurations, { kind: "array" }),
    __metadata("design:type", Object)
], InstanceTypeConfigs.prototype, "configurations", void 0);
__decorate([
    core.attr(InstanceTypeConfigsEbsConfig, { computed: true, kind: "array" }),
    __metadata("design:type", Object)
], InstanceTypeConfigs.prototype, "ebsConfig", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], InstanceTypeConfigs.prototype, "instanceType", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], InstanceTypeConfigs.prototype, "weightedCapacity", void 0);
exports.InstanceTypeConfigs = InstanceTypeConfigs;
class OnDemandSpecification extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], OnDemandSpecification.prototype, "allocationStrategy", void 0);
exports.OnDemandSpecification = OnDemandSpecification;
class SpotSpecification extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], SpotSpecification.prototype, "allocationStrategy", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], SpotSpecification.prototype, "blockDurationMinutes", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], SpotSpecification.prototype, "timeoutAction", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], SpotSpecification.prototype, "timeoutDurationMinutes", void 0);
exports.SpotSpecification = SpotSpecification;
class LaunchSpecifications extends core.Schema {
}
__decorate([
    core.attr(OnDemandSpecification, { kind: "array" }),
    __metadata("design:type", Object)
], LaunchSpecifications.prototype, "onDemandSpecification", void 0);
__decorate([
    core.attr(SpotSpecification, { kind: "array" }),
    __metadata("design:type", Object)
], LaunchSpecifications.prototype, "spotSpecification", void 0);
exports.LaunchSpecifications = LaunchSpecifications;
class MasterInstanceFleet extends core.Schema {
}
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], MasterInstanceFleet.prototype, "id", void 0);
__decorate([
    core.attr(InstanceTypeConfigs, { kind: "array" }),
    __metadata("design:type", Object)
], MasterInstanceFleet.prototype, "instanceTypeConfigs", void 0);
__decorate([
    core.attr(LaunchSpecifications),
    __metadata("design:type", LaunchSpecifications)
], MasterInstanceFleet.prototype, "launchSpecifications", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], MasterInstanceFleet.prototype, "name", void 0);
__decorate([
    core.attr(Number, { computed: true }),
    __metadata("design:type", Object)
], MasterInstanceFleet.prototype, "provisionedOnDemandCapacity", void 0);
__decorate([
    core.attr(Number, { computed: true }),
    __metadata("design:type", Object)
], MasterInstanceFleet.prototype, "provisionedSpotCapacity", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], MasterInstanceFleet.prototype, "targetOnDemandCapacity", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], MasterInstanceFleet.prototype, "targetSpotCapacity", void 0);
exports.MasterInstanceFleet = MasterInstanceFleet;
class BootstrapAction extends core.Schema {
}
__decorate([
    core.attr(String, { kind: "array" }),
    __metadata("design:type", Object)
], BootstrapAction.prototype, "args", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], BootstrapAction.prototype, "name", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], BootstrapAction.prototype, "path", void 0);
exports.BootstrapAction = BootstrapAction;
class AutoTerminationPolicy extends core.Schema {
}
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], AutoTerminationPolicy.prototype, "idleTimeout", void 0);
exports.AutoTerminationPolicy = AutoTerminationPolicy;
class MasterInstanceGroupEbsConfig extends core.Schema {
}
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], MasterInstanceGroupEbsConfig.prototype, "iops", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], MasterInstanceGroupEbsConfig.prototype, "size", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], MasterInstanceGroupEbsConfig.prototype, "throughput", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], MasterInstanceGroupEbsConfig.prototype, "type", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], MasterInstanceGroupEbsConfig.prototype, "volumesPerInstance", void 0);
exports.MasterInstanceGroupEbsConfig = MasterInstanceGroupEbsConfig;
class MasterInstanceGroup extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], MasterInstanceGroup.prototype, "bidPrice", void 0);
__decorate([
    core.attr(MasterInstanceGroupEbsConfig, { computed: true, kind: "array" }),
    __metadata("design:type", Object)
], MasterInstanceGroup.prototype, "ebsConfig", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], MasterInstanceGroup.prototype, "id", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], MasterInstanceGroup.prototype, "instanceCount", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], MasterInstanceGroup.prototype, "instanceType", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], MasterInstanceGroup.prototype, "name", void 0);
exports.MasterInstanceGroup = MasterInstanceGroup;
class CoreInstanceFleet extends core.Schema {
}
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], CoreInstanceFleet.prototype, "id", void 0);
__decorate([
    core.attr(InstanceTypeConfigs, { kind: "array" }),
    __metadata("design:type", Object)
], CoreInstanceFleet.prototype, "instanceTypeConfigs", void 0);
__decorate([
    core.attr(LaunchSpecifications),
    __metadata("design:type", LaunchSpecifications)
], CoreInstanceFleet.prototype, "launchSpecifications", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], CoreInstanceFleet.prototype, "name", void 0);
__decorate([
    core.attr(Number, { computed: true }),
    __metadata("design:type", Object)
], CoreInstanceFleet.prototype, "provisionedOnDemandCapacity", void 0);
__decorate([
    core.attr(Number, { computed: true }),
    __metadata("design:type", Object)
], CoreInstanceFleet.prototype, "provisionedSpotCapacity", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], CoreInstanceFleet.prototype, "targetOnDemandCapacity", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], CoreInstanceFleet.prototype, "targetSpotCapacity", void 0);
exports.CoreInstanceFleet = CoreInstanceFleet;
class HadoopJarStep extends core.Schema {
}
__decorate([
    core.attr(String, { kind: "array" }),
    __metadata("design:type", Object)
], HadoopJarStep.prototype, "args", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], HadoopJarStep.prototype, "jar", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], HadoopJarStep.prototype, "mainClass", void 0);
__decorate([
    core.attr(String, { kind: "map" }),
    __metadata("design:type", Object)
], HadoopJarStep.prototype, "properties", void 0);
exports.HadoopJarStep = HadoopJarStep;
class Step extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Step.prototype, "actionOnFailure", void 0);
__decorate([
    core.attr(HadoopJarStep),
    __metadata("design:type", HadoopJarStep)
], Step.prototype, "hadoopJarStep", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Step.prototype, "name", void 0);
exports.Step = Step;
class Ec2Attributes extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Ec2Attributes.prototype, "additionalMasterSecurityGroups", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Ec2Attributes.prototype, "additionalSlaveSecurityGroups", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], Ec2Attributes.prototype, "emrManagedMasterSecurityGroup", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], Ec2Attributes.prototype, "emrManagedSlaveSecurityGroup", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Ec2Attributes.prototype, "instanceProfile", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Ec2Attributes.prototype, "keyName", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], Ec2Attributes.prototype, "serviceAccessSecurityGroup", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], Ec2Attributes.prototype, "subnetId", void 0);
__decorate([
    core.attr(String, { computed: true, kind: "array" }),
    __metadata("design:type", Object)
], Ec2Attributes.prototype, "subnetIds", void 0);
exports.Ec2Attributes = Ec2Attributes;
class KerberosAttributes extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], KerberosAttributes.prototype, "adDomainJoinPassword", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], KerberosAttributes.prototype, "adDomainJoinUser", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], KerberosAttributes.prototype, "crossRealmTrustPrincipalPassword", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], KerberosAttributes.prototype, "kdcAdminPassword", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], KerberosAttributes.prototype, "realm", void 0);
exports.KerberosAttributes = KerberosAttributes;
class CoreInstanceGroup extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], CoreInstanceGroup.prototype, "autoscalingPolicy", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], CoreInstanceGroup.prototype, "bidPrice", void 0);
__decorate([
    core.attr(MasterInstanceGroupEbsConfig, { computed: true, kind: "array" }),
    __metadata("design:type", Object)
], CoreInstanceGroup.prototype, "ebsConfig", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], CoreInstanceGroup.prototype, "id", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], CoreInstanceGroup.prototype, "instanceCount", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], CoreInstanceGroup.prototype, "instanceType", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], CoreInstanceGroup.prototype, "name", void 0);
exports.CoreInstanceGroup = CoreInstanceGroup;
class Cluster extends core.Resource {
    constructor(name, args) {
        super(name, "aws_emr_cluster", args);
    }
    getNamespace() {
        return "aws_emr";
    }
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Cluster.prototype, "additionalInfo", void 0);
__decorate([
    core.attr(String, { kind: "array" }),
    __metadata("design:type", Object)
], Cluster.prototype, "applications", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], Cluster.prototype, "arn", void 0);
__decorate([
    core.attr(AutoTerminationPolicy),
    __metadata("design:type", AutoTerminationPolicy)
], Cluster.prototype, "autoTerminationPolicy", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Cluster.prototype, "autoscalingRole", void 0);
__decorate([
    core.attr(BootstrapAction, { kind: "array" }),
    __metadata("design:type", Object)
], Cluster.prototype, "bootstrapAction", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], Cluster.prototype, "clusterState", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Cluster.prototype, "configurations", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Cluster.prototype, "configurationsJson", void 0);
__decorate([
    core.attr(CoreInstanceFleet, { computed: true }),
    __metadata("design:type", CoreInstanceFleet)
], Cluster.prototype, "coreInstanceFleet", void 0);
__decorate([
    core.attr(CoreInstanceGroup, { computed: true }),
    __metadata("design:type", CoreInstanceGroup)
], Cluster.prototype, "coreInstanceGroup", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Cluster.prototype, "customAmiId", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], Cluster.prototype, "ebsRootVolumeSize", void 0);
__decorate([
    core.attr(Ec2Attributes),
    __metadata("design:type", Ec2Attributes)
], Cluster.prototype, "ec2Attributes", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], Cluster.prototype, "id", void 0);
__decorate([
    core.attr(Boolean, { computed: true }),
    __metadata("design:type", Object)
], Cluster.prototype, "keepJobFlowAliveWhenNoSteps", void 0);
__decorate([
    core.attr(KerberosAttributes),
    __metadata("design:type", KerberosAttributes)
], Cluster.prototype, "kerberosAttributes", void 0);
__decorate([
    core.attr(String, { kind: "array" }),
    __metadata("design:type", Object)
], Cluster.prototype, "listStepsStates", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Cluster.prototype, "logEncryptionKmsKeyId", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Cluster.prototype, "logUri", void 0);
__decorate([
    core.attr(MasterInstanceFleet, { computed: true }),
    __metadata("design:type", MasterInstanceFleet)
], Cluster.prototype, "masterInstanceFleet", void 0);
__decorate([
    core.attr(MasterInstanceGroup, { computed: true }),
    __metadata("design:type", MasterInstanceGroup)
], Cluster.prototype, "masterInstanceGroup", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], Cluster.prototype, "masterPublicDns", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Cluster.prototype, "name", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Cluster.prototype, "releaseLabel", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], Cluster.prototype, "scaleDownBehavior", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Cluster.prototype, "securityConfiguration", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Cluster.prototype, "serviceRole", void 0);
__decorate([
    core.attr(Step, { computed: true, kind: "array" }),
    __metadata("design:type", Object)
], Cluster.prototype, "step", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], Cluster.prototype, "stepConcurrencyLevel", void 0);
__decorate([
    core.attr(String, { kind: "map" }),
    __metadata("design:type", Object)
], Cluster.prototype, "tags", void 0);
__decorate([
    core.attr(String, { computed: true, kind: "map" }),
    __metadata("design:type", Object)
], Cluster.prototype, "tagsAll", void 0);
__decorate([
    core.attr(Boolean, { computed: true }),
    __metadata("design:type", Object)
], Cluster.prototype, "terminationProtection", void 0);
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], Cluster.prototype, "visibleToAllUsers", void 0);
exports.Cluster = Cluster;
//# sourceMappingURL=cluster.js.map