Module Values.ApplyGuardrailResponseSource

The 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

Sourcetype nonrec t = {
  1. usage : GuardrailUsage.t option;
    (*

    The usage details in the response from the guardrail.

    *)
  2. action : GuardrailAction.t option;
    (*

    The action taken in the response from the guardrail.

    *)
  3. actionReason : String_.t option;
    (*

    The reason for the action taken when harmful content is detected.

    *)
  4. outputs : GuardrailOutputContentList.t option;
    (*

    The output details in the response from the guardrail.

    *)
  5. assessments : GuardrailAssessmentList.t option;
    (*

    The assessment details in the response from the guardrail.

    *)
  6. guardrailCoverage : GuardrailCoverage.t option;
    (*

    The guardrail coverage details in the apply guardrail response.

    *)
}
Sourcetype nonrec error = [
  1. | `AccessDeniedException of AccessDeniedException.t
  2. | `InternalServerException of InternalServerException.t
  3. | `ResourceNotFoundException of ResourceNotFoundException.t
  4. | `ServiceQuotaExceededException of ServiceQuotaExceededException.t
  5. | `ServiceUnavailableException of ServiceUnavailableException.t
  6. | `ThrottlingException of ThrottlingException.t
  7. | `ValidationException of ValidationException.t
  8. | `Unknown_operation_error of string * string option
]
Sourceval make : ?usage:??? -> ?action:??? -> ?actionReason:??? -> ?outputs:??? -> ?assessments:??? -> ?guardrailCoverage:??? -> unit -> t
Sourceval 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 ]
Sourceval 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 ]
Sourceval error_to_json : error -> Yojson.Safe.t
Sourceval 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 ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t