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

export interface ComponentArgs extends core.ResourceArgs {
  changeDescription?: string | core.StringOut;

  data?: string | core.StringOut;

  description?: string | core.StringOut;

  kmsKeyId?: string | core.StringOut;

  name: string | core.StringOut;

  platform: string | core.StringOut;

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

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

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

  uri?: string | core.StringOut;

  version: string | core.StringOut;
}

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

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

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

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

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

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

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

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

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

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

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

  @core.attr(String, { kind: "array" })
  public supportedOsVersions?:
    | core.Array<string>
    | core.ArrayOut<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(String, { computed: true })
  public type!: string | core.StringOut;

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

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

  constructor(name: string, args?: ComponentArgs) {
    super(name, "aws_imagebuilder_component", args);
  }

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