resource_policies
Creates, updates, deletes, gets or lists a resource_policies resource.
Overview
| Name | resource_policies |
| Type | Resource |
| Id | aws.bcm_dashboards.resource_policies |
Fields
The following fields are returned by SELECT queries:
- get_resource_policy
| Name | Datatype | Description |
|---|---|---|
policy_document | string | The JSON policy document that represents the dashboard's resource-based policy. (pattern: <code>[\S\s]*</code>) |
resource_arn | string | The ARN of the dashboard for which the resource-based policy was retrieved. (pattern: <code>arn:aws[-a-z0-9]*:bcm-dashboards::[0-9]{12}:dashboard/(*|[-a-z0-9]+)</code>) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_resource_policy | select | region | Retrieves the resource-based policy attached to a dashboard, showing sharing configurations and permissions. |
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 |
|---|---|---|
region | string | AWS region (default: us-east-1) |
SELECT examples
- get_resource_policy
Retrieves the resource-based policy attached to a dashboard, showing sharing configurations and permissions.
SELECT
policy_document,
resource_arn
FROM aws.bcm_dashboards.resource_policies
WHERE region = '{{ region }}' -- required
;