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

export interface InputDataConfigArgs extends core.SchemaArgs {
  dataAccessRoleArn: string | core.StringOut;

  s3Uri: string | core.StringOut;

  tuningDataS3Uri?: string | core.StringOut;
}

export class InputDataConfig extends core.Schema<InputDataConfigArgs> {
  @core.attr(String)
  public dataAccessRoleArn!: string | core.StringOut;

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

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

export interface LanguageModelArgs extends core.ResourceArgs {
  baseModelName: string | core.StringOut;

  inputDataConfig: InputDataConfig;

  languageCode: string | core.StringOut;

  modelName: string | core.StringOut;

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

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

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

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

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

  @core.attr(InputDataConfig)
  public inputDataConfig!: InputDataConfig;

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

  @core.attr(String)
  public modelName!: 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?: LanguageModelArgs) {
    super(name, "aws_transcribe_language_model", args);
  }

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