list_things
¶
list_things(
*,
config_overrides: Optional[IoTClientConfig] = 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/io_t.py
14504 14505 14506 14507 14508 14509 14510 14511 14512 14513 14514 14515 14516 14517 14518 14519 14520 14521 14522 14523 14524 14525 14526 14527 14528 14529 14530 14531 14532 14533 14534 14535 14536 14537 14538 14539 14540 14541 14542 14543 14544 14545 14546 14547 14548 14549 14550 14551 14552 14553 14554 14555 14556 14557 14558 14559 14560 14561 14562 14563 14564 14565 14566 14567 14568 14569 14570 14571 14572 14573 14574 14575 14576 14577 14578 14579 | |