AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::Bedrock::Prompt

CfnPrompt

Creates a prompt in your prompt library that you can add to a flow. For more information, see [Prompt management in Amazon Bedrock](https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-management.html) , [Create a prompt using Prompt management](https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-management-create.html) and [Prompt flows in Amazon Bedrock](https://docs.aws.amazon.com/bedrock/latest/userguide/flows.html) in the Amazon Bedrock User Guide.

Import

import { CfnPrompt } from 'aws-cdk-lib/aws-bedrock';

Or use the module namespace:

import * as bedrock from 'aws-cdk-lib/aws-bedrock';
// bedrock.CfnPrompt

Properties

Configuration passed to the constructor as CfnPromptProps.

nameRequired
string

The name of the prompt.

customerEncryptionKeyArnOptional
string

The Amazon Resource Name (ARN) of the KMS key that the prompt is encrypted with.

defaultVariantOptional
string

The name of the default variant for the prompt. This value must match the `name` field in the relevant [PromptVariant](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_PromptVariant.html) object.

descriptionOptional
string

The description of the prompt.

tagsOptional
{ [key: string]: string }

Metadata that you can assign to a resource as key-value pairs. For more information, see the following resources:. - [Tag naming limits and requirements](https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-conventions) - [Tagging best practices](https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-best-practices)

variantsOptional
IResolvable | IResolvable | PromptVariantProperty[]

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

CloudFormation Resource

This L1 construct maps directly to the following CloudFormation resource type.

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter