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

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

  target: string | core.StringOut;
}

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

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

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

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

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