# For Each Role

> `UiPath.AmazonWebServices.Activities.ForEachRole`

`UiPath.AmazonWebServices.Activities.ForEachRole`

## Description

Performs an activity or a series of activities on each IAM role in the current AWS account that matches the filter criteria.

## Project compatibility

Windows - Legacy | Windows | Cross-platform

## Configuration

### Input

* **PathPrefix** - The path prefix to filter by. For example, if set to `/application_abc/component_xyz/`, it retrieves all roles whose path starts with `/application_abc/component_xyz/`. If not set, it returns all roles in the current AWS account.
* **RetrieveTags** - Indicates whether to retrieve the tags attached to the IAM role

### Output

* **Index** - A zero-based index that specifies which element of the current collection is being iterated.
