"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.MskCluster = exports.BrokerNodeGroupInfo = exports.ConnectivityInfo = exports.PublicAccess = exports.StorageInfo = exports.EbsStorageInfo = exports.ProvisionedThroughput = exports.OpenMonitoring = exports.Prometheus = exports.JmxExporter = exports.NodeExporter = exports.ClientAuthentication = exports.Tls = exports.Sasl = exports.EncryptionInfo = exports.EncryptionInTransit = exports.LoggingInfo = exports.BrokerLogs = exports.Firehose = exports.CloudwatchLogs = exports.S3 = exports.ConfigurationInfo = void 0;
const core = __importStar(require("@terrascript/core"));
class ConfigurationInfo extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], ConfigurationInfo.prototype, "arn", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], ConfigurationInfo.prototype, "revision", void 0);
exports.ConfigurationInfo = ConfigurationInfo;
class S3 extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], S3.prototype, "bucket", void 0);
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], S3.prototype, "enabled", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], S3.prototype, "prefix", void 0);
exports.S3 = S3;
class CloudwatchLogs extends core.Schema {
}
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], CloudwatchLogs.prototype, "enabled", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], CloudwatchLogs.prototype, "logGroup", void 0);
exports.CloudwatchLogs = CloudwatchLogs;
class Firehose extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Firehose.prototype, "deliveryStream", void 0);
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], Firehose.prototype, "enabled", void 0);
exports.Firehose = Firehose;
class BrokerLogs extends core.Schema {
}
__decorate([
    core.attr(CloudwatchLogs),
    __metadata("design:type", CloudwatchLogs)
], BrokerLogs.prototype, "cloudwatchLogs", void 0);
__decorate([
    core.attr(Firehose),
    __metadata("design:type", Firehose)
], BrokerLogs.prototype, "firehose", void 0);
__decorate([
    core.attr(S3),
    __metadata("design:type", S3)
], BrokerLogs.prototype, "s3", void 0);
exports.BrokerLogs = BrokerLogs;
class LoggingInfo extends core.Schema {
}
__decorate([
    core.attr(BrokerLogs),
    __metadata("design:type", BrokerLogs)
], LoggingInfo.prototype, "brokerLogs", void 0);
exports.LoggingInfo = LoggingInfo;
class EncryptionInTransit extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], EncryptionInTransit.prototype, "clientBroker", void 0);
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], EncryptionInTransit.prototype, "inCluster", void 0);
exports.EncryptionInTransit = EncryptionInTransit;
class EncryptionInfo extends core.Schema {
}
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], EncryptionInfo.prototype, "encryptionAtRestKmsKeyArn", void 0);
__decorate([
    core.attr(EncryptionInTransit),
    __metadata("design:type", EncryptionInTransit)
], EncryptionInfo.prototype, "encryptionInTransit", void 0);
exports.EncryptionInfo = EncryptionInfo;
class Sasl extends core.Schema {
}
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], Sasl.prototype, "iam", void 0);
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], Sasl.prototype, "scram", void 0);
exports.Sasl = Sasl;
class Tls extends core.Schema {
}
__decorate([
    core.attr(String, { kind: "array" }),
    __metadata("design:type", Object)
], Tls.prototype, "certificateAuthorityArns", void 0);
exports.Tls = Tls;
class ClientAuthentication extends core.Schema {
}
__decorate([
    core.attr(Sasl),
    __metadata("design:type", Sasl)
], ClientAuthentication.prototype, "sasl", void 0);
__decorate([
    core.attr(Tls),
    __metadata("design:type", Tls)
], ClientAuthentication.prototype, "tls", void 0);
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], ClientAuthentication.prototype, "unauthenticated", void 0);
exports.ClientAuthentication = ClientAuthentication;
class NodeExporter extends core.Schema {
}
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], NodeExporter.prototype, "enabledInBroker", void 0);
exports.NodeExporter = NodeExporter;
class JmxExporter extends core.Schema {
}
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], JmxExporter.prototype, "enabledInBroker", void 0);
exports.JmxExporter = JmxExporter;
class Prometheus extends core.Schema {
}
__decorate([
    core.attr(JmxExporter),
    __metadata("design:type", JmxExporter)
], Prometheus.prototype, "jmxExporter", void 0);
__decorate([
    core.attr(NodeExporter),
    __metadata("design:type", NodeExporter)
], Prometheus.prototype, "nodeExporter", void 0);
exports.Prometheus = Prometheus;
class OpenMonitoring extends core.Schema {
}
__decorate([
    core.attr(Prometheus),
    __metadata("design:type", Prometheus)
], OpenMonitoring.prototype, "prometheus", void 0);
exports.OpenMonitoring = OpenMonitoring;
class ProvisionedThroughput extends core.Schema {
}
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], ProvisionedThroughput.prototype, "enabled", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], ProvisionedThroughput.prototype, "volumeThroughput", void 0);
exports.ProvisionedThroughput = ProvisionedThroughput;
class EbsStorageInfo extends core.Schema {
}
__decorate([
    core.attr(ProvisionedThroughput),
    __metadata("design:type", ProvisionedThroughput)
], EbsStorageInfo.prototype, "provisionedThroughput", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], EbsStorageInfo.prototype, "volumeSize", void 0);
exports.EbsStorageInfo = EbsStorageInfo;
class StorageInfo extends core.Schema {
}
__decorate([
    core.attr(EbsStorageInfo),
    __metadata("design:type", EbsStorageInfo)
], StorageInfo.prototype, "ebsStorageInfo", void 0);
exports.StorageInfo = StorageInfo;
class PublicAccess extends core.Schema {
}
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], PublicAccess.prototype, "type", void 0);
exports.PublicAccess = PublicAccess;
class ConnectivityInfo extends core.Schema {
}
__decorate([
    core.attr(PublicAccess, { computed: true }),
    __metadata("design:type", PublicAccess)
], ConnectivityInfo.prototype, "publicAccess", void 0);
exports.ConnectivityInfo = ConnectivityInfo;
class BrokerNodeGroupInfo extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], BrokerNodeGroupInfo.prototype, "azDistribution", void 0);
__decorate([
    core.attr(String, { kind: "array" }),
    __metadata("design:type", Object)
], BrokerNodeGroupInfo.prototype, "clientSubnets", void 0);
__decorate([
    core.attr(ConnectivityInfo, { computed: true }),
    __metadata("design:type", ConnectivityInfo)
], BrokerNodeGroupInfo.prototype, "connectivityInfo", void 0);
__decorate([
    core.attr(Number, { computed: true }),
    __metadata("design:type", Object)
], BrokerNodeGroupInfo.prototype, "ebsVolumeSize", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], BrokerNodeGroupInfo.prototype, "instanceType", void 0);
__decorate([
    core.attr(String, { kind: "array" }),
    __metadata("design:type", Object)
], BrokerNodeGroupInfo.prototype, "securityGroups", void 0);
__decorate([
    core.attr(StorageInfo, { computed: true }),
    __metadata("design:type", StorageInfo)
], BrokerNodeGroupInfo.prototype, "storageInfo", void 0);
exports.BrokerNodeGroupInfo = BrokerNodeGroupInfo;
class MskCluster extends core.Resource {
    constructor(name, args) {
        super(name, "aws_msk_cluster", args);
    }
    getNamespace() {
        return "aws_managed_streaming_for_kafka";
    }
}
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], MskCluster.prototype, "arn", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], MskCluster.prototype, "bootstrapBrokers", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], MskCluster.prototype, "bootstrapBrokersPublicSaslIam", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], MskCluster.prototype, "bootstrapBrokersPublicSaslScram", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], MskCluster.prototype, "bootstrapBrokersPublicTls", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], MskCluster.prototype, "bootstrapBrokersSaslIam", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], MskCluster.prototype, "bootstrapBrokersSaslScram", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], MskCluster.prototype, "bootstrapBrokersTls", void 0);
__decorate([
    core.attr(BrokerNodeGroupInfo),
    __metadata("design:type", BrokerNodeGroupInfo)
], MskCluster.prototype, "brokerNodeGroupInfo", void 0);
__decorate([
    core.attr(ClientAuthentication),
    __metadata("design:type", ClientAuthentication)
], MskCluster.prototype, "clientAuthentication", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], MskCluster.prototype, "clusterName", void 0);
__decorate([
    core.attr(ConfigurationInfo),
    __metadata("design:type", ConfigurationInfo)
], MskCluster.prototype, "configurationInfo", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], MskCluster.prototype, "currentVersion", void 0);
__decorate([
    core.attr(EncryptionInfo),
    __metadata("design:type", EncryptionInfo)
], MskCluster.prototype, "encryptionInfo", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], MskCluster.prototype, "enhancedMonitoring", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], MskCluster.prototype, "id", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], MskCluster.prototype, "kafkaVersion", void 0);
__decorate([
    core.attr(LoggingInfo),
    __metadata("design:type", LoggingInfo)
], MskCluster.prototype, "loggingInfo", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], MskCluster.prototype, "numberOfBrokerNodes", void 0);
__decorate([
    core.attr(OpenMonitoring),
    __metadata("design:type", OpenMonitoring)
], MskCluster.prototype, "openMonitoring", void 0);
__decorate([
    core.attr(String, { kind: "map" }),
    __metadata("design:type", Object)
], MskCluster.prototype, "tags", void 0);
__decorate([
    core.attr(String, { computed: true, kind: "map" }),
    __metadata("design:type", Object)
], MskCluster.prototype, "tagsAll", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], MskCluster.prototype, "zookeeperConnectString", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], MskCluster.prototype, "zookeeperConnectStringTls", void 0);
exports.MskCluster = MskCluster;
//# sourceMappingURL=msk_cluster.js.map