

This is the new *Amazon CloudFormation Template Reference Guide*. Please update your bookmarks and links. For help getting started with CloudFormation, see the [Amazon CloudFormation User Guide](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/Welcome.html).

# AWS::Bedrock::Prompt PromptTemplateConfiguration
<a name="aws-properties-bedrock-prompt-prompttemplateconfiguration"></a>

Contains the message for a prompt. For more information, see [Construct and store reusable prompts with Prompt management in Amazon Bedrock](https://docs.amazonaws.cn/bedrock/latest/userguide/prompt-management.html).

## Syntax
<a name="aws-properties-bedrock-prompt-prompttemplateconfiguration-syntax"></a>

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

### JSON
<a name="aws-properties-bedrock-prompt-prompttemplateconfiguration-syntax.json"></a>

```
{
  "[Chat](#cfn-bedrock-prompt-prompttemplateconfiguration-chat)" : {{ChatPromptTemplateConfiguration}},
  "[Text](#cfn-bedrock-prompt-prompttemplateconfiguration-text)" : {{TextPromptTemplateConfiguration}}
}
```

### YAML
<a name="aws-properties-bedrock-prompt-prompttemplateconfiguration-syntax.yaml"></a>

```
  [Chat](#cfn-bedrock-prompt-prompttemplateconfiguration-chat): {{
    ChatPromptTemplateConfiguration}}
  [Text](#cfn-bedrock-prompt-prompttemplateconfiguration-text): {{
    TextPromptTemplateConfiguration}}
```

## Properties
<a name="aws-properties-bedrock-prompt-prompttemplateconfiguration-properties"></a>

`Chat`  <a name="cfn-bedrock-prompt-prompttemplateconfiguration-chat"></a>
Contains configurations to use the prompt in a conversational format.  
*Required*: No  
*Type*: [ChatPromptTemplateConfiguration](aws-properties-bedrock-prompt-chatprompttemplateconfiguration.md)  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`Text`  <a name="cfn-bedrock-prompt-prompttemplateconfiguration-text"></a>
Contains configurations for the text in a message for a prompt.  
*Required*: No  
*Type*: [TextPromptTemplateConfiguration](aws-properties-bedrock-prompt-textprompttemplateconfiguration.md)  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)