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.
See https://www.paws-r-sdk.com/docs/bedrockagent_create_prompt/ for full documentation.
bedrockagent_create_prompt(
clientToken = NULL,
customerEncryptionKeyArn = NULL,
defaultVariant = NULL,
description = NULL,
name,
tags = NULL,
variants = NULL
)
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.
The Amazon Resource Name (ARN) of the KMS key to encrypt the prompt.
The name of the default variant for the prompt. This value must match
the name
field in the relevant
PromptVariant
object.
A description for the prompt.
[required] A name for the prompt.
Any tags that you want to attach to the prompt. For more information, see Tagging resources in Amazon Bedrock.
A list of objects, each containing details about a variant of the prompt.