このトピックでは、Cloud Config が監視し、EventBridge にパブリッシュできるリソース管理イベントの種類について説明します。
イベントの種類
次の表に、EventBridge にパブリッシュできる Resource Management イベントの種類を示します。
イベントの種類 | 型の値 パラメーター |
resourcemanager:ResourceSharing:AssociationStatusChange | |
リソース変更通知が配信される | resourcemanager:Config:ConfigurationItemChangeNotification |
リソースが非準拠と評価されたことを示す通知が配信される | resourcemanager:Config:NonCompliantNotification |
CloudEvents 仕様で定義されているパラメーターの詳細については、「概要」をご参照ください。
リソースが共有されている
次の例は、リソースが共有されたときに EventBridge が受信するイベントを示しています。
{
"id": "45ef4dewdwe1-7c35-447a-bd93-fab****",
"source": "acs.resourcemanager",
"specversion": "1.0",
"subject": "acs:resourcesharing:cn-hangzhou:11***11:resourceshare/rs-jo***Qa",
"time": "2020-11-19T21:04:41Z",
"type": "resourcemanager:ResourceSharing:AssociationStatusChange",
"aliyunaccountid": "22***22",
"aliyunpublishtime": "2020-11-19T21:04:42Z",
"aliyuneventbusname": "default",
"aliyunregionid": "cn-hangzhou",
"aliyunpublishaddr": "172.25.XX.XX",
"data": {
"resourceShareId": "rs-jo***Qa",
"resourceOwnerAccountId": "11***11",
"targetAccountId": "22***22",
"serviceName": "***.aliyuncs.com",
"resourceType": "CapacityReservation",
"resourceId": "crp-wz***ds",
"associationStatus": "Associated",
"associateType": "Associate"
}
}次の表に、data に含まれるパラメーターを示します。
パラメーター | タイプ | 例 | 説明 |
resourceShareId | String | rs-jo***Qa | リソース共有の ID。 |
resourceOwnerAccountId | String | 11***11 | リソース所有者の Alibaba Cloud アカウント ID。 |
targetAccountId | String | 22***22 | プリンシパルの Alibaba Cloud アカウント ID。 |
serviceName | String | ***.aliyuncs.com | サービス名。 |
resourceType | String | CapacityReservation | リソースの種類。 |
resourceId | String | crp-wz***ds | リソース ID。 |
associationStatus | String | Associated | 共有タスクのステータス。 |
associateType | String | Associate | 関連付けられたタスクの種類。 |