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

export interface ConfigurationArgs extends core.ResourceArgs {
  authenticationStrategy?: string | core.StringOut;

  data: string | core.StringOut;

  description?: string | core.StringOut;

  engineType: string | core.StringOut;

  engineVersion: string | core.StringOut;

  name: string | core.StringOut;

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

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

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

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

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

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

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

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

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

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

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

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

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

  constructor(name: string, args?: ConfigurationArgs) {
    super(name, "aws_mq_configuration", args);
  }

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