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

export interface DetailsArgs extends core.SchemaArgs {
  constraintId: string | core.StringOut;

  description: string | core.StringOut;

  owner: string | core.StringOut;

  portfolioId: string | core.StringOut;

  productId: string | core.StringOut;

  type: string | core.StringOut;
}

export class Details extends core.Schema<DetailsArgs> {
  @core.attr(String, { computed: true })
  public constraintId!: string | core.StringOut;

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

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

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

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

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

export interface DsPortfolioConstraintsArgs {
  acceptLanguage?: string | core.StringOut;

  portfolioId: string | core.StringOut;

  productId?: string | core.StringOut;
}

export class DsPortfolioConstraints extends core.Data<DsPortfolioConstraintsArgs> {
  @core.attr(String)
  public acceptLanguage?: string | core.StringOut;

  @core.attr(Details, { computed: true, kind: "array" })
  public details!: core.Array<Details> | core.ArrayOut<Details>;

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

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

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

  constructor(name: string, args?: DsPortfolioConstraintsArgs) {
    super(name, "aws_servicecatalog_portfolio_constraints", args);
  }

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