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

export interface DsImageArgs {
  imageDigest?: string | core.StringOut;

  imageTag?: string | core.StringOut;

  registryId?: string | core.StringOut;

  repositoryName: string | core.StringOut;
}

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

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

  @core.attr(Number, { computed: true })
  public imagePushedAt!: number | core.NumberOut;

  @core.attr(Number, { computed: true })
  public imageSizeInBytes!: number | core.NumberOut;

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

  @core.attr(String, { computed: true, kind: "array" })
  public imageTags!: core.Array<string> | core.ArrayOut<core.StringOut>;

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

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

  constructor(name: string, args?: DsImageArgs) {
    super(name, "aws_ecr_image", args);
  }

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