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

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

  portfolioId: string | core.StringOut;

  principalArn: string | core.StringOut;

  principalType?: string | core.StringOut;
}

export class PrincipalPortfolioAssociation extends core.Resource<PrincipalPortfolioAssociationArgs> {
  @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 principalArn!: string | core.StringOut;

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

  constructor(name: string, args?: PrincipalPortfolioAssociationArgs) {
    super(name, "aws_servicecatalog_principal_portfolio_association", args);
  }

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