"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.Domain = exports.SnapshotOptions = exports.DomainEndpointOptions = exports.ClusterConfig = exports.ColdStorageOptions = exports.ZoneAwarenessConfig = exports.CognitoOptions = exports.AutoTuneOptions = exports.MaintenanceSchedule = exports.Duration = exports.AdvancedSecurityOptions = exports.MasterUserOptions = exports.LogPublishingOptions = exports.EbsOptions = exports.VpcOptions = exports.NodeToNodeEncryption = exports.EncryptAtRest = void 0;
const core = __importStar(require("@terrascript/core"));
class EncryptAtRest extends core.Schema {
}
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], EncryptAtRest.prototype, "enabled", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], EncryptAtRest.prototype, "kmsKeyId", void 0);
exports.EncryptAtRest = EncryptAtRest;
class NodeToNodeEncryption extends core.Schema {
}
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], NodeToNodeEncryption.prototype, "enabled", void 0);
exports.NodeToNodeEncryption = NodeToNodeEncryption;
class VpcOptions extends core.Schema {
}
__decorate([
    core.attr(String, { computed: true, kind: "array" }),
    __metadata("design:type", Object)
], VpcOptions.prototype, "availabilityZones", void 0);
__decorate([
    core.attr(String, { kind: "array" }),
    __metadata("design:type", Object)
], VpcOptions.prototype, "securityGroupIds", void 0);
__decorate([
    core.attr(String, { kind: "array" }),
    __metadata("design:type", Object)
], VpcOptions.prototype, "subnetIds", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], VpcOptions.prototype, "vpcId", void 0);
exports.VpcOptions = VpcOptions;
class EbsOptions extends core.Schema {
}
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], EbsOptions.prototype, "ebsEnabled", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], EbsOptions.prototype, "iops", void 0);
__decorate([
    core.attr(Number, { computed: true }),
    __metadata("design:type", Object)
], EbsOptions.prototype, "throughput", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], EbsOptions.prototype, "volumeSize", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], EbsOptions.prototype, "volumeType", void 0);
exports.EbsOptions = EbsOptions;
class LogPublishingOptions extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], LogPublishingOptions.prototype, "cloudwatchLogGroupArn", void 0);
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], LogPublishingOptions.prototype, "enabled", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], LogPublishingOptions.prototype, "logType", void 0);
exports.LogPublishingOptions = LogPublishingOptions;
class MasterUserOptions extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], MasterUserOptions.prototype, "masterUserArn", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], MasterUserOptions.prototype, "masterUserName", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], MasterUserOptions.prototype, "masterUserPassword", void 0);
exports.MasterUserOptions = MasterUserOptions;
class AdvancedSecurityOptions extends core.Schema {
}
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], AdvancedSecurityOptions.prototype, "enabled", void 0);
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], AdvancedSecurityOptions.prototype, "internalUserDatabaseEnabled", void 0);
__decorate([
    core.attr(MasterUserOptions),
    __metadata("design:type", MasterUserOptions)
], AdvancedSecurityOptions.prototype, "masterUserOptions", void 0);
exports.AdvancedSecurityOptions = AdvancedSecurityOptions;
class Duration extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Duration.prototype, "unit", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], Duration.prototype, "value", void 0);
exports.Duration = Duration;
class MaintenanceSchedule extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], MaintenanceSchedule.prototype, "cronExpressionForRecurrence", void 0);
__decorate([
    core.attr(Duration),
    __metadata("design:type", Duration)
], MaintenanceSchedule.prototype, "duration", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], MaintenanceSchedule.prototype, "startAt", void 0);
exports.MaintenanceSchedule = MaintenanceSchedule;
class AutoTuneOptions extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], AutoTuneOptions.prototype, "desiredState", void 0);
__decorate([
    core.attr(MaintenanceSchedule, { computed: true, kind: "array" }),
    __metadata("design:type", Object)
], AutoTuneOptions.prototype, "maintenanceSchedule", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], AutoTuneOptions.prototype, "rollbackOnDisable", void 0);
exports.AutoTuneOptions = AutoTuneOptions;
class CognitoOptions extends core.Schema {
}
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], CognitoOptions.prototype, "enabled", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], CognitoOptions.prototype, "identityPoolId", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], CognitoOptions.prototype, "roleArn", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], CognitoOptions.prototype, "userPoolId", void 0);
exports.CognitoOptions = CognitoOptions;
class ZoneAwarenessConfig extends core.Schema {
}
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], ZoneAwarenessConfig.prototype, "availabilityZoneCount", void 0);
exports.ZoneAwarenessConfig = ZoneAwarenessConfig;
class ColdStorageOptions extends core.Schema {
}
__decorate([
    core.attr(Boolean, { computed: true }),
    __metadata("design:type", Object)
], ColdStorageOptions.prototype, "enabled", void 0);
exports.ColdStorageOptions = ColdStorageOptions;
class ClusterConfig extends core.Schema {
}
__decorate([
    core.attr(ColdStorageOptions, { computed: true }),
    __metadata("design:type", ColdStorageOptions)
], ClusterConfig.prototype, "coldStorageOptions", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], ClusterConfig.prototype, "dedicatedMasterCount", void 0);
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], ClusterConfig.prototype, "dedicatedMasterEnabled", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], ClusterConfig.prototype, "dedicatedMasterType", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], ClusterConfig.prototype, "instanceCount", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], ClusterConfig.prototype, "instanceType", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], ClusterConfig.prototype, "warmCount", void 0);
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], ClusterConfig.prototype, "warmEnabled", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], ClusterConfig.prototype, "warmType", void 0);
__decorate([
    core.attr(ZoneAwarenessConfig),
    __metadata("design:type", ZoneAwarenessConfig)
], ClusterConfig.prototype, "zoneAwarenessConfig", void 0);
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], ClusterConfig.prototype, "zoneAwarenessEnabled", void 0);
exports.ClusterConfig = ClusterConfig;
class DomainEndpointOptions extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], DomainEndpointOptions.prototype, "customEndpoint", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], DomainEndpointOptions.prototype, "customEndpointCertificateArn", void 0);
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], DomainEndpointOptions.prototype, "customEndpointEnabled", void 0);
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], DomainEndpointOptions.prototype, "enforceHttps", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], DomainEndpointOptions.prototype, "tlsSecurityPolicy", void 0);
exports.DomainEndpointOptions = DomainEndpointOptions;
class SnapshotOptions extends core.Schema {
}
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], SnapshotOptions.prototype, "automatedSnapshotStartHour", void 0);
exports.SnapshotOptions = SnapshotOptions;
class Domain extends core.Resource {
    constructor(name, args) {
        super(name, "aws_elasticsearch_domain", args);
    }
    getNamespace() {
        return "aws_elasticsearch";
    }
}
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], Domain.prototype, "accessPolicies", void 0);
__decorate([
    core.attr(String, { computed: true, kind: "map" }),
    __metadata("design:type", Object)
], Domain.prototype, "advancedOptions", void 0);
__decorate([
    core.attr(AdvancedSecurityOptions, { computed: true }),
    __metadata("design:type", AdvancedSecurityOptions)
], Domain.prototype, "advancedSecurityOptions", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], Domain.prototype, "arn", void 0);
__decorate([
    core.attr(AutoTuneOptions, { computed: true }),
    __metadata("design:type", AutoTuneOptions)
], Domain.prototype, "autoTuneOptions", void 0);
__decorate([
    core.attr(ClusterConfig, { computed: true }),
    __metadata("design:type", ClusterConfig)
], Domain.prototype, "clusterConfig", void 0);
__decorate([
    core.attr(CognitoOptions),
    __metadata("design:type", CognitoOptions)
], Domain.prototype, "cognitoOptions", void 0);
__decorate([
    core.attr(DomainEndpointOptions, { computed: true }),
    __metadata("design:type", DomainEndpointOptions)
], Domain.prototype, "domainEndpointOptions", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], Domain.prototype, "domainId", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Domain.prototype, "domainName", void 0);
__decorate([
    core.attr(EbsOptions, { computed: true }),
    __metadata("design:type", EbsOptions)
], Domain.prototype, "ebsOptions", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Domain.prototype, "elasticsearchVersion", void 0);
__decorate([
    core.attr(EncryptAtRest, { computed: true }),
    __metadata("design:type", EncryptAtRest)
], Domain.prototype, "encryptAtRest", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], Domain.prototype, "endpoint", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], Domain.prototype, "id", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], Domain.prototype, "kibanaEndpoint", void 0);
__decorate([
    core.attr(LogPublishingOptions, { kind: "array" }),
    __metadata("design:type", Object)
], Domain.prototype, "logPublishingOptions", void 0);
__decorate([
    core.attr(NodeToNodeEncryption, { computed: true }),
    __metadata("design:type", NodeToNodeEncryption)
], Domain.prototype, "nodeToNodeEncryption", void 0);
__decorate([
    core.attr(SnapshotOptions),
    __metadata("design:type", SnapshotOptions)
], Domain.prototype, "snapshotOptions", void 0);
__decorate([
    core.attr(String, { kind: "map" }),
    __metadata("design:type", Object)
], Domain.prototype, "tags", void 0);
__decorate([
    core.attr(String, { computed: true, kind: "map" }),
    __metadata("design:type", Object)
], Domain.prototype, "tagsAll", void 0);
__decorate([
    core.attr(VpcOptions),
    __metadata("design:type", VpcOptions)
], Domain.prototype, "vpcOptions", void 0);
exports.Domain = Domain;
//# sourceMappingURL=domain.js.map