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

export interface ThingPrincipalAttachmentArgs extends core.ResourceArgs {
  principal: string | core.StringOut;

  thing: string | core.StringOut;
}

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

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

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

  constructor(name: string, args?: ThingPrincipalAttachmentArgs) {
    super(name, "aws_iot_thing_principal_attachment", args);
  }

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