Skip to content

Resource: awsIotThing

Creates and manages an AWS IoT Thing.

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.iotThing.IotThing(this, "example", {
  attributes: {
    First: "examplevalue",
  },
  name: "example",
});

Argument Reference

  • name - (Required) The name of the thing.
  • attributes - (Optional) Map of attributes of the thing.
  • thingTypeName - (Optional) The thing type name.

Attributes Reference

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

  • defaultClientId - The default client ID.
  • version - The current version of the thing record in the registry.
  • arn - The ARN of the thing.

Import

IOT Things can be imported using the name, e.g.,

$ terraform import aws_iot_thing.example example