

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

# 範例政策：將事件傳送至 Amazon EventBridge 中不同帳戶中的自訂匯流排
<a name="eb-event-bus-example-policy-cross-account-custom-bus-source"></a>

下列範例政策授與帳戶 111122223333 權限，可將事件發佈至帳戶 123456789012，但僅適用於來源值 `central-event-bus` 設定為 `com.exampleCorp.webStore` 和來源值 `detail-type` 設定為 `newOrderCreated` 的事件。

------
#### [ JSON ]

****  

```
{
  "Version":"2012-10-17",		 	 	 
  "Statement": [
    {
      "Sid": "WebStoreCrossAccountPublish",
      "Effect": "Allow",
      "Action": [
        "events:PutEvents"
      ],
      "Principal": {
        "AWS": "arn:aws:iam::123456789012:root"
      },
      "Resource": "arn:aws:events:us-east-1:123456789012:event-bus/central-event-bus",
      "Condition": {
        "ForAllValues:StringEquals": {
          "events:source": "com.exampleCorp.webStore",
          "events:detail-type": "newOrderCreated"
        }
      }
    }
  ]
}
```

------