policies
Creates, updates, deletes, gets or lists a policies resource.
Overview
| Name | policies |
| Type | Resource |
| Id | aws.qbusiness.policies |
Fields
The following fields are returned by SELECT queries:
- get_policy
| Name | Datatype | Description |
|---|---|---|
policy | string | The JSON representation of the permission policy. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_policy | select | application_id, region | Retrieves the current permission policy for a Amazon Q Business application. The policy is returned as a JSON-formatted string and defines the IAM actions that are allowed or denied for the application's resources. |
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 |
|---|---|---|
application_id | string | The unique identifier of the Amazon Q Business application. |
region | string | AWS region (default: us-east-1) |
SELECT examples
- get_policy
Retrieves the current permission policy for a Amazon Q Business application. The policy is returned as a JSON-formatted string and defines the IAM actions that are allowed or denied for the application's resources.
SELECT
policy
FROM aws.qbusiness.policies
WHERE application_id = '{{ application_id }}' -- required
AND region = '{{ region }}' -- required
;