IoT.Client.
list_targets_for_policy
(**kwargs)¶List targets for the specified policy.
Requires permission to access the ListTargetsForPolicy action.
See also: AWS API Documentation
Request Syntax
response = client.list_targets_for_policy(
policyName='string',
marker='string',
pageSize=123
)
[REQUIRED]
The policy name.
dict
Response Syntax
{
'targets': [
'string',
],
'nextMarker': 'string'
}
Response Structure
(dict) --
targets (list) --
The policy targets.
nextMarker (string) --
A marker used to get the next set of results.
Exceptions
IoT.Client.exceptions.ResourceNotFoundException
IoT.Client.exceptions.InvalidRequestException
IoT.Client.exceptions.ThrottlingException
IoT.Client.exceptions.UnauthorizedException
IoT.Client.exceptions.ServiceUnavailableException
IoT.Client.exceptions.InternalFailureException
IoT.Client.exceptions.LimitExceededException