

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 PromptMetadataEntry
<a name="aws-properties-bedrock-prompt-promptmetadataentry"></a>

Contains a key-value pair that defines a metadata tag and value to attach to a prompt variant. For more information, see [Create a prompt using Prompt management](https://docs.amazonaws.cn/bedrock/latest/userguide/prompt-management-create.html).

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

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

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

```
{
  "[Key](#cfn-bedrock-prompt-promptmetadataentry-key)" : {{String}},
  "[Value](#cfn-bedrock-prompt-promptmetadataentry-value)" : {{String}}
}
```

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

```
  [Key](#cfn-bedrock-prompt-promptmetadataentry-key): {{String}}
  [Value](#cfn-bedrock-prompt-promptmetadataentry-value): {{String}}
```

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

`Key`  <a name="cfn-bedrock-prompt-promptmetadataentry-key"></a>
The key of a metadata tag for a prompt variant.  
*Required*: Yes  
*Type*: String  
*Pattern*: `^[a-zA-Z0-9\s._:/=+@-]*$`  
*Minimum*: `1`  
*Maximum*: `128`  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`Value`  <a name="cfn-bedrock-prompt-promptmetadataentry-value"></a>
The value of a metadata tag for a prompt variant.  
*Required*: Yes  
*Type*: String  
*Pattern*: `^[a-zA-Z0-9\s._:/=+@-]*$`  
*Minimum*: `1`  
*Maximum*: `1024`  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)