微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

SNS 主题可以成为 EventBridge 的来源吗?

如何解决SNS 主题可以成为 EventBridge 的来源吗?

快速提问。我计划通过将 SNS 主题作为源传递给 EventBridge 而不是通过 Lambda 传递,然后从 EventBridge 传递到 Firehose,从而最大限度地减少资源的使用。我试过了,但它不起作用。是否有可能,或者 Lambda 是将其作为源的唯一方法

解决方法

不可能。 SNS 主题的唯一有效订阅 are:

    For the http protocol,the (public) endpoint is a URL beginning with http://.

    For the https protocol,the (public) endpoint is a URL beginning with https://.

    For the email protocol,the endpoint is an email address.

    For the email-json protocol,the endpoint is an email address.

    For the sms protocol,the endpoint is a phone number of an SMS-enabled device.

    For the sqs protocol,the endpoint is the ARN of an Amazon SQS queue.

    For the application protocol,the endpoint is the EndpointArn of a mobile app and device.

    For the lambda protocol,the endpoint is the ARN of an AWS Lambda function.

    For the firehose protocol,the endpoint is the ARN of an Amazon Kinesis Data Firehose delivery stream.

但 SNS 可以直接推送到 Firehose,所以也许就这样做。

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。