All Products
Search
Document Center

:Resource Management events

最終更新日:Sep 04, 2024

This topic describes the types of Resource Management events that Cloud Config monitors and can be published to EventBridge.

Event types

The following table describes the types of Resource Management events that can be published to EventBridge.

Event type

Value of the type parameter

A resource is shared

resourcemanager:ResourceSharing:AssociationStatusChange

A resource change notification is delivered

resourcemanager:Config:ConfigurationItemChangeNotification

A notification that indicates a resource is evaluated as non-compliant is delivered

resourcemanager:Config:NonCompliantNotification

For more information about the parameters defined in the CloudEvents specification, see Overview.

A resource is shared

The following example shows the event that EventBridge receives when a resource is shared:

{
  "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"
  }
}

The following table describes the parameters contained in data.

Parameter

Type

Example

Description

resourceShareId

String

rs-jo***Qa

The ID of the resource share.

resourceOwnerAccountId

String

11***11

The Alibaba Cloud account ID of the resource owner.

targetAccountId

String

22***22

The Alibaba Cloud account ID of the principal.

serviceName

String

***.aliyuncs.com

The service name.

resourceType

String

CapacityReservation

The resource type.

resourceId

String

crp-wz***ds

The resource ID.

associationStatus

String

Associated

The status of the sharing task.

associateType

String

Associate

The type of the associated task.