> **Experimental**
>
> `@aws-cdk/aws-bedrock-alpha` is an [**experimental**](https://docs.aws.amazon.com/cdk/api/stability.html) (alpha) package: its API may change in any release, without a major version bump.
# IPromptVariant

Interface representing a prompt variant configuration.

Variants are specific sets of inputs that guide FMs on Amazon Bedrock to
generate an appropriate response or output for a given task or instruction.

Obtainable from: [PromptVariant.agent](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-alpha.PromptVariant.html#agent), [PromptVariant.chat](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-alpha.PromptVariant.html#chat), [PromptVariant.text](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-alpha.PromptVariant.html#text)

- Stability: [Experimental](https://docs.aws.amazon.com/cdk/api/stability.html)
- Source: [`bedrock/prompts/prompt-variant.ts`](https://github.com/aws/aws-cdk/blob/v2.277.0/packages/@aws-cdk/aws-bedrock-alpha/bedrock/prompts/prompt-variant.ts#L61)

## Properties

- `genAiResource`: [PromptGenAiResource](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-alpha.PromptGenAiResource.html) — The generative AI resource configuration.

- `inferenceConfiguration`: [PromptInferenceConfiguration](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-alpha.PromptInferenceConfiguration.html) — The inference configuration.

- `modelId`: string — The unique identifier of the model with which to run inference on the prompt.

- `name`: string — The name of the prompt variant.

- `templateConfiguration`: [PromptTemplateConfiguration](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-alpha.PromptTemplateConfiguration.html) — The template configuration.

- `templateType`: [PromptTemplateType](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-alpha.PromptTemplateType.html) = Text — The type of prompt template.
