

Amazon FSx File Gateway 不再提供給新客戶。FSx File Gateway 的現有客戶可以繼續正常使用服務。如需類似 FSx File Gateway 的功能，請造訪[此部落格文章](https://aws.amazon.com/blogs/storage/switch-your-file-share-access-from-amazon-fsx-file-gateway-to-amazon-fsx-for-windows-file-server/)。

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

# 了解 Storage Gateway 資源和資源 IDs
<a name="storage-gateway-resource-id"></a>

在 Storage Gateway 中，主要資源是*閘道*，但其他資源類型是*檔案共享*。檔案共用稱為*子資源*，除非它們與閘道相關聯，否則不存在。

這些資源和子資源具有與其相關聯的唯一 Amazon Resource Name (ARNs)，如下表所示。


| 資源類型 | ARN 格式 | 
| --- | --- | 
| 閘道 ARN | `arn:aws:storagegateway:{{region}}:{{account-id}}:gateway/{{gateway-id}}` | 
| 檔案共享 ARN | `arn:aws:storagegateway:{{region}}:{{account-id}}:share/{{share-id}}` | 

## 使用資源 ID
<a name="working-with-id"></a>

當您建立資源時，Storage Gateway 會將唯一資源 ID 指派給資源。此資源 ID 是資源 ARN 的一部分。資源 ID 的形式為資源識別符 (其後伴隨連字號) 以及唯一的八個字母與數字組合。例如，閘道 ID 的形式為 `sgw-12A3456B`，其中 `sgw` 是閘道的資源識別符。

Storage Gateway 資源 ID 為大寫。不過，如果您將這些資源 IDs與 Amazon EC2 API 搭配使用，Amazon EC2 會預期資源 IDs為小寫。您必須將資源 ID 變更為小寫，才能將它與 EC2 API 搭配使用。例如，在 Storage Gateway 中，閘道的 ID 可能是 `sgw-12A3456B`。如果您將此 ID 與 EC2 API 搭配使用，則必須將其變更為 `sgw-12a3456b`。否則，EC2 API 可能無法如預期運作。