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

export interface AccountAssignmentArgs extends core.ResourceArgs {
  instanceArn: string | core.StringOut;

  permissionSetArn: string | core.StringOut;

  principalId: string | core.StringOut;

  principalType: string | core.StringOut;

  targetId: string | core.StringOut;

  targetType?: string | core.StringOut;
}

export class AccountAssignment extends core.Resource<AccountAssignmentArgs> {
  @core.attr(String, { computed: true })
  public id!: string | core.StringOut;

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

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

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

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

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

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

  constructor(name: string, args?: AccountAssignmentArgs) {
    super(name, "aws_ssoadmin_account_assignment", args);
  }

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