
# 资源关系变更的消息通知模型
#### 资源关系变更的消息通知模型
表1资源关系变更的消息通知模型 
| **参数**                     | **参数类型** | **描述**                                                                                                                    |
|:---|:---|:---|
| notification_type          | String   | 消息通知类型。此处的消息通知类型为"ResourceRelationChanged"。                                                                               |
| notification_creation_time | String   | 消息发送时间。 具有固定格式：遵循ISO8601格式，UTC时区（例如：2018-11-14T08:59:14Z）。 |
| domain_id                  | String   | 账号ID。                                                                                                                     |
| detail                     | Object   | 消息详情。                                                                                                                     |
   
表2detail 
| **参数**             | **参数类型** | **描述**                                                                                                                        |
|:---|:---|:---|
| resource_id        | String   | 资源ID。                                                                                                                         |
| resource_type      | String   | 资源类型。                                                                                                                         |
| event_type         | Enum     | 事件类型（CHANGE）。                                                                                                                 |
| capture_time       | String   | 事件捕获时间。 具有固定格式：遵循ISO8601格式，UTC时区（例如：2018-11-14T08:59:14Z）。 |
| from_resource_id   | String   | 起始资源ID（仅当起始资源存在时展示）。                                                                                                          |
| from_resource_type | String   | 起始资源类型（仅当起始资源存在时展示）。                                                                                                          |
| relation_type      | String   | 资源关系（仅当起始资源存在时展示）。                                                                                                            |
   
#### 资源关系变更消息通知示例
```
{
  "detail" : {
    "resource_id" : "675d78fd****377b067be0531",
    "resource_type" : "config.policyAssignments",
    "event_type" : "CHANGE",
    "capture_time" : "2024-12-14T12:31:59.201Z",
    "from_resource_id" : "e336ffcfc2ab****4bf892423739c7125",
    "from_resource_type" : "config.conformancePacks",
    "relation_type" : "isContainedIn"
  },
  "notification_type" : "ResourceRelationChanged",
  "notification_creation_time" : "2024-12-14T12:31:59.404Z",
  "domain_id" : "017f09bdc0194******80082147f41a8"
}
```
