GroupingAttributeDefinitionProperty Struct
A structure that defines how services should be grouped based on specific attributes.
This includes the friendly name for the grouping, the source keys to derive values from, and an optional default value.
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_applicationsignals as applicationsignals } from 'aws-cdk-lib';
const groupingAttributeDefinitionProperty: applicationsignals.CfnGroupingConfiguration.GroupingAttributeDefinitionProperty = {
groupingName: 'groupingName',
groupingSourceKeys: ['groupingSourceKeys'],
// the properties below are optional
defaultGroupingValue: 'defaultGroupingValue',
};
Properties
defaultGroupingValuestringdefault_grouping_valuestrdefaultGroupingValueStringDefaultGroupingValuestringDefaultGroupingValue*string#The default value to use for this grouping attribute when no value can be derived from the source keys.
This ensures all services have a grouping value even if the source data is missing.
The friendly name for this grouping attribute, such as `BusinessUnit` or `Environment` .
This name is used to identify the grouping in the console and APIs.
groupingSourceKeysstring[]grouping_source_keystyping.List[str]groupingSourceKeysList<String>GroupingSourceKeysstring[]GroupingSourceKeys*[]*stringrequired#An array of source keys used to derive the grouping attribute value from telemetry data, AWS tags, or other sources.
For example, ["business_unit", "team"] would look for values in those fields.