CfnGroupProps
Struct External
Properties for defining a CfnGroup.
| 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_xray as xray } from 'aws-cdk-lib';
const cfnGroupProps: xray.CfnGroupProps = {
groupName: 'groupName',
// the properties below are optional
filterExpression: 'filterExpression',
insightsConfiguration: {
insightsEnabled: false,
notificationsEnabled: false,
},
tags: [{
key: 'key',
value: 'value',
}],
};
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_xray as xray
cfn_group_props = xray.CfnGroupProps(
group_name="groupName",
# the properties below are optional
filter_expression="filterExpression",
insights_configuration=xray.CfnGroup.InsightsConfigurationProperty(
insights_enabled=False,
notifications_enabled=False
),
tags=[CfnTag(
key="key",
value="value"
)]
)
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.xray.*;
CfnGroupProps cfnGroupProps = CfnGroupProps.builder()
.groupName("groupName")
// the properties below are optional
.filterExpression("filterExpression")
.insightsConfiguration(InsightsConfigurationProperty.builder()
.insightsEnabled(false)
.notificationsEnabled(false)
.build())
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.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.XRay;
var cfnGroupProps = new CfnGroupProps {
GroupName = "groupName",
// the properties below are optional
FilterExpression = "filterExpression",
InsightsConfiguration = new InsightsConfigurationProperty {
InsightsEnabled = false,
NotificationsEnabled = false
},
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
};
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"
cfnGroupProps := &CfnGroupProps{
GroupName: jsii.String("groupName"),
// the properties below are optional
FilterExpression: jsii.String("filterExpression"),
InsightsConfiguration: &InsightsConfigurationProperty{
InsightsEnabled: jsii.Boolean(false),
NotificationsEnabled: jsii.Boolean(false),
},
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
}
Properties
filterExpressionoptionalstringfilter_expressionoptionalstrfilterExpressionoptionalStringFilterExpressionoptionalstringFilterExpressionoptional*string #The filter expression defining the parameters to include traces.
The unique case-sensitive name of the group.
insightsConfigurationoptionalIResolvable | CfnGroup.insights_configurationoptionaltyping.Union[IResolvable, InsightsConfigurationProperty]insightsConfigurationoptionalIResolvableInsightsConfigurationoptionalIResolvableInsightsConfigurationoptionalinterface{} #The structure containing configurations related to insights.
notes
- 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.