ThingGroupArgs

data class ThingGroupArgs(val name: Output<String>? = null, val parentGroupName: Output<String>? = null, val properties: Output<ThingGroupPropertiesArgs>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<ThingGroupArgs>

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

Constructors

Link copied to clipboard
constructor(name: Output<String>? = null, parentGroupName: Output<String>? = null, properties: Output<ThingGroupPropertiesArgs>? = null, tags: Output<Map<String, String>>? = null)

Properties

Link copied to clipboard
val name: Output<String>? = null

The name of the Thing Group.

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

The name of the parent Thing Group.

Link copied to clipboard

The Thing Group properties. Defined below.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

Key-value mapping of resource tags

Functions

Link copied to clipboard
open override fun toJava(): ThingGroupArgs