describe_thing
(**kwargs)¶Gets information about the specified thing.
Requires permission to access the DescribeThing action.
See also: AWS API Documentation
Request Syntax
response = client.describe_thing(
thingName='string'
)
[REQUIRED]
The name of the thing.
{
'defaultClientId': 'string',
'thingName': 'string',
'thingId': 'string',
'thingArn': 'string',
'thingTypeName': 'string',
'attributes': {
'string': 'string'
},
'version': 123,
'billingGroupName': 'string'
}
Response Structure
The output from the DescribeThing operation.
The default MQTT client ID. For a typical device, the thing name is also used as the default MQTT client ID. Although we don’t require a mapping between a thing's registry name and its use of MQTT client IDs, certificates, or shadow state, we recommend that you choose a thing name and use it as the MQTT client ID for the registry and the Device Shadow service.
This lets you better organize your IoT fleet without removing the flexibility of the underlying device certificate model or shadows.
The name of the thing.
The ID of the thing to describe.
The ARN of the thing to describe.
The thing type name.
The thing attributes.
The current version of the thing record in the registry.
Note
To avoid unintentional changes to the information in the registry, you can pass the version information in the expectedVersion
parameter of the UpdateThing
and DeleteThing
calls.
The name of the billing group the thing belongs to.
Exceptions
IoT.Client.exceptions.ResourceNotFoundException
IoT.Client.exceptions.InvalidRequestException
IoT.Client.exceptions.ThrottlingException
IoT.Client.exceptions.UnauthorizedException
IoT.Client.exceptions.ServiceUnavailableException
IoT.Client.exceptions.InternalFailureException