listEntitiesForPolicy
inline suspend fun IamClient.listEntitiesForPolicy(crossinline block: ListEntitiesForPolicyRequest.Builder.() -> Unit): ListEntitiesForPolicyResponse
Lists all IAM users, groups, and roles that the specified managed policy is attached to.
You can use the optional EntityFilter
parameter to limit the results to a particular type of entity (users, groups, or roles). For example, to list only the roles that are attached to the specified policy, set EntityFilter
to Role
.
You can paginate the results using the MaxItems
and Marker
parameters.