StackSet 状态更改事件详细信息 - Amazon CloudFormation
Amazon Web Services 文档中描述的 Amazon Web Services 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅 中国的 Amazon Web Services 服务入门 (PDF)

StackSet 状态更改事件详细信息

以下是 StackSet 状态更改事件的详细信息字段。

之所以包含 sourcedetail-type 字段,是因为其包含 Amazon CloudFormation 事件的特定值。

{ . . ., "detail-type": "CloudFormation StackSet Status Change", "source": "aws.cloudformation", . . ., "detail": { "stack-set-arn" : "string", "status-details": { "status":"string" } } }
detail-type

标识事件的类型。

对于 StackSet 状态事件,此值为 CloudFormation StackSet Status Change

source

标识生成事件的服务。对于 CloudFormation 事件,此值为 aws.cloudformation

detail

包含关于事件信息的 JSON 对象。生成事件的服务决定该字段的内容。

对于 StackSet 状态事件,这些数据包括:

stack-set-arn

与堆栈集关联的 Amazon 资源名称(ARN)。

status-details
status

StackSet 状态。

有效值ACTIVE | DELETED

例 示例:StackSet 状态更改事件

以下是 StackSet 状态更改事件的示例。此事件详细说明了 CloudFormation 已删除指定的堆栈集。

{ "version": "0", "id": "42h6hb90-hg0w-11op-b01v-0xhnh0934z09", "detail-type": "CloudFormation StackSet Status Change", "source": "aws.cloudformation", "account": "111122223333", "time": "2021-09-23T17:06:18Z", "region": "us-east-1", "resources": [ "arn:aws:cloudformation:us-east-1:111122223333:stackset/test12345:3f3a3fbe-c937-4eb3-a87d-e36a0af3f663" ], "detail": { "stack-set-arn" : "arn:aws:cloudformation:us-east-1:111122223333:stackset/test12345:3f3a3fbe-c937-4eb3-a87d-e36a0af3f663", "status-details": { "status":"DELETED" } } }