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

export interface CloudformationStackArgs extends core.ResourceArgs {
  applicationId: string | core.StringOut;

  capabilities: core.Array<string> | core.ArrayOut<core.StringOut>;

  name: string | core.StringOut;

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

  semanticVersion?: string | core.StringOut;

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

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

export class CloudformationStack extends core.Resource<CloudformationStackArgs> {
  @core.attr(String)
  public applicationId!: string | core.StringOut;

  @core.attr(String, { kind: "array" })
  public capabilities!: core.Array<string> | core.ArrayOut<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: "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 semanticVersion?: 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?: CloudformationStackArgs) {
    super(
      name,
      "aws_serverlessapplicationrepository_cloudformation_stack",
      args
    );
  }

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