

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

# 亚马逊 OpenSearch 服务中的通知
通知

Amazon S OpenSearch ervice 中的通知包含有关您的域名的性能和运行状况的重要信息。 OpenSearch 服务会通知您有关服务软件更新、Auto-Tune 增强功能、集群运行状况事件和域错误的信息。通知适用于所有版本的 Elasticsearch OSS。 OpenSearch 

您可以在 OpenSearch 服务控制台的**通知**面板中查看通知。所有 OpenSearch 服务通知也都显示在 [Amazon EventBridge](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-what-is.html) 中。有关通知的完整列表和示例事件，请参阅[使用 Amazon 监控 OpenSearch 服务事件 EventBridge](monitoring-events.md)。

## 开始使用通知


创建域时会自动启用通知。转到 OpenSearch 服务控制台的**通知**面板以监控和确认通知。每个通知包括发布时间、相关域、严重性和状态级别以及简要说明等信息。您可以在控制台中查看长达 90 天的历史通知。

访问 **Notifications（通知）**面板或确认通知后，您可能会收到关于没有权限执行 `es:ListNotificationsV2` 或 `es:UpdateNotificationStatus` 的错误消息。要解决此问题，请在 IAM 中向您的用户或角色授予以下权限：

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

****  

```
{
  "Version":"2012-10-17",		 	 	 
  "Statement": [{
    "Effect": "Allow",
    "Action": [
      "es:DescribeDomain",
      "es:ListDomainNames"
    ],
    "Resource": "arn:aws:es:*:111122223333:domain/*"
  }]
}
```

------

IAM 控制台抛出一个错误（“IAM does not recognize one or more actions." [IAM 无法识别一项或多项操作。]”），您可以放心地忽略该错误。您也可以限制对某些域进行 `es:UpdateNotificationStatus` 操作。要了解更多信息，请参阅[策略元素参考](ac.md#ac-reference)。

## 通知严重性


 OpenSearch 服务中的通知可以是*信息性*的，与您已经采取的任何操作或域名的操作有关，也可以是*可操作*的，需要您采取特定的操作，例如应用强制性的安全补丁。每个通知均包含与其关联的严重性，可以是 `Informational`、`Low`、`Medium`、`High` 或 `Critical`。下表汇总了每种严重性：


| 严重性 | 说明 | 示例 | 
| --- | --- | --- | 
| Informational |  与您的域操作相关的信息。  |  [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_cn/opensearch-service/latest/developerguide/managedomains-notifications.html)  | 
| Low |  建议操作，但如果不采取任何操作，则不会对域可用性或性能产生不利影响。  |  [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_cn/opensearch-service/latest/developerguide/managedomains-notifications.html)  | 
| Medium |  如果不采取建议的操作则可能会产生影响，但会带来更长的时间窗口。  |  [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_cn/opensearch-service/latest/developerguide/managedomains-notifications.html)  | 
| High |  需要采取紧急操作以免产生不利影响。  |  [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_cn/opensearch-service/latest/developerguide/managedomains-notifications.html)  | 
| Critical |  需要立即采取操作以免产生不利影响，或从中还原。  | 当前无可用 | 

## 示例 EventBridge 事件


以下示例显示了发送给 Amazon 的 OpenSearch 服务通知事件 EventBridge。由于更新可选，通知的严重性为 `Informational`：

```
{
  "version": "0",
  "id": "01234567-0123-0123-0123-012345678901",
  "detail-type": "Amazon OpenSearch Service Software Update Notification",
  "source": "aws.es",
  "account": "123456789012",
  "time": "2016-11-01T13:12:22Z",
  "region": "us-east-1",
  "resources": ["arn:aws:es:us-east-1:123456789012:domain/test-domain"],
  "detail": {
    "event": "Service Software Update",
    "status": "Available",
    "severity": "Informational",
    "description": "Service software update [R20200330-p1] available."
  }
}
```