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

export interface OrganizationAdminAccountArgs extends core.ResourceArgs {
  delegatedAdminAccountId: string | core.StringOut;
}

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

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

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

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

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

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

  constructor(name: string, args?: OrganizationAdminAccountArgs) {
    super(name, "aws_vpc_ipam_organization_admin_account", args);
  }

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