TracingConfig Enum
The tracing mode of an Amazon SNS topic.
| Source | aws-sns/lib/topic.ts |
|---|---|
| Type last changed |
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
| Member | Description |
|---|---|
PASS_THROUGH | The mode that topic passes trace headers received from the Amazon SNS publisher to its subscription. |
ACTIVE | The 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