AWS::XRay::GroupUse 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 { CfnGroup } from 'aws-cdk-lib/aws-xray';Or use the module namespace:
import * as xray from 'aws-cdk-lib/aws-xray';
// xray.CfnGroupConfiguration passed to the constructor as CfnGroupProps.
groupNameRequiredstringThe unique case-sensitive name of the group.
filterExpressionOptionalstringThe filter expression defining the parameters to include traces.
insightsConfigurationOptionalIResolvable | InsightsConfigurationPropertyThe 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.
tagsOptionalCfnTag[]An array of key-value pairs to apply to this resource.
This L1 construct maps directly to the following CloudFormation resource type.
Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to Newsletteraws-xrayAWS::XRay::Group