Skip to main content

agent_permissions

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

Overview

Nameagent_permissions
TypeResource
Idaws.quicksight.agent_permissions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
agent_idstringThe unique identifier for the agent. (pattern: <code>[0-9a-zA-Z-_.+]+</code>)
arnstringThe Amazon Resource Name (ARN) of the agent. (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>)
permissionsarrayThe resource permissions for the agent.
request_idstringThe Amazon Web Services request ID for this operation.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_agent_permissionsselectagent_id, aws_account_id, regionDescribes the resource permissions for an agent.
update_agent_permissionsupdateagent_id, aws_account_id, regionUpdates the resource permissions for an agent.

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
agent_idstringThe unique identifier for the agent.
aws_account_idstringThe ID of the Amazon Web Services account that contains the agent.
regionstringAWS region (default: us-east-1)

SELECT examples

Describes the resource permissions for an agent.

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

UPDATE examples

Updates the resource permissions for an agent.

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