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

export interface ConstraintArgs extends core.ResourceArgs {
  acceptLanguage?: string | core.StringOut;

  description?: string | core.StringOut;

  parameters: string | core.StringOut;

  portfolioId: string | core.StringOut;

  productId: string | core.StringOut;

  type: string | core.StringOut;
}

export class Constraint extends core.Resource<ConstraintArgs> {
  @core.attr(String)
  public acceptLanguage?: string | core.StringOut;

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

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

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

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

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

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

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

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

  constructor(name: string, args?: ConstraintArgs) {
    super(name, "aws_servicecatalog_constraint", args);
  }

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