# 

# exoscale_iam_role (Data Source)

Fetch Exoscale [IAM](https://community.exoscale.com/documentation/iam/) Role.

Corresponding resource: [exoscale_iam_role]({{< ref "../resources/iam_role.md" >}}).



<!-- schema generated by tfplugindocs -->
## Schema

### Optional

- `id` (String) The role ID to match (conflicts with `name`).
- `name` (String) the role name to match (conflicts with `id`).
- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts))

### Read-Only

- `description` (String) A free-form text describing the IAM Role
- `editable` (Boolean) Defines if IAM Role Policy is editable or not.
- `labels` (Map of String) IAM Role labels.
- `permissions` (List of String) IAM Role permissions.
- `policy` (Attributes) IAM Policy. (see [below for nested schema](#nestedatt--policy))

<a id="nestedblock--timeouts"></a>
### Nested Schema for `timeouts`

Optional:

- `read` (String) A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.


<a id="nestedatt--policy"></a>
### Nested Schema for `policy`

Read-Only:

- `default_service_strategy` (String) Default service strategy (`allow` or `deny`).
- `services` (Attributes Map) IAM policy services. (see [below for nested schema](#nestedatt--policy--services))

<a id="nestedatt--policy--services"></a>
### Nested Schema for `policy.services`

Read-Only:

- `rules` (Attributes List) List of IAM service rules (if type is `rules`). (see [below for nested schema](#nestedatt--policy--services--rules))
- `type` (String) Service type (`rules`, `allow`, or `deny`).

<a id="nestedatt--policy--services--rules"></a>
### Nested Schema for `policy.services.rules`

Read-Only:

- `action` (String) IAM policy rule action (`allow` or `deny`).
- `expression` (String) IAM policy rule expression.
- `resources` (List of String, Deprecated)



