interface ContentBlockProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.aws_bedrock.CfnPrompt.ContentBlockProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsbedrock#CfnPrompt_ContentBlockProperty |
Java | software.amazon.awscdk.services.bedrock.CfnPrompt.ContentBlockProperty |
Python | aws_cdk.aws_bedrock.CfnPrompt.ContentBlockProperty |
TypeScript | aws-cdk-lib » aws_bedrock » CfnPrompt » ContentBlockProperty |
A block of content for a message that you pass to, or receive from, a model with the Converse or ConverseStream API operations.
Example
// 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 contentBlockProperty: bedrock.CfnPrompt.ContentBlockProperty = {
cachePoint: {
type: 'type',
},
text: 'text',
};
Properties
| Name | Type | Description |
|---|---|---|
| cache | IResolvable | Cache | CachePoint to include in the message. |
| text? | string | Text to include in the message. |
cachePoint?
Type:
IResolvable | Cache
(optional)
CachePoint to include in the message.
text?
Type:
string
(optional)
Text to include in the message.

.NET
Go
Java
Python
TypeScript