import * as core from "@terrascript/core"; export interface DsImageArgs { /** * (Optional) The sha256 digest of the image manifest. At least one of `image_digest` or `image_tag` mu * st be specified. */ imageDigest?: string | core.StringOut; /** * (Optional) The tag associated with this image. At least one of `image_digest` or `image_tag` must be * specified. */ imageTag?: string | core.StringOut; /** * (Optional) The ID of the Registry where the repository resides. */ registryId?: string | core.StringOut; /** * (Required) The name of the ECR Repository. */ repositoryName: string | core.StringOut; } export class DsImage extends core.Data { /** * SHA256 digest of the image manifest. */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Optional) The sha256 digest of the image manifest. At least one of `image_digest` or `image_tag` mu * st be specified. */ @core.attr(String, { computed: true }) public imageDigest?: string | core.StringOut; /** * The date and time, expressed as a unix timestamp, at which the current image was pushed to the repos * itory. */ @core.attr(Number, { computed: true }) public imagePushedAt!: number | core.NumberOut; /** * The size, in bytes, of the image in the repository. */ @core.attr(Number, { computed: true }) public imageSizeInBytes!: number | core.NumberOut; /** * (Optional) The tag associated with this image. At least one of `image_digest` or `image_tag` must be * specified. */ @core.attr(String) public imageTag?: string | core.StringOut; /** * The list of tags associated with this image. */ @core.attr(String, { computed: true, kind: "array" }) public imageTags!: core.Array | core.ArrayOut; /** * (Optional) The ID of the Registry where the repository resides. */ @core.attr(String, { computed: true }) public registryId?: string | core.StringOut; /** * (Required) The name of the ECR Repository. */ @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"; } }