本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。
以下是 StackSet 狀態變更事件的詳細資訊欄位。
包含 source
和 detail-type
欄位,因為其中包含 AWS 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 Resource Name (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"
}
}
}