iam_policy_assignments_for_users
Creates, updates, deletes, gets or lists an iam_policy_assignments_for_users resource.
Overview
| Name | iam_policy_assignments_for_users |
| Type | Resource |
| Id | aws.quicksight.iam_policy_assignments_for_users |
Fields
The following fields are returned by SELECT queries:
- list_iam_policy_assignments_for_user
| Name | Datatype | Description |
|---|---|---|
assignment_name | string | A name for the IAM policy assignment. (pattern: <code>(?=^.{2,256}$)(?!.\s)[0-9a-zA-Z-_.:=+@]$</code>) |
policy_arn | string | The Amazon Resource Name (ARN) of the resource. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list_iam_policy_assignments_for_user | select | aws_account_id, user_name, namespace, region | next-token, max-results | Lists all of the IAM policy assignments, including the Amazon Resource Names (ARNs), for the IAM policies assigned to the specified user and group, or groups that the user belongs to. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
aws_account_id | string | The ID of the Amazon Web Services account that contains the assignments. |
namespace | string | The namespace of the assignment. |
region | string | AWS region (default: us-east-1) |
user_name | string | The name of the user. |
max-results | integer | The maximum number of results to be returned per request. |
next-token | string | The token for the next set of results, or null if there are no more results. |
SELECT examples
- list_iam_policy_assignments_for_user
Lists all of the IAM policy assignments, including the Amazon Resource Names (ARNs), for the IAM policies assigned to the specified user and group, or groups that the user belongs to.
SELECT
assignment_name,
policy_arn
FROM aws.quicksight.iam_policy_assignments_for_users
WHERE aws_account_id = '{{ aws_account_id }}' -- required
AND user_name = '{{ user_name }}' -- required
AND namespace = '{{ namespace }}' -- required
AND region = '{{ region }}' -- required
AND `next-token` = '{{ next-token }}'
AND `max-results` = '{{ max-results }}'
;