Skip to main content

flow_permissions

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

Overview

Nameflow_permissions
TypeResource
Idaws.quicksight.flow_permissions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
arnstringThe Amazon Resource Name (ARN) of the flow you are getting permissions against.
flow_idstringThe unique identifier of the flow with permissions. (pattern: <code>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}</code>)
permissionsarrayA structure that contains the permissions for the flow.
request_idstringThe Amazon Web Services request ID for this operation.
statusintegerThe HTTP status of the request.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_flow_permissionsselectaws_account_id, flow_id, regionGet permissions for a flow.
update_flow_permissionsupdateaws_account_id, flow_id, regionUpdates permissions against principals on a flow.

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 flow you are updating permissions against.
flow_idstringThe unique identifier of the flow to update permissions for.
regionstringAWS region (default: us-east-1)

SELECT examples

Get permissions for a flow.

SELECT
arn,
flow_id,
permissions,
request_id,
status
FROM aws.quicksight.flow_permissions
WHERE aws_account_id = '{{ aws_account_id }}' -- required
AND flow_id = '{{ flow_id }}' -- required
AND region = '{{ region }}' -- required
;

UPDATE examples

Updates permissions against principals on a flow.

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