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

export interface UiTemplateArgs extends core.SchemaArgs {
  content?: string | core.StringOut;

  contentSha256: string | core.StringOut;

  url: string | core.StringOut;
}

export class UiTemplate extends core.Schema<UiTemplateArgs> {
  @core.attr(String)
  public content?: string | core.StringOut;

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

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

export interface HumanTaskUiArgs extends core.ResourceArgs {
  humanTaskUiName: string | core.StringOut;

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

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

  uiTemplate: UiTemplate;
}

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

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

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

  constructor(name: string, args?: HumanTaskUiArgs) {
    super(name, "aws_sagemaker_human_task_ui", args);
  }

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