AWS::Bedrock::Prompt PromptVariant - Amazon CloudFormation
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

AWS::Bedrock::Prompt PromptVariant

Contains details about a variant of the prompt.

Syntax

To declare this entity in your Amazon CloudFormation template, use the following syntax:

Properties

InferenceConfiguration

Contains inference configurations for the prompt variant.

Required: No

Type: PromptInferenceConfiguration

Update requires: No interruption

ModelId

The unique identifier of the model with which to run inference on the prompt.

Required: No

Type: String

Pattern: ^(arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:(([0-9]{12}:custom-model/[a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}/[a-z0-9]{12})|(:foundation-model/[a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.:]?[a-z0-9-]{1,63}))|([0-9]{12}:provisioned-model/[a-z0-9]{12})))|([a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.:]?[a-z0-9-]{1,63}))|(([0-9a-zA-Z][_-]?)+)$

Minimum: 1

Maximum: 2048

Update requires: No interruption

Name

The name of the prompt variant.

Required: Yes

Type: String

Pattern: ^([0-9a-zA-Z][_-]?){1,100}$

Update requires: No interruption

TemplateConfiguration

Contains configurations for the prompt template.

Required: No

Type: PromptTemplateConfiguration

Update requires: No interruption

TemplateType

The type of prompt template to use.

Required: Yes

Type: String

Allowed values: TEXT

Update requires: No interruption