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

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

  portfolioId: string | core.StringOut;

  productId: string | core.StringOut;

  sourcePortfolioId?: string | core.StringOut;
}

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

  @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;

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

  constructor(name: string, args?: ProductPortfolioAssociationArgs) {
    super(name, "aws_servicecatalog_product_portfolio_association", args);
  }

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