list_things
async
¶
list_things(
*,
config_overrides: Optional[AsyncIoTClientConfig] = None,
next_token: Optional[NextToken] = None,
max_results: Optional[RegistryMaxResults] = None,
attribute_name: Optional[AttributeName] = None,
attribute_value: Optional[AttributeValue] = None,
thing_type_name: Optional[ThingTypeName] = None,
use_prefix_attribute_value: Optional[usePrefixAttributeValue] = None,
) -> ListThingsResponse
Lists your things. Use the attributeName and attributeValue parameters to filter your things. For example, calling ListThings with attributeName=Color and attributeValue=Red retrieves all things in the registry that contain an attribute Color with the value Red. For more information, see List Things from the Amazon Web Services IoT Core Developer Guide.
Requires permission to access the ListThings action.
You will not be charged for calling this API if an Access denied error is returned. You will also not be charged if no attributes or pagination token was provided in request and no pagination token and no results were returned.
Parameters:
-
next_token(Optional[NextToken], default:None) –To retrieve the next set of results, the
nextTokenvalue from a previous response; otherwise null to receive the first set of results. -
max_results(Optional[RegistryMaxResults], default:None) –The maximum number of results to return in this operation.
-
attribute_name(Optional[AttributeName], default:None) –The attribute name used to search for things.
-
attribute_value(Optional[AttributeValue], default:None) –The attribute value used to search for things.
-
thing_type_name(Optional[ThingTypeName], default:None) –The name of the thing type used to search for things.
-
use_prefix_attribute_value(Optional[usePrefixAttributeValue], default:None) –When
true, the action returns the thing resources with attribute values that start with theattributeValueprovided.When
false, or not present, the action returns only the thing resources with attribute values that match the entireattributeValueprovided.
Raises:
-
InternalFailureException–An unexpected error has occurred.
-
InvalidRequestException–The request is not valid.
-
ServiceUnavailableException–The service is temporarily unavailable.
-
ThrottlingException–The rate exceeds the limit.
-
UnauthorizedException–You are not authorized to perform this operation.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_iot/_services/async_io_t.py
14721 14722 14723 14724 14725 14726 14727 14728 14729 14730 14731 14732 14733 14734 14735 14736 14737 14738 14739 14740 14741 14742 14743 14744 14745 14746 14747 14748 14749 14750 14751 14752 14753 14754 14755 14756 14757 14758 14759 14760 14761 14762 14763 14764 14765 14766 14767 14768 14769 14770 14771 14772 14773 14774 14775 14776 14777 14778 14779 14780 14781 14782 14783 14784 14785 14786 14787 14788 14789 14790 14791 14792 14793 14794 14795 14796 14797 | |