list_thing_principals
(**kwargs)¶Lists the principals associated with the specified thing. A principal can be X.509 certificates, IAM users, groups, and roles, Amazon Cognito identities or federated identities.
Requires permission to access the ListThingPrincipals action.
See also: AWS API Documentation
Request Syntax
response = client.list_thing_principals(
nextToken='string',
maxResults=123,
thingName='string'
)
nextToken
value from a previous response; otherwise null to receive the first set of results.[REQUIRED]
The name of the thing.
dict
Response Syntax
{
'principals': [
'string',
],
'nextToken': 'string'
}
Response Structure
(dict) --
The output from the ListThingPrincipals operation.
principals (list) --
The principals associated with the thing.
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