Values.ApplyGuardrailResponseSourceThe action to apply a guardrail. For troubleshooting some of the common errors you might encounter when using the ApplyGuardrail API, see Troubleshooting Amazon Bedrock API Error Codes in the Amazon Bedrock User Guide
type nonrec t = {usage : GuardrailUsage.t option;The usage details in the response from the guardrail.
*)action : GuardrailAction.t option;The action taken in the response from the guardrail.
*)actionReason : String_.t option;The reason for the action taken when harmful content is detected.
*)outputs : GuardrailOutputContentList.t option;The output details in the response from the guardrail.
*)assessments : GuardrailAssessmentList.t option;The assessment details in the response from the guardrail.
*)guardrailCoverage : GuardrailCoverage.t option;The guardrail coverage details in the apply guardrail response.
*)}type nonrec error = [ | `AccessDeniedException of AccessDeniedException.t| `InternalServerException of InternalServerException.t| `ResourceNotFoundException of ResourceNotFoundException.t| `ServiceQuotaExceededException of ServiceQuotaExceededException.t| `ThrottlingException of ThrottlingException.t| `ValidationException of ValidationException.t| `Unknown_operation_error of string * string option ]val error_of_json :
string ->
Yojson.Safe.t ->
[> `AccessDeniedException of AccessDeniedException.t
| `InternalServerException of InternalServerException.t
| `ResourceNotFoundException of ResourceNotFoundException.t
| `ServiceQuotaExceededException of ServiceQuotaExceededException.t
| `ServiceUnavailableException of ServiceUnavailableException.t
| `ThrottlingException of ThrottlingException.t
| `Unknown_operation_error of string * string option
| `ValidationException of ValidationException.t ]val error_of_xml :
string ->
Awso.Xml.t ->
[> `AccessDeniedException of AccessDeniedException.t
| `InternalServerException of InternalServerException.t
| `ResourceNotFoundException of ResourceNotFoundException.t
| `ServiceQuotaExceededException of ServiceQuotaExceededException.t
| `ServiceUnavailableException of ServiceUnavailableException.t
| `ThrottlingException of ThrottlingException.t
| `Unknown_operation_error of string * string option
| `ValidationException of ValidationException.t ]val to_value :
t ->
[> `Structure of
(string
* [> `Enum of string
| `List of
[> `Structure of
(string
* [> `String of GuardrailOutputText.t
| `Structure of
(string
* [> `Enum of string
| `List of
[> `Enum of string
| `Structure of
(string
* [> `Boolean of Boolean.t
| `Double of
GuardrailContextualGroundingFilterThresholdDouble.t
| `Enum of string
| `String of String_.t
| `Structure of
(string
* [> `List of
[> `Structure of
(string
* [> `List of
[> `Structure of
(string
* [> `Double of
GuardrailAutomatedReasoningTranslationConfidence.t
| `List of
[> `Structure of
(string
*
[>
`String of
GuardrailAutomatedReasoningStatementLogicContent.t ])
list ]
list
| `String of
GuardrailAutomatedReasoningStatementLogicContent.t ])
list ]
list
| `String of
AutomatedReasoningRuleIdentifier.t ])
list ]
list
| `Structure of
(string
* [> `Double of
GuardrailAutomatedReasoningTranslationConfidence.t
| `Enum of string
| `List of
[> `Structure of
(string
* [> `String of
GuardrailAutomatedReasoningStatementLogicContent.t ])
list ]
list ])
list ])
list ])
list ]
list
| `Long of GuardrailProcessingLatency.t
| `String of GuardrailId.t
| `Structure of
(string
* [> `Integer of
GuardrailTopicPolicyUnitsProcessed.t
| `Structure of
(string
* [> `Integer of TextCharactersGuarded.t ])
list ])
list ])
list ])
list ]
list
| `String of String_.t
| `Structure of
(string
* [> `Integer of GuardrailTopicPolicyUnitsProcessed.t
| `Structure of
(string * [> `Integer of TextCharactersGuarded.t ]) list ])
list ])
list ]