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.
Idawscc.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.

For more information, see AWS::CodeGuruProfiler::ProfilingGroup.

Methods

NameResourceAccessible byRequired Params
create_resourceprofiling_groupsINSERTProfilingGroupName, region
delete_resourceprofiling_groupsDELETEIdentifier, region
update_resourceprofiling_groupsUPDATEIdentifier, PatchDocument, region
list_resourcesprofiling_groups_list_onlySELECTregion
get_resourceprofiling_groupsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual profiling_group.

SELECT
region,
profiling_group_name,
compute_platform,
agent_permissions,
anomaly_detection_notification_configuration,
arn,
tags
FROM awscc.codeguruprofiler.profiling_groups
WHERE
region = 'us-east-1' AND
Identifier = '{{ profiling_group_name }}';

INSERT example

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

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

UPDATE example

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

/*+ update */
UPDATE awscc.codeguruprofiler.profiling_groups
SET PatchDocument = string('{{ {
"AgentPermissions": agent_permissions,
"AnomalyDetectionNotificationConfiguration": anomaly_detection_notification_configuration,
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ profiling_group_name }}';

DELETE example

/*+ delete */
DELETE FROM awscc.codeguruprofiler.profiling_groups
WHERE
Identifier = '{{ profiling_group_name }}' AND
region = 'us-east-1';

Permissions

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

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