Module Values.GetGuardrailResponseSource

Gets details about a guardrail. If you don't specify a version, the response returns details for the DRAFT version.

Sourcetype nonrec t = {
  1. name : GuardrailName.t option;
    (*

    The name of the guardrail.

    *)
  2. description : GuardrailDescription.t option;
    (*

    The description of the guardrail.

    *)
  3. guardrailId : GuardrailId.t option;
    (*

    The unique identifier of the guardrail.

    *)
  4. guardrailArn : GuardrailArn.t option;
    (*

    The ARN of the guardrail.

    *)
  5. version : GuardrailVersion.t option;
    (*

    The version of the guardrail.

    *)
  6. status : GuardrailStatus.t option;
    (*

    The status of the guardrail.

    *)
  7. topicPolicy : GuardrailTopicPolicy.t option;
    (*

    The topic policy that was configured for the guardrail.

    *)
  8. contentPolicy : GuardrailContentPolicy.t option;
    (*

    The content policy that was configured for the guardrail.

    *)
  9. wordPolicy : GuardrailWordPolicy.t option;
    (*

    The word policy that was configured for the guardrail.

    *)
  10. sensitiveInformationPolicy : GuardrailSensitiveInformationPolicy.t option;
    (*

    The sensitive information policy that was configured for the guardrail.

    *)
  11. contextualGroundingPolicy : GuardrailContextualGroundingPolicy.t option;
    (*

    The contextual grounding policy used in the guardrail.

    *)
  12. automatedReasoningPolicy : GuardrailAutomatedReasoningPolicy.t option;
    (*

    The current Automated Reasoning policy configuration for the guardrail, if any is configured.

    *)
  13. crossRegionDetails : GuardrailCrossRegionDetails.t option;
    (*

    Details about the system-defined guardrail profile that you're using with your guardrail, including the guardrail profile ID and Amazon Resource Name (ARN).

    *)
  14. createdAt : Timestamp.t option;
    (*

    The date and time at which the guardrail was created.

    *)
  15. updatedAt : Timestamp.t option;
    (*

    The date and time at which the guardrail was updated.

    *)
  16. statusReasons : GuardrailStatusReasons.t option;
    (*

    Appears if the status is FAILED. A list of reasons for why the guardrail failed to be created, updated, versioned, or deleted.

    *)
  17. failureRecommendations : GuardrailFailureRecommendations.t option;
    (*

    Appears if the status of the guardrail is FAILED. A list of recommendations to carry out before retrying the request.

    *)
  18. blockedInputMessaging : GuardrailBlockedMessaging.t option;
    (*

    The message that the guardrail returns when it blocks a prompt.

    *)
  19. blockedOutputsMessaging : GuardrailBlockedMessaging.t option;
    (*

    The message that the guardrail returns when it blocks a model response.

    *)
  20. kmsKeyArn : KmsKeyArn.t option;
    (*

    The ARN of the KMS key that encrypts the guardrail.

    *)
}
Sourcetype nonrec error = [
  1. | `AccessDeniedException of AccessDeniedException.t
  2. | `InternalServerException of InternalServerException.t
  3. | `ResourceNotFoundException of ResourceNotFoundException.t
  4. | `ThrottlingException of ThrottlingException.t
  5. | `ValidationException of ValidationException.t
  6. | `Unknown_operation_error of string * string option
]
Sourceval make : ?name:??? -> ?description:??? -> ?guardrailId:??? -> ?guardrailArn:??? -> ?version:??? -> ?status:??? -> ?topicPolicy:??? -> ?contentPolicy:??? -> ?wordPolicy:??? -> ?sensitiveInformationPolicy:??? -> ?contextualGroundingPolicy:??? -> ?automatedReasoningPolicy:??? -> ?crossRegionDetails:??? -> ?createdAt:??? -> ?updatedAt:??? -> ?statusReasons:??? -> ?failureRecommendations:??? -> ?blockedInputMessaging:??? -> ?blockedOutputsMessaging:??? -> ?kmsKeyArn:??? -> unit -> t
Sourceval error_of_json : string -> Yojson.Safe.t -> [> `AccessDeniedException of AccessDeniedException.t | `InternalServerException of InternalServerException.t | `ResourceNotFoundException of ResourceNotFoundException.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 | `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 [> `String of GuardrailStatusReason.t ] list | `String of GuardrailName.t | `Structure of (string * [> `Double of AutomatedReasoningConfidenceFilterThreshold.t | `List of [> `String of AutomatedReasoningPolicyArn.t | `Structure of (string * [> `Boolean of Boolean.t | `Double of GuardrailContextualGroundingFilterThresholdDouble.t | `Enum of string | `List of [> `Enum of string | `String of GuardrailTopicExample.t ] list | `String of GuardrailTopicName.t ]) list ] list | `String of GuardrailCrossRegionGuardrailProfileId.t | `Structure of (string * [> `Enum of string ]) list ]) list | `Timestamp of Timestamp.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