Module Values.CreatePromptRequestSource

Creates a prompt in your prompt library that you can add to a flow. For more information, see Prompt management in Amazon Bedrock, Create a prompt using Prompt management and Prompt flows in Amazon Bedrock 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. clientToken : ClientToken.t option;
    (*

    A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error. For more information, see Ensuring idempotency.

    *)
  7. tags : TagsMap.t option;
    (*

    Any tags that you want to attach to the prompt. For more information, see Tagging resources in Amazon Bedrock.

    *)
}
Sourceval context_ : string
Sourceval make : ?description:??? -> ?customerEncryptionKeyArn:??? -> ?defaultVariant:??? -> ?variants:??? -> ?clientToken:??? -> ?tags:??? -> name:PromptName.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 | `Map of ([> `String of TagKey.t ] * [> `String of TagValue.t ]) 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