title: AWS IOT: register Thing and use of thing attributes in rules and actions
body: <p>I have a few questions to the aws iot solution:  </p>
  
  <p>I want to register a "Thing" with a few attributes and a associate a client certificate to the thing.<br>
  Can I do this with the java sdk? Maybe you have a link to an example?<br>
  (didn't find that in the aws-iot-device-sdk, have only seen aws cli examples)</p>
  
  <p>If a device (with the client certificate) publishes a message, how could I use the associated thing and its attributes? (In an action or a rule)<br>
  See only to get the shadow-device, but not the "thing":<br>
  <a href="http://docs.aws.amazon.com/iot/latest/developerguide/iot-sql-functions.html#iot-sql-function-get-thing-shadow" rel="nofollow">http://docs.aws.amazon.com/iot/latest/developerguide/iot-sql-functions.html#iot-sql-function-get-thing-shadow</a></p>
  
  <p>Anybody could help me?</p>
  
  <p>Regards,<br>
  Markus</p>