import * as core from "@terrascript/core";

export interface DsMskClusterArgs {
  clusterName: string | core.StringOut;

  tags?: core.Map<string, string> | core.MapOut<core.StringOut>;
}

export class DsMskCluster extends core.Data<DsMskClusterArgs> {
  @core.attr(String, { computed: true })
  public arn!: string | core.StringOut;

  @core.attr(String, { computed: true })
  public bootstrapBrokers!: string | core.StringOut;

  @core.attr(String, { computed: true })
  public bootstrapBrokersPublicSaslIam!: string | core.StringOut;

  @core.attr(String, { computed: true })
  public bootstrapBrokersPublicSaslScram!: string | core.StringOut;

  @core.attr(String, { computed: true })
  public bootstrapBrokersPublicTls!: string | core.StringOut;

  @core.attr(String, { computed: true })
  public bootstrapBrokersSaslIam!: string | core.StringOut;

  @core.attr(String, { computed: true })
  public bootstrapBrokersSaslScram!: string | core.StringOut;

  @core.attr(String, { computed: true })
  public bootstrapBrokersTls!: string | core.StringOut;

  @core.attr(String)
  public clusterName!: string | core.StringOut;

  @core.attr(String, { computed: true })
  public id!: string | core.StringOut;

  @core.attr(String, { computed: true })
  public kafkaVersion!: string | core.StringOut;

  @core.attr(Number, { computed: true })
  public numberOfBrokerNodes!: number | core.NumberOut;

  @core.attr(String, { computed: true, kind: "map" })
  public tags?: core.Map<string, string> | core.MapOut<core.StringOut>;

  @core.attr(String, { computed: true })
  public zookeeperConnectString!: string | core.StringOut;

  @core.attr(String, { computed: true })
  public zookeeperConnectStringTls!: string | core.StringOut;

  constructor(name: string, args?: DsMskClusterArgs) {
    super(name, "aws_msk_cluster", args);
  }

  public override getNamespace(): string {
    return "aws_managed_streaming_for_kafka";
  }
}
