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, { kind: "array" })
  public synonyms?: core.Array<string> | core.ArrayOut<core.StringOut>;

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

export interface SlotTypeArgs extends core.ResourceArgs {
  createVersion?: boolean | core.BooleanOut;

  description?: string | core.StringOut;

  enumerationValue:
    | core.Array<EnumerationValue>
    | core.ArrayOut<EnumerationValue>;

  name: string | core.StringOut;

  valueSelectionStrategy?: string | core.StringOut;
}

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

  @core.attr(Boolean)
  public createVersion?: boolean | core.BooleanOut;

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

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

  @core.attr(EnumerationValue, { 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)
  public valueSelectionStrategy?: string | core.StringOut;

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

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

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