Skip to content

Resource: awsIotThingType

Creates and manages an AWS IoT Thing Type.

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";
new aws.iotThingType.IotThingType(this, "foo", {
  name: "my_iot_thing",
});

Argument Reference

  • name - (Required, Forces New Resource) The name of the thing type.
  • deprecated - (Optional, Defaults to false) Whether the thing type is deprecated. If true, no new things could be associated with this type.
  • properties - (Optional), Configuration block that can contain the following properties of the thing type:
  • description - (Optional, Forces New Resource) The description of the thing type.
  • searchableAttributes - (Optional, Forces New Resource) A list of searchable thing attribute names.
  • tags - (Optional) Key-value mapping of resource tags. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Attributes Reference

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

  • arn - The ARN of the created AWS IoT Thing Type.
  • tagsAll - Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.

Import

IOT Thing Types can be imported using the name, e.g.,

$ terraform import aws_iot_thing_type.example example