Skip to main content

policies

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

Overview

Namepolicies
TypeResource
Idaws.codeguruprofiler.policies

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
policystringThe JSON-formatted resource-based policy attached to the ProfilingGroup.
revision_idstringA 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:

NameAccessible byRequired ParamsOptional ParamsDescription
get_policyselectprofiling_group_name, regionReturns 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.

NameDatatypeDescription
profiling_group_namestringThe name of the profiling group.
regionstringAWS region (default: us-east-1)

SELECT examples

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
;