

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

# Amazon EventBridge 許可參考
<a name="eb-permissions-reference"></a>





若要在 EventBridge 政策中指定動作，請使用 `events:` 字首後接 API 作業名稱，如下列範例所示。

```
"Action": "events:PutRule"
```

若要在單一陳述式中指定多個  動作，請用逗號分隔，如下所示。

```
"Action": ["events:action1", "events:action2"]
```

您也可以使用萬用字元來指定多個動作。例如，您可以指定名稱開頭有 `"Put"` 文字的所有動作，如下所示。

```
"Action": "events:Put*"
```

若要指定所有的 EventBridge API 動作，請使用 `*` 萬用字元，如下所示：

```
"Action": "events:*"
```

下表列出您可在 IAM 政策中指定的 EventBridge API 作業和對應動作。


| EventBridge API 操作 | 所需的許可 | 描述 | 
| --- | --- | --- | 
|  [DeleteRule](https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_DeleteRule.html)  |  `events:DeleteRule`  |  刪除規則時需要。  | 
|  [DescribeEventBus](https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_DescribeEventBus.html)  |  `events:DescribeEventBus`  |  列出帳戶的必需項目，其可以將事件寫入目前帳戶的事件匯流排。  | 
|  [DescribeRule](https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_DescribeRule.html)  |  `events:DescribeRule`  |  列出規則的詳細資訊時需要。  | 
|  [DisableRule](https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_DisableRule.html)  |  `events:DisableRule`  |  停用規則時需要。  | 
|  [EnableRule](https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_EnableRule.html)  |  `events:EnableRule`  |  啟用規則時需要。  | 
|  [ListRuleNamesByTarget](https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_ListRuleNamesByTarget.html)  |  `events:ListRuleNamesByTarget`  |  列出與規則相關聯的目標時需要。  | 
|  [ListRules](https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_ListRules.html)  |  `events:ListRules`  |  列出您帳戶中的所有規則時需要。  | 
|  [ListTagsForResource](https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_ListTagsForResource.html)  |  `events:ListTagsForResource`  |  列出與 EventBridge 資源相關聯的所有標籤時必填。目前，只能標記規則。  | 
|  [ListTargetsByRule](https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_ListTargetsByRule.html)  |  `events:ListTargetsByRule`  |  列出與規則相關聯的所有目標時需要。  | 
|  [PutEvents](https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_PutEvents.html)  |  `events:PutEvents`  |  新增可符合規則的自訂事件時需要。  | 
|  [PutPermission](https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_PutPermission.html)  |  `events:PutPermission`  |  必須提供另一個帳戶許可，以將事件寫入到此帳戶的預設事件匯流排。  | 
|  [PutRule](https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_PutRule.html)  |  `events:PutRule`  |  建立或更新規則時需要。  | 
|  [PutTargets](https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_PutTargets.html)  |  `events:PutTargets`  |  將目標新增至規則時需要。  | 
|  [RemovePermission](https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_RemovePermission.html)  |  `events:RemovePermission`  |  必須撤銷將事件寫入到此帳戶的預設事件匯流排的另一個帳戶許可權。  | 
|  [RemoveTargets](https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_RemoveTargets.html)  |  `events:RemoveTargets`  |  從規則中移除目標時需要。  | 
|  [TestEventPattern](https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_TestEventPattern.html)  |  `events:TestEventPattern`  |  針對特定事件測試事件模式時需要。  | 