// Searches for things associated with the specified entity. You can search by both
// device and device model. For example, if two different devices, camera1 and
// camera2, implement the camera device model, the user can associate thing1 to
// camera1 and thing2 to camera2. SearchThings(camera2) will return only thing2,
// but SearchThings(camera) will return both thing1 and thing2. This action
// searches for exact matches and doesn't perform partial text matching.
Searches for things associated with the specified entity. You can search by both
device and device model. For example, if two different devices, camera1 and
camera2, implement the camera device model, the user can associate thing1 to
camera1 and thing2 to camera2. SearchThings(camera2) will return only thing2,
but SearchThings(camera) will return both thing1 and thing2. This action
searches for exact matches and doesn't perform partial text matching.
// Searches for things associated with the specified entity . You can search by both // device and device model . For example if two different devices camera1 and // camera2 implement the camera device model the user can associate thing1 to // camera1 and thing2 to camera2 . SearchThings ( camera2 ) will return only thing2 // but SearchThings ( camera ) will return both thing1 and thing2 . This action // searches for exact matches and doesn ' t perform partial text matching .
func (c *Client) SearchThings(ctx context.Context, params *SearchThingsInput, optFns ...func(*Options)) (*SearchThingsOutput, error) {
	if params == nil {
		params = &SearchThingsInput{}
	}
	result, metadata, err := c.invokeOperation(ctx, "SearchThings", params, optFns, addOperationSearchThingsMiddlewares)
	if err != nil {
		return nil, err
	}
	out := result.(*SearchThingsOutput)
	out.ResultMetadata = metadata
	return out, nil
}
func ( c * Client ) SearchThings ( ctx context . Context , params * SearchThingsInput , optFns ... func ( * Options ) ) ( * SearchThingsOutput , error ) { if params == nil { params = & SearchThingsInput { } } result , metadata , err := c . invokeOperation ( ctx , " " , params , optFns , addOperationSearchThingsMiddlewares ) if err != nil { return nil , err } out := result . ( * SearchThingsOutput ) out . ResultMetadata = metadata return out , nil }
Searches for things associated with the specified entity.
Searches for things associated with the specified entity .