使用 Amazon EventBridge 来监控 Amazon Web Services Support 案例 - Amazon Web Services Support
Amazon Web Services 文档中描述的 Amazon Web Services 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅 中国的 Amazon Web Services 服务入门 (PDF)

使用 Amazon EventBridge 来监控 Amazon Web Services Support 案例

注意

此功能在中国区域中不可用。

您可以使用 Amazon EventBridge 检测并响应对您的 Amazon Web Services Support 案例的更改。然后,EventBridge 会根据您创建的规则,在事件与在规则中指定的值匹配时,调用一个或多个目标操作。

根据具体事件,您可以发送通知、捕获事件信息、采取纠正措施、启动事件或采取其他操作。例如,每当您的账户中发生以下操作时,您都可以收到通知:

  • 创建支持案例

  • 将案例通信添加到现有支持案例

  • 解析支持案例

  • 重新打开支持案例

注意

Amazon Web Services Support 将尽最大效能传送事件。并不总是能保证将事件传送到 EventBridge。

为 Amazon Web Services Support 案例创建 EventBridge 规则

您可以创建 EventBridge 规则,以针对 Amazon Web Services Support 案例事件获得通知。该规则将监控针对您账户中的支持案例的更新,包括您、您的 IAM 用户或支持代理执行的操作。在为 Amazon Web Services Support 案例事件创建规则之前,请执行以下操作:

  • 熟悉 EventBridge 中的事件、规则和目标。有关更多信息,请参阅 Amazon EventBridge 用户指南中的什么是 Amazon EventBridge?

  • 创建要在您的事件规则中使用的目标。例如,您可以创建 Amazon Simple Notification Service (Amazon SNS) 主题,以便每当更新支持案例时,您都会收到短信或电子邮件。有关更多信息,请参阅 EventBridge 目标

为 Amazon Web Services Support 案例事件创建 EventBridge 规则
  1. 访问 https://console.aws.amazon.com/events/,打开 Amazon EventBridge 控制台。

  2. 如果您尚未这样做,请使用页面的右上角的 Region selector(区域选择器),然后选择 US East (N. Virginia)(美国东部(弗吉尼亚北部))。

  3. 在导航窗格中,选择 Rules (规则)

  4. 选择 Create rule (创建规则)

  5. Define rule detail(定义规则详细信息)页面上,输入规则名称和描述。

  6. 对于 Event bus(事件总线)和 Rule type(规则类型),保留默认值,然后选择 Next(下一步)。

  7. Build event pattern(构建事件模式)页面上,对于 Event source(事件源),选择 Amazon events or EventBridge partner events( 事件或 EventBridge 合作伙伴事件)。

  8. Event pattern(事件模式)下,请保留默认值( Amazon Web Services)。

  9. 对于 Amazon Web Service,选择 Support

  10. 对于 Event type(事件类型),选择 Support Case Update(支持案例更新)。

  11. 选择 Next(下一步)。

  12. Select targets(选择目标)部分中,选择您为此规则创建的目标,然后配置该类型所需的任何其他选项。例如,如果您选择 Amazon SNS,请确保正确配置 SNS 主题,以便通过电子邮件或短信通知您。

  13. 选择 Next(下一步)。

  14. (可选)在 Configure tags(配置标签)页面上,添加任意标签,然后选择 Next(下一步)。

  15. Review and create(检查并创建)页面上,检查您的规则设置并确保其符合您的事件监控要求。

  16. 选择 Create rule(创建规则)。您的规则现在将监控 Amazon Web Services Support 案例事件,然后将它们发送到您指定的目标。

注意
  • 当您收到事件时,可以使用 origin 参数来确定是您还是 Amazon Web Services Support 代理向支持案例添加了案例通信。origin 的值可以是 CUSTOMERAmazon

    目前,仅 AddCommunicationToCase 操作的事件将具有此值。

  • 有关创建事件模式的更多信息,请参阅《Amazon EventBridge 用户指南》中的 事件模式

  • 您还可以为通过 CloudTrail 进行 Amazon API 调用事件类型创建其他规则。此规则将监控您的账户中 Amazon Web Services Support API 调用的 Amazon CloudTrail 日志。

示例 Amazon Web Services Support 事件

当您的账户中发生支持操作时,将创建以下事件。

例 :创建支持案例

当创建支持案例时,将创建以下事件。

{ "version": "0", "id": "3433df007-9285-55a3-f6d1-536944be45d7", "detail-type": "Support Case Update", "source": "aws.support", "account": "111122223333", "time": "2022-02-21T15:51:19Z", "region": "us-east-1", "resources": [], "detail": { "case-id": "case-111122223333-muen-2022-7118885805350839", "display-id": "1234563851", "communication-id": "", "event-name": "CreateCase", "origin": "" } }
例 :更新支持案例

当 Amazon Web Services Support 回复支持案例时,将创建以下事件。

{ "version": "0", "id": "f90cb8cb-32be-1c91-c0ba-d50b4ca5e51b", "detail-type": "Support Case Update", "source": "aws.support", "account": "111122223333", "time": "2022-02-21T15:51:31Z", "region": "us-east-1", "resources": [], "detail": { "case-id": "case-111122223333-muen-2022-7118885805350839", "display-id": "1234563851", "communication-id": "ekko:us-east-1:12345678-268a-424b-be08-54613cab84d2", "event-name": "AddCommunicationToCase", "origin": "AWS" } }
例 :解析支持案例

当解析支持案例时,将创建以下事件。

{ "version": "0", "id": "1aa4458d-556f-732e-ddc1-4a5b2fbd14a5", "detail-type": "Support Case Update", "source": "aws.support", "account": "111122223333", "time": "2022-02-21T15:51:31Z", "region": "us-east-1", "resources": [], "detail": { "case-id": "case-111122223333-muen-2022-7118885805350839", "display-id": "1234563851", "communication-id": "", "event-name": "ResolveCase", "origin": "" } }
例 :重新打开支持案例

当重新打开支持案例时,将创建以下事件。

{ "version": "0", "id": "3bb9d8fe-6089-ad27-9508-804209b233ad", "detail-type": "Support Case Update", "source": "aws.support", "account": "111122223333", "time": "2022-02-21T15:47:19Z", "region": "us-east-1", "resources": [], "detail": { "case-id": "case-111122223333-muen-2021-27f40618fe0303ea", "display-id": "1234563851", "communication-id": "", "event-name": "ReopenCase", "origin": "" } }

另请参阅

有关如何将 EventBridge 与 Amazon Web Services Support 配合使用的更多信息,请参阅以下资源: