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

export interface MskConfigurationArgs extends core.ResourceArgs {
  description?: string | core.StringOut;

  kafkaVersions?: core.Array<string> | core.ArrayOut<core.StringOut>;

  name: string | core.StringOut;

  serverProperties: string | core.StringOut;
}

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

  @core.attr(String)
  public description?: string | core.StringOut;

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

  @core.attr(String, { kind: "array" })
  public kafkaVersions?: core.Array<string> | core.ArrayOut<core.StringOut>;

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

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

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

  constructor(name: string, args?: MskConfigurationArgs) {
    super(name, "aws_msk_configuration", args);
  }

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