# PromptGenAiResourceProperty

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) .

- Source: Generated at build time
- Type last changed: v2.174.0 · 4 Jan 2025

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_bedrock as bedrock } from 'aws-cdk-lib';
const promptGenAiResourceProperty: bedrock.CfnPrompt.PromptGenAiResourceProperty = {
  agent: {
    agentIdentifier: 'agentIdentifier',
  },
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_bedrock as bedrock

prompt_gen_ai_resource_property = bedrock.CfnPrompt.PromptGenAiResourceProperty(
    agent=bedrock.CfnPrompt.PromptAgentResourceProperty(
        agent_identifier="agentIdentifier"
    )
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.bedrock.*;

PromptGenAiResourceProperty promptGenAiResourceProperty = PromptGenAiResourceProperty.builder()
        .agent(PromptAgentResourceProperty.builder()
                .agentIdentifier("agentIdentifier")
                .build())
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Bedrock;

var promptGenAiResourceProperty = new PromptGenAiResourceProperty {
    Agent = new PromptAgentResourceProperty {
        AgentIdentifier = "agentIdentifier"
    }
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

promptGenAiResourceProperty := &PromptGenAiResourceProperty{
	Agent: &PromptAgentResourceProperty{
		AgentIdentifier: jsii.String("agentIdentifier"),
	},
}
```

## Properties

- `agent`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnPrompt.PromptAgentResourceProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_bedrock.CfnPrompt.PromptAgentResourceProperty.html) (required) — Specifies an Amazon Bedrock agent with which to use the prompt.
