Module Values.UpdatePromptRequestSource

Modifies a prompt in your prompt library. Include both fields that you want to keep and fields that you want to replace. For more information, see Prompt management in Amazon Bedrock and Edit prompts in your prompt library in the Amazon Bedrock User Guide.

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

    A name for the prompt.

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

    A description for the prompt.

    *)
  3. customerEncryptionKeyArn : KmsKeyArn.t option;
    (*

    The Amazon Resource Name (ARN) of the KMS key to encrypt the prompt.

    *)
  4. defaultVariant : PromptVariantName.t option;
    (*

    The name of the default variant for the prompt. This value must match the name field in the relevant PromptVariant object.

    *)
  5. variants : PromptVariantList.t option;
    (*

    A list of objects, each containing details about a variant of the prompt.

    *)
  6. promptIdentifier : PromptIdentifier.t;
    (*

    The unique identifier of the prompt.

    *)
}
Sourceval context_ : string
Sourceval make : ?description:??? -> ?customerEncryptionKeyArn:??? -> ?defaultVariant:??? -> ?variants:??? -> name:PromptName.t -> promptIdentifier:PromptIdentifier.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `List of [> `Structure of (string * [> `Enum of string | `List of [> `Structure of (string * [> `String of PromptMetadataKey.t ]) list ] list | `String of PromptVariantName.t | `Structure of (string * [> `Structure of (string * [> `Float of Temperature.t | `Integer of MaximumLength.t | `List of [> `String of String_.t | `Structure of (string * [> `Enum of string | `List of [> `Structure of (string * [> `String of String_.t | `Structure of (string * [> `Enum of string ]) list ]) list ] list | `String of PromptInputVariableName.t | `Structure of (string * [> `Enum of string ]) list ]) list ] list | `String of TextPrompt.t | `Structure of (string * [> `Enum of string | `List of [> `Structure of (string * [> `Structure of (string * [> `Boolean of Boolean.t | `Enum of string | `String of ToolName.t | `Structure of (string * [> `Structure of 'a list ]) list ]) list ]) list ] list | `Structure of (string * [> `Structure of (string * [> `String of ToolName.t ]) list ]) list ]) list ]) list ]) list ]) list ] list | `String of PromptName.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