Skip to main content

profiling_groups

Creates, updates, deletes or gets a profiling_group resource or lists profiling_groups in a region

Overview

Nameprofiling_groups
TypeResource
DescriptionThis resource schema represents the Profiling Group resource in the Amazon CodeGuru Profiler service.
Idaws.codeguruprofiler.profiling_groups

Fields

NameDatatypeDescription
profiling_group_namestringThe name of the profiling group.
compute_platformstringThe compute platform of the profiling group.
agent_permissionsobjectThe agent permissions attached to this profiling group.
anomaly_detection_notification_configurationarrayConfiguration for Notification Channels for Anomaly Detection feature in CodeGuru Profiler which enables customers to detect anomalies in the application profile for those methods that represent the highest proportion of CPU time or latency
arnstringThe Amazon Resource Name (ARN) of the specified profiling group.
tagsarrayThe tags associated with a profiling group.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTProfilingGroupName, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all profiling_groups in a region.

SELECT
region,
profiling_group_name,
compute_platform,
agent_permissions,
anomaly_detection_notification_configuration,
arn,
tags
FROM aws.codeguruprofiler.profiling_groups
WHERE region = 'us-east-1';

Gets all properties from an individual profiling_group.

SELECT
region,
profiling_group_name,
compute_platform,
agent_permissions,
anomaly_detection_notification_configuration,
arn,
tags
FROM aws.codeguruprofiler.profiling_groups
WHERE region = 'us-east-1' AND data__Identifier = '<ProfilingGroupName>';

INSERT example

Use the following StackQL query and manifest file to create a new profiling_group resource, using stack-deploy.

/*+ create */
INSERT INTO aws.codeguruprofiler.profiling_groups (
ProfilingGroupName,
region
)
SELECT
'{{ ProfilingGroupName }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.codeguruprofiler.profiling_groups
WHERE data__Identifier = '<ProfilingGroupName>'
AND region = 'us-east-1';

Permissions

To operate on the profiling_groups resource, the following permissions are required:

Create

sns:Publish,
codeguru-profiler:AddNotificationChannels,
codeguru-profiler:CreateProfilingGroup,
codeguru-profiler:PutPermission,
codeguru-profiler:TagResource

Read

codeguru-profiler:DescribeProfilingGroup,
codeguru-profiler:ListTagsForResource

Update

sns:Publish,
codeguru-profiler:AddNotificationChannels,
codeguru-profiler:GetNotificationConfiguration,
codeguru-profiler:RemoveNotificationChannel,
codeguru-profiler:PutPermission,
codeguru-profiler:RemovePermission,
codeguru-profiler:GetPolicy,
codeguru-profiler:TagResource,
codeguru-profiler:UntagResource,
codeguru-profiler:ListTagsForResource

Delete

codeguru-profiler:DeleteProfilingGroup

List

codeguru-profiler:ListProfilingGroups,
codeguru-profiler:ListTagsForResource