AWS CDK sns 交付状态日志记录

AWS CDK sns Delivery status logging

我有一个场景,我在 SNS 主题中发布一条消息,然后将该消息发送到 SQS 队列。我想要的是每次向订阅者发送消息时都登录 SNS(比如我的 sqs 队列)。 SNS 是 AWS 的被动组件,日志不会自动生成,必须通过“交付状态日志记录”功能进行设置。我已通过 AWS 控制台完成设置,但我想通过 AWS CDK 完成设置。我没有在文档中找到任何内容,也没有在网络示例中找到任何内容。有人已经这样做了吗?

此致,

恐怕目前只能通过AWS SDK或管理控制台来完成:https://docs.aws.amazon.com/sns/latest/dg/sns-topic-attributes.html

To configure topic attributes for message delivery status, you can use the AWS Management Console, AWS software development kits (SDKs), or query API.

我看不到通过 CloudFormation 进行设置的选项:https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sns-topic.html