关于清单事件的 EventBridge 梁监控 - Amazon Web Services Systems Manager
AWS 文档中描述的 AWS 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅中国的 AWS 服务入门

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

关于清单事件的 EventBridge 梁监控

您可以在 Amazon EventBridge 中配置规则以创建响应Amazon Web Services Systems Manager库存资源状态更改。EventBridge 支持以下清单状态更改的事件。所有事件都会尽最大努力发送。

已删除特定实例的自定义库存类型:如果将规则配置为监视此事件,则当删除特定实例上的自定义清单类型时,EventBridge 会创建一个事件。EventBridge 每个自定义清单类型为每个实例发送一个事件。以下是一个示例事件模式。

{ "timestampMillis": 1610042981103, "source": "SSM", "account": "123456789012", "type": "INVENTORY_RESOURCE_STATE_CHANGE", "startTime": "Jan 7, 2021 6:09:41 PM", "resources": [ { "arn": "arn:aws:ssm:us-east-1:123456789012:managed-instance/i-12345678" } ], "body": { "action-status": "succeeded", "action": "delete", "resource-type": "managed-instance", "resource-id": "i-12345678", "action-reason": "", "type-name": "Custom:MyCustomInventoryType" } }

所有实例的自定义清单类型删除事件:如果将规则配置为监视此事件,则 EventBridge 会在删除所有实例的自定义清单类型时创建一个事件。以下是一个示例事件模式。

{ "timestampMillis": 1610042904712, "source": "SSM", "account": "123456789012", "type": "INVENTORY_RESOURCE_STATE_CHANGE", "startTime": "Jan 7, 2021 6:08:24 PM", "resources": [ ], "body": { "action-status": "succeeded", "action": "delete-summary", "resource-type": "managed-instance", "resource-id": "", "action-reason": "The delete for type name Custom:SomeCustomInventoryType was completed. The deletion summary is: {\"totalCount\":1,\"remainingCount\":0,\"summaryItems\":[{\"version\":\"1.1\",\"count\":1,\"remainingCount\":0}]}", "type-name": "Custom:MyCustomInventoryType" } }

PutInventory使用旧架构版本事件调用:如果将规则配置为监视此事件,则 EventBridge 会在进行 PutInventory 调用时创建一个事件,该调用使用的架构版本低于当前架构。此事件适用于所有库存类型。以下是一个示例事件模式。

{ "timestampMillis": 1610042629548, "source": "SSM", "account": "123456789012", "type": "INVENTORY_RESOURCE_STATE_CHANGE", "startTime": "Jan 7, 2021 6:03:49 PM", "resources": [ { "arn": "arn:aws:ssm:us-east-1:123456789012:managed-instance/i-12345678" } ], "body": { "action-status": "failed", "action": "put", "resource-type": "managed-instance", "resource-id": "i-01f017c1b2efbe2bc", "action-reason": "The inventory item with type name Custom:MyCustomInventoryType was sent with a disabled schema verison 1.0. You must send a version greater than 1.0", "type-name": "Custom:MyCustomInventoryType" } }

有关如何配置 EventBridge 以监视这些事件的信息,请参阅为 Systems Manager 事件配置 EventBridge