import * as core from "@terrascript/core"; export interface ThingGroupMembershipArgs extends core.ResourceArgs { /** * (Optional) Override dynamic thing groups with static thing groups when 10-group limit is reached. If * a thing belongs to 10 thing groups, and one or more of those groups are dynamic thing groups, addin * g a thing to a static group removes the thing from the last dynamic group. */ overrideDynamicGroup?: boolean | core.BooleanOut; /** * (Required) The name of the group to which you are adding a thing. */ thingGroupName: string | core.StringOut; /** * (Required) The name of the thing to add to a group. */ thingName: string | core.StringOut; } export class ThingGroupMembership extends core.Resource { /** * The membership ID. */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Optional) Override dynamic thing groups with static thing groups when 10-group limit is reached. If * a thing belongs to 10 thing groups, and one or more of those groups are dynamic thing groups, addin * g a thing to a static group removes the thing from the last dynamic group. */ @core.attr(Boolean) public overrideDynamicGroup?: boolean | core.BooleanOut; /** * (Required) The name of the group to which you are adding a thing. */ @core.attr(String) public thingGroupName!: string | core.StringOut; /** * (Required) The name of the thing to add to a group. */ @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"; } }