123. 설정·결과·점수 예시 (Example configurations, results, and scores)
- 원문: English
- 위치: Security, Guardrails, and Observability › Bedrock Guardrails › Guardrails use cases › Use the InvokeGuardrailChecks API › Example configurations, results, and scores
한 줄 요약
검사별로 요청 설정과 돌아오는 결과 형태를 보여 줍니다. 콘텐츠 필터·프롬프트 공격은 카테고리당 1개 결과, 민감정보는 탐지된 엔터티 인스턴스당 1개 결과입니다.
핵심 내용
| 검사 | 결과 단위 | 결과 필드 |
|---|---|---|
contentFilter | 요청한 카테고리당 1개 | category, severityScore |
promptAttack | 요청한 카테고리당 1개 | category, severityScore |
sensitiveInformation | 탐지된 인스턴스당 1개 | type, confidenceScore, messageIndex, contentIndex, beginOffset, endOffset + truncated |
// 민감정보 결과 예
"sensitiveInformation": {
"results": [{
"type": "EMAIL", "confidenceScore": 0.8,
"messageIndex": 0, "contentIndex": 0,
"beginOffset": 12, "endOffset": 28
}],
"truncated": false
}
- 💡 매우 제한적인 경험이 필요하면 임계값을 낮게 잡습니다.
- 민감정보 오프셋으로 클라이언트 측 마스킹/레닥션을 직접 구현할 수 있습니다.
- ⚠️ 민감정보 결과는 최대 1,000개 엔터티로 제한됩니다. 초과하면
truncated: true. 긴 콘텐츠를 빠짐없이 마스킹하려면 작은 조각으로 나눠 검사하세요.
SA 관점
- 💡
truncated값을 반드시 확인하는 코드를 넣도록 안내하세요. 무시하면 일부 PII가 마스킹되지 않은 채 남을 수 있습니다.