Skip to main content

policies

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

Overview

Namepolicies
TypeResource
Idaws.qbusiness.policies

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
policystringThe JSON representation of the permission policy.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_policyselectapplication_id, regionRetrieves 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.

NameDatatypeDescription
application_idstringThe unique identifier of the Amazon Q Business application.
regionstringAWS region (default: us-east-1)

SELECT examples

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
;