Creates and manages an AWS IoT Thing Type.
resource "aws_iot_thing_type" "foo" {
name = "my_iot_thing"
}
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.searchable_attributes
- (Optional, Forces New Resource) A list of searchable thing attribute names.tags
- (Optional) Key-value mapping of resource tags. If configured with a provider default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.This resource exports the following attributes in addition to the arguments above:
arn
- The ARN of the created AWS IoT Thing Type.tags_all
- Map of tags assigned to the resource, including those inherited from the provider default_tags
configuration block.In Terraform v1.5.0 and later, use an import
block to import IOT Thing Types using the name. For example:
import {
to = aws_iot_thing_type.example
id = "example"
}
Using terraform import
, import IOT Thing Types using the name. For example:
% terraform import aws_iot_thing_type.example example