

本文属于机器翻译版本。若本译文内容与英语原文存在差异，则一律以英文原文为准。

# EventBridge
<a name="automation-ref-ev"></a>

 AWS Systems Manager 自动化为 Amazon EventBridge 提供了预定义的运行手册。有关运行手册的更多信息，请参阅[使用运行手册](https://docs.aws.amazon.com/systems-manager/latest/userguide/automation-documents.html)。有关如何查看运行手册内容的信息，请参阅 [查看运行手册内容](automation-runbook-reference.md#view-automation-json)。

**Topics**
+ [`AWS-AddOpsItemDedupStringToEventBridgeRule`](automation-aws-add-dedup-string-ev.md)
+ [`AWS-DisableEventBridgeRule`](automation-aws-disable-ev-rule.md)

# `AWS-AddOpsItemDedupStringToEventBridgeRule`
<a name="automation-aws-add-dedup-string-ev"></a>

 **描述** 

 该`AWS-AddOpsItemDedupStringToEventBridgeRule`运行手册为所有 AWS Systems Manager OpsItems 与 Ama EventBridge zon 规则关联的内容添加了重复数据删除字符串。如果已应用重复数据删除字符串，则此运行手册不会添加该字符串至规则中。要了解更多重复数据删除字符串和 OpsItems，请参阅《*AWS Systems Manager 用户指南》 OpsItems*中的[减少重复](https://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-creating-OpsItems.html#OpsCenter-working-deduplication)内容。

 [运行此自动化（控制台）](https://console.aws.amazon.com/systems-manager/automation/execute/AWS-AddOpsItemDedupStringToEventBridgeRule) 

**文档类型**

自动化

**所有者**

Amazon

**平台**

Linux、macOS、Windows

**参数**
+ AutomationAssumeRole

  类型：字符串

  描述：（可选）允许 Systems Manager Automation 代表您执行操作 AWS Identity and Access Management (IAM) 角色的 Amazon 资源名称（ARN）。如果未指定角色，Systems Manager Automation 将使用启动此运行手册的用户的权限。
+ DedupString

  类型：字符串

  描述：（必需）要添加到规则的重复删除字符串。
+ RuleName

  类型：字符串

  描述：（必需）要将重复删除字符串添加到的规则的名称。

**所需的 IAM 权限**

`AutomationAssumeRole` 参数需要执行以下操作才能成功使用运行手册。
+  `ssm:StartAutomationExecution` 
+  `ssm:GetAutomationExecution` 
+  `events:ListTargetsByRule` 
+  `events:PutTargets` 

 **文档步骤** 
+  `aws:executeScript`-在`RuleName`参数中指定的 EventBridge规则中添加重复数据删除字符串。

# `AWS-DisableEventBridgeRule`
<a name="automation-aws-disable-ev-rule"></a>

 **描述** 

 `AWS-DisableEventBridgeRule`*运行手册禁用您指定的亚马逊 EventBridge 规则。要了解有关规则的更多信息 EventBridge ，请参阅亚马逊用户指南[ EventBridge 中的亚马逊](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-rules.html)规则。 EventBridge *

 [运行此自动化（控制台）](https://console.aws.amazon.com/systems-manager/automation/execute/AWS-DisableEventBridgeRule) 

**文档类型**

自动化

**所有者**

Amazon

**平台**

Linux、macOS、Windows

**参数**
+ AutomationAssumeRole

  类型：字符串

  描述：（可选）允许 Systems Manager Automation 代表您执行操作 AWS Identity and Access Management (IAM) 角色的 Amazon 资源名称（ARN）。如果未指定角色，Systems Manager Automation 将使用启动此运行手册的用户的权限。
+ EventBusName

  类型：字符串

  默认：default

  描述：（可选）与要禁用的规则关联的事件总线。
+ RuleName

  类型：字符串

  描述：（必选）要禁用的规则的名称。

**所需的 IAM 权限**

`AutomationAssumeRole` 参数需要执行以下操作才能成功使用运行手册。
+  `ssm:StartAutomationExecution` 
+  `ssm:GetAutomationExecution` 
+  `events:DisableRule` 

 **文档步骤** 
+  `aws:executeAwsApi`-禁用您在`RuleName`参数中指定的 EventBridge 规则。