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

export interface AppArgs extends core.ResourceArgs {
  computePlatform?: 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 App extends core.Resource<AppArgs> {
  @core.attr(String, { computed: true })
  public applicationId!: string | core.StringOut;

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

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

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

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

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

  @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?: AppArgs) {
    super(name, "aws_codedeploy_app", args);
  }

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