# CfnProfilingGroupProps

Properties for defining a `CfnProfilingGroup`.

Used as props by: [CfnProfilingGroup](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_codeguruprofiler.CfnProfilingGroup.html)

- Source: Generated at build time
- Type last changed: v2.227.0 · 21 Nov 2025

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_codeguruprofiler as codeguruprofiler } from 'aws-cdk-lib';

declare const agentPermissions: any;
const cfnProfilingGroupProps: codeguruprofiler.CfnProfilingGroupProps = {
  profilingGroupName: 'profilingGroupName',

  // the properties below are optional
  agentPermissions: agentPermissions,
  anomalyDetectionNotificationConfiguration: [{
    channelUri: 'channelUri',

    // the properties below are optional
    channelId: 'channelId',
  }],
  computePlatform: 'computePlatform',
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
```

Python:

```python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_codeguruprofiler as codeguruprofiler

# agent_permissions: Any

cfn_profiling_group_props = codeguruprofiler.CfnProfilingGroupProps(
    profiling_group_name="profilingGroupName",

    # the properties below are optional
    agent_permissions=agent_permissions,
    anomaly_detection_notification_configuration=[codeguruprofiler.CfnProfilingGroup.ChannelProperty(
        channel_uri="channelUri",

        # the properties below are optional
        channel_id="channelId"
    )],
    compute_platform="computePlatform",
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.codeguruprofiler.*;

Object agentPermissions;

CfnProfilingGroupProps cfnProfilingGroupProps = CfnProfilingGroupProps.builder()
        .profilingGroupName("profilingGroupName")

        // the properties below are optional
        .agentPermissions(agentPermissions)
        .anomalyDetectionNotificationConfiguration(List.of(ChannelProperty.builder()
                .channelUri("channelUri")

                // the properties below are optional
                .channelId("channelId")
                .build()))
        .computePlatform("computePlatform")
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .build()))
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CodeGuruProfiler;

var agentPermissions;

var cfnProfilingGroupProps = new CfnProfilingGroupProps {
    ProfilingGroupName = "profilingGroupName",

    // the properties below are optional
    AgentPermissions = agentPermissions,
    AnomalyDetectionNotificationConfiguration = new [] { new ChannelProperty {
        ChannelUri = "channelUri",

        // the properties below are optional
        ChannelId = "channelId"
    } },
    ComputePlatform = "computePlatform",
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } }
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

var agentPermissions interface{}

cfnProfilingGroupProps := &CfnProfilingGroupProps{
	ProfilingGroupName: jsii.String("profilingGroupName"),

	// the properties below are optional
	AgentPermissions: agentPermissions,
	AnomalyDetectionNotificationConfiguration: []interface{}{
		&ChannelProperty{
			ChannelUri: jsii.String("channelUri"),

			// the properties below are optional
			ChannelId: jsii.String("channelId"),
		},
	},
	ComputePlatform: jsii.String("computePlatform"),
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}
```

## Properties

- `agentPermissions`: any — The agent permissions attached to this profiling group.

  This action group grants `ConfigureAgent` and `PostAgentProfile` permissions to perform actions required by the profiling agent. The Json consists of key `Principals` .

  *Principals* : A list of string ARNs for the roles and users you want to grant access to the profiling group. Wildcards are not supported in the ARNs. You are allowed to provide up to 50 ARNs. An empty list is not permitted. This is a required key.

  For more information, see [Resource-based policies in CodeGuru Profiler](https://docs.aws.amazon.com/codeguru/latest/profiler-ug/resource-based-policies.html) in the *Amazon CodeGuru Profiler user guide* , [ConfigureAgent](https://docs.aws.amazon.com/codeguru/latest/profiler-api/API_ConfigureAgent.html) , and [PostAgentProfile](https://docs.aws.amazon.com/codeguru/latest/profiler-api/API_PostAgentProfile.html) .

- `anomalyDetectionNotificationConfiguration`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnProfilingGroup.ChannelProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_codeguruprofiler.CfnProfilingGroup.ChannelProperty.html)[] — Adds anomaly notifications for a profiling group.

- `computePlatform`: string — The compute platform of the profiling group.

  Use `AWSLambda` if your application runs on AWS Lambda. Use `Default` if your application runs on a compute platform that is not AWS Lambda , such an Amazon EC2 instance, an on-premises server, or a different platform. If not specified, `Default` is used. This property is immutable.

- `profilingGroupName`: string | [IFunctionRef](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.interfaces.aws_lambda.IFunctionRef.html) (required) — The name of the profiling group.

- `tags`: [CfnTag](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — A list of tags to add to the created profiling group.
