interface MessageProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Bedrock.CfnPromptVersion.MessageProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsbedrock#CfnPromptVersion_MessageProperty |
Java | software.amazon.awscdk.services.bedrock.CfnPromptVersion.MessageProperty |
Python | aws_cdk.aws_bedrock.CfnPromptVersion.MessageProperty |
TypeScript | aws-cdk-lib » aws_bedrock » CfnPromptVersion » MessageProperty |
A message input, or returned from, a call to Converse or ConverseStream .
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 messageProperty: bedrock.CfnPromptVersion.MessageProperty = {
content: [{
cachePoint: {
type: 'type',
},
text: 'text',
}],
role: 'role',
};
Properties
| Name | Type | Description |
|---|---|---|
| content | IResolvable | (IResolvable | Content)[] | The message content. Note the following restrictions:. |
| role | string | The role that the message plays in the message. |
content
Type:
IResolvable | (IResolvable | Content)[]
The message content. Note the following restrictions:.
- You can include up to 20 images. Each image's size, height, and width must be no more than 3.75 MB, 8000 px, and 8000 px, respectively.
- You can include up to five documents. Each document's size must be no more than 4.5 MB.
- If you include a
ContentBlockwith adocumentfield in the array, you must also include aContentBlockwith atextfield. - You can only include images and documents if the
roleisuser.
role
Type:
string
The role that the message plays in the message.

.NET
Go
Java
Python
TypeScript