Smaws_Client_IoTThingsGraph.AssociateEntityToThingAssociates a device with a concrete thing that is in the user's registry.
A thing can be associated with only one device at a time. If you associate a thing with a new device id, its previous association will be removed.
val error_to_string :
[ Smaws_Lib.Protocols.AwsJson.error
| `InternalFailureException of Types.internal_failure_exception
| `InvalidRequestException of Types.invalid_request_exception
| `ResourceNotFoundException of Types.resource_not_found_exception
| `ThrottlingException of Types.throttling_exception ] ->
stringval request :
'http_type Smaws_Lib.Context.t ->
Types.associate_entity_to_thing_request ->
(Types.associate_entity_to_thing_response,
[> Smaws_Lib.Protocols.AwsJson.error
| `InternalFailureException of Types.internal_failure_exception
| `InvalidRequestException of Types.invalid_request_exception
| `ResourceNotFoundException of Types.resource_not_found_exception
| `ThrottlingException of Types.throttling_exception ])
Stdlib.resultval request_with_metadata :
'http_type Smaws_Lib.Context.t ->
Types.associate_entity_to_thing_request ->
(Types.associate_entity_to_thing_response Smaws_Lib.Response.t,
[> Smaws_Lib.Protocols.AwsJson.error
| `InternalFailureException of Types.internal_failure_exception
| `InvalidRequestException of Types.invalid_request_exception
| `ResourceNotFoundException of Types.resource_not_found_exception
| `ThrottlingException of Types.throttling_exception ]
* Smaws_Lib.Response.metadata)
Stdlib.result