In IAM there are four types of entities:
Users – End-users
Groups – A collection of users under one set of permissions. Roles – You can create roles and then assign them to AWS resources
Policy is a document that defines one or more permissions.
You can apply policies to users, groups, and roles. Users, groups, and roles can all share the same policy documents.
Below is an example of a JSON policy document.