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

export interface PolicyAttachmentArgs extends core.ResourceArgs {
  policyId: string | core.StringOut;

  targetId: string | core.StringOut;
}

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

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

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

  constructor(name: string, args?: PolicyAttachmentArgs) {
    super(name, "aws_organizations_policy_attachment", args);
  }

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