AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::XRay::Group

CfnGroup

Use the `AWS::XRay::Group` resource to specify a group with a name and a filter expression. Groups enable the collection of traces that match the filter expression, can be used to filter service graphs and traces, and to supply Amazon CloudWatch metrics.

Import

import { CfnGroup } from 'aws-cdk-lib/aws-xray';

Or use the module namespace:

import * as xray from 'aws-cdk-lib/aws-xray';
// xray.CfnGroup

Properties

Configuration passed to the constructor as CfnGroupProps.

groupNameRequired
string

The unique case-sensitive name of the group.

filterExpressionOptional
string

The filter expression defining the parameters to include traces.

insightsConfigurationOptional
IResolvable | InsightsConfigurationProperty

The structure containing configurations related to insights. - The InsightsEnabled boolean can be set to true to enable insights for the group or false to disable insights for the group. - The NotificationsEnabled boolean can be set to true to enable insights notifications through Amazon EventBridge for the group.

tagsOptional
CfnTag[]

An array of key-value pairs to apply to this resource.

CloudFormation Resource

This L1 construct maps directly to the following CloudFormation resource type.

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter