Module Values.ApplyGuardrailRequestSource

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. guardrailIdentifier : GuardrailIdentifier.t;
    (*

    The guardrail identifier used in the request to apply the guardrail.

    *)
  2. guardrailVersion : GuardrailVersion.t;
    (*

    The guardrail version used in the request to apply the guardrail.

    *)
  3. source : GuardrailContentSource.t;
    (*

    The source of data used in the request to apply the guardrail.

    *)
  4. content : GuardrailContentBlockList.t;
    (*

    The content details used in the request to apply the guardrail.

    *)
  5. outputScope : GuardrailOutputScope.t option;
    (*

    Specifies the scope of the output that you get in the response. Set to FULL to return the entire output, including any detected and non-detected entries in the response for enhanced debugging. Note that the full output scope doesn't apply to word filters or regex in sensitive information filters. It does apply to all other filtering policies, including sensitive information with filters that can detect personally identifiable information (PII).

    *)
}
Sourceval context_ : string
Sourceval make : ?outputScope:??? -> guardrailIdentifier:GuardrailIdentifier.t -> guardrailVersion:GuardrailVersion.t -> source:GuardrailContentSource.t -> content:GuardrailContentBlockList.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Enum of string | `List of [> `Structure of (string * [> `Structure of (string * [> `Enum of string | `List of [> `Enum of string ] list | `String of String_.t | `Structure of (string * [> `Blob of GuardrailImageSourceBytesBlob.t ]) list ]) list ]) list ] list | `String of GuardrailIdentifier.t ]) 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