Amazon EventBridge 中的双栈服务端点 - Amazon EventBridge
Amazon Web Services 文档中描述的 Amazon Web Services 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅 中国的 Amazon Web Services 服务入门 (PDF)

本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。

Amazon EventBridge 中的双栈服务端点

除了 IPv4 服务端点外,EventBridge 还为以下资源提供双栈端点。您可以使用 IPv4 或 IPv6 请求访问这些端点。

资源 区域端点 FIPS 端点 区域

事件总线

HTTPS://events.region-code.api.amazonwebservices.com.cn

管道

HTTPS://pipes.region-code.api.amazonwebservices.com.cn

计划程序 ()*–

HTTPS://scheduler.region-code.api.amazonwebservices.com.cn

架构

HTTPS://schemas.region-code.api.amazonwebservices.com.cn

要向双栈端点发出请求,必须使用工具或 Amazon SDK 提供的机制来指定端点。有关更多信息,请参阅《Amazon SDK 和工具参考指南》中的 Dual-stack and FIPS endpoints

例如,Amazon CLI 提供 --endpoint-url 选项。以下示例使用 --endpoint-url 参数为北京区域的事件总线指定双栈端点。

aws events describe-event-bus --region cn-north-1 --endpoint-url https://events.cn-north-1.api.amazonwebservices.com.cn

有关指定区域端点时可使用的区域代码列表,请参阅《Amazon 一般参考》中的 Regional endpoints

使用双栈端点时的注意事项

使用双栈端点访问 EventBridge 资源时,请记住以下注意事项。

对于事件总线:

  • 对事件总线的双栈支持包括归档与重播功能。

  • EventBridge 目前不支持全局端点的双栈端点。

    如果将 Amazon SDK 配置为使用双栈端点,调用 PutEvents 将导致错误。这是因为 SDK 在构造端点时使用了双栈域(events.region-code.api.amazonwebservices.com.cn)而非 events.region-code.amazonwebservices.com.cn,从而导致请求被发送到不存在的端点。

对于 EventBridge Pipes: