ThingGroupMembership

class ThingGroupMembership : KotlinCustomResource

Adds an IoT Thing to an IoT Thing Group.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.iot.ThingGroupMembership("example", {
thingName: "example-thing",
thingGroupName: "example-group",
overrideDynamicGroup: true,
});
import pulumi
import pulumi_aws as aws
example = aws.iot.ThingGroupMembership("example",
thing_name="example-thing",
thing_group_name="example-group",
override_dynamic_group=True)
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.Iot.ThingGroupMembership("example", new()
{
ThingName = "example-thing",
ThingGroupName = "example-group",
OverrideDynamicGroup = true,
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/iot"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := iot.NewThingGroupMembership(ctx, "example", &iot.ThingGroupMembershipArgs{
ThingName: pulumi.String("example-thing"),
ThingGroupName: pulumi.String("example-group"),
OverrideDynamicGroup: pulumi.Bool(true),
})
if err != nil {
return err
}
return nil
})
}
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()
.thingName("example-thing")
.thingGroupName("example-group")
.overrideDynamicGroup(true)
.build());
}
}
resources:
example:
type: aws:iot:ThingGroupMembership
properties:
thingName: example-thing
thingGroupName: example-group
overrideDynamicGroup: true

Import

Using pulumi import, import IoT Thing Group Membership using the thing group name and thing name. For example:

$ pulumi import aws:iot/thingGroupMembership:ThingGroupMembership example thing_group_name/thing_name

Properties

Link copied to clipboard
val id: Output<String>
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
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val thingGroupName: Output<String>

The name of the group to which you are adding a thing.

Link copied to clipboard
val thingName: Output<String>

The name of the thing to add to a group.

Link copied to clipboard
val urn: Output<String>