GroupingAttributeDefinitionProperty
Struct External
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.
| Source | |
|---|---|
| Type last changed |
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',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_applicationsignals as applicationsignals
grouping_attribute_definition_property = applicationsignals.CfnGroupingConfiguration.GroupingAttributeDefinitionProperty(
grouping_name="groupingName",
grouping_source_keys=["groupingSourceKeys"],
# the properties below are optional
default_grouping_value="defaultGroupingValue"
)
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.applicationsignals.*;
GroupingAttributeDefinitionProperty groupingAttributeDefinitionProperty = GroupingAttributeDefinitionProperty.builder()
.groupingName("groupingName")
.groupingSourceKeys(List.of("groupingSourceKeys"))
// the properties below are optional
.defaultGroupingValue("defaultGroupingValue")
.build();
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.ApplicationSignals;
var groupingAttributeDefinitionProperty = new GroupingAttributeDefinitionProperty {
GroupingName = "groupingName",
GroupingSourceKeys = new [] { "groupingSourceKeys" },
// the properties below are optional
DefaultGroupingValue = "defaultGroupingValue"
};
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"
groupingAttributeDefinitionProperty := &GroupingAttributeDefinitionProperty{
GroupingName: jsii.String("groupingName"),
GroupingSourceKeys: []*string{
jsii.String("groupingSourceKeys"),
},
// the properties below are optional
DefaultGroupingValue: jsii.String("defaultGroupingValue"),
}
Properties
defaultGroupingValueoptionalstringdefault_grouping_valueoptionalstrdefaultGroupingValueoptionalStringDefaultGroupingValueoptionalstringDefaultGroupingValueoptional*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.
groupingNamestringgrouping_namestrgroupingNameStringGroupingNamestringGroupingName*string required #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*[]*string required #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.