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

export interface VocabularyArgs extends core.ResourceArgs {
  content: string | core.StringOut;

  instanceId: string | core.StringOut;

  languageCode: 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 Vocabulary extends core.Resource<VocabularyArgs> {
  @core.attr(String, { computed: true })
  public arn!: string | core.StringOut;

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

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

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

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

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

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

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

  @core.attr(String, { computed: true })
  public state!: 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>;

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

  constructor(name: string, args?: VocabularyArgs) {
    super(name, "aws_connect_vocabulary", args);
  }

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