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

export interface ThingGroupMembershipArgs extends core.ResourceArgs {
  overrideDynamicGroup?: boolean | core.BooleanOut;

  thingGroupName: string | core.StringOut;

  thingName: string | core.StringOut;
}

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

  @core.attr(Boolean)
  public overrideDynamicGroup?: boolean | core.BooleanOut;

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

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

  constructor(name: string, args?: ThingGroupMembershipArgs) {
    super(name, "aws_iot_thing_group_membership", args);
  }

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