Ongoing service disruptions
For the most recent update on ongoing service disruptions affecting the AWS Middle East (UAE) Region (ME-CENTRAL-1), refer to the AWS Health Dashboard. For information on AWS Service migration, see How do I migrate my services to another region?
我想要只允許用戶端透過自訂網域名稱調用我的 Amazon API Gateway API。
若要停用預設端點,請使用 API Gateway 主控台、AWS Command Line Interface (AWS CLI) 或 AWS CloudFormation。在停用預設端點後,您必須更新階段以使更新生效。例如,建立部署並將其附加到某個階段。
**注意:**如果您在執行 AWS Command Line Interface (AWS CLI) 命令時收到錯誤訊息,請參閱對 AWS CLI 錯誤進行疑難排解。此外,請確定您使用的是最新的 AWS CLI 版本。
對於 REST API,請參閱停用 REST API 的預設端點中的 AWS 管理主控台索引標籤。對於 HTTP API,請參閱停用 HTTP API 的預設端點中的 AWS 管理主控台 索引標籤。
對於 REST API,請參閱停用 REST API 的預設端點中的 AWS CLI 索引標籤。對於 HTTP API,請參閱停用 HTTP API 的預設端點中的 AWS CLI 索引標籤。
更新 CloudFormation 範本 以將您的 REST API 或 HTTP API 的 DisableExecuteApiEndpoint 參數設定為 True。
**重要:**如果您使用預設端點 URL 調用 API,那麼您停用預設端點後將收到錯誤。如果使用 REST API,您會收到「403 Forbidden」錯誤;如果使用 HTTP API,則會收到 HTTP「404 Not Found」錯誤。
在 API Gateway 中調用 REST API
如何對 API Gateway 的 HTTP 403 錯誤進行疑難排解?