What is a thingId?

0

Hi,

I noticed that if I query the Thing registry through the Java SDK (describeThing() function), the return value, DescribeThingResponse, has a "thingId" property. I don't see this value when I examine the thing in the AWS console. What is its purpose?

Is it safe to ignore the thingId in my application and just use the thingName as the unique identifier?

Thanks, Frank

  • just out of interest, what does the thingId look like ? Is it a guid ?

  • Yes it's a UUID.

Frank
質問済み 2年前265ビュー
1回答
1
承認された回答

Is it safe to ignore the thingId in my application and just use the thingName as the unique identifier?

Yes. The thingName is effectively the primary key in that the APIs use that as the input to identify the Thing. The thingId is only returned in the response. Although you can use it for searching if you have fleet indexing enabled.

profile pictureAWS
エキスパート
Greg_B
回答済み 2年前
  • Great, thanks again for your help.

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ