Skip to content
v2.278.0

TracingConfig Enum ​

The tracing mode of an Amazon SNS topic.

Example ​

ts
const topic = new sns.Topic(this, 'MyTopic', {
  tracingConfig: sns.TracingConfig.ACTIVE,
});
python
topic = sns.Topic(self, "MyTopic",
    tracing_config=sns.TracingConfig.ACTIVE
)
java
Topic topic = Topic.Builder.create(this, "MyTopic")
        .tracingConfig(TracingConfig.ACTIVE)
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
var topic = new Topic(this, "MyTopic", new TopicProps {
    TracingConfig = TracingConfig.ACTIVE
});
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
topic := sns.NewTopic(this, jsii.String("MyTopic"), &TopicProps{
	TracingConfig: sns.TracingConfig_ACTIVE,
})

Members ​

MemberDescription
PASS_THROUGHThe mode that topic passes trace headers received from the Amazon SNS publisher to its subscription.
ACTIVEThe mode that Amazon SNS vend X-Ray segment data to topic owner account if the sampled flag in the tracing header is true.

Referenced by ​

  • TopicProps.tracingConfigtracing_configtracingConfigTracingConfigTracingConfig