TracingConfig

class aws_cdk.aws_sns.TracingConfig(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)

Bases: Enum

The tracing mode of an Amazon SNS topic.

ExampleMetadata:

infused

Example:

topic = sns.Topic(self, "MyTopic",
    tracing_config=sns.TracingConfig.ACTIVE
)

Attributes

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.

PASS_THROUGH

The mode that topic passes trace headers received from the Amazon SNS publisher to its subscription.