Skip to content

Resource: awsIotThingGroup

Manages an AWS IoT Thing Group.

Example Usage

/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
const awsIotThingGroupParent = new aws.iotThingGroup.IotThingGroup(
  this,
  "parent",
  {
    name: "parent",
  }
);
new aws.iotThingGroup.IotThingGroup(this, "example", {
  name: "example",
  parentGroupName: awsIotThingGroupParent.name,
  properties: {
    attributePayload: {
      attributes: {
        one: "11111",
        two: "TwoTwo",
      },
    },
    description: "This is my thing group",
  },
  tags: {
    terraform: "true",
  },
});

Argument Reference

  • name - (Required) The name of the Thing Group.
  • parentGroupName - (Optional) The name of the parent Thing Group.
  • properties - (Optional) The Thing Group properties. Defined below.
  • tags - (Optional) Key-value mapping of resource tags

properties Reference

  • attributePayload - (Optional) The Thing Group attributes. Defined below.
  • description - (Optional) A description of the Thing Group.

attribute_payload Reference

  • attributes - (Optional) Key-value map.

Attributes Reference

In addition to all arguments above, the following attributes are exported:

  • arn - The ARN of the Thing Group.
  • id - The Thing Group ID.
  • version - The current version of the Thing Group record in the registry.

Import

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

$ terraform import aws_iot_thing_group.example example