

翻訳は機械翻訳により提供されています。提供された翻訳内容と英語版の間で齟齬、不一致または矛盾がある場合、英語版が優先します。

# ポリシーの例: Amazon EventBridge の別のアカウントのカスタムバスにイベントを送信する
<a name="eb-event-bus-example-policy-cross-account-custom-bus-source"></a>

以下のポリシー例では、アカウント 123456789012 の `central-event-bus` にイベントを発行するアクセス許可をアカウント 111122223333 に付与します。ただし、ソースの値が `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"
        }
      }
    }
  ]
}
```

------