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

export interface DsApplicationArgs {
  applicationId: string | core.StringOut;

  semanticVersion?: string | core.StringOut;
}

export class DsApplication extends core.Data<DsApplicationArgs> {
  @core.attr(String)
  public applicationId!: string | core.StringOut;

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

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

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

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

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

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

  constructor(name: string, args?: DsApplicationArgs) {
    super(name, "aws_serverlessapplicationrepository_application", args);
  }

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