ThingGroup

class ThingGroup : KotlinCustomResource

Manages an AWS 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.ThingGroup;
import com.pulumi.aws.iot.ThingGroupArgs;
import com.pulumi.aws.iot.inputs.ThingGroupPropertiesArgs;
import com.pulumi.aws.iot.inputs.ThingGroupPropertiesAttributePayloadArgs;
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 parent = new ThingGroup("parent");
var example = new ThingGroup("example", ThingGroupArgs.builder()
.parentGroupName(parent.name())
.properties(ThingGroupPropertiesArgs.builder()
.attributePayload(ThingGroupPropertiesAttributePayloadArgs.builder()
.attributes(Map.ofEntries(
Map.entry("One", "11111"),
Map.entry("Two", "TwoTwo")
))
.build())
.description("This is my thing group")
.build())
.tags(Map.of("managed", "true"))
.build());
}
}

Import

IoT Things Groups can be imported using the name, e.g.

$ pulumi import aws:iot/thingGroup:ThingGroup example example

Properties

Link copied to clipboard
val arn: Output<String>

The ARN of the Thing Group.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
Link copied to clipboard
val name: Output<String>

The name of the Thing Group.

Link copied to clipboard
val parentGroupName: Output<String>?

The name of the parent Thing Group.

Link copied to clipboard

The Thing Group properties. Defined below.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val tags: Output<Map<String, String>>?

Key-value mapping of resource tags

Link copied to clipboard
val tagsAll: Output<Map<String, String>>
Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val version: Output<Int>

The current version of the Thing Group record in the registry.