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

export interface ImageTestsConfigurationArgs extends core.SchemaArgs {
  imageTestsEnabled: boolean | core.BooleanOut;

  timeoutMinutes: number | core.NumberOut;
}

export class ImageTestsConfiguration extends core.Schema<ImageTestsConfigurationArgs> {
  @core.attr(Boolean, { computed: true })
  public imageTestsEnabled!: boolean | core.BooleanOut;

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

export interface AmisArgs extends core.SchemaArgs {
  accountId: string | core.StringOut;

  description: string | core.StringOut;

  image: string | core.StringOut;

  name: string | core.StringOut;

  region: string | core.StringOut;
}

export class Amis extends core.Schema<AmisArgs> {
  @core.attr(String, { computed: true })
  public accountId!: string | core.StringOut;

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

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

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

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

export interface OutputResourcesArgs extends core.SchemaArgs {
  amis: core.Array<Amis> | core.ArrayOut<Amis>;
}

export class OutputResources extends core.Schema<OutputResourcesArgs> {
  @core.attr(Amis, { computed: true, kind: "array" })
  public amis!: core.Array<Amis> | core.ArrayOut<Amis>;
}

export interface DsImageArgs {
  arn: string | core.StringOut;

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

export class DsImage extends core.Data<DsImageArgs> {
  @core.attr(String)
  public arn!: string | core.StringOut;

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

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

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

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

  @core.attr(Boolean, { computed: true })
  public enhancedImageMetadataEnabled!: boolean | core.BooleanOut;

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

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

  @core.attr(ImageTestsConfiguration, { computed: true, kind: "array" })
  public imageTestsConfiguration!:
    | core.Array<ImageTestsConfiguration>
    | core.ArrayOut<ImageTestsConfiguration>;

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

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

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

  @core.attr(OutputResources, { computed: true, kind: "array" })
  public outputResources!:
    | core.Array<OutputResources>
    | core.ArrayOut<OutputResources>;

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

  @core.attr(String, { computed: true, kind: "map" })
  public tags?: core.Map<string, string> | core.MapOut<core.StringOut>;

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

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

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