Interface: PromptProps
March 19, 2026 ยท View on GitHub
@cdklabs/generative-ai-cdk-constructs
@cdklabs/generative-ai-cdk-constructs / bedrock / PromptProps
Interface: PromptProps
PROPS FOR NEW CONSTRUCT
Properties
defaultVariant?
readonlyoptionaldefaultVariant?:PromptVariant
The Prompt Variant that will be used by default.
Default
- No default variant provided.
description?
readonlyoptionaldescription?:string
A description of what the prompt does.
Default
- No description provided.
kmsKey?
readonlyoptionalkmsKey?:IKey
The KMS key that the prompt is encrypted with.
Default
- AWS owned and managed key.
promptName
readonlypromptName:string
The name of the prompt.
variants?
readonlyoptionalvariants?:PromptVariant[]
The variants of your prompt. Variants can use different messages, models, or configurations so that you can compare their outputs to decide the best variant for your use case. Maximum of 3 variants.