

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

# 建構 的 Amazon Resource Name (ARN) AWS DMS
<a name="CHAP_Introduction.AWS.ARN"></a>

如果您使用 AWS CLI 或 AWS DMS API 來自動化資料庫遷移，則可以使用 Amazon Resource Name (ARNs)。在 Amazon Web Services 中建立的每個資源都是由 ARN 識別，ARN 是唯一識別碼。如果您使用 AWS CLI 或 AWS DMS API 來設定資料庫遷移，請提供您要使用的資源 ARN。

 AWS DMS 資源的 ARN 使用以下語法：

`arn:aws:dms:region:account number:resourcetype:resourcename`

在此語法中，適用下列內容：
+ *`region`* 是資源 AWS DMS 建立所在 AWS 區域 的 ID，例如 `us-west-2`。

  下表顯示建構 ARN 時應使用 AWS 區域 的名稱和值。    
[\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/dms/latest/userguide/CHAP_Introduction.AWS.ARN.html)
+ `account number` 是帳戶編號 (不含破折號)。若要尋找您的帳戶號碼，請在 https：//http://aws.amazon.com 登入 AWS 您的帳戶，選擇**我的帳戶/主控台**，然後選擇**我的帳戶**。
+ **`resourcetype`** 是 AWS DMS 資源的類型。

  下表顯示建構特定資源的 ARN 時要使用 AWS DMS 的資源類型。    
[\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/dms/latest/userguide/CHAP_Introduction.AWS.ARN.html)
+ *`resourcename`* 是指派給資源的資源名稱 AWS DMS 。此為產生的任意字串。

下表顯示 AWS DMS 資源的 ARNs範例。在此，我們假設 AWS 帳戶為 123456789012，該帳戶是在美國東部 (維吉尼亞北部) 區域中建立，且具有資源名稱。

[\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/dms/latest/userguide/CHAP_Introduction.AWS.ARN.html)