

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

# 的資源型政策範例 AWS Elemental MediaTailor
<a name="security_iam_resource-based-policy-examples"></a>

若要了解如何將資源型政策連接至頻道，請參閱 **[使用 MediaTailor 主控台建立頻道](channel-assembly-creating-channels.md)**。

**Topics**
+ [匿名存取](#security_iam_resource-based-policy-examples-anonymous-access)
+ [跨帳戶存取權](#security_iam_resource-based-policy-examples-cross-account-access)

## 匿名存取
<a name="security_iam_resource-based-policy-examples-anonymous-access"></a>

請考慮下列`Allow`政策。此政策生效後，MediaTailor 允許匿名存取政策中頻道資源上的 `mediatailor:GetManifest`動作。當 {{region}} 是 AWS 區域、{{accountID}} 是您的 AWS 帳戶 ID，而 {{channelName}} 是頻道資源的名稱時，就會發生這種情況。

## 跨帳戶存取權
<a name="security_iam_resource-based-policy-examples-cross-account-access"></a>

請考慮下列`Allow`政策。隨著此政策生效，MediaTailor 允許跨帳戶對政策中的頻道資源執行 `mediatailor:GetManifest`動作。當 {{region}} 是 AWS 區域、{{accountID}} 是您的 AWS 帳戶 ID，而 {{channelName}} 是頻道資源的名稱時，就會發生這種情況。