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

export interface CatalogDataArgs extends core.SchemaArgs {
  aboutText?: string | core.StringOut;

  architectures?: core.Array<string> | core.ArrayOut<core.StringOut>;

  description?: string | core.StringOut;

  logoImageBlob?: string | core.StringOut;

  operatingSystems?: core.Array<string> | core.ArrayOut<core.StringOut>;

  usageText?: string | core.StringOut;
}

export class CatalogData extends core.Schema<CatalogDataArgs> {
  @core.attr(String)
  public aboutText?: string | core.StringOut;

  @core.attr(String, { kind: "array" })
  public architectures?: core.Array<string> | core.ArrayOut<core.StringOut>;

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

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

  @core.attr(String, { kind: "array" })
  public operatingSystems?: core.Array<string> | core.ArrayOut<core.StringOut>;

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

export interface RepositoryArgs extends core.ResourceArgs {
  catalogData?: CatalogData;

  forceDestroy?: boolean | core.BooleanOut;

  repositoryName: string | core.StringOut;

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

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

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

  @core.attr(CatalogData)
  public catalogData?: CatalogData;

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

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

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

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

  @core.attr(String, { computed: true })
  public repositoryUri!: 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?: RepositoryArgs) {
    super(name, "aws_ecrpublic_repository", args);
  }

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