policies
Creates, updates, deletes, gets or lists a policies resource.
Overview
| Name | policies |
| Type | Resource |
| Id | aws.codeguruprofiler.policies |
Fields
The following fields are returned by SELECT queries:
- get_policy
| Name | Datatype | Description |
|---|---|---|
policy | string | The JSON-formatted resource-based policy attached to the ProfilingGroup. |
revision_id | string | A unique identifier for the current revision of the returned policy. (pattern: <code>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}</code>) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_policy | select | profiling_group_name, region | Returns the JSON-formatted resource-based policy on a profiling group. |
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 |
|---|---|---|
profiling_group_name | string | The name of the profiling group. |
region | string | AWS region (default: us-east-1) |
SELECT examples
- get_policy
Returns the JSON-formatted resource-based policy on a profiling group.
SELECT
policy,
revision_id
FROM aws.codeguruprofiler.policies
WHERE profiling_group_name = '{{ profiling_group_name }}' -- required
AND region = '{{ region }}' -- required
;