space_permissions
Creates, updates, deletes, gets or lists a space_permissions resource.
Overview
| Name | space_permissions |
| Type | Resource |
| Id | aws.quicksight.space_permissions |
Fields
The following fields are returned by SELECT queries:
- describe_space_permissions
| Name | Datatype | Description |
|---|---|---|
permissions | array | A list of resource permissions for the space. |
request_id | string | The Amazon Web Services request ID for this operation. |
space_arn | string | The ARN of the space. (pattern: <code>arn:[a-z0-9-.]{1,63}:[a-z0-9-.]{0,63}:[a-z0-9-.]{0,63}:[a-z0-9-.]{0,63}:[^/].{0,1023}</code>) |
space_id | string | The ID of the space. (pattern: <code>[0-9a-zA-Z-_=.+]+</code>) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
describe_space_permissions | select | aws_account_id, space_id, region | Describes the permissions for an Amazon QuickSight space. | |
update_space_permissions | update | aws_account_id, space_id, region | Updates the permissions for an Amazon QuickSight space. |
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 space. |
region | string | AWS region (default: us-east-1) |
space_id | string | The ID of the space that you want to update permissions for. |
SELECT examples
- describe_space_permissions
Describes the permissions for an Amazon QuickSight space.
SELECT
permissions,
request_id,
space_arn,
space_id
FROM aws.quicksight.space_permissions
WHERE aws_account_id = '{{ aws_account_id }}' -- required
AND space_id = '{{ space_id }}' -- required
AND region = '{{ region }}' -- required
;
UPDATE examples
- update_space_permissions
Updates the permissions for an Amazon QuickSight space.
UPDATE aws.quicksight.space_permissions
SET
GrantPermissions = '{{ GrantPermissions }}',
RevokePermissions = '{{ RevokePermissions }}'
WHERE
aws_account_id = '{{ aws_account_id }}' --required
AND space_id = '{{ space_id }}' --required
AND region = '{{ region }}' --required
RETURNING
permissions,
request_id,
space_arn,
space_id;