

# 드리프트 감지 상태 변경 이벤트 세부 정보
<a name="event-detail-stack-drift-detection-change"></a>

다음은 스택 드리프트 감지 이벤트의 세부 정보 필드입니다.

`source` 및 `detail-type` 필드는 이벤트에 대한 특정 값을 포함하므로 포함됩니다.

```
{
  . . .,
  "detail-type":"CloudFormation Drift Detection Status Change",
  "source":"aws.cloudformation",
  . . .,
  "detail":{
    "stack-id":"string",
    "stack-drift-detection-id":"string",
    "status-details":{
      "stack-drift-status":"string",
      "detection-status":"string"
    },
      "drift-detection-details":{
        "drifted-stack-resource-count":integer
      },
    "client-request-token":"string"
  }
}
```

`detail-type`  <a name="drift-detection-status-change-detail-type"></a>
이벤트의 유형을 식별합니다.  
스택 드리프트 감지 이벤트의 경우 이 값은 `CloudFormation Drift Detection Status Change`입니다.

`source`  <a name="drift-detection-status-change-source"></a>
이벤트를 생성한 서비스를 식별합니다. CloudFormation 이벤트의 경우 이 값은 `aws.cloudformation`입니다.

`detail`  <a name="drift-detection-status-change-detail"></a>
이벤트에 대한 정보를 포함하는 JSON 객체입니다. 이벤트를 생성하는 서비스에 따라 이 필드의 내용이 결정됩니다.  
스택 드리프트 감지 이벤트의 경우 이 데이터는 다음을 포함합니다.    
`stack-id`  <a name="drift-detection-status-change-stack-id"></a>
스택이 연결되어 있는 고유한 스택 ID입니다.  
`stack-drift-detection-id`  <a name="drift-detection-status-change-stack-drift-detection-id"></a>
스택 드리프트 감지 ID입니다.  
`status-details`  <a name="drift-detection-status-change-status-details"></a>  
`stack-drift-status`  <a name="drift-detection-status-change-stack-drift-status"></a>
스택의 드리프트 상태입니다.  
`detection-status`  <a name="drift-detection-status-change-detection-status"></a>
드리프트 감지 작업의 상태입니다.  
`drift-detection-details`  <a name="drift-detection-status-change-drift-detection-details"></a>  
`drifted-stack-resource-count`  <a name="drift-detection-status-change-drifted-stack-resource-count"></a>
드리프트된 리소스 수입니다. 값이 `-1`인 경우 드리프트 감지가 진행 중입니다. 음수가 아닌 다른 모든 정수는 드리프트된 리소스의 실제 수를 나타냅니다.  
`client-request-token`  <a name="drift-detection-status-change-client-request-token"></a>
API를 호출하는 데 사용되는 액세스 토큰입니다. 지정된 스택 작업에 의해 시작되는 모든 이벤트는 동일한 클라이언트 요청 토큰에 할당됩니다. 이 토큰은 작업을 추적하는 데 사용할 수 있습니다. 콘솔에서 시작되는 스택 작업은 *Console-StackOperation-ID* 토큰 형식을 사용합니다. 이러한 형식은 스택 작업을 쉽게 식별하는 데 도움이 됩니다. 예를 들어, 콘솔을 사용하여 스택을 생성할 경우, 각 결과 스택 이벤트는 `Console-CreateStack-7f59c3cf-00d2-40c7-b2ff-e75db0987002` 형식의 동일한 토큰에 할당됩니다.

**Example 예: 스택 드리프트 감지 이벤트**  <a name="event-detail-stack-drift-detection-change.example"></a>
다음은 스택 드리프트 감지 이벤트의 예입니다. 이 이벤트는 CloudFormation이 지정된 스택에서 드리프트 감지를 완료했으며 현재 하나의 드리프트된 리소스로 인해 스택의 드리프트 상태가 `DRIFTED`임을 자세히 설명합니다.  

```
{
    "version":"0",
    "id":"6a7e8feb-b491-4cf7-a9f1-bf3703467718",
    "detail-type":"CloudFormation Drift Detection Status Change",
    "source":"aws.cloudformation",
    "account":"111122223333",
    "time":"2017-12-22T18:43:48Z",
    "region":"us-west-1",
    "resources": ["string"],
    "detail":{
        "stack-id":"arn:aws:cloudformation:us-west-1:111122223333:stack/teststack",
        "stack-drift-detection-id":"624af370-311a-11e8-b6b7-500cexample",
        "status-details":{
            "stack-drift-status":"DRIFTED",
            "detection-status":"DETECTION_COMPLETE"
        },
        "drift-detection-details":{
            "drifted-stack-resource-count":1
        },
    "client-request-token":""
    }
}
```