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

export interface DsStackArgs {
  name: string | core.StringOut;

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

export class DsStack extends core.Data<DsStackArgs> {
  @core.attr(String, { computed: true, kind: "array" })
  public capabilities!: core.Array<string> | core.ArrayOut<core.StringOut>;

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

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

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

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

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

  @core.attr(String, { computed: true, kind: "array" })
  public notificationArns!: core.Array<string> | core.ArrayOut<core.StringOut>;

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

  @core.attr(String, { computed: true, kind: "map" })
  public parameters!: core.Map<string, string> | core.MapOut<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 templateBody!: string | core.StringOut;

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

  constructor(name: string, args?: DsStackArgs) {
    super(name, "aws_cloudformation_stack", args);
  }

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