# KnowledgeBasePromptTemplateProperty

Defines a custom prompt template for orchestrating the retrieval and generation process.

- Source: Generated at build time
- Type last changed: v2.201.0 · 13 Jun 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 knowledgeBasePromptTemplateProperty: bedrock.CfnFlowVersion.KnowledgeBasePromptTemplateProperty = {
  textPromptTemplate: 'textPromptTemplate',
};
```

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

knowledge_base_prompt_template_property = bedrock.CfnFlowVersion.KnowledgeBasePromptTemplateProperty(
    text_prompt_template="textPromptTemplate"
)
```

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.*;

KnowledgeBasePromptTemplateProperty knowledgeBasePromptTemplateProperty = KnowledgeBasePromptTemplateProperty.builder()
        .textPromptTemplate("textPromptTemplate")
        .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 knowledgeBasePromptTemplateProperty = new KnowledgeBasePromptTemplateProperty {
    TextPromptTemplate = "textPromptTemplate"
};
```

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"

knowledgeBasePromptTemplateProperty := &KnowledgeBasePromptTemplateProperty{
	TextPromptTemplate: jsii.String("textPromptTemplate"),
}
```

## Properties

- `textPromptTemplate`: string (required) — The text of the prompt template.
