

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

# 在適用於 Ruby 的 AWS SDK 中設定 HTTP 層級設定
<a name="http"></a>

## 設定非標準端點
<a name="aws-ruby-sdk-setting-non-standard-endpoint"></a>

區域用於建構 SSL 端點以用於 AWS 請求。如果您需要在所選區域中使用非標準端點，請將`endpoint`項目新增至 `Aws.config`。或者，在建立服務用戶端或資源物件`endpoint:`時設定 。下列範例會在`other_endpoint`端點中建立 Amazon S3 資源物件。

```
s3 = Aws::S3::Resource.new(endpoint: other_endpoint)
```

若要針對 API 請求使用您選擇的端點，並讓該選擇持續存在，請參閱 *AWS SDKs和工具參考指南*中的[服務特定端點](https://docs.aws.amazon.com/sdkref/latest/guide/feature-ss-endpoints.html)組態選項。