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

export interface StackArgs extends core.ResourceArgs {
  capabilities?: core.Array<string> | core.ArrayOut<core.StringOut>;

  disableRollback?: boolean | core.BooleanOut;

  iamRoleArn?: string | core.StringOut;

  name: string | core.StringOut;

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

  onFailure?: string | core.StringOut;

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

  policyBody?: string | core.StringOut;

  policyUrl?: string | core.StringOut;

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

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

  templateBody?: string | core.StringOut;

  templateUrl?: string | core.StringOut;

  timeoutInMinutes?: number | core.NumberOut;
}

export class Stack extends core.Resource<StackArgs> {
  @core.attr(String, { kind: "array" })
  public capabilities?: core.Array<string> | core.ArrayOut<core.StringOut>;

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

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

  @core.attr(String)
  public onFailure?: string | 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 })
  public policyBody?: string | core.StringOut;

  @core.attr(String)
  public policyUrl?: 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>;

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

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

  @core.attr(Number)
  public timeoutInMinutes?: number | core.NumberOut;

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

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