interface CommonPromptVariantProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Bedrock.Alpha.CommonPromptVariantProps |
Go | github.com/aws/aws-cdk-go/awsbedrockalpha/v2#CommonPromptVariantProps |
Java | software.amazon.awscdk.services.bedrock.alpha.CommonPromptVariantProps |
Python | aws_cdk.aws_bedrock_alpha.CommonPromptVariantProps |
TypeScript (source) | @aws-cdk/aws-bedrock-alpha ยป CommonPromptVariantProps |
Common properties for all prompt variants.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as bedrock_alpha from '@aws-cdk/aws-bedrock-alpha';
declare const bedrockInvokable: bedrock_alpha.IBedrockInvokable;
const commonPromptVariantProps: bedrock_alpha.CommonPromptVariantProps = {
model: bedrockInvokable,
variantName: 'variantName',
// the properties below are optional
promptVariables: ['promptVariables'],
};
Properties
| Name | Type | Description |
|---|---|---|
| model | IBedrock | The model which is used to run the prompt. |
| variant | string | The name of the prompt variant. |
| prompt | string[] | The variables in the prompt template that can be filled in at runtime. |
model
Type:
IBedrock
The model which is used to run the prompt.
The model could be a foundation model, a custom model, or a provisioned model.
variantName
Type:
string
The name of the prompt variant.
promptVariables?
Type:
string[]
(optional, default: No variables defined.)
The variables in the prompt template that can be filled in at runtime.

.NET
Go
Java
Python
TypeScript (