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

export interface EnumerationValueArgs extends core.SchemaArgs {
  synonyms: core.Array<string> | core.ArrayOut<core.StringOut>;

  value: string | core.StringOut;
}

export class EnumerationValue extends core.Schema<EnumerationValueArgs> {
  @core.attr(String, { computed: true, kind: "array" })
  public synonyms!: core.Array<string> | core.ArrayOut<core.StringOut>;

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

export interface DsSlotTypeArgs {
  name: string | core.StringOut;

  version?: string | core.StringOut;
}

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

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

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

  @core.attr(EnumerationValue, { computed: true, kind: "array" })
  public enumerationValue!:
    | core.Array<EnumerationValue>
    | core.ArrayOut<EnumerationValue>;

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

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

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

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

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

  constructor(name: string, args?: DsSlotTypeArgs) {
    super(name, "aws_lex_slot_type", args);
  }

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