Skip to main content

template_permissions

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

Overview

Nametemplate_permissions
TypeResource
Idaws.quicksight.template_permissions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
permissionsarrayA list of resource permissions to be set on the template.
request_idstringThe Amazon Web Services request ID for this operation.
statusintegerThe HTTP status of the request.
template_arnstringThe Amazon Resource Name (ARN) of the template.
template_idstringThe ID for the template. (pattern: <code>[\w-]+</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_template_permissionsselectaws_account_id, template_id, regionDescribes read and write permissions on a template.
update_template_permissionsupdateaws_account_id, template_id, regionUpdates the resource permissions for a template.

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 template.
regionstringAWS region (default: us-east-1)
template_idstringThe ID for the template.

SELECT examples

Describes read and write permissions on a template.

SELECT
permissions,
request_id,
status,
template_arn,
template_id
FROM aws.quicksight.template_permissions
WHERE aws_account_id = '{{ aws_account_id }}' -- required
AND template_id = '{{ template_id }}' -- required
AND region = '{{ region }}' -- required
;

UPDATE examples

Updates the resource permissions for a template.

UPDATE aws.quicksight.template_permissions
SET
GrantPermissions = '{{ GrantPermissions }}',
RevokePermissions = '{{ RevokePermissions }}'
WHERE
aws_account_id = '{{ aws_account_id }}' --required
AND template_id = '{{ template_id }}' --required
AND region = '{{ region }}' --required
RETURNING
permissions,
request_id,
status,
template_arn,
template_id;