Skip to main content

iam_policy_assignments_for_users

Creates, updates, deletes, gets or lists an iam_policy_assignments_for_users resource.

Overview

Nameiam_policy_assignments_for_users
TypeResource
Idaws.quicksight.iam_policy_assignments_for_users

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
assignment_namestringA name for the IAM policy assignment. (pattern: <code>(?=^.{2,256}$)(?!.\s)[0-9a-zA-Z-_.:=+@]$</code>)
policy_arnstringThe Amazon Resource Name (ARN) of the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_iam_policy_assignments_for_userselectaws_account_id, user_name, namespace, regionnext-token, max-resultsLists 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.

NameDatatypeDescription
aws_account_idstringThe ID of the Amazon Web Services account that contains the assignments.
namespacestringThe namespace of the assignment.
regionstringAWS region (default: us-east-1)
user_namestringThe name of the user.
max-resultsintegerThe maximum number of results to be returned per request.
next-tokenstringThe token for the next set of results, or null if there are no more results.

SELECT examples

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 }}'
;