AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::IoT::Thing

CfnThing

Use the `AWS::IoT::Thing` resource to declare an AWS IoT thing. For information about working with things, see [How AWS IoT Works](https://docs.aws.amazon.com/iot/latest/developerguide/aws-iot-how-it-works.html) and [Device Registry for AWS IoT](https://docs.aws.amazon.com/iot/latest/developerguide/thing-registry.html) in the *AWS IoT Developer Guide* .

Import

import { CfnThing } from 'aws-cdk-lib/aws-iot';

Or use the module namespace:

import * as iot from 'aws-cdk-lib/aws-iot';
// iot.CfnThing

Properties

Configuration passed to the constructor as CfnThingProps.

attributePayloadOptional
IResolvable | AttributePayloadProperty

A string that contains up to three key value pairs. Maximum length of 800. Duplicates not allowed.

thingNameOptional
string

The name of the thing to update. You can't change a thing's name. To change a thing's name, you must create a new thing, give it the new name, and then delete the old thing.

CloudFormation Resource

This L1 construct maps directly to the following CloudFormation resource type.

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter