Amazon.IdentityManagement.AmazonIdentityManagementServiceClient.ListEntitiesForPolicy C# (CSharp) Method

ListEntitiesForPolicy() public method

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.

/// The request was rejected because an invalid or out-of-range value was supplied for /// an input parameter. /// /// The request was rejected because it referenced an entity that does not exist. The /// error message describes the entity. /// /// The request processing has failed because of an unknown error, exception or failure. ///
public ListEntitiesForPolicy ( ListEntitiesForPolicyRequest request ) : ListEntitiesForPolicyResponse
request ListEntitiesForPolicyRequest Container for the necessary parameters to execute the ListEntitiesForPolicy service method.
return ListEntitiesForPolicyResponse
        public ListEntitiesForPolicyResponse ListEntitiesForPolicy(ListEntitiesForPolicyRequest request)
        {
            var marshaller = new ListEntitiesForPolicyRequestMarshaller();
            var unmarshaller = ListEntitiesForPolicyResponseUnmarshaller.Instance;

            return Invoke<ListEntitiesForPolicyRequest,ListEntitiesForPolicyResponse>(request, marshaller, unmarshaller);
        }
AmazonIdentityManagementServiceClient