Thing Group Membership Args
data class ThingGroupMembershipArgs(val overrideDynamicGroup: Output<Boolean>? = null, val thingGroupName: Output<String>? = null, val thingName: Output<String>? = null) : ConvertibleToJava<ThingGroupMembershipArgs>
Adds an IoT Thing to an IoT Thing Group.
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.iot.ThingGroupMembership;
import com.pulumi.aws.iot.ThingGroupMembershipArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new ThingGroupMembership("example", ThingGroupMembershipArgs.builder()
.overrideDynamicGroup(true)
.thingGroupName("example-group")
.thingName("example-thing")
.build());
}
}
Content copied to clipboard
Import
IoT Thing Group Membership can be imported using the thing group name and thing name.
$ pulumi import aws:iot/thingGroupMembership:ThingGroupMembership example thing_group_name/thing_name
Content copied to clipboard
Properties
Link copied to clipboard
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, adding a thing to a static group removes the thing from the last dynamic group.
Link copied to clipboard
The name of the group to which you are adding a thing.