

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

# 與其他帳戶共用模型
<a name="share-model-share"></a>

[滿足先決條件](share-model-prereq.md)後，您就可以共用模型。選擇您偏好方法的索引標籤，然後遵循下列步驟：

------
#### [ Console ]

1.  AWS 管理主控台 使用具有使用 Amazon Bedrock 主控台之許可的 IAM 身分登入 。接著，開啟位於 [https://console.aws.amazon.com/bedrock](https://console.aws.amazon.com/bedrock) 的 Amazon Bedrock 主控台。

1. 從左側導覽窗格中，選擇**調校**下的**自訂模型**。

1. 選取您要共用之模型旁的按鈕。然後，選擇三個點 (![\[Vertical ellipsis icon representing a menu or more options.\]](http://docs.aws.amazon.com/zh_tw/bedrock/latest/userguide/images/icons/vertical-ellipsis.png))，然後選取**共用**。

1. 在**模型共用詳細資訊**區段中，執行下列動作：

   1. 在**共用模型名稱**欄位中，為共用模型命名。

   1. 在**收件人帳戶 ID** 欄位中，指定將接收模型的帳戶 ID。

   1. (選用) 若要新增標籤，請展開**標籤**區段。如需詳細資訊，請參閱[標記 Amazon Bedrock 資源](tagging.md)。

1. 選擇**共用模型**。收件人在 [Resource Access Manager](https://docs.aws.amazon.com/ram/latest/userguide/getting-started-shared.html) 中接受模型後，模型會出現在其自訂模型清單中。

------
#### [ API ]

若要共用模型，請使用 [AWS Resource Access Manager 端點](https://docs.aws.amazon.com/general/latest/gr/ram.html)傳送 [CreateResourceShare](https://docs.aws.amazon.com/ram/latest/APIReference/API_CreateResourceShare.html) 請求。至少提供下列欄位：


****  

| 欄位 | 使用案例 | 
| --- | --- | 
| 名稱 | 提供資源共用的名稱。 | 
| resourceArns | 指定每個要共用之模型的 ARN。 | 
| principals | 指定要與其共用模型的主體。 | 

[CreateResourceShare](https://docs.aws.amazon.com/ram/latest/APIReference/API_CreateResourceShare.html) 回應會傳回 `resourceShareArn`，您可用來管理資源共用。

接收模型的帳戶可以透過使用 [Amazon Bedrock 控制平面端點](https://docs.aws.amazon.com/general/latest/gr/bedrock.html#br-cp)傳送 [ListCustomModels](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_ListCustomModels.html) 請求，來檢查是否已共用模型。已共用的模型會顯示 `true` 的 `shared` 狀態。

------

共用模型之後，模型的接收方必須將模型複製到區域，才能使用模型。如需詳細資訊，請參閱[複製要在區域中使用的自訂或共用模型](copy-model.md)。