StackSet 操作状态更改事件详细信息
以下是 StackSet 操作状态更改事件的详细信息字段。
之所以包含 source
和 detail-type
字段,是因为其包含 AWS CloudFormation 事件的特定值。
{ . . ., "detail-type": "CloudFormation StackSet Operation Status Change", "source": "aws.cloudformation", . . ., "detail": { "stack-set-arn" : "string", "stack-set-operation-id" : "string", "status-details": { "status": "string" } } } }
detail-type
-
标识事件的类型。
对于 StackSet 操作状态事件,此值为
CloudFormation StackSet Operation Status Change
。 source
-
标识生成事件的服务。对于 CloudFormation 事件,此值为
aws.cloudformation
。 detail
-
包含关于事件信息的 JSON 对象。生成事件的服务决定该字段的内容。
对于 StackSet 操作状态事件,这些数据包括:
stack-set-arn
-
与 StackSet 关联的 Amazon 资源名称(ARN)。
stack-set-operation-id
-
与 StackSet 操作关联的唯一 ID。
status-details
-
status
-
StackSet 操作状态。
有关更多详细信息,请参阅StackSets 状态代码。
有效值:
RUNNING
|SUCCEEDED
|FAILED
|STOPPING
|STOPPED
|QUEUED
例 示例:StackSet 操作状态更改事件
以下是 StackSet 操作状态更改事件的示例。事件详细说明了 CloudFormation 已成功完成对指定堆栈集所请求的操作。
{ "version": "0", "id": "4de89905-fd92-6a6b-9509-23c04bcb6a21", "detail-type": "CloudFormation StackSet Operation Status Change", "source": "aws.cloudformation", "account": "111122223333", "time": "2021-09-22T05:46:24Z", "region": "us-east-1", "resources": [ "arn:aws:cloudformation:us-east-1:111122223333:stackset/test1234:e5f54eea-d041-44ad-94f8-b8268aca1e59" ], "detail": { "stack-set-arn": "arn:aws:cloudformation:us-east-1:111122223333:stackset/test1234:e5f54eea-d041-44ad-94f8-b8268aca1e59", "stack-set-operation-id": "ce69adce-2221-4483-8c4b-c51f284f25e8", "status-details": { "status": "SUCCEEDED" } } }