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

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

  portfolioId: string | core.StringOut;

  principalId: string | core.StringOut;

  shareTagOptions?: boolean | core.BooleanOut;

  type: string | core.StringOut;

  waitForAcceptance?: boolean | core.BooleanOut;
}

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

  @core.attr(Boolean, { computed: true })
  public accepted!: boolean | core.BooleanOut;

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

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

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

  @core.attr(Boolean)
  public shareTagOptions?: boolean | core.BooleanOut;

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

  @core.attr(Boolean)
  public waitForAcceptance?: boolean | core.BooleanOut;

  constructor(name: string, args?: PortfolioShareArgs) {
    super(name, "aws_servicecatalog_portfolio_share", args);
  }

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