Skip to main content

folder_permissions

Creates, updates, deletes, gets or lists a folder_permissions resource.

Overview

Namefolder_permissions
TypeResource
Idaws.quicksight.folder_permissions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
actionsarrayThe IAM action to grant or revoke permissions on.
principalstringThe Amazon Resource Name (ARN) of the principal. This can be one of the following: The ARN of an Quick Sight user or group associated with a data source or dataset. (This is common.) The ARN of an Quick Sight user, group, or namespace associated with an analysis, dashboard, template, or theme. Namespace sharing is not supported for action connectors. (This is common.) The ARN of an Amazon Web Services account root: This is an IAM ARN rather than a Quick Sight ARN. Use this option only to share resources (templates) across Amazon Web Services accounts. Account root sharing is not supported for action connectors. (This is less common.)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_folder_permissionsselectaws_account_id, folder_id, regionnamespace, max-results, next-tokenDescribes permissions for a folder.
update_folder_permissionsupdateaws_account_id, folder_id, regionUpdates permissions of a folder.

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 for the Amazon Web Services account that contains the folder to update.
folder_idstringThe ID of the folder.
regionstringAWS region (default: us-east-1)
max-resultsintegerThe maximum number of results to be returned per request.
namespacestringThe namespace of the folder whose permissions you want described.
next-tokenstringA pagination token for the next set of results.

SELECT examples

Describes permissions for a folder.

SELECT
actions,
principal
FROM aws.quicksight.folder_permissions
WHERE aws_account_id = '{{ aws_account_id }}' -- required
AND folder_id = '{{ folder_id }}' -- required
AND region = '{{ region }}' -- required
AND namespace = '{{ namespace }}'
AND `max-results` = '{{ max-results }}'
AND `next-token` = '{{ next-token }}'
;

UPDATE examples

Updates permissions of a folder.

UPDATE aws.quicksight.folder_permissions
SET
GrantPermissions = '{{ GrantPermissions }}',
RevokePermissions = '{{ RevokePermissions }}'
WHERE
aws_account_id = '{{ aws_account_id }}' --required
AND folder_id = '{{ folder_id }}' --required
AND region = '{{ region }}' --required
RETURNING
arn,
folder_id,
permissions,
request_id,
status;