

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

Contains specifications for a generative AI resource with which to use the prompt. 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-promptgenairesource-syntax"></a>

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

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

```
{
  "[Agent](#cfn-bedrock-prompt-promptgenairesource-agent)" : {{PromptAgentResource}}
}
```

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

```
  [Agent](#cfn-bedrock-prompt-promptgenairesource-agent): {{
    PromptAgentResource}}
```

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

`Agent`  <a name="cfn-bedrock-prompt-promptgenairesource-agent"></a>
Specifies an Amazon Bedrock agent with which to use the prompt.  
*Required*: Yes  
*Type*: [PromptAgentResource](aws-properties-bedrock-prompt-promptagentresource.md)  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)