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

export interface ApplicationVersionArgs extends core.ResourceArgs {
  application: string | core.StringOut;

  bucket: string | core.StringOut;

  description?: string | core.StringOut;

  forceDelete?: boolean | core.BooleanOut;

  key: string | core.StringOut;

  name: string | core.StringOut;

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

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

export class ApplicationVersion extends core.Resource<ApplicationVersionArgs> {
  @core.attr(String)
  public application!: string | core.StringOut;

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

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

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

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

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

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

  @core.attr(String)
  public name!: 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?: ApplicationVersionArgs) {
    super(name, "aws_elastic_beanstalk_application_version", args);
  }

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