

# PromptGenAiResource
<a name="API_agent_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.aws.amazon.com/bedrock/latest/userguide/prompt-management-create.html).

## Contents
<a name="API_agent_PromptGenAiResource_Contents"></a>

**Important**  
This data type is a UNION, so only one of the following members can be specified when used or returned.

 ** agent **   <a name="bedrock-Type-agent_PromptGenAiResource-agent"></a>
Specifies an Amazon Bedrock agent with which to use the prompt.  
Type: [PromptAgentResource](API_agent_PromptAgentResource.md) object  
Required: No

## See Also
<a name="API_agent_PromptGenAiResource_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/bedrock-agent-2023-06-05/PromptGenAiResource) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/bedrock-agent-2023-06-05/PromptGenAiResource) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/bedrock-agent-2023-06-05/PromptGenAiResource) 