IoT.Client.
list_principal_things
(**kwargs)¶Lists the things associated with the specified principal. A principal can be X.509 certificates, IAM users, groups, and roles, Amazon Cognito identities or federated identities.
Requires permission to access the ListPrincipalThings action.
See also: AWS API Documentation
Request Syntax
response = client.list_principal_things(
nextToken='string',
maxResults=123,
principal='string'
)
nextToken
value from a previous response; otherwise null to receive the first set of results.[REQUIRED]
The principal.
dict
Response Syntax
{
'things': [
'string',
],
'nextToken': 'string'
}
Response Structure
(dict) --
The output from the ListPrincipalThings operation.
things (list) --
The things.
nextToken (string) --
The token to use to get the next set of results, or null if there are no additional results.
Exceptions
IoT.Client.exceptions.InvalidRequestException
IoT.Client.exceptions.ThrottlingException
IoT.Client.exceptions.UnauthorizedException
IoT.Client.exceptions.ServiceUnavailableException
IoT.Client.exceptions.InternalFailureException
IoT.Client.exceptions.ResourceNotFoundException