Creates a prompt in your prompt library that you can add to a flow
Source:R/bedrockagent_operations.R
bedrockagent_create_prompt.RdCreates 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.
Usage
bedrockagent_create_prompt(
name,
description = NULL,
customerEncryptionKeyArn = NULL,
defaultVariant = NULL,
variants = NULL,
clientToken = NULL,
tags = NULL
)Arguments
- name
[required] A name for the prompt.
- description
A description for the prompt.
- customerEncryptionKeyArn
The Amazon Resource Name (ARN) of the KMS key to encrypt the prompt.
- defaultVariant
The name of the default variant for the prompt. This value must match the
namefield in the relevant PromptVariant object.- variants
A list of objects, each containing details about a variant of the prompt.
- clientToken
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.
Any tags that you want to attach to the prompt. For more information, see Tagging resources in Amazon Bedrock.