

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# Amazon EventBridge 中的雙堆疊服務端點
<a name="dual-stack"></a>

除了 IPv4 服務端點之外，EventBridge 還提供下列資源的雙堆疊端點。您可以使用 IPv4 或 IPv6 請求存取這些端點。


| 資源 | 區域端點 | FIPS 端點 | 大區 (Regions) | 
| --- | --- | --- | --- | 
| [事件匯流排](eb-event-bus.md) | `HTTPS://events.{{region-code}}.api.aws`<br /> |  HTTPS://events-fips.{{region-code}}.api.aws  | [EventBridge](https://docs.aws.amazon.com/general/latest/gr/ev.html#ev_region) | 
| [管道](eb-pipes.md) | `HTTPS://pipes.{{region-code}}.api.aws` | `HTTPS:://pipes-fips.{{region-code}}.api.aws` | [EventBridge 管道](https://docs.aws.amazon.com/general/latest/gr/ev_pipes.html#ev_pipes_region) | 
| [排程器](using-eventbridge-scheduler.md) | `HTTPS://scheduler.{{region-code}}.api.aws` | `HTTPS://scheduler-fips.{{region-code}}.api.aws` | [EventBridge 排程器](https://docs.aws.amazon.com/general/latest/gr/eventbridgescheduler.html#eventbridgescheduler_region) | 
| [結構描述](eb-schema.md) | `HTTPS://schemas.{{region-code}}.api.aws` | `HTTPS://schemas-fips.{{region-code}}.api.aws` | [EventBridge 結構描述](https://docs.aws.amazon.com/general/latest/gr/eventbridgeschemas.html#eventbridgeschemas_region) | 

若要向雙堆疊端點提出請求，您必須使用 工具或 AWS SDK 提供的機制來指定端點。如需詳細資訊，請參閱 *AWS SDKs and Tools Reference Guide* 中的 [Dual-stack and FIPS endpoints](https://docs.aws.amazon.com/sdkref/latest/guide/feature-endpoints.html)。

例如， AWS CLI 提供 `--endpoint-url`選項。下列範例使用 `--endpoint-url`為美國西部 （奧勒岡） 區域中的事件匯流排指定雙堆疊端點。

```
aws events describe-event-bus --region us-west-2 --endpoint-url https://events.us-west-2.api.aws
```

如需指定區域端點時要使用的區域代碼清單，請參閱《 *AWS 一般參考*》中的[區域端點](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints)。

## 使用雙堆疊端點時的考量事項
<a name="dual-stack-buses"></a>

使用雙堆疊端點存取 EventBridge 資源時，請謹記下列考量。

對於事件匯流排：
+ 事件匯流排的雙堆疊支援包括封存和重播。
+ EventBridge 目前不支援全域端點的[雙堆疊端點](eb-global-endpoints.md)。

  如果您將 AWS SDK 設定為使用雙堆疊端點，呼叫 [https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_PutEvents.html](https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_PutEvents.html) 將導致錯誤。這是因為 SDK 使用雙堆疊網域 (`events.{{region-code}}.api.aws`)，而不是在建構端點`events.{{region-code}}.amazonaws.com`時，導致請求傳送到不存在的端點。

針對 EventBridge 管道：
+ EventBridge 管道支援[介面 VPC 端點](eb-related-service-vpc.md)的雙堆疊請求。